kwikid-agent-dashboard 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kwikid-agent-dashboard.umd.js +2253 -358
- package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
- package/esm2015/lib/kwikid-agent-dashboard.component.js +43 -23
- package/esm2015/lib/kwikid-agent-dashboard.module.js +84 -21
- package/esm2015/lib/v1/components/action-button/action-button.component.js +91 -0
- package/esm2015/lib/v1/components/customer-details/customer-details.component.js +139 -0
- package/esm2015/lib/v1/components/customer-list/customer-list.component.js +201 -0
- package/esm2015/lib/v1/components/customer-tile/customer-tile.component.js +135 -0
- package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.component.js +54 -0
- package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.definitions.js +36 -0
- package/esm2015/lib/v1/helpers/maps.helpers.js +46 -0
- package/esm2015/lib/v1/kwikid-agent-dashboard.component.js +176 -0
- package/esm2015/lib/v1/kwikid-agent-dashboard.module.js +120 -0
- package/esm2015/lib/v1/pipes/search-filter.pipe.js +62 -0
- package/esm2015/lib/v1/services/agent.service.js +149 -0
- package/esm2015/lib/v1/services/google-maps.service.js +201 -0
- package/esm2015/lib/v1/services/open-street-maps.service.js +252 -0
- package/esm2015/lib/v2/components/agent-info/agent-info.component.js +20 -0
- package/esm2015/lib/v2/components/agent-info/agent-info.module.js +37 -0
- package/esm2015/lib/v2/components/bottom-sheet/bottom-sheet.component.js +111 -0
- package/esm2015/lib/v2/components/bottom-sheet/bottom-sheet.module.js +41 -0
- package/esm2015/lib/v2/components/components.module.js +79 -0
- package/esm2015/lib/v2/components/map-view/map-view.component.js +39 -0
- package/esm2015/lib/v2/components/map-view/map-view.module.js +37 -0
- package/esm2015/lib/v2/components/primary-actions/primary-actions.component.js +65 -0
- package/esm2015/lib/v2/components/primary-actions/primary-actions.module.js +54 -0
- package/esm2015/lib/v2/components/task-detail/task-detail.component.js +82 -0
- package/esm2015/lib/v2/components/task-detail/task-detail.module.js +41 -0
- package/esm2015/lib/v2/components/task-item/task-item.component.js +107 -0
- package/esm2015/lib/v2/components/task-item/task-item.constant.js +12 -0
- package/esm2015/lib/v2/components/task-item/task-item.module.js +45 -0
- package/esm2015/lib/v2/components/task-item-status/task-item-status.component.js +51 -0
- package/esm2015/lib/v2/components/task-item-status/task-item-status.module.js +19 -0
- package/esm2015/lib/v2/components/task-list/task-list.component.js +186 -0
- package/esm2015/lib/v2/components/task-list/task-list.module.js +57 -0
- package/esm2015/lib/v2/components/task-list-search/task-list-search.component.js +118 -0
- package/esm2015/lib/v2/components/task-list-search/task-list-search.module.js +41 -0
- package/esm2015/lib/v2/components/task-preview/task-preview.component.js +30 -0
- package/esm2015/lib/v2/components/task-preview/task-preview.module.js +37 -0
- package/esm2015/lib/v2/helpers/array.helper.js +10 -0
- package/esm2015/lib/v2/helpers/date.helplers.js +17 -0
- package/esm2015/lib/v2/kwikid-agent-dashboard.component.js +52 -0
- package/esm2015/lib/v2/kwikid-agent-dashboard.module.js +45 -0
- package/esm2015/lib/v2/layout/layout-body/layout-body.component.js +274 -0
- package/esm2015/lib/v2/layout/layout-body/layout-body.module.js +55 -0
- package/esm2015/lib/v2/layout/layout-header/layout-header.component.js +60 -0
- package/esm2015/lib/v2/layout/layout-header/layout-header.module.js +48 -0
- package/esm2015/lib/v2/layout/layout.module.js +18 -0
- package/esm2015/lib/v2/pipes/search-filter.pipe.js +62 -0
- package/fesm2015/kwikid-agent-dashboard.js +2037 -324
- package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
- package/lib/kwikid-agent-dashboard.component.d.ts +11 -3
- package/lib/kwikid-agent-dashboard.module.d.ts +12 -6
- package/lib/v1/components/action-button/action-button.component.d.ts +18 -0
- package/lib/v1/components/customer-details/customer-details.component.d.ts +35 -0
- package/lib/v1/components/customer-list/customer-list.component.d.ts +55 -0
- package/lib/v1/components/customer-tile/customer-tile.component.d.ts +34 -0
- package/lib/v1/components/customer-tile/status-pill/status-pill.component.d.ts +15 -0
- package/lib/v1/components/customer-tile/status-pill/status-pill.definitions.d.ts +19 -0
- package/lib/v1/helpers/maps.helpers.d.ts +3 -0
- package/lib/v1/kwikid-agent-dashboard.component.d.ts +53 -0
- package/lib/v1/kwikid-agent-dashboard.module.d.ts +23 -0
- package/lib/{pipes → v1/pipes}/search-filter.pipe.d.ts +1 -1
- package/lib/v1/services/agent.service.d.ts +77 -0
- package/lib/v1/services/google-maps.service.d.ts +29 -0
- package/lib/v1/services/open-street-maps.service.d.ts +39 -0
- package/lib/{components → v2/components}/agent-info/agent-info.component.d.ts +1 -1
- package/lib/{components → v2/components}/bottom-sheet/bottom-sheet.component.d.ts +2 -2
- package/lib/{components → v2/components}/map-view/map-view.component.d.ts +1 -1
- package/lib/{components → v2/components}/primary-actions/primary-actions.component.d.ts +1 -1
- package/lib/{components → v2/components}/task-detail/task-detail.component.d.ts +1 -1
- package/lib/{components → v2/components}/task-item/task-item.component.d.ts +1 -1
- package/lib/{components → v2/components}/task-item-status/task-item-status.component.d.ts +1 -1
- package/lib/{components → v2/components}/task-list/task-list.component.d.ts +4 -4
- package/lib/{components → v2/components}/task-list-search/task-list-search.component.d.ts +3 -3
- package/lib/{components → v2/components}/task-preview/task-preview.component.d.ts +1 -1
- package/lib/v2/kwikid-agent-dashboard.component.d.ts +17 -0
- package/lib/v2/kwikid-agent-dashboard.module.d.ts +13 -0
- package/lib/{layout → v2/layout}/layout-body/layout-body.component.d.ts +3 -3
- package/lib/{layout → v2/layout}/layout-header/layout-header.component.d.ts +1 -1
- package/lib/v2/pipes/search-filter.pipe.d.ts +25 -0
- package/package.json +3 -3
- package/esm2015/lib/components/agent-info/agent-info.component.js +0 -20
- package/esm2015/lib/components/agent-info/agent-info.module.js +0 -37
- package/esm2015/lib/components/bottom-sheet/bottom-sheet.component.js +0 -111
- package/esm2015/lib/components/bottom-sheet/bottom-sheet.module.js +0 -41
- package/esm2015/lib/components/components.module.js +0 -79
- package/esm2015/lib/components/map-view/map-view.component.js +0 -39
- package/esm2015/lib/components/map-view/map-view.module.js +0 -37
- package/esm2015/lib/components/primary-actions/primary-actions.component.js +0 -65
- package/esm2015/lib/components/primary-actions/primary-actions.module.js +0 -54
- package/esm2015/lib/components/task-detail/task-detail.component.js +0 -82
- package/esm2015/lib/components/task-detail/task-detail.module.js +0 -41
- package/esm2015/lib/components/task-item/task-item.component.js +0 -109
- package/esm2015/lib/components/task-item/task-item.constant.js +0 -12
- package/esm2015/lib/components/task-item/task-item.module.js +0 -45
- package/esm2015/lib/components/task-item-status/task-item-status.component.js +0 -51
- package/esm2015/lib/components/task-item-status/task-item-status.module.js +0 -19
- package/esm2015/lib/components/task-list/task-list.component.js +0 -186
- package/esm2015/lib/components/task-list/task-list.module.js +0 -57
- package/esm2015/lib/components/task-list-search/task-list-search.component.js +0 -117
- package/esm2015/lib/components/task-list-search/task-list-search.module.js +0 -41
- package/esm2015/lib/components/task-preview/task-preview.component.js +0 -30
- package/esm2015/lib/components/task-preview/task-preview.module.js +0 -37
- package/esm2015/lib/helpers/array.helper.js +0 -10
- package/esm2015/lib/helpers/date.helplers.js +0 -17
- package/esm2015/lib/layout/layout-body/layout-body.component.js +0 -274
- package/esm2015/lib/layout/layout-body/layout-body.module.js +0 -55
- package/esm2015/lib/layout/layout-header/layout-header.component.js +0 -60
- package/esm2015/lib/layout/layout-header/layout-header.module.js +0 -48
- package/esm2015/lib/layout/layout.module.js +0 -18
- package/esm2015/lib/pipes/search-filter.pipe.js +0 -62
- package/lib/{components → v2/components}/agent-info/agent-info.module.d.ts +0 -0
- package/lib/{components → v2/components}/bottom-sheet/bottom-sheet.module.d.ts +0 -0
- package/lib/{components → v2/components}/components.module.d.ts +0 -0
- package/lib/{components → v2/components}/map-view/map-view.module.d.ts +0 -0
- package/lib/{components → v2/components}/primary-actions/primary-actions.module.d.ts +0 -0
- package/lib/{components → v2/components}/task-detail/task-detail.module.d.ts +0 -0
- package/lib/{components → v2/components}/task-item/task-item.constant.d.ts +0 -0
- package/lib/{components → v2/components}/task-item/task-item.module.d.ts +0 -0
- package/lib/{components → v2/components}/task-item-status/task-item-status.module.d.ts +0 -0
- package/lib/{components → v2/components}/task-list/task-list.module.d.ts +0 -0
- package/lib/{components → v2/components}/task-list-search/task-list-search.module.d.ts +0 -0
- package/lib/{components → v2/components}/task-preview/task-preview.module.d.ts +0 -0
- package/lib/{helpers → v2/helpers}/array.helper.d.ts +0 -0
- package/lib/{helpers → v2/helpers}/date.helplers.d.ts +1 -1
- /package/lib/{layout → v2/layout}/layout-body/layout-body.module.d.ts +0 -0
- /package/lib/{layout → v2/layout}/layout-header/layout-header.module.d.ts +0 -0
- /package/lib/{layout → v2/layout}/layout.module.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikui'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/animations'), require('@taiga-ui/addon-preview'), require('kwikid-toolkit'), require('@taiga-ui/kit'), require('@angular/common'), require('@taiga-ui/core/directives/dropdown'), require('kwikid-forms'), require('@angular/forms'), require('@angular/cdk/scrolling')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', 'kwikui', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/animations', '@taiga-ui/addon-preview', 'kwikid-toolkit', '@taiga-ui/kit', '@angular/common', '@taiga-ui/core/directives/dropdown', 'kwikid-forms', '@angular/forms', '@angular/cdk/scrolling'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.i1, global["@taiga-ui/cdk"], global["@taiga-ui/core"], global.ng.animations, global["@taiga-ui/addon-preview"], global.kwikidToolkit, global["@taiga-ui/kit"], global.ng.common, global.i6, global.i3$
|
|
5
|
-
})(this, (function (exports, i0, i1, i2, i3, animations, i8, kwikidToolkit, i1$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikui'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/animations'), require('@taiga-ui/addon-preview'), require('kwikid-toolkit'), require('@taiga-ui/kit'), require('@angular/common'), require('@taiga-ui/core/directives/dropdown'), require('kwikid-forms'), require('@angular/forms'), require('@angular/google-maps'), require('rxjs/operators'), require('rxjs'), require('@angular/common/http'), require('leaflet'), require('leaflet-routing-machine'), require('@angular/cdk/scrolling'), require('@taiga-ui/addon-mobile')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', 'kwikui', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/animations', '@taiga-ui/addon-preview', 'kwikid-toolkit', '@taiga-ui/kit', '@angular/common', '@taiga-ui/core/directives/dropdown', 'kwikid-forms', '@angular/forms', '@angular/google-maps', 'rxjs/operators', 'rxjs', '@angular/common/http', 'leaflet', 'leaflet-routing-machine', '@angular/cdk/scrolling', '@taiga-ui/addon-mobile'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.i1, global["@taiga-ui/cdk"], global["@taiga-ui/core"], global.ng.animations, global["@taiga-ui/addon-preview"], global.kwikidToolkit, global["@taiga-ui/kit"], global.ng.common, global.i6, global.i3$1, global.ng.forms, global.ng.googleMaps, global.rxjs.operators, global.rxjs, global.ng.common.http, global.L, null, global.ng.cdk.scrolling, global["@taiga-ui/addon-mobile"]));
|
|
5
|
+
})(this, (function (exports, i0, i1, i2, i3, animations, i8, kwikidToolkit, i1$1, i7, i6, i3$1, i2$1, i2$2, operators, rxjs, i3$2, L, leafletRoutingMachine, i5, addonMobile) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -28,10 +28,14 @@
|
|
|
28
28
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
29
29
|
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
30
30
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
|
-
var
|
|
31
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
32
32
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
33
|
-
var i3__namespace$
|
|
33
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
34
34
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
35
|
+
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
36
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
37
|
+
var L__namespace = /*#__PURE__*/_interopNamespace(L);
|
|
38
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
35
39
|
|
|
36
40
|
/******************************************************************************
|
|
37
41
|
Copyright (c) Microsoft Corporation.
|
|
@@ -538,7 +542,7 @@
|
|
|
538
542
|
this.open = active && this.open;
|
|
539
543
|
};
|
|
540
544
|
LayoutHeaderComponent.prototype.logout = function () {
|
|
541
|
-
this.handleOnClickPerformAction({ type:
|
|
545
|
+
this.handleOnClickPerformAction({ action: { type: "logout" } });
|
|
542
546
|
};
|
|
543
547
|
LayoutHeaderComponent.prototype.handleOnGetTaskList = function (event) {
|
|
544
548
|
this.onGetTaskList.emit(event);
|
|
@@ -549,13 +553,13 @@
|
|
|
549
553
|
return LayoutHeaderComponent;
|
|
550
554
|
}());
|
|
551
555
|
/** @nocollapse */ LayoutHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
552
|
-
/** @nocollapse */ LayoutHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutHeaderComponent, selector: "layout-header", inputs: { config: "config", agentInfo: "agentInfo" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<div id=\"header-container\">\n <div id=\"client-information-wrapper\">\n <img
|
|
556
|
+
/** @nocollapse */ LayoutHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutHeaderComponent, selector: "layout-header", inputs: { config: "config", agentInfo: "agentInfo" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<div id=\"header-container\">\n <div id=\"client-information-wrapper\">\n <img\n id=\"client-logo\"\n [src]=\"config?.theme?.clientLogo\"\n />\n </div>\n <div id=\"actions-wrapper\">\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button\n [icon]=\"'tuiIconSettingsLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"l\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <div class=\"menu-dropdown-header-agent-name\">\n {{ agentInfo?.agent_name ?? \"Welcome\" }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID:\n {{ agentInfo?.agent_id }}\n </div>\n </div>\n <hr />\n <div\n class=\"menu-dropdown-body\"\n tuiGroup\n [collapsed]=\"true\"\n [rounded]=\"false\"\n [orientation]=\"'vertical'\"\n [size]=\"'m'\"\n >\n <kwikui-button\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Refresh\"\n [icon]=\"'tuiIconRefreshCw'\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"refreshPage()\"\n ></kwikui-button>\n </div>\n <hr />\n <div class=\"menu-dropdown-footer\">\n <kwikui-button\n id=\"\"\n label=\"Logout\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconLogOut'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"logout()\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n</div>\n", styles: ["#header-container{display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;padding:1rem}#header-container #client-information-wrapper{height:100%;width:100%}#header-container #client-information-wrapper #client-logo{height:100%}#header-container #client-information-wrapper #client-name{height:100%;width:100%;font-size:1.25rem;font-weight:600}#header-container #actions-wrapper{display:flex;flex-direction:row;align-items:center}#header-container #actions-wrapper>*{margin-right:.5rem}.menu-dropdown{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;grid-gap:.5rem;gap:.5rem;padding:1rem 1.5rem}.menu-dropdown .menu-dropdown-header{display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:flex-start;grid-gap:.5rem;gap:.5rem}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-name{font-size:1.2rem;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i3__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }] });
|
|
553
557
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderComponent, decorators: [{
|
|
554
558
|
type: i0.Component,
|
|
555
559
|
args: [{
|
|
556
|
-
selector:
|
|
557
|
-
templateUrl:
|
|
558
|
-
styleUrls: [
|
|
560
|
+
selector: "layout-header",
|
|
561
|
+
templateUrl: "./layout-header.component.html",
|
|
562
|
+
styleUrls: ["./layout-header.component.scss"]
|
|
559
563
|
}]
|
|
560
564
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
561
565
|
type: i0.Input
|
|
@@ -596,7 +600,7 @@
|
|
|
596
600
|
}
|
|
597
601
|
finally { if (e_1) throw e_1.error; }
|
|
598
602
|
}
|
|
599
|
-
if (verifyChange(
|
|
603
|
+
if (verifyChange("primaryActionsConfig")) {
|
|
600
604
|
this.primaryActionsConfig = changes.primaryActionsConfig.currentValue;
|
|
601
605
|
this.primaryActionsConfig.map(i2.ALWAYS_FALSE_HANDLER);
|
|
602
606
|
}
|
|
@@ -614,7 +618,7 @@
|
|
|
614
618
|
return PrimaryActionsComponent;
|
|
615
619
|
}());
|
|
616
620
|
/** @nocollapse */ PrimaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
617
|
-
/** @nocollapse */ PrimaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PrimaryActionsComponent, selector: "primary-actions", inputs: { primaryActionsConfig: "primaryActionsConfig" }, outputs: { onClickPrimaryAction: "onClickPrimaryAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"primary-actions-container\">\n <tui-items-with-more
|
|
621
|
+
/** @nocollapse */ PrimaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PrimaryActionsComponent, selector: "primary-actions", inputs: { primaryActionsConfig: "primaryActionsConfig" }, outputs: { onClickPrimaryAction: "onClickPrimaryAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"primary-actions-container\">\n <tui-items-with-more\n tuiGroup\n [itemsLimit]=\"1\"\n >\n <ng-container *ngFor=\"let item of primaryActionsConfig; let index = index\">\n <kwikui-button\n *tuiItem\n [label]=\"item.label\"\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n styles=\"width: max-content; margin-right: 1rem; box-shadow: #32325d40 0 13px 27px -5px, #0000004d 0 8px 16px -8px;\"\n [icon]=\"item.props.iconLeft || ''\"\n [iconRight]=\"item.props.iconRight || ''\"\n (onClick)=\"handleOnClickPrimaryAction(item)\"\n ></kwikui-button>\n </ng-container>\n <ng-template\n let-lastIndex\n tuiMore\n >\n <tui-hosted-dropdown\n tuiDropdownAlign=\"right\"\n class=\"item\"\n [content]=\"dropdown\"\n >\n <kwikui-button\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n icon=\"tuiIconMoreVertical\"\n styles=\"\n box-shadow: #32325d40 0 13px 27px -5px, #0000004d 0 8px 16px -8px;\n \"\n ></kwikui-button>\n <ng-template #dropdown>\n <tui-data-list size=\"l\">\n <ng-container\n *ngFor=\"let item of primaryActionsConfig; let index = index\"\n >\n <kwikui-button\n *ngIf=\"index > lastIndex\"\n tuiOption\n [label]=\"item.label\"\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n styles=\"width: calc(100% - 1rem); margin: 0.5rem;\"\n [icon]=\"item.props.iconLeft || ''\"\n [iconRight]=\"item.props.iconRight || ''\"\n (onClick)=\"handleOnClickPrimaryAction(item)\"\n ></kwikui-button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n </ng-template>\n </tui-items-with-more>\n</div>\n", styles: ["::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:8px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:8px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#primary-actions-container{width:-moz-fit-content;width:fit-content;margin-left:auto}@media only screen and (max-width: 600px){#primary-actions-container{display:flex;flex-direction:row;flex-wrap:nowrap;grid-gap:1.5rem;gap:1.5rem;align-items:flex-start;justify-content:flex-start}}::ng-deep .t-empty{display:none!important}\n"], components: [{ type: i1__namespace$1.TuiItemsWithMoreComponent, selector: "tui-items-with-more" }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i3__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i3__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }], directives: [{ type: i1__namespace$1.TuiItemsWithMoreDirective, selector: "tui-items-with-more", inputs: ["itemsLimit", "required"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.TuiItemDirective, selector: "[tuiItem]" }, { type: i1__namespace$1.TuiMoreDirective, selector: "[tuiMore]" }, { type: i6__namespace.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
618
622
|
__decorate([
|
|
619
623
|
kwikidToolkit.logMethod
|
|
620
624
|
], PrimaryActionsComponent.prototype, "handleOnInitPrimaryActionsConfig", null);
|
|
@@ -624,9 +628,9 @@
|
|
|
624
628
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsComponent, decorators: [{
|
|
625
629
|
type: i0.Component,
|
|
626
630
|
args: [{
|
|
627
|
-
selector:
|
|
628
|
-
templateUrl:
|
|
629
|
-
styleUrls: [
|
|
631
|
+
selector: "primary-actions",
|
|
632
|
+
templateUrl: "./primary-actions.component.html",
|
|
633
|
+
styleUrls: ["./primary-actions.component.scss"],
|
|
630
634
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
631
635
|
}]
|
|
632
636
|
}], ctorParameters: function () { return []; }, propDecorators: { primaryActionsConfig: [{
|
|
@@ -665,20 +669,20 @@
|
|
|
665
669
|
}
|
|
666
670
|
finally { if (e_1) throw e_1.error; }
|
|
667
671
|
}
|
|
668
|
-
if (verifyChange(
|
|
672
|
+
if (verifyChange("mapConfig")) {
|
|
669
673
|
this.mapConfig = changes.mapConfig.currentValue;
|
|
670
674
|
}
|
|
671
675
|
};
|
|
672
676
|
return MapViewComponent;
|
|
673
677
|
}());
|
|
674
678
|
/** @nocollapse */ MapViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
675
|
-
/** @nocollapse */ MapViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapViewComponent, selector: "map-view", inputs: { mapConfig: "mapConfig" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"map-view-container\">\n <iframe\n *ngIf=\"!mapConfig?.isMapHidden\"\n src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d942.4620332111369!2d72.89243374854026!3d19.114317185214237!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7c90062467355%3A0xbc5e9528a3783c2b!2sBoomerang!5e0!3m2!1sen!2sin!4v1708350741641!5m2!1sen!2sin\"\n width=\"600\"\n height=\"450\"\n style=\"border: 0\"\n allowfullscreen=\"\"\n loading=\"lazy\"\n referrerpolicy=\"no-referrer-when-downgrade\"\n ></iframe>\n</div>\n", styles: [".map-view-container{width:100%;height:100%}.map-view-container iframe{width:100%!important;height:100%!important;position:relative}\n"], directives: [{ type:
|
|
679
|
+
/** @nocollapse */ MapViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapViewComponent, selector: "map-view", inputs: { mapConfig: "mapConfig" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"map-view-container\">\n <iframe\n *ngIf=\"!mapConfig?.isMapHidden\"\n src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d942.4620332111369!2d72.89243374854026!3d19.114317185214237!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7c90062467355%3A0xbc5e9528a3783c2b!2sBoomerang!5e0!3m2!1sen!2sin!4v1708350741641!5m2!1sen!2sin\"\n width=\"600\"\n height=\"450\"\n style=\"border: 0\"\n allowfullscreen=\"\"\n loading=\"lazy\"\n referrerpolicy=\"no-referrer-when-downgrade\"\n ></iframe>\n</div>\n", styles: [".map-view-container{width:100%;height:100%}.map-view-container iframe{width:100%!important;height:100%!important;position:relative}\n"], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
676
680
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewComponent, decorators: [{
|
|
677
681
|
type: i0.Component,
|
|
678
682
|
args: [{
|
|
679
|
-
selector:
|
|
680
|
-
templateUrl:
|
|
681
|
-
styleUrls: [
|
|
683
|
+
selector: "map-view",
|
|
684
|
+
templateUrl: "./map-view.component.html",
|
|
685
|
+
styleUrls: ["./map-view.component.scss"]
|
|
682
686
|
}]
|
|
683
687
|
}], ctorParameters: function () { return []; }, propDecorators: { mapConfig: [{
|
|
684
688
|
type: i0.Input
|
|
@@ -687,7 +691,7 @@
|
|
|
687
691
|
var TaskItemStatusComponent = /** @class */ (function () {
|
|
688
692
|
function TaskItemStatusComponent() {
|
|
689
693
|
this.styles = {};
|
|
690
|
-
this.value =
|
|
694
|
+
this.value = "";
|
|
691
695
|
}
|
|
692
696
|
TaskItemStatusComponent.prototype.ngOnInit = function () {
|
|
693
697
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -701,17 +705,17 @@
|
|
|
701
705
|
var verifyChange = function (key) {
|
|
702
706
|
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
703
707
|
};
|
|
704
|
-
if (verifyChange(
|
|
708
|
+
if (verifyChange("config")) {
|
|
705
709
|
this.config = changes.config.currentValue;
|
|
706
710
|
}
|
|
707
|
-
if (verifyChange(
|
|
711
|
+
if (verifyChange("status")) {
|
|
708
712
|
this.status = changes.status.currentValue;
|
|
709
713
|
this.setupStatus();
|
|
710
714
|
}
|
|
711
715
|
};
|
|
712
716
|
TaskItemStatusComponent.prototype.setupStatus = function () {
|
|
713
717
|
var _a, _b;
|
|
714
|
-
if (kwikidToolkit.checkObjectPathExists(this.config,
|
|
718
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "mapping") &&
|
|
715
719
|
kwikidToolkit.checkObjectKeyExists(this.config.mapping, this.status)) {
|
|
716
720
|
this.styles = this.config.mapping[this.status];
|
|
717
721
|
this.value =
|
|
@@ -721,13 +725,13 @@
|
|
|
721
725
|
return TaskItemStatusComponent;
|
|
722
726
|
}());
|
|
723
727
|
/** @nocollapse */ TaskItemStatusComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
724
|
-
/** @nocollapse */ TaskItemStatusComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemStatusComponent, selector: "task-item-status", inputs: { config: "config", status: "status" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div
|
|
728
|
+
/** @nocollapse */ TaskItemStatusComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemStatusComponent, selector: "task-item-status", inputs: { config: "config", status: "status" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"task-iem-status-container\"\n [style]=\"styles\"\n>\n {{ value }}\n</div>\n", styles: [".task-iem-status-container{width:-moz-fit-content;width:fit-content;padding:0 .4rem;font-size:.7rem;border-radius:1rem}\n"] });
|
|
725
729
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusComponent, decorators: [{
|
|
726
730
|
type: i0.Component,
|
|
727
731
|
args: [{
|
|
728
|
-
selector:
|
|
729
|
-
templateUrl:
|
|
730
|
-
styleUrls: [
|
|
732
|
+
selector: "task-item-status",
|
|
733
|
+
templateUrl: "./task-item-status.component.html",
|
|
734
|
+
styleUrls: ["./task-item-status.component.scss"]
|
|
731
735
|
}]
|
|
732
736
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
733
737
|
type: i0.Input
|
|
@@ -761,7 +765,7 @@
|
|
|
761
765
|
TaskDetailComponent.prototype.parseData = function () {
|
|
762
766
|
var _this = this;
|
|
763
767
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
764
|
-
if (kwikidToolkit.checkObjectPathExists(this.config,
|
|
768
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.details.data") &&
|
|
765
769
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.details.data) &&
|
|
766
770
|
Array.isArray(this.config.taskUI.details.data) &&
|
|
767
771
|
this.config.taskUI.details.data.length > 0) {
|
|
@@ -778,14 +782,14 @@
|
|
|
778
782
|
TaskDetailComponent.prototype.parseSessionStatus = function () {
|
|
779
783
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
780
784
|
if (((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.utilityFlags) === null || _b === void 0 ? void 0 : _b.isShowTaskStatus) &&
|
|
781
|
-
kwikidToolkit.checkObjectPathExists(this.config,
|
|
785
|
+
kwikidToolkit.checkObjectPathExists(this.config, "taskUI.details.header.taskStatus.path") &&
|
|
782
786
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.details.header.taskStatus.path)) {
|
|
783
787
|
this.status = kwikidToolkit.getObjectValueFromPath(this.taskDetail.data, (_g = (_f = (_e = (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.taskUI) === null || _d === void 0 ? void 0 : _d.details) === null || _e === void 0 ? void 0 : _e.header) === null || _f === void 0 ? void 0 : _f.taskStatus) === null || _g === void 0 ? void 0 : _g.path);
|
|
784
788
|
}
|
|
785
789
|
};
|
|
786
790
|
TaskDetailComponent.prototype.parseTaskId = function () {
|
|
787
791
|
var _a, _b, _c, _d, _e;
|
|
788
|
-
if (kwikidToolkit.checkObjectPathExists(this.config,
|
|
792
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.details.header.taskId.path") &&
|
|
789
793
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.details.header.taskId.path)) {
|
|
790
794
|
this.taskId = kwikidToolkit.getObjectValueFromPath(this.taskDetail.data, (_e = (_d = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.taskUI) === null || _b === void 0 ? void 0 : _b.details) === null || _c === void 0 ? void 0 : _c.header) === null || _d === void 0 ? void 0 : _d.taskId) === null || _e === void 0 ? void 0 : _e.path);
|
|
791
795
|
}
|
|
@@ -799,13 +803,13 @@
|
|
|
799
803
|
return TaskDetailComponent;
|
|
800
804
|
}());
|
|
801
805
|
/** @nocollapse */ TaskDetailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
802
|
-
/** @nocollapse */ TaskDetailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskDetailComponent, selector: "task-detail", inputs: { config: "config", taskDetail: "taskDetail" }, outputs: { onClickCloseTaskDetail: "onClickCloseTaskDetail" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"task-detail-container\">\n <kwikui-button\n appearance=\"primary\"\n icon=\"tuiIconChevronLeft\"\n label=\"Back\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickClose($event)\"\n ></kwikui-button>\n\n <div id=\"task-details-title\">{{ title }}</div>\n <div id=\"task-detail-header\">\n <div>{{ taskId }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.details?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n\n <div id=\"task-details-container\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n </div>\n\n <div\n id=\"task-detail-footer\"\n *ngIf=\"\n config?.taskUI?.details?.action &&\n config?.taskUI?.details?.action?.length > 0\n \"\n >\n <ng-container *ngFor=\"let action of config?.taskUI?.details?.action\">\n <kwikui-button\n [label]=\"action.label\"\n appearance=\"primary\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickPerformAction(action)\"\n ></kwikui-button>\n </ng-container>\n </div>\n</div>\n", styles: ["#task-detail-container{padding:1rem;font-size:1rem;display:flex;flex-direction:column;grid-gap:.5rem;gap:.5rem}#task-details-title{font-weight:600;font-size:1.5rem;margin:.5rem 0}#task-detail-header{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}#task-detail-footer{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }], directives: [{ type:
|
|
806
|
+
/** @nocollapse */ TaskDetailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskDetailComponent, selector: "task-detail", inputs: { config: "config", taskDetail: "taskDetail" }, outputs: { onClickCloseTaskDetail: "onClickCloseTaskDetail" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"task-detail-container\">\n <kwikui-button\n appearance=\"primary\"\n icon=\"tuiIconChevronLeft\"\n label=\"Back\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickClose($event)\"\n ></kwikui-button>\n\n <div id=\"task-details-title\">{{ title }}</div>\n <div id=\"task-detail-header\">\n <div>{{ taskId }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.details?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n\n <div id=\"task-details-container\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n </div>\n\n <div\n id=\"task-detail-footer\"\n *ngIf=\"\n config?.taskUI?.details?.action &&\n config?.taskUI?.details?.action?.length > 0\n \"\n >\n <ng-container *ngFor=\"let action of config?.taskUI?.details?.action\">\n <kwikui-button\n [label]=\"action.label\"\n appearance=\"primary\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickPerformAction(action)\"\n ></kwikui-button>\n </ng-container>\n </div>\n</div>\n", styles: ["#task-detail-container{padding:1rem;font-size:1rem;display:flex;flex-direction:column;grid-gap:.5rem;gap:.5rem}#task-details-title{font-weight:600;font-size:1.5rem;margin:.5rem 0}#task-detail-header{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}#task-detail-footer{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
803
807
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailComponent, decorators: [{
|
|
804
808
|
type: i0.Component,
|
|
805
809
|
args: [{
|
|
806
|
-
selector:
|
|
807
|
-
templateUrl:
|
|
808
|
-
styleUrls: [
|
|
810
|
+
selector: "task-detail",
|
|
811
|
+
templateUrl: "./task-detail.component.html",
|
|
812
|
+
styleUrls: ["./task-detail.component.scss"]
|
|
809
813
|
}]
|
|
810
814
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
811
815
|
type: i0.Input
|
|
@@ -860,10 +864,10 @@
|
|
|
860
864
|
var deltaY = clientY - this.startY;
|
|
861
865
|
var newHeight = this.startHeight - deltaY;
|
|
862
866
|
if (newHeight > this.startHeight) {
|
|
863
|
-
this.swipeDirection =
|
|
867
|
+
this.swipeDirection = "UP";
|
|
864
868
|
}
|
|
865
869
|
if (newHeight < this.startHeight) {
|
|
866
|
-
this.swipeDirection =
|
|
870
|
+
this.swipeDirection = "DOWN";
|
|
867
871
|
}
|
|
868
872
|
var maxHeight = window.innerHeight - 180;
|
|
869
873
|
if (newHeight >= this.minHeight && newHeight <= maxHeight) {
|
|
@@ -882,17 +886,17 @@
|
|
|
882
886
|
return undefined;
|
|
883
887
|
};
|
|
884
888
|
BottomSheetComponent.prototype.removeEventListeners = function () {
|
|
885
|
-
document.removeEventListener(
|
|
886
|
-
document.removeEventListener(
|
|
887
|
-
document.removeEventListener(
|
|
888
|
-
document.removeEventListener(
|
|
889
|
-
document.removeEventListener(
|
|
890
|
-
document.removeEventListener(
|
|
889
|
+
document.removeEventListener("mousedown", this.onMouseStart.bind(this));
|
|
890
|
+
document.removeEventListener("mousemove", this.onMouseMove.bind(this));
|
|
891
|
+
document.removeEventListener("mouseup", this.onMouseEnd.bind(this));
|
|
892
|
+
document.removeEventListener("touchend", this.onTouchMove.bind(this));
|
|
893
|
+
document.removeEventListener("touchmove", this.onTouchEnd.bind(this));
|
|
894
|
+
document.removeEventListener("touchstart", this.onTouchEnd.bind(this));
|
|
891
895
|
};
|
|
892
896
|
return BottomSheetComponent;
|
|
893
897
|
}());
|
|
894
898
|
/** @nocollapse */ BottomSheetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
895
|
-
/** @nocollapse */ BottomSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BottomSheetComponent, selector: "bottom-sheet", viewQueries: [{ propertyName: "parentElement", first: true, predicate: ["parentElement"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div
|
|
899
|
+
/** @nocollapse */ BottomSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BottomSheetComponent, selector: "bottom-sheet", viewQueries: [{ propertyName: "parentElement", first: true, predicate: ["parentElement"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div\n #parentElement\n class=\"bottom-sheet\"\n [style.height.px]=\"height\"\n>\n <div\n class=\"top-holder\"\n (mousedown)=\"onMouseStart($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseEnd($event)\"\n (touchend)=\"onTouchEnd($event)\"\n (touchmove)=\"onTouchMove($event)\"\n (touchstart)=\"onTouchStart($event)\"\n >\n <tui-svg\n *ngIf=\"isSwipeActive && swipeDirection == 'UP'\"\n src=\"tuiIconChevronUpLarge\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"isSwipeActive && swipeDirection == 'DOWN'\"\n src=\"tuiIconChevronDownLarge\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"!isSwipeActive\"\n src=\"tuiIconHrLarge\"\n ></tui-svg>\n </div>\n <!-- Use ng-content to project content into the component -->\n <div class=\"bottom-sheet-content-container\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".bottom-sheet{position:absolute;bottom:0;left:0;width:100%;background-color:#fff;box-shadow:0 -2px 6px #0000001a;overflow:auto;resize:vertical;border-top-right-radius:1rem;border-top-left-radius:1rem;display:flex;flex-direction:column;z-index:5;padding-top:1rem}.top-holder{width:100%;height:40px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;cursor:grab;z-index:1}.top-holder:focus,.top-holder:focus-within,.top-holder:active{cursor:grabbing}.resize-handle{position:absolute;bottom:0;left:0;width:100%;height:10px;cursor:ns-resize;background-color:transparent}.bottom-sheet-content-container{width:100%;height:100%;position:relative;z-index:1;overflow:auto}\n"], components: [{ type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
896
900
|
__decorate([
|
|
897
901
|
kwikidToolkit.logMethod
|
|
898
902
|
], BottomSheetComponent.prototype, "onMouseStart", null);
|
|
@@ -914,15 +918,19 @@
|
|
|
914
918
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetComponent, decorators: [{
|
|
915
919
|
type: i0.Component,
|
|
916
920
|
args: [{
|
|
917
|
-
selector:
|
|
918
|
-
templateUrl:
|
|
919
|
-
styleUrls: [
|
|
921
|
+
selector: "bottom-sheet",
|
|
922
|
+
templateUrl: "./bottom-sheet.component.html",
|
|
923
|
+
styleUrls: ["./bottom-sheet.component.scss"]
|
|
920
924
|
}]
|
|
921
925
|
}], ctorParameters: function () { return []; }, propDecorators: { parentElement: [{
|
|
922
926
|
type: i0.ViewChild,
|
|
923
|
-
args: [
|
|
927
|
+
args: ["parentElement", { static: true }]
|
|
924
928
|
}], onMouseStart: [], onMouseEnd: [], onTouchStart: [], onTouchMove: [], onTouchEnd: [], preventMouseOrTouchEvents: [] } });
|
|
925
929
|
|
|
930
|
+
var padZeroValuesInStart = function (value, digits) {
|
|
931
|
+
if (digits === void 0) { digits = 2; }
|
|
932
|
+
return String(value).padStart(digits, "0");
|
|
933
|
+
};
|
|
926
934
|
var convertKwikUIDateToStringFormat = function (event) {
|
|
927
935
|
var year = event.year;
|
|
928
936
|
var month = padZeroValuesInStart(event.month + 1, 2);
|
|
@@ -936,10 +944,6 @@
|
|
|
936
944
|
var day = padZeroValuesInStart(date.getDate());
|
|
937
945
|
return year + "-" + month + "-" + day;
|
|
938
946
|
};
|
|
939
|
-
var padZeroValuesInStart = function (value, digits) {
|
|
940
|
-
if (digits === void 0) { digits = 2; }
|
|
941
|
-
return String(value).padStart(digits, '0');
|
|
942
|
-
};
|
|
943
947
|
|
|
944
948
|
var sortItems = function (data, key, sortInAscendingOrder) {
|
|
945
949
|
if (!data || data.length === 0) {
|
|
@@ -954,7 +958,7 @@
|
|
|
954
958
|
var TaskListSearchComponent = /** @class */ (function () {
|
|
955
959
|
function TaskListSearchComponent() {
|
|
956
960
|
// Search Text
|
|
957
|
-
this.searchText =
|
|
961
|
+
this.searchText = "";
|
|
958
962
|
this.formGroup = new i2$1.FormGroup({});
|
|
959
963
|
this.sortInAscendingOrder = true;
|
|
960
964
|
// Date Range Values
|
|
@@ -962,7 +966,7 @@
|
|
|
962
966
|
this.end_time = undefined;
|
|
963
967
|
this.max = new i2.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
|
|
964
968
|
// Sorting Variables
|
|
965
|
-
this.sortFilterOptions = [
|
|
969
|
+
this.sortFilterOptions = ["name", "session_status", "mobile_number"];
|
|
966
970
|
this.activeSearchAction = undefined;
|
|
967
971
|
this.onFilterTasksByText = new i0.EventEmitter();
|
|
968
972
|
this.onFilterTasksByDate = new i0.EventEmitter();
|
|
@@ -993,7 +997,7 @@
|
|
|
993
997
|
value: new i2.TuiDayRange(new i2.TuiDay(startDate.getFullYear(), startDate.getMonth(), startDate.getDate()), this.max),
|
|
994
998
|
disabled: false
|
|
995
999
|
});
|
|
996
|
-
this.formGroup.addControl(
|
|
1000
|
+
this.formGroup.addControl("search-date", this.searchDateFormControl);
|
|
997
1001
|
this.start_time = convertNormalDateToStringFormat(startDate);
|
|
998
1002
|
this.end_time = convertNormalDateToStringFormat(null);
|
|
999
1003
|
// To get Tasks for First Time
|
|
@@ -1003,12 +1007,13 @@
|
|
|
1003
1007
|
});
|
|
1004
1008
|
};
|
|
1005
1009
|
TaskListSearchComponent.prototype.handleSearchAndSortFormControls = function () {
|
|
1006
|
-
var _a, _b;
|
|
1007
|
-
this.searchTextFormControl = new i2$1.FormControl(
|
|
1008
|
-
this.formGroup.addControl(
|
|
1009
|
-
this.sortFilterKeyFormControl = new i2$1.FormControl(
|
|
1010
|
-
this.formGroup.addControl(
|
|
1011
|
-
this.sortFilterOptions =
|
|
1010
|
+
var _a, _b, _c;
|
|
1011
|
+
this.searchTextFormControl = new i2$1.FormControl("");
|
|
1012
|
+
this.formGroup.addControl("search-text", this.searchTextFormControl);
|
|
1013
|
+
this.sortFilterKeyFormControl = new i2$1.FormControl("");
|
|
1014
|
+
this.formGroup.addControl("sort-filter", this.sortFilterKeyFormControl);
|
|
1015
|
+
this.sortFilterOptions =
|
|
1016
|
+
(_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.extendedFlags) === null || _b === void 0 ? void 0 : _b.sortFilterKeys) !== null && _c !== void 0 ? _c : this.sortFilterOptions;
|
|
1012
1017
|
};
|
|
1013
1018
|
TaskListSearchComponent.prototype.handleOnChangeSearchText = function (event) {
|
|
1014
1019
|
this.onFilterTasksByText.emit({ text: event.value });
|
|
@@ -1037,16 +1042,16 @@
|
|
|
1037
1042
|
return TaskListSearchComponent;
|
|
1038
1043
|
}());
|
|
1039
1044
|
/** @nocollapse */ TaskListSearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1040
|
-
/** @nocollapse */ TaskListSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListSearchComponent, selector: "task-list-search", inputs: { config: "config" }, outputs: { onFilterTasksByText: "onFilterTasksByText", onFilterTasksByDate: "onFilterTasksByDate", onChangeSortFilter: "onChangeSortFilter" }, ngImport: i0__namespace, template: "<div
|
|
1045
|
+
/** @nocollapse */ TaskListSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListSearchComponent, selector: "task-list-search", inputs: { config: "config" }, outputs: { onFilterTasksByText: "onFilterTasksByText", onFilterTasksByDate: "onFilterTasksByDate", onChangeSortFilter: "onChangeSortFilter" }, ngImport: i0__namespace, template: "<div\n class=\"task-list-search-container\"\n [formGroup]=\"formGroup\"\n>\n <div class=\"task-list-search-icons\">\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconSearchLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-text')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconCalendarLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-date')\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"config?.utilityFlags?.isAllowSortTasks\"\n appearance=\"mono\"\n icon=\"tuiIconFilterLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('sort-filter')\"\n ></kwikui-button>\n </div>\n\n <div\n class=\"task-list-search-action\"\n *ngIf=\"activeSearchAction\"\n >\n <kwikui-input-date-range\n *ngIf=\"activeSearchAction == 'search-date'\"\n class=\"task-list-date-box\"\n label=\"Search by Date Range\"\n id=\"dateRange\"\n size=\"m\"\n [max]=\"max\"\n [maxLength]=\"maxLength\"\n formControlName=\"search-date\"\n [formControl]=\"searchDateFormControl\"\n (getKeyValue)=\"handleOnChangeDateRange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\n *ngIf=\"activeSearchAction == 'search-text'\"\n label=\"Search\"\n id=\"search\"\n icon=\"tuiIconSearch\"\n placeholder=\"Search any task from here\"\n size=\"m\"\n [formControl]=\"searchTextFormControl\"\n formControlName=\"search-text\"\n (getKeyValue)=\"handleOnChangeSearchText($event)\"\n ></kwikui-input>\n\n <div\n *ngIf=\"activeSearchAction == 'sort-filter'\"\n class=\"task-list-sort-action\"\n >\n <kwikui-button\n appearance=\"outline\"\n [icon]=\"\n sortInAscendingOrder\n ? 'tuiIconChevronsUpLarge'\n : 'tuiIconChevronsDownLarge'\n \"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickChangeSortOrder()\"\n ></kwikui-button>\n <kwikui-input-select\n class=\"task-list-sort-key\"\n formControlName=\"sort-filter\"\n label=\"Sort By Key\"\n size=\"m\"\n [formControl]=\"sortFilterKeyFormControl\"\n [options]=\"sortFilterOptions\"\n [searchable]=\"false\"\n (getKeyValue)=\"handleOnChangeSortFilter($event)\"\n ></kwikui-input-select>\n </div>\n </div>\n</div>\n", styles: [".task-list-search-container{width:100%}.task-list-search-container .task-list-search-icons{display:flex;justify-content:flex-end;align-items:center;flex-direction:row;grid-gap:.5rem;gap:.5rem}.task-list-search-container .task-list-search-action{margin-top:.5rem}.task-list-search-container .task-list-search-action .task-list-sort-action{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}.task-list-search-container .task-list-search-action .task-list-sort-action .task-list-sort-key{flex:1}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxLength", "min", "minLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }], directives: [{ type: i2__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1041
1046
|
__decorate([
|
|
1042
1047
|
kwikidToolkit.logMethod
|
|
1043
1048
|
], TaskListSearchComponent.prototype, "handleOnChangeSearchText", null);
|
|
1044
1049
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchComponent, decorators: [{
|
|
1045
1050
|
type: i0.Component,
|
|
1046
1051
|
args: [{
|
|
1047
|
-
selector:
|
|
1048
|
-
templateUrl:
|
|
1049
|
-
styleUrls: [
|
|
1052
|
+
selector: "task-list-search",
|
|
1053
|
+
templateUrl: "./task-list-search.component.html",
|
|
1054
|
+
styleUrls: ["./task-list-search.component.scss"],
|
|
1050
1055
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1051
1056
|
}]
|
|
1052
1057
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
@@ -1060,9 +1065,9 @@
|
|
|
1060
1065
|
}], handleOnChangeSearchText: [] } });
|
|
1061
1066
|
|
|
1062
1067
|
var PREVIEW_DATA_DEFAULT_CONFIG = {
|
|
1063
|
-
separator:
|
|
1064
|
-
orientation:
|
|
1065
|
-
placeholder:
|
|
1068
|
+
separator: ":",
|
|
1069
|
+
orientation: "horizontal",
|
|
1070
|
+
placeholder: "-",
|
|
1066
1071
|
customStyles: {
|
|
1067
1072
|
label: {},
|
|
1068
1073
|
value: {},
|
|
@@ -1075,8 +1080,8 @@
|
|
|
1075
1080
|
function TaskItemComponent() {
|
|
1076
1081
|
this.config = {};
|
|
1077
1082
|
this.data = {};
|
|
1078
|
-
this.header =
|
|
1079
|
-
this.status =
|
|
1083
|
+
this.header = "";
|
|
1084
|
+
this.status = "";
|
|
1080
1085
|
this.previewConfig = {};
|
|
1081
1086
|
this.previewData = [];
|
|
1082
1087
|
this.onClickTaskItem = new i0.EventEmitter();
|
|
@@ -1095,22 +1100,20 @@
|
|
|
1095
1100
|
};
|
|
1096
1101
|
TaskItemComponent.prototype.parseHeader = function () {
|
|
1097
1102
|
var _a, _b, _c, _d;
|
|
1098
|
-
if (kwikidToolkit.checkObjectPathExists(this.config,
|
|
1103
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.header.taskId.path") &&
|
|
1099
1104
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.header.taskId.path)) {
|
|
1100
1105
|
this.header = kwikidToolkit.getObjectValueFromPath(this.data, (_d = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.taskUI) === null || _b === void 0 ? void 0 : _b.header) === null || _c === void 0 ? void 0 : _c.taskId) === null || _d === void 0 ? void 0 : _d.path);
|
|
1101
1106
|
}
|
|
1102
|
-
if (kwikidToolkit.checkObjectPathExists(this.config,
|
|
1107
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.header.taskId.maxLengthToShow") &&
|
|
1103
1108
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.header.taskId.maxLengthToShow) &&
|
|
1104
1109
|
this.header.length > this.config.taskUI.header.taskId.maxLengthToShow) {
|
|
1105
|
-
this.header =
|
|
1106
|
-
this.header.slice(0, this.config.taskUI.header.taskId.maxLengthToShow) +
|
|
1107
|
-
'...';
|
|
1110
|
+
this.header = this.header.slice(0, this.config.taskUI.header.taskId.maxLengthToShow) + "...";
|
|
1108
1111
|
}
|
|
1109
1112
|
};
|
|
1110
1113
|
TaskItemComponent.prototype.parseSessionStatus = function () {
|
|
1111
1114
|
var _a, _b, _c, _d, _e, _f;
|
|
1112
1115
|
if (((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.utilityFlags) === null || _b === void 0 ? void 0 : _b.isShowTaskStatus) &&
|
|
1113
|
-
kwikidToolkit.checkObjectPathExists(this.config,
|
|
1116
|
+
kwikidToolkit.checkObjectPathExists(this.config, "taskUI.header.taskStatus.path") &&
|
|
1114
1117
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.header.taskStatus.path)) {
|
|
1115
1118
|
this.status = kwikidToolkit.getObjectValueFromPath(this.data, (_f = (_e = (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.taskUI) === null || _d === void 0 ? void 0 : _d.header) === null || _e === void 0 ? void 0 : _e.taskStatus) === null || _f === void 0 ? void 0 : _f.path);
|
|
1116
1119
|
}
|
|
@@ -1118,7 +1121,7 @@
|
|
|
1118
1121
|
TaskItemComponent.prototype.parsePreviewData = function () {
|
|
1119
1122
|
var _this = this;
|
|
1120
1123
|
var _a, _b, _c, _d;
|
|
1121
|
-
if (kwikidToolkit.checkObjectPathExists(this.config,
|
|
1124
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.preview.data") &&
|
|
1122
1125
|
kwikidToolkit.isNotEmptyValue(this.config.taskUI.preview.data) &&
|
|
1123
1126
|
Array.isArray(this.config.taskUI.preview.data) &&
|
|
1124
1127
|
this.config.taskUI.preview.data.length > 0) {
|
|
@@ -1150,7 +1153,7 @@
|
|
|
1150
1153
|
return TaskItemComponent;
|
|
1151
1154
|
}());
|
|
1152
1155
|
/** @nocollapse */ TaskItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1153
|
-
/** @nocollapse */ TaskItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemComponent, selector: "task-item", inputs: { config: "config", data: "data" }, outputs: { onClickTaskItem: "onClickTaskItem", onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<tui-accordion\n class=\"task-item-container\"\n (click)=\"handleOnClickTaskItem($event, data)\"\n>\n <tui-accordion-item>\n <div class=\"task-item-header\">\n <div class=\"task-item-id\">{{ header }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n <ng-template tuiAccordionItemContent>\n <div class=\"task-item-preview\">\n <kwikui-label-value-pair\n [config]=\"previewConfig\"\n [data]=\"previewData\"\n ></kwikui-label-value-pair>\n </div>\n <div class=\"task-item-footer\">\n
|
|
1156
|
+
/** @nocollapse */ TaskItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemComponent, selector: "task-item", inputs: { config: "config", data: "data" }, outputs: { onClickTaskItem: "onClickTaskItem", onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<tui-accordion\n class=\"task-item-container\"\n (click)=\"handleOnClickTaskItem($event, data)\"\n>\n <tui-accordion-item>\n <div class=\"task-item-header\">\n <div class=\"task-item-id\">{{ header }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n <ng-template tuiAccordionItemContent>\n <div class=\"task-item-preview\">\n <kwikui-label-value-pair\n [config]=\"previewConfig\"\n [data]=\"previewData\"\n ></kwikui-label-value-pair>\n </div>\n <div class=\"task-item-footer\">\n <kwikui-button\n appearance=\"primary\"\n label=\"View Detail\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"handleOnClickTaskItemViewDetail($event, data)\"\n ></kwikui-button>\n </div>\n </ng-template>\n </tui-accordion-item>\n</tui-accordion>\n", styles: [".task-item-header{display:flex;flex-direction:column}.task-item-footer{margin-top:.5rem}\n"], components: [{ type: i1__namespace$1.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { type: i1__namespace$1.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }] });
|
|
1154
1157
|
__decorate([
|
|
1155
1158
|
kwikidToolkit.logMethod
|
|
1156
1159
|
], TaskItemComponent.prototype, "handleOnClickTaskItem", null);
|
|
@@ -1160,9 +1163,9 @@
|
|
|
1160
1163
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemComponent, decorators: [{
|
|
1161
1164
|
type: i0.Component,
|
|
1162
1165
|
args: [{
|
|
1163
|
-
selector:
|
|
1164
|
-
templateUrl:
|
|
1165
|
-
styleUrls: [
|
|
1166
|
+
selector: "task-item",
|
|
1167
|
+
templateUrl: "./task-item.component.html",
|
|
1168
|
+
styleUrls: ["./task-item.component.scss"]
|
|
1166
1169
|
}]
|
|
1167
1170
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
1168
1171
|
type: i0.Input
|
|
@@ -1191,10 +1194,10 @@
|
|
|
1191
1194
|
// Loaders
|
|
1192
1195
|
this.loading = false;
|
|
1193
1196
|
// Search Text
|
|
1194
|
-
this.searchText =
|
|
1197
|
+
this.searchText = "";
|
|
1195
1198
|
// Sort Filter
|
|
1196
|
-
this.sortFilterKey =
|
|
1197
|
-
this.sortInAscendingOrder =
|
|
1199
|
+
this.sortFilterKey = "";
|
|
1200
|
+
this.sortInAscendingOrder = "ASC";
|
|
1198
1201
|
// Date Range Values
|
|
1199
1202
|
this.start_time = undefined;
|
|
1200
1203
|
this.end_time = undefined;
|
|
@@ -1219,7 +1222,7 @@
|
|
|
1219
1222
|
var verifyChange = function (key) {
|
|
1220
1223
|
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
1221
1224
|
};
|
|
1222
|
-
if (verifyChange(
|
|
1225
|
+
if (verifyChange("taskItems")) {
|
|
1223
1226
|
this.toggleLoader(true);
|
|
1224
1227
|
this.taskItems = changes.taskItems.currentValue;
|
|
1225
1228
|
this.handleOnSortTaskItems(this.sortFilterKey, this.sortInAscendingOrder);
|
|
@@ -1248,9 +1251,9 @@
|
|
|
1248
1251
|
value: new i2.TuiDayRange(new i2.TuiDay(startDate.getFullYear(), startDate.getMonth(), startDate.getDate()), this.max),
|
|
1249
1252
|
disabled: false
|
|
1250
1253
|
});
|
|
1251
|
-
this.formGroup.addControl(
|
|
1252
|
-
this.searchTextFormControl = new i2$1.FormControl(
|
|
1253
|
-
this.formGroup.addControl(
|
|
1254
|
+
this.formGroup.addControl("searchDate", this.searchDataFormControl);
|
|
1255
|
+
this.searchTextFormControl = new i2$1.FormControl("");
|
|
1256
|
+
this.formGroup.addControl("searchText", this.searchTextFormControl);
|
|
1254
1257
|
this.handleOnGetTaskItems();
|
|
1255
1258
|
};
|
|
1256
1259
|
TaskListComponent.prototype.handleOnFilterTasksByText = function (event) {
|
|
@@ -1312,7 +1315,7 @@
|
|
|
1312
1315
|
if (loader) {
|
|
1313
1316
|
this.loaderService.show({
|
|
1314
1317
|
fullscreen: true,
|
|
1315
|
-
loaderText: message !== null && message !== void 0 ? message :
|
|
1318
|
+
loaderText: message !== null && message !== void 0 ? message : "Please Wait"
|
|
1316
1319
|
});
|
|
1317
1320
|
this.loading = true;
|
|
1318
1321
|
}
|
|
@@ -1327,7 +1330,7 @@
|
|
|
1327
1330
|
return TaskListComponent;
|
|
1328
1331
|
}());
|
|
1329
1332
|
/** @nocollapse */ TaskListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListComponent, deps: [{ token: i1__namespace.KwikUILoaderService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1330
|
-
/** @nocollapse */ TaskListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListComponent, selector: "task-list", inputs: { config: "config", taskItems: "taskItems" }, outputs: { onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onGetTaskList: "onGetTaskList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<kwikui-loader></kwikui-loader>\n<div id=\"task-list-container\">\n <div id=\"task-list-search-wrapper\">\n <task-list-search\n [config]=\"config\"\n (onFilterTasksByText)=\"handleOnFilterTasksByText($event)\"\n (onFilterTasksByDate)=\"handleOnFilterTasksByDate($event)\"\n (onChangeSortFilter)=\"handleOnChangeSortFilter($event)\"\n ></task-list-search>\n </div>\n <hr />\n <div\n itemSize=\"50\"\n class=\"virtualscroll-container\"\n *ngIf=\"activePageItems.length > 0 && !loading; else NO_TASKS\"\n >\n <div id=\"task-list-items-container\">\n <div\n *ngFor=\"let taskItem of activePageItems\"\n class=\"task-item-container\"\n >\n <task-item\n [config]=\"config\"\n [data]=\"taskItem\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n >\n </task-item>\n </div>\n </div>\n <div id=\"task-list-items-pagination-container\">\n <tui-pagination\n [index]=\"paginationIndex\"\n [length]=\"paginationLength\"\n (indexChange)=\"handleOnClickChangePaginationIndex($event)\"\n ></tui-pagination>\n </div>\n </div>\n <ng-template #NO_TASKS>\n <div class=\"no-tasks\">No Tasks</div>\n </ng-template>\n</div>\n", styles: ["#task-list-container{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}#task-list-container ::-webkit-scrollbar{width:8px!important}#task-list-container ::-webkit-scrollbar-track{border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb:hover{background:gray!important}#task-list-container #task-list-search-wrapper{width:100%;padding:1rem}#task-list-container .virtualscroll-container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;overflow:auto}#task-list-container .no-tasks{width:100%;height:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:1rem;font-weight:bold}#task-list-container #task-list-items-container{overflow:auto}#task-list-container #task-list-items-container>*:first-child{margin-top:1rem}#task-list-container #task-list-items-container .task-item-container{padding:0 1rem;margin-bottom:1rem}#task-list-container #task-list-items-pagination-container{padding:1rem}\n"], components: [{ type: i1__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: TaskListSearchComponent, selector: "task-list-search", inputs: ["config"], outputs: ["onFilterTasksByText", "onFilterTasksByDate", "onChangeSortFilter"] }, { type: TaskItemComponent, selector: "task-item", inputs: ["config", "data"], outputs: ["onClickTaskItem", "onClickTaskItemViewDetail", "onClickPerformAction"] }, { type: i1__namespace$1.TuiPaginationComponent, selector: "tui-pagination", inputs: ["length", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], directives: [{ type:
|
|
1333
|
+
/** @nocollapse */ TaskListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListComponent, selector: "task-list", inputs: { config: "config", taskItems: "taskItems" }, outputs: { onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onGetTaskList: "onGetTaskList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<kwikui-loader></kwikui-loader>\n<div id=\"task-list-container\">\n <div id=\"task-list-search-wrapper\">\n <task-list-search\n [config]=\"config\"\n (onFilterTasksByText)=\"handleOnFilterTasksByText($event)\"\n (onFilterTasksByDate)=\"handleOnFilterTasksByDate($event)\"\n (onChangeSortFilter)=\"handleOnChangeSortFilter($event)\"\n ></task-list-search>\n </div>\n <hr />\n <div\n itemSize=\"50\"\n class=\"virtualscroll-container\"\n *ngIf=\"activePageItems.length > 0 && !loading; else NO_TASKS\"\n >\n <div id=\"task-list-items-container\">\n <div\n *ngFor=\"let taskItem of activePageItems\"\n class=\"task-item-container\"\n >\n <task-item\n [config]=\"config\"\n [data]=\"taskItem\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n >\n </task-item>\n </div>\n </div>\n <div id=\"task-list-items-pagination-container\">\n <tui-pagination\n [index]=\"paginationIndex\"\n [length]=\"paginationLength\"\n (indexChange)=\"handleOnClickChangePaginationIndex($event)\"\n ></tui-pagination>\n </div>\n </div>\n <ng-template #NO_TASKS>\n <div class=\"no-tasks\">No Tasks</div>\n </ng-template>\n</div>\n", styles: ["#task-list-container{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}#task-list-container ::-webkit-scrollbar{width:8px!important}#task-list-container ::-webkit-scrollbar-track{border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb:hover{background:gray!important}#task-list-container #task-list-search-wrapper{width:100%;padding:1rem}#task-list-container .virtualscroll-container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;overflow:auto}#task-list-container .no-tasks{width:100%;height:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:1rem;font-weight:bold}#task-list-container #task-list-items-container{overflow:auto}#task-list-container #task-list-items-container>*:first-child{margin-top:1rem}#task-list-container #task-list-items-container .task-item-container{padding:0 1rem;margin-bottom:1rem}#task-list-container #task-list-items-pagination-container{padding:1rem}\n"], components: [{ type: i1__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: TaskListSearchComponent, selector: "task-list-search", inputs: ["config"], outputs: ["onFilterTasksByText", "onFilterTasksByDate", "onChangeSortFilter"] }, { type: TaskItemComponent, selector: "task-item", inputs: ["config", "data"], outputs: ["onClickTaskItem", "onClickTaskItemViewDetail", "onClickPerformAction"] }, { type: i1__namespace$1.TuiPaginationComponent, selector: "tui-pagination", inputs: ["length", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1331
1334
|
__decorate([
|
|
1332
1335
|
kwikidToolkit.logMethod
|
|
1333
1336
|
], TaskListComponent.prototype, "ngOnChanges", null);
|
|
@@ -1343,9 +1346,9 @@
|
|
|
1343
1346
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListComponent, decorators: [{
|
|
1344
1347
|
type: i0.Component,
|
|
1345
1348
|
args: [{
|
|
1346
|
-
selector:
|
|
1347
|
-
templateUrl:
|
|
1348
|
-
styleUrls: [
|
|
1349
|
+
selector: "task-list",
|
|
1350
|
+
templateUrl: "./task-list.component.html",
|
|
1351
|
+
styleUrls: ["./task-list.component.scss"],
|
|
1349
1352
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1350
1353
|
}]
|
|
1351
1354
|
}], ctorParameters: function () { return [{ type: i1__namespace.KwikUILoaderService }]; }, propDecorators: { config: [{
|
|
@@ -1369,15 +1372,15 @@
|
|
|
1369
1372
|
this.popupFormData = {};
|
|
1370
1373
|
this.previewProperties = {
|
|
1371
1374
|
html: {
|
|
1372
|
-
before:
|
|
1373
|
-
after:
|
|
1375
|
+
before: "",
|
|
1376
|
+
after: ""
|
|
1374
1377
|
},
|
|
1375
1378
|
iframe: {
|
|
1376
|
-
src:
|
|
1377
|
-
title:
|
|
1379
|
+
src: "",
|
|
1380
|
+
title: ""
|
|
1378
1381
|
},
|
|
1379
|
-
popupFormKey:
|
|
1380
|
-
title:
|
|
1382
|
+
popupFormKey: "",
|
|
1383
|
+
title: "",
|
|
1381
1384
|
unavailable: false
|
|
1382
1385
|
};
|
|
1383
1386
|
this.pageFormConfig = undefined;
|
|
@@ -1424,7 +1427,7 @@
|
|
|
1424
1427
|
}
|
|
1425
1428
|
finally { if (e_1) throw e_1.error; }
|
|
1426
1429
|
}
|
|
1427
|
-
if (verifyChange(
|
|
1430
|
+
if (verifyChange("taskList")) {
|
|
1428
1431
|
this.taskList = changes.taskList.currentValue;
|
|
1429
1432
|
}
|
|
1430
1433
|
};
|
|
@@ -1467,9 +1470,9 @@
|
|
|
1467
1470
|
case 0:
|
|
1468
1471
|
_c = e.type;
|
|
1469
1472
|
switch (_c) {
|
|
1470
|
-
case
|
|
1471
|
-
case
|
|
1472
|
-
case
|
|
1473
|
+
case "POPUP_FORM": return [3 /*break*/, 1];
|
|
1474
|
+
case "PAGE_FORM": return [3 /*break*/, 4];
|
|
1475
|
+
case "action_3": return [3 /*break*/, 7];
|
|
1473
1476
|
}
|
|
1474
1477
|
return [3 /*break*/, 8];
|
|
1475
1478
|
case 1:
|
|
@@ -1478,14 +1481,14 @@
|
|
|
1478
1481
|
case 2: return [4 /*yield*/, (_f.sent()).json()];
|
|
1479
1482
|
case 3:
|
|
1480
1483
|
_d.popupFormConfig = _f.sent();
|
|
1481
|
-
console.log(
|
|
1484
|
+
console.log("popupFormConfig", this.popupFormConfig);
|
|
1482
1485
|
this.previewDialogRef = this.previewDialogService
|
|
1483
|
-
.open(this.preview ||
|
|
1486
|
+
.open(this.preview || "")
|
|
1484
1487
|
.subscribe({
|
|
1485
1488
|
next: function (data) {
|
|
1486
1489
|
_this.popupFormCallback = {
|
|
1487
|
-
popupFormData: data
|
|
1488
|
-
popupFormConfig: data
|
|
1490
|
+
popupFormData: data.data,
|
|
1491
|
+
popupFormConfig: data.formConfig
|
|
1489
1492
|
};
|
|
1490
1493
|
_this.popupFormConfig = {};
|
|
1491
1494
|
_this.previewDialogRef.complete();
|
|
@@ -1496,10 +1499,10 @@
|
|
|
1496
1499
|
popupFormConfig: _this.popupFormConfig
|
|
1497
1500
|
};
|
|
1498
1501
|
_this.popupFormConfig = {};
|
|
1499
|
-
console.info(
|
|
1502
|
+
console.info("Preview error");
|
|
1500
1503
|
},
|
|
1501
1504
|
complete: function () {
|
|
1502
|
-
console.info(
|
|
1505
|
+
console.info("Preview closed");
|
|
1503
1506
|
}
|
|
1504
1507
|
});
|
|
1505
1508
|
return [3 /*break*/, 9];
|
|
@@ -1519,10 +1522,10 @@
|
|
|
1519
1522
|
};
|
|
1520
1523
|
LayoutBodyComponent.prototype.handleOnClickSaveForm = function (e, eventType) {
|
|
1521
1524
|
switch (eventType) {
|
|
1522
|
-
case
|
|
1525
|
+
case "POPUP_FORM":
|
|
1523
1526
|
this.previewDialogRef.next(e);
|
|
1524
1527
|
break;
|
|
1525
|
-
case
|
|
1528
|
+
case "PAGE_FORM":
|
|
1526
1529
|
this.pageFormConfig = undefined;
|
|
1527
1530
|
break;
|
|
1528
1531
|
default:
|
|
@@ -1532,32 +1535,32 @@
|
|
|
1532
1535
|
return LayoutBodyComponent;
|
|
1533
1536
|
}());
|
|
1534
1537
|
/** @nocollapse */ LayoutBodyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i8.TuiPreviewDialogService }, { token: i3.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1535
|
-
/** @nocollapse */ LayoutBodyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutBodyComponent, selector: "layout-body", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onClickApiCall: "onClickApiCall", onGetTaskList: "onGetTaskList" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"body-container\">\n <div\n id=\"sidebar-container\"\n *ngIf=\"!isMobileView && !activeTaskDetail\"\n [class.is-hidden]=\"!isActiveSidebar\"\n >\n <div\n id=\"sidebar-toggle\"\n *ngIf=\"!isMobileView && !activeTaskDetail && !pageFormConfig\"\n [class.is-hidden]=\"!isActiveSidebar\"\n (click)=\"handleOnClickToggleSidebar($event)\"\n >\n <tui-svg\n *ngIf=\"isActiveSidebar\"\n [src]=\"'tuiIconChevronsLeftLarge'\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"!isActiveSidebar\"\n [src]=\"'tuiIconChevronsRightLarge'\"\n ></tui-svg>\n </div>\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n </div>\n <div
|
|
1536
|
-
animations.trigger(
|
|
1537
|
-
animations.transition(
|
|
1538
|
-
animations.style({ transform:
|
|
1538
|
+
/** @nocollapse */ LayoutBodyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutBodyComponent, selector: "layout-body", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onClickApiCall: "onClickApiCall", onGetTaskList: "onGetTaskList" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"body-container\">\n <div\n id=\"sidebar-container\"\n *ngIf=\"!isMobileView && !activeTaskDetail\"\n [class.is-hidden]=\"!isActiveSidebar\"\n >\n <div\n id=\"sidebar-toggle\"\n *ngIf=\"!isMobileView && !activeTaskDetail && !pageFormConfig\"\n [class.is-hidden]=\"!isActiveSidebar\"\n (click)=\"handleOnClickToggleSidebar($event)\"\n >\n <tui-svg\n *ngIf=\"isActiveSidebar\"\n [src]=\"'tuiIconChevronsLeftLarge'\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"!isActiveSidebar\"\n [src]=\"'tuiIconChevronsRightLarge'\"\n ></tui-svg>\n </div>\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n </div>\n <div\n id=\"main-container\"\n [class.is-desktop]=\"!isMobileView\"\n >\n <div\n id=\"primary-actions-wrapper\"\n [class.is-desktop]=\"!isMobileView\"\n [class.is-nomaps]=\"config.mapConfig?.isHidden\"\n *ngIf=\"config.primaryActionsConfig\"\n >\n <primary-actions\n [primaryActionsConfig]=\"config.primaryActionsConfig\"\n (onClickPrimaryAction)=\"handleOnClickPrimaryAction($event)\"\n ></primary-actions>\n </div>\n\n <div\n class=\"kwikid-form-view-page-container\"\n *ngIf=\"pageFormConfig && pageFormConfig !== {}\"\n >\n <kwikid-form-view\n [formConfig]=\"pageFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'PAGE_FORM')\"\n ></kwikid-form-view>\n </div>\n\n <div\n id=\"map-view-wrapper\"\n [class.is-desktop]=\"!isMobileView\"\n >\n <map-view [mapConfig]=\"config.mapConfig\"></map-view>\n </div>\n\n <div\n id=\"task-detail-wrapper\"\n *ngIf=\"activeTaskDetail && isShowFullTaskDetails\"\n [@taskDetail2InOut]\n >\n <task-detail\n [config]=\"config\"\n [taskDetail]=\"activeTaskDetail\"\n (onClickCloseTaskDetail)=\"handleOnClickCloseTaskDetail($event)\"\n ></task-detail>\n </div>\n </div>\n</div>\n\n<bottom-sheet *ngIf=\"isMobileView\">\n <!-- Content to be projected into the bottom sheet -->\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n</bottom-sheet>\n\n<ng-template #TaskList>\n <div\n id=\"task-detail-wrapper\"\n *ngIf=\"activeTaskDetail && !isShowFullTaskDetails\"\n [@taskDetailInOut]\n >\n <task-detail\n [config]=\"config\"\n [taskDetail]=\"activeTaskDetail\"\n (onClickCloseTaskDetail)=\"handleOnClickCloseTaskDetail($event)\"\n ></task-detail>\n </div>\n <div id=\"task-list-wrapper\">\n <task-list\n [config]=\"config\"\n [taskItems]=\"taskList\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n [@taskListInOut]\n ></task-list>\n </div>\n</ng-template>\n\n<ng-template\n #preview\n let-preview\n>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n *ngIf=\"popupFormConfig\"\n >\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'POPUP_FORM')\"\n ></kwikid-form-view>\n </div>\n </tui-preview>\n</ng-template>\n\n<ng-template\n #content\n let-context\n>\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'POPUP_FORM')\"\n ></kwikid-form-view>\n </div>\n</ng-template>\n", styles: [":root,:host{display:block;width:100%;height:100%}::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:10px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#body-container{width:100%;height:100%;display:flex;flex-direction:row;align-items:stretch;overflow:auto;position:relative;z-index:1}#body-container #sidebar-container{width:100%;max-width:320px;height:100%;overflow-y:auto;position:relative;z-index:1;box-shadow:#32325d40 0 13px 27px -5px,#0000004d 0 8px 16px -8px;overflow-x:hidden;z-index:5}#body-container #sidebar-container.is-hidden{width:0px!important}#body-container #sidebar-container #sidebar-toggle{flex-direction:row;background:white;width:3.6rem;border-top-right-radius:1rem;border-bottom-right-radius:1rem;height:3.6rem;display:flex;justify-content:center;align-items:center;cursor:pointer;position:fixed;transform:translate(320px,1.6rem);box-shadow:#32325d40 0 13px 27px -5px,#0000004d 0 8px 16px -8px;z-index:-1}#body-container #sidebar-container #sidebar-toggle.is-hidden{transform:translateY(1.6rem)}#body-container #main-container{flex:1;height:100%;position:relative;overflow:auto;z-index:1}#body-container #main-container #primary-actions-wrapper{position:absolute;padding:0;top:1rem;left:calc(100% - 1rem);z-index:3;border-radius:.5rem;transform:translate(-100%)}#body-container #main-container #primary-actions-wrapper.is-nomaps{box-shadow:none}#body-container #main-container #map-view-wrapper{width:100%;height:100%;overflow:hidden;position:relative;z-index:2}@media only screen and (max-width: 600px){#body-container{display:flex;flex-direction:column-reverse;justify-content:space-between;align-items:stretch}#body-container #main-container{flex:1;height:100%;position:relative;overflow:auto}#body-container #main-container #primary-actions-wrapper{position:absolute;width:calc(100% - (2 * 1rem));padding:0;top:1rem;left:calc(1rem);z-index:3;border-radius:.5rem;transform:translate(0)}#body-container #main-container #primary-actions-wrapper.is-nomaps{box-shadow:none}#body-container #main-container #map-view-wrapper{width:100%;height:100%;overflow:hidden}}#task-list-wrapper{width:100%;height:100%;overflow:auto;background-color:#fff;z-index:2}#task-detail-wrapper{position:absolute;top:0px;left:0px;background-color:#fff;width:100%;height:100%;overflow:auto;z-index:3}.kwikid-form-view-popup-container{border-radius:1rem;background:var(--tui-base-01);min-width:320px;max-width:480px;padding:.5rem;height:100%;max-height:90vh;overflow:auto;width:100%}.kwikid-form-view-page-container{min-width:320px;max-width:100%;padding:.5rem;height:100%;max-height:100%;overflow:auto;width:100%}\n"], components: [{ type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: PrimaryActionsComponent, selector: "primary-actions", inputs: ["primaryActionsConfig"], outputs: ["onClickPrimaryAction"] }, { type: i3__namespace$1.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "extraData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickViewFile", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }, { type: MapViewComponent, selector: "map-view", inputs: ["mapConfig"] }, { type: TaskDetailComponent, selector: "task-detail", inputs: ["config", "taskDetail"], outputs: ["onClickCloseTaskDetail"] }, { type: BottomSheetComponent, selector: "bottom-sheet" }, { type: TaskListComponent, selector: "task-list", inputs: ["config", "taskItems"], outputs: ["onClickTaskItemViewDetail", "onGetTaskList"] }, { type: i8__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i3__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], animations: [
|
|
1539
|
+
animations.trigger("taskDetailInOut", [
|
|
1540
|
+
animations.transition(":enter", [
|
|
1541
|
+
animations.style({ transform: "translateY(100%)" }),
|
|
1539
1542
|
animations.animate(150)
|
|
1540
1543
|
]),
|
|
1541
|
-
animations.transition(
|
|
1542
|
-
animations.animate(150, animations.style({ transform:
|
|
1544
|
+
animations.transition(":leave", [
|
|
1545
|
+
animations.animate(150, animations.style({ transform: "translateY(100%)" }))
|
|
1543
1546
|
])
|
|
1544
1547
|
]),
|
|
1545
|
-
animations.trigger(
|
|
1546
|
-
animations.transition(
|
|
1547
|
-
animations.style({ transform:
|
|
1548
|
+
animations.trigger("taskDetail2InOut", [
|
|
1549
|
+
animations.transition(":enter", [
|
|
1550
|
+
animations.style({ transform: "translateX(100%)" }),
|
|
1548
1551
|
animations.animate(150)
|
|
1549
1552
|
]),
|
|
1550
|
-
animations.transition(
|
|
1551
|
-
animations.animate(150, animations.style({ transform:
|
|
1553
|
+
animations.transition(":leave", [
|
|
1554
|
+
animations.animate(150, animations.style({ transform: "translateX(100%)" }))
|
|
1552
1555
|
])
|
|
1553
1556
|
]),
|
|
1554
|
-
animations.trigger(
|
|
1555
|
-
animations.transition(
|
|
1556
|
-
animations.style({ transform:
|
|
1557
|
+
animations.trigger("taskListInOut", [
|
|
1558
|
+
animations.transition(":enter", [
|
|
1559
|
+
animations.style({ transform: "translateY(100%)" }),
|
|
1557
1560
|
animations.animate(0)
|
|
1558
1561
|
]),
|
|
1559
|
-
animations.transition(
|
|
1560
|
-
animations.animate(0, animations.style({ transform:
|
|
1562
|
+
animations.transition(":leave", [
|
|
1563
|
+
animations.animate(0, animations.style({ transform: "translateY(100%)" }))
|
|
1561
1564
|
])
|
|
1562
1565
|
])
|
|
1563
1566
|
] });
|
|
@@ -1588,35 +1591,35 @@
|
|
|
1588
1591
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyComponent, decorators: [{
|
|
1589
1592
|
type: i0.Component,
|
|
1590
1593
|
args: [{
|
|
1591
|
-
selector:
|
|
1592
|
-
templateUrl:
|
|
1593
|
-
styleUrls: [
|
|
1594
|
+
selector: "layout-body",
|
|
1595
|
+
templateUrl: "./layout-body.component.html",
|
|
1596
|
+
styleUrls: ["./layout-body.component.scss"],
|
|
1594
1597
|
animations: [
|
|
1595
|
-
animations.trigger(
|
|
1596
|
-
animations.transition(
|
|
1597
|
-
animations.style({ transform:
|
|
1598
|
+
animations.trigger("taskDetailInOut", [
|
|
1599
|
+
animations.transition(":enter", [
|
|
1600
|
+
animations.style({ transform: "translateY(100%)" }),
|
|
1598
1601
|
animations.animate(150)
|
|
1599
1602
|
]),
|
|
1600
|
-
animations.transition(
|
|
1601
|
-
animations.animate(150, animations.style({ transform:
|
|
1603
|
+
animations.transition(":leave", [
|
|
1604
|
+
animations.animate(150, animations.style({ transform: "translateY(100%)" }))
|
|
1602
1605
|
])
|
|
1603
1606
|
]),
|
|
1604
|
-
animations.trigger(
|
|
1605
|
-
animations.transition(
|
|
1606
|
-
animations.style({ transform:
|
|
1607
|
+
animations.trigger("taskDetail2InOut", [
|
|
1608
|
+
animations.transition(":enter", [
|
|
1609
|
+
animations.style({ transform: "translateX(100%)" }),
|
|
1607
1610
|
animations.animate(150)
|
|
1608
1611
|
]),
|
|
1609
|
-
animations.transition(
|
|
1610
|
-
animations.animate(150, animations.style({ transform:
|
|
1612
|
+
animations.transition(":leave", [
|
|
1613
|
+
animations.animate(150, animations.style({ transform: "translateX(100%)" }))
|
|
1611
1614
|
])
|
|
1612
1615
|
]),
|
|
1613
|
-
animations.trigger(
|
|
1614
|
-
animations.transition(
|
|
1615
|
-
animations.style({ transform:
|
|
1616
|
+
animations.trigger("taskListInOut", [
|
|
1617
|
+
animations.transition(":enter", [
|
|
1618
|
+
animations.style({ transform: "translateY(100%)" }),
|
|
1616
1619
|
animations.animate(0)
|
|
1617
1620
|
]),
|
|
1618
|
-
animations.transition(
|
|
1619
|
-
animations.animate(0, animations.style({ transform:
|
|
1621
|
+
animations.transition(":leave", [
|
|
1622
|
+
animations.animate(0, animations.style({ transform: "translateY(100%)" }))
|
|
1620
1623
|
])
|
|
1621
1624
|
])
|
|
1622
1625
|
]
|
|
@@ -1631,10 +1634,10 @@
|
|
|
1631
1634
|
}] }];
|
|
1632
1635
|
}, propDecorators: { windowResizeWatcher: [{
|
|
1633
1636
|
type: i0.HostListener,
|
|
1634
|
-
args: [
|
|
1637
|
+
args: ["window:resize", ["$event"]]
|
|
1635
1638
|
}], preview: [{
|
|
1636
1639
|
type: i0.ViewChild,
|
|
1637
|
-
args: [
|
|
1640
|
+
args: ["preview"]
|
|
1638
1641
|
}], onClickApiCall: [{
|
|
1639
1642
|
type: i0.Output
|
|
1640
1643
|
}], onGetTaskList: [{
|
|
@@ -1649,8 +1652,8 @@
|
|
|
1649
1652
|
type: i0.Input
|
|
1650
1653
|
}], ngOnChanges: [], handleShowingFullTaskDetails: [], handleOnClickTaskItemViewDetail: [], handleOnClickCloseTaskDetail: [], handleOnClickToggleSidebar: [], handleOnClickApiCall: [], handleOnClickPrimaryAction: [], handleOnClickSaveForm: [] } });
|
|
1651
1654
|
|
|
1652
|
-
var
|
|
1653
|
-
function
|
|
1655
|
+
var KwikIDAgentDashboardComponentV2 = /** @class */ (function () {
|
|
1656
|
+
function KwikIDAgentDashboardComponentV2() {
|
|
1654
1657
|
this.config = {};
|
|
1655
1658
|
this.userConfig = {};
|
|
1656
1659
|
this.agentInfo = {};
|
|
@@ -1658,51 +1661,31 @@
|
|
|
1658
1661
|
this.onGetTaskList = new i0.EventEmitter();
|
|
1659
1662
|
this.onClickPerformAction = new i0.EventEmitter();
|
|
1660
1663
|
}
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
console.log('User Config', this.userConfig);
|
|
1664
|
-
console.log('Agent Info', this.agentInfo);
|
|
1665
|
-
console.log('Tasks List', this.taskList);
|
|
1666
|
-
};
|
|
1667
|
-
KwikIDAgentDashboardComponent.prototype.ngOnChanges = function (changes) {
|
|
1668
|
-
var e_1, _a;
|
|
1664
|
+
KwikIDAgentDashboardComponentV2.prototype.ngOnInit = function () { };
|
|
1665
|
+
KwikIDAgentDashboardComponentV2.prototype.ngOnChanges = function (changes) {
|
|
1669
1666
|
var verifyChange = function (key) {
|
|
1670
1667
|
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
1671
1668
|
};
|
|
1672
|
-
|
|
1673
|
-
for (var _b = __values(Object.entries(changes)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1674
|
-
var change = _c.value;
|
|
1675
|
-
var key = change[0];
|
|
1676
|
-
var value = change[1].currentValue;
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1680
|
-
finally {
|
|
1681
|
-
try {
|
|
1682
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1683
|
-
}
|
|
1684
|
-
finally { if (e_1) throw e_1.error; }
|
|
1685
|
-
}
|
|
1686
|
-
if (verifyChange('taskList')) {
|
|
1669
|
+
if (verifyChange("taskList")) {
|
|
1687
1670
|
this.taskList = changes.taskList.currentValue;
|
|
1688
1671
|
}
|
|
1689
1672
|
};
|
|
1690
|
-
|
|
1673
|
+
KwikIDAgentDashboardComponentV2.prototype.handleOnGetTaskList = function (event) {
|
|
1691
1674
|
this.onGetTaskList.emit(event);
|
|
1692
1675
|
};
|
|
1693
|
-
|
|
1676
|
+
KwikIDAgentDashboardComponentV2.prototype.handleOnClickPerformAction = function (event) {
|
|
1694
1677
|
this.onClickPerformAction.emit(event);
|
|
1695
1678
|
};
|
|
1696
|
-
return
|
|
1679
|
+
return KwikIDAgentDashboardComponentV2;
|
|
1697
1680
|
}());
|
|
1698
|
-
/** @nocollapse */
|
|
1699
|
-
/** @nocollapse */
|
|
1700
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
1681
|
+
/** @nocollapse */ KwikIDAgentDashboardComponentV2.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV2, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1682
|
+
/** @nocollapse */ KwikIDAgentDashboardComponentV2.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponentV2, selector: "kwikid-agent-dashboard-v2", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"container\">\n <div id=\"header\">\n <layout-header\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></layout-header>\n </div>\n <div id=\"body\">\n <layout-body\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n [taskList]=\"taskList\"\n [userConfig]=\"userConfig\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></layout-body>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;height:100%}::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:8px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:8px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#container{width:100%;height:100%}#container #header{width:100%;height:80px;border:1px solid red}#container #body{width:100%;height:calc(100% - 60px);border:1px solid blue;overflow:auto}\n"], components: [{ type: LayoutHeaderComponent, selector: "layout-header", inputs: ["config", "agentInfo"], outputs: ["onGetTaskList", "onClickPerformAction"] }, { type: LayoutBodyComponent, selector: "layout-body", inputs: ["config", "userConfig", "agentInfo", "taskList"], outputs: ["onClickApiCall", "onGetTaskList"] }] });
|
|
1683
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV2, decorators: [{
|
|
1701
1684
|
type: i0.Component,
|
|
1702
1685
|
args: [{
|
|
1703
|
-
selector:
|
|
1704
|
-
templateUrl:
|
|
1705
|
-
styleUrls: [
|
|
1686
|
+
selector: "kwikid-agent-dashboard-v2",
|
|
1687
|
+
templateUrl: "./kwikid-agent-dashboard.component.html",
|
|
1688
|
+
styleUrls: ["./kwikid-agent-dashboard.component.scss"]
|
|
1706
1689
|
}]
|
|
1707
1690
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
1708
1691
|
type: i0.Input
|
|
@@ -1718,125 +1701,1941 @@
|
|
|
1718
1701
|
type: i0.Output
|
|
1719
1702
|
}] } });
|
|
1720
1703
|
|
|
1721
|
-
|
|
1722
|
-
|
|
1704
|
+
// To Calculate Distance between two markers
|
|
1705
|
+
var calculateDistance = function (point1, point2) {
|
|
1706
|
+
var lat1 = point1.lat;
|
|
1707
|
+
var lng1 = point1.lng;
|
|
1708
|
+
var lat2 = point2.lat;
|
|
1709
|
+
var lng2 = point2.lng;
|
|
1710
|
+
var R = 6371; // Earth radius in kilometers
|
|
1711
|
+
var dLat = (lat2 - lat1) * (Math.PI / 180);
|
|
1712
|
+
var dLng = (lng2 - lng1) * (Math.PI / 180);
|
|
1713
|
+
var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +
|
|
1714
|
+
Math.cos((lat1 * Math.PI) / 180) *
|
|
1715
|
+
Math.cos((lat2 * Math.PI) / 180) *
|
|
1716
|
+
Math.sin(dLng / 2) *
|
|
1717
|
+
Math.sin(dLng / 2);
|
|
1718
|
+
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
1719
|
+
var distance = R * c;
|
|
1720
|
+
return distance;
|
|
1721
|
+
};
|
|
1722
|
+
// To calculate nearest distance from marker
|
|
1723
|
+
var nearestNeighborAlgorithm = function (startingPoint, unvisitedPoints) {
|
|
1724
|
+
var e_1, _a;
|
|
1725
|
+
var currentPoint = startingPoint;
|
|
1726
|
+
var path = [currentPoint];
|
|
1727
|
+
var visitedPoints = new Set([currentPoint]);
|
|
1728
|
+
while (unvisitedPoints.length > 0) {
|
|
1729
|
+
var nearestPoint = null;
|
|
1730
|
+
var minDistance = Number.POSITIVE_INFINITY;
|
|
1731
|
+
try {
|
|
1732
|
+
for (var unvisitedPoints_1 = (e_1 = void 0, __values(unvisitedPoints)), unvisitedPoints_1_1 = unvisitedPoints_1.next(); !unvisitedPoints_1_1.done; unvisitedPoints_1_1 = unvisitedPoints_1.next()) {
|
|
1733
|
+
var point = unvisitedPoints_1_1.value;
|
|
1734
|
+
var distance = calculateDistance(currentPoint, point);
|
|
1735
|
+
if (distance < minDistance) {
|
|
1736
|
+
minDistance = distance;
|
|
1737
|
+
nearestPoint = point;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1742
|
+
finally {
|
|
1743
|
+
try {
|
|
1744
|
+
if (unvisitedPoints_1_1 && !unvisitedPoints_1_1.done && (_a = unvisitedPoints_1.return)) _a.call(unvisitedPoints_1);
|
|
1745
|
+
}
|
|
1746
|
+
finally { if (e_1) throw e_1.error; }
|
|
1747
|
+
}
|
|
1748
|
+
path.push(nearestPoint);
|
|
1749
|
+
visitedPoints.add(nearestPoint);
|
|
1750
|
+
currentPoint = nearestPoint;
|
|
1751
|
+
unvisitedPoints = unvisitedPoints.filter(function (point) { return !visitedPoints.has(point); });
|
|
1723
1752
|
}
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1753
|
+
return path;
|
|
1754
|
+
};
|
|
1755
|
+
var addressConcator = function (data, config) {
|
|
1756
|
+
var address = config.reduce(function (accumulator, currentValue) { return accumulator + " " + kwikidToolkit.getObjectValueFromPath(data, currentValue); }, "");
|
|
1757
|
+
return address;
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
var EStatus;
|
|
1761
|
+
(function (EStatus) {
|
|
1762
|
+
EStatus["NOT_STARTED"] = "not_started";
|
|
1763
|
+
EStatus["ON_GOING"] = "on_going";
|
|
1764
|
+
EStatus["AUDITING"] = "auditing";
|
|
1765
|
+
EStatus["REJECTED"] = "rejected";
|
|
1766
|
+
EStatus["AFTER_AUDIT"] = "after_audit";
|
|
1767
|
+
EStatus["COMPLETE"] = "complete";
|
|
1768
|
+
EStatus["WAITING"] = "waiting";
|
|
1769
|
+
EStatus["SESSION_EXPIRED"] = "session_expired";
|
|
1770
|
+
EStatus["KYC_REJECTED"] = "kyc_rejected";
|
|
1771
|
+
EStatus["KYC_REQUEST_REJECTED"] = "kyc_request_rejected";
|
|
1772
|
+
EStatus["KYC_REQUEST_ACCEPTED"] = "kyc_request_accepted";
|
|
1773
|
+
EStatus["KYC_RESULT_REJECTED"] = "kyc_result_rejected";
|
|
1774
|
+
EStatus["KYC_RESULT_APPROVED"] = "kyc_result_approved";
|
|
1775
|
+
EStatus["KYC_RESULT_PARTIAL_UPDATE"] = "kyc_result_partial_update";
|
|
1776
|
+
EStatus["KYC_RESULT_UNDER_REVIEW"] = "kyc_result_under_review";
|
|
1777
|
+
})(EStatus || (EStatus = {}));
|
|
1778
|
+
var VStatus = [
|
|
1779
|
+
EStatus.NOT_STARTED,
|
|
1780
|
+
EStatus.ON_GOING,
|
|
1781
|
+
EStatus.AUDITING,
|
|
1782
|
+
EStatus.REJECTED,
|
|
1783
|
+
EStatus.AFTER_AUDIT,
|
|
1784
|
+
EStatus.COMPLETE,
|
|
1785
|
+
EStatus.WAITING,
|
|
1786
|
+
EStatus.SESSION_EXPIRED,
|
|
1787
|
+
EStatus.KYC_REJECTED,
|
|
1788
|
+
EStatus.KYC_REQUEST_REJECTED,
|
|
1789
|
+
EStatus.KYC_REQUEST_ACCEPTED,
|
|
1790
|
+
EStatus.KYC_RESULT_REJECTED,
|
|
1791
|
+
EStatus.KYC_RESULT_APPROVED,
|
|
1792
|
+
EStatus.KYC_RESULT_PARTIAL_UPDATE,
|
|
1793
|
+
EStatus.KYC_RESULT_UNDER_REVIEW
|
|
1794
|
+
];
|
|
1795
|
+
|
|
1796
|
+
var AgentService = /** @class */ (function () {
|
|
1797
|
+
function AgentService() {
|
|
1798
|
+
this.isListOpen = true;
|
|
1799
|
+
this.showMapview = false;
|
|
1800
|
+
this.addTaskForm = {
|
|
1801
|
+
key: "ADD_TASK",
|
|
1802
|
+
title: "Add Task",
|
|
1803
|
+
fields: [
|
|
1804
|
+
{
|
|
1805
|
+
key: "name",
|
|
1806
|
+
label: "Customer Name",
|
|
1807
|
+
validators: {
|
|
1808
|
+
required: true
|
|
1809
|
+
},
|
|
1810
|
+
properties: {
|
|
1811
|
+
placeholder: "Please enter the Customer Name",
|
|
1812
|
+
readOnly: false,
|
|
1813
|
+
case: "default"
|
|
1814
|
+
},
|
|
1815
|
+
type: "text"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
key: "phone",
|
|
1819
|
+
label: "Phone Number",
|
|
1820
|
+
validators: {
|
|
1821
|
+
required: true
|
|
1822
|
+
},
|
|
1823
|
+
properties: {
|
|
1824
|
+
countryCode: "+91",
|
|
1825
|
+
removeCountryCodeFromValue: true,
|
|
1826
|
+
phoneMaskAfterCountryCode: "##########",
|
|
1827
|
+
placeholder: "Please enter your Mobile Number",
|
|
1828
|
+
readOnly: false
|
|
1829
|
+
},
|
|
1830
|
+
type: "phone"
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
key: "address",
|
|
1834
|
+
label: "Address",
|
|
1835
|
+
validators: {
|
|
1836
|
+
required: true
|
|
1837
|
+
},
|
|
1838
|
+
properties: {
|
|
1839
|
+
placeholder: "Please enter the Address",
|
|
1840
|
+
readOnly: false,
|
|
1841
|
+
case: "default"
|
|
1842
|
+
},
|
|
1843
|
+
type: "text"
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
key: "city",
|
|
1847
|
+
label: "City",
|
|
1848
|
+
validators: {
|
|
1849
|
+
required: true
|
|
1850
|
+
},
|
|
1851
|
+
properties: {
|
|
1852
|
+
placeholder: "Please enter the City",
|
|
1853
|
+
readOnly: false,
|
|
1854
|
+
case: "default"
|
|
1855
|
+
},
|
|
1856
|
+
type: "text"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
key: "location",
|
|
1860
|
+
label: "Location URL",
|
|
1861
|
+
validators: {
|
|
1862
|
+
required: true
|
|
1863
|
+
},
|
|
1864
|
+
properties: {
|
|
1865
|
+
placeholder: "Please enter the Location URL",
|
|
1866
|
+
readOnly: false,
|
|
1867
|
+
case: "default"
|
|
1868
|
+
},
|
|
1869
|
+
type: "text"
|
|
1870
|
+
}
|
|
1871
|
+
],
|
|
1872
|
+
properties: {
|
|
1873
|
+
header: {
|
|
1874
|
+
title: {
|
|
1875
|
+
hidden: true,
|
|
1876
|
+
label: "Add Task"
|
|
1877
|
+
},
|
|
1878
|
+
steps: {
|
|
1879
|
+
hidden: true
|
|
1880
|
+
},
|
|
1881
|
+
logo: {
|
|
1882
|
+
hidden: true
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
footer: {
|
|
1886
|
+
viewFormsButton: {
|
|
1887
|
+
hidden: true,
|
|
1888
|
+
label: "View Forms"
|
|
1889
|
+
},
|
|
1890
|
+
saveButton: {
|
|
1891
|
+
hidden: false,
|
|
1892
|
+
label: "Submit"
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
};
|
|
1897
|
+
this.notRequiredStatus = [
|
|
1898
|
+
EStatus.REJECTED,
|
|
1899
|
+
EStatus.AFTER_AUDIT,
|
|
1900
|
+
EStatus.COMPLETE,
|
|
1901
|
+
EStatus.SESSION_EXPIRED,
|
|
1902
|
+
EStatus.KYC_REJECTED,
|
|
1903
|
+
EStatus.KYC_RESULT_APPROVED,
|
|
1904
|
+
EStatus.KYC_RESULT_REJECTED,
|
|
1905
|
+
EStatus.KYC_RESULT_UNDER_REVIEW,
|
|
1906
|
+
EStatus.KYC_REQUEST_REJECTED
|
|
1907
|
+
];
|
|
1908
|
+
}
|
|
1909
|
+
AgentService.prototype.ngOnInit = function () { };
|
|
1910
|
+
AgentService.prototype.setAgentConfig = function (config) {
|
|
1911
|
+
this.config = config;
|
|
1728
1912
|
};
|
|
1729
|
-
|
|
1913
|
+
AgentService.prototype.toggleMapview = function () {
|
|
1914
|
+
this.showMapview = !this.showMapview;
|
|
1915
|
+
};
|
|
1916
|
+
AgentService.prototype.canStartJourney = function (status) {
|
|
1917
|
+
var _a, _b;
|
|
1918
|
+
var noneEditableStatus = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.cannotStartJourney) !== null && _b !== void 0 ? _b : this.notRequiredStatus;
|
|
1919
|
+
if (noneEditableStatus.includes(status)) {
|
|
1920
|
+
return false;
|
|
1921
|
+
}
|
|
1922
|
+
return true;
|
|
1923
|
+
};
|
|
1924
|
+
AgentService.prototype.canPlotMarkers = function (status) {
|
|
1925
|
+
var _a, _b;
|
|
1926
|
+
var nonePlottingSessions = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.dontPlotMarkers) !== null && _b !== void 0 ? _b : [];
|
|
1927
|
+
if (nonePlottingSessions.includes(status)) {
|
|
1928
|
+
return false;
|
|
1929
|
+
}
|
|
1930
|
+
return true;
|
|
1931
|
+
};
|
|
1932
|
+
return AgentService;
|
|
1730
1933
|
}());
|
|
1731
|
-
/** @nocollapse */
|
|
1732
|
-
/** @nocollapse */
|
|
1733
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
1734
|
-
type: i0.
|
|
1934
|
+
/** @nocollapse */ AgentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1935
|
+
/** @nocollapse */ AgentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, providedIn: "root" });
|
|
1936
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, decorators: [{
|
|
1937
|
+
type: i0.Injectable,
|
|
1735
1938
|
args: [{
|
|
1736
|
-
|
|
1737
|
-
templateUrl: './agent-info.component.html',
|
|
1738
|
-
styleUrls: ['./agent-info.component.scss']
|
|
1939
|
+
providedIn: "root"
|
|
1739
1940
|
}]
|
|
1740
1941
|
}], ctorParameters: function () { return []; } });
|
|
1741
1942
|
|
|
1742
|
-
var
|
|
1743
|
-
function
|
|
1943
|
+
var GoogleMapsService = /** @class */ (function () {
|
|
1944
|
+
function GoogleMapsService(agentService, mapDirectionsService, httpClient) {
|
|
1945
|
+
this.agentService = agentService;
|
|
1946
|
+
this.mapDirectionsService = mapDirectionsService;
|
|
1947
|
+
this.httpClient = httpClient;
|
|
1948
|
+
this.allMarkers = [];
|
|
1744
1949
|
}
|
|
1745
|
-
|
|
1950
|
+
// To get Current Position
|
|
1951
|
+
GoogleMapsService.prototype.getPosition = function () {
|
|
1952
|
+
return new Promise(function (resolve, reject) {
|
|
1953
|
+
navigator.geolocation.watchPosition(function (resp) {
|
|
1954
|
+
resolve({
|
|
1955
|
+
lng: resp.coords.longitude,
|
|
1956
|
+
lat: resp.coords.latitude
|
|
1957
|
+
});
|
|
1958
|
+
}, function (err) {
|
|
1959
|
+
reject(err);
|
|
1960
|
+
});
|
|
1961
|
+
});
|
|
1962
|
+
};
|
|
1963
|
+
// To Initialize Google Maps
|
|
1964
|
+
GoogleMapsService.prototype.initializeMap = function () {
|
|
1965
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1966
|
+
var _o;
|
|
1967
|
+
return __generator(this, function (_p) {
|
|
1968
|
+
switch (_p.label) {
|
|
1969
|
+
case 0:
|
|
1970
|
+
_o = this;
|
|
1971
|
+
return [4 /*yield*/, this.getPosition()];
|
|
1972
|
+
case 1:
|
|
1973
|
+
_o.myPosition = _p.sent();
|
|
1974
|
+
this.map = {
|
|
1975
|
+
zoom: 10,
|
|
1976
|
+
center: this.myPosition,
|
|
1977
|
+
streetViewControl: false,
|
|
1978
|
+
mapTypeControl: false,
|
|
1979
|
+
fullscreenControl: false,
|
|
1980
|
+
zoomControl: false
|
|
1981
|
+
};
|
|
1982
|
+
return [2 /*return*/];
|
|
1983
|
+
}
|
|
1984
|
+
});
|
|
1985
|
+
});
|
|
1986
|
+
};
|
|
1987
|
+
// To extract Location from the Task Details
|
|
1988
|
+
GoogleMapsService.prototype.getLocation = function (task) {
|
|
1989
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1990
|
+
var _this = this;
|
|
1991
|
+
return __generator(this, function (_o) {
|
|
1992
|
+
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
1993
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, encodedAddres, config, address, config, address, address, url, response, data, isValidLocation, location;
|
|
1994
|
+
return __generator(this, function (_o) {
|
|
1995
|
+
switch (_o.label) {
|
|
1996
|
+
case 0:
|
|
1997
|
+
// If Fetch Address from Multiple Paths
|
|
1998
|
+
if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPaths")) {
|
|
1999
|
+
config = this.agentService.config.dashboard.taskLocationPaths;
|
|
2000
|
+
address = addressConcator(task, config);
|
|
2001
|
+
// Encode the Address in URI
|
|
2002
|
+
encodedAddres = encodeURI(address);
|
|
2003
|
+
}
|
|
2004
|
+
// If Fetch Address from Single Path
|
|
2005
|
+
else if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPath")) {
|
|
2006
|
+
config = this.agentService.config.dashboard.taskLocationPath;
|
|
2007
|
+
address = kwikidToolkit.getObjectValueFromPath(task, config);
|
|
2008
|
+
// Encode the Address in URI
|
|
2009
|
+
encodedAddres = encodeURI(address);
|
|
2010
|
+
}
|
|
2011
|
+
// Default Address Paths Avaiable
|
|
2012
|
+
else {
|
|
2013
|
+
address = (_k = (_j = (_g = (_d = (_c = (_b = (_a = task === null || task === void 0 ? void 0 : task.extras) === null || _a === void 0 ? void 0 : _a.task_details) === null || _b === void 0 ? void 0 : _b.customer_details) === null || _c === void 0 ? void 0 : _c.address) !== null && _d !== void 0 ? _d : (_f = (_e = task === null || task === void 0 ? void 0 : task.task_details) === null || _e === void 0 ? void 0 : _e.customer_details) === null || _f === void 0 ? void 0 : _f.address) !== null && _g !== void 0 ? _g : (_h = task === null || task === void 0 ? void 0 : task.extras) === null || _h === void 0 ? void 0 : _h.address) !== null && _j !== void 0 ? _j : task === null || task === void 0 ? void 0 : task.address) !== null && _k !== void 0 ? _k : "";
|
|
2014
|
+
// Encode the Address in URI
|
|
2015
|
+
encodedAddres = encodeURI(address);
|
|
2016
|
+
}
|
|
2017
|
+
url = "https://maps.googleapis.com/maps/api/geocode/json?key=" + this.apiKey + "&address=" + encodedAddres;
|
|
2018
|
+
return [4 /*yield*/, fetch(url)];
|
|
2019
|
+
case 1:
|
|
2020
|
+
response = _o.sent();
|
|
2021
|
+
return [4 /*yield*/, response.json()];
|
|
2022
|
+
case 2:
|
|
2023
|
+
data = _o.sent();
|
|
2024
|
+
isValidLocation = kwikidToolkit.isNotEmptyArray(data === null || data === void 0 ? void 0 : data.results);
|
|
2025
|
+
location = isValidLocation
|
|
2026
|
+
? (_m = (_l = data === null || data === void 0 ? void 0 : data.results[0]) === null || _l === void 0 ? void 0 : _l.geometry) === null || _m === void 0 ? void 0 : _m.location
|
|
2027
|
+
: { lat: null, lng: null };
|
|
2028
|
+
// Set Location validation & Google Maps URL
|
|
2029
|
+
location.isValidLocation = isValidLocation;
|
|
2030
|
+
location.googleMapsUrl = "https://www.google.com/maps/place/" + (location === null || location === void 0 ? void 0 : location.lat) + "," + (location === null || location === void 0 ? void 0 : location.lng);
|
|
2031
|
+
resolve(location);
|
|
2032
|
+
return [2 /*return*/];
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2035
|
+
}); })];
|
|
2036
|
+
});
|
|
2037
|
+
});
|
|
2038
|
+
};
|
|
2039
|
+
// Get Tasks | Markers Location Co Ordinates
|
|
2040
|
+
GoogleMapsService.prototype.getMarkersLocation = function (myMarker, tasks) {
|
|
2041
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2042
|
+
var _this = this;
|
|
2043
|
+
return __generator(this, function (_o) {
|
|
2044
|
+
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
2045
|
+
var markers, promises;
|
|
2046
|
+
var _this = this;
|
|
2047
|
+
return __generator(this, function (_o) {
|
|
2048
|
+
switch (_o.label) {
|
|
2049
|
+
case 0:
|
|
2050
|
+
markers = [];
|
|
2051
|
+
markers.push(myMarker);
|
|
2052
|
+
promises = tasks.map(function (task) { return __awaiter(_this, void 0, void 0, function () {
|
|
2053
|
+
var marker;
|
|
2054
|
+
return __generator(this, function (_o) {
|
|
2055
|
+
switch (_o.label) {
|
|
2056
|
+
case 0: return [4 /*yield*/, this.getLocation(task)];
|
|
2057
|
+
case 1:
|
|
2058
|
+
marker = _o.sent();
|
|
2059
|
+
task = Object.assign(Object.assign({}, task), marker);
|
|
2060
|
+
markers.push(task);
|
|
2061
|
+
return [2 /*return*/];
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
}); });
|
|
2065
|
+
return [4 /*yield*/, Promise.all(promises)];
|
|
2066
|
+
case 1:
|
|
2067
|
+
_o.sent();
|
|
2068
|
+
resolve(markers);
|
|
2069
|
+
return [2 /*return*/];
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
}); })];
|
|
2073
|
+
});
|
|
2074
|
+
});
|
|
2075
|
+
};
|
|
2076
|
+
// Plot All Markers
|
|
2077
|
+
GoogleMapsService.prototype.plotAllMarkers = function (tasks) {
|
|
2078
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2079
|
+
var _this = this;
|
|
2080
|
+
return __generator(this, function (_o) {
|
|
2081
|
+
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
2082
|
+
var path, promises;
|
|
2083
|
+
var _this = this;
|
|
2084
|
+
return __generator(this, function (_o) {
|
|
2085
|
+
switch (_o.label) {
|
|
2086
|
+
case 0:
|
|
2087
|
+
path = [];
|
|
2088
|
+
promises = tasks.map(function (task) {
|
|
2089
|
+
if (task === null || task === void 0 ? void 0 : task.isValidLocation) {
|
|
2090
|
+
path.push({
|
|
2091
|
+
location: task,
|
|
2092
|
+
stopover: true
|
|
2093
|
+
});
|
|
2094
|
+
_this.allMarkers.push(task);
|
|
2095
|
+
}
|
|
2096
|
+
});
|
|
2097
|
+
return [4 /*yield*/, Promise.all(promises)];
|
|
2098
|
+
case 1:
|
|
2099
|
+
_o.sent();
|
|
2100
|
+
resolve(path);
|
|
2101
|
+
return [2 /*return*/];
|
|
2102
|
+
}
|
|
2103
|
+
});
|
|
2104
|
+
}); })];
|
|
2105
|
+
});
|
|
2106
|
+
});
|
|
2107
|
+
};
|
|
2108
|
+
// To Plot Directions for All Tasks
|
|
2109
|
+
GoogleMapsService.prototype.plotDirectionsForAllTasks = function (tasks) {
|
|
2110
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2111
|
+
var myMarker, markers, startingPoint, unvisitedWaypoints, optimizedRoute, path, request;
|
|
2112
|
+
return __generator(this, function (_o) {
|
|
2113
|
+
switch (_o.label) {
|
|
2114
|
+
case 0:
|
|
2115
|
+
this.allMarkers = [];
|
|
2116
|
+
myMarker = {
|
|
2117
|
+
lat: this.myPosition.lat,
|
|
2118
|
+
lng: this.myPosition.lng,
|
|
2119
|
+
title: 0,
|
|
2120
|
+
color: "red"
|
|
2121
|
+
};
|
|
2122
|
+
return [4 /*yield*/, this.getMarkersLocation(myMarker, tasks)];
|
|
2123
|
+
case 1:
|
|
2124
|
+
markers = _o.sent();
|
|
2125
|
+
startingPoint = markers[0];
|
|
2126
|
+
unvisitedWaypoints = markers.slice(1);
|
|
2127
|
+
optimizedRoute = nearestNeighborAlgorithm(startingPoint, unvisitedWaypoints);
|
|
2128
|
+
// Sort All Tasks as per optimized routes
|
|
2129
|
+
tasks = optimizedRoute.slice(1);
|
|
2130
|
+
this.allMarkers = [myMarker];
|
|
2131
|
+
return [4 /*yield*/, this.plotAllMarkers(tasks)];
|
|
2132
|
+
case 2:
|
|
2133
|
+
path = _o.sent();
|
|
2134
|
+
request = {
|
|
2135
|
+
origin: this.myPosition,
|
|
2136
|
+
destination: this.myPosition,
|
|
2137
|
+
waypoints: path,
|
|
2138
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
2139
|
+
};
|
|
2140
|
+
this.directionsRenderOption = {
|
|
2141
|
+
suppressMarkers: true
|
|
2142
|
+
};
|
|
2143
|
+
this.directionsResults$ = this.mapDirectionsService
|
|
2144
|
+
.route(request)
|
|
2145
|
+
.pipe(operators.map(function (response) { return response.result; }));
|
|
2146
|
+
this.directionsResults$.subscribe(function (val) { });
|
|
2147
|
+
this.allDirectionsResults$ = this.directionsResults$;
|
|
2148
|
+
return [2 /*return*/, tasks];
|
|
2149
|
+
}
|
|
2150
|
+
});
|
|
2151
|
+
});
|
|
2152
|
+
};
|
|
2153
|
+
// To Plot Directions for Selected Tasks
|
|
2154
|
+
GoogleMapsService.prototype.plotDirectionsForSelectedTask = function (task) {
|
|
2155
|
+
if (task != null) {
|
|
2156
|
+
var taskMarker = task;
|
|
2157
|
+
// If Location is Available in Task Details
|
|
2158
|
+
if (taskMarker === null || taskMarker === void 0 ? void 0 : taskMarker.isValidLocation) {
|
|
2159
|
+
var request = {
|
|
2160
|
+
origin: this.myPosition,
|
|
2161
|
+
destination: taskMarker,
|
|
2162
|
+
optimizeWaypoints: true,
|
|
2163
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
2164
|
+
};
|
|
2165
|
+
this.directionsResults$ = this.mapDirectionsService
|
|
2166
|
+
.route(request)
|
|
2167
|
+
.pipe(operators.map(function (response) { return response.result; }));
|
|
2168
|
+
this.directionsResults$.subscribe();
|
|
2169
|
+
}
|
|
2170
|
+
else {
|
|
2171
|
+
alert("No Location Available");
|
|
2172
|
+
this.directionsResults$ = this.allDirectionsResults$;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
else {
|
|
2176
|
+
this.directionsResults$ = this.allDirectionsResults$;
|
|
2177
|
+
}
|
|
2178
|
+
};
|
|
2179
|
+
return GoogleMapsService;
|
|
1746
2180
|
}());
|
|
1747
|
-
/** @nocollapse */
|
|
1748
|
-
/** @nocollapse */
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
i1.KwikUIModule,
|
|
1752
|
-
i3$2.KwikIDFormsModule], exports: [AgentInfoComponent] });
|
|
1753
|
-
/** @nocollapse */ AgentInfoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, imports: [[
|
|
1754
|
-
i3$1.CommonModule,
|
|
1755
|
-
i2$1.FormsModule,
|
|
1756
|
-
i2$1.ReactiveFormsModule,
|
|
1757
|
-
i1.KwikUIModule,
|
|
1758
|
-
i3$2.KwikIDFormsModule
|
|
1759
|
-
]] });
|
|
1760
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, decorators: [{
|
|
1761
|
-
type: i0.NgModule,
|
|
2181
|
+
/** @nocollapse */ GoogleMapsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GoogleMapsService, deps: [{ token: AgentService }, { token: i2__namespace$2.MapDirectionsService }, { token: i3__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2182
|
+
/** @nocollapse */ GoogleMapsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GoogleMapsService, providedIn: "root" });
|
|
2183
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GoogleMapsService, decorators: [{
|
|
2184
|
+
type: i0.Injectable,
|
|
1762
2185
|
args: [{
|
|
1763
|
-
|
|
1764
|
-
imports: [
|
|
1765
|
-
i3$1.CommonModule,
|
|
1766
|
-
i2$1.FormsModule,
|
|
1767
|
-
i2$1.ReactiveFormsModule,
|
|
1768
|
-
i1.KwikUIModule,
|
|
1769
|
-
i3$2.KwikIDFormsModule
|
|
1770
|
-
],
|
|
1771
|
-
exports: [AgentInfoComponent]
|
|
2186
|
+
providedIn: "root"
|
|
1772
2187
|
}]
|
|
1773
|
-
}] }
|
|
2188
|
+
}], ctorParameters: function () { return [{ type: AgentService }, { type: i2__namespace$2.MapDirectionsService }, { type: i3__namespace$2.HttpClient }]; }, propDecorators: { directionsRenders: [{
|
|
2189
|
+
type: i0.ViewChildren,
|
|
2190
|
+
args: ["directionsRender"]
|
|
2191
|
+
}] } });
|
|
1774
2192
|
|
|
1775
|
-
var
|
|
1776
|
-
function
|
|
2193
|
+
var OpenStreetMapsService = /** @class */ (function () {
|
|
2194
|
+
function OpenStreetMapsService(agentService, mapDirectionsService, httpClient) {
|
|
2195
|
+
this.agentService = agentService;
|
|
2196
|
+
this.mapDirectionsService = mapDirectionsService;
|
|
2197
|
+
this.httpClient = httpClient;
|
|
2198
|
+
this.allMarkers = [];
|
|
1777
2199
|
}
|
|
1778
|
-
|
|
2200
|
+
// To get Current Position
|
|
2201
|
+
OpenStreetMapsService.prototype.getPosition = function () {
|
|
2202
|
+
return new Promise(function (resolve, reject) {
|
|
2203
|
+
navigator.geolocation.watchPosition(function (resp) {
|
|
2204
|
+
resolve({
|
|
2205
|
+
lng: resp.coords.longitude,
|
|
2206
|
+
lat: resp.coords.latitude
|
|
2207
|
+
});
|
|
2208
|
+
}, function (err) {
|
|
2209
|
+
reject(err);
|
|
2210
|
+
});
|
|
2211
|
+
});
|
|
2212
|
+
};
|
|
2213
|
+
// To extract Location from the Task Details
|
|
2214
|
+
OpenStreetMapsService.prototype.getLocation = function (task) {
|
|
2215
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2216
|
+
var _this = this;
|
|
2217
|
+
return __generator(this, function (_q) {
|
|
2218
|
+
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
2219
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, encodedAddres, config, address, config, address, address, url, response, data, isValidLocation, location;
|
|
2220
|
+
return __generator(this, function (_q) {
|
|
2221
|
+
switch (_q.label) {
|
|
2222
|
+
case 0:
|
|
2223
|
+
// If Fetch Address from Multiple Paths
|
|
2224
|
+
if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPaths")) {
|
|
2225
|
+
config = this.agentService.config.dashboard.taskLocationPaths;
|
|
2226
|
+
address = addressConcator(task, config);
|
|
2227
|
+
// Encode the Address in URI
|
|
2228
|
+
encodedAddres = encodeURI(address);
|
|
2229
|
+
}
|
|
2230
|
+
// If Fetch Address from Single Path
|
|
2231
|
+
else if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPath")) {
|
|
2232
|
+
config = this.agentService.config.dashboard.taskLocationPath;
|
|
2233
|
+
address = kwikidToolkit.getObjectValueFromPath(task, config);
|
|
2234
|
+
// Encode the Address in URI
|
|
2235
|
+
encodedAddres = encodeURI(address);
|
|
2236
|
+
}
|
|
2237
|
+
// Default Address Paths Avaiable
|
|
2238
|
+
else {
|
|
2239
|
+
address = (_k = (_j = (_g = (_d = (_c = (_b = (_a = task === null || task === void 0 ? void 0 : task.extras) === null || _a === void 0 ? void 0 : _a.task_details) === null || _b === void 0 ? void 0 : _b.customer_details) === null || _c === void 0 ? void 0 : _c.address) !== null && _d !== void 0 ? _d : (_f = (_e = task === null || task === void 0 ? void 0 : task.task_details) === null || _e === void 0 ? void 0 : _e.customer_details) === null || _f === void 0 ? void 0 : _f.address) !== null && _g !== void 0 ? _g : (_h = task === null || task === void 0 ? void 0 : task.extras) === null || _h === void 0 ? void 0 : _h.address) !== null && _j !== void 0 ? _j : task === null || task === void 0 ? void 0 : task.address) !== null && _k !== void 0 ? _k : "";
|
|
2240
|
+
// Encode the Address in URI
|
|
2241
|
+
encodedAddres = encodeURI(address);
|
|
2242
|
+
}
|
|
2243
|
+
url = "https://nominatim.openstreetmap.org/search?q=" + encodedAddres + "&format=json";
|
|
2244
|
+
return [4 /*yield*/, fetch(url)];
|
|
2245
|
+
case 1:
|
|
2246
|
+
response = _q.sent();
|
|
2247
|
+
return [4 /*yield*/, response.json()];
|
|
2248
|
+
case 2:
|
|
2249
|
+
data = _q.sent();
|
|
2250
|
+
isValidLocation = kwikidToolkit.isNotEmptyArray(data) && ((_l = data[0]) === null || _l === void 0 ? void 0 : _l.lat) & ((_m = data[0]) === null || _m === void 0 ? void 0 : _m.lon);
|
|
2251
|
+
location = isValidLocation
|
|
2252
|
+
? { lat: (_o = data[0]) === null || _o === void 0 ? void 0 : _o.lat, lng: (_p = data[0]) === null || _p === void 0 ? void 0 : _p.lon }
|
|
2253
|
+
: { lat: null, lng: null };
|
|
2254
|
+
// Set Location validation & Google Maps URL
|
|
2255
|
+
location.isValidLocation = isValidLocation;
|
|
2256
|
+
location.color = isValidLocation ? "blue" : "red";
|
|
2257
|
+
location.googleMapsUrl = "https://www.google.com/maps/place/" + (location === null || location === void 0 ? void 0 : location.lat) + "," + (location === null || location === void 0 ? void 0 : location.lng);
|
|
2258
|
+
resolve(location);
|
|
2259
|
+
return [2 /*return*/];
|
|
2260
|
+
}
|
|
2261
|
+
});
|
|
2262
|
+
}); })];
|
|
2263
|
+
});
|
|
2264
|
+
});
|
|
2265
|
+
};
|
|
2266
|
+
// Get Tasks | Markers Location Co Ordinates
|
|
2267
|
+
OpenStreetMapsService.prototype.getMarkersLocation = function (myMarker, tasks) {
|
|
2268
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2269
|
+
var _this = this;
|
|
2270
|
+
return __generator(this, function (_q) {
|
|
2271
|
+
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
2272
|
+
var markers, promises;
|
|
2273
|
+
var _this = this;
|
|
2274
|
+
return __generator(this, function (_q) {
|
|
2275
|
+
switch (_q.label) {
|
|
2276
|
+
case 0:
|
|
2277
|
+
markers = [];
|
|
2278
|
+
markers.push(myMarker);
|
|
2279
|
+
promises = tasks.map(function (task) { return __awaiter(_this, void 0, void 0, function () {
|
|
2280
|
+
var marker;
|
|
2281
|
+
return __generator(this, function (_q) {
|
|
2282
|
+
switch (_q.label) {
|
|
2283
|
+
case 0: return [4 /*yield*/, this.getLocation(task)];
|
|
2284
|
+
case 1:
|
|
2285
|
+
marker = _q.sent();
|
|
2286
|
+
task = Object.assign(Object.assign({}, task), marker);
|
|
2287
|
+
markers.push(task);
|
|
2288
|
+
return [2 /*return*/];
|
|
2289
|
+
}
|
|
2290
|
+
});
|
|
2291
|
+
}); });
|
|
2292
|
+
return [4 /*yield*/, Promise.all(promises)];
|
|
2293
|
+
case 1:
|
|
2294
|
+
_q.sent();
|
|
2295
|
+
resolve(markers);
|
|
2296
|
+
return [2 /*return*/];
|
|
2297
|
+
}
|
|
2298
|
+
});
|
|
2299
|
+
}); })];
|
|
2300
|
+
});
|
|
2301
|
+
});
|
|
2302
|
+
};
|
|
2303
|
+
// To Initialize Open Street Map
|
|
2304
|
+
OpenStreetMapsService.prototype.initializeMap = function () {
|
|
2305
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2306
|
+
var _q;
|
|
2307
|
+
return __generator(this, function (_r) {
|
|
2308
|
+
switch (_r.label) {
|
|
2309
|
+
case 0:
|
|
2310
|
+
console.log("Running Init Open Street Maps");
|
|
2311
|
+
_q = this;
|
|
2312
|
+
return [4 /*yield*/, this.getPosition()];
|
|
2313
|
+
case 1:
|
|
2314
|
+
_q.myPosition = _r.sent();
|
|
2315
|
+
this.map = L__namespace.map("map", {
|
|
2316
|
+
center: [this.myPosition.lat, this.myPosition.lng],
|
|
2317
|
+
zoom: 11
|
|
2318
|
+
});
|
|
2319
|
+
L__namespace.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").addTo(this.map);
|
|
2320
|
+
return [2 /*return*/];
|
|
2321
|
+
}
|
|
2322
|
+
});
|
|
2323
|
+
});
|
|
2324
|
+
};
|
|
2325
|
+
// To Add Open Street Marker in Map
|
|
2326
|
+
OpenStreetMapsService.prototype.addMarker = function (_q) {
|
|
2327
|
+
var lat = _q.lat, lng = _q.lng, title = _q.title, color = _q.color;
|
|
2328
|
+
L__namespace.marker([lat, lng], {
|
|
2329
|
+
icon: L__namespace.icon({
|
|
2330
|
+
iconUrl: color == "red"
|
|
2331
|
+
? "https://kwikid.s3.ap-south-1.amazonaws.com/CONFIG/USER/assets/map-marker-0.png"
|
|
2332
|
+
: "https://kwikid.s3.ap-south-1.amazonaws.com/CONFIG/USER/assets/map-marker-1.png"
|
|
2333
|
+
})
|
|
2334
|
+
})
|
|
2335
|
+
.addTo(this.map)
|
|
2336
|
+
.bindPopup(title);
|
|
2337
|
+
};
|
|
2338
|
+
// To Plot Open Street Directions for All Tasks
|
|
2339
|
+
OpenStreetMapsService.prototype.plotDirectionsForAllTasks = function (tasks) {
|
|
2340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2341
|
+
var myMarker, _q, startingPoint, unvisitedWaypoints, optimizedRoute, styles;
|
|
2342
|
+
var _this = this;
|
|
2343
|
+
return __generator(this, function (_r) {
|
|
2344
|
+
switch (_r.label) {
|
|
2345
|
+
case 0:
|
|
2346
|
+
if (!this.map) return [3 /*break*/, 2];
|
|
2347
|
+
this.allMarkers = [];
|
|
2348
|
+
myMarker = {
|
|
2349
|
+
lat: this.myPosition.lat,
|
|
2350
|
+
lng: this.myPosition.lng,
|
|
2351
|
+
title: 0,
|
|
2352
|
+
color: "red"
|
|
2353
|
+
};
|
|
2354
|
+
this.addMarker(myMarker);
|
|
2355
|
+
this.allMarkers.push(myMarker);
|
|
2356
|
+
// Create Markers for all Tasks
|
|
2357
|
+
_q = this;
|
|
2358
|
+
return [4 /*yield*/, this.getMarkersLocation(myMarker, tasks)];
|
|
2359
|
+
case 1:
|
|
2360
|
+
// Create Markers for all Tasks
|
|
2361
|
+
_q.allMarkers = _r.sent();
|
|
2362
|
+
startingPoint = this.allMarkers[0];
|
|
2363
|
+
unvisitedWaypoints = this.allMarkers.slice(1);
|
|
2364
|
+
optimizedRoute = nearestNeighborAlgorithm(startingPoint, unvisitedWaypoints);
|
|
2365
|
+
// Sort All Markers as per optimized routes
|
|
2366
|
+
this.allMarkers = this.sortTasksAsPerDistance(optimizedRoute, this.allMarkers, true);
|
|
2367
|
+
// Sort All Tasks as per optimized routes
|
|
2368
|
+
tasks = this.sortTasksAsPerDistance(optimizedRoute.slice(1), tasks, false);
|
|
2369
|
+
// Plot Markers for All Tasks
|
|
2370
|
+
tasks.map(function (task) {
|
|
2371
|
+
if (task === null || task === void 0 ? void 0 : task.isValidLocation) {
|
|
2372
|
+
var marker = _this.getLocation(task);
|
|
2373
|
+
_this.addMarker(marker);
|
|
2374
|
+
}
|
|
2375
|
+
});
|
|
2376
|
+
styles = [
|
|
2377
|
+
{ color: "blue", opacity: 1, weight: 8 },
|
|
2378
|
+
{ color: "white", opacity: 0.6, weight: 12 }
|
|
2379
|
+
];
|
|
2380
|
+
// Set Routes for all Tasks
|
|
2381
|
+
this.allTasksRoutes = this.setRoutes(this.allMarkers, styles);
|
|
2382
|
+
this.fitMapBounds();
|
|
2383
|
+
_r.label = 2;
|
|
2384
|
+
case 2: return [2 /*return*/, tasks];
|
|
2385
|
+
}
|
|
2386
|
+
});
|
|
2387
|
+
});
|
|
2388
|
+
};
|
|
2389
|
+
// To plot Open Street Direction for selected Task
|
|
2390
|
+
OpenStreetMapsService.prototype.plotDirectionsForSelectedTask = function (task) {
|
|
2391
|
+
if (task !== null) {
|
|
2392
|
+
// Remove Previously Selected Task Route
|
|
2393
|
+
if (this.selectedTaskRoutes) {
|
|
2394
|
+
this.map.removeControl(this.selectedTaskRoutes);
|
|
2395
|
+
}
|
|
2396
|
+
// Remove All Tasks Routes
|
|
2397
|
+
if (this.allTasksRoutes) {
|
|
2398
|
+
this.map.removeControl(this.allTasksRoutes);
|
|
2399
|
+
}
|
|
2400
|
+
var taskMarker = task;
|
|
2401
|
+
// If Location is Available in Task Details
|
|
2402
|
+
if (taskMarker.color != "red") {
|
|
2403
|
+
var markers = [this.allMarkers[0], taskMarker];
|
|
2404
|
+
var styles = [
|
|
2405
|
+
{ color: "green", opacity: 1, weight: 8 },
|
|
2406
|
+
{ color: "white", opacity: 0.4, weight: 12 }
|
|
2407
|
+
];
|
|
2408
|
+
this.selectedTaskRoutes = this.setRoutes(markers, styles);
|
|
2409
|
+
this.setSelectedTaskDistanceAndTime();
|
|
2410
|
+
}
|
|
2411
|
+
else {
|
|
2412
|
+
alert("No Location Available");
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
// Set All Tasks Routes Again & Remove Selected Tasks route
|
|
2416
|
+
else {
|
|
2417
|
+
if (this.selectedTaskRoutes) {
|
|
2418
|
+
this.map.removeControl(this.selectedTaskRoutes);
|
|
2419
|
+
}
|
|
2420
|
+
this.map.addControl(this.allTasksRoutes);
|
|
2421
|
+
this.selectedTaskRoutes = undefined;
|
|
2422
|
+
}
|
|
2423
|
+
this.fitMapBounds();
|
|
2424
|
+
};
|
|
2425
|
+
// Get Distance & Time of Selected Task
|
|
2426
|
+
OpenStreetMapsService.prototype.getSelectedTaskDistanceAndTime = function () {
|
|
2427
|
+
return this.selectedTaskDistanceAndTime;
|
|
2428
|
+
};
|
|
2429
|
+
// Set Distance & Time of Selected Task
|
|
2430
|
+
OpenStreetMapsService.prototype.setSelectedTaskDistanceAndTime = function () {
|
|
2431
|
+
this.selectedTaskRoutes.on("routesfound", function (e) {
|
|
2432
|
+
var routes = e.routes;
|
|
2433
|
+
var summary = routes[0].summary;
|
|
2434
|
+
var distance = summary.totalDistance / 1000;
|
|
2435
|
+
var time = Math.round((summary.totalTime % 3600) / 60);
|
|
2436
|
+
this.selectedTaskDistanceAndTime = {
|
|
2437
|
+
distance: distance,
|
|
2438
|
+
time: time
|
|
2439
|
+
};
|
|
2440
|
+
});
|
|
2441
|
+
};
|
|
2442
|
+
// To sort Open Street Maps Task as per nearest distance
|
|
2443
|
+
OpenStreetMapsService.prototype.sortTasksAsPerDistance = function (order, tasks, isMarker) {
|
|
2444
|
+
var sortedTasks = [];
|
|
2445
|
+
for (var i = 0; i < tasks.length; i++) {
|
|
2446
|
+
var title = isMarker ? order[i].title : order[i].title - 1;
|
|
2447
|
+
var task = tasks[title];
|
|
2448
|
+
sortedTasks.push(task);
|
|
2449
|
+
}
|
|
2450
|
+
return sortedTasks;
|
|
2451
|
+
};
|
|
2452
|
+
// To set Open Street routes in the maps
|
|
2453
|
+
OpenStreetMapsService.prototype.setRoutes = function (markers, styles) {
|
|
2454
|
+
return L__namespace.Routing.control({
|
|
2455
|
+
waypoints: markers,
|
|
2456
|
+
lineOptions: {
|
|
2457
|
+
styles: styles
|
|
2458
|
+
},
|
|
2459
|
+
createMarker: function () {
|
|
2460
|
+
return null;
|
|
2461
|
+
},
|
|
2462
|
+
routeWhileDragging: true
|
|
2463
|
+
}).addTo(this.map);
|
|
2464
|
+
};
|
|
2465
|
+
// To set Open Street view point on the map
|
|
2466
|
+
OpenStreetMapsService.prototype.fitMapBounds = function () {
|
|
2467
|
+
var markerLatLngs = this.allMarkers.map(function (marker) { return L__namespace.latLng(marker.lat, marker.lng); });
|
|
2468
|
+
this.map.fitBounds(markerLatLngs);
|
|
2469
|
+
};
|
|
2470
|
+
return OpenStreetMapsService;
|
|
1779
2471
|
}());
|
|
1780
|
-
/** @nocollapse */
|
|
1781
|
-
/** @nocollapse */
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
i3.TuiSvgModule,
|
|
1785
|
-
i1.KwikUIModule,
|
|
1786
|
-
i3$2.KwikIDFormsModule], exports: [BottomSheetComponent] });
|
|
1787
|
-
/** @nocollapse */ BottomSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, imports: [[
|
|
1788
|
-
i3$1.CommonModule,
|
|
1789
|
-
i2$1.FormsModule,
|
|
1790
|
-
i2$1.ReactiveFormsModule,
|
|
1791
|
-
i3.TuiSvgModule,
|
|
1792
|
-
i1.KwikUIModule,
|
|
1793
|
-
i3$2.KwikIDFormsModule
|
|
1794
|
-
]] });
|
|
1795
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, decorators: [{
|
|
1796
|
-
type: i0.NgModule,
|
|
2472
|
+
/** @nocollapse */ OpenStreetMapsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OpenStreetMapsService, deps: [{ token: AgentService }, { token: i2__namespace$2.MapDirectionsService }, { token: i3__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2473
|
+
/** @nocollapse */ OpenStreetMapsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OpenStreetMapsService, providedIn: "root" });
|
|
2474
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OpenStreetMapsService, decorators: [{
|
|
2475
|
+
type: i0.Injectable,
|
|
1797
2476
|
args: [{
|
|
1798
|
-
|
|
1799
|
-
imports: [
|
|
1800
|
-
i3$1.CommonModule,
|
|
1801
|
-
i2$1.FormsModule,
|
|
1802
|
-
i2$1.ReactiveFormsModule,
|
|
1803
|
-
i3.TuiSvgModule,
|
|
1804
|
-
i1.KwikUIModule,
|
|
1805
|
-
i3$2.KwikIDFormsModule
|
|
1806
|
-
],
|
|
1807
|
-
exports: [BottomSheetComponent]
|
|
2477
|
+
providedIn: "root"
|
|
1808
2478
|
}]
|
|
1809
|
-
}] }
|
|
2479
|
+
}], ctorParameters: function () { return [{ type: AgentService }, { type: i2__namespace$2.MapDirectionsService }, { type: i3__namespace$2.HttpClient }]; }, propDecorators: { directionsRenders: [{
|
|
2480
|
+
type: i0.ViewChildren,
|
|
2481
|
+
args: ["directionsRender"]
|
|
2482
|
+
}] } });
|
|
1810
2483
|
|
|
1811
|
-
var
|
|
1812
|
-
function
|
|
2484
|
+
var StatusPillComponent = /** @class */ (function () {
|
|
2485
|
+
function StatusPillComponent() {
|
|
2486
|
+
this.status = EStatus.WAITING;
|
|
2487
|
+
this.statusText = "";
|
|
2488
|
+
this.statusClass = {};
|
|
1813
2489
|
}
|
|
1814
|
-
|
|
2490
|
+
StatusPillComponent.prototype.ngOnInit = function () {
|
|
2491
|
+
this.parseStatus(this.status);
|
|
2492
|
+
};
|
|
2493
|
+
StatusPillComponent.prototype.ngOnChanges = function (changes) {
|
|
2494
|
+
var verifyChange = function (key) {
|
|
2495
|
+
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
2496
|
+
};
|
|
2497
|
+
if (verifyChange("status")) {
|
|
2498
|
+
this.status = changes.status.currentValue;
|
|
2499
|
+
this.parseStatus(this.status);
|
|
2500
|
+
}
|
|
2501
|
+
};
|
|
2502
|
+
StatusPillComponent.prototype.parseStatus = function (status) {
|
|
2503
|
+
if (kwikidToolkit.isEmptyValue(status)) {
|
|
2504
|
+
this.status = EStatus.WAITING;
|
|
2505
|
+
}
|
|
2506
|
+
this.statusText = this.getStatusLabel(status);
|
|
2507
|
+
this.statusClass = this.getStatusPillClass(status);
|
|
2508
|
+
};
|
|
2509
|
+
StatusPillComponent.prototype.getStatusPillClass = function (status) {
|
|
2510
|
+
var newStatus = status
|
|
2511
|
+
.replace("_", "-")
|
|
2512
|
+
.replace("_", "-")
|
|
2513
|
+
.replace("_", "-");
|
|
2514
|
+
return "status-pill " + newStatus;
|
|
2515
|
+
};
|
|
2516
|
+
StatusPillComponent.prototype.getStatusLabel = function (status) {
|
|
2517
|
+
return status.replace("_", " ").replace("_", " ").replace("_", " ");
|
|
2518
|
+
};
|
|
2519
|
+
return StatusPillComponent;
|
|
1815
2520
|
}());
|
|
1816
|
-
/** @nocollapse */
|
|
1817
|
-
/** @nocollapse */
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
i1.KwikUIModule,
|
|
1821
|
-
i3$2.KwikIDFormsModule], exports: [MapViewComponent] });
|
|
1822
|
-
/** @nocollapse */ MapViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, imports: [[
|
|
1823
|
-
i3$1.CommonModule,
|
|
1824
|
-
i2$1.FormsModule,
|
|
1825
|
-
i2$1.ReactiveFormsModule,
|
|
1826
|
-
i1.KwikUIModule,
|
|
1827
|
-
i3$2.KwikIDFormsModule
|
|
1828
|
-
]] });
|
|
1829
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, decorators: [{
|
|
1830
|
-
type: i0.NgModule,
|
|
2521
|
+
/** @nocollapse */ StatusPillComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2522
|
+
/** @nocollapse */ StatusPillComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StatusPillComponent, selector: "status-pill", inputs: { status: "status" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div [ngClass]=\"getStatusPillClass(status)\">{{ getStatusLabel(status) }}</div>\n", styles: [".status-pill{background-color:#dedede;padding:.1rem .5rem;border-radius:1rem;font-size:.7rem;color:#222}.complete,.kyc-request-accepted,.kyc-result-approved{background-color:#d7faee;color:#01663e}.rejected,.kyc-request-rejected,.kyc-result-rejected,.kyc-rejected{background:#f9dade;color:#eb3434}.auditing,.on-going,.kyc-result-partial-update,.kyc-resut-partial-update{background-color:#c1e3f4;color:#023b57}.after-audit,.waiting,.kyc-result-under-review{background-color:#f5ecb5;color:#000}\n"], directives: [{ type: i7__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2523
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, decorators: [{
|
|
2524
|
+
type: i0.Component,
|
|
1831
2525
|
args: [{
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
2526
|
+
selector: "status-pill",
|
|
2527
|
+
templateUrl: "./status-pill.component.html",
|
|
2528
|
+
styleUrls: ["./status-pill.component.css"]
|
|
2529
|
+
}]
|
|
2530
|
+
}], propDecorators: { status: [{
|
|
2531
|
+
type: i0.Input
|
|
2532
|
+
}] } });
|
|
2533
|
+
|
|
2534
|
+
var ActionButtonComponent = /** @class */ (function () {
|
|
2535
|
+
function ActionButtonComponent() {
|
|
2536
|
+
var _this = this;
|
|
2537
|
+
this.action = {};
|
|
2538
|
+
this.config = {};
|
|
2539
|
+
this.customer = {};
|
|
2540
|
+
this.disabled = false;
|
|
2541
|
+
this.hidden = false;
|
|
2542
|
+
this.onClickPerformAction = new i0.EventEmitter();
|
|
2543
|
+
this.takeAction = function (action) {
|
|
2544
|
+
switch (action.key) {
|
|
2545
|
+
case "BUTTON_DISABLE":
|
|
2546
|
+
_this.disabled = true;
|
|
2547
|
+
break;
|
|
2548
|
+
case "BUTTON_ENABLE":
|
|
2549
|
+
_this.disabled = false;
|
|
2550
|
+
break;
|
|
2551
|
+
case "BUTTON_HIDE":
|
|
2552
|
+
_this.hidden = true;
|
|
2553
|
+
break;
|
|
2554
|
+
case "BUTTON_SHOW":
|
|
2555
|
+
_this.hidden = false;
|
|
2556
|
+
break;
|
|
2557
|
+
default:
|
|
2558
|
+
break;
|
|
2559
|
+
}
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
ActionButtonComponent.prototype.ngOnInit = function () { };
|
|
2563
|
+
ActionButtonComponent.prototype.ngOnChanges = function (changes) {
|
|
2564
|
+
var _a;
|
|
2565
|
+
var verifyChange = function (key) {
|
|
2566
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
2567
|
+
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
2568
|
+
};
|
|
2569
|
+
if (verifyChange("action")) {
|
|
2570
|
+
this.action = changes.action.currentValue;
|
|
2571
|
+
}
|
|
2572
|
+
if (verifyChange("customer")) {
|
|
2573
|
+
this.customer = changes.customer.currentValue;
|
|
2574
|
+
}
|
|
2575
|
+
if ((_a = this.action) === null || _a === void 0 ? void 0 : _a.default) {
|
|
2576
|
+
this.runValidations();
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2579
|
+
ActionButtonComponent.prototype.runValidations = function () {
|
|
2580
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2581
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2582
|
+
return __generator(this, function (_g) {
|
|
2583
|
+
switch (_g.label) {
|
|
2584
|
+
case 0: return [4 /*yield*/, new kwikidToolkit.RuleEngine({
|
|
2585
|
+
DATA: this.customer
|
|
2586
|
+
}, this.takeAction).run({
|
|
2587
|
+
triggers: [],
|
|
2588
|
+
rules: (_c = (_b = (_a = this.action) === null || _a === void 0 ? void 0 : _a.default) === null || _b === void 0 ? void 0 : _b.rules) !== null && _c !== void 0 ? _c : [],
|
|
2589
|
+
actions: (_f = (_e = (_d = this.action) === null || _d === void 0 ? void 0 : _d.default) === null || _e === void 0 ? void 0 : _e.actions) !== null && _f !== void 0 ? _f : []
|
|
2590
|
+
})];
|
|
2591
|
+
case 1:
|
|
2592
|
+
_g.sent();
|
|
2593
|
+
return [2 /*return*/];
|
|
2594
|
+
}
|
|
2595
|
+
});
|
|
2596
|
+
});
|
|
2597
|
+
};
|
|
2598
|
+
ActionButtonComponent.prototype.handleOnClickPerformAction = function (action, customer) {
|
|
2599
|
+
this.onClickPerformAction.emit({
|
|
2600
|
+
action: action,
|
|
2601
|
+
customer: customer
|
|
2602
|
+
});
|
|
2603
|
+
};
|
|
2604
|
+
return ActionButtonComponent;
|
|
2605
|
+
}());
|
|
2606
|
+
/** @nocollapse */ ActionButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2607
|
+
/** @nocollapse */ ActionButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionButtonComponent, selector: "kwikid-action-button", inputs: { action: "action", config: "config", customer: "customer" }, outputs: { onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<kwikui-button\n *ngIf=\"!hidden\"\n appearance=\"primary\"\n [disabled]=\"disabled\"\n [label]=\"action?.label\"\n [icon]=\"action?.icon\"\n [iconRight]=\"action?.iconRight\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickPerformAction(action, customer)\"\n></kwikui-button>\n", styles: [""], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2608
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionButtonComponent, decorators: [{
|
|
2609
|
+
type: i0.Component,
|
|
2610
|
+
args: [{
|
|
2611
|
+
selector: "kwikid-action-button",
|
|
2612
|
+
templateUrl: "./action-button.component.html",
|
|
2613
|
+
styleUrls: ["./action-button.component.css"]
|
|
2614
|
+
}]
|
|
2615
|
+
}], ctorParameters: function () { return []; }, propDecorators: { action: [{
|
|
2616
|
+
type: i0.Input
|
|
2617
|
+
}], config: [{
|
|
2618
|
+
type: i0.Input
|
|
2619
|
+
}], customer: [{
|
|
2620
|
+
type: i0.Input
|
|
2621
|
+
}], onClickPerformAction: [{
|
|
2622
|
+
type: i0.Output
|
|
2623
|
+
}] } });
|
|
2624
|
+
|
|
2625
|
+
/* eslint-disable no-empty-function */
|
|
2626
|
+
var CustomerDetailsComponent = /** @class */ (function () {
|
|
2627
|
+
function CustomerDetailsComponent(agentService, googleMapsService, openStreetMapsService, cdr) {
|
|
2628
|
+
this.agentService = agentService;
|
|
2629
|
+
this.googleMapsService = googleMapsService;
|
|
2630
|
+
this.openStreetMapsService = openStreetMapsService;
|
|
2631
|
+
this.cdr = cdr;
|
|
2632
|
+
this.customer = {};
|
|
2633
|
+
this.title = "Session Details";
|
|
2634
|
+
this.viewTaskDetails = [];
|
|
2635
|
+
this.taskId = "";
|
|
2636
|
+
this.labelValuePairConfig = {};
|
|
2637
|
+
this.labelValuePairData = [];
|
|
2638
|
+
this.nextStep = new i0.EventEmitter();
|
|
2639
|
+
this.removeTask = new i0.EventEmitter();
|
|
2640
|
+
this.onClickPerformAction = new i0.EventEmitter();
|
|
2641
|
+
}
|
|
2642
|
+
CustomerDetailsComponent.prototype.ngOnInit = function () {
|
|
2643
|
+
this.parseData();
|
|
2644
|
+
};
|
|
2645
|
+
CustomerDetailsComponent.prototype.ngOnChanges = function (changes) {
|
|
2646
|
+
var verifyChange = function (key) {
|
|
2647
|
+
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
2648
|
+
};
|
|
2649
|
+
if (verifyChange("customer")) {
|
|
2650
|
+
this.customer = changes.customer.currentValue;
|
|
2651
|
+
this.parseData();
|
|
2652
|
+
}
|
|
2653
|
+
};
|
|
2654
|
+
CustomerDetailsComponent.prototype.parseData = function () {
|
|
2655
|
+
var _this = this;
|
|
2656
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2657
|
+
var identifier = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.taskIdentifier) !== null && _c !== void 0 ? _c : "user_id";
|
|
2658
|
+
this.taskId = kwikidToolkit.getObjectValueFromPath(this.customer, identifier);
|
|
2659
|
+
var detailsConfig = [];
|
|
2660
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.viewTaskDetails") &&
|
|
2661
|
+
kwikidToolkit.isNotEmptyArray(this.config.dashboard.viewTaskDetails)) {
|
|
2662
|
+
detailsConfig = this.config.dashboard.viewTaskDetails;
|
|
2663
|
+
var data_1 = [];
|
|
2664
|
+
detailsConfig.map(function (field) {
|
|
2665
|
+
var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.value);
|
|
2666
|
+
data_1.push({ label: field.label, value: value });
|
|
2667
|
+
return true;
|
|
2668
|
+
});
|
|
2669
|
+
this.labelValuePairData = data_1;
|
|
2670
|
+
}
|
|
2671
|
+
else if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.taskUI.details.data") &&
|
|
2672
|
+
kwikidToolkit.isNotEmptyArray(this.config.dashboard.taskUI.details.data)) {
|
|
2673
|
+
detailsConfig = this.config.dashboard.taskUI.details.data;
|
|
2674
|
+
var data_2 = [];
|
|
2675
|
+
detailsConfig.map(function (field) {
|
|
2676
|
+
var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.path);
|
|
2677
|
+
data_2.push({ label: field.label, value: value });
|
|
2678
|
+
return true;
|
|
2679
|
+
});
|
|
2680
|
+
this.labelValuePairData = data_2;
|
|
2681
|
+
}
|
|
2682
|
+
this.labelValuePairConfig =
|
|
2683
|
+
(_h = (_g = (_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.dashboard) === null || _e === void 0 ? void 0 : _e.taskUI) === null || _f === void 0 ? void 0 : _f.details) === null || _g === void 0 ? void 0 : _g.config) !== null && _h !== void 0 ? _h : {};
|
|
2684
|
+
this.title =
|
|
2685
|
+
(_p = (_o = (_m = (_l = (_k = (_j = this.config) === null || _j === void 0 ? void 0 : _j.dashboard) === null || _k === void 0 ? void 0 : _k.taskUI) === null || _l === void 0 ? void 0 : _l.details) === null || _m === void 0 ? void 0 : _m.header) === null || _o === void 0 ? void 0 : _o.title) !== null && _p !== void 0 ? _p : this.title;
|
|
2686
|
+
};
|
|
2687
|
+
CustomerDetailsComponent.prototype.getTaskCreationTime = function (task) {
|
|
2688
|
+
var _a;
|
|
2689
|
+
if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskCreationTimePath")) {
|
|
2690
|
+
var time = kwikidToolkit.getObjectValueFromPath(task, this.agentService.config.dashboard.taskCreationTimePath);
|
|
2691
|
+
return this.convertEpochToDate(time);
|
|
2692
|
+
}
|
|
2693
|
+
return this.convertEpochToDate((_a = task === null || task === void 0 ? void 0 : task.task_creation_time) !== null && _a !== void 0 ? _a : task === null || task === void 0 ? void 0 : task.start_time);
|
|
2694
|
+
};
|
|
2695
|
+
CustomerDetailsComponent.prototype.convertEpochToDate = function (epochTime) {
|
|
2696
|
+
if (typeof epochTime === "string")
|
|
2697
|
+
epochTime = Number(epochTime);
|
|
2698
|
+
var date = new Date(epochTime * 1000); // Convert to milliseconds
|
|
2699
|
+
var day = date.getDate().toString().padStart(2, "0");
|
|
2700
|
+
var month = (date.getMonth() + 1).toString().padStart(2, "0"); // Months are zero-based
|
|
2701
|
+
var year = date.getFullYear().toString();
|
|
2702
|
+
return day + "-" + month + "-" + year;
|
|
2703
|
+
};
|
|
2704
|
+
CustomerDetailsComponent.prototype.getTaskDetails = function (taskData) {
|
|
2705
|
+
return kwikidToolkit.getObjectValueFromPath(this.customer, taskData);
|
|
2706
|
+
};
|
|
2707
|
+
CustomerDetailsComponent.prototype.goToMaps = function (location) {
|
|
2708
|
+
window.open("" + location, "_blank");
|
|
2709
|
+
};
|
|
2710
|
+
CustomerDetailsComponent.prototype.handleOnClickNext = function (e) {
|
|
2711
|
+
this.nextStep.emit(e);
|
|
2712
|
+
};
|
|
2713
|
+
CustomerDetailsComponent.prototype.close = function () {
|
|
2714
|
+
var _a, _b;
|
|
2715
|
+
this.agentService.currentTaskDetails = undefined;
|
|
2716
|
+
if (((_b = (_a = this.agentService.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.mapType) === "google-maps") {
|
|
2717
|
+
this.googleMapsService.plotDirectionsForSelectedTask(null);
|
|
2718
|
+
}
|
|
2719
|
+
else {
|
|
2720
|
+
this.openStreetMapsService.plotDirectionsForSelectedTask(null);
|
|
2721
|
+
}
|
|
2722
|
+
};
|
|
2723
|
+
CustomerDetailsComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
2724
|
+
this.removeTask.emit(task);
|
|
2725
|
+
};
|
|
2726
|
+
CustomerDetailsComponent.prototype.handleOnClickPerformAction = function (event) {
|
|
2727
|
+
this.onClickPerformAction.emit(event);
|
|
2728
|
+
};
|
|
2729
|
+
return CustomerDetailsComponent;
|
|
2730
|
+
}());
|
|
2731
|
+
/** @nocollapse */ CustomerDetailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerDetailsComponent, deps: [{ token: AgentService }, { token: GoogleMapsService }, { token: OpenStreetMapsService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2732
|
+
/** @nocollapse */ CustomerDetailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerDetailsComponent, selector: "customer-details", inputs: { customer: "customer", config: "config" }, outputs: { nextStep: "nextStep", removeTask: "removeTask", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"customer-details-wrapper\">\n <div>\n <kwikui-button\n icon=\"tuiIconChevronLeft\"\n label=\"Back\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"close()\"\n ></kwikui-button>\n </div>\n <div class=\"customer-details-heading\">{{ title }}</div>\n <div class=\"customer-details-body\">\n <div class=\"customer-details-user-id\">\n {{ taskId }}\n\n <status-pill\n *ngIf=\"config?.dashboard?.isShowTaskStatus\"\n [status]=\"customer.session_status\"\n ></status-pill>\n </div>\n\n <div class=\"customer-details-table\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n </div>\n\n <div\n class=\"customer-details-actions\"\n *ngIf=\"\n config?.dashboard?.taskUI?.details?.action &&\n config?.dashboard?.taskUI?.details?.action?.length > 0\n \"\n >\n <ng-container\n *ngFor=\"let action of config?.dashboard?.taskUI?.details?.action\"\n >\n <kwikid-action-button\n [action]=\"action\"\n [config]=\"config\"\n [customer]=\"customer\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-action-button>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".customer-details-wrapper{display:flex;flex-direction:column;align-items:stretch;overflow:auto;grid-gap:.5rem;gap:.5rem;padding:1.5rem;height:100%;width:100%}.customer-details-wrapper .customer-details-heading{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1rem 0;font-size:1.5rem;font-weight:600}.customer-details-wrapper .customer-details-body{display:flex;flex-direction:column;font-size:1rem}.customer-details-wrapper .customer-details-body .customer-details-user-id{display:flex;flex-direction:row;grid-gap:.6rem;gap:.6rem;align-items:center;font-size:1.25rem;font-weight:500;padding:.5rem 0}.customer-details-wrapper .customer-details-body .customer-details-table{display:flex;grid-gap:.5rem;gap:.5rem;flex-direction:column}.customer-details-wrapper .customer-details-body .customer-details-table .customer-details-table-data .customer-details-table-detail-name{font-weight:500}.customer-details-wrapper .customer-details-body .customer-details-table .customer-details-table-data .customer-details-table-detail-value{word-wrap:break-word}.customer-details-wrapper .customer-details-body .customer-details-date{padding-top:1rem}.customer-details-wrapper .customer-details-body .customer-details-actions{padding:.5rem 0;display:flex;flex-wrap:wrap;align-items:center;flex-direction:row;justify-content:flex-start;grid-gap:.5rem;gap:.5rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: ActionButtonComponent, selector: "kwikid-action-button", inputs: ["action", "config", "customer"], outputs: ["onClickPerformAction"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
2733
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerDetailsComponent, decorators: [{
|
|
2734
|
+
type: i0.Component,
|
|
2735
|
+
args: [{
|
|
2736
|
+
selector: "customer-details",
|
|
2737
|
+
templateUrl: "./customer-details.component.html",
|
|
2738
|
+
styleUrls: ["./customer-details.component.scss"],
|
|
2739
|
+
changeDetection: i0.ChangeDetectionStrategy.Default
|
|
2740
|
+
}]
|
|
2741
|
+
}], ctorParameters: function () { return [{ type: AgentService }, { type: GoogleMapsService }, { type: OpenStreetMapsService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { customer: [{
|
|
2742
|
+
type: i0.Input
|
|
2743
|
+
}], config: [{
|
|
2744
|
+
type: i0.Input
|
|
2745
|
+
}], nextStep: [{
|
|
2746
|
+
type: i0.Output
|
|
2747
|
+
}], removeTask: [{
|
|
2748
|
+
type: i0.Output
|
|
2749
|
+
}], onClickPerformAction: [{
|
|
2750
|
+
type: i0.Output
|
|
2751
|
+
}] } });
|
|
2752
|
+
|
|
2753
|
+
var CustomerTileComponent = /** @class */ (function () {
|
|
2754
|
+
function CustomerTileComponent(googleMapsService, openStreetMapsService, agentService, hostElement) {
|
|
2755
|
+
this.googleMapsService = googleMapsService;
|
|
2756
|
+
this.openStreetMapsService = openStreetMapsService;
|
|
2757
|
+
this.agentService = agentService;
|
|
2758
|
+
this.hostElement = hostElement;
|
|
2759
|
+
this.customer = {};
|
|
2760
|
+
this.index = undefined;
|
|
2761
|
+
this.isMobileView = false;
|
|
2762
|
+
this.viewTaskDetails = [];
|
|
2763
|
+
this.taskId = "";
|
|
2764
|
+
this.labelValuePairConfig = {};
|
|
2765
|
+
this.labelValuePairData = [];
|
|
2766
|
+
this.onClickPerformAction = new i0.EventEmitter();
|
|
2767
|
+
this.nextStep = new i0.EventEmitter();
|
|
2768
|
+
this.removeTask = new i0.EventEmitter();
|
|
2769
|
+
}
|
|
2770
|
+
CustomerTileComponent.prototype.windowResizeWatcher = function () {
|
|
2771
|
+
if (this.hostElement.nativeElement.offsetWidth < 600) {
|
|
2772
|
+
this.isMobileView = true;
|
|
2773
|
+
}
|
|
2774
|
+
else {
|
|
2775
|
+
this.isMobileView = false;
|
|
2776
|
+
}
|
|
2777
|
+
};
|
|
2778
|
+
CustomerTileComponent.prototype.ngOnInit = function () {
|
|
2779
|
+
this.parseData();
|
|
2780
|
+
};
|
|
2781
|
+
CustomerTileComponent.prototype.ngOnChanges = function (changes) {
|
|
2782
|
+
var verifyChange = function (key) {
|
|
2783
|
+
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
2784
|
+
};
|
|
2785
|
+
if (verifyChange("customer")) {
|
|
2786
|
+
this.customer = changes.customer.currentValue;
|
|
2787
|
+
this.parseData();
|
|
2788
|
+
}
|
|
2789
|
+
};
|
|
2790
|
+
CustomerTileComponent.prototype.parseData = function () {
|
|
2791
|
+
var _this = this;
|
|
2792
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2793
|
+
var identifier = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.taskIdentifier) !== null && _c !== void 0 ? _c : "user_id";
|
|
2794
|
+
this.taskId = kwikidToolkit.getObjectValueFromPath(this.customer, identifier);
|
|
2795
|
+
var detailsConfig = [];
|
|
2796
|
+
if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.viewTaskDetails") &&
|
|
2797
|
+
kwikidToolkit.isNotEmptyArray(this.config.dashboard.viewTaskDetails)) {
|
|
2798
|
+
detailsConfig = this.config.dashboard.viewTaskDetails;
|
|
2799
|
+
var data_1 = [];
|
|
2800
|
+
detailsConfig.map(function (field) {
|
|
2801
|
+
var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.value);
|
|
2802
|
+
data_1.push({ label: field.label, value: value });
|
|
2803
|
+
return true;
|
|
2804
|
+
});
|
|
2805
|
+
this.labelValuePairData = data_1;
|
|
2806
|
+
}
|
|
2807
|
+
else if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.taskUI.details.data") &&
|
|
2808
|
+
kwikidToolkit.isNotEmptyArray(this.config.dashboard.taskUI.details.data)) {
|
|
2809
|
+
detailsConfig = this.config.dashboard.taskUI.details.data;
|
|
2810
|
+
var data_2 = [];
|
|
2811
|
+
detailsConfig.map(function (field) {
|
|
2812
|
+
var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.path);
|
|
2813
|
+
data_2.push({ label: field.label, value: value });
|
|
2814
|
+
return true;
|
|
2815
|
+
});
|
|
2816
|
+
this.labelValuePairData = data_2;
|
|
2817
|
+
}
|
|
2818
|
+
this.labelValuePairConfig =
|
|
2819
|
+
(_h = (_g = (_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.dashboard) === null || _e === void 0 ? void 0 : _e.taskUI) === null || _f === void 0 ? void 0 : _f.details) === null || _g === void 0 ? void 0 : _g.config) !== null && _h !== void 0 ? _h : {};
|
|
2820
|
+
};
|
|
2821
|
+
CustomerTileComponent.prototype.openDetails = function () {
|
|
2822
|
+
var _a, _b, _c, _d;
|
|
2823
|
+
var isDifferentTaskSelected = ((_a = this.agentService.currentTaskDetails) === null || _a === void 0 ? void 0 : _a.session_id) !==
|
|
2824
|
+
((_b = this.customer) === null || _b === void 0 ? void 0 : _b.session_id);
|
|
2825
|
+
if (isDifferentTaskSelected) {
|
|
2826
|
+
this.agentService.currentTaskDetails = this.customer;
|
|
2827
|
+
}
|
|
2828
|
+
else {
|
|
2829
|
+
this.agentService.currentTaskDetails = undefined;
|
|
2830
|
+
}
|
|
2831
|
+
if (this.agentService.showMapview) {
|
|
2832
|
+
if (((_d = (_c = this.agentService.config) === null || _c === void 0 ? void 0 : _c.dashboard) === null || _d === void 0 ? void 0 : _d.mapType) === "google-maps") {
|
|
2833
|
+
this.googleMapsService.plotDirectionsForSelectedTask(this.agentService.currentTaskDetails);
|
|
2834
|
+
}
|
|
2835
|
+
else {
|
|
2836
|
+
this.openStreetMapsService.plotDirectionsForSelectedTask(this.agentService.currentTaskDetails);
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
};
|
|
2840
|
+
CustomerTileComponent.prototype.goToMaps = function (location) {
|
|
2841
|
+
window.open("" + location, "_blank");
|
|
2842
|
+
};
|
|
2843
|
+
CustomerTileComponent.prototype.handleOnClickPerformAction = function (event) {
|
|
2844
|
+
this.onClickPerformAction.emit(event);
|
|
2845
|
+
};
|
|
2846
|
+
CustomerTileComponent.prototype.handleOnClickNext = function (e) {
|
|
2847
|
+
this.nextStep.emit(e);
|
|
2848
|
+
};
|
|
2849
|
+
CustomerTileComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
2850
|
+
this.removeTask.emit(task);
|
|
2851
|
+
};
|
|
2852
|
+
return CustomerTileComponent;
|
|
2853
|
+
}());
|
|
2854
|
+
/** @nocollapse */ CustomerTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, deps: [{ token: GoogleMapsService }, { token: OpenStreetMapsService }, { token: AgentService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2855
|
+
/** @nocollapse */ CustomerTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerTileComponent, selector: "customer-tile", inputs: { customer: "customer", index: "index", config: "config" }, outputs: { onClickPerformAction: "onClickPerformAction", nextStep: "nextStep", removeTask: "removeTask" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n [ngClass]=\"\n customer?.session_id == agentService.currentTaskDetails?.session_id\n ? 'customer-tile-wrapper customer-tile-active'\n : 'customer-tile-wrapper'\n \"\n>\n <div class=\"customer-tile-primary-container\">\n <div class=\"customer-tile-primary-container-data\">\n <div class=\"customer-tile-primary-container-userid\">\n {{ taskId }}\n </div>\n <status-pill\n *ngIf=\"config?.dashboard?.isShowTaskStatus\"\n [status]=\"customer.session_status\"\n ></status-pill>\n </div>\n <kwikui-button\n *ngIf=\"!agentService.isMobileView && !agentService.showMapview\"\n [icon]=\"\n agentService.currentTaskDetails?.session_id == customer?.session_id\n ? 'tuiIconChevronLeftLarge'\n : 'tuiIconChevronRightLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"openDetails()\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"agentService.isMobileView || agentService.showMapview\"\n [icon]=\"\n agentService.currentTaskDetails?.session_id == customer?.session_id\n ? 'tuiIconChevronUpLarge'\n : 'tuiIconChevronDownLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"openDetails()\"\n ></kwikui-button>\n </div>\n <div\n *ngIf=\"\n customer?.session_id == agentService.currentTaskDetails?.session_id &&\n (agentService.isMobileView || agentService.showMapview)\n \"\n [ngClass]=\"\n customer?.session_id == agentService.currentTaskDetails?.session_id &&\n (agentService.isMobileView || agentService.showMapview)\n ? 'customer-tile-secondary-container'\n : 'data-collasped'\n \"\n >\n <div class=\"customer-tile-secondary-container-data\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n <!-- <div\n *ngIf=\"\n agentService.config?.dashboard?.maps?.sho &&\n agentService.config?.dashboard?.isShowDistanceAndTime &&\n openStreetMapsService.getSelectedTaskDistanceAndTime()\n \"\n class=\"customer-tile-secondary-container-custom-details\"\n >\n Distance: {{ openStreetMapsService.getSelectedTaskDistanceAndTime()?.distance }} |\n Time: {{ openStreetMapsService.getSelectedTaskDistanceAndTime()?.time }}\n </div> -->\n </div>\n <div class=\"customer-tile-secondary-container-actions\">\n <ng-container\n *ngFor=\"let action of config?.dashboard?.taskUI?.details?.action\"\n >\n <kwikid-action-button\n [action]=\"action\"\n [config]=\"config\"\n [customer]=\"customer\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-action-button>\n </ng-container>\n <!-- <div class=\"customer-tile-secondary-container-task-buttons\">\n <kwikui-button\n *ngIf=\"config.dashboard?.isAllowRemoveTask\"\n [icon]=\"'tuiIconTrash2'\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"handleOnClickRemoveTask(customer)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"config.dashboard?.isShowCopyLink\"\n icon=\"tuiIconCopy\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"\n handleOnClickNext({\n customer: customer,\n stepType: 'SHARE_JOURNEY_LINK'\n })\n \"\n ></kwikui-button>\n </div>\n <div class=\"customer-tile-secondary-container-journey-buttons\">\n <kwikui-button\n *ngIf=\"config.dashboard?.isShowMaps && customer?.isValidLocation\"\n label=\"Show Directions\"\n appearance=\"flat\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToMaps(customer.googleMapsUrl)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"\n config.dashboard?.isAllowStartJourney &&\n agentService.canStartJourney(customer.session_status)\n \"\n label=\"Start Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n handleOnClickNext({ customer: customer, stepType: 'START_JOURNEY' })\n \"\n ></kwikui-button>\n </div> -->\n </div>\n </div>\n</div>\n", styles: [".customer-tile-wrapper{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto;grid-gap:.5rem;gap:.5rem;margin:1rem;padding:1rem .25rem 1rem 1rem;border-radius:1rem;border:.5px solid #ddd}.customer-tile-wrapper .customer-tile-primary-container{display:flex;grid-gap:.5rem;gap:.5rem;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;width:100%;height:100%}.customer-tile-wrapper .customer-tile-primary-container .customer-tile-primary-container-data{padding-left:.2rem;grid-gap:.6rem;gap:.6rem;display:flex;flex-direction:column;flex-wrap:wrap;align-content:stretch;justify-content:flex-start;align-items:flex-start}.customer-tile-wrapper .customer-tile-primary-container .customer-tile-primary-container-data .customer-tile-primary-container-userid{font-weight:500;font-size:1.1rem;line-height:1rem}.customer-tile-wrapper .customer-tile-secondary-container{width:100%;height:100%;display:flex;flex-direction:column;overflow:auto;grid-gap:.5rem;gap:.5rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-data{padding:.4rem .2rem;display:flex;flex-direction:column;font-size:.7rem;grid-gap:.3rem;gap:.3rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-data .customer-tile-secondary-container-custom-details{width:100%;height:100%;line-height:.9rem;word-wrap:break-word}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions{padding:.5rem 0;display:flex;flex-wrap:wrap;align-items:center;flex-direction:row;justify-content:flex-start;grid-gap:.5rem;gap:.5rem}.customer-tile-wrapper .data-collasped{display:none}.customer-tile-active{background-color:#dcedfd}\n"], components: [{ type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: ActionButtonComponent, selector: "kwikid-action-button", inputs: ["action", "config", "customer"], outputs: ["onClickPerformAction"] }], directives: [{ type: i7__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2856
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, decorators: [{
|
|
2857
|
+
type: i0.Component,
|
|
2858
|
+
args: [{
|
|
2859
|
+
selector: "customer-tile",
|
|
2860
|
+
templateUrl: "./customer-tile.component.html",
|
|
2861
|
+
styleUrls: ["./customer-tile.component.scss"]
|
|
2862
|
+
}]
|
|
2863
|
+
}], ctorParameters: function () { return [{ type: GoogleMapsService }, { type: OpenStreetMapsService }, { type: AgentService }, { type: i0__namespace.ElementRef }]; }, propDecorators: { windowResizeWatcher: [{
|
|
2864
|
+
type: i0.HostListener,
|
|
2865
|
+
args: ["window:resize", ["$event"]]
|
|
2866
|
+
}], customer: [{
|
|
2867
|
+
type: i0.Input
|
|
2868
|
+
}], index: [{
|
|
2869
|
+
type: i0.Input
|
|
2870
|
+
}], config: [{
|
|
2871
|
+
type: i0.Input
|
|
2872
|
+
}], onClickPerformAction: [{
|
|
2873
|
+
type: i0.Output
|
|
2874
|
+
}], nextStep: [{
|
|
2875
|
+
type: i0.Output
|
|
2876
|
+
}], removeTask: [{
|
|
2877
|
+
type: i0.Output
|
|
2878
|
+
}] } });
|
|
2879
|
+
|
|
2880
|
+
var Ng2SearchPipe$1 = /** @class */ (function () {
|
|
2881
|
+
function Ng2SearchPipe() {
|
|
2882
|
+
}
|
|
2883
|
+
/**
|
|
2884
|
+
* @param items object from array
|
|
2885
|
+
* @param term term's search
|
|
2886
|
+
* @param excludes array of strings which will ignored during search
|
|
2887
|
+
*/
|
|
2888
|
+
Ng2SearchPipe.prototype.transform = function (items, term, excludes) {
|
|
2889
|
+
if (excludes === void 0) { excludes = []; }
|
|
2890
|
+
if (!term || !items)
|
|
2891
|
+
return items;
|
|
2892
|
+
return Ng2SearchPipe.filter(items, term, excludes);
|
|
2893
|
+
};
|
|
2894
|
+
/**
|
|
2895
|
+
*
|
|
2896
|
+
* @param items List of items to filter
|
|
2897
|
+
* @param term a string term to compare with every property of the list
|
|
2898
|
+
* @param excludes List of keys which will be ignored during search
|
|
2899
|
+
*
|
|
2900
|
+
*/
|
|
2901
|
+
Ng2SearchPipe.filter = function (items, term, excludes) {
|
|
2902
|
+
var toCompare = term.toLowerCase();
|
|
2903
|
+
function checkInside(item, term) {
|
|
2904
|
+
if (typeof item === "string" &&
|
|
2905
|
+
item.toString().toLowerCase().includes(toCompare)) {
|
|
2906
|
+
return true;
|
|
2907
|
+
}
|
|
2908
|
+
for (var property in item) {
|
|
2909
|
+
if (item[property] === null ||
|
|
2910
|
+
item[property] == undefined ||
|
|
2911
|
+
excludes.includes(property)) {
|
|
2912
|
+
continue;
|
|
2913
|
+
}
|
|
2914
|
+
if (typeof item[property] === "object") {
|
|
2915
|
+
if (checkInside(item[property], term)) {
|
|
2916
|
+
return true;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
else if (item[property].toString().toLowerCase().includes(toCompare)) {
|
|
2920
|
+
return true;
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
return false;
|
|
2924
|
+
}
|
|
2925
|
+
return items.filter(function (item) {
|
|
2926
|
+
return checkInside(item, term);
|
|
2927
|
+
});
|
|
2928
|
+
};
|
|
2929
|
+
return Ng2SearchPipe;
|
|
2930
|
+
}());
|
|
2931
|
+
/** @nocollapse */ Ng2SearchPipe$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2932
|
+
/** @nocollapse */ Ng2SearchPipe$1.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1, name: "filter", pure: false });
|
|
2933
|
+
/** @nocollapse */ Ng2SearchPipe$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1 });
|
|
2934
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1, decorators: [{
|
|
2935
|
+
type: i0.Pipe,
|
|
2936
|
+
args: [{
|
|
2937
|
+
name: "filter",
|
|
2938
|
+
pure: false
|
|
2939
|
+
}]
|
|
2940
|
+
}, {
|
|
2941
|
+
type: i0.Injectable
|
|
2942
|
+
}] });
|
|
2943
|
+
|
|
2944
|
+
var CustomerListComponent = /** @class */ (function () {
|
|
2945
|
+
function CustomerListComponent(googleMapsService, openStreetMapsService, agentService
|
|
2946
|
+
// eslint-disable-next-line no-empty-function
|
|
2947
|
+
) {
|
|
2948
|
+
this.googleMapsService = googleMapsService;
|
|
2949
|
+
this.openStreetMapsService = openStreetMapsService;
|
|
2950
|
+
this.agentService = agentService;
|
|
2951
|
+
this.nextStep = new i0.EventEmitter();
|
|
2952
|
+
this.removeTask = new i0.EventEmitter();
|
|
2953
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
2954
|
+
this.filteredData = [];
|
|
2955
|
+
this.formGroup = new i2$1.FormGroup({});
|
|
2956
|
+
this.sortInAscendingOrder = true;
|
|
2957
|
+
this.max = new i2.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
|
|
2958
|
+
// Sorting Variables
|
|
2959
|
+
this.sortFilterKey = "";
|
|
2960
|
+
this.sortFilterOptions = ["user_id", "session_status"];
|
|
2961
|
+
this.activeSearchAction = undefined;
|
|
2962
|
+
this.onClickPerformAction = new i0.EventEmitter();
|
|
2963
|
+
}
|
|
2964
|
+
CustomerListComponent.prototype.ngOnInit = function () {
|
|
2965
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2966
|
+
return __generator(this, function (_f) {
|
|
2967
|
+
this.handleInitialDateRange();
|
|
2968
|
+
this.handleSearchAndSortFormControls();
|
|
2969
|
+
return [2 /*return*/];
|
|
2970
|
+
});
|
|
2971
|
+
});
|
|
2972
|
+
};
|
|
2973
|
+
CustomerListComponent.prototype.handleOnClickSearchType = function (type) {
|
|
2974
|
+
if (this.activeSearchAction !== type) {
|
|
2975
|
+
this.activeSearchAction = type;
|
|
2976
|
+
}
|
|
2977
|
+
else {
|
|
2978
|
+
this.activeSearchAction = undefined;
|
|
2979
|
+
}
|
|
2980
|
+
};
|
|
2981
|
+
CustomerListComponent.prototype.handleInitialDateRange = function () {
|
|
2982
|
+
var _a, _b, _c, _d, _e;
|
|
2983
|
+
var searchDateStart = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.searchDateStart) !== null && _b !== void 0 ? _b : {
|
|
2984
|
+
day: 0,
|
|
2985
|
+
month: 0,
|
|
2986
|
+
year: 0
|
|
2987
|
+
};
|
|
2988
|
+
var currentDate = new Date();
|
|
2989
|
+
var startDate = new Date((_c = currentDate.getFullYear() - (searchDateStart === null || searchDateStart === void 0 ? void 0 : searchDateStart.year)) !== null && _c !== void 0 ? _c : 0, (_d = currentDate.getMonth() - (searchDateStart === null || searchDateStart === void 0 ? void 0 : searchDateStart.month)) !== null && _d !== void 0 ? _d : 0, (_e = currentDate.getDate() - (searchDateStart === null || searchDateStart === void 0 ? void 0 : searchDateStart.day)) !== null && _e !== void 0 ? _e : 0);
|
|
2990
|
+
this.fromDate = convertNormalDateToStringFormat(startDate);
|
|
2991
|
+
this.toDate = convertNormalDateToStringFormat(null);
|
|
2992
|
+
this.searchDateFormControl = new i2$1.FormControl({
|
|
2993
|
+
value: new i2.TuiDayRange(new i2.TuiDay(startDate.getFullYear(), startDate.getMonth(), startDate.getDate()), this.max),
|
|
2994
|
+
disabled: false
|
|
2995
|
+
});
|
|
2996
|
+
this.formGroup.addControl("search-date", this.searchDateFormControl);
|
|
2997
|
+
};
|
|
2998
|
+
CustomerListComponent.prototype.handleSearchAndSortFormControls = function () {
|
|
2999
|
+
var _a, _b, _c;
|
|
3000
|
+
this.searchTextFormControl = new i2$1.FormControl("");
|
|
3001
|
+
this.formGroup.addControl("search-text", this.searchTextFormControl);
|
|
3002
|
+
this.sortFilterKeyFormControl = new i2$1.FormControl("");
|
|
3003
|
+
this.formGroup.addControl("sort-filter", this.sortFilterKeyFormControl);
|
|
3004
|
+
this.sortFilterOptions =
|
|
3005
|
+
(_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.extendedFlags) === null || _b === void 0 ? void 0 : _b.sortFilterKeys) !== null && _c !== void 0 ? _c : this.sortFilterOptions;
|
|
3006
|
+
};
|
|
3007
|
+
CustomerListComponent.prototype.setUpMaps = function () {
|
|
3008
|
+
var _a, _b;
|
|
3009
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3010
|
+
return __generator(this, function (_f) {
|
|
3011
|
+
switch (_f.label) {
|
|
3012
|
+
case 0:
|
|
3013
|
+
if (!((_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.isShowMaps)) return [3 /*break*/, 4];
|
|
3014
|
+
if (!(((_b = this.config.dashboard) === null || _b === void 0 ? void 0 : _b.mapType) === "open-street")) return [3 /*break*/, 2];
|
|
3015
|
+
return [4 /*yield*/, this.openStreetMapsService.initializeMap()];
|
|
3016
|
+
case 1:
|
|
3017
|
+
_f.sent();
|
|
3018
|
+
return [3 /*break*/, 4];
|
|
3019
|
+
case 2: return [4 /*yield*/, this.googleMapsService.initializeMap()];
|
|
3020
|
+
case 3:
|
|
3021
|
+
_f.sent();
|
|
3022
|
+
_f.label = 4;
|
|
3023
|
+
case 4: return [2 /*return*/];
|
|
3024
|
+
}
|
|
3025
|
+
});
|
|
3026
|
+
});
|
|
3027
|
+
};
|
|
3028
|
+
CustomerListComponent.prototype.setCustomersList = function () {
|
|
3029
|
+
var _a;
|
|
3030
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3031
|
+
var _f;
|
|
3032
|
+
return __generator(this, function (_g) {
|
|
3033
|
+
switch (_g.label) {
|
|
3034
|
+
case 0:
|
|
3035
|
+
if (!((_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.isShowMaps)) return [3 /*break*/, 2];
|
|
3036
|
+
_f = this;
|
|
3037
|
+
return [4 /*yield*/, this.plotMarkers(this.customers)];
|
|
3038
|
+
case 1:
|
|
3039
|
+
_f.filteredData = _g.sent();
|
|
3040
|
+
return [3 /*break*/, 3];
|
|
3041
|
+
case 2:
|
|
3042
|
+
this.filteredData = this.customers;
|
|
3043
|
+
_g.label = 3;
|
|
3044
|
+
case 3: return [2 /*return*/];
|
|
3045
|
+
}
|
|
3046
|
+
});
|
|
3047
|
+
});
|
|
3048
|
+
};
|
|
3049
|
+
CustomerListComponent.prototype.ngAfterViewInit = function () {
|
|
3050
|
+
var _this = this;
|
|
3051
|
+
var _a, _b;
|
|
3052
|
+
this.maxLength = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.searchDateRange) !== null && _b !== void 0 ? _b : this.maxLength;
|
|
3053
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
3054
|
+
return __generator(this, function (_f) {
|
|
3055
|
+
switch (_f.label) {
|
|
3056
|
+
case 0: return [4 /*yield*/, this.setUpMaps()];
|
|
3057
|
+
case 1:
|
|
3058
|
+
_f.sent();
|
|
3059
|
+
return [4 /*yield*/, this.setCustomersList()];
|
|
3060
|
+
case 2:
|
|
3061
|
+
_f.sent();
|
|
3062
|
+
return [2 /*return*/];
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3065
|
+
}); }, 1000);
|
|
3066
|
+
};
|
|
3067
|
+
CustomerListComponent.prototype.ngOnChanges = function () {
|
|
3068
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3069
|
+
return __generator(this, function (_f) {
|
|
3070
|
+
switch (_f.label) {
|
|
3071
|
+
case 0: return [4 /*yield*/, this.setCustomersList()];
|
|
3072
|
+
case 1:
|
|
3073
|
+
_f.sent();
|
|
3074
|
+
return [2 /*return*/];
|
|
3075
|
+
}
|
|
3076
|
+
});
|
|
3077
|
+
});
|
|
3078
|
+
};
|
|
3079
|
+
CustomerListComponent.prototype.handleOnClickNext = function (e) {
|
|
3080
|
+
this.nextStep.emit(e);
|
|
3081
|
+
};
|
|
3082
|
+
CustomerListComponent.prototype.plotMarkers = function (customers) {
|
|
3083
|
+
var _a, _b;
|
|
3084
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3085
|
+
var _this = this;
|
|
3086
|
+
return __generator(this, function (_f) {
|
|
3087
|
+
switch (_f.label) {
|
|
3088
|
+
case 0:
|
|
3089
|
+
if (!((_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.isPlotCompletedTaskMarkers)) {
|
|
3090
|
+
customers = customers.filter(function (customer) {
|
|
3091
|
+
return _this.agentService.canPlotMarkers(customer.session_status);
|
|
3092
|
+
});
|
|
3093
|
+
}
|
|
3094
|
+
if (!(((_b = this.config.dashboard) === null || _b === void 0 ? void 0 : _b.mapType) === "open-street")) return [3 /*break*/, 2];
|
|
3095
|
+
return [4 /*yield*/, this.openStreetMapsService.plotDirectionsForAllTasks(customers)];
|
|
3096
|
+
case 1:
|
|
3097
|
+
customers =
|
|
3098
|
+
_f.sent();
|
|
3099
|
+
return [3 /*break*/, 4];
|
|
3100
|
+
case 2: return [4 /*yield*/, this.googleMapsService.plotDirectionsForAllTasks(customers)];
|
|
3101
|
+
case 3:
|
|
3102
|
+
customers =
|
|
3103
|
+
_f.sent();
|
|
3104
|
+
_f.label = 4;
|
|
3105
|
+
case 4: return [2 /*return*/, customers];
|
|
3106
|
+
}
|
|
3107
|
+
});
|
|
3108
|
+
});
|
|
3109
|
+
};
|
|
3110
|
+
CustomerListComponent.prototype.handleOnChangeDateRange = function (event) {
|
|
3111
|
+
this.handleChangeDateRangeFormat(event);
|
|
3112
|
+
this.handleOnFilterTaskList({
|
|
3113
|
+
from_date: this.fromDate,
|
|
3114
|
+
to_date: this.toDate
|
|
3115
|
+
});
|
|
3116
|
+
};
|
|
3117
|
+
CustomerListComponent.prototype.handleOnClickChangeSortOrder = function () {
|
|
3118
|
+
this.sortInAscendingOrder = !this.sortInAscendingOrder;
|
|
3119
|
+
this.handleOnChangeSortFilter(false);
|
|
3120
|
+
};
|
|
3121
|
+
CustomerListComponent.prototype.handleOnChangeSortFilter = function (event) {
|
|
3122
|
+
if (event && kwikidToolkit.isNotEmptyValue(event.value)) {
|
|
3123
|
+
this.sortFilterKey = event.value;
|
|
3124
|
+
this.handleOnSortTaskItems(this.sortFilterKey, this.sortInAscendingOrder);
|
|
3125
|
+
}
|
|
3126
|
+
};
|
|
3127
|
+
CustomerListComponent.prototype.handleOnSortTaskItems = function (key, order) {
|
|
3128
|
+
var sortedTaskItems = sortItems(this.filteredData, key, order);
|
|
3129
|
+
this.filteredData = kwikidToolkit.getObjectDeepCopy(sortedTaskItems);
|
|
3130
|
+
};
|
|
3131
|
+
CustomerListComponent.prototype.handleChangeDateRangeFormat = function (event) {
|
|
3132
|
+
var _a, _b;
|
|
3133
|
+
if (((_a = event.value) === null || _a === void 0 ? void 0 : _a.from) && ((_b = event.value) === null || _b === void 0 ? void 0 : _b.to)) {
|
|
3134
|
+
this.fromDate = convertKwikUIDateToStringFormat(event.value.from);
|
|
3135
|
+
this.toDate = convertKwikUIDateToStringFormat(event.value.to);
|
|
3136
|
+
}
|
|
3137
|
+
};
|
|
3138
|
+
CustomerListComponent.prototype.handleOnChangeSearchText = function (event) {
|
|
3139
|
+
this.searchText = event.value;
|
|
3140
|
+
};
|
|
3141
|
+
CustomerListComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
3142
|
+
this.removeTask.emit(task);
|
|
3143
|
+
};
|
|
3144
|
+
CustomerListComponent.prototype.handleOnFilterTaskList = function (filter) {
|
|
3145
|
+
this.filterTaskList.emit(filter);
|
|
3146
|
+
};
|
|
3147
|
+
CustomerListComponent.prototype.handleOnClickPerformAction = function (event) {
|
|
3148
|
+
this.onClickPerformAction.emit(event);
|
|
3149
|
+
};
|
|
3150
|
+
return CustomerListComponent;
|
|
3151
|
+
}());
|
|
3152
|
+
/** @nocollapse */ CustomerListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, deps: [{ token: GoogleMapsService }, { token: OpenStreetMapsService }, { token: AgentService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3153
|
+
/** @nocollapse */ CustomerListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerListComponent, selector: "customer-list", inputs: { customers: "customers", config: "config" }, outputs: { nextStep: "nextStep", removeTask: "removeTask", filterTaskList: "filterTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"customer-list-wrapper\">\n <div\n class=\"customer-list-filter\"\n [formGroup]=\"formGroup\"\n >\n <div class=\"task-list-search-icons\">\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconSearchLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-text')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconCalendarLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-date')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconFilterLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('sort-filter')\"\n ></kwikui-button>\n </div>\n\n <div\n class=\"task-list-search-action\"\n *ngIf=\"activeSearchAction\"\n >\n <kwikui-input-date-range\n *ngIf=\"activeSearchAction == 'search-date'\"\n class=\"task-list-date-box\"\n label=\"Search by Date Range\"\n id=\"dateRange\"\n size=\"m\"\n [max]=\"max\"\n [maxLength]=\"maxLength\"\n formControlName=\"search-date\"\n [formControl]=\"searchDateFormControl\"\n (getKeyValue)=\"handleOnChangeDateRange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\n *ngIf=\"activeSearchAction == 'search-text'\"\n label=\"Search\"\n id=\"search\"\n icon=\"tuiIconSearch\"\n placeholder=\"Search any task from here\"\n size=\"m\"\n [formControl]=\"searchTextFormControl\"\n formControlName=\"search-text\"\n (getKeyValue)=\"handleOnChangeSearchText($event)\"\n ></kwikui-input>\n\n <div\n *ngIf=\"activeSearchAction == 'sort-filter'\"\n class=\"task-list-sort-action\"\n >\n <kwikui-button\n appearance=\"outline\"\n [icon]=\"\n sortInAscendingOrder\n ? 'tuiIconChevronsUpLarge'\n : 'tuiIconChevronsDownLarge'\n \"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickChangeSortOrder()\"\n ></kwikui-button>\n <kwikui-input-select\n class=\"task-list-sort-key\"\n formControlName=\"sort-filter\"\n label=\"Sort By Key\"\n size=\"m\"\n [formControl]=\"sortFilterKeyFormControl\"\n [options]=\"sortFilterOptions\"\n [searchable]=\"false\"\n (getKeyValue)=\"handleOnChangeSortFilter($event)\"\n ></kwikui-input-select>\n </div>\n </div>\n </div>\n\n <div class=\"customer-task-list\">\n <cdk-virtual-scroll-viewport\n itemSize=\"1\"\n class=\"customer-task-list-scroll\"\n >\n <div\n *cdkVirtualFor=\"\n let customer of filteredData | filter: searchText;\n index as index\n \"\n >\n <customer-tile\n class=\"example-item\"\n [customer]=\"customer\"\n [config]=\"config\"\n [index]=\"index\"\n (nextStep)=\"handleOnClickNext($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></customer-tile>\n </div>\n </cdk-virtual-scroll-viewport>\n </div>\n\n <div\n class=\"customer-list-empty\"\n *ngIf=\"filteredData.length === 0\"\n >\n {{\n config?.dashboard?.emptyTaskListMessage ?? \"0 Tasks for the given Date.\"\n }}\n </div>\n</div>\n", styles: [".customer-list-wrapper{width:100%;height:100%;display:flex;flex-direction:column}.customer-list-filter{height:-moz-fit-content;height:fit-content;width:100%;display:flex;flex-direction:column;padding:1rem;grid-gap:.8rem;gap:.8rem;border-bottom:.5px solid #ddd}.customer-list-filter .task-list-search-icons{display:flex;justify-content:flex-end;align-items:center;flex-direction:row;grid-gap:.5rem;gap:.5rem}.customer-list-filter .task-list-search-action{margin-top:.5rem}.customer-list-filter .task-list-search-action .task-list-sort-action{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}.customer-list-filter .task-list-search-action .task-list-sort-action .task-list-sort-key{flex:1}.customer-list-empty{height:100%;width:100%;margin-top:.5rem;font-size:1rem;text-align:center}.customer-task-list{height:100%}.customer-task-list-scroll{height:100%;width:100%}.cdk-virtual-scroll-spacer{height:0!important}.example-item{height:50px}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxLength", "min", "minLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }, { type: i5__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { type: CustomerTileComponent, selector: "customer-tile", inputs: ["customer", "index", "config"], outputs: ["onClickPerformAction", "nextStep", "removeTask"] }], directives: [{ type: i2__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: i5__namespace.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }], pipes: { "filter": Ng2SearchPipe$1 } });
|
|
3154
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, decorators: [{
|
|
3155
|
+
type: i0.Component,
|
|
3156
|
+
args: [{
|
|
3157
|
+
selector: "customer-list",
|
|
3158
|
+
templateUrl: "./customer-list.component.html",
|
|
3159
|
+
styleUrls: ["./customer-list.component.scss"]
|
|
3160
|
+
}]
|
|
3161
|
+
}], ctorParameters: function () { return [{ type: GoogleMapsService }, { type: OpenStreetMapsService }, { type: AgentService }]; }, propDecorators: { customers: [{
|
|
3162
|
+
type: i0.Input
|
|
3163
|
+
}], config: [{
|
|
3164
|
+
type: i0.Input
|
|
3165
|
+
}], nextStep: [{
|
|
3166
|
+
type: i0.Output
|
|
3167
|
+
}], removeTask: [{
|
|
3168
|
+
type: i0.Output
|
|
3169
|
+
}], filterTaskList: [{
|
|
3170
|
+
type: i0.Output
|
|
3171
|
+
}], onClickPerformAction: [{
|
|
3172
|
+
type: i0.Output
|
|
3173
|
+
}] } });
|
|
3174
|
+
|
|
3175
|
+
var KwikIDAgentDashboardComponentV1 = /** @class */ (function () {
|
|
3176
|
+
function KwikIDAgentDashboardComponentV1(googleMapsService, agentService, httpClient, hostElement, dialogService) {
|
|
3177
|
+
this.googleMapsService = googleMapsService;
|
|
3178
|
+
this.agentService = agentService;
|
|
3179
|
+
this.httpClient = httpClient;
|
|
3180
|
+
this.hostElement = hostElement;
|
|
3181
|
+
this.dialogService = dialogService;
|
|
3182
|
+
this.config = {};
|
|
3183
|
+
this.taskList = [];
|
|
3184
|
+
this.nextStep = new i0.EventEmitter();
|
|
3185
|
+
this.addTask = new i0.EventEmitter();
|
|
3186
|
+
this.removeTask = new i0.EventEmitter();
|
|
3187
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
3188
|
+
this.onClickPerformAction = new i0.EventEmitter();
|
|
3189
|
+
this.loading = true;
|
|
3190
|
+
this.open = false;
|
|
3191
|
+
this.allFormsData = {};
|
|
3192
|
+
this.String = String;
|
|
3193
|
+
}
|
|
3194
|
+
KwikIDAgentDashboardComponentV1.prototype.windowResizeWatcher = function () {
|
|
3195
|
+
if (this.hostElement.nativeElement.offsetWidth < 600) {
|
|
3196
|
+
this.isMobileView = true;
|
|
3197
|
+
this.agentService.isMobileView = true;
|
|
3198
|
+
}
|
|
3199
|
+
else {
|
|
3200
|
+
this.isMobileView = false;
|
|
3201
|
+
this.agentService.isMobileView = false;
|
|
3202
|
+
}
|
|
3203
|
+
};
|
|
3204
|
+
KwikIDAgentDashboardComponentV1.prototype.ngOnInit = function () {
|
|
3205
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3207
|
+
var _this = this;
|
|
3208
|
+
return __generator(this, function (_o) {
|
|
3209
|
+
this.agentService.config = this.config;
|
|
3210
|
+
this.agentService.showMapview = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.isShowMaps) !== null && _c !== void 0 ? _c : false;
|
|
3211
|
+
this.agentService.addTaskForm =
|
|
3212
|
+
(_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.dashboard) === null || _e === void 0 ? void 0 : _e.addTaskForm) !== null && _f !== void 0 ? _f : this.agentService.addTaskForm;
|
|
3213
|
+
if (((_h = (_g = this.config) === null || _g === void 0 ? void 0 : _g.dashboard) === null || _h === void 0 ? void 0 : _h.mapType) === "google-maps" &&
|
|
3214
|
+
kwikidToolkit.isNotEmptyValue((_k = (_j = this.config) === null || _j === void 0 ? void 0 : _j.dashboard) === null || _k === void 0 ? void 0 : _k.googleMapsAPIKey)) {
|
|
3215
|
+
this.loadMaps((_m = (_l = this.config) === null || _l === void 0 ? void 0 : _l.dashboard) === null || _m === void 0 ? void 0 : _m.googleMapsAPIKey).subscribe(function (loaded) {
|
|
3216
|
+
_this.mapsLoaded = loaded;
|
|
3217
|
+
if (loaded) {
|
|
3218
|
+
console.log("Google Maps JavaScript API loaded successfully.");
|
|
3219
|
+
_this.loading = false;
|
|
3220
|
+
// Initialize and render Google Map here
|
|
3221
|
+
}
|
|
3222
|
+
else {
|
|
3223
|
+
console.error("Google Maps JavaScript API failed to load.");
|
|
3224
|
+
_this.loading = false;
|
|
3225
|
+
}
|
|
3226
|
+
});
|
|
3227
|
+
}
|
|
3228
|
+
else {
|
|
3229
|
+
this.mapsLoaded = true;
|
|
3230
|
+
this.loading = false;
|
|
3231
|
+
}
|
|
3232
|
+
setTimeout(function () {
|
|
3233
|
+
_this.windowResizeWatcher();
|
|
3234
|
+
}, 1000);
|
|
3235
|
+
return [2 /*return*/];
|
|
3236
|
+
});
|
|
3237
|
+
});
|
|
3238
|
+
};
|
|
3239
|
+
// Load Google Maps
|
|
3240
|
+
KwikIDAgentDashboardComponentV1.prototype.loadMaps = function (apiKey) {
|
|
3241
|
+
var url = "https://maps.googleapis.com/maps/api/js?key=" + apiKey + "&v=3.exp&libraries=geometry,drawing,places";
|
|
3242
|
+
this.googleMapsService.apiKey = apiKey;
|
|
3243
|
+
return this.httpClient.jsonp(url, "callback").pipe(operators.map(function () { return true; }), operators.catchError(function () {
|
|
3244
|
+
console.error("Error loading Google Maps JavaScript API.");
|
|
3245
|
+
return rxjs.of(false);
|
|
3246
|
+
}));
|
|
3247
|
+
};
|
|
3248
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnClickNext = function (e) {
|
|
3249
|
+
this.nextStep.emit(e);
|
|
3250
|
+
};
|
|
3251
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnClickAddTask = function (task) {
|
|
3252
|
+
this.addTask.emit(task);
|
|
3253
|
+
};
|
|
3254
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnClickRemoveTask = function (task) {
|
|
3255
|
+
this.removeTask.emit(task);
|
|
3256
|
+
};
|
|
3257
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnFilterTaskList = function (filter) {
|
|
3258
|
+
this.filterTaskList.emit(filter);
|
|
3259
|
+
};
|
|
3260
|
+
KwikIDAgentDashboardComponentV1.prototype.refresh = function () {
|
|
3261
|
+
this.handleOnFilterTaskList({});
|
|
3262
|
+
};
|
|
3263
|
+
KwikIDAgentDashboardComponentV1.prototype.onClick = function () {
|
|
3264
|
+
this.open = !this.open;
|
|
3265
|
+
};
|
|
3266
|
+
KwikIDAgentDashboardComponentV1.prototype.onObscured = function (obscured) {
|
|
3267
|
+
if (obscured) {
|
|
3268
|
+
this.open = false;
|
|
3269
|
+
}
|
|
3270
|
+
};
|
|
3271
|
+
KwikIDAgentDashboardComponentV1.prototype.onActiveZone = function (active) {
|
|
3272
|
+
this.open = active && this.open;
|
|
3273
|
+
};
|
|
3274
|
+
KwikIDAgentDashboardComponentV1.prototype.close = function () {
|
|
3275
|
+
this.open = false;
|
|
3276
|
+
if (this.dialogSubscription) {
|
|
3277
|
+
this.dialogSubscription.unsubscribe();
|
|
3278
|
+
}
|
|
3279
|
+
};
|
|
3280
|
+
KwikIDAgentDashboardComponentV1.prototype.showDialog = function (content) {
|
|
3281
|
+
this.dialogSubscription = this.dialogService
|
|
3282
|
+
.open(content, { closeable: false, dismissible: false })
|
|
3283
|
+
.subscribe();
|
|
3284
|
+
};
|
|
3285
|
+
KwikIDAgentDashboardComponentV1.prototype.openInfoWindow = function (marker) {
|
|
3286
|
+
this.infoWindow.open(marker);
|
|
3287
|
+
};
|
|
3288
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnClickSaveForm = function (e) {
|
|
3289
|
+
this.handleOnClickAddTask(e.data);
|
|
3290
|
+
this.close();
|
|
3291
|
+
};
|
|
3292
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnClickLogout = function () {
|
|
3293
|
+
this.handleOnClickPerformAction({ action: { type: "logout" } });
|
|
3294
|
+
};
|
|
3295
|
+
KwikIDAgentDashboardComponentV1.prototype.handleOnClickPerformAction = function (event) {
|
|
3296
|
+
this.onClickPerformAction.emit(event);
|
|
3297
|
+
};
|
|
3298
|
+
return KwikIDAgentDashboardComponentV1;
|
|
3299
|
+
}());
|
|
3300
|
+
/** @nocollapse */ KwikIDAgentDashboardComponentV1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV1, deps: [{ token: GoogleMapsService }, { token: AgentService }, { token: i3__namespace$2.HttpClient }, { token: i0__namespace.ElementRef }, { token: i3.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3301
|
+
/** @nocollapse */ KwikIDAgentDashboardComponentV1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponentV1, selector: "kwikid-agent-dashboard-v1", inputs: { config: "config", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList", onClickPerformAction: "onClickPerformAction" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i2$2.MapInfoWindow, descendants: true }, { propertyName: "mapElement", first: true, predicate: ["map"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div\n class=\"kwikid-agent-dashboard\"\n *ngIf=\"!loading\"\n>\n <div class=\"wrapper\">\n <header>\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button\n [icon]=\"'tuiIconMenuLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"m\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <!-- <img\n *ngIf=\"\n agentService.config?.clientLogo &&\n agentService.config?.dashboard?.isShowClientLogo\n \"\n [src]=\"agentService.config.clientLogo\"\n class=\"client-logo\"\n />\n <div\n *ngIf=\"\n !agentService.config.clientLogo ||\n !agentService.config?.dashboard?.isShowClientLogo\n \"\n class=\"client-name\"\n >\n <kwikui-button\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button>\n\n {{ agentService.config.clientName }}\n </div> -->\n <div class=\"menu-dropdown-header-agent-name\">\n {{ agentService.config.agentName }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID: {{ agentService.config.agentId }}\n </div>\n </div>\n <hr />\n <div\n class=\"menu-dropdown-body\"\n tuiGroup\n [collapsed]=\"true\"\n [rounded]=\"false\"\n [orientation]=\"'vertical'\"\n [size]=\"'m'\"\n >\n <kwikui-button\n *ngIf=\"agentService.config?.dashboard?.isAllowAddTask\"\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Refresh\"\n [icon]=\"'tuiIconRefreshCw'\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"refresh()\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"this.config.dashboard.isShowMaps\"\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"{{\n agentService.showMapview ? 'Hide Maps' : 'Show Maps'\n }}\"\n type=\"button\"\n icon=\"{{\n agentService.showMapview ? 'tuiIconEyeOff' : 'tuiIconEye'\n }}\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n styles=\"padding: 0rem !important\"\n (onClick)=\"agentService.toggleMapview()\"\n ></kwikui-button>\n </div>\n <hr />\n <div class=\"menu-dropdown-footer\">\n <kwikui-button\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Logout\"\n icon=\"tuiIconLogOut\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickLogout()\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n <div class=\"actions\">\n <kwikui-button\n *ngIf=\"agentService.config?.dashboard?.isAllowAddTask\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"primary\"\n [label]=\"\n agentService.config?.dashboard?.addTaskButtonLabel ?? 'Add User'\n \"\n icon=\"tuiIconPlus\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"showDialog(template)\"\n ></kwikui-button>\n </div>\n </header>\n\n <div class=\"dashboard-body\">\n <div\n *ngIf=\"mapsLoaded\"\n [class]=\"agentService.showMapview ? 'map' : 'map-hidden'\"\n >\n <google-map\n *ngIf=\"agentService.config?.dashboard?.mapType == 'google-maps'\"\n [options]=\"this.googleMapsService.map\"\n height=\"100%\"\n width=\"100%\"\n >\n <map-marker\n #marker=\"mapMarker\"\n *ngFor=\"\n let markerPosition of this.googleMapsService.allMarkers;\n let index = index\n \"\n [position]=\"markerPosition\"\n [label]=\"{ text: String(index) }\"\n ></map-marker>\n <map-directions-renderer\n *ngIf=\"\n this.googleMapsService.directionsResults$\n | async as directionsResults\n \"\n [directions]=\"directionsResults\"\n [options]=\"this.googleMapsService.directionsRenderOption\"\n ></map-directions-renderer>\n </google-map>\n\n <div\n *ngIf=\"agentService.config?.dashboard?.mapType == 'open-street'\"\n id=\"map\"\n style=\"height: 100%\"\n ></div>\n </div>\n\n <div\n class=\"task-details\"\n *ngIf=\"\n !agentService.isMobileView &&\n agentService.currentTaskDetails != undefined &&\n !agentService.showMapview\n \"\n >\n <customer-details\n [customer]=\"agentService.currentTaskDetails\"\n [config]=\"config\"\n (nextStep)=\"handleOnClickNext($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></customer-details>\n </div>\n\n <div\n class=\"no-task-details\"\n *ngIf=\"\n !agentService.isMobileView &&\n agentService.currentTaskDetails == undefined &&\n !agentService.showMapview\n \"\n >\n <img\n src=\"assets/No-Results.jpg\"\n class=\"no-task-img\"\n alt=\"No Task\"\n />\n <div class=\"\">Select a Task to view it's details.</div>\n </div>\n\n <div class=\"customer-list\">\n <customer-list\n [customers]=\"taskList\"\n [config]=\"config\"\n (nextStep)=\"handleOnClickNext($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></customer-list>\n </div>\n </div>\n </div>\n</div>\n\n<div\n class=\"kwikid-agent-dashboard-loader\"\n *ngIf=\"loading\"\n>\n <span class=\"loader\"></span>\n</div>\n\n<ng-template\n #template\n let-observer\n>\n <div class=\"add-task-header\">\n <h2>{{ agentService?.addTaskForm?.title ?? \"Create User\" }}</h2>\n <kwikui-button\n icon=\"tuiIconX\"\n id=\"\"\n styles=\"\"\n type=\"button\"\n appearance=\"mono\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"observer.complete()\"\n ></kwikui-button>\n </div>\n <kwikid-form-view\n [allFormsData]=\"allFormsData\"\n [formConfig]=\"agentService.addTaskForm\"\n [isMobileView]=\"true\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event)\"\n ></kwikid-form-view>\n</ng-template>\n", styles: [".kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%;position:relative}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:1rem;max-height:80px;border:1px solid #cdcdcd}.kwikid-agent-dashboard .wrapper header .actions{display:flex;flex-direction:row;align-items:center}.kwikid-agent-dashboard .wrapper header .actions>*{margin-right:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{width:100%;height:100%;overflow:hidden}@media screen and (min-width: 600px){.kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.75rem;max-height:80px;border:1px solid #cdcdcd}.kwikid-agent-dashboard .wrapper header .client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:row-reverse;align-content:center;justify-content:flex-end;align-items:stretch;overflow:auto}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden;border:1px solid #cdcdcd;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .task-details{width:100%;height:100%;position:relative;overflow:hidden;border:1px solid #cdcdcd}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;grid-gap:.5rem;gap:.5rem;overflow:hidden;color:#555}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details .no-task-img{height:100px;width:100px}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{min-width:300px;max-width:320px;width:100%;height:100%;overflow:hidden;border:1px solid #cdcdcd}}.menu{position:absolute;transition:\"0.15s linear 0s\"}.kwikid-agent-dashboard-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;z-index:100}.kwikid-agent-dashboard-loader .loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:3px solid;border-color:#fff #fff transparent;box-sizing:border-box;animation:rotation 1s linear infinite}.kwikid-agent-dashboard-loader .loader:after{content:\"\";box-sizing:border-box;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;border:3px solid;border-color:transparent var(--tui-primary) var(--tui-primary);width:24px;height:24px;border-radius:50%;animation:rotationBack .5s linear infinite;transform-origin:center center}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotationBack{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}.kwikid-agent-dashboard-loader .t-loader{display:none!important}.add-task-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.5rem 0 1rem 1rem}:host{width:100%;height:100%}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}.menu-dropdown{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;grid-gap:.5rem;gap:.5rem;padding:1rem 1.5rem}.menu-dropdown .menu-dropdown-header{display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:flex-start;grid-gap:1rem;gap:1rem}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-name{font-size:1.2rem;margin:0 auto;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;margin:0 auto;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}.client-logo{height:40px;width:-moz-fit-content;width:fit-content;margin:0 auto;padding-left:1rem}.client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;margin:0 auto;font-weight:600}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i2__namespace$2.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { type: CustomerDetailsComponent, selector: "customer-details", inputs: ["customer", "config"], outputs: ["nextStep", "removeTask", "onClickPerformAction"] }, { type: CustomerListComponent, selector: "customer-list", inputs: ["customers", "config"], outputs: ["nextStep", "removeTask", "filterTaskList", "onClickPerformAction"] }, { type: i3__namespace$1.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "extraData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickViewFile", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i3__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$2.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }, { type: i2__namespace$2.MapDirectionsRenderer, selector: "map-directions-renderer", inputs: ["directions", "options"], outputs: ["directionsChanged"], exportAs: ["mapDirectionsRenderer"] }], pipes: { "async": i7__namespace.AsyncPipe } });
|
|
3302
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV1, decorators: [{
|
|
3303
|
+
type: i0.Component,
|
|
3304
|
+
args: [{
|
|
3305
|
+
selector: "kwikid-agent-dashboard-v1",
|
|
3306
|
+
templateUrl: "./kwikid-agent-dashboard.component.html",
|
|
3307
|
+
styleUrls: ["./kwikid-agent-dashboard.component.scss"]
|
|
3308
|
+
}]
|
|
3309
|
+
}], ctorParameters: function () {
|
|
3310
|
+
return [{ type: GoogleMapsService }, { type: AgentService }, { type: i3__namespace$2.HttpClient }, { type: i0__namespace.ElementRef }, { type: i3__namespace.TuiDialogService, decorators: [{
|
|
3311
|
+
type: i0.Inject,
|
|
3312
|
+
args: [i3.TuiDialogService]
|
|
3313
|
+
}] }];
|
|
3314
|
+
}, propDecorators: { windowResizeWatcher: [{
|
|
3315
|
+
type: i0.HostListener,
|
|
3316
|
+
args: ["window:resize", ["$event"]]
|
|
3317
|
+
}], config: [{
|
|
3318
|
+
type: i0.Input
|
|
3319
|
+
}], taskList: [{
|
|
3320
|
+
type: i0.Input
|
|
3321
|
+
}], nextStep: [{
|
|
3322
|
+
type: i0.Output
|
|
3323
|
+
}], addTask: [{
|
|
3324
|
+
type: i0.Output
|
|
3325
|
+
}], removeTask: [{
|
|
3326
|
+
type: i0.Output
|
|
3327
|
+
}], filterTaskList: [{
|
|
3328
|
+
type: i0.Output
|
|
3329
|
+
}], onClickPerformAction: [{
|
|
3330
|
+
type: i0.Output
|
|
3331
|
+
}], infoWindow: [{
|
|
3332
|
+
type: i0.ViewChild,
|
|
3333
|
+
args: [i2$2.MapInfoWindow, { static: false }]
|
|
3334
|
+
}], mapElement: [{
|
|
3335
|
+
type: i0.ViewChild,
|
|
3336
|
+
args: ["map", { static: true }]
|
|
3337
|
+
}] } });
|
|
3338
|
+
|
|
3339
|
+
/* eslint-disable no-empty-function */
|
|
3340
|
+
var KwikIDAgentDashboardComponent = /** @class */ (function () {
|
|
3341
|
+
// eslint-disable-next-line no-useless-constructor, @typescript-eslint/no-empty-function
|
|
3342
|
+
function KwikIDAgentDashboardComponent() {
|
|
3343
|
+
this.agentInfo = {};
|
|
3344
|
+
this.config = {};
|
|
3345
|
+
this.userConfig = {};
|
|
3346
|
+
this.taskList = [];
|
|
3347
|
+
this.nextStep = new i0.EventEmitter();
|
|
3348
|
+
this.addTask = new i0.EventEmitter();
|
|
3349
|
+
this.removeTask = new i0.EventEmitter();
|
|
3350
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
3351
|
+
this.onGetTaskList = new i0.EventEmitter();
|
|
3352
|
+
this.onClickPerformAction = new i0.EventEmitter();
|
|
3353
|
+
}
|
|
3354
|
+
// eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-empty-function
|
|
3355
|
+
KwikIDAgentDashboardComponent.prototype.ngOnInit = function () { };
|
|
3356
|
+
KwikIDAgentDashboardComponent.prototype.ngOnChanges = function (changes) {
|
|
3357
|
+
var verifyChange = function (key) {
|
|
3358
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
3359
|
+
return changes.hasOwnProperty(key) && !changes[key].firstChange;
|
|
3360
|
+
};
|
|
3361
|
+
if (verifyChange("taskList")) {
|
|
3362
|
+
this.taskList = changes.taskList.currentValue;
|
|
3363
|
+
}
|
|
3364
|
+
};
|
|
3365
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickNext = function (e) {
|
|
3366
|
+
this.nextStep.emit(e);
|
|
3367
|
+
};
|
|
3368
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickAddTask = function (task) {
|
|
3369
|
+
this.addTask.emit(task);
|
|
3370
|
+
};
|
|
3371
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
3372
|
+
this.removeTask.emit(task);
|
|
3373
|
+
};
|
|
3374
|
+
KwikIDAgentDashboardComponent.prototype.handleOnFilterTaskList = function (filter) {
|
|
3375
|
+
this.onGetTaskList.emit(filter);
|
|
3376
|
+
};
|
|
3377
|
+
KwikIDAgentDashboardComponent.prototype.handleOnGetTaskList = function (event) {
|
|
3378
|
+
this.onGetTaskList.emit(event);
|
|
3379
|
+
};
|
|
3380
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickPerformAction = function (event) {
|
|
3381
|
+
this.onClickPerformAction.emit(event);
|
|
3382
|
+
};
|
|
3383
|
+
return KwikIDAgentDashboardComponent;
|
|
3384
|
+
}());
|
|
3385
|
+
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3386
|
+
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { agentInfo: "agentInfo", config: "config", userConfig: "userConfig", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList", onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div *ngIf=\"config?.version === 2\">\n <kwikid-agent-dashboard-v2\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n [taskList]=\"taskList\"\n [userConfig]=\"userConfig\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-agent-dashboard-v2>\n</div>\n\n<div *ngIf=\"config?.version !== 2\">\n <kwikid-agent-dashboard-v1\n [config]=\"config\"\n [taskList]=\"taskList\"\n (nextStep)=\"handleOnClickNext($event)\"\n (addTask)=\"handleOnClickAddTask($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-agent-dashboard-v1>\n</div>\n", styles: ["div{height:100%}\n"], components: [{ type: KwikIDAgentDashboardComponentV2, selector: "kwikid-agent-dashboard-v2", inputs: ["config", "userConfig", "agentInfo", "taskList"], outputs: ["onGetTaskList", "onClickPerformAction"] }, { type: KwikIDAgentDashboardComponentV1, selector: "kwikid-agent-dashboard-v1", inputs: ["config", "taskList"], outputs: ["nextStep", "addTask", "removeTask", "filterTaskList", "onClickPerformAction"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3387
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, decorators: [{
|
|
3388
|
+
type: i0.Component,
|
|
3389
|
+
args: [{
|
|
3390
|
+
selector: "kwikid-agent-dashboard",
|
|
3391
|
+
templateUrl: "./kwikid-agent-dashboard.component.html",
|
|
3392
|
+
styleUrls: ["./kwikid-agent-dashboard.component.scss"]
|
|
3393
|
+
}]
|
|
3394
|
+
}], ctorParameters: function () { return []; }, propDecorators: { agentInfo: [{
|
|
3395
|
+
type: i0.Input
|
|
3396
|
+
}], config: [{
|
|
3397
|
+
type: i0.Input
|
|
3398
|
+
}], userConfig: [{
|
|
3399
|
+
type: i0.Input
|
|
3400
|
+
}], taskList: [{
|
|
3401
|
+
type: i0.Input
|
|
3402
|
+
}], nextStep: [{
|
|
3403
|
+
type: i0.Output
|
|
3404
|
+
}], addTask: [{
|
|
3405
|
+
type: i0.Output
|
|
3406
|
+
}], removeTask: [{
|
|
3407
|
+
type: i0.Output
|
|
3408
|
+
}], filterTaskList: [{
|
|
3409
|
+
type: i0.Output
|
|
3410
|
+
}], onGetTaskList: [{
|
|
3411
|
+
type: i0.Output
|
|
3412
|
+
}], onClickPerformAction: [{
|
|
3413
|
+
type: i0.Output
|
|
3414
|
+
}] } });
|
|
3415
|
+
|
|
3416
|
+
var KwikIDAgentDashboardModuleV1 = /** @class */ (function () {
|
|
3417
|
+
function KwikIDAgentDashboardModuleV1() {
|
|
3418
|
+
}
|
|
3419
|
+
return KwikIDAgentDashboardModuleV1;
|
|
3420
|
+
}());
|
|
3421
|
+
/** @nocollapse */ KwikIDAgentDashboardModuleV1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3422
|
+
/** @nocollapse */ KwikIDAgentDashboardModuleV1.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, declarations: [KwikIDAgentDashboardComponentV1,
|
|
3423
|
+
CustomerListComponent,
|
|
3424
|
+
CustomerTileComponent,
|
|
3425
|
+
Ng2SearchPipe$1,
|
|
3426
|
+
StatusPillComponent,
|
|
3427
|
+
CustomerDetailsComponent,
|
|
3428
|
+
ActionButtonComponent], imports: [i7.CommonModule,
|
|
3429
|
+
i3$2.HttpClientModule,
|
|
3430
|
+
i2$1.FormsModule,
|
|
3431
|
+
i2$1.ReactiveFormsModule,
|
|
3432
|
+
i1.KwikUIButtonModule,
|
|
3433
|
+
i1.KwikUIInputModule,
|
|
3434
|
+
i1.KwikUIInputDateModule,
|
|
3435
|
+
i1.KwikUIInputDateRangeModule,
|
|
3436
|
+
i1.KwikUIInputSelectModule,
|
|
3437
|
+
i1.KwikUILabelValuePairModule,
|
|
3438
|
+
i1.KwikUITableModule,
|
|
3439
|
+
i1.KwikUITablePaginationModule,
|
|
3440
|
+
i3$1.KwikIDFormViewModule,
|
|
3441
|
+
i3.TuiRootModule,
|
|
3442
|
+
i3.TuiDialogModule,
|
|
3443
|
+
i3.TuiDropdownModule,
|
|
3444
|
+
addonMobile.TuiSidebarModule,
|
|
3445
|
+
i2.TuiActiveZoneModule,
|
|
3446
|
+
i3.TuiGroupModule,
|
|
3447
|
+
i3.TuiSvgModule,
|
|
3448
|
+
i5.ScrollingModule,
|
|
3449
|
+
i2$2.GoogleMapsModule,
|
|
3450
|
+
i3$2.HttpClientModule,
|
|
3451
|
+
i3$2.HttpClientJsonpModule], exports: [KwikIDAgentDashboardComponentV1] });
|
|
3452
|
+
/** @nocollapse */ KwikIDAgentDashboardModuleV1.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, imports: [[
|
|
3453
|
+
i7.CommonModule,
|
|
3454
|
+
i3$2.HttpClientModule,
|
|
3455
|
+
i2$1.FormsModule,
|
|
3456
|
+
i2$1.ReactiveFormsModule,
|
|
3457
|
+
i1.KwikUIButtonModule,
|
|
3458
|
+
i1.KwikUIInputModule,
|
|
3459
|
+
i1.KwikUIInputDateModule,
|
|
3460
|
+
i1.KwikUIInputDateRangeModule,
|
|
3461
|
+
i1.KwikUIInputSelectModule,
|
|
3462
|
+
i1.KwikUILabelValuePairModule,
|
|
3463
|
+
i1.KwikUITableModule,
|
|
3464
|
+
i1.KwikUITablePaginationModule,
|
|
3465
|
+
i3$1.KwikIDFormViewModule,
|
|
3466
|
+
i3.TuiRootModule,
|
|
3467
|
+
i3.TuiDialogModule,
|
|
3468
|
+
i3.TuiDropdownModule,
|
|
3469
|
+
addonMobile.TuiSidebarModule,
|
|
3470
|
+
i2.TuiActiveZoneModule,
|
|
3471
|
+
i3.TuiGroupModule,
|
|
3472
|
+
i3.TuiSvgModule,
|
|
3473
|
+
i5.ScrollingModule,
|
|
3474
|
+
i2$2.GoogleMapsModule,
|
|
3475
|
+
i3$2.HttpClientModule,
|
|
3476
|
+
i3$2.HttpClientJsonpModule
|
|
3477
|
+
]] });
|
|
3478
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, decorators: [{
|
|
3479
|
+
type: i0.NgModule,
|
|
3480
|
+
args: [{
|
|
3481
|
+
declarations: [
|
|
3482
|
+
KwikIDAgentDashboardComponentV1,
|
|
3483
|
+
CustomerListComponent,
|
|
3484
|
+
CustomerTileComponent,
|
|
3485
|
+
Ng2SearchPipe$1,
|
|
3486
|
+
StatusPillComponent,
|
|
3487
|
+
CustomerDetailsComponent,
|
|
3488
|
+
ActionButtonComponent
|
|
3489
|
+
],
|
|
3490
|
+
imports: [
|
|
3491
|
+
i7.CommonModule,
|
|
3492
|
+
i3$2.HttpClientModule,
|
|
3493
|
+
i2$1.FormsModule,
|
|
3494
|
+
i2$1.ReactiveFormsModule,
|
|
3495
|
+
i1.KwikUIButtonModule,
|
|
3496
|
+
i1.KwikUIInputModule,
|
|
3497
|
+
i1.KwikUIInputDateModule,
|
|
3498
|
+
i1.KwikUIInputDateRangeModule,
|
|
3499
|
+
i1.KwikUIInputSelectModule,
|
|
3500
|
+
i1.KwikUILabelValuePairModule,
|
|
3501
|
+
i1.KwikUITableModule,
|
|
3502
|
+
i1.KwikUITablePaginationModule,
|
|
3503
|
+
i3$1.KwikIDFormViewModule,
|
|
3504
|
+
i3.TuiRootModule,
|
|
3505
|
+
i3.TuiDialogModule,
|
|
3506
|
+
i3.TuiDropdownModule,
|
|
3507
|
+
addonMobile.TuiSidebarModule,
|
|
3508
|
+
i2.TuiActiveZoneModule,
|
|
3509
|
+
i3.TuiGroupModule,
|
|
3510
|
+
i3.TuiSvgModule,
|
|
3511
|
+
i5.ScrollingModule,
|
|
3512
|
+
i2$2.GoogleMapsModule,
|
|
3513
|
+
i3$2.HttpClientModule,
|
|
3514
|
+
i3$2.HttpClientJsonpModule
|
|
3515
|
+
],
|
|
3516
|
+
exports: [KwikIDAgentDashboardComponentV1]
|
|
3517
|
+
}]
|
|
3518
|
+
}] });
|
|
3519
|
+
|
|
3520
|
+
var AgentInfoComponent = /** @class */ (function () {
|
|
3521
|
+
function AgentInfoComponent() {
|
|
3522
|
+
}
|
|
3523
|
+
AgentInfoComponent.prototype.ngOnInit = function () {
|
|
3524
|
+
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
3525
|
+
return [2 /*return*/];
|
|
3526
|
+
}); });
|
|
3527
|
+
};
|
|
3528
|
+
return AgentInfoComponent;
|
|
3529
|
+
}());
|
|
3530
|
+
/** @nocollapse */ AgentInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3531
|
+
/** @nocollapse */ AgentInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AgentInfoComponent, selector: "agent-info", ngImport: i0__namespace, template: "Agent Info\n", styles: [""] });
|
|
3532
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoComponent, decorators: [{
|
|
3533
|
+
type: i0.Component,
|
|
3534
|
+
args: [{
|
|
3535
|
+
selector: "agent-info",
|
|
3536
|
+
templateUrl: "./agent-info.component.html",
|
|
3537
|
+
styleUrls: ["./agent-info.component.scss"]
|
|
3538
|
+
}]
|
|
3539
|
+
}], ctorParameters: function () { return []; } });
|
|
3540
|
+
|
|
3541
|
+
var AgentInfoModule = /** @class */ (function () {
|
|
3542
|
+
function AgentInfoModule() {
|
|
3543
|
+
}
|
|
3544
|
+
return AgentInfoModule;
|
|
3545
|
+
}());
|
|
3546
|
+
/** @nocollapse */ AgentInfoModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3547
|
+
/** @nocollapse */ AgentInfoModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, declarations: [AgentInfoComponent], imports: [i7.CommonModule,
|
|
3548
|
+
i2$1.FormsModule,
|
|
3549
|
+
i2$1.ReactiveFormsModule,
|
|
3550
|
+
i1.KwikUIModule,
|
|
3551
|
+
i3$1.KwikIDFormsModule], exports: [AgentInfoComponent] });
|
|
3552
|
+
/** @nocollapse */ AgentInfoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, imports: [[
|
|
3553
|
+
i7.CommonModule,
|
|
3554
|
+
i2$1.FormsModule,
|
|
3555
|
+
i2$1.ReactiveFormsModule,
|
|
3556
|
+
i1.KwikUIModule,
|
|
3557
|
+
i3$1.KwikIDFormsModule
|
|
3558
|
+
]] });
|
|
3559
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, decorators: [{
|
|
3560
|
+
type: i0.NgModule,
|
|
3561
|
+
args: [{
|
|
3562
|
+
declarations: [AgentInfoComponent],
|
|
3563
|
+
imports: [
|
|
3564
|
+
i7.CommonModule,
|
|
3565
|
+
i2$1.FormsModule,
|
|
3566
|
+
i2$1.ReactiveFormsModule,
|
|
3567
|
+
i1.KwikUIModule,
|
|
3568
|
+
i3$1.KwikIDFormsModule
|
|
3569
|
+
],
|
|
3570
|
+
exports: [AgentInfoComponent]
|
|
3571
|
+
}]
|
|
3572
|
+
}] });
|
|
3573
|
+
|
|
3574
|
+
var BottomSheetModule = /** @class */ (function () {
|
|
3575
|
+
function BottomSheetModule() {
|
|
3576
|
+
}
|
|
3577
|
+
return BottomSheetModule;
|
|
3578
|
+
}());
|
|
3579
|
+
/** @nocollapse */ BottomSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3580
|
+
/** @nocollapse */ BottomSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, declarations: [BottomSheetComponent], imports: [i7.CommonModule,
|
|
3581
|
+
i2$1.FormsModule,
|
|
3582
|
+
i2$1.ReactiveFormsModule,
|
|
3583
|
+
i3.TuiSvgModule,
|
|
3584
|
+
i1.KwikUIModule,
|
|
3585
|
+
i3$1.KwikIDFormsModule], exports: [BottomSheetComponent] });
|
|
3586
|
+
/** @nocollapse */ BottomSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, imports: [[
|
|
3587
|
+
i7.CommonModule,
|
|
3588
|
+
i2$1.FormsModule,
|
|
3589
|
+
i2$1.ReactiveFormsModule,
|
|
3590
|
+
i3.TuiSvgModule,
|
|
3591
|
+
i1.KwikUIModule,
|
|
3592
|
+
i3$1.KwikIDFormsModule
|
|
3593
|
+
]] });
|
|
3594
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, decorators: [{
|
|
3595
|
+
type: i0.NgModule,
|
|
3596
|
+
args: [{
|
|
3597
|
+
declarations: [BottomSheetComponent],
|
|
3598
|
+
imports: [
|
|
3599
|
+
i7.CommonModule,
|
|
3600
|
+
i2$1.FormsModule,
|
|
3601
|
+
i2$1.ReactiveFormsModule,
|
|
3602
|
+
i3.TuiSvgModule,
|
|
3603
|
+
i1.KwikUIModule,
|
|
3604
|
+
i3$1.KwikIDFormsModule
|
|
3605
|
+
],
|
|
3606
|
+
exports: [BottomSheetComponent]
|
|
3607
|
+
}]
|
|
3608
|
+
}] });
|
|
3609
|
+
|
|
3610
|
+
var MapViewModule = /** @class */ (function () {
|
|
3611
|
+
function MapViewModule() {
|
|
3612
|
+
}
|
|
3613
|
+
return MapViewModule;
|
|
3614
|
+
}());
|
|
3615
|
+
/** @nocollapse */ MapViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3616
|
+
/** @nocollapse */ MapViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, declarations: [MapViewComponent], imports: [i7.CommonModule,
|
|
3617
|
+
i2$1.FormsModule,
|
|
3618
|
+
i2$1.ReactiveFormsModule,
|
|
3619
|
+
i1.KwikUIModule,
|
|
3620
|
+
i3$1.KwikIDFormsModule], exports: [MapViewComponent] });
|
|
3621
|
+
/** @nocollapse */ MapViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, imports: [[
|
|
3622
|
+
i7.CommonModule,
|
|
3623
|
+
i2$1.FormsModule,
|
|
3624
|
+
i2$1.ReactiveFormsModule,
|
|
3625
|
+
i1.KwikUIModule,
|
|
3626
|
+
i3$1.KwikIDFormsModule
|
|
3627
|
+
]] });
|
|
3628
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, decorators: [{
|
|
3629
|
+
type: i0.NgModule,
|
|
3630
|
+
args: [{
|
|
3631
|
+
declarations: [MapViewComponent],
|
|
3632
|
+
imports: [
|
|
3633
|
+
i7.CommonModule,
|
|
3634
|
+
i2$1.FormsModule,
|
|
3635
|
+
i2$1.ReactiveFormsModule,
|
|
3636
|
+
i1.KwikUIModule,
|
|
3637
|
+
i3$1.KwikIDFormsModule
|
|
3638
|
+
],
|
|
1840
3639
|
exports: [MapViewComponent]
|
|
1841
3640
|
}]
|
|
1842
3641
|
}] });
|
|
@@ -1847,7 +3646,7 @@
|
|
|
1847
3646
|
return PrimaryActionsModule;
|
|
1848
3647
|
}());
|
|
1849
3648
|
/** @nocollapse */ PrimaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1850
|
-
/** @nocollapse */ PrimaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, declarations: [PrimaryActionsComponent], imports: [
|
|
3649
|
+
/** @nocollapse */ PrimaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, declarations: [PrimaryActionsComponent], imports: [i7.CommonModule,
|
|
1851
3650
|
i2$1.FormsModule,
|
|
1852
3651
|
i2$1.ReactiveFormsModule,
|
|
1853
3652
|
i1$1.TuiItemsWithMoreModule,
|
|
@@ -1856,9 +3655,9 @@
|
|
|
1856
3655
|
i3.TuiDataListModule,
|
|
1857
3656
|
i1$1.TuiBadgeModule,
|
|
1858
3657
|
i1.KwikUIModule,
|
|
1859
|
-
i3$
|
|
3658
|
+
i3$1.KwikIDFormsModule], exports: [PrimaryActionsComponent] });
|
|
1860
3659
|
/** @nocollapse */ PrimaryActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, imports: [[
|
|
1861
|
-
|
|
3660
|
+
i7.CommonModule,
|
|
1862
3661
|
i2$1.FormsModule,
|
|
1863
3662
|
i2$1.ReactiveFormsModule,
|
|
1864
3663
|
i1$1.TuiItemsWithMoreModule,
|
|
@@ -1867,14 +3666,14 @@
|
|
|
1867
3666
|
i3.TuiDataListModule,
|
|
1868
3667
|
i1$1.TuiBadgeModule,
|
|
1869
3668
|
i1.KwikUIModule,
|
|
1870
|
-
i3$
|
|
3669
|
+
i3$1.KwikIDFormsModule
|
|
1871
3670
|
]] });
|
|
1872
3671
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, decorators: [{
|
|
1873
3672
|
type: i0.NgModule,
|
|
1874
3673
|
args: [{
|
|
1875
3674
|
declarations: [PrimaryActionsComponent],
|
|
1876
3675
|
imports: [
|
|
1877
|
-
|
|
3676
|
+
i7.CommonModule,
|
|
1878
3677
|
i2$1.FormsModule,
|
|
1879
3678
|
i2$1.ReactiveFormsModule,
|
|
1880
3679
|
i1$1.TuiItemsWithMoreModule,
|
|
@@ -1883,7 +3682,7 @@
|
|
|
1883
3682
|
i3.TuiDataListModule,
|
|
1884
3683
|
i1$1.TuiBadgeModule,
|
|
1885
3684
|
i1.KwikUIModule,
|
|
1886
|
-
i3$
|
|
3685
|
+
i3$1.KwikIDFormsModule
|
|
1887
3686
|
],
|
|
1888
3687
|
exports: [PrimaryActionsComponent]
|
|
1889
3688
|
}]
|
|
@@ -1895,13 +3694,13 @@
|
|
|
1895
3694
|
return TaskItemStatusModule;
|
|
1896
3695
|
}());
|
|
1897
3696
|
/** @nocollapse */ TaskItemStatusModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1898
|
-
/** @nocollapse */ TaskItemStatusModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, declarations: [TaskItemStatusComponent], imports: [
|
|
1899
|
-
/** @nocollapse */ TaskItemStatusModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, imports: [[
|
|
3697
|
+
/** @nocollapse */ TaskItemStatusModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, declarations: [TaskItemStatusComponent], imports: [i7.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule], exports: [TaskItemStatusComponent] });
|
|
3698
|
+
/** @nocollapse */ TaskItemStatusModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, imports: [[i7.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule]] });
|
|
1900
3699
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, decorators: [{
|
|
1901
3700
|
type: i0.NgModule,
|
|
1902
3701
|
args: [{
|
|
1903
3702
|
declarations: [TaskItemStatusComponent],
|
|
1904
|
-
imports: [
|
|
3703
|
+
imports: [i7.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule],
|
|
1905
3704
|
exports: [TaskItemStatusComponent]
|
|
1906
3705
|
}]
|
|
1907
3706
|
}] });
|
|
@@ -1912,18 +3711,18 @@
|
|
|
1912
3711
|
return TaskDetailModule;
|
|
1913
3712
|
}());
|
|
1914
3713
|
/** @nocollapse */ TaskDetailModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1915
|
-
/** @nocollapse */ TaskDetailModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, declarations: [TaskDetailComponent], imports: [
|
|
3714
|
+
/** @nocollapse */ TaskDetailModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, declarations: [TaskDetailComponent], imports: [i7.CommonModule,
|
|
1916
3715
|
i2$1.FormsModule,
|
|
1917
3716
|
i2$1.ReactiveFormsModule,
|
|
1918
3717
|
i1.KwikUIModule,
|
|
1919
|
-
i3$
|
|
3718
|
+
i3$1.KwikIDFormsModule,
|
|
1920
3719
|
TaskItemStatusModule], exports: [TaskDetailComponent] });
|
|
1921
3720
|
/** @nocollapse */ TaskDetailModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, imports: [[
|
|
1922
|
-
|
|
3721
|
+
i7.CommonModule,
|
|
1923
3722
|
i2$1.FormsModule,
|
|
1924
3723
|
i2$1.ReactiveFormsModule,
|
|
1925
3724
|
i1.KwikUIModule,
|
|
1926
|
-
i3$
|
|
3725
|
+
i3$1.KwikIDFormsModule,
|
|
1927
3726
|
TaskItemStatusModule
|
|
1928
3727
|
]] });
|
|
1929
3728
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, decorators: [{
|
|
@@ -1931,11 +3730,11 @@
|
|
|
1931
3730
|
args: [{
|
|
1932
3731
|
declarations: [TaskDetailComponent],
|
|
1933
3732
|
imports: [
|
|
1934
|
-
|
|
3733
|
+
i7.CommonModule,
|
|
1935
3734
|
i2$1.FormsModule,
|
|
1936
3735
|
i2$1.ReactiveFormsModule,
|
|
1937
3736
|
i1.KwikUIModule,
|
|
1938
|
-
i3$
|
|
3737
|
+
i3$1.KwikIDFormsModule,
|
|
1939
3738
|
TaskItemStatusModule
|
|
1940
3739
|
],
|
|
1941
3740
|
exports: [TaskDetailComponent]
|
|
@@ -1948,34 +3747,34 @@
|
|
|
1948
3747
|
return TaskItemModule;
|
|
1949
3748
|
}());
|
|
1950
3749
|
/** @nocollapse */ TaskItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1951
|
-
/** @nocollapse */ TaskItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, declarations: [TaskItemComponent], imports: [
|
|
3750
|
+
/** @nocollapse */ TaskItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, declarations: [TaskItemComponent], imports: [i7.CommonModule,
|
|
1952
3751
|
i2$1.FormsModule,
|
|
1953
3752
|
i2$1.ReactiveFormsModule,
|
|
1954
3753
|
i1$1.TuiAccordionModule,
|
|
1955
3754
|
TaskItemStatusModule,
|
|
1956
3755
|
i1.KwikUIModule,
|
|
1957
|
-
i3$
|
|
3756
|
+
i3$1.KwikIDFormsModule], exports: [TaskItemComponent] });
|
|
1958
3757
|
/** @nocollapse */ TaskItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, imports: [[
|
|
1959
|
-
|
|
3758
|
+
i7.CommonModule,
|
|
1960
3759
|
i2$1.FormsModule,
|
|
1961
3760
|
i2$1.ReactiveFormsModule,
|
|
1962
3761
|
i1$1.TuiAccordionModule,
|
|
1963
3762
|
TaskItemStatusModule,
|
|
1964
3763
|
i1.KwikUIModule,
|
|
1965
|
-
i3$
|
|
3764
|
+
i3$1.KwikIDFormsModule
|
|
1966
3765
|
]] });
|
|
1967
3766
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, decorators: [{
|
|
1968
3767
|
type: i0.NgModule,
|
|
1969
3768
|
args: [{
|
|
1970
3769
|
declarations: [TaskItemComponent],
|
|
1971
3770
|
imports: [
|
|
1972
|
-
|
|
3771
|
+
i7.CommonModule,
|
|
1973
3772
|
i2$1.FormsModule,
|
|
1974
3773
|
i2$1.ReactiveFormsModule,
|
|
1975
3774
|
i1$1.TuiAccordionModule,
|
|
1976
3775
|
TaskItemStatusModule,
|
|
1977
3776
|
i1.KwikUIModule,
|
|
1978
|
-
i3$
|
|
3777
|
+
i3$1.KwikIDFormsModule
|
|
1979
3778
|
],
|
|
1980
3779
|
exports: [TaskItemComponent]
|
|
1981
3780
|
}]
|
|
@@ -1987,31 +3786,31 @@
|
|
|
1987
3786
|
return TaskListSearchModule;
|
|
1988
3787
|
}());
|
|
1989
3788
|
/** @nocollapse */ TaskListSearchModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1990
|
-
/** @nocollapse */ TaskListSearchModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, declarations: [TaskListSearchComponent], imports: [
|
|
1991
|
-
|
|
3789
|
+
/** @nocollapse */ TaskListSearchModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, declarations: [TaskListSearchComponent], imports: [i7.CommonModule,
|
|
3790
|
+
i5.ScrollingModule,
|
|
1992
3791
|
i2$1.FormsModule,
|
|
1993
3792
|
i2$1.ReactiveFormsModule,
|
|
1994
3793
|
i1.KwikUIModule,
|
|
1995
|
-
i3$
|
|
3794
|
+
i3$1.KwikIDFormsModule], exports: [TaskListSearchComponent] });
|
|
1996
3795
|
/** @nocollapse */ TaskListSearchModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, imports: [[
|
|
1997
|
-
|
|
1998
|
-
|
|
3796
|
+
i7.CommonModule,
|
|
3797
|
+
i5.ScrollingModule,
|
|
1999
3798
|
i2$1.FormsModule,
|
|
2000
3799
|
i2$1.ReactiveFormsModule,
|
|
2001
3800
|
i1.KwikUIModule,
|
|
2002
|
-
i3$
|
|
3801
|
+
i3$1.KwikIDFormsModule
|
|
2003
3802
|
]] });
|
|
2004
3803
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, decorators: [{
|
|
2005
3804
|
type: i0.NgModule,
|
|
2006
3805
|
args: [{
|
|
2007
3806
|
declarations: [TaskListSearchComponent],
|
|
2008
3807
|
imports: [
|
|
2009
|
-
|
|
2010
|
-
|
|
3808
|
+
i7.CommonModule,
|
|
3809
|
+
i5.ScrollingModule,
|
|
2011
3810
|
i2$1.FormsModule,
|
|
2012
3811
|
i2$1.ReactiveFormsModule,
|
|
2013
3812
|
i1.KwikUIModule,
|
|
2014
|
-
i3$
|
|
3813
|
+
i3$1.KwikIDFormsModule
|
|
2015
3814
|
],
|
|
2016
3815
|
exports: [TaskListSearchComponent]
|
|
2017
3816
|
}]
|
|
@@ -2041,7 +3840,7 @@
|
|
|
2041
3840
|
Ng2SearchPipe.filter = function (items, term, excludes) {
|
|
2042
3841
|
var toCompare = term.toLowerCase();
|
|
2043
3842
|
function checkInside(item, term) {
|
|
2044
|
-
if (typeof item ===
|
|
3843
|
+
if (typeof item === "string" &&
|
|
2045
3844
|
item.toString().toLowerCase().includes(toCompare)) {
|
|
2046
3845
|
return true;
|
|
2047
3846
|
}
|
|
@@ -2051,7 +3850,7 @@
|
|
|
2051
3850
|
excludes.includes(property)) {
|
|
2052
3851
|
continue;
|
|
2053
3852
|
}
|
|
2054
|
-
if (typeof item[property] ===
|
|
3853
|
+
if (typeof item[property] === "object") {
|
|
2055
3854
|
if (checkInside(item[property], term)) {
|
|
2056
3855
|
return true;
|
|
2057
3856
|
}
|
|
@@ -2074,7 +3873,7 @@
|
|
|
2074
3873
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, decorators: [{
|
|
2075
3874
|
type: i0.Pipe,
|
|
2076
3875
|
args: [{
|
|
2077
|
-
name:
|
|
3876
|
+
name: "filter",
|
|
2078
3877
|
pure: false
|
|
2079
3878
|
}]
|
|
2080
3879
|
}, {
|
|
@@ -2087,24 +3886,24 @@
|
|
|
2087
3886
|
return TaskListModule;
|
|
2088
3887
|
}());
|
|
2089
3888
|
/** @nocollapse */ TaskListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2090
|
-
/** @nocollapse */ TaskListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, declarations: [TaskListComponent, Ng2SearchPipe], imports: [
|
|
2091
|
-
|
|
3889
|
+
/** @nocollapse */ TaskListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, declarations: [TaskListComponent, Ng2SearchPipe], imports: [i7.CommonModule,
|
|
3890
|
+
i5.ScrollingModule,
|
|
2092
3891
|
i2$1.FormsModule,
|
|
2093
3892
|
i2$1.ReactiveFormsModule,
|
|
2094
3893
|
i1.KwikUIModule,
|
|
2095
3894
|
i1.KwikUILoaderModule,
|
|
2096
|
-
i3$
|
|
3895
|
+
i3$1.KwikIDFormsModule,
|
|
2097
3896
|
TaskItemModule,
|
|
2098
3897
|
TaskListSearchModule,
|
|
2099
3898
|
i1$1.TuiPaginationModule], exports: [TaskListComponent] });
|
|
2100
3899
|
/** @nocollapse */ TaskListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, imports: [[
|
|
2101
|
-
|
|
2102
|
-
|
|
3900
|
+
i7.CommonModule,
|
|
3901
|
+
i5.ScrollingModule,
|
|
2103
3902
|
i2$1.FormsModule,
|
|
2104
3903
|
i2$1.ReactiveFormsModule,
|
|
2105
3904
|
i1.KwikUIModule,
|
|
2106
3905
|
i1.KwikUILoaderModule,
|
|
2107
|
-
i3$
|
|
3906
|
+
i3$1.KwikIDFormsModule,
|
|
2108
3907
|
TaskItemModule,
|
|
2109
3908
|
TaskListSearchModule,
|
|
2110
3909
|
i1$1.TuiPaginationModule
|
|
@@ -2114,13 +3913,13 @@
|
|
|
2114
3913
|
args: [{
|
|
2115
3914
|
declarations: [TaskListComponent, Ng2SearchPipe],
|
|
2116
3915
|
imports: [
|
|
2117
|
-
|
|
2118
|
-
|
|
3916
|
+
i7.CommonModule,
|
|
3917
|
+
i5.ScrollingModule,
|
|
2119
3918
|
i2$1.FormsModule,
|
|
2120
3919
|
i2$1.ReactiveFormsModule,
|
|
2121
3920
|
i1.KwikUIModule,
|
|
2122
3921
|
i1.KwikUILoaderModule,
|
|
2123
|
-
i3$
|
|
3922
|
+
i3$1.KwikIDFormsModule,
|
|
2124
3923
|
TaskItemModule,
|
|
2125
3924
|
TaskListSearchModule,
|
|
2126
3925
|
i1$1.TuiPaginationModule
|
|
@@ -2147,9 +3946,9 @@
|
|
|
2147
3946
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewComponent, decorators: [{
|
|
2148
3947
|
type: i0.Component,
|
|
2149
3948
|
args: [{
|
|
2150
|
-
selector:
|
|
2151
|
-
templateUrl:
|
|
2152
|
-
styleUrls: [
|
|
3949
|
+
selector: "task-preview",
|
|
3950
|
+
templateUrl: "./task-preview.component.html",
|
|
3951
|
+
styleUrls: ["./task-preview.component.scss"]
|
|
2153
3952
|
}]
|
|
2154
3953
|
}], ctorParameters: function () { return []; }, propDecorators: { config: [{
|
|
2155
3954
|
type: i0.Input
|
|
@@ -2165,28 +3964,28 @@
|
|
|
2165
3964
|
return TaskPreviewModule;
|
|
2166
3965
|
}());
|
|
2167
3966
|
/** @nocollapse */ TaskPreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2168
|
-
/** @nocollapse */ TaskPreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, declarations: [TaskPreviewComponent], imports: [
|
|
3967
|
+
/** @nocollapse */ TaskPreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, declarations: [TaskPreviewComponent], imports: [i7.CommonModule,
|
|
2169
3968
|
i2$1.FormsModule,
|
|
2170
3969
|
i2$1.ReactiveFormsModule,
|
|
2171
3970
|
i1.KwikUIModule,
|
|
2172
|
-
i3$
|
|
3971
|
+
i3$1.KwikIDFormsModule], exports: [TaskPreviewComponent] });
|
|
2173
3972
|
/** @nocollapse */ TaskPreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, imports: [[
|
|
2174
|
-
|
|
3973
|
+
i7.CommonModule,
|
|
2175
3974
|
i2$1.FormsModule,
|
|
2176
3975
|
i2$1.ReactiveFormsModule,
|
|
2177
3976
|
i1.KwikUIModule,
|
|
2178
|
-
i3$
|
|
3977
|
+
i3$1.KwikIDFormsModule
|
|
2179
3978
|
]] });
|
|
2180
3979
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, decorators: [{
|
|
2181
3980
|
type: i0.NgModule,
|
|
2182
3981
|
args: [{
|
|
2183
3982
|
declarations: [TaskPreviewComponent],
|
|
2184
3983
|
imports: [
|
|
2185
|
-
|
|
3984
|
+
i7.CommonModule,
|
|
2186
3985
|
i2$1.FormsModule,
|
|
2187
3986
|
i2$1.ReactiveFormsModule,
|
|
2188
3987
|
i1.KwikUIModule,
|
|
2189
|
-
i3$
|
|
3988
|
+
i3$1.KwikIDFormsModule
|
|
2190
3989
|
],
|
|
2191
3990
|
exports: [TaskPreviewComponent]
|
|
2192
3991
|
}]
|
|
@@ -2269,22 +4068,22 @@
|
|
|
2269
4068
|
return LayoutBodyModule;
|
|
2270
4069
|
}());
|
|
2271
4070
|
/** @nocollapse */ LayoutBodyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2272
|
-
/** @nocollapse */ LayoutBodyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, declarations: [LayoutBodyComponent], imports: [
|
|
4071
|
+
/** @nocollapse */ LayoutBodyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, declarations: [LayoutBodyComponent], imports: [i7.CommonModule,
|
|
2273
4072
|
i2$1.FormsModule,
|
|
2274
4073
|
i2$1.ReactiveFormsModule,
|
|
2275
4074
|
i1.KwikUIModule,
|
|
2276
|
-
i3$
|
|
4075
|
+
i3$1.KwikIDFormViewModule,
|
|
2277
4076
|
ComponentModule,
|
|
2278
4077
|
i3.TuiSvgModule,
|
|
2279
4078
|
i8.TuiPreviewActionModule,
|
|
2280
4079
|
i8.TuiPreviewModule,
|
|
2281
4080
|
i3.TuiButtonModule], exports: [LayoutBodyComponent] });
|
|
2282
4081
|
/** @nocollapse */ LayoutBodyModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, imports: [[
|
|
2283
|
-
|
|
4082
|
+
i7.CommonModule,
|
|
2284
4083
|
i2$1.FormsModule,
|
|
2285
4084
|
i2$1.ReactiveFormsModule,
|
|
2286
4085
|
i1.KwikUIModule,
|
|
2287
|
-
i3$
|
|
4086
|
+
i3$1.KwikIDFormViewModule,
|
|
2288
4087
|
ComponentModule,
|
|
2289
4088
|
i3.TuiSvgModule,
|
|
2290
4089
|
i8.TuiPreviewActionModule,
|
|
@@ -2296,11 +4095,11 @@
|
|
|
2296
4095
|
args: [{
|
|
2297
4096
|
declarations: [LayoutBodyComponent],
|
|
2298
4097
|
imports: [
|
|
2299
|
-
|
|
4098
|
+
i7.CommonModule,
|
|
2300
4099
|
i2$1.FormsModule,
|
|
2301
4100
|
i2$1.ReactiveFormsModule,
|
|
2302
4101
|
i1.KwikUIModule,
|
|
2303
|
-
i3$
|
|
4102
|
+
i3$1.KwikIDFormViewModule,
|
|
2304
4103
|
ComponentModule,
|
|
2305
4104
|
i3.TuiSvgModule,
|
|
2306
4105
|
i8.TuiPreviewActionModule,
|
|
@@ -2317,20 +4116,20 @@
|
|
|
2317
4116
|
return LayoutHeaderModule;
|
|
2318
4117
|
}());
|
|
2319
4118
|
/** @nocollapse */ LayoutHeaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2320
|
-
/** @nocollapse */ LayoutHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, declarations: [LayoutHeaderComponent], imports: [
|
|
4119
|
+
/** @nocollapse */ LayoutHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, declarations: [LayoutHeaderComponent], imports: [i7.CommonModule,
|
|
2321
4120
|
i2$1.FormsModule,
|
|
2322
4121
|
i2$1.ReactiveFormsModule,
|
|
2323
4122
|
i1.KwikUIModule,
|
|
2324
|
-
i3$
|
|
4123
|
+
i3$1.KwikIDFormsModule,
|
|
2325
4124
|
i2.TuiActiveZoneModule,
|
|
2326
4125
|
i3.TuiGroupModule,
|
|
2327
4126
|
i3.TuiDropdownModule], exports: [LayoutHeaderComponent] });
|
|
2328
4127
|
/** @nocollapse */ LayoutHeaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, imports: [[
|
|
2329
|
-
|
|
4128
|
+
i7.CommonModule,
|
|
2330
4129
|
i2$1.FormsModule,
|
|
2331
4130
|
i2$1.ReactiveFormsModule,
|
|
2332
4131
|
i1.KwikUIModule,
|
|
2333
|
-
i3$
|
|
4132
|
+
i3$1.KwikIDFormsModule,
|
|
2334
4133
|
i2.TuiActiveZoneModule,
|
|
2335
4134
|
i3.TuiGroupModule,
|
|
2336
4135
|
i3.TuiDropdownModule
|
|
@@ -2340,11 +4139,11 @@
|
|
|
2340
4139
|
args: [{
|
|
2341
4140
|
declarations: [LayoutHeaderComponent],
|
|
2342
4141
|
imports: [
|
|
2343
|
-
|
|
4142
|
+
i7.CommonModule,
|
|
2344
4143
|
i2$1.FormsModule,
|
|
2345
4144
|
i2$1.ReactiveFormsModule,
|
|
2346
4145
|
i1.KwikUIModule,
|
|
2347
|
-
i3$
|
|
4146
|
+
i3$1.KwikIDFormsModule,
|
|
2348
4147
|
i2.TuiActiveZoneModule,
|
|
2349
4148
|
i3.TuiGroupModule,
|
|
2350
4149
|
i3.TuiDropdownModule
|
|
@@ -2370,41 +4169,137 @@
|
|
|
2370
4169
|
}]
|
|
2371
4170
|
}] });
|
|
2372
4171
|
|
|
2373
|
-
var
|
|
2374
|
-
function
|
|
4172
|
+
var KwikIDAgentDashboardModuleV2 = /** @class */ (function () {
|
|
4173
|
+
function KwikIDAgentDashboardModuleV2() {
|
|
2375
4174
|
}
|
|
2376
|
-
return
|
|
4175
|
+
return KwikIDAgentDashboardModuleV2;
|
|
2377
4176
|
}());
|
|
2378
|
-
/** @nocollapse */
|
|
2379
|
-
/** @nocollapse */
|
|
4177
|
+
/** @nocollapse */ KwikIDAgentDashboardModuleV2.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4178
|
+
/** @nocollapse */ KwikIDAgentDashboardModuleV2.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, declarations: [KwikIDAgentDashboardComponentV2], imports: [i7.CommonModule,
|
|
2380
4179
|
i2$1.FormsModule,
|
|
2381
4180
|
i2$1.ReactiveFormsModule,
|
|
2382
4181
|
i1.KwikUIModule,
|
|
2383
|
-
i3$
|
|
4182
|
+
i3$1.KwikIDFormsModule,
|
|
2384
4183
|
LayoutModule,
|
|
2385
|
-
ComponentModule], exports: [
|
|
2386
|
-
/** @nocollapse */
|
|
2387
|
-
|
|
4184
|
+
ComponentModule], exports: [KwikIDAgentDashboardComponentV2] });
|
|
4185
|
+
/** @nocollapse */ KwikIDAgentDashboardModuleV2.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, imports: [[
|
|
4186
|
+
i7.CommonModule,
|
|
2388
4187
|
i2$1.FormsModule,
|
|
2389
4188
|
i2$1.ReactiveFormsModule,
|
|
2390
4189
|
i1.KwikUIModule,
|
|
2391
|
-
i3$
|
|
4190
|
+
i3$1.KwikIDFormsModule,
|
|
2392
4191
|
LayoutModule,
|
|
2393
4192
|
ComponentModule
|
|
2394
4193
|
]] });
|
|
2395
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
4194
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, decorators: [{
|
|
2396
4195
|
type: i0.NgModule,
|
|
2397
4196
|
args: [{
|
|
2398
|
-
declarations: [
|
|
4197
|
+
declarations: [KwikIDAgentDashboardComponentV2],
|
|
2399
4198
|
imports: [
|
|
2400
|
-
|
|
4199
|
+
i7.CommonModule,
|
|
2401
4200
|
i2$1.FormsModule,
|
|
2402
4201
|
i2$1.ReactiveFormsModule,
|
|
2403
4202
|
i1.KwikUIModule,
|
|
2404
|
-
i3$
|
|
4203
|
+
i3$1.KwikIDFormsModule,
|
|
2405
4204
|
LayoutModule,
|
|
2406
4205
|
ComponentModule
|
|
2407
4206
|
],
|
|
4207
|
+
exports: [KwikIDAgentDashboardComponentV2]
|
|
4208
|
+
}]
|
|
4209
|
+
}] });
|
|
4210
|
+
|
|
4211
|
+
var KwikIDAgentDashboardModule = /** @class */ (function () {
|
|
4212
|
+
function KwikIDAgentDashboardModule() {
|
|
4213
|
+
}
|
|
4214
|
+
return KwikIDAgentDashboardModule;
|
|
4215
|
+
}());
|
|
4216
|
+
/** @nocollapse */ KwikIDAgentDashboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4217
|
+
/** @nocollapse */ KwikIDAgentDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, declarations: [KwikIDAgentDashboardComponent], imports: [i7.CommonModule,
|
|
4218
|
+
i3$2.HttpClientModule,
|
|
4219
|
+
i2$1.FormsModule,
|
|
4220
|
+
i2$1.ReactiveFormsModule,
|
|
4221
|
+
i1.KwikUIButtonModule,
|
|
4222
|
+
i1.KwikUIInputModule,
|
|
4223
|
+
i1.KwikUIInputDateModule,
|
|
4224
|
+
i1.KwikUIInputDateRangeModule,
|
|
4225
|
+
i1.KwikUIInputSelectModule,
|
|
4226
|
+
i1.KwikUILabelValuePairModule,
|
|
4227
|
+
i1.KwikUITableModule,
|
|
4228
|
+
i1.KwikUITablePaginationModule,
|
|
4229
|
+
i3$1.KwikIDFormViewModule,
|
|
4230
|
+
i3.TuiRootModule,
|
|
4231
|
+
i3.TuiDialogModule,
|
|
4232
|
+
i3.TuiDropdownModule,
|
|
4233
|
+
addonMobile.TuiSidebarModule,
|
|
4234
|
+
i2.TuiActiveZoneModule,
|
|
4235
|
+
i3.TuiGroupModule,
|
|
4236
|
+
i3.TuiSvgModule,
|
|
4237
|
+
i5.ScrollingModule,
|
|
4238
|
+
i2$2.GoogleMapsModule,
|
|
4239
|
+
i3$2.HttpClientModule,
|
|
4240
|
+
i3$2.HttpClientJsonpModule,
|
|
4241
|
+
KwikIDAgentDashboardModuleV1,
|
|
4242
|
+
KwikIDAgentDashboardModuleV2], exports: [KwikIDAgentDashboardComponent] });
|
|
4243
|
+
/** @nocollapse */ KwikIDAgentDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, imports: [[
|
|
4244
|
+
i7.CommonModule,
|
|
4245
|
+
i3$2.HttpClientModule,
|
|
4246
|
+
i2$1.FormsModule,
|
|
4247
|
+
i2$1.ReactiveFormsModule,
|
|
4248
|
+
i1.KwikUIButtonModule,
|
|
4249
|
+
i1.KwikUIInputModule,
|
|
4250
|
+
i1.KwikUIInputDateModule,
|
|
4251
|
+
i1.KwikUIInputDateRangeModule,
|
|
4252
|
+
i1.KwikUIInputSelectModule,
|
|
4253
|
+
i1.KwikUILabelValuePairModule,
|
|
4254
|
+
i1.KwikUITableModule,
|
|
4255
|
+
i1.KwikUITablePaginationModule,
|
|
4256
|
+
i3$1.KwikIDFormViewModule,
|
|
4257
|
+
i3.TuiRootModule,
|
|
4258
|
+
i3.TuiDialogModule,
|
|
4259
|
+
i3.TuiDropdownModule,
|
|
4260
|
+
addonMobile.TuiSidebarModule,
|
|
4261
|
+
i2.TuiActiveZoneModule,
|
|
4262
|
+
i3.TuiGroupModule,
|
|
4263
|
+
i3.TuiSvgModule,
|
|
4264
|
+
i5.ScrollingModule,
|
|
4265
|
+
i2$2.GoogleMapsModule,
|
|
4266
|
+
i3$2.HttpClientModule,
|
|
4267
|
+
i3$2.HttpClientJsonpModule,
|
|
4268
|
+
KwikIDAgentDashboardModuleV1,
|
|
4269
|
+
KwikIDAgentDashboardModuleV2
|
|
4270
|
+
]] });
|
|
4271
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, decorators: [{
|
|
4272
|
+
type: i0.NgModule,
|
|
4273
|
+
args: [{
|
|
4274
|
+
declarations: [KwikIDAgentDashboardComponent],
|
|
4275
|
+
imports: [
|
|
4276
|
+
i7.CommonModule,
|
|
4277
|
+
i3$2.HttpClientModule,
|
|
4278
|
+
i2$1.FormsModule,
|
|
4279
|
+
i2$1.ReactiveFormsModule,
|
|
4280
|
+
i1.KwikUIButtonModule,
|
|
4281
|
+
i1.KwikUIInputModule,
|
|
4282
|
+
i1.KwikUIInputDateModule,
|
|
4283
|
+
i1.KwikUIInputDateRangeModule,
|
|
4284
|
+
i1.KwikUIInputSelectModule,
|
|
4285
|
+
i1.KwikUILabelValuePairModule,
|
|
4286
|
+
i1.KwikUITableModule,
|
|
4287
|
+
i1.KwikUITablePaginationModule,
|
|
4288
|
+
i3$1.KwikIDFormViewModule,
|
|
4289
|
+
i3.TuiRootModule,
|
|
4290
|
+
i3.TuiDialogModule,
|
|
4291
|
+
i3.TuiDropdownModule,
|
|
4292
|
+
addonMobile.TuiSidebarModule,
|
|
4293
|
+
i2.TuiActiveZoneModule,
|
|
4294
|
+
i3.TuiGroupModule,
|
|
4295
|
+
i3.TuiSvgModule,
|
|
4296
|
+
i5.ScrollingModule,
|
|
4297
|
+
i2$2.GoogleMapsModule,
|
|
4298
|
+
i3$2.HttpClientModule,
|
|
4299
|
+
i3$2.HttpClientJsonpModule,
|
|
4300
|
+
KwikIDAgentDashboardModuleV1,
|
|
4301
|
+
KwikIDAgentDashboardModuleV2
|
|
4302
|
+
],
|
|
2408
4303
|
exports: [KwikIDAgentDashboardComponent]
|
|
2409
4304
|
}]
|
|
2410
4305
|
}] });
|