@memberjunction/ng-user-view-grid 1.8.0 → 2.0.0
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
|
};
|
|
@@ -104,7 +104,7 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
104
104
|
selectedListEntities: ListEntity[];
|
|
105
105
|
listEntitySearch: string;
|
|
106
106
|
get PendingRecords(): GridPendingRecordItem[];
|
|
107
|
-
get ViewID():
|
|
107
|
+
get ViewID(): string;
|
|
108
108
|
/**
|
|
109
109
|
* 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
110
|
* entity-level setting AllowCreateAPI being set to 1.
|
|
@@ -158,6 +158,7 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
158
158
|
exportData: any[];
|
|
159
159
|
doExcelExport(): Promise<void>;
|
|
160
160
|
protected getExportData(): Promise<any[]>;
|
|
161
|
+
showTemplatePreviewDialog: boolean;
|
|
161
162
|
/**
|
|
162
163
|
* Handles communication functionality for a given view, only available if the entity being displayed supports communication.
|
|
163
164
|
*/
|
|
@@ -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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aAAa;cAwBV,aAAa,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAmBxC,yBAAyB,EAAE,OAAO,CAAS;IAClD;;OAEG;IACU,eAAe;IA0C5B,IAAW,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;yCAnqCT,qBAAqB;2CAArB,qBAAqB;CA8qCjC"}
|
|
@@ -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,11 +45,12 @@ 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" });
|
|
48
|
+
const _c9 = a0 => ({ "list-selected": a0 });
|
|
47
49
|
function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
48
50
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
49
|
-
i0.ɵɵelementStart(0, "button",
|
|
51
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
50
52
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.doCreateNewRecord()); });
|
|
51
|
-
i0.ɵɵelement(1, "span",
|
|
53
|
+
i0.ɵɵelement(1, "span", 24);
|
|
52
54
|
i0.ɵɵtext(2);
|
|
53
55
|
i0.ɵɵelementEnd();
|
|
54
56
|
} if (rf & 2) {
|
|
@@ -58,44 +60,44 @@ function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Templat
|
|
|
58
60
|
} }
|
|
59
61
|
function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
60
62
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
61
|
-
i0.ɵɵelementStart(0, "button",
|
|
63
|
+
i0.ɵɵelementStart(0, "button", 22);
|
|
62
64
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.doCommunication()); });
|
|
63
|
-
i0.ɵɵelement(1, "span",
|
|
65
|
+
i0.ɵɵelement(1, "span", 25);
|
|
64
66
|
i0.ɵɵelementEnd();
|
|
65
67
|
} }
|
|
66
68
|
function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
67
69
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
68
|
-
i0.ɵɵelementStart(0, "button",
|
|
70
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
69
71
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.RefreshFromSavedParams()); });
|
|
70
|
-
i0.ɵɵelement(1, "span",
|
|
72
|
+
i0.ɵɵelement(1, "span", 27);
|
|
71
73
|
i0.ɵɵtext(2, " Refresh ");
|
|
72
74
|
i0.ɵɵelementEnd();
|
|
73
75
|
} }
|
|
74
76
|
function UserViewGridComponent_ng_template_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
75
77
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
76
|
-
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template, 3, 1, "button",
|
|
77
|
-
i0.ɵɵelementStart(1, "button",
|
|
78
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template, 3, 1, "button", 19);
|
|
79
|
+
i0.ɵɵelementStart(1, "button", 20);
|
|
78
80
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.doExcelExport()); });
|
|
79
|
-
i0.ɵɵelement(2, "span",
|
|
81
|
+
i0.ɵɵelement(2, "span", 21);
|
|
80
82
|
i0.ɵɵtext(3, " Export to Excel ");
|
|
81
83
|
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵelementStart(4, "button",
|
|
84
|
+
i0.ɵɵelementStart(4, "button", 22);
|
|
83
85
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableCheckbox(false, "duplicate")); });
|
|
84
86
|
i0.ɵɵtext(5, " Search For Duplicates ");
|
|
85
87
|
i0.ɵɵelementEnd();
|
|
86
|
-
i0.ɵɵelementStart(6, "button",
|
|
88
|
+
i0.ɵɵelementStart(6, "button", 22);
|
|
87
89
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableCheckbox(false, "addToList")); });
|
|
88
90
|
i0.ɵɵtext(7, " Add To List ");
|
|
89
91
|
i0.ɵɵelementEnd();
|
|
90
|
-
i0.ɵɵelementStart(8, "button",
|
|
92
|
+
i0.ɵɵelementStart(8, "button", 22);
|
|
91
93
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableMergeOrCompare(false, "merge")); });
|
|
92
94
|
i0.ɵɵtext(9, " Merge ");
|
|
93
95
|
i0.ɵɵelementEnd();
|
|
94
|
-
i0.ɵɵelementStart(10, "button",
|
|
96
|
+
i0.ɵɵelementStart(10, "button", 22);
|
|
95
97
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableMergeOrCompare(false, "compare")); });
|
|
96
98
|
i0.ɵɵtext(11, " Compare ");
|
|
97
99
|
i0.ɵɵelementEnd();
|
|
98
|
-
i0.ɵɵtemplate(12, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template, 2, 0, "button",
|
|
100
|
+
i0.ɵɵtemplate(12, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template, 2, 0, "button", 18)(13, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_13_Template, 3, 0, "button", 23);
|
|
99
101
|
} if (rf & 2) {
|
|
100
102
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
101
103
|
i0.ɵɵconditional(ctx_r3.EntityInfo && ctx_r3.ShowCreateNewRecordButton && ctx_r3.UserCanCreateNewRecord ? 0 : -1);
|
|
@@ -106,7 +108,7 @@ function UserViewGridComponent_ng_template_3_Conditional_0_Template(rf, ctx) { i
|
|
|
106
108
|
} }
|
|
107
109
|
function UserViewGridComponent_ng_template_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
108
110
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
109
|
-
i0.ɵɵelementStart(0, "button",
|
|
111
|
+
i0.ɵɵelementStart(0, "button", 28);
|
|
110
112
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableCheckbox(false, "duplicate")); });
|
|
111
113
|
i0.ɵɵtext(1, " Search For Duplicates ");
|
|
112
114
|
i0.ɵɵelementEnd();
|
|
@@ -116,7 +118,7 @@ function UserViewGridComponent_ng_template_3_Conditional_1_Template(rf, ctx) { i
|
|
|
116
118
|
} }
|
|
117
119
|
function UserViewGridComponent_ng_template_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
118
120
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
119
|
-
i0.ɵɵelementStart(0, "button",
|
|
121
|
+
i0.ɵɵelementStart(0, "button", 28);
|
|
120
122
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableCheckbox(false, "addToList")); });
|
|
121
123
|
i0.ɵɵtext(1, " Add To List ");
|
|
122
124
|
i0.ɵɵelementEnd();
|
|
@@ -126,7 +128,7 @@ function UserViewGridComponent_ng_template_3_Conditional_2_Template(rf, ctx) { i
|
|
|
126
128
|
} }
|
|
127
129
|
function UserViewGridComponent_ng_template_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
128
130
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
129
|
-
i0.ɵɵelementStart(0, "button",
|
|
131
|
+
i0.ɵɵelementStart(0, "button", 28);
|
|
130
132
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableMergeOrCompare(false, "compare")); });
|
|
131
133
|
i0.ɵɵtext(1, " Compare ");
|
|
132
134
|
i0.ɵɵelementEnd();
|
|
@@ -136,7 +138,7 @@ function UserViewGridComponent_ng_template_3_Conditional_3_Template(rf, ctx) { i
|
|
|
136
138
|
} }
|
|
137
139
|
function UserViewGridComponent_ng_template_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
138
140
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
139
|
-
i0.ɵɵelementStart(0, "button",
|
|
141
|
+
i0.ɵɵelementStart(0, "button", 28);
|
|
140
142
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableMergeOrCompare(false, "merge")); });
|
|
141
143
|
i0.ɵɵtext(1, " Merge ");
|
|
142
144
|
i0.ɵɵelementEnd();
|
|
@@ -146,13 +148,13 @@ function UserViewGridComponent_ng_template_3_Conditional_4_Template(rf, ctx) { i
|
|
|
146
148
|
} }
|
|
147
149
|
function UserViewGridComponent_ng_template_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
148
150
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
149
|
-
i0.ɵɵelementStart(0, "button",
|
|
151
|
+
i0.ɵɵelementStart(0, "button", 22);
|
|
150
152
|
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.enableCheckbox(true, "")); });
|
|
151
153
|
i0.ɵɵtext(1, " Cancel ");
|
|
152
154
|
i0.ɵɵelementEnd();
|
|
153
155
|
} }
|
|
154
156
|
function UserViewGridComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
155
|
-
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Template, 14, 3)(1, UserViewGridComponent_ng_template_3_Conditional_1_Template, 2, 1, "button",
|
|
157
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Template, 14, 3)(1, UserViewGridComponent_ng_template_3_Conditional_1_Template, 2, 1, "button", 17)(2, UserViewGridComponent_ng_template_3_Conditional_2_Template, 2, 1, "button", 17)(3, UserViewGridComponent_ng_template_3_Conditional_3_Template, 2, 1, "button", 17)(4, UserViewGridComponent_ng_template_3_Conditional_4_Template, 2, 1, "button", 17)(5, UserViewGridComponent_ng_template_3_Conditional_5_Template, 2, 0, "button", 18);
|
|
156
158
|
} if (rf & 2) {
|
|
157
159
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
158
160
|
i0.ɵɵconditional(!ctx_r3.anyModeEnabled ? 0 : -1);
|
|
@@ -168,7 +170,7 @@ function UserViewGridComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
168
170
|
i0.ɵɵconditional(ctx_r3.anyModeEnabled ? 5 : -1);
|
|
169
171
|
} }
|
|
170
172
|
function UserViewGridComponent_kendo_grid_checkbox_column_4_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
-
i0.ɵɵelement(0, "kendo-grid-checkbox-column",
|
|
173
|
+
i0.ɵɵelement(0, "kendo-grid-checkbox-column", 29);
|
|
172
174
|
} if (rf & 2) {
|
|
173
175
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c7));
|
|
174
176
|
i0.ɵɵproperty("width", 50)("headerStyle", i0.ɵɵpureFunction0(5, _c8));
|
|
@@ -178,7 +180,7 @@ function UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template(rf,
|
|
|
178
180
|
i0.ɵɵpipe(1, "number");
|
|
179
181
|
i0.ɵɵpipe(2, "number");
|
|
180
182
|
i0.ɵɵelement(3, "br");
|
|
181
|
-
i0.ɵɵelementStart(4, "span",
|
|
183
|
+
i0.ɵɵelementStart(4, "span", 32);
|
|
182
184
|
i0.ɵɵtext(5);
|
|
183
185
|
i0.ɵɵpipe(6, "number");
|
|
184
186
|
i0.ɵɵelementEnd();
|
|
@@ -189,11 +191,11 @@ function UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template(rf,
|
|
|
189
191
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r3.viewExecutionTime, "1.2-2"), " seconds");
|
|
190
192
|
} }
|
|
191
193
|
function UserViewGridComponent_kendo_grid_column_5_1_Template(rf, ctx) { if (rf & 1) {
|
|
192
|
-
i0.ɵɵtemplate(0, UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template, 7, 10, "ng-template",
|
|
194
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template, 7, 10, "ng-template", 31);
|
|
193
195
|
} }
|
|
194
196
|
function UserViewGridComponent_kendo_grid_column_5_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
-
i0.ɵɵelementStart(0, "kendo-grid-column",
|
|
196
|
-
i0.ɵɵtemplate(1, UserViewGridComponent_kendo_grid_column_5_1_Template, 1, 0, null,
|
|
197
|
+
i0.ɵɵelementStart(0, "kendo-grid-column", 30);
|
|
198
|
+
i0.ɵɵtemplate(1, UserViewGridComponent_kendo_grid_column_5_1_Template, 1, 0, null, 13);
|
|
197
199
|
i0.ɵɵelementEnd();
|
|
198
200
|
} if (rf & 2) {
|
|
199
201
|
const item_r12 = ctx.$implicit;
|
|
@@ -204,51 +206,51 @@ function UserViewGridComponent_kendo_grid_column_5_Template(rf, ctx) { if (rf &
|
|
|
204
206
|
i0.ɵɵproperty("ngIf", item_r12 === ctx_r3.visibleColumns[0]);
|
|
205
207
|
} }
|
|
206
208
|
function UserViewGridComponent_kendo_excelexport_column_8_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
-
i0.ɵɵelement(0, "kendo-excelexport-column",
|
|
209
|
+
i0.ɵɵelement(0, "kendo-excelexport-column", 33);
|
|
208
210
|
} if (rf & 2) {
|
|
209
211
|
const exportCol_r13 = ctx.$implicit;
|
|
210
212
|
i0.ɵɵproperty("field", exportCol_r13.Name)("title", exportCol_r13.Name);
|
|
211
213
|
} }
|
|
212
214
|
function UserViewGridComponent_div_11_kendo_window_2_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
213
215
|
const _r15 = i0.ɵɵgetCurrentView();
|
|
214
|
-
i0.ɵɵelementStart(0, "button",
|
|
216
|
+
i0.ɵɵelementStart(0, "button", 43);
|
|
215
217
|
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.closeCompareDialog("merge")); });
|
|
216
218
|
i0.ɵɵtext(1, " Merge Records ");
|
|
217
219
|
i0.ɵɵelementEnd();
|
|
218
220
|
} }
|
|
219
221
|
function UserViewGridComponent_div_11_kendo_window_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
220
222
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
221
|
-
i0.ɵɵelementStart(0, "button",
|
|
223
|
+
i0.ɵɵelementStart(0, "button", 43);
|
|
222
224
|
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.findDuplicateRecords()); });
|
|
223
225
|
i0.ɵɵtext(1, " Search for Duplicates ");
|
|
224
226
|
i0.ɵɵelementEnd();
|
|
225
227
|
} }
|
|
226
228
|
function UserViewGridComponent_div_11_kendo_window_2_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
227
229
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
228
|
-
i0.ɵɵelementStart(0, "button",
|
|
230
|
+
i0.ɵɵelementStart(0, "button", 44);
|
|
229
231
|
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.closeCompareDialog("close")); });
|
|
230
232
|
i0.ɵɵtext(1, " Close ");
|
|
231
233
|
i0.ɵɵelementEnd();
|
|
232
234
|
} }
|
|
233
235
|
function UserViewGridComponent_div_11_kendo_window_2_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
234
236
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
235
|
-
i0.ɵɵelementStart(0, "button",
|
|
237
|
+
i0.ɵɵelementStart(0, "button", 44);
|
|
236
238
|
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.closeCompareDialog("cancel")); });
|
|
237
239
|
i0.ɵɵtext(1, " Cancel ");
|
|
238
240
|
i0.ɵɵelementEnd();
|
|
239
241
|
} }
|
|
240
242
|
function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
|
|
241
243
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
242
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
244
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 45);
|
|
243
245
|
i0.ɵɵlistener("close", function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.closeConfirmMergeDialog("cancel")); });
|
|
244
|
-
i0.ɵɵelementStart(1, "p",
|
|
246
|
+
i0.ɵɵelementStart(1, "p", 46);
|
|
245
247
|
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
248
|
i0.ɵɵelementEnd();
|
|
247
|
-
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button",
|
|
249
|
+
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button", 20);
|
|
248
250
|
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r19); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.closeConfirmMergeDialog("no")); });
|
|
249
251
|
i0.ɵɵtext(5, "No");
|
|
250
252
|
i0.ɵɵelementEnd();
|
|
251
|
-
i0.ɵɵelementStart(6, "button",
|
|
253
|
+
i0.ɵɵelementStart(6, "button", 47);
|
|
252
254
|
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r19); const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.closeConfirmMergeDialog("yes")); });
|
|
253
255
|
i0.ɵɵtext(7, " Yes ");
|
|
254
256
|
i0.ɵɵelementEnd()()();
|
|
@@ -257,15 +259,15 @@ function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template(rf,
|
|
|
257
259
|
} }
|
|
258
260
|
function UserViewGridComponent_div_11_kendo_window_2_Template(rf, ctx) { if (rf & 1) {
|
|
259
261
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
260
|
-
i0.ɵɵelementStart(0, "kendo-window",
|
|
262
|
+
i0.ɵɵelementStart(0, "kendo-window", 36);
|
|
261
263
|
i0.ɵɵlistener("close", function UserViewGridComponent_div_11_kendo_window_2_Template_kendo_window_close_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.closeCompareDialog($event)); });
|
|
262
|
-
i0.ɵɵelementStart(1, "div",
|
|
263
|
-
i0.ɵɵelement(2, "mj-compare-records",
|
|
264
|
+
i0.ɵɵelementStart(1, "div", 37);
|
|
265
|
+
i0.ɵɵelement(2, "mj-compare-records", 38, 5);
|
|
264
266
|
i0.ɵɵelementEnd();
|
|
265
|
-
i0.ɵɵelementStart(4, "div",
|
|
266
|
-
i0.ɵɵtemplate(5, UserViewGridComponent_div_11_kendo_window_2_button_5_Template, 2, 0, "button",
|
|
267
|
+
i0.ɵɵelementStart(4, "div", 39);
|
|
268
|
+
i0.ɵɵtemplate(5, UserViewGridComponent_div_11_kendo_window_2_button_5_Template, 2, 0, "button", 40)(6, UserViewGridComponent_div_11_kendo_window_2_button_6_Template, 2, 0, "button", 40)(7, UserViewGridComponent_div_11_kendo_window_2_button_7_Template, 2, 0, "button", 41)(8, UserViewGridComponent_div_11_kendo_window_2_button_8_Template, 2, 0, "button", 41);
|
|
267
269
|
i0.ɵɵelementEnd();
|
|
268
|
-
i0.ɵɵtemplate(9, UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog",
|
|
270
|
+
i0.ɵɵtemplate(9, UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog", 42);
|
|
269
271
|
i0.ɵɵelementEnd();
|
|
270
272
|
} if (rf & 2) {
|
|
271
273
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
@@ -287,78 +289,87 @@ function UserViewGridComponent_div_11_kendo_window_2_Template(rf, ctx) { if (rf
|
|
|
287
289
|
} }
|
|
288
290
|
function UserViewGridComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
289
291
|
i0.ɵɵelementStart(0, "div");
|
|
290
|
-
i0.ɵɵelement(1, "div",
|
|
291
|
-
i0.ɵɵtemplate(2, UserViewGridComponent_div_11_kendo_window_2_Template, 10, 18, "kendo-window",
|
|
292
|
+
i0.ɵɵelement(1, "div", 34);
|
|
293
|
+
i0.ɵɵtemplate(2, UserViewGridComponent_div_11_kendo_window_2_Template, 10, 18, "kendo-window", 35);
|
|
292
294
|
i0.ɵɵelementEnd();
|
|
293
295
|
} if (rf & 2) {
|
|
294
296
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
295
297
|
i0.ɵɵadvance(2);
|
|
296
298
|
i0.ɵɵproperty("ngIf", ctx_r3.isCompareDialogOpened);
|
|
297
299
|
} }
|
|
298
|
-
function
|
|
299
|
-
i0.ɵɵelement(0, "kendo-loader",
|
|
300
|
+
function UserViewGridComponent_kendo_dialog_12_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
301
|
+
i0.ɵɵelement(0, "kendo-loader", 54);
|
|
300
302
|
} }
|
|
301
|
-
function
|
|
303
|
+
function UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
302
304
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
303
|
-
i0.ɵɵelementStart(0, "button",
|
|
304
|
-
i0.ɵɵlistener("click", function
|
|
305
|
-
i0.ɵɵelement(1, "span",
|
|
305
|
+
i0.ɵɵelementStart(0, "button", 61);
|
|
306
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const listEntity_r22 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.removeFromList(listEntity_r22)); });
|
|
307
|
+
i0.ɵɵelement(1, "span", 62);
|
|
306
308
|
i0.ɵɵtext(2, " Remove ");
|
|
307
309
|
i0.ɵɵelementEnd();
|
|
308
310
|
} }
|
|
309
|
-
function
|
|
311
|
+
function UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
310
312
|
const _r23 = i0.ɵɵgetCurrentView();
|
|
311
|
-
i0.ɵɵelementStart(0, "button",
|
|
312
|
-
i0.ɵɵlistener("click", function
|
|
313
|
-
i0.ɵɵ
|
|
314
|
-
i0.ɵɵ
|
|
315
|
-
i0.ɵɵ
|
|
313
|
+
i0.ɵɵelementStart(0, "button", 63);
|
|
314
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const listEntity_r22 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.addToList(listEntity_r22)); });
|
|
315
|
+
i0.ɵɵelementStart(1, "div", 64);
|
|
316
|
+
i0.ɵɵelement(2, "span", 52);
|
|
317
|
+
i0.ɵɵtext(3, " Add ");
|
|
318
|
+
i0.ɵɵelementEnd()();
|
|
316
319
|
} }
|
|
317
|
-
function
|
|
318
|
-
i0.ɵɵelementStart(0, "div",
|
|
319
|
-
i0.ɵɵtext(
|
|
320
|
-
i0.ɵɵ
|
|
320
|
+
function UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
321
|
+
i0.ɵɵelementStart(0, "div", 57)(1, "div", 58);
|
|
322
|
+
i0.ɵɵtext(2);
|
|
323
|
+
i0.ɵɵelementEnd();
|
|
324
|
+
i0.ɵɵtemplate(3, UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Conditional_3_Template, 3, 0, "button", 59)(4, UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Conditional_4_Template, 4, 0, "button", 60);
|
|
321
325
|
i0.ɵɵelementEnd();
|
|
322
|
-
i0.ɵɵelement(
|
|
326
|
+
i0.ɵɵelement(5, "hr");
|
|
323
327
|
} if (rf & 2) {
|
|
324
328
|
const listEntity_r22 = ctx.$implicit;
|
|
325
329
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
326
330
|
i0.ɵɵadvance();
|
|
331
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c9, ctx_r3.selectedListEntities.includes(listEntity_r22)));
|
|
332
|
+
i0.ɵɵadvance();
|
|
327
333
|
i0.ɵɵtextInterpolate1(" ", listEntity_r22.Name, " ");
|
|
328
334
|
i0.ɵɵadvance();
|
|
329
|
-
i0.ɵɵconditional(ctx_r3.selectedListEntities.includes(listEntity_r22) ?
|
|
335
|
+
i0.ɵɵconditional(ctx_r3.selectedListEntities.includes(listEntity_r22) ? 3 : 4);
|
|
330
336
|
} }
|
|
331
|
-
function
|
|
332
|
-
i0.ɵɵrepeaterCreate(0,
|
|
337
|
+
function UserViewGridComponent_kendo_dialog_12_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
338
|
+
i0.ɵɵrepeaterCreate(0, UserViewGridComponent_kendo_dialog_12_Conditional_9_For_1_Template, 6, 5, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
333
339
|
} if (rf & 2) {
|
|
334
340
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
335
341
|
i0.ɵɵrepeater(ctx_r3.listEntities);
|
|
336
342
|
} }
|
|
337
343
|
function UserViewGridComponent_kendo_dialog_12_Template(rf, ctx) { if (rf & 1) {
|
|
338
344
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
339
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
345
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 48);
|
|
340
346
|
i0.ɵɵlistener("close", function UserViewGridComponent_kendo_dialog_12_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.toggleAddToListDialog(false)); });
|
|
341
|
-
i0.ɵɵelementStart(1, "div")(2, "kendo-textbox",
|
|
347
|
+
i0.ɵɵelementStart(1, "div", 49)(2, "kendo-textbox", 50);
|
|
342
348
|
i0.ɵɵlistener("valueChange", function UserViewGridComponent_kendo_dialog_12_Template_kendo_textbox_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onSearch($event)); });
|
|
349
|
+
i0.ɵɵelementEnd();
|
|
350
|
+
i0.ɵɵelementStart(3, "button", 51);
|
|
351
|
+
i0.ɵɵelement(4, "span", 52);
|
|
352
|
+
i0.ɵɵtext(5, " New List ");
|
|
343
353
|
i0.ɵɵelementEnd()();
|
|
344
|
-
i0.ɵɵ
|
|
345
|
-
i0.ɵɵ
|
|
354
|
+
i0.ɵɵelement(6, "hr");
|
|
355
|
+
i0.ɵɵelementStart(7, "div", 53);
|
|
356
|
+
i0.ɵɵtemplate(8, UserViewGridComponent_kendo_dialog_12_Conditional_8_Template, 1, 0, "kendo-loader", 54)(9, UserViewGridComponent_kendo_dialog_12_Conditional_9_Template, 2, 0);
|
|
346
357
|
i0.ɵɵelementEnd();
|
|
347
|
-
i0.ɵɵelementStart(
|
|
348
|
-
i0.ɵɵlistener("click", function
|
|
349
|
-
i0.ɵɵtext(
|
|
358
|
+
i0.ɵɵelementStart(10, "kendo-dialog-actions")(11, "button", 55);
|
|
359
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r20); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addRecordsToSelectedLists()); });
|
|
360
|
+
i0.ɵɵtext(12, " Save ");
|
|
350
361
|
i0.ɵɵelementEnd();
|
|
351
|
-
i0.ɵɵelementStart(
|
|
352
|
-
i0.ɵɵlistener("click", function
|
|
353
|
-
i0.ɵɵtext(
|
|
362
|
+
i0.ɵɵelementStart(13, "button", 56);
|
|
363
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r20); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.toggleAddToListDialog(false)); });
|
|
364
|
+
i0.ɵɵtext(14, " Cancel ");
|
|
354
365
|
i0.ɵɵelementEnd()()();
|
|
355
366
|
} if (rf & 2) {
|
|
356
367
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
357
|
-
i0.ɵɵproperty("minHeight",
|
|
368
|
+
i0.ɵɵproperty("minHeight", 500)("maxHeight", 500)("minWidth", 500)("maxWidth", 650);
|
|
358
369
|
i0.ɵɵadvance(2);
|
|
359
370
|
i0.ɵɵproperty("clearButton", true);
|
|
360
|
-
i0.ɵɵadvance(
|
|
361
|
-
i0.ɵɵconditional(ctx_r3.showAddToListLoader ?
|
|
371
|
+
i0.ɵɵadvance(6);
|
|
372
|
+
i0.ɵɵconditional(ctx_r3.showAddToListLoader ? 8 : 9);
|
|
362
373
|
i0.ɵɵadvance(3);
|
|
363
374
|
i0.ɵɵproperty("disabled", ctx_r3.showAddToListLoader);
|
|
364
375
|
i0.ɵɵadvance(2);
|
|
@@ -378,7 +389,7 @@ export class UserViewGridComponent {
|
|
|
378
389
|
if (this.Params && this.Params.ViewID)
|
|
379
390
|
return this.Params.ViewID;
|
|
380
391
|
else
|
|
381
|
-
return
|
|
392
|
+
return "";
|
|
382
393
|
}
|
|
383
394
|
/**
|
|
384
395
|
* 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
|
|
@@ -552,6 +563,7 @@ export class UserViewGridComponent {
|
|
|
552
563
|
// Export Functionality
|
|
553
564
|
this.exportColumns = [];
|
|
554
565
|
this.exportData = [];
|
|
566
|
+
this.showTemplatePreviewDialog = false;
|
|
555
567
|
this.entityFormDialog = null;
|
|
556
568
|
}
|
|
557
569
|
SaveView() {
|
|
@@ -650,8 +662,6 @@ export class UserViewGridComponent {
|
|
|
650
662
|
for (const col of args) {
|
|
651
663
|
const c = col.column;
|
|
652
664
|
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
665
|
if (viewCol)
|
|
656
666
|
viewCol.width = col.newWidth;
|
|
657
667
|
}
|
|
@@ -741,9 +751,10 @@ export class UserViewGridComponent {
|
|
|
741
751
|
createFormGroup(dataItem) {
|
|
742
752
|
const groupFields = {};
|
|
743
753
|
this.viewColumns.forEach((vc) => {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
vc.EntityField.
|
|
754
|
+
var _a, _b, _c;
|
|
755
|
+
if (((_a = vc.EntityField) === null || _a === void 0 ? void 0 : _a.AllowUpdateAPI) &&
|
|
756
|
+
((_b = vc.EntityField) === null || _b === void 0 ? void 0 : _b.IsVirtual) === false &&
|
|
757
|
+
((_c = vc.EntityField) === null || _c === void 0 ? void 0 : _c.AllowUpdateInView))
|
|
747
758
|
groupFields[vc.Name] = dataItem[vc.Name];
|
|
748
759
|
});
|
|
749
760
|
return this.formBuilder.group(groupFields);
|
|
@@ -930,7 +941,7 @@ export class UserViewGridComponent {
|
|
|
930
941
|
}
|
|
931
942
|
else if (!params.ViewEntity && (params.ViewID || params.ViewName)) {
|
|
932
943
|
// 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) {
|
|
944
|
+
if (params.ViewID && params.ViewID.length > 0) {
|
|
934
945
|
this._viewEntity = (yield ViewInfo.GetViewEntity(params.ViewID));
|
|
935
946
|
}
|
|
936
947
|
else if (params.ViewName) {
|
|
@@ -978,7 +989,7 @@ export class UserViewGridComponent {
|
|
|
978
989
|
});
|
|
979
990
|
if (cols) {
|
|
980
991
|
this.viewColumns = cols;
|
|
981
|
-
const tempCols = cols.filter(x => x.hidden === false).sort((a, b) => {
|
|
992
|
+
const tempCols = cols.filter(x => x.hidden === false && x.EntityField /*make sure there is an entity field linked*/).sort((a, b) => {
|
|
982
993
|
const aOrder = a.orderIndex != null ? a.orderIndex : 9999;
|
|
983
994
|
const bOrder = b.orderIndex != null ? b.orderIndex : 9999;
|
|
984
995
|
return aOrder - bOrder;
|
|
@@ -1014,15 +1025,17 @@ export class UserViewGridComponent {
|
|
|
1014
1025
|
});
|
|
1015
1026
|
}
|
|
1016
1027
|
GetColumnTitle(col) {
|
|
1028
|
+
var _a;
|
|
1017
1029
|
if (col.DisplayName)
|
|
1018
1030
|
return col.DisplayName; // use view's display name first if it exists
|
|
1019
|
-
else if (col.EntityField.DisplayName)
|
|
1031
|
+
else if ((_a = col.EntityField) === null || _a === void 0 ? void 0 : _a.DisplayName)
|
|
1020
1032
|
return col.EntityField.DisplayName; // then use entity display name, if that exist
|
|
1021
1033
|
else
|
|
1022
1034
|
return col.Name; // otherwise just use the column name
|
|
1023
1035
|
}
|
|
1024
1036
|
GetColumnCellStyle(col) {
|
|
1025
|
-
|
|
1037
|
+
var _a;
|
|
1038
|
+
switch ((_a = col.EntityField) === null || _a === void 0 ? void 0 : _a.Type.trim().toLowerCase()) {
|
|
1026
1039
|
case "money":
|
|
1027
1040
|
case 'decimal':
|
|
1028
1041
|
case 'real':
|
|
@@ -1254,26 +1267,35 @@ export class UserViewGridComponent {
|
|
|
1254
1267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1255
1268
|
if (!this.Params)
|
|
1256
1269
|
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
|
-
|
|
1270
|
+
this.showTemplatePreviewDialog = true;
|
|
1271
|
+
// const msg: Message = new Message();
|
|
1272
|
+
// msg.From = "amith@bluecypress.io"
|
|
1273
|
+
// msg.Body = "This is a test message";
|
|
1274
|
+
// msg.Subject = "Test Subject";
|
|
1275
|
+
// const sendGrid = CommunicationEngineBase.Instance.Providers.find(p => p.Name === "SendGrid")
|
|
1276
|
+
// if (!sendGrid)
|
|
1277
|
+
// throw new Error("SendGrid provider not found");
|
|
1278
|
+
// const email = sendGrid.MessageTypes.find(mt => mt.Name === "Email");
|
|
1279
|
+
// if (!email)
|
|
1280
|
+
// throw new Error("Email message type not found");
|
|
1281
|
+
// msg.MessageType = email;
|
|
1282
|
+
// msg.HTMLBodyTemplate = TemplateEngineBase.Instance.FindTemplate('User/Roles Demo')
|
|
1283
|
+
// msg.SubjectTemplate = TemplateEngineBase.Instance.FindTemplate('Test Subject Template')
|
|
1284
|
+
// const commParams: EntityCommunicationParams = {
|
|
1285
|
+
// EntityID: this._entityInfo!.ID,
|
|
1286
|
+
// RunViewParams: this.Params,
|
|
1287
|
+
// ProviderName: "SendGrid",
|
|
1288
|
+
// ProviderMessageTypeName: "Email",
|
|
1289
|
+
// Message: msg,
|
|
1290
|
+
// PreviewOnly: true,
|
|
1291
|
+
// IncludeProcessedMessages: true
|
|
1292
|
+
// }
|
|
1293
|
+
// const result = await EntityCommunicationsEngineClient.Instance.RunEntityCommunication(commParams);
|
|
1294
|
+
// if (result && result.Success) {
|
|
1295
|
+
// this.CreateSimpleNotification("Communication Sent", 'success', 2000)
|
|
1296
|
+
// }
|
|
1297
|
+
// else
|
|
1298
|
+
// this.CreateSimpleNotification("Error sending communication", 'error', 5000)
|
|
1277
1299
|
});
|
|
1278
1300
|
}
|
|
1279
1301
|
get EntitySupportsCommunication() {
|
|
@@ -1350,7 +1372,7 @@ export class UserViewGridComponent {
|
|
|
1350
1372
|
const rv = new RunView();
|
|
1351
1373
|
const rvResult = yield rv.RunView({
|
|
1352
1374
|
EntityName: 'Lists',
|
|
1353
|
-
ExtraFilter: `UserID = ${md.CurrentUser.ID} AND EntityID = ${this._entityInfo.ID}`,
|
|
1375
|
+
ExtraFilter: `UserID = '${md.CurrentUser.ID}' AND EntityID = '${this._entityInfo.ID}'`,
|
|
1354
1376
|
ResultType: 'entity_object'
|
|
1355
1377
|
});
|
|
1356
1378
|
if (!rvResult.Success) {
|
|
@@ -1448,22 +1470,25 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1448
1470
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.analysisResults = _t.first);
|
|
1449
1471
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.compareDialogContainer = _t.first);
|
|
1450
1472
|
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:
|
|
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: 17, vars: 24, consts: [["kendoGrid", ""], ["excelExport", ""], ["compareDialogContainer", ""], ["entityFormDialog", ""], ["templatePreviewDialog", ""], ["recordCompareRef", ""], ["mjFillContainer", "", 1, "user-view-grid-wrap"], ["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"], [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"], ["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
1474
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1453
|
-
i0.ɵɵelementStart(0, "div",
|
|
1475
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "kendo-grid", 7, 0);
|
|
1454
1476
|
i0.ɵɵlistener("pageChange", function UserViewGridComponent_Template_kendo_grid_pageChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageChange($event)); });
|
|
1455
1477
|
i0.ɵɵtwoWayListener("selectedKeysChange", function UserViewGridComponent_Template_kendo_grid_selectedKeysChange_1_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.selectedKeys, $event) || (ctx.selectedKeys = $event); return i0.ɵɵresetView($event); });
|
|
1456
1478
|
i0.ɵɵlistener("cellClick", function UserViewGridComponent_Template_kendo_grid_cellClick_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cellClickHandler($event)); })("cellClose", function UserViewGridComponent_Template_kendo_grid_cellClose_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cellCloseHandler($event)); })("columnReorder", function UserViewGridComponent_Template_kendo_grid_columnReorder_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.columnReorder($event)); })("columnResize", function UserViewGridComponent_Template_kendo_grid_columnResize_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.columnResize($event)); })("selectionChange", function UserViewGridComponent_Template_kendo_grid_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.selectionChange($event)); })("sortChange", function UserViewGridComponent_Template_kendo_grid_sortChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.sortChanged($event)); });
|
|
1457
|
-
i0.ɵɵtemplate(3, UserViewGridComponent_ng_template_3_Template, 6, 6, "ng-template",
|
|
1458
|
-
i0.ɵɵelementStart(6, "kendo-excelexport",
|
|
1459
|
-
i0.ɵɵtemplate(8, UserViewGridComponent_kendo_excelexport_column_8_Template, 1, 2, "kendo-excelexport-column",
|
|
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);
|
|
1460
1482
|
i0.ɵɵelementEnd()();
|
|
1461
1483
|
i0.ɵɵelementStart(9, "div", null, 2);
|
|
1462
|
-
i0.ɵɵtemplate(11, UserViewGridComponent_div_11_Template, 3, 1, "div",
|
|
1484
|
+
i0.ɵɵtemplate(11, UserViewGridComponent_div_11_Template, 3, 1, "div", 13);
|
|
1463
1485
|
i0.ɵɵelementEnd();
|
|
1464
|
-
i0.ɵɵtemplate(12, UserViewGridComponent_kendo_dialog_12_Template,
|
|
1486
|
+
i0.ɵɵtemplate(12, UserViewGridComponent_kendo_dialog_12_Template, 15, 8, "kendo-dialog", 14);
|
|
1487
|
+
i0.ɵɵelementEnd();
|
|
1488
|
+
i0.ɵɵelement(13, "mj-entity-form-dialog", 15, 3);
|
|
1489
|
+
i0.ɵɵelementStart(15, "mj-entity-communications-preview-window", 16, 4);
|
|
1490
|
+
i0.ɵɵlistener("DialogClosed", function UserViewGridComponent_Template_mj_entity_communications_preview_window_DialogClosed_15_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.showTemplatePreviewDialog = false); });
|
|
1465
1491
|
i0.ɵɵelementEnd();
|
|
1466
|
-
i0.ɵɵelement(13, "mj-entity-form-dialog", 14, 3);
|
|
1467
1492
|
} if (rf & 2) {
|
|
1468
1493
|
i0.ɵɵadvance();
|
|
1469
1494
|
i0.ɵɵproperty("resizable", true)("data", ctx.gridView)("skip", ctx.skip)("pageSize", ctx.pageSize)("rowHeight", 36)("loading", ctx.isLoading)("height", ctx.gridHeight)("sortable", true)("sort", ctx.sortSettings)("resizable", true)("reorderable", true)("selectable", true);
|
|
@@ -1482,10 +1507,12 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1482
1507
|
i0.ɵɵproperty("ngIf", ctx.showAddToListDialog);
|
|
1483
1508
|
i0.ɵɵadvance();
|
|
1484
1509
|
i0.ɵɵproperty("Visible", ctx.showNewRecordDialog);
|
|
1485
|
-
|
|
1510
|
+
i0.ɵɵadvance(2);
|
|
1511
|
+
i0.ɵɵproperty("DialogVisible", ctx.showTemplatePreviewDialog)("entityInfo", ctx._entityInfo)("runViewParams", ctx.Params);
|
|
1512
|
+
} }, 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
1513
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridComponent, [{
|
|
1487
1514
|
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}"] }]
|
|
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}"] }]
|
|
1489
1516
|
}], () => [{ type: i0.ElementRef }, { type: i1.FormBuilder }, { type: i2.Router }, { type: i0.Renderer2 }], { Params: [{
|
|
1490
1517
|
type: Input
|
|
1491
1518
|
}], BottomMargin: [{
|
|
@@ -1535,4 +1562,4 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1535
1562
|
type: ViewChild,
|
|
1536
1563
|
args: ['entityFormDialog']
|
|
1537
1564
|
}] }); })();
|
|
1538
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent"
|
|
1565
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent" }); })();
|
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": "
|
|
3
|
+
"version": "2.0.0",
|
|
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": "
|
|
29
|
-
"@memberjunction/global": "
|
|
30
|
-
"@memberjunction/core": "
|
|
31
|
-
"@memberjunction/ng-shared": "
|
|
32
|
-
"@memberjunction/ng-entity-form-dialog": "
|
|
33
|
-
"@memberjunction/ng-compare-records": "
|
|
34
|
-
"@memberjunction/ng-container-directives": "
|
|
35
|
-
"@memberjunction/entity-communications-client": "
|
|
36
|
-
"@memberjunction/ng-
|
|
28
|
+
"@memberjunction/core-entities": "2.0.0",
|
|
29
|
+
"@memberjunction/global": "2.0.0",
|
|
30
|
+
"@memberjunction/core": "2.0.0",
|
|
31
|
+
"@memberjunction/ng-shared": "2.0.0",
|
|
32
|
+
"@memberjunction/ng-entity-form-dialog": "2.0.0",
|
|
33
|
+
"@memberjunction/ng-compare-records": "2.0.0",
|
|
34
|
+
"@memberjunction/ng-container-directives": "2.0.0",
|
|
35
|
+
"@memberjunction/entity-communications-client": "2.0.0",
|
|
36
|
+
"@memberjunction/ng-entity-communications": "2.0.0",
|
|
37
|
+
"@memberjunction/ng-base-types": "2.0.0",
|
|
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",
|