@memberjunction/ng-user-view-grid 1.8.1 → 2.1.1
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.
|
@@ -10,7 +10,7 @@ import { TextAreaComponent } from '@progress/kendo-angular-inputs';
|
|
|
10
10
|
import { EntityFormDialogComponent } from '@memberjunction/ng-entity-form-dialog';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export type GridRowClickedEvent = {
|
|
13
|
-
entityId:
|
|
13
|
+
entityId: string;
|
|
14
14
|
entityName: string;
|
|
15
15
|
CompositeKey: CompositeKey;
|
|
16
16
|
};
|
|
@@ -76,6 +76,7 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
76
76
|
skip: number;
|
|
77
77
|
pageSize: number;
|
|
78
78
|
isLoading: boolean;
|
|
79
|
+
neverLoaded: boolean;
|
|
79
80
|
gridView: GridDataResult;
|
|
80
81
|
gridHeight: number;
|
|
81
82
|
_viewEntity: UserViewEntityExtended | undefined;
|
|
@@ -104,7 +105,7 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
104
105
|
selectedListEntities: ListEntity[];
|
|
105
106
|
listEntitySearch: string;
|
|
106
107
|
get PendingRecords(): GridPendingRecordItem[];
|
|
107
|
-
get ViewID():
|
|
108
|
+
get ViewID(): string;
|
|
108
109
|
/**
|
|
109
110
|
* This property is true if the user has the ability to create a new record which is a combination of the user-level permission coupled with the
|
|
110
111
|
* entity-level setting AllowCreateAPI being set to 1.
|
|
@@ -158,6 +159,7 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
158
159
|
exportData: any[];
|
|
159
160
|
doExcelExport(): Promise<void>;
|
|
160
161
|
protected getExportData(): Promise<any[]>;
|
|
162
|
+
showTemplatePreviewDialog: boolean;
|
|
161
163
|
/**
|
|
162
164
|
* Handles communication functionality for a given view, only available if the entity being displayed supports communication.
|
|
163
165
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-user-view-grid.component.d.ts","sourceRoot":"","sources":["../../src/lib/ng-user-view-grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,UAAU,EAAU,YAAY,EAAE,MAAM,EAAS,aAAa,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAC/H,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,EAAY,UAAU,EAAW,aAAa,EAAE,eAAe,EAAqB,UAAU,EAA0B,YAAY,EAAkE,MAAM,sBAAsB,CAAC;AAC1O,OAAO,EAA2B,cAAc,EAAE,sBAAsB,EAAE,UAAU,EAAoB,MAAM,+BAA+B,CAAC;AAE9I,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAC9E,kBAAkB,EAAE,gBAAgB,EAAmB,cAAc,EAAE,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AAMxI,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;;
|
|
1
|
+
{"version":3,"file":"ng-user-view-grid.component.d.ts","sourceRoot":"","sources":["../../src/lib/ng-user-view-grid.component.ts"],"names":[],"mappings":"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"}
|
|
@@ -20,7 +20,7 @@ import { TextAreaComponent } from '@progress/kendo-angular-inputs';
|
|
|
20
20
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
21
21
|
import { BaseFormComponentEventCodes } from '@memberjunction/ng-base-types';
|
|
22
22
|
import { EntityCommunicationsEngineClient } from '@memberjunction/entity-communications-client';
|
|
23
|
-
import { CommunicationEngineBase
|
|
23
|
+
import { CommunicationEngineBase } from '@memberjunction/communication-types';
|
|
24
24
|
import { TemplateEngineBase } from '@memberjunction/templates-base-types';
|
|
25
25
|
import * as i0 from "@angular/core";
|
|
26
26
|
import * as i1 from "@angular/forms";
|
|
@@ -35,6 +35,7 @@ import * as i9 from "@memberjunction/ng-container-directives";
|
|
|
35
35
|
import * as i10 from "@progress/kendo-angular-inputs";
|
|
36
36
|
import * as i11 from "@memberjunction/ng-entity-form-dialog";
|
|
37
37
|
import * as i12 from "@progress/kendo-angular-indicators";
|
|
38
|
+
import * as i13 from "@memberjunction/ng-entity-communications";
|
|
38
39
|
const _c0 = ["kendoGrid"];
|
|
39
40
|
const _c1 = ["excelExport"];
|
|
40
41
|
const _c2 = ["recordCompareRef"];
|
|
@@ -44,325 +45,361 @@ const _c5 = ["compareDialogContainer"];
|
|
|
44
45
|
const _c6 = ["entityFormDialog"];
|
|
45
46
|
const _c7 = () => ({ "text-align": "center", "vertical-align": "center" });
|
|
46
47
|
const _c8 = () => ({ "font-weight": "bold", "background-color": "white" });
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
i0.ɵɵ
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
const _c9 = a0 => ({ "list-selected": a0 });
|
|
49
|
+
function UserViewGridComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
+
i0.ɵɵelement(0, "kendo-loader");
|
|
51
|
+
} }
|
|
52
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
54
|
+
i0.ɵɵelementStart(0, "button", 21);
|
|
55
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.doCreateNewRecord()); });
|
|
56
|
+
i0.ɵɵelement(1, "span", 25);
|
|
52
57
|
i0.ɵɵtext(2);
|
|
53
58
|
i0.ɵɵelementEnd();
|
|
54
59
|
} if (rf & 2) {
|
|
55
|
-
const
|
|
60
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
56
61
|
i0.ɵɵadvance(2);
|
|
57
|
-
i0.ɵɵtextInterpolate1(" New ",
|
|
62
|
+
i0.ɵɵtextInterpolate1(" New ", ctx_r2.entityRecord == null ? null : ctx_r2.entityRecord.EntityInfo == null ? null : ctx_r2.entityRecord.EntityInfo.Name, " ");
|
|
58
63
|
} }
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
i0.ɵɵelementStart(0, "button",
|
|
62
|
-
i0.ɵɵlistener("click", function
|
|
63
|
-
i0.ɵɵelement(1, "span",
|
|
64
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
66
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
67
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.doCommunication()); });
|
|
68
|
+
i0.ɵɵelement(1, "span", 26);
|
|
64
69
|
i0.ɵɵelementEnd();
|
|
65
70
|
} }
|
|
66
|
-
function
|
|
67
|
-
const
|
|
68
|
-
i0.ɵɵelementStart(0, "button",
|
|
69
|
-
i0.ɵɵlistener("click", function
|
|
70
|
-
i0.ɵɵelement(1, "span",
|
|
71
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
73
|
+
i0.ɵɵelementStart(0, "button", 27);
|
|
74
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.RefreshFromSavedParams()); });
|
|
75
|
+
i0.ɵɵelement(1, "span", 28);
|
|
71
76
|
i0.ɵɵtext(2, " Refresh ");
|
|
72
77
|
i0.ɵɵelementEnd();
|
|
73
78
|
} }
|
|
74
|
-
function
|
|
75
|
-
const
|
|
76
|
-
i0.ɵɵtemplate(0,
|
|
77
|
-
i0.ɵɵelementStart(1, "button",
|
|
78
|
-
i0.ɵɵlistener("click", function
|
|
79
|
-
i0.ɵɵelement(2, "span",
|
|
79
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
81
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_0_Template, 3, 1, "button", 20);
|
|
82
|
+
i0.ɵɵelementStart(1, "button", 21);
|
|
83
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.doExcelExport()); });
|
|
84
|
+
i0.ɵɵelement(2, "span", 22);
|
|
80
85
|
i0.ɵɵtext(3, " Export to Excel ");
|
|
81
86
|
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵelementStart(4, "button",
|
|
83
|
-
i0.ɵɵlistener("click", function
|
|
87
|
+
i0.ɵɵelementStart(4, "button", 23);
|
|
88
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableCheckbox(false, "duplicate")); });
|
|
84
89
|
i0.ɵɵtext(5, " Search For Duplicates ");
|
|
85
90
|
i0.ɵɵelementEnd();
|
|
86
|
-
i0.ɵɵelementStart(6, "button",
|
|
87
|
-
i0.ɵɵlistener("click", function
|
|
91
|
+
i0.ɵɵelementStart(6, "button", 23);
|
|
92
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableCheckbox(false, "addToList")); });
|
|
88
93
|
i0.ɵɵtext(7, " Add To List ");
|
|
89
94
|
i0.ɵɵelementEnd();
|
|
90
|
-
i0.ɵɵelementStart(8, "button",
|
|
91
|
-
i0.ɵɵlistener("click", function
|
|
95
|
+
i0.ɵɵelementStart(8, "button", 23);
|
|
96
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableMergeOrCompare(false, "merge")); });
|
|
92
97
|
i0.ɵɵtext(9, " Merge ");
|
|
93
98
|
i0.ɵɵelementEnd();
|
|
94
|
-
i0.ɵɵelementStart(10, "button",
|
|
95
|
-
i0.ɵɵlistener("click", function
|
|
99
|
+
i0.ɵɵelementStart(10, "button", 23);
|
|
100
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableMergeOrCompare(false, "compare")); });
|
|
96
101
|
i0.ɵɵtext(11, " Compare ");
|
|
97
102
|
i0.ɵɵelementEnd();
|
|
98
|
-
i0.ɵɵtemplate(12,
|
|
103
|
+
i0.ɵɵtemplate(12, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_12_Template, 2, 0, "button", 19)(13, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Conditional_13_Template, 3, 0, "button", 24);
|
|
99
104
|
} if (rf & 2) {
|
|
100
|
-
const
|
|
101
|
-
i0.ɵɵconditional(
|
|
105
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
106
|
+
i0.ɵɵconditional(ctx_r2.EntityInfo && ctx_r2.ShowCreateNewRecordButton && ctx_r2.UserCanCreateNewRecord ? 0 : -1);
|
|
102
107
|
i0.ɵɵadvance(12);
|
|
103
|
-
i0.ɵɵconditional(
|
|
108
|
+
i0.ɵɵconditional(ctx_r2.ShowCommunicationButton && ctx_r2.EntitySupportsCommunication ? 12 : -1);
|
|
104
109
|
i0.ɵɵadvance();
|
|
105
|
-
i0.ɵɵconditional(
|
|
110
|
+
i0.ɵɵconditional(ctx_r2.showRefreshButton ? 13 : -1);
|
|
106
111
|
} }
|
|
107
|
-
function
|
|
108
|
-
const
|
|
109
|
-
i0.ɵɵelementStart(0, "button",
|
|
110
|
-
i0.ɵɵlistener("click", function
|
|
112
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
113
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
114
|
+
i0.ɵɵelementStart(0, "button", 29);
|
|
115
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableCheckbox(false, "duplicate")); });
|
|
111
116
|
i0.ɵɵtext(1, " Search For Duplicates ");
|
|
112
117
|
i0.ɵɵelementEnd();
|
|
113
118
|
} if (rf & 2) {
|
|
114
|
-
const
|
|
115
|
-
i0.ɵɵproperty("disabled",
|
|
119
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
120
|
+
i0.ɵɵproperty("disabled", ctx_r2.duplicateMode && ctx_r2.recordsToCompare.length < 2);
|
|
116
121
|
} }
|
|
117
|
-
function
|
|
118
|
-
const
|
|
119
|
-
i0.ɵɵelementStart(0, "button",
|
|
120
|
-
i0.ɵɵlistener("click", function
|
|
122
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
123
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
124
|
+
i0.ɵɵelementStart(0, "button", 29);
|
|
125
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableCheckbox(false, "addToList")); });
|
|
121
126
|
i0.ɵɵtext(1, " Add To List ");
|
|
122
127
|
i0.ɵɵelementEnd();
|
|
123
128
|
} if (rf & 2) {
|
|
124
|
-
const
|
|
125
|
-
i0.ɵɵproperty("disabled",
|
|
129
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
130
|
+
i0.ɵɵproperty("disabled", ctx_r2.addToListMode && ctx_r2.recordsToCompare.length === 0);
|
|
126
131
|
} }
|
|
127
|
-
function
|
|
128
|
-
const
|
|
129
|
-
i0.ɵɵelementStart(0, "button",
|
|
130
|
-
i0.ɵɵlistener("click", function
|
|
132
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
133
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
134
|
+
i0.ɵɵelementStart(0, "button", 29);
|
|
135
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableMergeOrCompare(false, "compare")); });
|
|
131
136
|
i0.ɵɵtext(1, " Compare ");
|
|
132
137
|
i0.ɵɵelementEnd();
|
|
133
138
|
} if (rf & 2) {
|
|
134
|
-
const
|
|
135
|
-
i0.ɵɵproperty("disabled",
|
|
139
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
140
|
+
i0.ɵɵproperty("disabled", ctx_r2.compareMode && ctx_r2.recordsToCompare.length < 2);
|
|
136
141
|
} }
|
|
137
|
-
function
|
|
138
|
-
const
|
|
139
|
-
i0.ɵɵelementStart(0, "button",
|
|
140
|
-
i0.ɵɵlistener("click", function
|
|
142
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
143
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
144
|
+
i0.ɵɵelementStart(0, "button", 29);
|
|
145
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableMergeOrCompare(false, "merge")); });
|
|
141
146
|
i0.ɵɵtext(1, " Merge ");
|
|
142
147
|
i0.ɵɵelementEnd();
|
|
143
148
|
} if (rf & 2) {
|
|
144
|
-
const
|
|
145
|
-
i0.ɵɵproperty("disabled",
|
|
149
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
150
|
+
i0.ɵɵproperty("disabled", ctx_r2.mergeMode && ctx_r2.recordsToCompare.length < 2);
|
|
146
151
|
} }
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
i0.ɵɵelementStart(0, "button",
|
|
150
|
-
i0.ɵɵlistener("click", function
|
|
152
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
153
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
154
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
155
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_Conditional_2_ng_template_2_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.enableCheckbox(true, "")); });
|
|
151
156
|
i0.ɵɵtext(1, " Cancel ");
|
|
152
157
|
i0.ɵɵelementEnd();
|
|
153
158
|
} }
|
|
154
|
-
function
|
|
155
|
-
i0.ɵɵtemplate(0,
|
|
159
|
+
function UserViewGridComponent_Conditional_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
160
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_0_Template, 14, 3)(1, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_1_Template, 2, 1, "button", 18)(2, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_2_Template, 2, 1, "button", 18)(3, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_3_Template, 2, 1, "button", 18)(4, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_4_Template, 2, 1, "button", 18)(5, UserViewGridComponent_Conditional_2_ng_template_2_Conditional_5_Template, 2, 0, "button", 19);
|
|
156
161
|
} if (rf & 2) {
|
|
157
|
-
const
|
|
158
|
-
i0.ɵɵconditional(!
|
|
162
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
163
|
+
i0.ɵɵconditional(!ctx_r2.anyModeEnabled ? 0 : -1);
|
|
159
164
|
i0.ɵɵadvance();
|
|
160
|
-
i0.ɵɵconditional(
|
|
165
|
+
i0.ɵɵconditional(ctx_r2.duplicateMode ? 1 : -1);
|
|
161
166
|
i0.ɵɵadvance();
|
|
162
|
-
i0.ɵɵconditional(
|
|
167
|
+
i0.ɵɵconditional(ctx_r2.addToListMode ? 2 : -1);
|
|
163
168
|
i0.ɵɵadvance();
|
|
164
|
-
i0.ɵɵconditional(
|
|
169
|
+
i0.ɵɵconditional(ctx_r2.compareMode ? 3 : -1);
|
|
165
170
|
i0.ɵɵadvance();
|
|
166
|
-
i0.ɵɵconditional(
|
|
171
|
+
i0.ɵɵconditional(ctx_r2.mergeMode ? 4 : -1);
|
|
167
172
|
i0.ɵɵadvance();
|
|
168
|
-
i0.ɵɵconditional(
|
|
173
|
+
i0.ɵɵconditional(ctx_r2.anyModeEnabled ? 5 : -1);
|
|
169
174
|
} }
|
|
170
|
-
function
|
|
171
|
-
i0.ɵɵelement(0, "kendo-grid-checkbox-column",
|
|
175
|
+
function UserViewGridComponent_Conditional_2_kendo_grid_checkbox_column_3_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
+
i0.ɵɵelement(0, "kendo-grid-checkbox-column", 30);
|
|
172
177
|
} if (rf & 2) {
|
|
173
178
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c7));
|
|
174
179
|
i0.ɵɵproperty("width", 50)("headerStyle", i0.ɵɵpureFunction0(5, _c8));
|
|
175
180
|
} }
|
|
176
|
-
function
|
|
181
|
+
function UserViewGridComponent_Conditional_2_kendo_grid_column_4_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
177
182
|
i0.ɵɵtext(0);
|
|
178
183
|
i0.ɵɵpipe(1, "number");
|
|
179
184
|
i0.ɵɵpipe(2, "number");
|
|
180
185
|
i0.ɵɵelement(3, "br");
|
|
181
|
-
i0.ɵɵelementStart(4, "span",
|
|
186
|
+
i0.ɵɵelementStart(4, "span", 33);
|
|
182
187
|
i0.ɵɵtext(5);
|
|
183
188
|
i0.ɵɵpipe(6, "number");
|
|
184
189
|
i0.ɵɵelementEnd();
|
|
185
190
|
} if (rf & 2) {
|
|
186
|
-
const
|
|
187
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3,
|
|
191
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
192
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3, ctx_r2.viewData.length), "", ctx_r2.totalRowCount > ctx_r2.viewData.length ? " of " + i0.ɵɵpipeBind1(2, 5, ctx_r2.totalRowCount) : " rows", "");
|
|
188
193
|
i0.ɵɵadvance(5);
|
|
189
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7,
|
|
194
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r2.viewExecutionTime, "1.2-2"), " seconds");
|
|
190
195
|
} }
|
|
191
|
-
function
|
|
192
|
-
i0.ɵɵtemplate(0,
|
|
196
|
+
function UserViewGridComponent_Conditional_2_kendo_grid_column_4_1_Template(rf, ctx) { if (rf & 1) {
|
|
197
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_Conditional_2_kendo_grid_column_4_1_ng_template_0_Template, 7, 10, "ng-template", 32);
|
|
193
198
|
} }
|
|
194
|
-
function
|
|
195
|
-
i0.ɵɵelementStart(0, "kendo-grid-column",
|
|
196
|
-
i0.ɵɵtemplate(1,
|
|
199
|
+
function UserViewGridComponent_Conditional_2_kendo_grid_column_4_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
+
i0.ɵɵelementStart(0, "kendo-grid-column", 31);
|
|
201
|
+
i0.ɵɵtemplate(1, UserViewGridComponent_Conditional_2_kendo_grid_column_4_1_Template, 1, 0, null, 8);
|
|
197
202
|
i0.ɵɵelementEnd();
|
|
198
203
|
} if (rf & 2) {
|
|
199
|
-
const
|
|
200
|
-
const
|
|
201
|
-
i0.ɵɵstyleMap(
|
|
202
|
-
i0.ɵɵproperty("field",
|
|
204
|
+
const item_r13 = ctx.$implicit;
|
|
205
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
206
|
+
i0.ɵɵstyleMap(ctx_r2.GetColumnCellStyle(item_r13));
|
|
207
|
+
i0.ɵɵproperty("field", item_r13.Name)("title", ctx_r2.GetColumnTitle(item_r13))("width", item_r13.width ? item_r13.width : 100)("editable", item_r13.EntityField.AllowUpdateAPI)("editor", ctx_r2.getEditor(item_r13.EntityField))("headerStyle", i0.ɵɵpureFunction0(9, _c8));
|
|
203
208
|
i0.ɵɵadvance();
|
|
204
|
-
i0.ɵɵproperty("ngIf",
|
|
209
|
+
i0.ɵɵproperty("ngIf", item_r13 === ctx_r2.visibleColumns[0]);
|
|
205
210
|
} }
|
|
206
|
-
function
|
|
207
|
-
i0.ɵɵelement(0, "kendo-excelexport-column",
|
|
211
|
+
function UserViewGridComponent_Conditional_2_kendo_excelexport_column_7_Template(rf, ctx) { if (rf & 1) {
|
|
212
|
+
i0.ɵɵelement(0, "kendo-excelexport-column", 34);
|
|
208
213
|
} if (rf & 2) {
|
|
209
|
-
const
|
|
210
|
-
i0.ɵɵproperty("field",
|
|
214
|
+
const exportCol_r14 = ctx.$implicit;
|
|
215
|
+
i0.ɵɵproperty("field", exportCol_r14.Name)("title", exportCol_r14.Name);
|
|
211
216
|
} }
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
i0.ɵɵelementStart(0, "
|
|
215
|
-
i0.ɵɵlistener("
|
|
217
|
+
function UserViewGridComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
218
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
219
|
+
i0.ɵɵelementStart(0, "kendo-grid", 12, 3);
|
|
220
|
+
i0.ɵɵlistener("pageChange", function UserViewGridComponent_Conditional_2_Template_kendo_grid_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.pageChange($event)); });
|
|
221
|
+
i0.ɵɵtwoWayListener("selectedKeysChange", function UserViewGridComponent_Conditional_2_Template_kendo_grid_selectedKeysChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.selectedKeys, $event) || (ctx_r2.selectedKeys = $event); return i0.ɵɵresetView($event); });
|
|
222
|
+
i0.ɵɵlistener("cellClick", function UserViewGridComponent_Conditional_2_Template_kendo_grid_cellClick_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.cellClickHandler($event)); })("cellClose", function UserViewGridComponent_Conditional_2_Template_kendo_grid_cellClose_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.cellCloseHandler($event)); })("columnReorder", function UserViewGridComponent_Conditional_2_Template_kendo_grid_columnReorder_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.columnReorder($event)); })("columnResize", function UserViewGridComponent_Conditional_2_Template_kendo_grid_columnResize_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.columnResize($event)); })("selectionChange", function UserViewGridComponent_Conditional_2_Template_kendo_grid_selectionChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectionChange($event)); })("sortChange", function UserViewGridComponent_Conditional_2_Template_kendo_grid_sortChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.sortChanged($event)); });
|
|
223
|
+
i0.ɵɵtemplate(2, UserViewGridComponent_Conditional_2_ng_template_2_Template, 6, 6, "ng-template", 13)(3, UserViewGridComponent_Conditional_2_kendo_grid_checkbox_column_3_Template, 1, 6, "kendo-grid-checkbox-column", 14)(4, UserViewGridComponent_Conditional_2_kendo_grid_column_4_Template, 2, 10, "kendo-grid-column", 15);
|
|
224
|
+
i0.ɵɵelementStart(5, "kendo-excelexport", 16, 4);
|
|
225
|
+
i0.ɵɵtemplate(7, UserViewGridComponent_Conditional_2_kendo_excelexport_column_7_Template, 1, 2, "kendo-excelexport-column", 17);
|
|
226
|
+
i0.ɵɵelementEnd()();
|
|
227
|
+
} if (rf & 2) {
|
|
228
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
229
|
+
i0.ɵɵproperty("resizable", true)("data", ctx_r2.gridView)("skip", ctx_r2.skip)("pageSize", ctx_r2.pageSize)("rowHeight", 36)("loading", ctx_r2.isLoading)("height", ctx_r2.gridHeight)("sortable", true)("sort", ctx_r2.sortSettings)("resizable", true)("reorderable", true)("selectable", true);
|
|
230
|
+
i0.ɵɵtwoWayProperty("selectedKeys", ctx_r2.selectedKeys);
|
|
231
|
+
i0.ɵɵadvance(3);
|
|
232
|
+
i0.ɵɵproperty("ngIf", ctx_r2.anyModeEnabled);
|
|
233
|
+
i0.ɵɵadvance();
|
|
234
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.visibleColumns);
|
|
235
|
+
i0.ɵɵadvance();
|
|
236
|
+
i0.ɵɵproperty("data", ctx_r2.exportData)("fileName", (ctx_r2._viewEntity ? ctx_r2._viewEntity.Get("Name") : ctx_r2._entityInfo == null ? null : ctx_r2._entityInfo.Name) + ".xlsx");
|
|
237
|
+
i0.ɵɵadvance(2);
|
|
238
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.exportColumns);
|
|
239
|
+
} }
|
|
240
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
241
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
242
|
+
i0.ɵɵelementStart(0, "button", 44);
|
|
243
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_div_5_kendo_window_2_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.closeCompareDialog("merge")); });
|
|
216
244
|
i0.ɵɵtext(1, " Merge Records ");
|
|
217
245
|
i0.ɵɵelementEnd();
|
|
218
246
|
} }
|
|
219
|
-
function
|
|
220
|
-
const
|
|
221
|
-
i0.ɵɵelementStart(0, "button",
|
|
222
|
-
i0.ɵɵlistener("click", function
|
|
247
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
248
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
249
|
+
i0.ɵɵelementStart(0, "button", 44);
|
|
250
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_div_5_kendo_window_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.findDuplicateRecords()); });
|
|
223
251
|
i0.ɵɵtext(1, " Search for Duplicates ");
|
|
224
252
|
i0.ɵɵelementEnd();
|
|
225
253
|
} }
|
|
226
|
-
function
|
|
227
|
-
const
|
|
228
|
-
i0.ɵɵelementStart(0, "button",
|
|
229
|
-
i0.ɵɵlistener("click", function
|
|
254
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
255
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
256
|
+
i0.ɵɵelementStart(0, "button", 45);
|
|
257
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_div_5_kendo_window_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.closeCompareDialog("close")); });
|
|
230
258
|
i0.ɵɵtext(1, " Close ");
|
|
231
259
|
i0.ɵɵelementEnd();
|
|
232
260
|
} }
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
i0.ɵɵelementStart(0, "button",
|
|
236
|
-
i0.ɵɵlistener("click", function
|
|
261
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
262
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
263
|
+
i0.ɵɵelementStart(0, "button", 45);
|
|
264
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_div_5_kendo_window_2_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.closeCompareDialog("cancel")); });
|
|
237
265
|
i0.ɵɵtext(1, " Cancel ");
|
|
238
266
|
i0.ɵɵelementEnd();
|
|
239
267
|
} }
|
|
240
|
-
function
|
|
241
|
-
const
|
|
242
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
243
|
-
i0.ɵɵlistener("close", function
|
|
244
|
-
i0.ɵɵelementStart(1, "p",
|
|
268
|
+
function UserViewGridComponent_div_5_kendo_window_2_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
|
|
269
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
270
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 46);
|
|
271
|
+
i0.ɵɵlistener("close", function UserViewGridComponent_div_5_kendo_window_2_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.closeConfirmMergeDialog("cancel")); });
|
|
272
|
+
i0.ɵɵelementStart(1, "p", 47);
|
|
245
273
|
i0.ɵɵtext(2, " Are you sure you want to merge the records? This action cannot be undone. If you select \"Yes\", the records will be merged and the duplicate records will be deleted. ");
|
|
246
274
|
i0.ɵɵelementEnd();
|
|
247
|
-
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button",
|
|
248
|
-
i0.ɵɵlistener("click", function
|
|
275
|
+
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button", 21);
|
|
276
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_div_5_kendo_window_2_kendo_dialog_9_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r20); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.closeConfirmMergeDialog("no")); });
|
|
249
277
|
i0.ɵɵtext(5, "No");
|
|
250
278
|
i0.ɵɵelementEnd();
|
|
251
|
-
i0.ɵɵelementStart(6, "button",
|
|
252
|
-
i0.ɵɵlistener("click", function
|
|
279
|
+
i0.ɵɵelementStart(6, "button", 48);
|
|
280
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_div_5_kendo_window_2_kendo_dialog_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r20); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.closeConfirmMergeDialog("yes")); });
|
|
253
281
|
i0.ɵɵtext(7, " Yes ");
|
|
254
282
|
i0.ɵɵelementEnd()()();
|
|
255
283
|
} if (rf & 2) {
|
|
256
284
|
i0.ɵɵproperty("minWidth", 250)("width", 450);
|
|
257
285
|
} }
|
|
258
|
-
function
|
|
259
|
-
const
|
|
260
|
-
i0.ɵɵelementStart(0, "kendo-window",
|
|
261
|
-
i0.ɵɵlistener("close", function
|
|
262
|
-
i0.ɵɵelementStart(1, "div",
|
|
263
|
-
i0.ɵɵelement(2, "mj-compare-records",
|
|
286
|
+
function UserViewGridComponent_div_5_kendo_window_2_Template(rf, ctx) { if (rf & 1) {
|
|
287
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
288
|
+
i0.ɵɵelementStart(0, "kendo-window", 37);
|
|
289
|
+
i0.ɵɵlistener("close", function UserViewGridComponent_div_5_kendo_window_2_Template_kendo_window_close_0_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.closeCompareDialog($event)); });
|
|
290
|
+
i0.ɵɵelementStart(1, "div", 38);
|
|
291
|
+
i0.ɵɵelement(2, "mj-compare-records", 39, 5);
|
|
264
292
|
i0.ɵɵelementEnd();
|
|
265
|
-
i0.ɵɵelementStart(4, "div",
|
|
266
|
-
i0.ɵɵtemplate(5,
|
|
293
|
+
i0.ɵɵelementStart(4, "div", 40);
|
|
294
|
+
i0.ɵɵtemplate(5, UserViewGridComponent_div_5_kendo_window_2_button_5_Template, 2, 0, "button", 41)(6, UserViewGridComponent_div_5_kendo_window_2_button_6_Template, 2, 0, "button", 41)(7, UserViewGridComponent_div_5_kendo_window_2_button_7_Template, 2, 0, "button", 42)(8, UserViewGridComponent_div_5_kendo_window_2_button_8_Template, 2, 0, "button", 42);
|
|
267
295
|
i0.ɵɵelementEnd();
|
|
268
|
-
i0.ɵɵtemplate(9,
|
|
296
|
+
i0.ɵɵtemplate(9, UserViewGridComponent_div_5_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog", 43);
|
|
269
297
|
i0.ɵɵelementEnd();
|
|
270
298
|
} if (rf & 2) {
|
|
271
|
-
const
|
|
299
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
272
300
|
i0.ɵɵproperty("minHeight", 300)("minWidth", 800)("top", 100)("left", 100)("width", 1200)("height", 675)("resizable", true);
|
|
273
301
|
i0.ɵɵadvance();
|
|
274
302
|
i0.ɵɵproperty("fillHeight", true)("bottomMargin", 100);
|
|
275
303
|
i0.ɵɵadvance();
|
|
276
|
-
i0.ɵɵproperty("entityName",
|
|
304
|
+
i0.ɵɵproperty("entityName", ctx_r2._entityInfo ? ctx_r2._entityInfo.Name : "")("recordsToCompare", ctx_r2.recordsToCompare)("visibleColumns", ctx_r2.visibleColumns)("selectionMode", ctx_r2.mergeMode ? true : false);
|
|
277
305
|
i0.ɵɵadvance(3);
|
|
278
|
-
i0.ɵɵproperty("ngIf",
|
|
306
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mergeMode);
|
|
279
307
|
i0.ɵɵadvance();
|
|
280
|
-
i0.ɵɵproperty("ngIf",
|
|
308
|
+
i0.ɵɵproperty("ngIf", ctx_r2.duplicateMode);
|
|
281
309
|
i0.ɵɵadvance();
|
|
282
|
-
i0.ɵɵproperty("ngIf",
|
|
310
|
+
i0.ɵɵproperty("ngIf", ctx_r2.compareMode);
|
|
283
311
|
i0.ɵɵadvance();
|
|
284
|
-
i0.ɵɵproperty("ngIf",
|
|
312
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mergeMode || ctx_r2.duplicateMode);
|
|
285
313
|
i0.ɵɵadvance();
|
|
286
|
-
i0.ɵɵproperty("ngIf",
|
|
314
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isConfirmDialogOpen);
|
|
287
315
|
} }
|
|
288
|
-
function
|
|
316
|
+
function UserViewGridComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
289
317
|
i0.ɵɵelementStart(0, "div");
|
|
290
|
-
i0.ɵɵelement(1, "div",
|
|
291
|
-
i0.ɵɵtemplate(2,
|
|
318
|
+
i0.ɵɵelement(1, "div", 35);
|
|
319
|
+
i0.ɵɵtemplate(2, UserViewGridComponent_div_5_kendo_window_2_Template, 10, 18, "kendo-window", 36);
|
|
292
320
|
i0.ɵɵelementEnd();
|
|
293
321
|
} if (rf & 2) {
|
|
294
|
-
const
|
|
322
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
295
323
|
i0.ɵɵadvance(2);
|
|
296
|
-
i0.ɵɵproperty("ngIf",
|
|
324
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isCompareDialogOpened);
|
|
297
325
|
} }
|
|
298
|
-
function
|
|
299
|
-
i0.ɵɵelement(0, "kendo-loader",
|
|
326
|
+
function UserViewGridComponent_kendo_dialog_6_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
327
|
+
i0.ɵɵelement(0, "kendo-loader", 55);
|
|
300
328
|
} }
|
|
301
|
-
function
|
|
302
|
-
const
|
|
303
|
-
i0.ɵɵelementStart(0, "button",
|
|
304
|
-
i0.ɵɵlistener("click", function
|
|
305
|
-
i0.ɵɵelement(1, "span",
|
|
329
|
+
function UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
330
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
331
|
+
i0.ɵɵelementStart(0, "button", 62);
|
|
332
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r22); const listEntity_r23 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.removeFromList(listEntity_r23)); });
|
|
333
|
+
i0.ɵɵelement(1, "span", 63);
|
|
306
334
|
i0.ɵɵtext(2, " Remove ");
|
|
307
335
|
i0.ɵɵelementEnd();
|
|
308
336
|
} }
|
|
309
|
-
function
|
|
310
|
-
const
|
|
311
|
-
i0.ɵɵelementStart(0, "button",
|
|
312
|
-
i0.ɵɵlistener("click", function
|
|
313
|
-
i0.ɵɵ
|
|
314
|
-
i0.ɵɵ
|
|
315
|
-
i0.ɵɵ
|
|
337
|
+
function UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
338
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
339
|
+
i0.ɵɵelementStart(0, "button", 64);
|
|
340
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const listEntity_r23 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.addToList(listEntity_r23)); });
|
|
341
|
+
i0.ɵɵelementStart(1, "div", 65);
|
|
342
|
+
i0.ɵɵelement(2, "span", 53);
|
|
343
|
+
i0.ɵɵtext(3, " Add ");
|
|
344
|
+
i0.ɵɵelementEnd()();
|
|
316
345
|
} }
|
|
317
|
-
function
|
|
318
|
-
i0.ɵɵelementStart(0, "div",
|
|
319
|
-
i0.ɵɵtext(
|
|
320
|
-
i0.ɵɵ
|
|
346
|
+
function UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
347
|
+
i0.ɵɵelementStart(0, "div", 58)(1, "div", 59);
|
|
348
|
+
i0.ɵɵtext(2);
|
|
349
|
+
i0.ɵɵelementEnd();
|
|
350
|
+
i0.ɵɵtemplate(3, UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Conditional_3_Template, 3, 0, "button", 60)(4, UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Conditional_4_Template, 4, 0, "button", 61);
|
|
321
351
|
i0.ɵɵelementEnd();
|
|
322
|
-
i0.ɵɵelement(
|
|
352
|
+
i0.ɵɵelement(5, "hr");
|
|
323
353
|
} if (rf & 2) {
|
|
324
|
-
const
|
|
325
|
-
const
|
|
354
|
+
const listEntity_r23 = ctx.$implicit;
|
|
355
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
356
|
+
i0.ɵɵadvance();
|
|
357
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c9, ctx_r2.selectedListEntities.includes(listEntity_r23)));
|
|
326
358
|
i0.ɵɵadvance();
|
|
327
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
359
|
+
i0.ɵɵtextInterpolate1(" ", listEntity_r23.Name, " ");
|
|
328
360
|
i0.ɵɵadvance();
|
|
329
|
-
i0.ɵɵconditional(
|
|
361
|
+
i0.ɵɵconditional(ctx_r2.selectedListEntities.includes(listEntity_r23) ? 3 : 4);
|
|
330
362
|
} }
|
|
331
|
-
function
|
|
332
|
-
i0.ɵɵrepeaterCreate(0,
|
|
363
|
+
function UserViewGridComponent_kendo_dialog_6_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
364
|
+
i0.ɵɵrepeaterCreate(0, UserViewGridComponent_kendo_dialog_6_Conditional_9_For_1_Template, 6, 5, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
333
365
|
} if (rf & 2) {
|
|
334
|
-
const
|
|
335
|
-
i0.ɵɵrepeater(
|
|
366
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
367
|
+
i0.ɵɵrepeater(ctx_r2.listEntities);
|
|
336
368
|
} }
|
|
337
|
-
function
|
|
338
|
-
const
|
|
339
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
340
|
-
i0.ɵɵlistener("close", function
|
|
341
|
-
i0.ɵɵelementStart(1, "div")(2, "kendo-textbox",
|
|
342
|
-
i0.ɵɵlistener("valueChange", function
|
|
369
|
+
function UserViewGridComponent_kendo_dialog_6_Template(rf, ctx) { if (rf & 1) {
|
|
370
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
371
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 49);
|
|
372
|
+
i0.ɵɵlistener("close", function UserViewGridComponent_kendo_dialog_6_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleAddToListDialog(false)); });
|
|
373
|
+
i0.ɵɵelementStart(1, "div", 50)(2, "kendo-textbox", 51);
|
|
374
|
+
i0.ɵɵlistener("valueChange", function UserViewGridComponent_kendo_dialog_6_Template_kendo_textbox_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onSearch($event)); });
|
|
375
|
+
i0.ɵɵelementEnd();
|
|
376
|
+
i0.ɵɵelementStart(3, "button", 52);
|
|
377
|
+
i0.ɵɵelement(4, "span", 53);
|
|
378
|
+
i0.ɵɵtext(5, " New List ");
|
|
343
379
|
i0.ɵɵelementEnd()();
|
|
344
|
-
i0.ɵɵ
|
|
345
|
-
i0.ɵɵ
|
|
380
|
+
i0.ɵɵelement(6, "hr");
|
|
381
|
+
i0.ɵɵelementStart(7, "div", 54);
|
|
382
|
+
i0.ɵɵtemplate(8, UserViewGridComponent_kendo_dialog_6_Conditional_8_Template, 1, 0, "kendo-loader", 55)(9, UserViewGridComponent_kendo_dialog_6_Conditional_9_Template, 2, 0);
|
|
346
383
|
i0.ɵɵelementEnd();
|
|
347
|
-
i0.ɵɵelementStart(
|
|
348
|
-
i0.ɵɵlistener("click", function
|
|
349
|
-
i0.ɵɵtext(
|
|
384
|
+
i0.ɵɵelementStart(10, "kendo-dialog-actions")(11, "button", 56);
|
|
385
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_6_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r21); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.addRecordsToSelectedLists()); });
|
|
386
|
+
i0.ɵɵtext(12, " Save ");
|
|
350
387
|
i0.ɵɵelementEnd();
|
|
351
|
-
i0.ɵɵelementStart(
|
|
352
|
-
i0.ɵɵlistener("click", function
|
|
353
|
-
i0.ɵɵtext(
|
|
388
|
+
i0.ɵɵelementStart(13, "button", 57);
|
|
389
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_6_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r21); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleAddToListDialog(false)); });
|
|
390
|
+
i0.ɵɵtext(14, " Cancel ");
|
|
354
391
|
i0.ɵɵelementEnd()()();
|
|
355
392
|
} if (rf & 2) {
|
|
356
|
-
const
|
|
357
|
-
i0.ɵɵproperty("minHeight",
|
|
393
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
394
|
+
i0.ɵɵproperty("minHeight", 500)("maxHeight", 500)("minWidth", 500)("maxWidth", 650);
|
|
358
395
|
i0.ɵɵadvance(2);
|
|
359
396
|
i0.ɵɵproperty("clearButton", true);
|
|
360
|
-
i0.ɵɵadvance(
|
|
361
|
-
i0.ɵɵconditional(
|
|
397
|
+
i0.ɵɵadvance(6);
|
|
398
|
+
i0.ɵɵconditional(ctx_r2.showAddToListLoader ? 8 : 9);
|
|
362
399
|
i0.ɵɵadvance(3);
|
|
363
|
-
i0.ɵɵproperty("disabled",
|
|
400
|
+
i0.ɵɵproperty("disabled", ctx_r2.showAddToListLoader);
|
|
364
401
|
i0.ɵɵadvance(2);
|
|
365
|
-
i0.ɵɵproperty("disabled",
|
|
402
|
+
i0.ɵɵproperty("disabled", ctx_r2.showAddToListLoader);
|
|
366
403
|
} }
|
|
367
404
|
export class UserViewGridComponent {
|
|
368
405
|
get anyModeEnabled() {
|
|
@@ -378,7 +415,7 @@ export class UserViewGridComponent {
|
|
|
378
415
|
if (this.Params && this.Params.ViewID)
|
|
379
416
|
return this.Params.ViewID;
|
|
380
417
|
else
|
|
381
|
-
return
|
|
418
|
+
return "";
|
|
382
419
|
}
|
|
383
420
|
/**
|
|
384
421
|
* This property is true if the user has the ability to create a new record which is a combination of the user-level permission coupled with the
|
|
@@ -516,6 +553,7 @@ export class UserViewGridComponent {
|
|
|
516
553
|
this.skip = 0;
|
|
517
554
|
this.pageSize = 40;
|
|
518
555
|
this.isLoading = false;
|
|
556
|
+
this.neverLoaded = true;
|
|
519
557
|
this.gridView = { data: [], total: 0 };
|
|
520
558
|
this.gridHeight = 750;
|
|
521
559
|
this._newGridState = {};
|
|
@@ -552,6 +590,7 @@ export class UserViewGridComponent {
|
|
|
552
590
|
// Export Functionality
|
|
553
591
|
this.exportColumns = [];
|
|
554
592
|
this.exportData = [];
|
|
593
|
+
this.showTemplatePreviewDialog = false;
|
|
555
594
|
this.entityFormDialog = null;
|
|
556
595
|
}
|
|
557
596
|
SaveView() {
|
|
@@ -650,8 +689,6 @@ export class UserViewGridComponent {
|
|
|
650
689
|
for (const col of args) {
|
|
651
690
|
const c = col.column;
|
|
652
691
|
const viewCol = this.viewColumns.find(vc => vc.Name === c.field);
|
|
653
|
-
const visCol = this.visibleColumns.find(vc => vc.Name === c.field);
|
|
654
|
-
const visCols = this.visibleColumns;
|
|
655
692
|
if (viewCol)
|
|
656
693
|
viewCol.width = col.newWidth;
|
|
657
694
|
}
|
|
@@ -741,9 +778,10 @@ export class UserViewGridComponent {
|
|
|
741
778
|
createFormGroup(dataItem) {
|
|
742
779
|
const groupFields = {};
|
|
743
780
|
this.viewColumns.forEach((vc) => {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
vc.EntityField.
|
|
781
|
+
var _a, _b, _c;
|
|
782
|
+
if (((_a = vc.EntityField) === null || _a === void 0 ? void 0 : _a.AllowUpdateAPI) &&
|
|
783
|
+
((_b = vc.EntityField) === null || _b === void 0 ? void 0 : _b.IsVirtual) === false &&
|
|
784
|
+
((_c = vc.EntityField) === null || _c === void 0 ? void 0 : _c.AllowUpdateInView))
|
|
747
785
|
groupFields[vc.Name] = dataItem[vc.Name];
|
|
748
786
|
});
|
|
749
787
|
return this.formBuilder.group(groupFields);
|
|
@@ -915,6 +953,7 @@ export class UserViewGridComponent {
|
|
|
915
953
|
if (params && (params.ViewEntity || params.ViewID || params.ViewName || (params.EntityName && params.ExtraFilter))) {
|
|
916
954
|
const startTime = new Date().getTime();
|
|
917
955
|
this.isLoading = true;
|
|
956
|
+
this.neverLoaded = false;
|
|
918
957
|
const md = new Metadata();
|
|
919
958
|
const rv = new RunView();
|
|
920
959
|
// get the view entity first so we can pass it in, otherwise it will end up getting loaded inside of RunView() which is inefficient as we need it too
|
|
@@ -930,7 +969,7 @@ export class UserViewGridComponent {
|
|
|
930
969
|
}
|
|
931
970
|
else if (!params.ViewEntity && (params.ViewID || params.ViewName)) {
|
|
932
971
|
// this is NOT a dyamic view as we got either the ViewID or ViewName, so we can get the ViewEntity
|
|
933
|
-
if (params.ViewID && params.ViewID > 0) {
|
|
972
|
+
if (params.ViewID && params.ViewID.length > 0) {
|
|
934
973
|
this._viewEntity = (yield ViewInfo.GetViewEntity(params.ViewID));
|
|
935
974
|
}
|
|
936
975
|
else if (params.ViewName) {
|
|
@@ -978,7 +1017,7 @@ export class UserViewGridComponent {
|
|
|
978
1017
|
});
|
|
979
1018
|
if (cols) {
|
|
980
1019
|
this.viewColumns = cols;
|
|
981
|
-
const tempCols = cols.filter(x => x.hidden === false).sort((a, b) => {
|
|
1020
|
+
const tempCols = cols.filter(x => x.hidden === false && x.EntityField /*make sure there is an entity field linked*/).sort((a, b) => {
|
|
982
1021
|
const aOrder = a.orderIndex != null ? a.orderIndex : 9999;
|
|
983
1022
|
const bOrder = b.orderIndex != null ? b.orderIndex : 9999;
|
|
984
1023
|
return aOrder - bOrder;
|
|
@@ -1014,15 +1053,17 @@ export class UserViewGridComponent {
|
|
|
1014
1053
|
});
|
|
1015
1054
|
}
|
|
1016
1055
|
GetColumnTitle(col) {
|
|
1056
|
+
var _a;
|
|
1017
1057
|
if (col.DisplayName)
|
|
1018
1058
|
return col.DisplayName; // use view's display name first if it exists
|
|
1019
|
-
else if (col.EntityField.DisplayName)
|
|
1059
|
+
else if ((_a = col.EntityField) === null || _a === void 0 ? void 0 : _a.DisplayName)
|
|
1020
1060
|
return col.EntityField.DisplayName; // then use entity display name, if that exist
|
|
1021
1061
|
else
|
|
1022
1062
|
return col.Name; // otherwise just use the column name
|
|
1023
1063
|
}
|
|
1024
1064
|
GetColumnCellStyle(col) {
|
|
1025
|
-
|
|
1065
|
+
var _a;
|
|
1066
|
+
switch ((_a = col.EntityField) === null || _a === void 0 ? void 0 : _a.Type.trim().toLowerCase()) {
|
|
1026
1067
|
case "money":
|
|
1027
1068
|
case 'decimal':
|
|
1028
1069
|
case 'real':
|
|
@@ -1254,26 +1295,35 @@ export class UserViewGridComponent {
|
|
|
1254
1295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1255
1296
|
if (!this.Params)
|
|
1256
1297
|
return;
|
|
1257
|
-
|
|
1258
|
-
msg
|
|
1259
|
-
msg.
|
|
1260
|
-
msg.
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
msg.
|
|
1269
|
-
msg.HTMLBodyTemplate =
|
|
1270
|
-
msg.SubjectTemplate = TemplateEngineBase.Instance.FindTemplate('Test Subject Template')
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1298
|
+
this.showTemplatePreviewDialog = true;
|
|
1299
|
+
// const msg: Message = new Message();
|
|
1300
|
+
// msg.From = "amith@bluecypress.io"
|
|
1301
|
+
// msg.Body = "This is a test message";
|
|
1302
|
+
// msg.Subject = "Test Subject";
|
|
1303
|
+
// const sendGrid = CommunicationEngineBase.Instance.Providers.find(p => p.Name === "SendGrid")
|
|
1304
|
+
// if (!sendGrid)
|
|
1305
|
+
// throw new Error("SendGrid provider not found");
|
|
1306
|
+
// const email = sendGrid.MessageTypes.find(mt => mt.Name === "Email");
|
|
1307
|
+
// if (!email)
|
|
1308
|
+
// throw new Error("Email message type not found");
|
|
1309
|
+
// msg.MessageType = email;
|
|
1310
|
+
// msg.HTMLBodyTemplate = TemplateEngineBase.Instance.FindTemplate('User/Roles Demo')
|
|
1311
|
+
// msg.SubjectTemplate = TemplateEngineBase.Instance.FindTemplate('Test Subject Template')
|
|
1312
|
+
// const commParams: EntityCommunicationParams = {
|
|
1313
|
+
// EntityID: this._entityInfo!.ID,
|
|
1314
|
+
// RunViewParams: this.Params,
|
|
1315
|
+
// ProviderName: "SendGrid",
|
|
1316
|
+
// ProviderMessageTypeName: "Email",
|
|
1317
|
+
// Message: msg,
|
|
1318
|
+
// PreviewOnly: true,
|
|
1319
|
+
// IncludeProcessedMessages: true
|
|
1320
|
+
// }
|
|
1321
|
+
// const result = await EntityCommunicationsEngineClient.Instance.RunEntityCommunication(commParams);
|
|
1322
|
+
// if (result && result.Success) {
|
|
1323
|
+
// this.CreateSimpleNotification("Communication Sent", 'success', 2000)
|
|
1324
|
+
// }
|
|
1325
|
+
// else
|
|
1326
|
+
// this.CreateSimpleNotification("Error sending communication", 'error', 5000)
|
|
1277
1327
|
});
|
|
1278
1328
|
}
|
|
1279
1329
|
get EntitySupportsCommunication() {
|
|
@@ -1350,7 +1400,7 @@ export class UserViewGridComponent {
|
|
|
1350
1400
|
const rv = new RunView();
|
|
1351
1401
|
const rvResult = yield rv.RunView({
|
|
1352
1402
|
EntityName: 'Lists',
|
|
1353
|
-
ExtraFilter: `UserID = ${md.CurrentUser.ID} AND EntityID = ${this._entityInfo.ID}`,
|
|
1403
|
+
ExtraFilter: `UserID = '${md.CurrentUser.ID}' AND EntityID = '${this._entityInfo.ID}'`,
|
|
1354
1404
|
ResultType: 'entity_object'
|
|
1355
1405
|
});
|
|
1356
1406
|
if (!rvResult.Success) {
|
|
@@ -1448,44 +1498,34 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1448
1498
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.analysisResults = _t.first);
|
|
1449
1499
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.compareDialogContainer = _t.first);
|
|
1450
1500
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityFormDialog = _t.first);
|
|
1451
|
-
} }, inputs: { Params: "Params", BottomMargin: "BottomMargin", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", NewRecordValues: "NewRecordValues", ShowCreateNewRecordButton: "ShowCreateNewRecordButton", ShowCommunicationButton: "ShowCommunicationButton", CreateRecordMode: "CreateRecordMode", AllowLoad: "AllowLoad" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls:
|
|
1501
|
+
} }, inputs: { Params: "Params", BottomMargin: "BottomMargin", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", NewRecordValues: "NewRecordValues", ShowCreateNewRecordButton: "ShowCreateNewRecordButton", ShowCommunicationButton: "ShowCommunicationButton", CreateRecordMode: "CreateRecordMode", AllowLoad: "AllowLoad" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 11, vars: 7, consts: [["compareDialogContainer", ""], ["entityFormDialog", ""], ["templatePreviewDialog", ""], ["kendoGrid", ""], ["excelExport", ""], ["recordCompareRef", ""], ["mjFillContainer", "", 1, "user-view-grid-wrap"], ["mjFillContainer", "", "scrollable", "virtual", "kendoGridSelectBy", "", 3, "resizable", "data", "skip", "pageSize", "rowHeight", "loading", "height", "sortable", "sort", "reorderable", "selectable", "selectedKeys"], [4, "ngIf"], ["class", "dialog-wrapper", "title", "Select List(s) To Add Record(s) To", 3, "minHeight", "maxHeight", "minWidth", "maxWidth", "close", 4, "ngIf"], ["Mode", "complete", 3, "Visible"], [3, "DialogClosed", "DialogVisible", "entityInfo", "runViewParams"], ["mjFillContainer", "", "scrollable", "virtual", "kendoGridSelectBy", "", 3, "pageChange", "selectedKeysChange", "cellClick", "cellClose", "columnReorder", "columnResize", "selectionChange", "sortChange", "resizable", "data", "skip", "pageSize", "rowHeight", "loading", "height", "sortable", "sort", "reorderable", "selectable", "selectedKeys"], ["kendoGridToolbarTemplate", ""], [3, "width", "headerStyle", "style", 4, "ngIf"], [3, "field", "title", "width", "editable", "editor", "headerStyle", "style", 4, "ngFor", "ngForOf"], [3, "data", "fileName"], [3, "field", "title", 4, "ngFor", "ngForOf"], ["kendoButton", "", 1, "k-button-solid-base", "list-button", 3, "disabled"], ["kendoButton", "", 1, "k-button-solid-base", "list-button"], ["kendoButton", ""], ["kendoButton", "", 3, "click"], [1, "fa-regular", "fa-file-excel"], ["kendoButton", "", 1, "k-button-solid-base", "list-button", 3, "click"], ["kendoButton", "", 1, "list-button"], [1, "fa-regular", "fa-plus"], [1, "fa-regular", "fa-envelope"], ["kendoButton", "", 1, "list-button", 3, "click"], [1, "fa-solid", "fa-arrows-rotate"], ["kendoButton", "", 1, "k-button-solid-base", "list-button", 3, "click", "disabled"], [3, "width", "headerStyle"], [3, "field", "title", "width", "editable", "editor", "headerStyle"], ["kendoGridFooterTemplate", ""], [2, "font-size", "smaller", "font-weight", "normal"], [3, "field", "title"], [1, "k-overlay"], ["title", "Compare Records", 3, "minHeight", "minWidth", "top", "left", "width", "height", "resizable", "close", 4, "ngIf"], ["title", "Compare Records", 3, "close", "minHeight", "minWidth", "top", "left", "width", "height", "resizable"], ["mjFillContainer", "", 3, "fillHeight", "bottomMargin"], [3, "entityName", "recordsToCompare", "visibleColumns", "selectionMode"], [1, "k-actions", "k-actions-end"], ["kendoButton", "", "themeColor", "primary", "type", "button", 3, "click", 4, "ngIf"], ["kendoButton", "", "type", "button", 3, "click", 4, "ngIf"], ["title", "Confirm Choice", 3, "minWidth", "width", "close", 4, "ngIf"], ["kendoButton", "", "themeColor", "primary", "type", "button", 3, "click"], ["kendoButton", "", "type", "button", 3, "click"], ["title", "Confirm Choice", 3, "close", "minWidth", "width"], [2, "margin", "30px", "text-align", "center"], ["kendoButton", "", "themeColor", "primary", 3, "click"], ["title", "Select List(s) To Add Record(s) To", 1, "dialog-wrapper", 3, "close", "minHeight", "maxHeight", "minWidth", "maxWidth"], [1, "search-header"], ["id", "listSearch", "placeholder", "Search Lists...", "kendoTextBox", "", 1, "search-bar", 3, "valueChange", "clearButton"], ["kendoButton", "", 1, "btn-no-border", "btn-outline"], [1, "fa-solid", "fa-plus"], [1, "overflow-y-scroll"], ["type", "converging-spinner"], ["kendoButton", "", "themeColor", "primary", 3, "click", "disabled"], ["kendoButton", "", 3, "click", "disabled"], [1, "list-item"], [1, "list-text", 3, "ngClass"], ["kendoButton", "", 1, "btn-no-border", "btn-selected"], ["kendoButton", "", 1, "btn-no-border"], ["kendoButton", "", 1, "btn-no-border", "btn-selected", 3, "click"], [1, "fa-solid", "fa-minus"], ["kendoButton", "", 1, "btn-no-border", 3, "click"], [1, "btn-margin-right"]], template: function UserViewGridComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1452
1502
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1453
|
-
i0.ɵɵelementStart(0, "div",
|
|
1454
|
-
i0.ɵɵ
|
|
1455
|
-
i0.ɵɵ
|
|
1456
|
-
i0.ɵɵ
|
|
1457
|
-
i0.ɵɵtemplate(3, UserViewGridComponent_ng_template_3_Template, 6, 6, "ng-template", 7)(4, UserViewGridComponent_kendo_grid_checkbox_column_4_Template, 1, 6, "kendo-grid-checkbox-column", 8)(5, UserViewGridComponent_kendo_grid_column_5_Template, 2, 10, "kendo-grid-column", 9);
|
|
1458
|
-
i0.ɵɵelementStart(6, "kendo-excelexport", 10, 1);
|
|
1459
|
-
i0.ɵɵtemplate(8, UserViewGridComponent_kendo_excelexport_column_8_Template, 1, 2, "kendo-excelexport-column", 11);
|
|
1460
|
-
i0.ɵɵelementEnd()();
|
|
1461
|
-
i0.ɵɵelementStart(9, "div", null, 2);
|
|
1462
|
-
i0.ɵɵtemplate(11, UserViewGridComponent_div_11_Template, 3, 1, "div", 12);
|
|
1503
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
1504
|
+
i0.ɵɵtemplate(1, UserViewGridComponent_Conditional_1_Template, 1, 0, "kendo-loader")(2, UserViewGridComponent_Conditional_2_Template, 8, 18, "kendo-grid", 7);
|
|
1505
|
+
i0.ɵɵelementStart(3, "div", null, 0);
|
|
1506
|
+
i0.ɵɵtemplate(5, UserViewGridComponent_div_5_Template, 3, 1, "div", 8);
|
|
1463
1507
|
i0.ɵɵelementEnd();
|
|
1464
|
-
i0.ɵɵtemplate(
|
|
1508
|
+
i0.ɵɵtemplate(6, UserViewGridComponent_kendo_dialog_6_Template, 15, 8, "kendo-dialog", 9);
|
|
1509
|
+
i0.ɵɵelementEnd();
|
|
1510
|
+
i0.ɵɵelement(7, "mj-entity-form-dialog", 10, 1);
|
|
1511
|
+
i0.ɵɵelementStart(9, "mj-entity-communications-preview-window", 11, 2);
|
|
1512
|
+
i0.ɵɵlistener("DialogClosed", function UserViewGridComponent_Template_mj_entity_communications_preview_window_DialogClosed_9_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.showTemplatePreviewDialog = false); });
|
|
1465
1513
|
i0.ɵɵelementEnd();
|
|
1466
|
-
i0.ɵɵelement(13, "mj-entity-form-dialog", 14, 3);
|
|
1467
1514
|
} if (rf & 2) {
|
|
1468
1515
|
i0.ɵɵadvance();
|
|
1469
|
-
i0.ɵɵ
|
|
1470
|
-
i0.ɵɵ
|
|
1471
|
-
i0.ɵɵadvance(3);
|
|
1472
|
-
i0.ɵɵproperty("ngIf", ctx.anyModeEnabled);
|
|
1473
|
-
i0.ɵɵadvance();
|
|
1474
|
-
i0.ɵɵproperty("ngForOf", ctx.visibleColumns);
|
|
1475
|
-
i0.ɵɵadvance();
|
|
1476
|
-
i0.ɵɵproperty("data", ctx.exportData)("fileName", (ctx._viewEntity ? ctx._viewEntity.Get("Name") : ctx._entityInfo == null ? null : ctx._entityInfo.Name) + ".xlsx");
|
|
1477
|
-
i0.ɵɵadvance(2);
|
|
1478
|
-
i0.ɵɵproperty("ngForOf", ctx.exportColumns);
|
|
1479
|
-
i0.ɵɵadvance(3);
|
|
1516
|
+
i0.ɵɵconditional(ctx.isLoading || !ctx.AllowLoad || ctx.neverLoaded ? 1 : 2);
|
|
1517
|
+
i0.ɵɵadvance(4);
|
|
1480
1518
|
i0.ɵɵproperty("ngIf", ctx.isCompareDialogOpened);
|
|
1481
1519
|
i0.ɵɵadvance();
|
|
1482
1520
|
i0.ɵɵproperty("ngIf", ctx.showAddToListDialog);
|
|
1483
1521
|
i0.ɵɵadvance();
|
|
1484
1522
|
i0.ɵɵproperty("Visible", ctx.showNewRecordDialog);
|
|
1485
|
-
|
|
1523
|
+
i0.ɵɵadvance(2);
|
|
1524
|
+
i0.ɵɵproperty("DialogVisible", ctx.showTemplatePreviewDialog)("entityInfo", ctx._entityInfo)("runViewParams", ctx.Params);
|
|
1525
|
+
} }, dependencies: [i3.NgClass, i3.NgForOf, i3.NgIf, i4.GridComponent, i4.ToolbarTemplateDirective, i4.SelectionDirective, i4.ColumnComponent, i4.FooterTemplateDirective, i4.CheckboxColumnComponent, i5.DialogComponent, i5.DialogActionsComponent, i5.WindowComponent, i6.ExcelExportComponent, i6.ColumnComponent, i7.ButtonComponent, i8.CompareRecordsComponent, i9.FillContainer, i10.TextBoxComponent, i11.EntityFormDialogComponent, i12.LoaderComponent, i13.EntityCommunicationsPreviewWindowComponent, i3.DecimalPipe], styles: [".user-view-grid-wrap[_ngcontent-%COMP%] {\n height: calc(100vh - 20px);\n}\n\n.user-view-grid-column-header[_ngcontent-%COMP%] {\n background-color: #fff;\n font-size: 20pt;\n font-weight: bold;\n}\n\n.title-wrapper[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 14px 0;\n border-bottom: 1px solid var(--med-gray);\n}\n .title-wrapper[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 24px;\n line-height: 28px;\n }\n .main-fav-wrapper[_ngcontent-%COMP%] {\n background: #fff;\n padding: 20px;\n }\n .filter-wrapper[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n gap: 14px;\n align-items: center;\n}\n .title-wrapper[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n font-size: 16px;\n background: transparent;\n border: none;\n box-sizing: border-box;\n padding-left: 40px;\n\n }\n .title-wrapper[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] {\n background: var(--light-shade);\n width: 360px;\n height: 44px;\n position: relative;\n border-radius: 10px;\n }\n .title-wrapper[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 12px;\n}\n.k-table-td[_ngcontent-%COMP%] {\n border-right: none !important;\n}.btn-cmn[_ngcontent-%COMP%] {\n width: 44px;\n height: 44px;\n min-width: 44px;\n background: transparent;\n border-radius: 8px;\n border: 1px solid var(--gray-color);\n}\n.btn-cmn.active[_ngcontent-%COMP%] {\n border: 1px solid var(--border-blue);\n}\n .title-wrapper .filter-wrapper .k-dropdown-button .k-button {\n border: 1px solid var(--gray-color);\n border-radius: 8px; padding: 10px 25px;\n background: var(--white-color);\n color: var(--sideNav);\n}\n .user-view-grid-wrap .k-grid-aria-root .k-grid-header .k-grid-header-table thead tr th {\n border-right: none;\n border-inline-start-width: 0;\n color: var(--thead-color);\n}\n .user-view-grid-wrap .k-grid-aria-root kendo-grid-list .k-grid-table tbody tr td { \n border-inline-start-width: 0;\n color: var(--tdata-color);\n font-weight: 500;\n border-bottom-width: 1px;\n} \n\n.overflow-y-scroll[_ngcontent-%COMP%] {\n overflow-y: auto;\n max-height: 300px;\n}\n\n.padding-bottom-small[_ngcontent-%COMP%] {\n padding-bottom: 10px;\n}\n\n.list-item[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n align-items: center;\n}\n\n.btn-no-border[_ngcontent-%COMP%] {\n border: none;\n background: none;\n color: var(--border-blue);\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n}\n\n.btn-selected[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n\n.list-text[_ngcontent-%COMP%] {\n font-size: large;\n}\n.list-selected[_ngcontent-%COMP%] {\n font-weight: bold;\n color: var(--border-blue);\n}\n\n.btn-margin-right[_ngcontent-%COMP%] {\n margin-right: 35px;\n}\n\n.divider[_ngcontent-%COMP%] {\n color: lightgray\n}\n\n.search-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n}\n\n.search-bar[_ngcontent-%COMP%] {\n width: 65%;\n padding-bottom: 10px;\n}\n\n.dialog-wrapper[_ngcontent-%COMP%] {\n padding: 15px 25px;\n}\n\n.btn-outline[_ngcontent-%COMP%] {\n border: 2px solid var(--border-blue);\n border-radius: 8px;\n padding: 5px 30px;\n\n background: none;\n color: var(--border-blue);\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n}"] });
|
|
1486
1526
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridComponent, [{
|
|
1487
1527
|
type: Component,
|
|
1488
|
-
args: [{ selector: 'mj-user-view-grid', template: "<div class=\"user-view-grid-wrap\" mjFillContainer>\n <kendo-grid #kendoGrid\n mjFillContainer\n [resizable]=\"true\"\n [data]=\"gridView\" \n [skip]=\"skip\"\n [pageSize]=\"pageSize\"\n scrollable=\"virtual\"\n [rowHeight]=\"36\"\n (pageChange)=\"pageChange($event)\"\n [loading]=\"isLoading\"\n [height]=\"gridHeight\"\n [sortable]=\"true\"\n [sort]=\"sortSettings\" \n [resizable]=\"true\"\n [reorderable]=\"true\"\n [selectable]=\"true\"\n kendoGridSelectBy\n [(selectedKeys)]=\"selectedKeys\"\n (cellClick)=\"cellClickHandler($event)\"\n (cellClose)=\"cellCloseHandler($event)\"\n (columnReorder)=\"columnReorder($event)\"\n (columnResize)=\"columnResize($event)\"\n (selectionChange)=\"selectionChange($event)\"\n (sortChange)=\"sortChanged($event)\"\n >\n <ng-template kendoGridToolbarTemplate>\n @if(!anyModeEnabled){\n @if(EntityInfo && ShowCreateNewRecordButton && UserCanCreateNewRecord) {\n <button kendoButton (click)=\"doCreateNewRecord()\" >\n <span class=\"fa-regular fa-plus\"></span>\n New {{entityRecord?.EntityInfo?.Name}}\n </button> \n }\n\n <button kendoButton (click)=\"doExcelExport()\" >\n <span class=\"fa-regular fa-file-excel\"></span>\n Export to Excel\n </button>\n <button (click)=\"enableCheckbox(false, 'duplicate')\" kendoButton class=\"k-button-solid-base list-button\">\n Search For Duplicates\n </button>\n <button (click)=\"enableCheckbox(false, 'addToList')\" kendoButton class=\"k-button-solid-base list-button\">\n Add To List\n </button>\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" kendoButton class=\"k-button-solid-base list-button\">\n Merge\n </button>\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" kendoButton class=\"k-button-solid-base list-button\">\n Compare\n </button>\n\n @if (ShowCommunicationButton && EntitySupportsCommunication) {\n <button (click)=\"doCommunication()\" kendoButton class=\"k-button-solid-base list-button\">\n <span class=\"fa-regular fa-envelope\"></span>\n </button> \n }\n\n @if(showRefreshButton){\n <button kendoButton class=\"list-button\" (click)=\"RefreshFromSavedParams()\">\n <span class=\"fa-solid fa-arrows-rotate\"></span>\n Refresh\n </button>\n }\n }\n @if(duplicateMode){\n <button (click)=\"enableCheckbox(false, 'duplicate')\" [disabled]=\"duplicateMode && recordsToCompare.length < 2\" kendoButton class=\"k-button-solid-base list-button\">\n Search For Duplicates\n </button>\n }\n @if(addToListMode){\n <button (click)=\"enableCheckbox(false, 'addToList')\" [disabled]=\"addToListMode && recordsToCompare.length === 0\" kendoButton class=\"k-button-solid-base list-button\">\n Add To List\n </button>\n }\n @if(compareMode){\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" [disabled]=\"compareMode && recordsToCompare.length < 2\" kendoButton class=\"k-button-solid-base list-button\">\n Compare\n </button>\n }\n @if(mergeMode){\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" [disabled]=\"mergeMode && recordsToCompare.length < 2\" kendoButton class=\"k-button-solid-base list-button\">\n Merge\n </button>\n }\n @if(anyModeEnabled){\n <button (click)=\"enableCheckbox(true, '')\" kendoButton class=\"k-button-solid-base list-button\">\n Cancel\n </button>\n }\n </ng-template>\n \n <kendo-grid-checkbox-column \n *ngIf=\"anyModeEnabled\" \n [width]=\"50\" \n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': 'white' }\" \n [style]=\"{'text-align': 'center', 'vertical-align': 'center'}\">\n </kendo-grid-checkbox-column>\n \n <kendo-grid-column \n *ngFor=\"let item of visibleColumns\" \n [field]=\"item.Name\" \n [title]=\"GetColumnTitle(item)\"\n [width]=\"item.width ? item.width : 100\"\n [editable]=\"item.EntityField.AllowUpdateAPI\"\n [editor]=\"getEditor(item.EntityField)\"\n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': 'white' }\"\n [style]=\"this.GetColumnCellStyle(item)\"\n >\n <ng-template *ngIf=\"item===visibleColumns[0]\" kendoGridFooterTemplate >\n {{this.viewData.length | number}}{{this.totalRowCount > this.viewData.length ? ' of ' + (this.totalRowCount | number) : ' rows'}}<br/><span style=\"font-size: smaller; font-weight: normal;\">{{viewExecutionTime | number:'1.2-2'}} seconds</span>\n </ng-template>\n </kendo-grid-column>\n \n <kendo-excelexport #excelExport [data]=\"exportData\" [fileName]=\"(_viewEntity ? _viewEntity.Get('Name') : _entityInfo?.Name) + '.xlsx'\">\n <kendo-excelexport-column *ngFor=\"let exportCol of exportColumns\" [field]=\"exportCol.Name\" [title]=\"exportCol.Name\">\n </kendo-excelexport-column>\n </kendo-excelexport>\n </kendo-grid>\n \n <div #compareDialogContainer>\n <div *ngIf=\"isCompareDialogOpened\">\n <div class=\"k-overlay\"></div>\n <kendo-window\n [minHeight]=\"300\"\n [minWidth]=\"800\"\n [top]=\"100\"\n [left]=\"100\"\n [width]=\"1200\"\n [height]=\"675\"\n [resizable]=\"true\"\n (close)=\"closeCompareDialog($event)\"\n title=\"Compare Records\"\n *ngIf=\"isCompareDialogOpened\"\n >\n <div mjFillContainer [fillHeight]=\"true\" [bottomMargin]=\"100\">\n <mj-compare-records\n #recordCompareRef\n [entityName]=\"_entityInfo ? _entityInfo.Name : ''\"\n [recordsToCompare]=\"recordsToCompare\" \n [visibleColumns]=\"visibleColumns\" \n [selectionMode]=\"mergeMode ? true : false\"\n >\n </mj-compare-records>\n </div>\n <div class=\"k-actions k-actions-end\">\n <button *ngIf=\"mergeMode\" kendoButton themeColor=\"primary\" type=\"button\" (click)=\"closeCompareDialog('merge')\">\n Merge Records\n </button>\n <button *ngIf=\"duplicateMode\" kendoButton themeColor=\"primary\" type=\"button\" (click)=\"findDuplicateRecords()\">\n Search for Duplicates\n </button>\n <button *ngIf=\"compareMode\" kendoButton type=\"button\" (click)=\"closeCompareDialog('close')\">\n Close\n </button>\n <button *ngIf=\"mergeMode || duplicateMode\" kendoButton type=\"button\" (click)=\"closeCompareDialog('cancel')\">\n Cancel\n </button>\n </div> \n <kendo-dialog\n title=\"Confirm Choice\"\n *ngIf=\"isConfirmDialogOpen\"\n (close)=\"closeConfirmMergeDialog('cancel')\"\n [minWidth]=\"250\"\n [width]=\"450\"\n >\n <p style=\"margin: 30px; text-align: center;\">\n Are you sure you want to merge the records? This action cannot be undone. If you select \"Yes\", the records will be merged and the duplicate records will be deleted.\n </p>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"closeConfirmMergeDialog('no')\">No</button>\n <button kendoButton (click)=\"closeConfirmMergeDialog('yes')\" themeColor=\"primary\">\n Yes\n </button>\n </kendo-dialog-actions>\n </kendo-dialog>\n </kendo-window>\n </div> \n </div>\n <kendo-dialog\n class=\"dialog-wrapper\"\n title=\"Select List(s) To Add Record\"\n *ngIf=\"showAddToListDialog\"\n (close)=\"toggleAddToListDialog(false)\"\n [minHeight]=\"450\"\n [maxHeight]=\"450\"\n [minWidth]=\"500\"\n [maxWidth]=\"650\"\n >\n <div>\n <kendo-textbox\n id=\"listSearch\"\n placeholder=\"Search Lists...\"\n kendoTextBox\n (valueChange)=\"onSearch($event)\"\n [clearButton]=\"true\"\n class=\"padding-bottom-small\"\n ></kendo-textbox>\n </div>\n <div class=\"overflow-y-scroll\">\n @if(showAddToListLoader){\n <kendo-loader type=\"converging-spinner\"></kendo-loader>\n }\n @else {\n @for(listEntity of listEntities; track listEntity){\n <div class=\"list-item\">\n {{listEntity.Name}}\n @if(selectedListEntities.includes(listEntity)){\n <button kendoButton (click)=\"removeFromList(listEntity)\">\n <span class=\"fa-regular fa-circle-minus\"></span>\n Remove\n </button>\n }\n @else {\n <button kendoButton (click)=\"addToList(listEntity)\">\n <span class=\"fa-regular fa-circle-plus\"></span>\n Add\n </button>\n }\n </div>\n <hr>\n }\n }\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"addRecordsToSelectedLists()\" [disabled]=\"showAddToListLoader\" themeColor=\"primary\">\n Save\n </button>\n <button kendoButton (click)=\"toggleAddToListDialog(false)\" [disabled]=\"showAddToListLoader\">\n Cancel\n </button>\n </kendo-dialog-actions>\n </kendo-dialog>\n</div>\n \n<!-- Entity Form Dialog Component here for future use as needed -->\n<mj-entity-form-dialog\n #entityFormDialog\n Mode=\"complete\"\n [Visible]=\"showNewRecordDialog\"\n></mj-entity-form-dialog>", styles: [".user-view-grid-wrap {\n height: calc(100vh - 20px);\n}\n\n.user-view-grid-column-header {\n background-color: #fff;\n font-size: 20pt;\n font-weight: bold;\n}\n\n.title-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 14px 0;\n border-bottom: 1px solid var(--med-gray);\n}\n .title-wrapper h4 {\n margin: 0;\n font-size: 24px;\n line-height: 28px;\n }\n .main-fav-wrapper {\n background: #fff;\n padding: 20px;\n }\n .filter-wrapper {\n display: flex;\n justify-content: flex-start;\n gap: 14px;\n align-items: center;\n}\n .title-wrapper .search input {\n width: 100%;\n height: 100%;\n font-size: 16px;\n background: transparent;\n border: none;\n box-sizing: border-box;\n padding-left: 40px;\n\n }\n .title-wrapper .search {\n background: var(--light-shade);\n width: 360px;\n height: 44px;\n position: relative;\n border-radius: 10px;\n }\n .title-wrapper .search svg {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 12px;\n}\n.k-table-td {\n border-right: none !important;\n}.btn-cmn {\n width: 44px;\n height: 44px;\n min-width: 44px;\n background: transparent;\n border-radius: 8px;\n border: 1px solid var(--gray-color);\n}\n.btn-cmn.active {\n border: 1px solid var(--border-blue);\n}\n::ng-deep .title-wrapper .filter-wrapper .k-dropdown-button .k-button {\n border: 1px solid var(--gray-color);\n border-radius: 8px; padding: 10px 25px;\n background: var(--white-color);\n color: var(--sideNav);\n}\n::ng-deep .user-view-grid-wrap .k-grid-aria-root .k-grid-header .k-grid-header-table thead tr th {\n border-right: none;\n border-inline-start-width: 0;\n color: var(--thead-color);\n}\n::ng-deep .user-view-grid-wrap .k-grid-aria-root kendo-grid-list .k-grid-table tbody tr td { \n border-inline-start-width: 0;\n color: var(--tdata-color);\n font-weight: 500;\n border-bottom-width: 1px;\n} \n\n.overflow-y-scroll {\n overflow-y: auto;\n max-height: 275px;\n}\n\n.padding-bottom-small {\n padding-bottom: 10px;\n}\n\n.list-item {\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n}"] }]
|
|
1528
|
+
args: [{ selector: 'mj-user-view-grid', template: "<div class=\"user-view-grid-wrap\" mjFillContainer>\n @if (isLoading || !AllowLoad || neverLoaded) {\n <kendo-loader></kendo-loader>\n }\n @else {\n <kendo-grid #kendoGrid\n mjFillContainer\n [resizable]=\"true\"\n [data]=\"gridView\" \n [skip]=\"skip\"\n [pageSize]=\"pageSize\"\n scrollable=\"virtual\"\n [rowHeight]=\"36\"\n (pageChange)=\"pageChange($event)\"\n [loading]=\"isLoading\"\n [height]=\"gridHeight\"\n [sortable]=\"true\"\n [sort]=\"sortSettings\" \n [resizable]=\"true\"\n [reorderable]=\"true\"\n [selectable]=\"true\"\n kendoGridSelectBy\n [(selectedKeys)]=\"selectedKeys\"\n (cellClick)=\"cellClickHandler($event)\"\n (cellClose)=\"cellCloseHandler($event)\"\n (columnReorder)=\"columnReorder($event)\"\n (columnResize)=\"columnResize($event)\"\n (selectionChange)=\"selectionChange($event)\"\n (sortChange)=\"sortChanged($event)\"\n >\n <ng-template kendoGridToolbarTemplate>\n @if(!anyModeEnabled){\n @if(EntityInfo && ShowCreateNewRecordButton && UserCanCreateNewRecord) {\n <button kendoButton (click)=\"doCreateNewRecord()\" >\n <span class=\"fa-regular fa-plus\"></span>\n New {{entityRecord?.EntityInfo?.Name}}\n </button> \n }\n\n <button kendoButton (click)=\"doExcelExport()\" >\n <span class=\"fa-regular fa-file-excel\"></span>\n Export to Excel\n </button>\n <button (click)=\"enableCheckbox(false, 'duplicate')\" kendoButton class=\"k-button-solid-base list-button\">\n Search For Duplicates\n </button>\n <button (click)=\"enableCheckbox(false, 'addToList')\" kendoButton class=\"k-button-solid-base list-button\">\n Add To List\n </button>\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" kendoButton class=\"k-button-solid-base list-button\">\n Merge\n </button>\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" kendoButton class=\"k-button-solid-base list-button\">\n Compare\n </button>\n\n @if (ShowCommunicationButton && EntitySupportsCommunication) {\n <button (click)=\"doCommunication()\" kendoButton class=\"k-button-solid-base list-button\">\n <span class=\"fa-regular fa-envelope\"></span>\n </button> \n }\n\n @if(showRefreshButton){\n <button kendoButton class=\"list-button\" (click)=\"RefreshFromSavedParams()\">\n <span class=\"fa-solid fa-arrows-rotate\"></span>\n Refresh\n </button>\n }\n }\n @if(duplicateMode){\n <button (click)=\"enableCheckbox(false, 'duplicate')\" [disabled]=\"duplicateMode && recordsToCompare.length < 2\" kendoButton class=\"k-button-solid-base list-button\">\n Search For Duplicates\n </button>\n }\n @if(addToListMode){\n <button (click)=\"enableCheckbox(false, 'addToList')\" [disabled]=\"addToListMode && recordsToCompare.length === 0\" kendoButton class=\"k-button-solid-base list-button\">\n Add To List\n </button>\n }\n @if(compareMode){\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" [disabled]=\"compareMode && recordsToCompare.length < 2\" kendoButton class=\"k-button-solid-base list-button\">\n Compare\n </button>\n }\n @if(mergeMode){\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" [disabled]=\"mergeMode && recordsToCompare.length < 2\" kendoButton class=\"k-button-solid-base list-button\">\n Merge\n </button>\n }\n @if(anyModeEnabled){\n <button (click)=\"enableCheckbox(true, '')\" kendoButton class=\"k-button-solid-base list-button\">\n Cancel\n </button>\n }\n </ng-template>\n \n <kendo-grid-checkbox-column \n *ngIf=\"anyModeEnabled\" \n [width]=\"50\" \n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': 'white' }\" \n [style]=\"{'text-align': 'center', 'vertical-align': 'center'}\">\n </kendo-grid-checkbox-column>\n \n <kendo-grid-column \n *ngFor=\"let item of visibleColumns\" \n [field]=\"item.Name\" \n [title]=\"GetColumnTitle(item)\"\n [width]=\"item.width ? item.width : 100\"\n [editable]=\"item.EntityField.AllowUpdateAPI\"\n [editor]=\"getEditor(item.EntityField)\"\n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': 'white' }\"\n [style]=\"this.GetColumnCellStyle(item)\"\n >\n <ng-template *ngIf=\"item===visibleColumns[0]\" kendoGridFooterTemplate >\n {{this.viewData.length | number}}{{this.totalRowCount > this.viewData.length ? ' of ' + (this.totalRowCount | number) : ' rows'}}<br/><span style=\"font-size: smaller; font-weight: normal;\">{{viewExecutionTime | number:'1.2-2'}} seconds</span>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-excelexport #excelExport [data]=\"exportData\" [fileName]=\"(_viewEntity ? _viewEntity.Get('Name') : _entityInfo?.Name) + '.xlsx'\">\n <kendo-excelexport-column *ngFor=\"let exportCol of exportColumns\" [field]=\"exportCol.Name\" [title]=\"exportCol.Name\">\n </kendo-excelexport-column>\n </kendo-excelexport>\n </kendo-grid>\n }\n\n \n <div #compareDialogContainer>\n <div *ngIf=\"isCompareDialogOpened\">\n <div class=\"k-overlay\"></div>\n <kendo-window\n [minHeight]=\"300\"\n [minWidth]=\"800\"\n [top]=\"100\"\n [left]=\"100\"\n [width]=\"1200\"\n [height]=\"675\"\n [resizable]=\"true\"\n (close)=\"closeCompareDialog($event)\"\n title=\"Compare Records\"\n *ngIf=\"isCompareDialogOpened\"\n >\n <div mjFillContainer [fillHeight]=\"true\" [bottomMargin]=\"100\">\n <mj-compare-records\n #recordCompareRef\n [entityName]=\"_entityInfo ? _entityInfo.Name : ''\"\n [recordsToCompare]=\"recordsToCompare\" \n [visibleColumns]=\"visibleColumns\" \n [selectionMode]=\"mergeMode ? true : false\"\n >\n </mj-compare-records>\n </div>\n <div class=\"k-actions k-actions-end\">\n <button *ngIf=\"mergeMode\" kendoButton themeColor=\"primary\" type=\"button\" (click)=\"closeCompareDialog('merge')\">\n Merge Records\n </button>\n <button *ngIf=\"duplicateMode\" kendoButton themeColor=\"primary\" type=\"button\" (click)=\"findDuplicateRecords()\">\n Search for Duplicates\n </button>\n <button *ngIf=\"compareMode\" kendoButton type=\"button\" (click)=\"closeCompareDialog('close')\">\n Close\n </button>\n <button *ngIf=\"mergeMode || duplicateMode\" kendoButton type=\"button\" (click)=\"closeCompareDialog('cancel')\">\n Cancel\n </button>\n </div> \n <kendo-dialog\n title=\"Confirm Choice\"\n *ngIf=\"isConfirmDialogOpen\"\n (close)=\"closeConfirmMergeDialog('cancel')\"\n [minWidth]=\"250\"\n [width]=\"450\"\n >\n <p style=\"margin: 30px; text-align: center;\">\n Are you sure you want to merge the records? This action cannot be undone. If you select \"Yes\", the records will be merged and the duplicate records will be deleted.\n </p>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"closeConfirmMergeDialog('no')\">No</button>\n <button kendoButton (click)=\"closeConfirmMergeDialog('yes')\" themeColor=\"primary\">\n Yes\n </button>\n </kendo-dialog-actions>\n </kendo-dialog>\n </kendo-window>\n </div> \n </div>\n <kendo-dialog\n class=\"dialog-wrapper\"\n title=\"Select List(s) To Add Record(s) To\"\n *ngIf=\"showAddToListDialog\"\n (close)=\"toggleAddToListDialog(false)\"\n [minHeight]=\"500\"\n [maxHeight]=\"500\"\n [minWidth]=\"500\"\n [maxWidth]=\"650\"\n >\n <div class=\"search-header\">\n <kendo-textbox\n id=\"listSearch\"\n placeholder=\"Search Lists...\"\n kendoTextBox\n (valueChange)=\"onSearch($event)\"\n [clearButton]=\"true\"\n class=\"search-bar\"\n ></kendo-textbox>\n <button kendoButton class=\"btn-no-border btn-outline\">\n <span class=\"fa-solid fa-plus\"></span>\n New List\n </button>\n </div>\n <hr>\n <div class=\"overflow-y-scroll\">\n @if(showAddToListLoader){\n <kendo-loader type=\"converging-spinner\"></kendo-loader>\n }\n @else {\n @for(listEntity of listEntities; track listEntity){\n <div class=\"list-item\">\n <div class=\"list-text\" [ngClass]=\"{'list-selected': selectedListEntities.includes(listEntity)}\">\n {{listEntity.Name}}\n </div>\n @if(selectedListEntities.includes(listEntity)){\n <button kendoButton class=\"btn-no-border btn-selected\" (click)=\"removeFromList(listEntity)\">\n <span class=\"fa-solid fa-minus\"></span>\n Remove\n </button>\n }\n @else {\n <button kendoButton class=\"btn-no-border\" (click)=\"addToList(listEntity)\">\n <div class=\"btn-margin-right\">\n <span class=\"fa-solid fa-plus\"></span>\n Add\n </div>\n </button>\n }\n </div>\n <hr>\n }\n }\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"addRecordsToSelectedLists()\" [disabled]=\"showAddToListLoader\" themeColor=\"primary\">\n Save\n </button>\n <button kendoButton (click)=\"toggleAddToListDialog(false)\" [disabled]=\"showAddToListLoader\">\n Cancel\n </button>\n </kendo-dialog-actions>\n </kendo-dialog>\n</div>\n \n<!-- Entity Form Dialog Component here for future use as needed -->\n<mj-entity-form-dialog\n #entityFormDialog\n Mode=\"complete\"\n [Visible]=\"showNewRecordDialog\"\n></mj-entity-form-dialog>\n\n\n<mj-entity-communications-preview-window \n #templatePreviewDialog\n [DialogVisible]=\"showTemplatePreviewDialog\"\n (DialogClosed)=\"showTemplatePreviewDialog = false\"\n [entityInfo]=\"_entityInfo\"\n [runViewParams]=\"Params\"\n>\n\n</mj-entity-communications-preview-window> \n", styles: [".user-view-grid-wrap {\n height: calc(100vh - 20px);\n}\n\n.user-view-grid-column-header {\n background-color: #fff;\n font-size: 20pt;\n font-weight: bold;\n}\n\n.title-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 14px 0;\n border-bottom: 1px solid var(--med-gray);\n}\n .title-wrapper h4 {\n margin: 0;\n font-size: 24px;\n line-height: 28px;\n }\n .main-fav-wrapper {\n background: #fff;\n padding: 20px;\n }\n .filter-wrapper {\n display: flex;\n justify-content: flex-start;\n gap: 14px;\n align-items: center;\n}\n .title-wrapper .search input {\n width: 100%;\n height: 100%;\n font-size: 16px;\n background: transparent;\n border: none;\n box-sizing: border-box;\n padding-left: 40px;\n\n }\n .title-wrapper .search {\n background: var(--light-shade);\n width: 360px;\n height: 44px;\n position: relative;\n border-radius: 10px;\n }\n .title-wrapper .search svg {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 12px;\n}\n.k-table-td {\n border-right: none !important;\n}.btn-cmn {\n width: 44px;\n height: 44px;\n min-width: 44px;\n background: transparent;\n border-radius: 8px;\n border: 1px solid var(--gray-color);\n}\n.btn-cmn.active {\n border: 1px solid var(--border-blue);\n}\n::ng-deep .title-wrapper .filter-wrapper .k-dropdown-button .k-button {\n border: 1px solid var(--gray-color);\n border-radius: 8px; padding: 10px 25px;\n background: var(--white-color);\n color: var(--sideNav);\n}\n::ng-deep .user-view-grid-wrap .k-grid-aria-root .k-grid-header .k-grid-header-table thead tr th {\n border-right: none;\n border-inline-start-width: 0;\n color: var(--thead-color);\n}\n::ng-deep .user-view-grid-wrap .k-grid-aria-root kendo-grid-list .k-grid-table tbody tr td { \n border-inline-start-width: 0;\n color: var(--tdata-color);\n font-weight: 500;\n border-bottom-width: 1px;\n} \n\n.overflow-y-scroll {\n overflow-y: auto;\n max-height: 300px;\n}\n\n.padding-bottom-small {\n padding-bottom: 10px;\n}\n\n.list-item {\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n align-items: center;\n}\n\n.btn-no-border {\n border: none;\n background: none;\n color: var(--border-blue);\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n}\n\n.btn-selected {\n font-weight: bold;\n}\n\n.list-text {\n font-size: large;\n}\n.list-selected {\n font-weight: bold;\n color: var(--border-blue);\n}\n\n.btn-margin-right {\n margin-right: 35px;\n}\n\n.divider {\n color: lightgray\n}\n\n.search-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n}\n\n.search-bar {\n width: 65%;\n padding-bottom: 10px;\n}\n\n.dialog-wrapper {\n padding: 15px 25px;\n}\n\n.btn-outline {\n border: 2px solid var(--border-blue);\n border-radius: 8px;\n padding: 5px 30px;\n\n background: none;\n color: var(--border-blue);\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n}"] }]
|
|
1489
1529
|
}], () => [{ type: i0.ElementRef }, { type: i1.FormBuilder }, { type: i2.Router }, { type: i0.Renderer2 }], { Params: [{
|
|
1490
1530
|
type: Input
|
|
1491
1531
|
}], BottomMargin: [{
|
|
@@ -1535,4 +1575,4 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1535
1575
|
type: ViewChild,
|
|
1536
1576
|
args: ['entityFormDialog']
|
|
1537
1577
|
}] }); })();
|
|
1538
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src/lib/ng-user-view-grid.component.ts", lineNumber:
|
|
1578
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src/lib/ng-user-view-grid.component.ts", lineNumber: 51 }); })();
|
package/dist/module.d.ts
CHANGED
|
@@ -13,9 +13,10 @@ import * as i11 from "@progress/kendo-angular-layout";
|
|
|
13
13
|
import * as i12 from "@progress/kendo-angular-inputs";
|
|
14
14
|
import * as i13 from "@memberjunction/ng-entity-form-dialog";
|
|
15
15
|
import * as i14 from "@progress/kendo-angular-indicators";
|
|
16
|
+
import * as i15 from "@memberjunction/ng-entity-communications";
|
|
16
17
|
export declare class UserViewGridModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.RouterModule, typeof i5.GridModule, typeof i6.DialogsModule, typeof i7.ExcelExportModule, typeof i8.ButtonsModule, typeof i9.CompareRecordsModule, typeof i10.ContainerDirectivesModule, typeof i11.LayoutModule, typeof i12.InputsModule, typeof i13.EntityFormDialogModule, typeof i14.IndicatorsModule], [typeof i1.UserViewGridComponent]>;
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.RouterModule, typeof i5.GridModule, typeof i6.DialogsModule, typeof i7.ExcelExportModule, typeof i8.ButtonsModule, typeof i9.CompareRecordsModule, typeof i10.ContainerDirectivesModule, typeof i11.LayoutModule, typeof i12.InputsModule, typeof i13.EntityFormDialogModule, typeof i14.IndicatorsModule, typeof i15.EntityCommunicationsModule], [typeof i1.UserViewGridComponent]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<UserViewGridModule>;
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=module.d.ts.map
|
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqBA,qBAyBa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAAI"}
|
package/dist/module.js
CHANGED
|
@@ -14,6 +14,7 @@ import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
|
|
|
14
14
|
import { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';
|
|
15
15
|
import { UserViewGridComponent } from './lib/ng-user-view-grid.component';
|
|
16
16
|
import { EntityFormDialogModule } from '@memberjunction/ng-entity-form-dialog';
|
|
17
|
+
import { EntityCommunicationsModule } from '@memberjunction/ng-entity-communications';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export class UserViewGridModule {
|
|
19
20
|
}
|
|
@@ -32,7 +33,8 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
|
|
|
32
33
|
LayoutModule,
|
|
33
34
|
InputsModule,
|
|
34
35
|
EntityFormDialogModule,
|
|
35
|
-
IndicatorsModule
|
|
36
|
+
IndicatorsModule,
|
|
37
|
+
EntityCommunicationsModule] });
|
|
36
38
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridModule, [{
|
|
37
39
|
type: NgModule,
|
|
38
40
|
args: [{
|
|
@@ -53,7 +55,8 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
|
|
|
53
55
|
LayoutModule,
|
|
54
56
|
InputsModule,
|
|
55
57
|
EntityFormDialogModule,
|
|
56
|
-
IndicatorsModule
|
|
58
|
+
IndicatorsModule,
|
|
59
|
+
EntityCommunicationsModule
|
|
57
60
|
],
|
|
58
61
|
exports: [
|
|
59
62
|
UserViewGridComponent
|
|
@@ -73,4 +76,5 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
|
|
|
73
76
|
LayoutModule,
|
|
74
77
|
InputsModule,
|
|
75
78
|
EntityFormDialogModule,
|
|
76
|
-
IndicatorsModule
|
|
79
|
+
IndicatorsModule,
|
|
80
|
+
EntityCommunicationsModule], exports: [UserViewGridComponent] }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-user-view-grid",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "MemberJunction: Angular Grid to display dynamic and saved user views for any entity in MemberJunction.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,15 +25,16 @@
|
|
|
25
25
|
"@angular/router": "18.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/core-entities": "1.
|
|
29
|
-
"@memberjunction/global": "1.
|
|
30
|
-
"@memberjunction/core": "1.
|
|
31
|
-
"@memberjunction/ng-shared": "1.
|
|
32
|
-
"@memberjunction/ng-entity-form-dialog": "1.
|
|
33
|
-
"@memberjunction/ng-compare-records": "1.
|
|
34
|
-
"@memberjunction/ng-container-directives": "1.
|
|
35
|
-
"@memberjunction/entity-communications-client": "1.
|
|
36
|
-
"@memberjunction/ng-
|
|
28
|
+
"@memberjunction/core-entities": "2.1.1",
|
|
29
|
+
"@memberjunction/global": "2.1.1",
|
|
30
|
+
"@memberjunction/core": "2.1.1",
|
|
31
|
+
"@memberjunction/ng-shared": "2.1.1",
|
|
32
|
+
"@memberjunction/ng-entity-form-dialog": "2.1.1",
|
|
33
|
+
"@memberjunction/ng-compare-records": "2.1.1",
|
|
34
|
+
"@memberjunction/ng-container-directives": "2.1.1",
|
|
35
|
+
"@memberjunction/entity-communications-client": "2.1.1",
|
|
36
|
+
"@memberjunction/ng-entity-communications": "2.1.1",
|
|
37
|
+
"@memberjunction/ng-base-types": "2.1.1",
|
|
37
38
|
"@progress/kendo-angular-grid": "16.2.0",
|
|
38
39
|
"@progress/kendo-angular-layout": "16.2.0",
|
|
39
40
|
"@progress/kendo-angular-inputs": "16.2.0",
|