diff --git a/ng6-seed/package-lock.json b/ng6-seed/package-lock.json index 51e2373..c0236c4 100755 --- a/ng6-seed/package-lock.json +++ b/ng6-seed/package-lock.json @@ -901,15 +901,6 @@ "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": { "version": "7.2.4", "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", "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": { "version": "1.3.7", "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", "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": { "version": "6.26.0", "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", "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": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", @@ -2490,6 +2509,11 @@ "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", "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": { "version": "1.0.0", "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", "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": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", @@ -4087,6 +4120,14 @@ "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": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -4459,6 +4500,11 @@ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", "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": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -4945,6 +4991,11 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "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": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz", @@ -5789,6 +5840,55 @@ "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": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", @@ -5797,6 +5897,15 @@ "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": { "version": "5.0.0", "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", "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": { "version": "4.0.1", "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", "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": { "version": "4.1.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", "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": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz", @@ -6733,6 +7200,11 @@ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "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": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", @@ -7138,6 +7610,14 @@ "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "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": { "version": "1.0.2", "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" } }, + "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": { "version": "1.7.0", "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", "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": { "version": "2.0.2", "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": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -10503,6 +11029,16 @@ "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": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -10969,6 +11505,42 @@ "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "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": { "version": "3.0.2", "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": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz", @@ -12514,6 +13091,11 @@ "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": { "version": "3.1.1", "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": { "version": "4.28.4", "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", "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": { "version": "3.6.4", "resolved": "https://registry.npmjs.org/when/-/when-3.6.4.tgz", diff --git a/ng6-seed/src/app/fly-hi/fly-hi-list/fly-hi-list.component.ts b/ng6-seed/src/app/fly-hi/fly-hi-list/fly-hi-list.component.ts index 9db41bb..a061ad1 100644 --- a/ng6-seed/src/app/fly-hi/fly-hi-list/fly-hi-list.component.ts +++ b/ng6-seed/src/app/fly-hi/fly-hi-list/fly-hi-list.component.ts @@ -64,6 +64,7 @@ export class FlyHiListComponent implements OnInit { ngOnInit() { this.getListofFlyhi() + localStorage.setItem('sales_pd_type',null) } getListofFlyhi(){ diff --git a/ng6-seed/src/app/fly-hi/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts b/ng6-seed/src/app/fly-hi/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts index 873e491..2fb43a8 100644 --- a/ng6-seed/src/app/fly-hi/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts +++ b/ng6-seed/src/app/fly-hi/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts @@ -91,6 +91,9 @@ export class DynamicQuestionTemplateComponent implements OnInit { } } + ngAfterViewInit(){ + this.ngOnChanges() + } ngOnChanges() { //alert('ans'); 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))) // debugger; 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=>{ if(res['dataStatus']){ this.local_city1=res['records'].cities this.local_pincode1=res['records'].pincode + // console.log( local_city1,local_pincode1) this.whole_json.forEach((val,index)=>{ // let i= index-2 - // console.log( params) + console.log( this.json_index,index) 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) // console.log( this.local_city1) - this.city_array.push( this.local_city1) + // 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 + // this.city_array=[] + this.city_array.push( this.local_city1) }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] } - - //console.log( this.city_array[0] ) + // this.ngOnChanges() + console.log( this.city_array ) // val.answers = this.city_array[this.json_index] //val.answers = local_city1 // console.log(this.whole_json,this.json_index, val.answers) } else if(val.api_properties == '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 // setTimeout(() => { // console.log( this.pincode_array[index-1] ) // }, 1000); if(this.pincode_array[this.json_index] == undefined){ + val.answers = this.local_pincode1 + //this.pincode_array=[] + this.pincode_array.push( this.local_pincode1) }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] } - // console.log( this.pincode_array,index) + console.log( this.pincode_array) // val.answers = local_pincode2 // console.log(this.whole_json, val.answers ) + // this.ngOnChanges() } }) diff --git a/ng6-seed/src/app/fly-hi/forms-dynamic/form/form.component.ts b/ng6-seed/src/app/fly-hi/forms-dynamic/form/form.component.ts index 6b10133..edea2d0 100644 --- a/ng6-seed/src/app/fly-hi/forms-dynamic/form/form.component.ts +++ b/ng6-seed/src/app/fly-hi/forms-dynamic/form/form.component.ts @@ -55,6 +55,8 @@ export class FormComponent implements OnInit { this.role_id = localStorage.getItem('LenderRoleID') console.log(jsonData) 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.notifier = notifier; } @@ -226,6 +228,8 @@ export class FormComponent implements OnInit { // } } loadTemplate() { + + this.commonFormGroup = new FormGroup({}) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html index 8187b1e..617e0c6 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html @@ -90,7 +90,14 @@ {{formGroupN.value[parent_ques.question_key] | json}} - +
+ {{parent_ques.question}}   + + + + {{validation.message}} + +
{{parent_ques.question}} { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/form/form.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/form/form.component.ts index 8d3c889..1d14821 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/form/form.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/form/form.component.ts @@ -62,6 +62,7 @@ export class FormComponent implements OnInit { this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''} this.quesService.pd_all_details = this.pd_all_details console.log('image_doc_params',this.image_doc_params) + this.quesService.formanswers = null; } ngOnInit() { @@ -134,7 +135,7 @@ export class FormComponent implements OnInit { this.getSectionData() } else{ - this.getExcelData(); + // this.getExcelData(); } @@ -147,7 +148,7 @@ else this.getSectionData() } 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)) // 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} + console.log(params) this.pdTriggerService.loadCreditPDTemplate(params).subscribe(result=>{ if(!environment.production){ //result.dataStatus = false @@ -171,8 +173,9 @@ else if (question_template.hasOwnProperty('template') && question_template.template) { question_template =JSON.parse(question_template.template); this.commonFormGroup = new FormGroup({}) + this.questions_JSON = [] this.questions_JSON = question_template; - + // this.quesService.formanswers = null; // setTimeout(() => { // this.covidAnswers = null // console.log("cleared") @@ -192,7 +195,10 @@ else if (question_template.hasOwnProperty('template') && question_template.template) { question_template =JSON.parse(question_template.template); this.commonFormGroup = new FormGroup({}) + this.questions_JSON = [] this.questions_JSON = question_template; + // this.quesService.formanswers = null; + // this.getSectionData() // console.log(this.questions_JSON); // setTimeout(() => { // this.covidAnswers = null @@ -231,7 +237,7 @@ else // setTimeout(()=>{ // this.commonFormGroup.patchValue(data) // },1000) - this.getExcelData(1) + // this.getExcelData(1) } }) } diff --git a/ng6-seed/src/app/sales-pd/components/ques-template/capture-btn/capture-btn.component.ts b/ng6-seed/src/app/sales-pd/components/ques-template/capture-btn/capture-btn.component.ts index 1cf45bb..6955a3f 100644 --- a/ng6-seed/src/app/sales-pd/components/ques-template/capture-btn/capture-btn.component.ts +++ b/ng6-seed/src/app/sales-pd/components/ques-template/capture-btn/capture-btn.component.ts @@ -14,21 +14,30 @@ export class CaptureBtnComponent implements OnInit { @Output() singleDataEmitter = new EventEmitter sales_pd_type: string; role_id: string; + disable_capture: any; constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService) { this.role_id = localStorage.getItem('user_role') 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 { console.log(this.addMoreBtn) + this.disable_capture = localStorage.getItem('disable_capture') + console.log(this.disable_capture,this.sales_pd_type) } capturedImage(event){ this.loaderService.showMatSpinnerDialog('Fetching Data...') console.log(event); let imageData= event.target.files[0] - + console.log(imageData) + if(imageData == undefined){ + this.loaderService.closeMatSpinnerDialog() + }else{ + + this.ng2ImgMax.resizeImage(imageData, 450, 650).subscribe( result => { @@ -38,8 +47,10 @@ export class CaptureBtnComponent implements OnInit { }, error => { console.log('😢 Oh no!', error); + this.loaderService.closeMatSpinnerDialog() } ); + } } capture(event){ @@ -47,4 +58,7 @@ export class CaptureBtnComponent implements OnInit { let element:HTMLElement = document.getElementById('input-file') as HTMLElement element.click(); } + ngOnChanges(){ + this.disable_capture = localStorage.getItem('disable_capture') + } } diff --git a/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.html b/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.html index f037792..4087017 100755 --- a/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.html +++ b/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.html @@ -125,9 +125,9 @@
-
- - +
+ +
@@ -462,12 +462,12 @@
--> -
+
- +
diff --git a/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.ts b/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.ts index 6406a8c..84bb614 100755 --- a/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.ts +++ b/ng6-seed/src/app/sales-pd/components/ques-template/ques-template.ts @@ -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 { QuesServiceProvider } from '../../providers/ques-service/ques-service'; //import { SalesPdService } from '../../providers/sales-pd/sales-pd'; @@ -45,9 +45,10 @@ import { ImageEditComponent } from './image-edit/image-edit.component'; templateUrl: 'ques-template.html', styleUrls: ['ques-template.scss'] }) -export class QuesTemplateComponent { +export class QuesTemplateComponent implements OnDestroy { photoStructure = photoJSONStructure text: string; + @Output() login = new EventEmitter(); private notifier: NotifierService; // notifier: NotifierService; @Input() questions_JSON:any; @@ -87,6 +88,15 @@ export class QuesTemplateComponent { local_city1: any; local_pincode1: 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,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') console.log('Hello QuesTemplateComponent Component'); @@ -99,6 +109,10 @@ export class QuesTemplateComponent { console.log(this.roleID) } + @HostListener("window:beforeunload", ["$event"]) unloadHandler(event: Event) { + console.log("Processing beforeunload...", ); + this.Destroy(); + } ngOnChanges(){ //alert('abi'); @@ -184,7 +198,11 @@ this.pdstatus = status.status console.log(this.pdstatus) // alert('pass'); console.log(sales_pd_id) + if(sales_pd_id == null){ + sales_pd_id = status.sales_pd_id + } this.loaderService.showMatSpinnerDialog('Fetching Data...') + // this.checkGroupandPatchValues() // this.loadingProvider.pdloader("Fetching Data...") 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); if(response['dataStatus']){ // alert('3rd'); + console.log('response1'); + this.disable_capture = false + localStorage.setItem('disable_capture','false') this.raw_data_Section=response['records'][0] this.original_result_data=response['records'][0].section_data this.original_result_data=JSON.parse(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.checkGroupandPatchValues() this.loaderService.closeMatSpinnerDialog() } - else{ + else{ + this.disable_capture = false + // alert('4th'); this.sendAutomaticallyToApi() // 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')) { let sales_rand_string = localStorage.getItem('sales_rand_string') + console.log('response2'); // 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 this.updateCustomerImages(result['records']) this.checkGroupandPatchValues() } @@ -225,7 +250,28 @@ console.log(this.pdstatus) // }) } else{ + console.log('response3'); // 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() } } @@ -296,7 +342,11 @@ console.log(this.pdstatus) current_control_obj = createPhotoStructure[findRootIndex] console.log(createPhotoStructure[findRootIndex],createPhotoStructure[findRootIndex].is_repeatable) 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.image_location = img_obj.location + current_control_obj.image_id = img_obj.img_id } else { 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_key = img_obj.img_key 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); // debugger; // 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); this.quesAnsForm.controls.questions['controls'].forEach((val,p_i)=>{ @@ -412,6 +464,7 @@ console.log(this.pdstatus) // JSON QUESTION CHANGE FOR GROUP // setTimeout(()=>{ + console.log(JSON.parse(this.original_result_data.section_data)) let form_c=single_ques 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 @@ -421,6 +474,7 @@ console.log(this.pdstatus) } } + // }) //---- END OF JSON QUESTION CHANGE---- }) @@ -457,12 +511,16 @@ console.log(this.pdstatus) } } }) + setTimeout(() => { + + this.proceedonChangeProperty(modified) this.quesAnsForm.get('questions').patchValue(this.original_result_data.questions); console.log( this.quesAnsForm) + }, 500); } setStep(index: number) { this.step = index; @@ -511,6 +569,9 @@ this.proceedonChangeProperty(modified) this.tmp_control = this.questionService this.current_index = index; + console.log( this.current_index) + + console.log( this.current_index) } addImage(event, index, parent_index, data,single_ques1) { this.loaderService.showMatSpinnerDialog('Fetching Data...') @@ -535,7 +596,13 @@ this.proceedonChangeProperty(modified) console.log(single_ques) console.log(event, index); 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.questions_JSON.questions) console.log(this.imageData); @@ -554,40 +621,48 @@ this.proceedonChangeProperty(modified) console.log(geoCords); console.log(this.imageData); console.log(this.current_index); - this.cameraService.addWatermarks(reader.result, geoCoordinates).then(watermarked_img => { - if (this.current_index != 'last') { - if (this.imageData[this.current_index].is_multiple == 1) { - console.log('multi'); - let img_param = {img_url: watermarked_img, is_base64: true, link: geoCoordinates}; - 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 + this.imageData = this.quesAnsForm.value.questions + let tmp_index; + this.imageData.forEach(element => { + if(element.question_key == this.tmp[0].value.question_key){ + tmp_index= this.imageData.indexOf(element) + } + }); - // let el = document.getElementById('dummy-img-more'); - // el.scrollIntoView(); - setTimeout(() => { - this.dummyImgMoreRef.nativeElement.scrollIntoView({behavior: 'smooth', block: 'end'}); - }, 1000); - // this.sendImage(this.imageData); - }); - } + this.cameraService.addWatermarks(reader.result, geoCoordinates).then(watermarked_img => { + // if (this.current_index != 'last') { + // if (this.imageData[this.current_index].is_multiple == 1) { + // console.log('multi'); + // let img_param = {img_url: watermarked_img, is_base64: true, link: geoCoordinates}; + // 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(single_ques.controls) console.log(single_ques.value.question) @@ -656,7 +731,8 @@ this.proceedonChangeProperty(modified) parent_index 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(data) @@ -1750,7 +1826,14 @@ this.proceedonChangeProperty(modified) // alert('lastsave'); console.log('lastsave'); 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) + setTimeout(() => { + + this.SalesPdService.saveSalesPDSection(params).subscribe(response=>{ if(this.local_ques_JSON.section_id != 9){ if(response.dataStatus){ @@ -1771,6 +1854,7 @@ this.proceedonChangeProperty(modified) } } },err=>this.loaderService.closeMatSpinnerDialog()) + }, 1000); // this.loaderService.closeMatSpinnerDialog() } sendDatatoApi(section_data?){ @@ -1995,6 +2079,45 @@ this.proceedonChangeProperty(modified) 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){ let storage_param=this.questions_JSON @@ -2097,7 +2220,7 @@ this.proceedonChangeProperty(modified) //pic.pdid = this.pdid; const imageRef = this.dialog.open(ImageEditComponent, { // 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', maxHeight: '100vh', height: '200%', @@ -2107,8 +2230,49 @@ this.proceedonChangeProperty(modified) .subscribe(dataresult => { if (dataresult == 1) { 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 + } +} } diff --git a/ng6-seed/src/app/sales-pd/components/ques-template/single-capture-btn/single-capture-btn.component.ts b/ng6-seed/src/app/sales-pd/components/ques-template/single-capture-btn/single-capture-btn.component.ts index 5a98dc1..20ccad7 100644 --- a/ng6-seed/src/app/sales-pd/components/ques-template/single-capture-btn/single-capture-btn.component.ts +++ b/ng6-seed/src/app/sales-pd/components/ques-template/single-capture-btn/single-capture-btn.component.ts @@ -17,15 +17,19 @@ export class SingleCaptureBtnComponent implements OnInit { @Output() singleDataEmitter = new EventEmitter sales_pd_type: string; role_id: string; + disable_capture:any; constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService,private dialog: MatDialog) { this.role_id = localStorage.getItem('user_role') 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 { console.log(this.addMoreBtn) + this.disable_capture = localStorage.getItem('disable_capture') + console.log(this.disable_capture,this.sales_pd_type) } singlecapturedImage(event){ this.loaderService.showMatSpinnerDialog('Fetching Data...') @@ -50,7 +54,10 @@ export class SingleCaptureBtnComponent implements OnInit { // // this.getApiData() // // } - + if(imageData == undefined){ + this.loaderService.closeMatSpinnerDialog() + }else{ + // }); @@ -63,8 +70,10 @@ export class SingleCaptureBtnComponent implements OnInit { }, error => { console.log('😢 Oh no!', error); + this.loaderService.closeMatSpinnerDialog() } ); + } } singlecapture(event){ @@ -72,6 +81,9 @@ export class SingleCaptureBtnComponent implements OnInit { let element:HTMLElement = document.getElementById('input-files') as HTMLElement element.click(); } + ngOnChanges(){ + this.disable_capture = localStorage.getItem('disable_capture') + } } diff --git a/ng6-seed/src/app/sales-pd/home/home.html b/ng6-seed/src/app/sales-pd/home/home.html index cce38af..b53f3db 100755 --- a/ng6-seed/src/app/sales-pd/home/home.html +++ b/ng6-seed/src/app/sales-pd/home/home.html @@ -11,7 +11,7 @@
- +
diff --git a/ng6-seed/src/app/sales-pd/home/home.ts b/ng6-seed/src/app/sales-pd/home/home.ts index abc7fcd..e87bdba 100755 --- a/ng6-seed/src/app/sales-pd/home/home.ts +++ b/ng6-seed/src/app/sales-pd/home/home.ts @@ -46,6 +46,14 @@ export class HomePage{ // @Inject(MAT_DIALOG_DATA)public pd_all_details: any ){ constructor(public dialogRef: MatDialogRef,private dialog:MatDialog,notifier: NotifierService,private route: ActivatedRoute, private router: Router,private salesPDService:SalesPdService){ this.getProducts() + this.salesPDService.nav_close_observable$.subscribe((res) => { + console.log('nav list 3', res); + if(res == 1){ + this.loadPdViewCompoent() + } + + + }); } getProducts(){ let users:any=localStorage.getItem('user_details') @@ -188,9 +196,10 @@ export class Section1 { } }) + } - + ngOnInit() { console.log('ionViewDidLoad HomePage'); // this.cameraProvider.enableAccuracy() @@ -702,7 +711,7 @@ export class Section9 { role_id: any; //network_status: ConnectionStatus - constructor(public dialogRef: MatDialogRef,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,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') // alert('section9') console.log('data',data) @@ -710,6 +719,16 @@ export class Section9 { // this.route.snapshot.params['section9']; 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')){ // this.section_local=this.navParams.get('section_id') // } diff --git a/ng6-seed/src/app/sales-pd/section-list/section-list.component.html b/ng6-seed/src/app/sales-pd/section-list/section-list.component.html index 75fb05e..82339f7 100644 --- a/ng6-seed/src/app/sales-pd/section-list/section-list.component.html +++ b/ng6-seed/src/app/sales-pd/section-list/section-list.component.html @@ -15,7 +15,9 @@    -    +    + +