loader error issue and img capture multi fixed
This commit is contained in:
parent
ba43a58e0d
commit
ddd8c86501
614
ng6-seed/package-lock.json
generated
614
ng6-seed/package-lock.json
generated
@ -901,15 +901,6 @@
|
|||||||
"tslib": "^1.9.0"
|
"tslib": "^1.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@digitalhurricane/ngx-photo-editor": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@digitalhurricane/ngx-photo-editor/-/ngx-photo-editor-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-1BK+8o5ciT5abeWsqog5O4dZiEOINeXv4xRJeZZT3zc143zvIRmr9eZiIjzBqDYCCBJu/K7bq9QYeaVVTV82dw==",
|
|
||||||
"requires": {
|
|
||||||
"cropperjs": ">=1.5.7",
|
|
||||||
"tslib": "^1.9.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@ngtools/webpack": {
|
"@ngtools/webpack": {
|
||||||
"version": "7.2.4",
|
"version": "7.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-7.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-7.2.4.tgz",
|
||||||
@ -1441,6 +1432,14 @@
|
|||||||
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
||||||
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
|
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
|
||||||
},
|
},
|
||||||
|
"abort-controller": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
|
||||||
|
"requires": {
|
||||||
|
"event-target-shim": "^5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"accepts": {
|
"accepts": {
|
||||||
"version": "1.3.7",
|
"version": "1.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
|
||||||
@ -1974,6 +1973,21 @@
|
|||||||
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
|
||||||
"integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
|
"integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
|
||||||
},
|
},
|
||||||
|
"axios": {
|
||||||
|
"version": "0.21.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
|
||||||
|
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
|
||||||
|
"requires": {
|
||||||
|
"follow-redirects": "^1.14.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"follow-redirects": {
|
||||||
|
"version": "1.15.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
||||||
|
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"babel-code-frame": {
|
"babel-code-frame": {
|
||||||
"version": "6.26.0",
|
"version": "6.26.0",
|
||||||
"resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
|
"resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
|
||||||
@ -2206,6 +2220,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
|
||||||
"integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q=="
|
"integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q=="
|
||||||
},
|
},
|
||||||
|
"bignumber.js": {
|
||||||
|
"version": "9.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.0.tgz",
|
||||||
|
"integrity": "sha512-4LwHK4nfDOraBCtst+wOWIHbu1vhvAPJK8g8nROd4iuc3PSEjWif/qwbkh8jwCJz6yDBvtU4KPynETgrfh7y3A=="
|
||||||
|
},
|
||||||
"binary-extensions": {
|
"binary-extensions": {
|
||||||
"version": "1.11.0",
|
"version": "1.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz",
|
||||||
@ -2490,6 +2509,11 @@
|
|||||||
"integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
|
"integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"buffer-equal-constant-time": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
|
||||||
|
},
|
||||||
"buffer-fill": {
|
"buffer-fill": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
|
||||||
@ -2600,6 +2624,15 @@
|
|||||||
"resolved": "https://registry.npmjs.org/calendar-utils/-/calendar-utils-0.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/calendar-utils/-/calendar-utils-0.1.2.tgz",
|
||||||
"integrity": "sha512-9j4Zd1itopNYTSWzFU4MqD2IDHMqznfxsGr8UWGh7hWv+lKzjRJz0LS29iAg5rHtP6+6x3ikQnhoMGqFUzoD2Q=="
|
"integrity": "sha512-9j4Zd1itopNYTSWzFU4MqD2IDHMqznfxsGr8UWGh7hWv+lKzjRJz0LS29iAg5rHtP6+6x3ikQnhoMGqFUzoD2Q=="
|
||||||
},
|
},
|
||||||
|
"call-bind": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
|
||||||
|
"requires": {
|
||||||
|
"function-bind": "^1.1.1",
|
||||||
|
"get-intrinsic": "^1.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"caller-callsite": {
|
"caller-callsite": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz",
|
||||||
@ -4087,6 +4120,14 @@
|
|||||||
"safer-buffer": "^2.1.0"
|
"safer-buffer": "^2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ecdsa-sig-formatter": {
|
||||||
|
"version": "1.0.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
|
||||||
|
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
|
||||||
|
"requires": {
|
||||||
|
"safe-buffer": "^5.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ee-first": {
|
"ee-first": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||||
@ -4459,6 +4500,11 @@
|
|||||||
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
|
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"event-target-shim": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="
|
||||||
|
},
|
||||||
"eventemitter3": {
|
"eventemitter3": {
|
||||||
"version": "4.0.7",
|
"version": "4.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
||||||
@ -4945,6 +4991,11 @@
|
|||||||
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
|
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"fast-text-encoding": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz",
|
||||||
|
"integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w=="
|
||||||
|
},
|
||||||
"fastparse": {
|
"fastparse": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz",
|
||||||
@ -5789,6 +5840,55 @@
|
|||||||
"wide-align": "^1.1.0"
|
"wide-align": "^1.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gaxios": {
|
||||||
|
"version": "4.3.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-4.3.3.tgz",
|
||||||
|
"integrity": "sha512-gSaYYIO1Y3wUtdfHmjDUZ8LWaxJQpiavzbF5Kq53akSzvmVg0RfyOcFDbO1KJ/KCGRFz2qG+lS81F0nkr7cRJA==",
|
||||||
|
"requires": {
|
||||||
|
"abort-controller": "^3.0.0",
|
||||||
|
"extend": "^3.0.2",
|
||||||
|
"https-proxy-agent": "^5.0.0",
|
||||||
|
"is-stream": "^2.0.0",
|
||||||
|
"node-fetch": "^2.6.7"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"agent-base": {
|
||||||
|
"version": "6.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
|
||||||
|
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
|
||||||
|
"requires": {
|
||||||
|
"debug": "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"debug": {
|
||||||
|
"version": "4.3.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
|
"requires": {
|
||||||
|
"ms": "2.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https-proxy-agent": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
||||||
|
"requires": {
|
||||||
|
"agent-base": "6",
|
||||||
|
"debug": "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is-stream": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="
|
||||||
|
},
|
||||||
|
"ms": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"gaze": {
|
"gaze": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz",
|
||||||
@ -5797,6 +5897,15 @@
|
|||||||
"globule": "^1.0.0"
|
"globule": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gcp-metadata": {
|
||||||
|
"version": "4.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.3.1.tgz",
|
||||||
|
"integrity": "sha512-x850LS5N7V1F3UcV7PoupzGsyD6iVwTVvsh3tbXfkctZnBnjW5yu5z1/3k3SehF7TyoTIe78rJs02GMMy+LF+A==",
|
||||||
|
"requires": {
|
||||||
|
"gaxios": "^4.0.0",
|
||||||
|
"json-bigint": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"genfun": {
|
"genfun": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/genfun/-/genfun-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/genfun/-/genfun-5.0.0.tgz",
|
||||||
@ -5808,6 +5917,23 @@
|
|||||||
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
||||||
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
|
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
|
||||||
},
|
},
|
||||||
|
"get-intrinsic": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz",
|
||||||
|
"integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==",
|
||||||
|
"requires": {
|
||||||
|
"function-bind": "^1.1.1",
|
||||||
|
"has": "^1.0.3",
|
||||||
|
"has-symbols": "^1.0.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"has-symbols": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
||||||
|
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"get-stdin": {
|
"get-stdin": {
|
||||||
"version": "4.0.1",
|
"version": "4.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
|
||||||
@ -5938,11 +6064,352 @@
|
|||||||
"resolved": "https://registry.npmjs.org/glur/-/glur-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/glur/-/glur-1.1.2.tgz",
|
||||||
"integrity": "sha1-8g6jbbEDv8KSNDkh8fkeg8NGdok="
|
"integrity": "sha1-8g6jbbEDv8KSNDkh8fkeg8NGdok="
|
||||||
},
|
},
|
||||||
|
"google-auth-library": {
|
||||||
|
"version": "6.1.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.1.6.tgz",
|
||||||
|
"integrity": "sha512-Q+ZjUEvLQj/lrVHF/IQwRo6p3s8Nc44Zk/DALsN+ac3T4HY/g/3rrufkgtl+nZ1TW7DNAw5cTChdVp4apUXVgQ==",
|
||||||
|
"requires": {
|
||||||
|
"arrify": "^2.0.0",
|
||||||
|
"base64-js": "^1.3.0",
|
||||||
|
"ecdsa-sig-formatter": "^1.0.11",
|
||||||
|
"fast-text-encoding": "^1.0.0",
|
||||||
|
"gaxios": "^4.0.0",
|
||||||
|
"gcp-metadata": "^4.2.0",
|
||||||
|
"gtoken": "^5.0.4",
|
||||||
|
"jws": "^4.0.0",
|
||||||
|
"lru-cache": "^6.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"arrify": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug=="
|
||||||
|
},
|
||||||
|
"lru-cache": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||||
|
"requires": {
|
||||||
|
"yallist": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"yallist": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"google-p12-pem": {
|
||||||
|
"version": "3.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.1.4.tgz",
|
||||||
|
"integrity": "sha512-HHuHmkLgwjdmVRngf5+gSmpkyaRI6QmOg77J8tkNBHhNEI62sGHyw4/+UkgyZEI7h84NbWprXDJ+sa3xOYFvTg==",
|
||||||
|
"requires": {
|
||||||
|
"node-forge": "^1.3.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"node-forge": {
|
||||||
|
"version": "1.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
|
||||||
|
"integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"google-spreadsheet": {
|
||||||
|
"version": "3.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-spreadsheet/-/google-spreadsheet-3.3.0.tgz",
|
||||||
|
"integrity": "sha512-ahmRNh14s1i3phfvbF2mxen1lohWJpUaFWgsU6P6bXu7QrmxMaim1Ys/7BU4W5yucWCzphoIrHMbrbeIR5K9mw==",
|
||||||
|
"requires": {
|
||||||
|
"axios": "^0.21.4",
|
||||||
|
"google-auth-library": "^6.1.3",
|
||||||
|
"lodash": "^4.17.21"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"lodash": {
|
||||||
|
"version": "4.17.21",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||||
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"googleapis": {
|
||||||
|
"version": "109.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/googleapis/-/googleapis-109.0.0.tgz",
|
||||||
|
"integrity": "sha512-m2+cwWg4R0TQ6Goe8vKydQKLuIH/M0phJzdH1zt5SCGNvoGyIpofq7FOyHKlnrrNdtHSTTI3aGtTazioHD1gPA==",
|
||||||
|
"requires": {
|
||||||
|
"google-auth-library": "^8.0.2",
|
||||||
|
"googleapis-common": "^6.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"agent-base": {
|
||||||
|
"version": "6.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
|
||||||
|
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
|
||||||
|
"requires": {
|
||||||
|
"debug": "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"arrify": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug=="
|
||||||
|
},
|
||||||
|
"debug": {
|
||||||
|
"version": "4.3.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
|
"requires": {
|
||||||
|
"ms": "2.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gaxios": {
|
||||||
|
"version": "5.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-5.0.2.tgz",
|
||||||
|
"integrity": "sha512-TjtV2AJOZoMQqRYoy5eM8cCQogYwazWNYLQ72QB0kwa6vHHruYkGmhhyrlzbmgNHK1dNnuP2WSH81urfzyN2Og==",
|
||||||
|
"requires": {
|
||||||
|
"extend": "^3.0.2",
|
||||||
|
"https-proxy-agent": "^5.0.0",
|
||||||
|
"is-stream": "^2.0.0",
|
||||||
|
"node-fetch": "^2.6.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gcp-metadata": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-jiRJ+Fk7e8FH68Z6TLaqwea307OktJpDjmYnU7/li6ziwvVvU2RlrCyQo5vkdeP94chm0kcSCOOszvmuaioq3g==",
|
||||||
|
"requires": {
|
||||||
|
"gaxios": "^5.0.0",
|
||||||
|
"json-bigint": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"google-auth-library": {
|
||||||
|
"version": "8.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.6.0.tgz",
|
||||||
|
"integrity": "sha512-y6bw1yTWMVgs1vGJwBZ3uu+uIClfgxQfsEVcTNKjQeNQOVwox69+ZUgTeTAzrh+74hBqrk1gWyb9RsQVDI7seg==",
|
||||||
|
"requires": {
|
||||||
|
"arrify": "^2.0.0",
|
||||||
|
"base64-js": "^1.3.0",
|
||||||
|
"ecdsa-sig-formatter": "^1.0.11",
|
||||||
|
"fast-text-encoding": "^1.0.0",
|
||||||
|
"gaxios": "^5.0.0",
|
||||||
|
"gcp-metadata": "^5.0.0",
|
||||||
|
"gtoken": "^6.1.0",
|
||||||
|
"jws": "^4.0.0",
|
||||||
|
"lru-cache": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"google-p12-pem": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==",
|
||||||
|
"requires": {
|
||||||
|
"node-forge": "^1.3.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gtoken": {
|
||||||
|
"version": "6.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-6.1.2.tgz",
|
||||||
|
"integrity": "sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==",
|
||||||
|
"requires": {
|
||||||
|
"gaxios": "^5.0.1",
|
||||||
|
"google-p12-pem": "^4.0.0",
|
||||||
|
"jws": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https-proxy-agent": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
||||||
|
"requires": {
|
||||||
|
"agent-base": "6",
|
||||||
|
"debug": "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is-stream": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="
|
||||||
|
},
|
||||||
|
"lru-cache": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||||
|
"requires": {
|
||||||
|
"yallist": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ms": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
|
},
|
||||||
|
"node-forge": {
|
||||||
|
"version": "1.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
|
||||||
|
"integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA=="
|
||||||
|
},
|
||||||
|
"yallist": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"googleapis-common": {
|
||||||
|
"version": "6.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-6.0.3.tgz",
|
||||||
|
"integrity": "sha512-Xyb4FsQ6PQDu4tAE/M/ev4yzZhFe2Gc7+rKmuCX2ZGk1ajBKbafsGlVYpmzGqQOT93BRDe8DiTmQb6YSkbICrA==",
|
||||||
|
"requires": {
|
||||||
|
"extend": "^3.0.2",
|
||||||
|
"gaxios": "^5.0.1",
|
||||||
|
"google-auth-library": "^8.0.2",
|
||||||
|
"qs": "^6.7.0",
|
||||||
|
"url-template": "^2.0.8",
|
||||||
|
"uuid": "^9.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"agent-base": {
|
||||||
|
"version": "6.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
|
||||||
|
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
|
||||||
|
"requires": {
|
||||||
|
"debug": "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"arrify": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug=="
|
||||||
|
},
|
||||||
|
"debug": {
|
||||||
|
"version": "4.3.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
|
"requires": {
|
||||||
|
"ms": "2.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gaxios": {
|
||||||
|
"version": "5.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-5.0.2.tgz",
|
||||||
|
"integrity": "sha512-TjtV2AJOZoMQqRYoy5eM8cCQogYwazWNYLQ72QB0kwa6vHHruYkGmhhyrlzbmgNHK1dNnuP2WSH81urfzyN2Og==",
|
||||||
|
"requires": {
|
||||||
|
"extend": "^3.0.2",
|
||||||
|
"https-proxy-agent": "^5.0.0",
|
||||||
|
"is-stream": "^2.0.0",
|
||||||
|
"node-fetch": "^2.6.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gcp-metadata": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-jiRJ+Fk7e8FH68Z6TLaqwea307OktJpDjmYnU7/li6ziwvVvU2RlrCyQo5vkdeP94chm0kcSCOOszvmuaioq3g==",
|
||||||
|
"requires": {
|
||||||
|
"gaxios": "^5.0.0",
|
||||||
|
"json-bigint": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"google-auth-library": {
|
||||||
|
"version": "8.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.6.0.tgz",
|
||||||
|
"integrity": "sha512-y6bw1yTWMVgs1vGJwBZ3uu+uIClfgxQfsEVcTNKjQeNQOVwox69+ZUgTeTAzrh+74hBqrk1gWyb9RsQVDI7seg==",
|
||||||
|
"requires": {
|
||||||
|
"arrify": "^2.0.0",
|
||||||
|
"base64-js": "^1.3.0",
|
||||||
|
"ecdsa-sig-formatter": "^1.0.11",
|
||||||
|
"fast-text-encoding": "^1.0.0",
|
||||||
|
"gaxios": "^5.0.0",
|
||||||
|
"gcp-metadata": "^5.0.0",
|
||||||
|
"gtoken": "^6.1.0",
|
||||||
|
"jws": "^4.0.0",
|
||||||
|
"lru-cache": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"google-p12-pem": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==",
|
||||||
|
"requires": {
|
||||||
|
"node-forge": "^1.3.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gtoken": {
|
||||||
|
"version": "6.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-6.1.2.tgz",
|
||||||
|
"integrity": "sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==",
|
||||||
|
"requires": {
|
||||||
|
"gaxios": "^5.0.1",
|
||||||
|
"google-p12-pem": "^4.0.0",
|
||||||
|
"jws": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https-proxy-agent": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
||||||
|
"requires": {
|
||||||
|
"agent-base": "6",
|
||||||
|
"debug": "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"is-stream": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="
|
||||||
|
},
|
||||||
|
"lru-cache": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||||
|
"requires": {
|
||||||
|
"yallist": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ms": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
|
},
|
||||||
|
"node-forge": {
|
||||||
|
"version": "1.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
|
||||||
|
"integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA=="
|
||||||
|
},
|
||||||
|
"qs": {
|
||||||
|
"version": "6.11.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
|
||||||
|
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
|
||||||
|
"requires": {
|
||||||
|
"side-channel": "^1.0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"version": "9.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
|
||||||
|
"integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg=="
|
||||||
|
},
|
||||||
|
"yallist": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"graceful-fs": {
|
"graceful-fs": {
|
||||||
"version": "4.1.11",
|
"version": "4.1.11",
|
||||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
|
||||||
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
|
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
|
||||||
},
|
},
|
||||||
|
"gtoken": {
|
||||||
|
"version": "5.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.3.2.tgz",
|
||||||
|
"integrity": "sha512-gkvEKREW7dXWF8NV8pVrKfW7WqReAmjjkMBh6lNCCGOM4ucS0r0YyXXl0r/9Yj8wcW/32ISkfc8h5mPTDbtifQ==",
|
||||||
|
"requires": {
|
||||||
|
"gaxios": "^4.0.0",
|
||||||
|
"google-p12-pem": "^3.1.3",
|
||||||
|
"jws": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hammerjs": {
|
"hammerjs": {
|
||||||
"version": "2.0.8",
|
"version": "2.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz",
|
||||||
@ -6733,6 +7200,11 @@
|
|||||||
"integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=",
|
"integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"is-promise": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-mjWH5XxnhMA8cFnDchr6qRP9S/kLntKuEfIYku+PaN1CnS8v+OG9O/BKpRCVRJvpIkgAZm0Pf5Is3iSSOILlcg=="
|
||||||
|
},
|
||||||
"is-regex": {
|
"is-regex": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
|
||||||
@ -7138,6 +7610,14 @@
|
|||||||
"integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=",
|
"integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"json-bigint": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
|
||||||
|
"requires": {
|
||||||
|
"bignumber.js": "^9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"json-parse-better-errors": {
|
"json-parse-better-errors": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
|
||||||
@ -7192,6 +7672,25 @@
|
|||||||
"verror": "1.10.0"
|
"verror": "1.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"jwa": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==",
|
||||||
|
"requires": {
|
||||||
|
"buffer-equal-constant-time": "1.0.1",
|
||||||
|
"ecdsa-sig-formatter": "1.0.11",
|
||||||
|
"safe-buffer": "^5.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"jws": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==",
|
||||||
|
"requires": {
|
||||||
|
"jwa": "^2.0.0",
|
||||||
|
"safe-buffer": "^5.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"karma": {
|
"karma": {
|
||||||
"version": "1.7.0",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/karma/-/karma-1.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/karma/-/karma-1.7.0.tgz",
|
||||||
@ -8469,6 +8968,14 @@
|
|||||||
"resolved": "https://registry.npmjs.org/node-ensure/-/node-ensure-0.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-ensure/-/node-ensure-0.0.0.tgz",
|
||||||
"integrity": "sha1-7K52QVDemYYexcgQ/V0Jaxg5Mqc="
|
"integrity": "sha1-7K52QVDemYYexcgQ/V0Jaxg5Mqc="
|
||||||
},
|
},
|
||||||
|
"node-fetch": {
|
||||||
|
"version": "2.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
|
||||||
|
"integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
|
||||||
|
"requires": {
|
||||||
|
"whatwg-url": "^5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node-fetch-npm": {
|
"node-fetch-npm": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch-npm/-/node-fetch-npm-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch-npm/-/node-fetch-npm-2.0.2.tgz",
|
||||||
@ -8621,6 +9128,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nodeify": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/nodeify/-/nodeify-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-n7C2NyEze8GCo/z73KdbjRsBiLbv6eBn1FxwYKQ23IqGo7pQY3mhQan61Sv7eEDJCiyUjTVrVkXTzJCo1dW7Aw==",
|
||||||
|
"requires": {
|
||||||
|
"is-promise": "~1.0.0",
|
||||||
|
"promise": "~1.3.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"promise": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/promise/-/promise-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-R9WrbTF3EPkVtWjp7B7umQGVndpsi+rsDAfrR4xAALQpFLa/+2OriecLhawxzvii2gd9+DZFwROWDuUUaqS5yA==",
|
||||||
|
"requires": {
|
||||||
|
"is-promise": "~1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"nopt": {
|
"nopt": {
|
||||||
"version": "3.0.6",
|
"version": "3.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
|
||||||
@ -10503,6 +11029,16 @@
|
|||||||
"uuid": "^3.3.2"
|
"uuid": "^3.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"request-promise": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/request-promise/-/request-promise-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-wVGUX+BoKxYsavTA72i6qHcyLbjzM4LR4y/AmDCqlbuMAursZdDWO7PmgbGAUvD2SeEJ5iB99VSq/U51i/DNbw==",
|
||||||
|
"requires": {
|
||||||
|
"bluebird": "^3.3",
|
||||||
|
"lodash": "^4.6.1",
|
||||||
|
"request": "^2.34"
|
||||||
|
}
|
||||||
|
},
|
||||||
"require-directory": {
|
"require-directory": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||||
@ -10969,6 +11505,42 @@
|
|||||||
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
|
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"sheetsu": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/sheetsu/-/sheetsu-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-hljg5haeSqmNHd1O0/PMlYfL6aOOT2pWsHgqHg9zKbEuQawSFqhacf5Dhx/QHuV/X6WqQJP06/b2MzOpSsyW1Q==",
|
||||||
|
"requires": {
|
||||||
|
"bluebird": "^3.0.6",
|
||||||
|
"co": "^4.6.0",
|
||||||
|
"lodash": "^3.10.1",
|
||||||
|
"nodeify": "^1.0.0",
|
||||||
|
"request-promise": "^3.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"lodash": {
|
||||||
|
"version": "3.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz",
|
||||||
|
"integrity": "sha512-9mDDwqVIma6OZX79ZlDACZl8sBm0TEnkf99zV3iMA4GzkIT/9hiqP5mY0HoT1iNLCrKc/R1HByV+yJfRWVJryQ=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"side-channel": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
||||||
|
"requires": {
|
||||||
|
"call-bind": "^1.0.0",
|
||||||
|
"get-intrinsic": "^1.0.2",
|
||||||
|
"object-inspect": "^1.9.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"object-inspect": {
|
||||||
|
"version": "1.12.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz",
|
||||||
|
"integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"signal-exit": {
|
"signal-exit": {
|
||||||
"version": "3.0.2",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
|
||||||
@ -12178,6 +12750,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"tr46": {
|
||||||
|
"version": "0.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||||
|
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
||||||
|
},
|
||||||
"tree-kill": {
|
"tree-kill": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz",
|
||||||
@ -12514,6 +13091,11 @@
|
|||||||
"requires-port": "^1.0.0"
|
"requires-port": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"url-template": {
|
||||||
|
"version": "2.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz",
|
||||||
|
"integrity": "sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw=="
|
||||||
|
},
|
||||||
"use": {
|
"use": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
||||||
@ -12863,6 +13445,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"webidl-conversions": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
||||||
|
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
|
||||||
|
},
|
||||||
"webpack": {
|
"webpack": {
|
||||||
"version": "4.28.4",
|
"version": "4.28.4",
|
||||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.28.4.tgz",
|
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.28.4.tgz",
|
||||||
@ -13219,6 +13806,15 @@
|
|||||||
"resolved": "https://registry.npmjs.org/webworkify/-/webworkify-1.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/webworkify/-/webworkify-1.5.0.tgz",
|
||||||
"integrity": "sha512-AMcUeyXAhbACL8S2hqqdqOLqvJ8ylmIbNwUIqQujRSouf4+eUFaXbG6F1Rbu+srlJMmxQWsiU7mOJi0nMBfM1g=="
|
"integrity": "sha512-AMcUeyXAhbACL8S2hqqdqOLqvJ8ylmIbNwUIqQujRSouf4+eUFaXbG6F1Rbu+srlJMmxQWsiU7mOJi0nMBfM1g=="
|
||||||
},
|
},
|
||||||
|
"whatwg-url": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
|
||||||
|
"requires": {
|
||||||
|
"tr46": "~0.0.3",
|
||||||
|
"webidl-conversions": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"when": {
|
"when": {
|
||||||
"version": "3.6.4",
|
"version": "3.6.4",
|
||||||
"resolved": "https://registry.npmjs.org/when/-/when-3.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/when/-/when-3.6.4.tgz",
|
||||||
|
|||||||
@ -64,6 +64,7 @@ export class FlyHiListComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getListofFlyhi()
|
this.getListofFlyhi()
|
||||||
|
localStorage.setItem('sales_pd_type',null)
|
||||||
}
|
}
|
||||||
|
|
||||||
getListofFlyhi(){
|
getListofFlyhi(){
|
||||||
|
|||||||
@ -91,6 +91,9 @@ export class DynamicQuestionTemplateComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
ngAfterViewInit(){
|
||||||
|
this.ngOnChanges()
|
||||||
|
}
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
//alert('ans');
|
//alert('ans');
|
||||||
this.parent_ques = this.currFormArrayObj
|
this.parent_ques = this.currFormArrayObj
|
||||||
@ -418,52 +421,75 @@ export class DynamicQuestionTemplateComponent implements OnInit {
|
|||||||
// console.log(JSON.parse(updatedParams),updatedParams,JSON.parse(JSON.stringify(updatedParams)))
|
// console.log(JSON.parse(updatedParams),updatedParams,JSON.parse(JSON.stringify(updatedParams)))
|
||||||
// debugger;
|
// debugger;
|
||||||
let params={records:{state_id:event.value}}
|
let params={records:{state_id:event.value}}
|
||||||
// console.log( params)
|
console.log( params,this.city_array,this.pincode_array)
|
||||||
|
if( this.city_array.length>0){
|
||||||
|
this.city_array[this.json_index] = null
|
||||||
|
}
|
||||||
|
if( this.pincode_array.length>0){
|
||||||
|
this.pincode_array[this.json_index] = null
|
||||||
|
}
|
||||||
|
|
||||||
this.quesService.apiCall(onChangeProperty.api,params,onChangeProperty.api_method).subscribe(res=>{
|
this.quesService.apiCall(onChangeProperty.api,params,onChangeProperty.api_method).subscribe(res=>{
|
||||||
|
|
||||||
if(res['dataStatus']){
|
if(res['dataStatus']){
|
||||||
|
|
||||||
this.local_city1=res['records'].cities
|
this.local_city1=res['records'].cities
|
||||||
this.local_pincode1=res['records'].pincode
|
this.local_pincode1=res['records'].pincode
|
||||||
|
|
||||||
// console.log( local_city1,local_pincode1)
|
// console.log( local_city1,local_pincode1)
|
||||||
this.whole_json.forEach((val,index)=>{
|
this.whole_json.forEach((val,index)=>{
|
||||||
// let i= index-2
|
// let i= index-2
|
||||||
// console.log( params)
|
console.log( this.json_index,index)
|
||||||
if(val.api_properties == 'local_city1' ){
|
if(val.api_properties == 'local_city1' ){
|
||||||
|
|
||||||
|
// this.local_city1=this.quesService.convertArrayNames(['city_id','city_name'], this.local_city1)
|
||||||
this.local_city1=this.quesService.convertArrayNames(['city_id','city_name'], this.local_city1)
|
this.local_city1=this.quesService.convertArrayNames(['city_id','city_name'], this.local_city1)
|
||||||
// console.log( this.local_city1)
|
// console.log( this.local_city1)
|
||||||
this.city_array.push( this.local_city1)
|
|
||||||
// val.answers = null
|
// val.answers = null
|
||||||
if(this.city_array[this.json_index] == undefined){
|
|
||||||
|
console.log( this.city_array[this.json_index])
|
||||||
|
if(this.city_array[this.json_index] == undefined ){
|
||||||
val.answers = this.local_city1
|
val.answers = this.local_city1
|
||||||
|
// this.city_array=[]
|
||||||
|
this.city_array.push( this.local_city1)
|
||||||
}else{
|
}else{
|
||||||
this.city_array[this.json_index] = this.local_city1
|
if( this.city_array[this.json_index] == null){
|
||||||
|
this.city_array[this.json_index] = this.local_city1
|
||||||
|
}
|
||||||
|
|
||||||
val.answers = this.city_array[this.json_index]
|
val.answers = this.city_array[this.json_index]
|
||||||
}
|
}
|
||||||
|
// this.ngOnChanges()
|
||||||
//console.log( this.city_array[0] )
|
console.log( this.city_array )
|
||||||
// val.answers = this.city_array[this.json_index]
|
// val.answers = this.city_array[this.json_index]
|
||||||
//val.answers = local_city1
|
//val.answers = local_city1
|
||||||
// console.log(this.whole_json,this.json_index, val.answers)
|
// console.log(this.whole_json,this.json_index, val.answers)
|
||||||
}
|
}
|
||||||
else if(val.api_properties == 'local_pincode1'){
|
else if(val.api_properties == 'local_pincode1'){
|
||||||
this.local_pincode1=this.quesService.convertArrayNames(['pincode_id','pincode'], this.local_pincode1)
|
this.local_pincode1=this.quesService.convertArrayNames(['pincode_id','pincode'], this.local_pincode1)
|
||||||
this.pincode_array.push( this.local_pincode1)
|
|
||||||
// val.answers = local_pincode1
|
// val.answers = local_pincode1
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// console.log( this.pincode_array[index-1] )
|
// console.log( this.pincode_array[index-1] )
|
||||||
// }, 1000);
|
// }, 1000);
|
||||||
|
|
||||||
if(this.pincode_array[this.json_index] == undefined){
|
if(this.pincode_array[this.json_index] == undefined){
|
||||||
|
|
||||||
val.answers = this.local_pincode1
|
val.answers = this.local_pincode1
|
||||||
|
//this.pincode_array=[]
|
||||||
|
this.pincode_array.push( this.local_pincode1)
|
||||||
}else{
|
}else{
|
||||||
this.pincode_array[this.json_index] = this.local_pincode1
|
if( this.pincode_array[this.json_index] == null){
|
||||||
|
this.pincode_array[this.json_index] = this.local_pincode1
|
||||||
|
}
|
||||||
|
// this.pincode_array[this.json_index] = this.local_pincode1
|
||||||
val.answers = this.pincode_array[this.json_index]
|
val.answers = this.pincode_array[this.json_index]
|
||||||
}
|
}
|
||||||
// console.log( this.pincode_array,index)
|
console.log( this.pincode_array)
|
||||||
// val.answers = local_pincode2
|
// val.answers = local_pincode2
|
||||||
// console.log(this.whole_json, val.answers )
|
// console.log(this.whole_json, val.answers )
|
||||||
|
// this.ngOnChanges()
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -55,6 +55,8 @@ export class FormComponent implements OnInit {
|
|||||||
this.role_id = localStorage.getItem('LenderRoleID')
|
this.role_id = localStorage.getItem('LenderRoleID')
|
||||||
console.log(jsonData)
|
console.log(jsonData)
|
||||||
this.questions_JSON = this.jsonData.Json['sections'][0];
|
this.questions_JSON = this.jsonData.Json['sections'][0];
|
||||||
|
console.log( this.questions_JSON)
|
||||||
|
this.quesService.formanswers = null
|
||||||
// this.questions_JSON = this.jsonData.Json['sections'][0];
|
// this.questions_JSON = this.jsonData.Json['sections'][0];
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
}
|
}
|
||||||
@ -226,6 +228,8 @@ export class FormComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
loadTemplate() {
|
loadTemplate() {
|
||||||
|
|
||||||
|
|
||||||
this.commonFormGroup = new FormGroup({})
|
this.commonFormGroup = new FormGroup({})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,14 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
{{formGroupN.value[parent_ques.question_key] | json}}
|
{{formGroupN.value[parent_ques.question_key] | json}}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="toggle" fxLayout="row nowrap" *ngIf=" parent_ques.disable != true && parent_ques.type == '12'">
|
||||||
|
<mat-label>{{parent_ques.question}}</mat-label>
|
||||||
|
<mat-slide-toggle [formControlName]="parent_ques.question_key" [required]="parent_ques.required == true" color="primary"></mat-slide-toggle>
|
||||||
|
<ng-container *ngFor="let validation of parent_ques.validations" ngProjectAs="mat-error">
|
||||||
|
<mat-error align="end" *ngIf="formGroupN.get(parent_ques.question_key).hasError(validation.name.toLowerCase())">
|
||||||
|
{{validation.message}}</mat-error>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
<mat-form-field style="width: 100%" *ngIf="parent_ques.type == '4'">
|
<mat-form-field style="width: 100%" *ngIf="parent_ques.type == '4'">
|
||||||
<mat-label>{{parent_ques.question}}</mat-label>
|
<mat-label>{{parent_ques.question}}</mat-label>
|
||||||
<mat-select multiple [formControlName]="parent_ques.question_key"
|
<mat-select multiple [formControlName]="parent_ques.question_key"
|
||||||
|
|||||||
@ -87,4 +87,10 @@ mat-form-field {
|
|||||||
span {
|
span {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
::ng-deep .mat-select-disabled .mat-select-value {
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
::ng-deep .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix::after, .mat-input-element:disabled {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
@ -43,11 +43,12 @@ export class DynamicQuestionTemplateComponent implements OnInit {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
//let length=this.quesService.ans_length()
|
//let length=this.quesService.ans_length()
|
||||||
|
console.log(this.json_answers)
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
//alert('ans');
|
//alert('ans');
|
||||||
|
console.log(this.json_answers)
|
||||||
this.parent_ques = this.currFormArrayObj
|
this.parent_ques = this.currFormArrayObj
|
||||||
|
|
||||||
this.json_answers1=[{
|
this.json_answers1=[{
|
||||||
@ -121,7 +122,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
|
|||||||
company_name: 1}
|
company_name: 1}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if(this.json_answers!=null && this.json_answers != undefined && this.json_answers) {
|
if(this.json_answers!=null && this.json_answers != undefined && this.json_answers) {
|
||||||
|
|
||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
|
|||||||
@ -62,6 +62,7 @@ export class FormComponent implements OnInit {
|
|||||||
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
|
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
|
||||||
this.quesService.pd_all_details = this.pd_all_details
|
this.quesService.pd_all_details = this.pd_all_details
|
||||||
console.log('image_doc_params',this.image_doc_params)
|
console.log('image_doc_params',this.image_doc_params)
|
||||||
|
this.quesService.formanswers = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -134,7 +135,7 @@ export class FormComponent implements OnInit {
|
|||||||
this.getSectionData()
|
this.getSectionData()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.getExcelData();
|
// this.getExcelData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -147,7 +148,7 @@ else
|
|||||||
this.getSectionData()
|
this.getSectionData()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.getExcelData();
|
// this.getExcelData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -158,6 +159,7 @@ else
|
|||||||
// console.log("d",this.pd_all_details.form_id,Number(this.pd_all_details.form_id))
|
// console.log("d",this.pd_all_details.form_id,Number(this.pd_all_details.form_id))
|
||||||
// this.pdTriggerService.loadTemplate(Number(this.pd_all_details.form_id)).subscribe(result=>{
|
// this.pdTriggerService.loadTemplate(Number(this.pd_all_details.form_id)).subscribe(result=>{
|
||||||
let params = {"fk_entity_id":this.pd_all_details.pdmaster_details.fk_lender_id,"fk_product_id":this.pd_all_details.pdmaster_details.fk_product_id,"pd_form_id":this.pd_all_details.form_id,"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id}
|
let params = {"fk_entity_id":this.pd_all_details.pdmaster_details.fk_lender_id,"fk_product_id":this.pd_all_details.pdmaster_details.fk_product_id,"pd_form_id":this.pd_all_details.form_id,"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id}
|
||||||
|
console.log(params)
|
||||||
this.pdTriggerService.loadCreditPDTemplate(params).subscribe(result=>{
|
this.pdTriggerService.loadCreditPDTemplate(params).subscribe(result=>{
|
||||||
if(!environment.production){
|
if(!environment.production){
|
||||||
//result.dataStatus = false
|
//result.dataStatus = false
|
||||||
@ -171,8 +173,9 @@ else
|
|||||||
if (question_template.hasOwnProperty('template') && question_template.template) {
|
if (question_template.hasOwnProperty('template') && question_template.template) {
|
||||||
question_template =JSON.parse(question_template.template);
|
question_template =JSON.parse(question_template.template);
|
||||||
this.commonFormGroup = new FormGroup({})
|
this.commonFormGroup = new FormGroup({})
|
||||||
|
this.questions_JSON = []
|
||||||
this.questions_JSON = question_template;
|
this.questions_JSON = question_template;
|
||||||
|
// this.quesService.formanswers = null;
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// this.covidAnswers = null
|
// this.covidAnswers = null
|
||||||
// console.log("cleared")
|
// console.log("cleared")
|
||||||
@ -192,7 +195,10 @@ else
|
|||||||
if (question_template.hasOwnProperty('template') && question_template.template) {
|
if (question_template.hasOwnProperty('template') && question_template.template) {
|
||||||
question_template =JSON.parse(question_template.template);
|
question_template =JSON.parse(question_template.template);
|
||||||
this.commonFormGroup = new FormGroup({})
|
this.commonFormGroup = new FormGroup({})
|
||||||
|
this.questions_JSON = []
|
||||||
this.questions_JSON = question_template;
|
this.questions_JSON = question_template;
|
||||||
|
// this.quesService.formanswers = null;
|
||||||
|
// this.getSectionData()
|
||||||
// console.log(this.questions_JSON);
|
// console.log(this.questions_JSON);
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// this.covidAnswers = null
|
// this.covidAnswers = null
|
||||||
@ -231,7 +237,7 @@ else
|
|||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
// this.commonFormGroup.patchValue(data)
|
// this.commonFormGroup.patchValue(data)
|
||||||
// },1000)
|
// },1000)
|
||||||
this.getExcelData(1)
|
// this.getExcelData(1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,21 +14,30 @@ export class CaptureBtnComponent implements OnInit {
|
|||||||
@Output() singleDataEmitter = new EventEmitter
|
@Output() singleDataEmitter = new EventEmitter
|
||||||
sales_pd_type: string;
|
sales_pd_type: string;
|
||||||
role_id: string;
|
role_id: string;
|
||||||
|
disable_capture: any;
|
||||||
|
|
||||||
constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService) {
|
constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService) {
|
||||||
this.role_id = localStorage.getItem('user_role')
|
this.role_id = localStorage.getItem('user_role')
|
||||||
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
||||||
console.log(this.sales_pd_type)
|
this.disable_capture = localStorage.getItem('disable_capture')
|
||||||
|
console.log(this.disable_capture,this.sales_pd_type)
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.addMoreBtn)
|
console.log(this.addMoreBtn)
|
||||||
|
this.disable_capture = localStorage.getItem('disable_capture')
|
||||||
|
console.log(this.disable_capture,this.sales_pd_type)
|
||||||
}
|
}
|
||||||
capturedImage(event){
|
capturedImage(event){
|
||||||
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
||||||
console.log(event);
|
console.log(event);
|
||||||
let imageData= event.target.files[0]
|
let imageData= event.target.files[0]
|
||||||
|
console.log(imageData)
|
||||||
|
if(imageData == undefined){
|
||||||
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
|
}else{
|
||||||
|
|
||||||
|
|
||||||
this.ng2ImgMax.resizeImage(imageData, 450, 650).subscribe(
|
this.ng2ImgMax.resizeImage(imageData, 450, 650).subscribe(
|
||||||
result => {
|
result => {
|
||||||
|
|
||||||
@ -38,8 +47,10 @@ export class CaptureBtnComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log('😢 Oh no!', error);
|
console.log('😢 Oh no!', error);
|
||||||
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
capture(event){
|
capture(event){
|
||||||
@ -47,4 +58,7 @@ export class CaptureBtnComponent implements OnInit {
|
|||||||
let element:HTMLElement = document.getElementById('input-file') as HTMLElement
|
let element:HTMLElement = document.getElementById('input-file') as HTMLElement
|
||||||
element.click();
|
element.click();
|
||||||
}
|
}
|
||||||
|
ngOnChanges(){
|
||||||
|
this.disable_capture = localStorage.getItem('disable_capture')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -125,9 +125,9 @@
|
|||||||
<!-- <button *ngIf="image.option != 'dummy'" ion-button clear color="optblue" (click)="removeImg(i)"><mat-icon style="font-size:22px" name="md-trash"></mat-icon></button> -->
|
<!-- <button *ngIf="image.option != 'dummy'" ion-button clear color="optblue" (click)="removeImg(i)"><mat-icon style="font-size:22px" name="md-trash"></mat-icon></button> -->
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" style="justify-content: center">
|
<div fxLayout="row" style="justify-content: center">
|
||||||
<div fxLayout="column">
|
<div fxLayout="column" >
|
||||||
<span>
|
<span >
|
||||||
<app-single-capture-btn class="file-btn" (singleDataEmitter)="captureImg($event,p_i,parent_ques)"></app-single-capture-btn>
|
<app-single-capture-btn class="file-btn" (singleDataEmitter)="captureImg($event,p_i,parent_ques)"></app-single-capture-btn>
|
||||||
</span>
|
</span>
|
||||||
<!-- <button mat-raised clear color="optblue" [disabled]="sales_pd_type == '2'" (click)="captureImg(p_i,parent_ques)"><mat-icon style="font-size: 30px" name="md-camera"></mat-icon></button> -->
|
<!-- <button mat-raised clear color="optblue" [disabled]="sales_pd_type == '2'" (click)="captureImg(p_i,parent_ques)"><mat-icon style="font-size: 30px" name="md-camera"></mat-icon></button> -->
|
||||||
</div>
|
</div>
|
||||||
@ -462,12 +462,12 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
<!-- {{single_ques.value | json}} -->
|
<!-- {{single_ques.value | json}} -->
|
||||||
|
|
||||||
<div class="add-more-image" *ngIf="g_l">
|
<div class="add-more-image" *ngIf="g_l ">
|
||||||
<!-- <button mat-raised-button color="warn" style="min-width: 65px !important;" [disabled]="sales_pd_type == '2'" (click)="addData(g_i,parent_ques,group_ques.get('questions').value,$event,'camera',single_ques)">
|
<!-- <button mat-raised-button color="warn" style="min-width: 65px !important;" [disabled]="sales_pd_type == '2'" (click)="addData(g_i,parent_ques,group_ques.get('questions').value,$event,'camera',single_ques)">
|
||||||
<mat-icon>camera_alt</mat-icon>+
|
<mat-icon>camera_alt</mat-icon>+
|
||||||
</button> -->
|
</button> -->
|
||||||
<span (click)="getIndex(g_i,parent_ques,group_ques.get('questions').value,single_ques)">
|
<span (click)="getIndex(g_i,parent_ques,group_ques.get('questions').value,single_ques)">
|
||||||
<app-capture-btn class="file-btn" (imageDataEmitter)="addImage($event,g_i,parent_ques,group_ques.get('questions').value,single_ques)" ></app-capture-btn>
|
<app-capture-btn class="file-btn" (imageDataEmitter)="addImage($event,g_i,parent_ques,group_ques.get('questions').value,single_ques)" ></app-capture-btn>
|
||||||
</span>
|
</span>
|
||||||
<!-- <button class="ml-1 mr-1 hover-icon" mat-raised-button clear style="color: #f3432c" [disabled]="sales_pd_type == '2'" (click)="addData(g_i,parent_ques,group_ques.get('questions').value,$event,'camera',single_ques)"><mat-icon style="font-size:25px">camera_alt</mat-icon>+</button> -->
|
<!-- <button class="ml-1 mr-1 hover-icon" mat-raised-button clear style="color: #f3432c" [disabled]="sales_pd_type == '2'" (click)="addData(g_i,parent_ques,group_ques.get('questions').value,$event,'camera',single_ques)"><mat-icon style="font-size:25px">camera_alt</mat-icon>+</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, EventEmitter, Output,ViewChild, ElementRef } from '@angular/core';
|
import { Component, Input, EventEmitter, Output,ViewChild, ElementRef, OnDestroy, HostListener } from '@angular/core';
|
||||||
import { FormGroup, FormArray, FormBuilder, FormControl,FormControlName } from '@angular/forms';
|
import { FormGroup, FormArray, FormBuilder, FormControl,FormControlName } from '@angular/forms';
|
||||||
//import { QuesServiceProvider } from '../../providers/ques-service/ques-service';
|
//import { QuesServiceProvider } from '../../providers/ques-service/ques-service';
|
||||||
//import { SalesPdService } from '../../providers/sales-pd/sales-pd';
|
//import { SalesPdService } from '../../providers/sales-pd/sales-pd';
|
||||||
@ -45,9 +45,10 @@ import { ImageEditComponent } from './image-edit/image-edit.component';
|
|||||||
templateUrl: 'ques-template.html',
|
templateUrl: 'ques-template.html',
|
||||||
styleUrls: ['ques-template.scss']
|
styleUrls: ['ques-template.scss']
|
||||||
})
|
})
|
||||||
export class QuesTemplateComponent {
|
export class QuesTemplateComponent implements OnDestroy {
|
||||||
photoStructure = photoJSONStructure
|
photoStructure = photoJSONStructure
|
||||||
text: string;
|
text: string;
|
||||||
|
@Output() login = new EventEmitter<string>();
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
// notifier: NotifierService;
|
// notifier: NotifierService;
|
||||||
@Input() questions_JSON:any;
|
@Input() questions_JSON:any;
|
||||||
@ -87,6 +88,15 @@ export class QuesTemplateComponent {
|
|||||||
local_city1: any;
|
local_city1: any;
|
||||||
local_pincode1: any;
|
local_pincode1: any;
|
||||||
role_id: any;
|
role_id: any;
|
||||||
|
disable_capture:any=false;
|
||||||
|
|
||||||
|
|
||||||
|
// @HostListener('window:unload', ['$event'])
|
||||||
|
// unloadHandler(event) {
|
||||||
|
// console.log('window:unload');
|
||||||
|
// this.Destroy()
|
||||||
|
|
||||||
|
|
||||||
constructor( private cameraService: CameraService,public dialogRef: MatDialogRef<SectionListComponent>,private route: ActivatedRoute,private router: Router,private dialog:MatDialog,private _fb:FormBuilder,private questionService:QuestionServiceService,private SalesPdService:SalesPdService,notifier: NotifierService,private loaderService:LoaderService) {
|
constructor( private cameraService: CameraService,public dialogRef: MatDialogRef<SectionListComponent>,private route: ActivatedRoute,private router: Router,private dialog:MatDialog,private _fb:FormBuilder,private questionService:QuestionServiceService,private SalesPdService:SalesPdService,notifier: NotifierService,private loaderService:LoaderService) {
|
||||||
this.role_id = localStorage.getItem('LenderRoleID')
|
this.role_id = localStorage.getItem('LenderRoleID')
|
||||||
console.log('Hello QuesTemplateComponent Component');
|
console.log('Hello QuesTemplateComponent Component');
|
||||||
@ -99,6 +109,10 @@ export class QuesTemplateComponent {
|
|||||||
console.log(this.roleID)
|
console.log(this.roleID)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@HostListener("window:beforeunload", ["$event"]) unloadHandler(event: Event) {
|
||||||
|
console.log("Processing beforeunload...", );
|
||||||
|
this.Destroy();
|
||||||
|
}
|
||||||
ngOnChanges(){
|
ngOnChanges(){
|
||||||
|
|
||||||
//alert('abi');
|
//alert('abi');
|
||||||
@ -184,7 +198,11 @@ this.pdstatus = status.status
|
|||||||
console.log(this.pdstatus)
|
console.log(this.pdstatus)
|
||||||
// alert('pass');
|
// alert('pass');
|
||||||
console.log(sales_pd_id)
|
console.log(sales_pd_id)
|
||||||
|
if(sales_pd_id == null){
|
||||||
|
sales_pd_id = status.sales_pd_id
|
||||||
|
}
|
||||||
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
||||||
|
|
||||||
// this.checkGroupandPatchValues()
|
// this.checkGroupandPatchValues()
|
||||||
// this.loadingProvider.pdloader("Fetching Data...")
|
// this.loadingProvider.pdloader("Fetching Data...")
|
||||||
let params={sales_pd_id:sales_pd_id,section_id:this.local_ques_JSON.section_id}
|
let params={sales_pd_id:sales_pd_id,section_id:this.local_ques_JSON.section_id}
|
||||||
@ -194,27 +212,34 @@ console.log(this.pdstatus)
|
|||||||
console.log(response);
|
console.log(response);
|
||||||
if(response['dataStatus']){
|
if(response['dataStatus']){
|
||||||
// alert('3rd');
|
// alert('3rd');
|
||||||
|
console.log('response1');
|
||||||
|
this.disable_capture = false
|
||||||
|
localStorage.setItem('disable_capture','false')
|
||||||
this.raw_data_Section=response['records'][0]
|
this.raw_data_Section=response['records'][0]
|
||||||
this.original_result_data=response['records'][0].section_data
|
this.original_result_data=response['records'][0].section_data
|
||||||
this.original_result_data=JSON.parse(this.original_result_data);
|
this.original_result_data=JSON.parse(this.original_result_data);
|
||||||
console.log(this.original_result_data)
|
console.log(this.original_result_data)
|
||||||
console.log(response['records'][0].section_data)
|
console.log(JSON.parse(response['records'][0].section_data))
|
||||||
|
|
||||||
// this.original_result_data.questions=this.original_result_data.questions.filter(val=>val.question_key == 'selfie_with_person_met')
|
// this.original_result_data.questions=this.original_result_data.questions.filter(val=>val.question_key == 'selfie_with_person_met')
|
||||||
this.checkGroupandPatchValues()
|
this.checkGroupandPatchValues()
|
||||||
this.loaderService.closeMatSpinnerDialog()
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
this.disable_capture = false
|
||||||
|
|
||||||
// alert('4th');
|
// alert('4th');
|
||||||
this.sendAutomaticallyToApi()
|
this.sendAutomaticallyToApi()
|
||||||
// FOR DISPLAYING THE CUSTOMER CAPTURED IMAGE (STRUCTURED DYNAMICALLY CREATED IN FRONTEND) (***TELE PD ONLY***)
|
// FOR DISPLAYING THE CUSTOMER CAPTURED IMAGE (STRUCTURED DYNAMICALLY CREATED IN FRONTEND) (***TELE PD ONLY***)
|
||||||
|
console.log(sales_pd_id , this.sales_pd_type , this.sales_pd_type == '2', this.local_ques_JSON.section_id ,this. sales_pd_id.includes('local'))
|
||||||
if(sales_pd_id && this.sales_pd_type && this.sales_pd_type == '2' && this.local_ques_JSON.section_id == '9' && !this. sales_pd_id.includes('local')) {
|
if(sales_pd_id && this.sales_pd_type && this.sales_pd_type == '2' && this.local_ques_JSON.section_id == '9' && !this. sales_pd_id.includes('local')) {
|
||||||
let sales_rand_string = localStorage.getItem('sales_rand_string')
|
let sales_rand_string = localStorage.getItem('sales_rand_string')
|
||||||
|
console.log('response2');
|
||||||
// this.SalesPdService.getData_fromLocal('sales_rand_string').then((sales_rand_string)=>{
|
// this.SalesPdService.getData_fromLocal('sales_rand_string').then((sales_rand_string)=>{
|
||||||
let params = {"rand_string":sales_rand_string}
|
let params = {"rand_string":sales_rand_string}
|
||||||
this.SalesPdService.getSalesPDImgDataCusLink(params).subscribe(result=>{
|
this.SalesPdService.getSalesPDImgDataCusLink(params).subscribe(result=>{
|
||||||
if(result['dataStatus']){
|
if(result['dataStatus']){
|
||||||
|
this.disable_capture = true
|
||||||
this.updateCustomerImages(result['records'])
|
this.updateCustomerImages(result['records'])
|
||||||
this.checkGroupandPatchValues()
|
this.checkGroupandPatchValues()
|
||||||
}
|
}
|
||||||
@ -225,7 +250,28 @@ console.log(this.pdstatus)
|
|||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
console.log('response3');
|
||||||
// alert('5th');
|
// alert('5th');
|
||||||
|
const role = JSON.parse(localStorage.getItem("user_role"));
|
||||||
|
|
||||||
|
if (role == "20" && this.local_ques_JSON.section_id == '9' ) {
|
||||||
|
let sales_rand_string = localStorage.getItem('sales_rand_string')
|
||||||
|
// this.SalesPdService.getData_fromLocal('sales_rand_string').then((sales_rand_string)=>{
|
||||||
|
let params = {"rand_string":sales_rand_string}
|
||||||
|
this.SalesPdService.getSalesPDImgDataCusLink(params).subscribe(result=>{
|
||||||
|
if(result['dataStatus']){
|
||||||
|
//this.disable_capture = true
|
||||||
|
// localStorage.setItem('disable_capture','true')
|
||||||
|
console.log(result['records']);
|
||||||
|
this.original_result_data = []
|
||||||
|
this.updateCustomerImages(result['records'])
|
||||||
|
this.checkGroupandPatchValues()
|
||||||
|
}
|
||||||
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
|
},err=>{
|
||||||
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
|
})
|
||||||
|
}
|
||||||
this.loaderService.closeMatSpinnerDialog()
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -296,7 +342,11 @@ console.log(this.pdstatus)
|
|||||||
current_control_obj = createPhotoStructure[findRootIndex]
|
current_control_obj = createPhotoStructure[findRootIndex]
|
||||||
console.log(createPhotoStructure[findRootIndex],createPhotoStructure[findRootIndex].is_repeatable)
|
console.log(createPhotoStructure[findRootIndex],createPhotoStructure[findRootIndex].is_repeatable)
|
||||||
if(img_obj.is_multiple != '1'){
|
if(img_obj.is_multiple != '1'){
|
||||||
|
// location = element.image_location
|
||||||
|
// imgid = element.image_id
|
||||||
current_control_obj.answer_value = img_obj.img_url
|
current_control_obj.answer_value = img_obj.img_url
|
||||||
|
current_control_obj.image_location = img_obj.location
|
||||||
|
current_control_obj.image_id = img_obj.img_id
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(img_obj.hasOwnProperty('img_data') && img_obj.img_data.length > 0) {
|
if(img_obj.hasOwnProperty('img_data') && img_obj.img_data.length > 0) {
|
||||||
@ -325,6 +375,8 @@ console.log(this.pdstatus)
|
|||||||
temp_obj.question = img_obj.img_name
|
temp_obj.question = img_obj.img_name
|
||||||
temp_obj.question_key = img_obj.img_key
|
temp_obj.question_key = img_obj.img_key
|
||||||
temp_obj.answer_value = multi_obj.img_url
|
temp_obj.answer_value = multi_obj.img_url
|
||||||
|
temp_obj.image_location = multi_obj.location
|
||||||
|
temp_obj.image_id = multi_obj.img_id
|
||||||
// console.log(temp_obj);
|
// console.log(temp_obj);
|
||||||
// debugger;
|
// debugger;
|
||||||
// current_control_obj.questions_group.unshift({questions:[temp_obj]})
|
// current_control_obj.questions_group.unshift({questions:[temp_obj]})
|
||||||
@ -344,7 +396,7 @@ console.log(this.pdstatus)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
proceedonChangeProperty(local_value_obj?){
|
proceedonChangeProperty(local_value_obj?){
|
||||||
console.log("On Change Property",this.quesAnsForm.value.questions);
|
console.log("On Change Property",this.quesAnsForm.value.questions);
|
||||||
|
|
||||||
this.quesAnsForm.controls.questions['controls'].forEach((val,p_i)=>{
|
this.quesAnsForm.controls.questions['controls'].forEach((val,p_i)=>{
|
||||||
@ -412,6 +464,7 @@ console.log(this.pdstatus)
|
|||||||
|
|
||||||
// JSON QUESTION CHANGE FOR GROUP
|
// JSON QUESTION CHANGE FOR GROUP
|
||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
|
console.log(JSON.parse(this.original_result_data.section_data))
|
||||||
let form_c=single_ques
|
let form_c=single_ques
|
||||||
let form_control=this.quesAnsForm.value.questions[p_i].questions_group[g_i].questions[s_i]
|
let form_control=this.quesAnsForm.value.questions[p_i].questions_group[g_i].questions[s_i]
|
||||||
let local__g_data=this.original_result_data.questions[p_i].questions_group[g_i].questions
|
let local__g_data=this.original_result_data.questions[p_i].questions_group[g_i].questions
|
||||||
@ -421,6 +474,7 @@ console.log(this.pdstatus)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// })
|
// })
|
||||||
//---- END OF JSON QUESTION CHANGE----
|
//---- END OF JSON QUESTION CHANGE----
|
||||||
})
|
})
|
||||||
@ -457,12 +511,16 @@ console.log(this.pdstatus)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
|
||||||
|
|
||||||
this.proceedonChangeProperty(modified)
|
this.proceedonChangeProperty(modified)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.quesAnsForm.get('questions').patchValue(this.original_result_data.questions);
|
this.quesAnsForm.get('questions').patchValue(this.original_result_data.questions);
|
||||||
console.log( this.quesAnsForm)
|
console.log( this.quesAnsForm)
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
setStep(index: number) {
|
setStep(index: number) {
|
||||||
this.step = index;
|
this.step = index;
|
||||||
@ -511,6 +569,9 @@ this.proceedonChangeProperty(modified)
|
|||||||
this.tmp_control = this.questionService
|
this.tmp_control = this.questionService
|
||||||
|
|
||||||
this.current_index = index;
|
this.current_index = index;
|
||||||
|
console.log( this.current_index)
|
||||||
|
|
||||||
|
console.log( this.current_index)
|
||||||
}
|
}
|
||||||
addImage(event, index, parent_index, data,single_ques1) {
|
addImage(event, index, parent_index, data,single_ques1) {
|
||||||
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
||||||
@ -535,7 +596,13 @@ this.proceedonChangeProperty(modified)
|
|||||||
console.log(single_ques)
|
console.log(single_ques)
|
||||||
console.log(event, index);
|
console.log(event, index);
|
||||||
this.imageData = this.quesAnsForm.value.questions
|
this.imageData = this.quesAnsForm.value.questions
|
||||||
|
this.imageData.forEach(element => {
|
||||||
|
if(element.question_key == this.tmp[0].value.question_key){
|
||||||
|
index= this.imageData.indexOf(element)
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
console.log('index', index,this.current_index);
|
||||||
console.log(this.quesAnsForm.value.questions)
|
console.log(this.quesAnsForm.value.questions)
|
||||||
// console.log(this.questions_JSON.questions)
|
// console.log(this.questions_JSON.questions)
|
||||||
console.log(this.imageData);
|
console.log(this.imageData);
|
||||||
@ -554,40 +621,48 @@ this.proceedonChangeProperty(modified)
|
|||||||
console.log(geoCords);
|
console.log(geoCords);
|
||||||
console.log(this.imageData);
|
console.log(this.imageData);
|
||||||
console.log(this.current_index);
|
console.log(this.current_index);
|
||||||
this.cameraService.addWatermarks(reader.result, geoCoordinates).then(watermarked_img => {
|
this.imageData = this.quesAnsForm.value.questions
|
||||||
if (this.current_index != 'last') {
|
let tmp_index;
|
||||||
if (this.imageData[this.current_index].is_multiple == 1) {
|
this.imageData.forEach(element => {
|
||||||
console.log('multi');
|
if(element.question_key == this.tmp[0].value.question_key){
|
||||||
let img_param = {img_url: watermarked_img, is_base64: true, link: geoCoordinates};
|
tmp_index= this.imageData.indexOf(element)
|
||||||
this.imageData[this.current_index].img_data.push(img_param);
|
}
|
||||||
console.log(this.imageData)
|
|
||||||
// this.sendImage(this.imageData, this.imageData[this.current_index].img_data.length - 1);
|
|
||||||
} else {
|
|
||||||
this.imageData[this.current_index].img_url = watermarked_img;
|
|
||||||
this.imageData[this.current_index].is_base64 = true;
|
|
||||||
this.imageData[this.current_index].link = geoCoordinates;
|
|
||||||
console.log(this.imageData)
|
|
||||||
// this.sendImage(this.imageData);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.getImageName().then(result => {
|
|
||||||
console.log(result);
|
|
||||||
this.imageData.push( {
|
|
||||||
img_key: 'common_image',
|
|
||||||
img_name:this.tmp[0].value.group_title,
|
|
||||||
img_url: watermarked_img,
|
|
||||||
fk_form_id: '',
|
|
||||||
is_base64: true,
|
|
||||||
link: geoCoordinates
|
|
||||||
});
|
});
|
||||||
// let el = document.getElementById('dummy-img-more');
|
this.cameraService.addWatermarks(reader.result, geoCoordinates).then(watermarked_img => {
|
||||||
// el.scrollIntoView();
|
// if (this.current_index != 'last') {
|
||||||
setTimeout(() => {
|
// if (this.imageData[this.current_index].is_multiple == 1) {
|
||||||
this.dummyImgMoreRef.nativeElement.scrollIntoView({behavior: 'smooth', block: 'end'});
|
// console.log('multi');
|
||||||
}, 1000);
|
// let img_param = {img_url: watermarked_img, is_base64: true, link: geoCoordinates};
|
||||||
// this.sendImage(this.imageData);
|
// this.imageData[this.current_index].img_data.push(img_param);
|
||||||
});
|
// console.log(this.imageData)
|
||||||
}
|
// // this.sendImage(this.imageData, this.imageData[this.current_index].img_data.length - 1);
|
||||||
|
// } else {
|
||||||
|
// this.imageData[this.current_index].img_url = watermarked_img;
|
||||||
|
// this.imageData[this.current_index].is_base64 = true;
|
||||||
|
// this.imageData[this.current_index].link = geoCoordinates;
|
||||||
|
// console.log(this.imageData)
|
||||||
|
// // this.sendImage(this.imageData);
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// this.getImageName().then(result => {
|
||||||
|
// console.log(result);
|
||||||
|
// this.imageData.push( {
|
||||||
|
// img_key: 'common_image',
|
||||||
|
// img_name:this.tmp[0].value.group_title,
|
||||||
|
// img_url: watermarked_img,
|
||||||
|
// fk_form_id: '',
|
||||||
|
// is_base64: true,
|
||||||
|
// link: geoCoordinates
|
||||||
|
// });
|
||||||
|
// // let el = document.getElementById('dummy-img-more');
|
||||||
|
// // el.scrollIntoView();
|
||||||
|
// setTimeout(() => {
|
||||||
|
// this.dummyImgMoreRef.nativeElement.scrollIntoView({behavior: 'smooth', block: 'end'});
|
||||||
|
// }, 1000);
|
||||||
|
// // this.sendImage(this.imageData);
|
||||||
|
// });
|
||||||
|
// }
|
||||||
console.log(watermarked_img);
|
console.log(watermarked_img);
|
||||||
console.log(single_ques.controls)
|
console.log(single_ques.controls)
|
||||||
console.log(single_ques.value.question)
|
console.log(single_ques.value.question)
|
||||||
@ -656,7 +731,8 @@ this.proceedonChangeProperty(modified)
|
|||||||
parent_index
|
parent_index
|
||||||
|
|
||||||
control.push(this._fb.group({ 'questions': this._fb.array([]) }))
|
control.push(this._fb.group({ 'questions': this._fb.array([]) }))
|
||||||
let sub_childControl: any = control.controls[this.current_index + 1].get('questions') as FormArray
|
console.log(control)
|
||||||
|
let sub_childControl: any = control.controls[this.current_index+1].get('questions') as FormArray
|
||||||
console.log(sub_childControl)
|
console.log(sub_childControl)
|
||||||
console.log(data)
|
console.log(data)
|
||||||
|
|
||||||
@ -1750,7 +1826,14 @@ this.proceedonChangeProperty(modified)
|
|||||||
// alert('lastsave');
|
// alert('lastsave');
|
||||||
console.log('lastsave');
|
console.log('lastsave');
|
||||||
console.log(params);
|
console.log(params);
|
||||||
|
if(params.section_id == 9 || this.local_ques_JSON.section_id == 9){
|
||||||
|
params.questions = this.key_set(params.questions)
|
||||||
|
}
|
||||||
|
console.log(params);
|
||||||
console.log('1158',this.local_ques_JSON.section_id)
|
console.log('1158',this.local_ques_JSON.section_id)
|
||||||
|
setTimeout(() => {
|
||||||
|
|
||||||
|
|
||||||
this.SalesPdService.saveSalesPDSection(params).subscribe(response=>{
|
this.SalesPdService.saveSalesPDSection(params).subscribe(response=>{
|
||||||
if(this.local_ques_JSON.section_id != 9){
|
if(this.local_ques_JSON.section_id != 9){
|
||||||
if(response.dataStatus){
|
if(response.dataStatus){
|
||||||
@ -1771,6 +1854,7 @@ this.proceedonChangeProperty(modified)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},err=>this.loaderService.closeMatSpinnerDialog())
|
},err=>this.loaderService.closeMatSpinnerDialog())
|
||||||
|
}, 1000);
|
||||||
// this.loaderService.closeMatSpinnerDialog()
|
// this.loaderService.closeMatSpinnerDialog()
|
||||||
}
|
}
|
||||||
sendDatatoApi(section_data?){
|
sendDatatoApi(section_data?){
|
||||||
@ -1995,6 +2079,45 @@ this.proceedonChangeProperty(modified)
|
|||||||
this.sendSectiontoApi(sectionApi_param)
|
this.sendSectiontoApi(sectionApi_param)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Destroy(){
|
||||||
|
// console.clear()
|
||||||
|
console.log("dirty check",this.quesAnsForm.dirty)
|
||||||
|
if(this.local_ques_JSON.section_id == 9 && this.emittedFormGroup != null){
|
||||||
|
// FOR SENDING THE IMAGE SECTION (SECTION ID 9) JSON Structure
|
||||||
|
let form_structure=this.quesAnsForm.getRawValue().questions
|
||||||
|
form_structure.forEach((parent_ques,p_index, p_object)=>{
|
||||||
|
if(parent_ques.hasOwnProperty('is_repeatable') && parent_ques.is_repeatable != '1'){
|
||||||
|
if(parent_ques.answer_value != '' && parent_ques.answer_value != null){
|
||||||
|
//parent_ques.answer_value = 'SAVED'
|
||||||
|
if(parent_ques.is_loader == false && parent_ques.is_saved == false){
|
||||||
|
p_object.splice(p_index,1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
parent_ques.questions_group.forEach((group_ques,g_index,g_object)=>{
|
||||||
|
group_ques.questions.forEach((single_ques,s_index, s_object)=>{
|
||||||
|
if(single_ques.answer_value != '' && single_ques.answer_value != null){
|
||||||
|
// single_ques.answer_value = 'SAVED'
|
||||||
|
if(single_ques.is_loader == false && single_ques.is_saved == false){
|
||||||
|
// single_ques.is_saved = ''
|
||||||
|
// single_ques.is_loader = ''
|
||||||
|
// single_ques.is_image_status=false
|
||||||
|
g_object.splice(g_index,1)
|
||||||
|
// delete parent_ques.questions_group[g_index]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
let sectionApi_param=this.questions_JSON
|
||||||
|
sectionApi_param.questions=form_structure
|
||||||
|
sectionApi_param.is_complete=1
|
||||||
|
this.sendSectiontoApi(sectionApi_param)
|
||||||
|
}
|
||||||
|
}
|
||||||
imageReupload(single_ques){
|
imageReupload(single_ques){
|
||||||
|
|
||||||
let storage_param=this.questions_JSON
|
let storage_param=this.questions_JSON
|
||||||
@ -2097,7 +2220,7 @@ this.proceedonChangeProperty(modified)
|
|||||||
//pic.pdid = this.pdid;
|
//pic.pdid = this.pdid;
|
||||||
const imageRef = this.dialog.open(ImageEditComponent, {
|
const imageRef = this.dialog.open(ImageEditComponent, {
|
||||||
// const imageRef = this.dialog.open(CropToolsComponent, {
|
// const imageRef = this.dialog.open(CropToolsComponent, {
|
||||||
data: {'json':this.questions_JSON,img:pic,'sales_pd_id':modified.sales_pd_id,'question_key':key,'location':location,'img_id':imgid},
|
data: {'json':this.questions_JSON,img:pic,'sales_pd_id':this.sales_pd_id,'question_key':key,'location':location,'img_id':imgid},
|
||||||
maxWidth: '100vw',
|
maxWidth: '100vw',
|
||||||
maxHeight: '100vh',
|
maxHeight: '100vh',
|
||||||
height: '200%',
|
height: '200%',
|
||||||
@ -2107,8 +2230,49 @@ this.proceedonChangeProperty(modified)
|
|||||||
.subscribe(dataresult => {
|
.subscribe(dataresult => {
|
||||||
if (dataresult == 1) {
|
if (dataresult == 1) {
|
||||||
this.notifier.notify("success","Image Saved Successfully");
|
this.notifier.notify("success","Image Saved Successfully");
|
||||||
this.getSalesPDSectionFromApi(modified.sales_pd_id)
|
this.emitter.emit('1');
|
||||||
|
this.SalesPdService.nav_close.next(1);
|
||||||
|
|
||||||
|
//this.getSalesPDSectionFromApi(modified.sales_pd_id)
|
||||||
|
// this.router.navigate(['../../fly-hi/sectionlist'], {relativeTo: this.route});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
key_set(param){
|
||||||
|
let data =param
|
||||||
|
if(data instanceof Array){
|
||||||
|
|
||||||
|
|
||||||
|
data.forEach(element => {
|
||||||
|
|
||||||
|
if(element.hasOwnProperty('answer_value') ){
|
||||||
|
console.log(element)
|
||||||
|
if(element.answer_value != ''){
|
||||||
|
element.answer_value = 'saved'
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
if( element.questions_group instanceof Array){
|
||||||
|
element.questions_group.forEach(e => {
|
||||||
|
e.questions.forEach(c => {
|
||||||
|
if(c.hasOwnProperty('answer_value') ){
|
||||||
|
console.log(c)
|
||||||
|
if(c.answer_value != ''){
|
||||||
|
c.answer_value = 'saved'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,15 +17,19 @@ export class SingleCaptureBtnComponent implements OnInit {
|
|||||||
@Output() singleDataEmitter = new EventEmitter
|
@Output() singleDataEmitter = new EventEmitter
|
||||||
sales_pd_type: string;
|
sales_pd_type: string;
|
||||||
role_id: string;
|
role_id: string;
|
||||||
|
disable_capture:any;
|
||||||
|
|
||||||
constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService,private dialog: MatDialog) {
|
constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService,private dialog: MatDialog) {
|
||||||
this.role_id = localStorage.getItem('user_role')
|
this.role_id = localStorage.getItem('user_role')
|
||||||
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
||||||
console.log(this.sales_pd_type)
|
this.disable_capture = localStorage.getItem('disable_capture')
|
||||||
|
console.log(this.disable_capture,this.sales_pd_type)
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.addMoreBtn)
|
console.log(this.addMoreBtn)
|
||||||
|
this.disable_capture = localStorage.getItem('disable_capture')
|
||||||
|
console.log(this.disable_capture,this.sales_pd_type)
|
||||||
}
|
}
|
||||||
singlecapturedImage(event){
|
singlecapturedImage(event){
|
||||||
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
this.loaderService.showMatSpinnerDialog('Fetching Data...')
|
||||||
@ -50,7 +54,10 @@ export class SingleCaptureBtnComponent implements OnInit {
|
|||||||
// // this.getApiData()
|
// // this.getApiData()
|
||||||
// // }
|
// // }
|
||||||
|
|
||||||
|
if(imageData == undefined){
|
||||||
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
|
}else{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// });
|
// });
|
||||||
@ -63,8 +70,10 @@ export class SingleCaptureBtnComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log('😢 Oh no!', error);
|
console.log('😢 Oh no!', error);
|
||||||
|
this.loaderService.closeMatSpinnerDialog()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
singlecapture(event){
|
singlecapture(event){
|
||||||
@ -72,6 +81,9 @@ export class SingleCaptureBtnComponent implements OnInit {
|
|||||||
let element:HTMLElement = document.getElementById('input-files') as HTMLElement
|
let element:HTMLElement = document.getElementById('input-files') as HTMLElement
|
||||||
element.click();
|
element.click();
|
||||||
}
|
}
|
||||||
|
ngOnChanges(){
|
||||||
|
this.disable_capture = localStorage.getItem('disable_capture')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- <form [formGroup]="docsCollectedForm"> -->
|
<!-- <form [formGroup]="docsCollectedForm"> -->
|
||||||
<div style="padding: 24px !important;">
|
<div style="padding: 24px !important;">
|
||||||
<ques-template (emitter)="navigate($event)" [questions_JSON]="question_data" (imageUploadCheck)="setGroupControl($event)"></ques-template>
|
<ques-template (emitter)="navigate($event)" [questions_JSON]="question_data" (imageUploadCheck)="setGroupControl($event)"></ques-template>
|
||||||
</div>
|
</div>
|
||||||
<!-- </form> -->
|
<!-- </form> -->
|
||||||
|
|
||||||
|
|||||||
@ -46,6 +46,14 @@ export class HomePage{
|
|||||||
// @Inject(MAT_DIALOG_DATA)public pd_all_details: any ){
|
// @Inject(MAT_DIALOG_DATA)public pd_all_details: any ){
|
||||||
constructor(public dialogRef: MatDialogRef<SectionListComponent>,private dialog:MatDialog,notifier: NotifierService,private route: ActivatedRoute, private router: Router,private salesPDService:SalesPdService){
|
constructor(public dialogRef: MatDialogRef<SectionListComponent>,private dialog:MatDialog,notifier: NotifierService,private route: ActivatedRoute, private router: Router,private salesPDService:SalesPdService){
|
||||||
this.getProducts()
|
this.getProducts()
|
||||||
|
this.salesPDService.nav_close_observable$.subscribe((res) => {
|
||||||
|
console.log('nav list 3', res);
|
||||||
|
if(res == 1){
|
||||||
|
this.loadPdViewCompoent()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
getProducts(){
|
getProducts(){
|
||||||
let users:any=localStorage.getItem('user_details')
|
let users:any=localStorage.getItem('user_details')
|
||||||
@ -188,9 +196,10 @@ export class Section1 {
|
|||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.log('ionViewDidLoad HomePage');
|
console.log('ionViewDidLoad HomePage');
|
||||||
// this.cameraProvider.enableAccuracy()
|
// this.cameraProvider.enableAccuracy()
|
||||||
@ -702,7 +711,7 @@ export class Section9 {
|
|||||||
role_id: any;
|
role_id: any;
|
||||||
//network_status: ConnectionStatus
|
//network_status: ConnectionStatus
|
||||||
|
|
||||||
constructor(public dialogRef: MatDialogRef<SectionListComponent>,notifier: NotifierService,private route: ActivatedRoute,private router: Router,private dialog: MatDialog,private MatDialogModule:MatDialogModule,@Inject(MAT_DIALOG_DATA) public data: any) {
|
constructor(public dialogRef: MatDialogRef<SectionListComponent>,notifier: NotifierService,private route: ActivatedRoute,private router: Router,private dialog: MatDialog,private MatDialogModule:MatDialogModule,@Inject(MAT_DIALOG_DATA) public data: any,private salesPDService:SalesPdService) {
|
||||||
this.role_id = localStorage.getItem('user_role')
|
this.role_id = localStorage.getItem('user_role')
|
||||||
// alert('section9')
|
// alert('section9')
|
||||||
console.log('data',data)
|
console.log('data',data)
|
||||||
@ -710,6 +719,16 @@ export class Section9 {
|
|||||||
// this.route.snapshot.params['section9'];
|
// this.route.snapshot.params['section9'];
|
||||||
|
|
||||||
this.section_local= data.section_id
|
this.section_local= data.section_id
|
||||||
|
this.salesPDService.nav_close_observable$.subscribe((res) => {
|
||||||
|
console.log('nav list 3', res);
|
||||||
|
if(res == 1){
|
||||||
|
this.salesPDService.nav_close.next(0);
|
||||||
|
this.loadPdViewCompoent()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
// if(this.navParams.get('section_id')){
|
// if(this.navParams.get('section_id')){
|
||||||
// this.section_local=this.navParams.get('section_id')
|
// this.section_local=this.navParams.get('section_id')
|
||||||
// }
|
// }
|
||||||
|
|||||||
@ -15,7 +15,9 @@
|
|||||||
</button> </span>
|
</button> </span>
|
||||||
|
|
||||||
|
|
||||||
<button *ngIf="customer_link != '' && sales_pd_type == '2' ||flyHiUserId.user_role == '20' "[ngStyle]="{'color':flyHiUserId.user_role == '20' ? '#0d93a9' :'#f44336'}" mat-raised-button mat-icon-button class="hover-icon" type="button" matTooltip="Copy Link" matTooltipPosition="above" (click)="copyToClipBoard(customer_link_with_text, 'Customer Link is copied')"><mat-icon>file_copy</mat-icon></button>
|
<button *ngIf="customer_link != '' && sales_pd_type == '2' || flyHiUserId.user_role == '20'"[ngStyle]="{'color':flyHiUserId.user_role == '20' ? '#0d93a9' :'#f44336'}" mat-raised-button mat-icon-button class="hover-icon" type="button" matTooltip="Copy Link" matTooltipPosition="above" (click)="copyToClipBoard(customer_link_with_text, 'Customer Link is copied')"><mat-icon>file_copy</mat-icon></button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <button *ngIf="customer_link != '' && sales_pd_type == '2'" mat-raised-button mat-icon-button class="hover-icon" type="button" matTooltip="Send Link vai SMS" matTooltipPosition="above" (click)="shareViaSMS()" ><mat-icon>textsms</mat-icon>
|
<!-- <button *ngIf="customer_link != '' && sales_pd_type == '2'" mat-raised-button mat-icon-button class="hover-icon" type="button" matTooltip="Send Link vai SMS" matTooltipPosition="above" (click)="shareViaSMS()" ><mat-icon>textsms</mat-icon>
|
||||||
<ion-label >Send Link via SMS</ion-label>
|
<ion-label >Send Link via SMS</ion-label>
|
||||||
|
|||||||
@ -46,6 +46,7 @@ export class SectionListComponent implements OnInit {
|
|||||||
if(this.flyHiUserId.user_role == '20'){
|
if(this.flyHiUserId.user_role == '20'){
|
||||||
this.rand_string = localStorage.getItem('sales_rand_string')
|
this.rand_string = localStorage.getItem('sales_rand_string')
|
||||||
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
||||||
|
console.log( this.sales_pd_type)
|
||||||
this.sales_pd_id_PRIMARYKEY = localStorage.getItem('sales_pd_id_PRIMARYKEY')
|
this.sales_pd_id_PRIMARYKEY = localStorage.getItem('sales_pd_id_PRIMARYKEY')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,6 +65,7 @@ export class SectionListComponent implements OnInit {
|
|||||||
// this.sales_pd_type = this.route.snapshot.params['rdmstr'];
|
// this.sales_pd_type = this.route.snapshot.params['rdmstr'];
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.getTemplate()
|
this.getTemplate()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -580,6 +582,7 @@ copyToClipBoard(message,user_msg?) {
|
|||||||
|
|
||||||
// load pd view component
|
// load pd view component
|
||||||
loadPdViewCompoent() {
|
loadPdViewCompoent() {
|
||||||
|
console.log('works')
|
||||||
let user_role = localStorage.getItem('user_role')
|
let user_role = localStorage.getItem('user_role')
|
||||||
if(user_role != '20'){
|
if(user_role != '20'){
|
||||||
this.router.navigate(['../../../list-pd'], {relativeTo: this.route});
|
this.router.navigate(['../../../list-pd'], {relativeTo: this.route});
|
||||||
@ -648,4 +651,6 @@ onClickVideoChat() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import { environment } from 'environments/environment';
|
import { environment } from 'environments/environment';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable, of, forkJoin } from 'rxjs';
|
import { Observable, of, forkJoin, BehaviorSubject } from 'rxjs';
|
||||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||||
import { catchError, map } from 'rxjs/operators';
|
import { catchError, map } from 'rxjs/operators';
|
||||||
import { Observer } from 'rxjs';
|
import { Observer } from 'rxjs';
|
||||||
@ -15,6 +15,8 @@ export class SalesPdService {
|
|||||||
original_rawData:any;
|
original_rawData:any;
|
||||||
current_section:any;
|
current_section:any;
|
||||||
constructor(private _http:HttpClient) { }
|
constructor(private _http:HttpClient) { }
|
||||||
|
public nav_close:BehaviorSubject<any> = new BehaviorSubject<any>([]);
|
||||||
|
public nav_close_observable$ = this.nav_close.asObservable();
|
||||||
advancedFilter(params): Observable<any>{
|
advancedFilter(params): Observable<any>{
|
||||||
return this._http.post(api_url+'filterSalesPDList',{"records":params})
|
return this._http.post(api_url+'filterSalesPDList',{"records":params})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user