@memberjunction/ng-user-view-grid 2.0.0 → 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.
|
@@ -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;
|
|
@@ -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,MA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,2BAA2B,IAAI,OAAO,CAIhD;IAG8B,gBAAgB,EAAE,yBAAyB,GAAG,IAAI,CAAQ;IAEzF;;;;OAIG;IACU,iBAAiB;IAsCjB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBnD,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjC,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhD,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAKrD,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAmChD,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAKzC,OAAO,CAAC,mBAAmB;YASb,MAAM;yCArqCT,qBAAqB;2CAArB,qBAAqB;CAgrCjC"}
|
|
@@ -46,334 +46,360 @@ const _c6 = ["entityFormDialog"];
|
|
|
46
46
|
const _c7 = () => ({ "text-align": "center", "vertical-align": "center" });
|
|
47
47
|
const _c8 = () => ({ "font-weight": "bold", "background-color": "white" });
|
|
48
48
|
const _c9 = a0 => ({ "list-selected": a0 });
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
i0.ɵɵ
|
|
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);
|
|
54
57
|
i0.ɵɵtext(2);
|
|
55
58
|
i0.ɵɵelementEnd();
|
|
56
59
|
} if (rf & 2) {
|
|
57
|
-
const
|
|
60
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
58
61
|
i0.ɵɵadvance(2);
|
|
59
|
-
i0.ɵɵtextInterpolate1(" New ",
|
|
62
|
+
i0.ɵɵtextInterpolate1(" New ", ctx_r2.entityRecord == null ? null : ctx_r2.entityRecord.EntityInfo == null ? null : ctx_r2.entityRecord.EntityInfo.Name, " ");
|
|
60
63
|
} }
|
|
61
|
-
function
|
|
62
|
-
const
|
|
63
|
-
i0.ɵɵelementStart(0, "button",
|
|
64
|
-
i0.ɵɵlistener("click", function
|
|
65
|
-
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);
|
|
66
69
|
i0.ɵɵelementEnd();
|
|
67
70
|
} }
|
|
68
|
-
function
|
|
69
|
-
const
|
|
70
|
-
i0.ɵɵelementStart(0, "button",
|
|
71
|
-
i0.ɵɵlistener("click", function
|
|
72
|
-
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);
|
|
73
76
|
i0.ɵɵtext(2, " Refresh ");
|
|
74
77
|
i0.ɵɵelementEnd();
|
|
75
78
|
} }
|
|
76
|
-
function
|
|
77
|
-
const
|
|
78
|
-
i0.ɵɵtemplate(0,
|
|
79
|
-
i0.ɵɵelementStart(1, "button",
|
|
80
|
-
i0.ɵɵlistener("click", function
|
|
81
|
-
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);
|
|
82
85
|
i0.ɵɵtext(3, " Export to Excel ");
|
|
83
86
|
i0.ɵɵelementEnd();
|
|
84
|
-
i0.ɵɵelementStart(4, "button",
|
|
85
|
-
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")); });
|
|
86
89
|
i0.ɵɵtext(5, " Search For Duplicates ");
|
|
87
90
|
i0.ɵɵelementEnd();
|
|
88
|
-
i0.ɵɵelementStart(6, "button",
|
|
89
|
-
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")); });
|
|
90
93
|
i0.ɵɵtext(7, " Add To List ");
|
|
91
94
|
i0.ɵɵelementEnd();
|
|
92
|
-
i0.ɵɵelementStart(8, "button",
|
|
93
|
-
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")); });
|
|
94
97
|
i0.ɵɵtext(9, " Merge ");
|
|
95
98
|
i0.ɵɵelementEnd();
|
|
96
|
-
i0.ɵɵelementStart(10, "button",
|
|
97
|
-
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")); });
|
|
98
101
|
i0.ɵɵtext(11, " Compare ");
|
|
99
102
|
i0.ɵɵelementEnd();
|
|
100
|
-
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);
|
|
101
104
|
} if (rf & 2) {
|
|
102
|
-
const
|
|
103
|
-
i0.ɵɵconditional(
|
|
105
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
106
|
+
i0.ɵɵconditional(ctx_r2.EntityInfo && ctx_r2.ShowCreateNewRecordButton && ctx_r2.UserCanCreateNewRecord ? 0 : -1);
|
|
104
107
|
i0.ɵɵadvance(12);
|
|
105
|
-
i0.ɵɵconditional(
|
|
108
|
+
i0.ɵɵconditional(ctx_r2.ShowCommunicationButton && ctx_r2.EntitySupportsCommunication ? 12 : -1);
|
|
106
109
|
i0.ɵɵadvance();
|
|
107
|
-
i0.ɵɵconditional(
|
|
110
|
+
i0.ɵɵconditional(ctx_r2.showRefreshButton ? 13 : -1);
|
|
108
111
|
} }
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
i0.ɵɵelementStart(0, "button",
|
|
112
|
-
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")); });
|
|
113
116
|
i0.ɵɵtext(1, " Search For Duplicates ");
|
|
114
117
|
i0.ɵɵelementEnd();
|
|
115
118
|
} if (rf & 2) {
|
|
116
|
-
const
|
|
117
|
-
i0.ɵɵproperty("disabled",
|
|
119
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
120
|
+
i0.ɵɵproperty("disabled", ctx_r2.duplicateMode && ctx_r2.recordsToCompare.length < 2);
|
|
118
121
|
} }
|
|
119
|
-
function
|
|
120
|
-
const
|
|
121
|
-
i0.ɵɵelementStart(0, "button",
|
|
122
|
-
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")); });
|
|
123
126
|
i0.ɵɵtext(1, " Add To List ");
|
|
124
127
|
i0.ɵɵelementEnd();
|
|
125
128
|
} if (rf & 2) {
|
|
126
|
-
const
|
|
127
|
-
i0.ɵɵproperty("disabled",
|
|
129
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
130
|
+
i0.ɵɵproperty("disabled", ctx_r2.addToListMode && ctx_r2.recordsToCompare.length === 0);
|
|
128
131
|
} }
|
|
129
|
-
function
|
|
130
|
-
const
|
|
131
|
-
i0.ɵɵelementStart(0, "button",
|
|
132
|
-
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")); });
|
|
133
136
|
i0.ɵɵtext(1, " Compare ");
|
|
134
137
|
i0.ɵɵelementEnd();
|
|
135
138
|
} if (rf & 2) {
|
|
136
|
-
const
|
|
137
|
-
i0.ɵɵproperty("disabled",
|
|
139
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
140
|
+
i0.ɵɵproperty("disabled", ctx_r2.compareMode && ctx_r2.recordsToCompare.length < 2);
|
|
138
141
|
} }
|
|
139
|
-
function
|
|
140
|
-
const
|
|
141
|
-
i0.ɵɵelementStart(0, "button",
|
|
142
|
-
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")); });
|
|
143
146
|
i0.ɵɵtext(1, " Merge ");
|
|
144
147
|
i0.ɵɵelementEnd();
|
|
145
148
|
} if (rf & 2) {
|
|
146
|
-
const
|
|
147
|
-
i0.ɵɵproperty("disabled",
|
|
149
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
150
|
+
i0.ɵɵproperty("disabled", ctx_r2.mergeMode && ctx_r2.recordsToCompare.length < 2);
|
|
148
151
|
} }
|
|
149
|
-
function
|
|
150
|
-
const
|
|
151
|
-
i0.ɵɵelementStart(0, "button",
|
|
152
|
-
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, "")); });
|
|
153
156
|
i0.ɵɵtext(1, " Cancel ");
|
|
154
157
|
i0.ɵɵelementEnd();
|
|
155
158
|
} }
|
|
156
|
-
function
|
|
157
|
-
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);
|
|
158
161
|
} if (rf & 2) {
|
|
159
|
-
const
|
|
160
|
-
i0.ɵɵconditional(!
|
|
162
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
163
|
+
i0.ɵɵconditional(!ctx_r2.anyModeEnabled ? 0 : -1);
|
|
161
164
|
i0.ɵɵadvance();
|
|
162
|
-
i0.ɵɵconditional(
|
|
165
|
+
i0.ɵɵconditional(ctx_r2.duplicateMode ? 1 : -1);
|
|
163
166
|
i0.ɵɵadvance();
|
|
164
|
-
i0.ɵɵconditional(
|
|
167
|
+
i0.ɵɵconditional(ctx_r2.addToListMode ? 2 : -1);
|
|
165
168
|
i0.ɵɵadvance();
|
|
166
|
-
i0.ɵɵconditional(
|
|
169
|
+
i0.ɵɵconditional(ctx_r2.compareMode ? 3 : -1);
|
|
167
170
|
i0.ɵɵadvance();
|
|
168
|
-
i0.ɵɵconditional(
|
|
171
|
+
i0.ɵɵconditional(ctx_r2.mergeMode ? 4 : -1);
|
|
169
172
|
i0.ɵɵadvance();
|
|
170
|
-
i0.ɵɵconditional(
|
|
173
|
+
i0.ɵɵconditional(ctx_r2.anyModeEnabled ? 5 : -1);
|
|
171
174
|
} }
|
|
172
|
-
function
|
|
173
|
-
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);
|
|
174
177
|
} if (rf & 2) {
|
|
175
178
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c7));
|
|
176
179
|
i0.ɵɵproperty("width", 50)("headerStyle", i0.ɵɵpureFunction0(5, _c8));
|
|
177
180
|
} }
|
|
178
|
-
function
|
|
181
|
+
function UserViewGridComponent_Conditional_2_kendo_grid_column_4_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
179
182
|
i0.ɵɵtext(0);
|
|
180
183
|
i0.ɵɵpipe(1, "number");
|
|
181
184
|
i0.ɵɵpipe(2, "number");
|
|
182
185
|
i0.ɵɵelement(3, "br");
|
|
183
|
-
i0.ɵɵelementStart(4, "span",
|
|
186
|
+
i0.ɵɵelementStart(4, "span", 33);
|
|
184
187
|
i0.ɵɵtext(5);
|
|
185
188
|
i0.ɵɵpipe(6, "number");
|
|
186
189
|
i0.ɵɵelementEnd();
|
|
187
190
|
} if (rf & 2) {
|
|
188
|
-
const
|
|
189
|
-
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", "");
|
|
190
193
|
i0.ɵɵadvance(5);
|
|
191
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7,
|
|
194
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r2.viewExecutionTime, "1.2-2"), " seconds");
|
|
192
195
|
} }
|
|
193
|
-
function
|
|
194
|
-
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);
|
|
195
198
|
} }
|
|
196
|
-
function
|
|
197
|
-
i0.ɵɵelementStart(0, "kendo-grid-column",
|
|
198
|
-
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);
|
|
199
202
|
i0.ɵɵelementEnd();
|
|
200
203
|
} if (rf & 2) {
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
i0.ɵɵstyleMap(
|
|
204
|
-
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));
|
|
205
208
|
i0.ɵɵadvance();
|
|
206
|
-
i0.ɵɵproperty("ngIf",
|
|
209
|
+
i0.ɵɵproperty("ngIf", item_r13 === ctx_r2.visibleColumns[0]);
|
|
207
210
|
} }
|
|
208
|
-
function
|
|
209
|
-
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);
|
|
210
213
|
} if (rf & 2) {
|
|
211
|
-
const
|
|
212
|
-
i0.ɵɵproperty("field",
|
|
214
|
+
const exportCol_r14 = ctx.$implicit;
|
|
215
|
+
i0.ɵɵproperty("field", exportCol_r14.Name)("title", exportCol_r14.Name);
|
|
213
216
|
} }
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
i0.ɵɵelementStart(0, "
|
|
217
|
-
i0.ɵɵlistener("
|
|
218
|
-
i0.ɵɵ
|
|
219
|
-
i0.ɵɵ
|
|
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);
|
|
220
239
|
} }
|
|
221
|
-
function
|
|
240
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
222
241
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
223
|
-
i0.ɵɵelementStart(0, "button",
|
|
224
|
-
i0.ɵɵlistener("click", function
|
|
225
|
-
i0.ɵɵtext(1, "
|
|
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")); });
|
|
244
|
+
i0.ɵɵtext(1, " Merge Records ");
|
|
226
245
|
i0.ɵɵelementEnd();
|
|
227
246
|
} }
|
|
228
|
-
function
|
|
247
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
229
248
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
230
249
|
i0.ɵɵelementStart(0, "button", 44);
|
|
231
|
-
i0.ɵɵlistener("click", function
|
|
232
|
-
i0.ɵɵtext(1, "
|
|
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()); });
|
|
251
|
+
i0.ɵɵtext(1, " Search for Duplicates ");
|
|
233
252
|
i0.ɵɵelementEnd();
|
|
234
253
|
} }
|
|
235
|
-
function
|
|
254
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
236
255
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
237
|
-
i0.ɵɵelementStart(0, "button",
|
|
238
|
-
i0.ɵɵlistener("click", function
|
|
239
|
-
i0.ɵɵtext(1, "
|
|
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")); });
|
|
258
|
+
i0.ɵɵtext(1, " Close ");
|
|
240
259
|
i0.ɵɵelementEnd();
|
|
241
260
|
} }
|
|
242
|
-
function
|
|
261
|
+
function UserViewGridComponent_div_5_kendo_window_2_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
243
262
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
244
|
-
i0.ɵɵelementStart(0, "
|
|
245
|
-
i0.ɵɵlistener("
|
|
246
|
-
i0.ɵɵ
|
|
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")); });
|
|
265
|
+
i0.ɵɵtext(1, " Cancel ");
|
|
266
|
+
i0.ɵɵelementEnd();
|
|
267
|
+
} }
|
|
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);
|
|
247
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. ");
|
|
248
274
|
i0.ɵɵelementEnd();
|
|
249
|
-
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button",
|
|
250
|
-
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")); });
|
|
251
277
|
i0.ɵɵtext(5, "No");
|
|
252
278
|
i0.ɵɵelementEnd();
|
|
253
|
-
i0.ɵɵelementStart(6, "button",
|
|
254
|
-
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")); });
|
|
255
281
|
i0.ɵɵtext(7, " Yes ");
|
|
256
282
|
i0.ɵɵelementEnd()()();
|
|
257
283
|
} if (rf & 2) {
|
|
258
284
|
i0.ɵɵproperty("minWidth", 250)("width", 450);
|
|
259
285
|
} }
|
|
260
|
-
function
|
|
261
|
-
const
|
|
262
|
-
i0.ɵɵelementStart(0, "kendo-window",
|
|
263
|
-
i0.ɵɵlistener("close", function
|
|
264
|
-
i0.ɵɵelementStart(1, "div",
|
|
265
|
-
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);
|
|
266
292
|
i0.ɵɵelementEnd();
|
|
267
|
-
i0.ɵɵelementStart(4, "div",
|
|
268
|
-
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);
|
|
269
295
|
i0.ɵɵelementEnd();
|
|
270
|
-
i0.ɵɵtemplate(9,
|
|
296
|
+
i0.ɵɵtemplate(9, UserViewGridComponent_div_5_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog", 43);
|
|
271
297
|
i0.ɵɵelementEnd();
|
|
272
298
|
} if (rf & 2) {
|
|
273
|
-
const
|
|
299
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
274
300
|
i0.ɵɵproperty("minHeight", 300)("minWidth", 800)("top", 100)("left", 100)("width", 1200)("height", 675)("resizable", true);
|
|
275
301
|
i0.ɵɵadvance();
|
|
276
302
|
i0.ɵɵproperty("fillHeight", true)("bottomMargin", 100);
|
|
277
303
|
i0.ɵɵadvance();
|
|
278
|
-
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);
|
|
279
305
|
i0.ɵɵadvance(3);
|
|
280
|
-
i0.ɵɵproperty("ngIf",
|
|
306
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mergeMode);
|
|
281
307
|
i0.ɵɵadvance();
|
|
282
|
-
i0.ɵɵproperty("ngIf",
|
|
308
|
+
i0.ɵɵproperty("ngIf", ctx_r2.duplicateMode);
|
|
283
309
|
i0.ɵɵadvance();
|
|
284
|
-
i0.ɵɵproperty("ngIf",
|
|
310
|
+
i0.ɵɵproperty("ngIf", ctx_r2.compareMode);
|
|
285
311
|
i0.ɵɵadvance();
|
|
286
|
-
i0.ɵɵproperty("ngIf",
|
|
312
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mergeMode || ctx_r2.duplicateMode);
|
|
287
313
|
i0.ɵɵadvance();
|
|
288
|
-
i0.ɵɵproperty("ngIf",
|
|
314
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isConfirmDialogOpen);
|
|
289
315
|
} }
|
|
290
|
-
function
|
|
316
|
+
function UserViewGridComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
291
317
|
i0.ɵɵelementStart(0, "div");
|
|
292
|
-
i0.ɵɵelement(1, "div",
|
|
293
|
-
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);
|
|
294
320
|
i0.ɵɵelementEnd();
|
|
295
321
|
} if (rf & 2) {
|
|
296
|
-
const
|
|
322
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
297
323
|
i0.ɵɵadvance(2);
|
|
298
|
-
i0.ɵɵproperty("ngIf",
|
|
324
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isCompareDialogOpened);
|
|
299
325
|
} }
|
|
300
|
-
function
|
|
301
|
-
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);
|
|
302
328
|
} }
|
|
303
|
-
function
|
|
304
|
-
const
|
|
305
|
-
i0.ɵɵelementStart(0, "button",
|
|
306
|
-
i0.ɵɵlistener("click", function
|
|
307
|
-
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);
|
|
308
334
|
i0.ɵɵtext(2, " Remove ");
|
|
309
335
|
i0.ɵɵelementEnd();
|
|
310
336
|
} }
|
|
311
|
-
function
|
|
312
|
-
const
|
|
313
|
-
i0.ɵɵelementStart(0, "button",
|
|
314
|
-
i0.ɵɵlistener("click", function
|
|
315
|
-
i0.ɵɵelementStart(1, "div",
|
|
316
|
-
i0.ɵɵelement(2, "span",
|
|
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);
|
|
317
343
|
i0.ɵɵtext(3, " Add ");
|
|
318
344
|
i0.ɵɵelementEnd()();
|
|
319
345
|
} }
|
|
320
|
-
function
|
|
321
|
-
i0.ɵɵelementStart(0, "div",
|
|
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);
|
|
322
348
|
i0.ɵɵtext(2);
|
|
323
349
|
i0.ɵɵelementEnd();
|
|
324
|
-
i0.ɵɵtemplate(3,
|
|
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);
|
|
325
351
|
i0.ɵɵelementEnd();
|
|
326
352
|
i0.ɵɵelement(5, "hr");
|
|
327
353
|
} if (rf & 2) {
|
|
328
|
-
const
|
|
329
|
-
const
|
|
354
|
+
const listEntity_r23 = ctx.$implicit;
|
|
355
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
330
356
|
i0.ɵɵadvance();
|
|
331
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c9,
|
|
357
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c9, ctx_r2.selectedListEntities.includes(listEntity_r23)));
|
|
332
358
|
i0.ɵɵadvance();
|
|
333
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
359
|
+
i0.ɵɵtextInterpolate1(" ", listEntity_r23.Name, " ");
|
|
334
360
|
i0.ɵɵadvance();
|
|
335
|
-
i0.ɵɵconditional(
|
|
361
|
+
i0.ɵɵconditional(ctx_r2.selectedListEntities.includes(listEntity_r23) ? 3 : 4);
|
|
336
362
|
} }
|
|
337
|
-
function
|
|
338
|
-
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);
|
|
339
365
|
} if (rf & 2) {
|
|
340
|
-
const
|
|
341
|
-
i0.ɵɵrepeater(
|
|
366
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
367
|
+
i0.ɵɵrepeater(ctx_r2.listEntities);
|
|
342
368
|
} }
|
|
343
|
-
function
|
|
344
|
-
const
|
|
345
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
346
|
-
i0.ɵɵlistener("close", function
|
|
347
|
-
i0.ɵɵelementStart(1, "div",
|
|
348
|
-
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)); });
|
|
349
375
|
i0.ɵɵelementEnd();
|
|
350
|
-
i0.ɵɵelementStart(3, "button",
|
|
351
|
-
i0.ɵɵelement(4, "span",
|
|
376
|
+
i0.ɵɵelementStart(3, "button", 52);
|
|
377
|
+
i0.ɵɵelement(4, "span", 53);
|
|
352
378
|
i0.ɵɵtext(5, " New List ");
|
|
353
379
|
i0.ɵɵelementEnd()();
|
|
354
380
|
i0.ɵɵelement(6, "hr");
|
|
355
|
-
i0.ɵɵelementStart(7, "div",
|
|
356
|
-
i0.ɵɵtemplate(8,
|
|
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);
|
|
357
383
|
i0.ɵɵelementEnd();
|
|
358
|
-
i0.ɵɵelementStart(10, "kendo-dialog-actions")(11, "button",
|
|
359
|
-
i0.ɵɵlistener("click", function
|
|
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()); });
|
|
360
386
|
i0.ɵɵtext(12, " Save ");
|
|
361
387
|
i0.ɵɵelementEnd();
|
|
362
|
-
i0.ɵɵelementStart(13, "button",
|
|
363
|
-
i0.ɵɵlistener("click", function
|
|
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)); });
|
|
364
390
|
i0.ɵɵtext(14, " Cancel ");
|
|
365
391
|
i0.ɵɵelementEnd()()();
|
|
366
392
|
} if (rf & 2) {
|
|
367
|
-
const
|
|
393
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
368
394
|
i0.ɵɵproperty("minHeight", 500)("maxHeight", 500)("minWidth", 500)("maxWidth", 650);
|
|
369
395
|
i0.ɵɵadvance(2);
|
|
370
396
|
i0.ɵɵproperty("clearButton", true);
|
|
371
397
|
i0.ɵɵadvance(6);
|
|
372
|
-
i0.ɵɵconditional(
|
|
398
|
+
i0.ɵɵconditional(ctx_r2.showAddToListLoader ? 8 : 9);
|
|
373
399
|
i0.ɵɵadvance(3);
|
|
374
|
-
i0.ɵɵproperty("disabled",
|
|
400
|
+
i0.ɵɵproperty("disabled", ctx_r2.showAddToListLoader);
|
|
375
401
|
i0.ɵɵadvance(2);
|
|
376
|
-
i0.ɵɵproperty("disabled",
|
|
402
|
+
i0.ɵɵproperty("disabled", ctx_r2.showAddToListLoader);
|
|
377
403
|
} }
|
|
378
404
|
export class UserViewGridComponent {
|
|
379
405
|
get anyModeEnabled() {
|
|
@@ -527,6 +553,7 @@ export class UserViewGridComponent {
|
|
|
527
553
|
this.skip = 0;
|
|
528
554
|
this.pageSize = 40;
|
|
529
555
|
this.isLoading = false;
|
|
556
|
+
this.neverLoaded = true;
|
|
530
557
|
this.gridView = { data: [], total: 0 };
|
|
531
558
|
this.gridHeight = 750;
|
|
532
559
|
this._newGridState = {};
|
|
@@ -926,6 +953,7 @@ export class UserViewGridComponent {
|
|
|
926
953
|
if (params && (params.ViewEntity || params.ViewID || params.ViewName || (params.EntityName && params.ExtraFilter))) {
|
|
927
954
|
const startTime = new Date().getTime();
|
|
928
955
|
this.isLoading = true;
|
|
956
|
+
this.neverLoaded = false;
|
|
929
957
|
const md = new Metadata();
|
|
930
958
|
const rv = new RunView();
|
|
931
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
|
|
@@ -1470,38 +1498,23 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1470
1498
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.analysisResults = _t.first);
|
|
1471
1499
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.compareDialogContainer = _t.first);
|
|
1472
1500
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityFormDialog = _t.first);
|
|
1473
|
-
} }, 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) {
|
|
1474
1502
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1475
|
-
i0.ɵɵelementStart(0, "div", 6)
|
|
1476
|
-
i0.ɵɵ
|
|
1477
|
-
i0.ɵɵ
|
|
1478
|
-
i0.ɵɵ
|
|
1479
|
-
i0.ɵɵtemplate(3, UserViewGridComponent_ng_template_3_Template, 6, 6, "ng-template", 8)(4, UserViewGridComponent_kendo_grid_checkbox_column_4_Template, 1, 6, "kendo-grid-checkbox-column", 9)(5, UserViewGridComponent_kendo_grid_column_5_Template, 2, 10, "kendo-grid-column", 10);
|
|
1480
|
-
i0.ɵɵelementStart(6, "kendo-excelexport", 11, 1);
|
|
1481
|
-
i0.ɵɵtemplate(8, UserViewGridComponent_kendo_excelexport_column_8_Template, 1, 2, "kendo-excelexport-column", 12);
|
|
1482
|
-
i0.ɵɵelementEnd()();
|
|
1483
|
-
i0.ɵɵelementStart(9, "div", null, 2);
|
|
1484
|
-
i0.ɵɵtemplate(11, UserViewGridComponent_div_11_Template, 3, 1, "div", 13);
|
|
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);
|
|
1485
1507
|
i0.ɵɵelementEnd();
|
|
1486
|
-
i0.ɵɵtemplate(
|
|
1508
|
+
i0.ɵɵtemplate(6, UserViewGridComponent_kendo_dialog_6_Template, 15, 8, "kendo-dialog", 9);
|
|
1487
1509
|
i0.ɵɵelementEnd();
|
|
1488
|
-
i0.ɵɵelement(
|
|
1489
|
-
i0.ɵɵelementStart(
|
|
1490
|
-
i0.ɵɵlistener("DialogClosed", function
|
|
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); });
|
|
1491
1513
|
i0.ɵɵelementEnd();
|
|
1492
1514
|
} if (rf & 2) {
|
|
1493
1515
|
i0.ɵɵadvance();
|
|
1494
|
-
i0.ɵɵ
|
|
1495
|
-
i0.ɵɵ
|
|
1496
|
-
i0.ɵɵadvance(3);
|
|
1497
|
-
i0.ɵɵproperty("ngIf", ctx.anyModeEnabled);
|
|
1498
|
-
i0.ɵɵadvance();
|
|
1499
|
-
i0.ɵɵproperty("ngForOf", ctx.visibleColumns);
|
|
1500
|
-
i0.ɵɵadvance();
|
|
1501
|
-
i0.ɵɵproperty("data", ctx.exportData)("fileName", (ctx._viewEntity ? ctx._viewEntity.Get("Name") : ctx._entityInfo == null ? null : ctx._entityInfo.Name) + ".xlsx");
|
|
1502
|
-
i0.ɵɵadvance(2);
|
|
1503
|
-
i0.ɵɵproperty("ngForOf", ctx.exportColumns);
|
|
1504
|
-
i0.ɵɵadvance(3);
|
|
1516
|
+
i0.ɵɵconditional(ctx.isLoading || !ctx.AllowLoad || ctx.neverLoaded ? 1 : 2);
|
|
1517
|
+
i0.ɵɵadvance(4);
|
|
1505
1518
|
i0.ɵɵproperty("ngIf", ctx.isCompareDialogOpened);
|
|
1506
1519
|
i0.ɵɵadvance();
|
|
1507
1520
|
i0.ɵɵproperty("ngIf", ctx.showAddToListDialog);
|
|
@@ -1512,7 +1525,7 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1512
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}"] });
|
|
1513
1526
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridComponent, [{
|
|
1514
1527
|
type: Component,
|
|
1515
|
-
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(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}"] }]
|
|
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}"] }]
|
|
1516
1529
|
}], () => [{ type: i0.ElementRef }, { type: i1.FormBuilder }, { type: i2.Router }, { type: i0.Renderer2 }], { Params: [{
|
|
1517
1530
|
type: Input
|
|
1518
1531
|
}], BottomMargin: [{
|
|
@@ -1562,4 +1575,4 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1562
1575
|
type: ViewChild,
|
|
1563
1576
|
args: ['entityFormDialog']
|
|
1564
1577
|
}] }); })();
|
|
1565
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent" }); })();
|
|
1578
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src/lib/ng-user-view-grid.component.ts", lineNumber: 51 }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-user-view-grid",
|
|
3
|
-
"version": "2.
|
|
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,16 +25,16 @@
|
|
|
25
25
|
"@angular/router": "18.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/core-entities": "2.
|
|
29
|
-
"@memberjunction/global": "2.
|
|
30
|
-
"@memberjunction/core": "2.
|
|
31
|
-
"@memberjunction/ng-shared": "2.
|
|
32
|
-
"@memberjunction/ng-entity-form-dialog": "2.
|
|
33
|
-
"@memberjunction/ng-compare-records": "2.
|
|
34
|
-
"@memberjunction/ng-container-directives": "2.
|
|
35
|
-
"@memberjunction/entity-communications-client": "2.
|
|
36
|
-
"@memberjunction/ng-entity-communications": "2.
|
|
37
|
-
"@memberjunction/ng-base-types": "2.
|
|
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",
|
|
38
38
|
"@progress/kendo-angular-grid": "16.2.0",
|
|
39
39
|
"@progress/kendo-angular-layout": "16.2.0",
|
|
40
40
|
"@progress/kendo-angular-inputs": "16.2.0",
|