@memberjunction/ng-user-view-grid 1.5.2 → 1.5.4
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.
|
@@ -46,6 +46,10 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
46
46
|
* If set to true, the Create New Record button will be displayed if the user is allowed to create new records for the entity being shown. If set to false, the Create New Record button will be hidden.
|
|
47
47
|
*/
|
|
48
48
|
ShowCreateNewRecordButton: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If set to true, and if the entity being displayed supports communication, the communication button will be displayed. If set to false, the communication button will be hidden.
|
|
51
|
+
*/
|
|
52
|
+
ShowCommunicationButton: boolean;
|
|
49
53
|
/**
|
|
50
54
|
* When set to Dialog, the Create New Record button will open a dialog to create a new record. When set to Tab, the Create New Record button will open a new tab to create a new record.
|
|
51
55
|
*/
|
|
@@ -153,6 +157,11 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
153
157
|
exportData: any[];
|
|
154
158
|
doExcelExport(): Promise<void>;
|
|
155
159
|
protected getExportData(): Promise<any[]>;
|
|
160
|
+
/**
|
|
161
|
+
* Handles communication functionality for a given view, only available if the entity being displayed supports communication.
|
|
162
|
+
*/
|
|
163
|
+
doCommunication(): Promise<void>;
|
|
164
|
+
get EntitySupportsCommunication(): boolean;
|
|
156
165
|
entityFormDialog: EntityFormDialogComponent | null;
|
|
157
166
|
/**
|
|
158
167
|
* This method will create a new record of the given entity type. It will only work if the User has the ability to create records of
|
|
@@ -169,6 +178,6 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
169
178
|
private setupSearchDebounce;
|
|
170
179
|
private search;
|
|
171
180
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridComponent, never>;
|
|
172
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserViewGridComponent, "mj-user-view-grid", never, { "Params": { "alias": "Params"; "required": false; }; "BottomMargin": { "alias": "BottomMargin"; "required": false; }; "InEditMode": { "alias": "InEditMode"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "AutoNavigate": { "alias": "AutoNavigate"; "required": false; }; "NewRecordValues": { "alias": "NewRecordValues"; "required": false; }; "ShowCreateNewRecordButton": { "alias": "ShowCreateNewRecordButton"; "required": false; }; "CreateRecordMode": { "alias": "CreateRecordMode"; "required": false; }; "AllowLoad": { "alias": "AllowLoad"; "required": false; }; }, { "rowClicked": "rowClicked"; "rowEdited": "rowEdited"; }, never, never, false, never>;
|
|
181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserViewGridComponent, "mj-user-view-grid", never, { "Params": { "alias": "Params"; "required": false; }; "BottomMargin": { "alias": "BottomMargin"; "required": false; }; "InEditMode": { "alias": "InEditMode"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "AutoNavigate": { "alias": "AutoNavigate"; "required": false; }; "NewRecordValues": { "alias": "NewRecordValues"; "required": false; }; "ShowCreateNewRecordButton": { "alias": "ShowCreateNewRecordButton"; "required": false; }; "ShowCommunicationButton": { "alias": "ShowCommunicationButton"; "required": false; }; "CreateRecordMode": { "alias": "CreateRecordMode"; "required": false; }; "AllowLoad": { "alias": "AllowLoad"; "required": false; }; }, { "rowClicked": "rowClicked"; "rowEdited": "rowEdited"; }, never, never, false, never>;
|
|
173
182
|
}
|
|
174
183
|
//# sourceMappingURL=ng-user-view-grid.component.d.ts.map
|
|
@@ -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,EAA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gB,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;yCA/oCT,qBAAqB;2CAArB,qBAAqB;CA0pCjC"}
|
|
@@ -18,6 +18,9 @@ import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
|
|
|
18
18
|
import { MJEventType, MJGlobal } from '@memberjunction/global';
|
|
19
19
|
import { TextAreaComponent } from '@progress/kendo-angular-inputs';
|
|
20
20
|
import { BaseFormComponentEventCodes, SharedService } from '@memberjunction/ng-shared';
|
|
21
|
+
import { EntityCommunicationsEngineClient } from '@memberjunction/entity-communications-client';
|
|
22
|
+
import { CommunicationEngineBase, Message } from '@memberjunction/communication-types';
|
|
23
|
+
import { TemplateEngineBase } from '@memberjunction/templates-base-types';
|
|
21
24
|
import * as i0 from "@angular/core";
|
|
22
25
|
import * as i1 from "@angular/forms";
|
|
23
26
|
import * as i2 from "@angular/router";
|
|
@@ -38,124 +41,133 @@ const _c3 = ["analysisQuestion"];
|
|
|
38
41
|
const _c4 = ["analysisResults"];
|
|
39
42
|
const _c5 = ["compareDialogContainer"];
|
|
40
43
|
const _c6 = ["entityFormDialog"];
|
|
44
|
+
const _c7 = () => ({ "text-align": "center", "vertical-align": "center" });
|
|
45
|
+
const _c8 = () => ({ "font-weight": "bold", "background-color": "white" });
|
|
41
46
|
function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
-
const
|
|
43
|
-
i0.ɵɵelementStart(0, "button",
|
|
44
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
45
|
-
i0.ɵɵelement(1, "span",
|
|
47
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
48
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
49
|
+
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()); });
|
|
50
|
+
i0.ɵɵelement(1, "span", 22);
|
|
46
51
|
i0.ɵɵtext(2);
|
|
47
52
|
i0.ɵɵelementEnd();
|
|
48
53
|
} if (rf & 2) {
|
|
49
|
-
const
|
|
54
|
+
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
50
55
|
i0.ɵɵadvance(2);
|
|
51
|
-
i0.ɵɵtextInterpolate1(" New ",
|
|
56
|
+
i0.ɵɵtextInterpolate1(" New ", ctx_r3.entityRecord == null ? null : ctx_r3.entityRecord.EntityInfo == null ? null : ctx_r3.entityRecord.EntityInfo.Name, " ");
|
|
52
57
|
} }
|
|
53
58
|
function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
-
const
|
|
55
|
-
i0.ɵɵelementStart(0, "button",
|
|
56
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
59
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
60
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
61
|
+
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()); });
|
|
57
62
|
i0.ɵɵelement(1, "span", 23);
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
} }
|
|
65
|
+
function UserViewGridComponent_ng_template_3_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
67
|
+
i0.ɵɵelementStart(0, "button", 24);
|
|
68
|
+
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()); });
|
|
69
|
+
i0.ɵɵelement(1, "span", 25);
|
|
58
70
|
i0.ɵɵtext(2, " Refresh ");
|
|
59
71
|
i0.ɵɵelementEnd();
|
|
60
72
|
} }
|
|
61
73
|
function UserViewGridComponent_ng_template_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
-
const
|
|
63
|
-
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template, 3, 1, "button",
|
|
64
|
-
i0.ɵɵelementStart(1, "button",
|
|
65
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
66
|
-
i0.ɵɵelement(2, "span",
|
|
74
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
75
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_0_Template, 3, 1, "button", 17);
|
|
76
|
+
i0.ɵɵelementStart(1, "button", 18);
|
|
77
|
+
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()); });
|
|
78
|
+
i0.ɵɵelement(2, "span", 19);
|
|
67
79
|
i0.ɵɵtext(3, " Export to Excel ");
|
|
68
80
|
i0.ɵɵelementEnd();
|
|
69
|
-
i0.ɵɵelementStart(4, "button",
|
|
70
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
81
|
+
i0.ɵɵelementStart(4, "button", 20);
|
|
82
|
+
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")); });
|
|
71
83
|
i0.ɵɵtext(5, " Search For Duplicates ");
|
|
72
84
|
i0.ɵɵelementEnd();
|
|
73
|
-
i0.ɵɵelementStart(6, "button",
|
|
74
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
85
|
+
i0.ɵɵelementStart(6, "button", 20);
|
|
86
|
+
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")); });
|
|
75
87
|
i0.ɵɵtext(7, " Add To List ");
|
|
76
88
|
i0.ɵɵelementEnd();
|
|
77
|
-
i0.ɵɵelementStart(8, "button",
|
|
78
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_8_listener() { i0.ɵɵrestoreView(
|
|
89
|
+
i0.ɵɵelementStart(8, "button", 20);
|
|
90
|
+
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")); });
|
|
79
91
|
i0.ɵɵtext(9, " Merge ");
|
|
80
92
|
i0.ɵɵelementEnd();
|
|
81
|
-
i0.ɵɵelementStart(10, "button",
|
|
82
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_0_Template_button_click_10_listener() { i0.ɵɵrestoreView(
|
|
93
|
+
i0.ɵɵelementStart(10, "button", 20);
|
|
94
|
+
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")); });
|
|
83
95
|
i0.ɵɵtext(11, " Compare ");
|
|
84
96
|
i0.ɵɵelementEnd();
|
|
85
|
-
i0.ɵɵtemplate(12, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template, 3, 0, "button",
|
|
97
|
+
i0.ɵɵtemplate(12, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_12_Template, 2, 0, "button", 16)(13, UserViewGridComponent_ng_template_3_Conditional_0_Conditional_13_Template, 3, 0, "button", 21);
|
|
86
98
|
} if (rf & 2) {
|
|
87
|
-
const
|
|
88
|
-
i0.ɵɵconditional(
|
|
99
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
100
|
+
i0.ɵɵconditional(ctx_r3.ShowCreateNewRecordButton && ctx_r3.UserCanCreateNewRecord ? 0 : -1);
|
|
89
101
|
i0.ɵɵadvance(12);
|
|
90
|
-
i0.ɵɵconditional(
|
|
102
|
+
i0.ɵɵconditional(ctx_r3.ShowCommunicationButton && ctx_r3.EntitySupportsCommunication ? 12 : -1);
|
|
103
|
+
i0.ɵɵadvance();
|
|
104
|
+
i0.ɵɵconditional(ctx_r3.showRefreshButton ? 13 : -1);
|
|
91
105
|
} }
|
|
92
106
|
function UserViewGridComponent_ng_template_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
93
|
-
const
|
|
94
|
-
i0.ɵɵelementStart(0, "button",
|
|
95
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
107
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
108
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
109
|
+
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")); });
|
|
96
110
|
i0.ɵɵtext(1, " Search For Duplicates ");
|
|
97
111
|
i0.ɵɵelementEnd();
|
|
98
112
|
} if (rf & 2) {
|
|
99
|
-
const
|
|
100
|
-
i0.ɵɵproperty("disabled",
|
|
113
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
114
|
+
i0.ɵɵproperty("disabled", ctx_r3.duplicateMode && ctx_r3.recordsToCompare.length < 2);
|
|
101
115
|
} }
|
|
102
116
|
function UserViewGridComponent_ng_template_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
-
const
|
|
104
|
-
i0.ɵɵelementStart(0, "button",
|
|
105
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
117
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
118
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
119
|
+
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")); });
|
|
106
120
|
i0.ɵɵtext(1, " Add To List ");
|
|
107
121
|
i0.ɵɵelementEnd();
|
|
108
122
|
} if (rf & 2) {
|
|
109
|
-
const
|
|
110
|
-
i0.ɵɵproperty("disabled",
|
|
123
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
124
|
+
i0.ɵɵproperty("disabled", ctx_r3.addToListMode && ctx_r3.recordsToCompare.length === 0);
|
|
111
125
|
} }
|
|
112
126
|
function UserViewGridComponent_ng_template_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
113
|
-
const
|
|
114
|
-
i0.ɵɵelementStart(0, "button",
|
|
115
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
127
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
128
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
129
|
+
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")); });
|
|
116
130
|
i0.ɵɵtext(1, " Compare ");
|
|
117
131
|
i0.ɵɵelementEnd();
|
|
118
132
|
} if (rf & 2) {
|
|
119
|
-
const
|
|
120
|
-
i0.ɵɵproperty("disabled",
|
|
133
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
134
|
+
i0.ɵɵproperty("disabled", ctx_r3.compareMode && ctx_r3.recordsToCompare.length < 2);
|
|
121
135
|
} }
|
|
122
136
|
function UserViewGridComponent_ng_template_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
123
|
-
const
|
|
124
|
-
i0.ɵɵelementStart(0, "button",
|
|
125
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
137
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
138
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
139
|
+
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")); });
|
|
126
140
|
i0.ɵɵtext(1, " Merge ");
|
|
127
141
|
i0.ɵɵelementEnd();
|
|
128
142
|
} if (rf & 2) {
|
|
129
|
-
const
|
|
130
|
-
i0.ɵɵproperty("disabled",
|
|
143
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
144
|
+
i0.ɵɵproperty("disabled", ctx_r3.mergeMode && ctx_r3.recordsToCompare.length < 2);
|
|
131
145
|
} }
|
|
132
146
|
function UserViewGridComponent_ng_template_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
133
|
-
const
|
|
134
|
-
i0.ɵɵelementStart(0, "button",
|
|
135
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
147
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
148
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
149
|
+
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, "")); });
|
|
136
150
|
i0.ɵɵtext(1, " Cancel ");
|
|
137
151
|
i0.ɵɵelementEnd();
|
|
138
152
|
} }
|
|
139
153
|
function UserViewGridComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
-
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Template,
|
|
154
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_Conditional_0_Template, 14, 3)(1, UserViewGridComponent_ng_template_3_Conditional_1_Template, 2, 1, "button", 15)(2, UserViewGridComponent_ng_template_3_Conditional_2_Template, 2, 1, "button", 15)(3, UserViewGridComponent_ng_template_3_Conditional_3_Template, 2, 1, "button", 15)(4, UserViewGridComponent_ng_template_3_Conditional_4_Template, 2, 1, "button", 15)(5, UserViewGridComponent_ng_template_3_Conditional_5_Template, 2, 0, "button", 16);
|
|
141
155
|
} if (rf & 2) {
|
|
142
|
-
const
|
|
143
|
-
i0.ɵɵconditional(
|
|
156
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
157
|
+
i0.ɵɵconditional(!ctx_r3.anyModeEnabled ? 0 : -1);
|
|
144
158
|
i0.ɵɵadvance();
|
|
145
|
-
i0.ɵɵconditional(
|
|
159
|
+
i0.ɵɵconditional(ctx_r3.duplicateMode ? 1 : -1);
|
|
146
160
|
i0.ɵɵadvance();
|
|
147
|
-
i0.ɵɵconditional(
|
|
161
|
+
i0.ɵɵconditional(ctx_r3.addToListMode ? 2 : -1);
|
|
148
162
|
i0.ɵɵadvance();
|
|
149
|
-
i0.ɵɵconditional(
|
|
163
|
+
i0.ɵɵconditional(ctx_r3.compareMode ? 3 : -1);
|
|
150
164
|
i0.ɵɵadvance();
|
|
151
|
-
i0.ɵɵconditional(
|
|
165
|
+
i0.ɵɵconditional(ctx_r3.mergeMode ? 4 : -1);
|
|
152
166
|
i0.ɵɵadvance();
|
|
153
|
-
i0.ɵɵconditional(
|
|
167
|
+
i0.ɵɵconditional(ctx_r3.anyModeEnabled ? 5 : -1);
|
|
154
168
|
} }
|
|
155
|
-
const _c7 = () => ({ "text-align": "center", "vertical-align": "center" });
|
|
156
|
-
const _c8 = () => ({ "font-weight": "bold", "background-color": "white" });
|
|
157
169
|
function UserViewGridComponent_kendo_grid_checkbox_column_4_Template(rf, ctx) { if (rf & 1) {
|
|
158
|
-
i0.ɵɵelement(0, "kendo-grid-checkbox-column",
|
|
170
|
+
i0.ɵɵelement(0, "kendo-grid-checkbox-column", 27);
|
|
159
171
|
} if (rf & 2) {
|
|
160
172
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c7));
|
|
161
173
|
i0.ɵɵproperty("width", 50)("headerStyle", i0.ɵɵpureFunction0(5, _c8));
|
|
@@ -165,191 +177,191 @@ function UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template(rf,
|
|
|
165
177
|
i0.ɵɵpipe(1, "number");
|
|
166
178
|
i0.ɵɵpipe(2, "number");
|
|
167
179
|
i0.ɵɵelement(3, "br");
|
|
168
|
-
i0.ɵɵelementStart(4, "span",
|
|
180
|
+
i0.ɵɵelementStart(4, "span", 30);
|
|
169
181
|
i0.ɵɵtext(5);
|
|
170
182
|
i0.ɵɵpipe(6, "number");
|
|
171
183
|
i0.ɵɵelementEnd();
|
|
172
184
|
} if (rf & 2) {
|
|
173
|
-
const
|
|
174
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3,
|
|
185
|
+
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
186
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3, ctx_r3.viewData.length), "", ctx_r3.totalRowCount > ctx_r3.viewData.length ? " of " + i0.ɵɵpipeBind1(2, 5, ctx_r3.totalRowCount) : " rows", "");
|
|
175
187
|
i0.ɵɵadvance(5);
|
|
176
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7,
|
|
188
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r3.viewExecutionTime, "1.2-2"), " seconds");
|
|
177
189
|
} }
|
|
178
190
|
function UserViewGridComponent_kendo_grid_column_5_1_Template(rf, ctx) { if (rf & 1) {
|
|
179
|
-
i0.ɵɵtemplate(0, UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template, 7, 10, "ng-template",
|
|
191
|
+
i0.ɵɵtemplate(0, UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template, 7, 10, "ng-template", 29);
|
|
180
192
|
} }
|
|
181
193
|
function UserViewGridComponent_kendo_grid_column_5_Template(rf, ctx) { if (rf & 1) {
|
|
182
|
-
i0.ɵɵelementStart(0, "kendo-grid-column",
|
|
183
|
-
i0.ɵɵtemplate(1, UserViewGridComponent_kendo_grid_column_5_1_Template, 1, 0, null,
|
|
194
|
+
i0.ɵɵelementStart(0, "kendo-grid-column", 28);
|
|
195
|
+
i0.ɵɵtemplate(1, UserViewGridComponent_kendo_grid_column_5_1_Template, 1, 0, null, 12);
|
|
184
196
|
i0.ɵɵelementEnd();
|
|
185
197
|
} if (rf & 2) {
|
|
186
|
-
const
|
|
198
|
+
const item_r12 = ctx.$implicit;
|
|
187
199
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
188
|
-
i0.ɵɵstyleMap(ctx_r3.GetColumnCellStyle(
|
|
189
|
-
i0.ɵɵproperty("field",
|
|
200
|
+
i0.ɵɵstyleMap(ctx_r3.GetColumnCellStyle(item_r12));
|
|
201
|
+
i0.ɵɵproperty("field", item_r12.Name)("title", ctx_r3.GetColumnTitle(item_r12))("width", item_r12.width ? item_r12.width : 100)("editable", item_r12.EntityField.AllowUpdateAPI)("editor", ctx_r3.getEditor(item_r12.EntityField))("headerStyle", i0.ɵɵpureFunction0(9, _c8));
|
|
190
202
|
i0.ɵɵadvance();
|
|
191
|
-
i0.ɵɵproperty("ngIf",
|
|
203
|
+
i0.ɵɵproperty("ngIf", item_r12 === ctx_r3.visibleColumns[0]);
|
|
192
204
|
} }
|
|
193
205
|
function UserViewGridComponent_kendo_excelexport_column_8_Template(rf, ctx) { if (rf & 1) {
|
|
194
|
-
i0.ɵɵelement(0, "kendo-excelexport-column",
|
|
206
|
+
i0.ɵɵelement(0, "kendo-excelexport-column", 31);
|
|
195
207
|
} if (rf & 2) {
|
|
196
|
-
const
|
|
197
|
-
i0.ɵɵproperty("field",
|
|
208
|
+
const exportCol_r13 = ctx.$implicit;
|
|
209
|
+
i0.ɵɵproperty("field", exportCol_r13.Name)("title", exportCol_r13.Name);
|
|
198
210
|
} }
|
|
199
211
|
function UserViewGridComponent_div_11_kendo_window_2_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
-
const
|
|
201
|
-
i0.ɵɵelementStart(0, "button",
|
|
202
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
212
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
213
|
+
i0.ɵɵelementStart(0, "button", 41);
|
|
214
|
+
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")); });
|
|
203
215
|
i0.ɵɵtext(1, " Merge Records ");
|
|
204
216
|
i0.ɵɵelementEnd();
|
|
205
217
|
} }
|
|
206
218
|
function UserViewGridComponent_div_11_kendo_window_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
-
const
|
|
208
|
-
i0.ɵɵelementStart(0, "button",
|
|
209
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
219
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
220
|
+
i0.ɵɵelementStart(0, "button", 41);
|
|
221
|
+
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()); });
|
|
210
222
|
i0.ɵɵtext(1, " Search for Duplicates ");
|
|
211
223
|
i0.ɵɵelementEnd();
|
|
212
224
|
} }
|
|
213
225
|
function UserViewGridComponent_div_11_kendo_window_2_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
214
|
-
const
|
|
215
|
-
i0.ɵɵelementStart(0, "button",
|
|
216
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
226
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
227
|
+
i0.ɵɵelementStart(0, "button", 42);
|
|
228
|
+
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")); });
|
|
217
229
|
i0.ɵɵtext(1, " Close ");
|
|
218
230
|
i0.ɵɵelementEnd();
|
|
219
231
|
} }
|
|
220
232
|
function UserViewGridComponent_div_11_kendo_window_2_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
-
const
|
|
222
|
-
i0.ɵɵelementStart(0, "button",
|
|
223
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
233
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
234
|
+
i0.ɵɵelementStart(0, "button", 42);
|
|
235
|
+
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")); });
|
|
224
236
|
i0.ɵɵtext(1, " Cancel ");
|
|
225
237
|
i0.ɵɵelementEnd();
|
|
226
238
|
} }
|
|
227
239
|
function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
|
|
228
|
-
const
|
|
229
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
230
|
-
i0.ɵɵlistener("close", function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(
|
|
231
|
-
i0.ɵɵelementStart(1, "p",
|
|
240
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
241
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 43);
|
|
242
|
+
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")); });
|
|
243
|
+
i0.ɵɵelementStart(1, "p", 44);
|
|
232
244
|
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. ");
|
|
233
245
|
i0.ɵɵelementEnd();
|
|
234
|
-
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button",
|
|
235
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
246
|
+
i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button", 18);
|
|
247
|
+
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")); });
|
|
236
248
|
i0.ɵɵtext(5, "No");
|
|
237
249
|
i0.ɵɵelementEnd();
|
|
238
|
-
i0.ɵɵelementStart(6, "button",
|
|
239
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
250
|
+
i0.ɵɵelementStart(6, "button", 45);
|
|
251
|
+
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")); });
|
|
240
252
|
i0.ɵɵtext(7, " Yes ");
|
|
241
253
|
i0.ɵɵelementEnd()()();
|
|
242
254
|
} if (rf & 2) {
|
|
243
255
|
i0.ɵɵproperty("minWidth", 250)("width", 450);
|
|
244
256
|
} }
|
|
245
257
|
function UserViewGridComponent_div_11_kendo_window_2_Template(rf, ctx) { if (rf & 1) {
|
|
246
|
-
const
|
|
247
|
-
i0.ɵɵelementStart(0, "kendo-window",
|
|
248
|
-
i0.ɵɵlistener("close", function UserViewGridComponent_div_11_kendo_window_2_Template_kendo_window_close_0_listener($event) { i0.ɵɵrestoreView(
|
|
249
|
-
i0.ɵɵelementStart(1, "div",
|
|
250
|
-
i0.ɵɵelement(2, "mj-compare-records",
|
|
258
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
259
|
+
i0.ɵɵelementStart(0, "kendo-window", 34);
|
|
260
|
+
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)); });
|
|
261
|
+
i0.ɵɵelementStart(1, "div", 35);
|
|
262
|
+
i0.ɵɵelement(2, "mj-compare-records", 36, 4);
|
|
251
263
|
i0.ɵɵelementEnd();
|
|
252
|
-
i0.ɵɵelementStart(4, "div",
|
|
253
|
-
i0.ɵɵtemplate(5, UserViewGridComponent_div_11_kendo_window_2_button_5_Template, 2, 0, "button",
|
|
264
|
+
i0.ɵɵelementStart(4, "div", 37);
|
|
265
|
+
i0.ɵɵtemplate(5, UserViewGridComponent_div_11_kendo_window_2_button_5_Template, 2, 0, "button", 38)(6, UserViewGridComponent_div_11_kendo_window_2_button_6_Template, 2, 0, "button", 38)(7, UserViewGridComponent_div_11_kendo_window_2_button_7_Template, 2, 0, "button", 39)(8, UserViewGridComponent_div_11_kendo_window_2_button_8_Template, 2, 0, "button", 39);
|
|
254
266
|
i0.ɵɵelementEnd();
|
|
255
|
-
i0.ɵɵtemplate(9, UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog",
|
|
267
|
+
i0.ɵɵtemplate(9, UserViewGridComponent_div_11_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog", 40);
|
|
256
268
|
i0.ɵɵelementEnd();
|
|
257
269
|
} if (rf & 2) {
|
|
258
|
-
const
|
|
270
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
259
271
|
i0.ɵɵproperty("minHeight", 300)("minWidth", 800)("top", 100)("left", 100)("width", 1200)("height", 675)("resizable", true);
|
|
260
272
|
i0.ɵɵadvance();
|
|
261
273
|
i0.ɵɵproperty("fillHeight", true)("bottomMargin", 100);
|
|
262
274
|
i0.ɵɵadvance();
|
|
263
|
-
i0.ɵɵproperty("entityName",
|
|
275
|
+
i0.ɵɵproperty("entityName", ctx_r3._entityInfo ? ctx_r3._entityInfo.Name : "")("recordsToCompare", ctx_r3.recordsToCompare)("visibleColumns", ctx_r3.visibleColumns)("selectionMode", ctx_r3.mergeMode ? true : false);
|
|
264
276
|
i0.ɵɵadvance(3);
|
|
265
|
-
i0.ɵɵproperty("ngIf",
|
|
277
|
+
i0.ɵɵproperty("ngIf", ctx_r3.mergeMode);
|
|
266
278
|
i0.ɵɵadvance();
|
|
267
|
-
i0.ɵɵproperty("ngIf",
|
|
279
|
+
i0.ɵɵproperty("ngIf", ctx_r3.duplicateMode);
|
|
268
280
|
i0.ɵɵadvance();
|
|
269
|
-
i0.ɵɵproperty("ngIf",
|
|
281
|
+
i0.ɵɵproperty("ngIf", ctx_r3.compareMode);
|
|
270
282
|
i0.ɵɵadvance();
|
|
271
|
-
i0.ɵɵproperty("ngIf",
|
|
283
|
+
i0.ɵɵproperty("ngIf", ctx_r3.mergeMode || ctx_r3.duplicateMode);
|
|
272
284
|
i0.ɵɵadvance();
|
|
273
|
-
i0.ɵɵproperty("ngIf",
|
|
285
|
+
i0.ɵɵproperty("ngIf", ctx_r3.isConfirmDialogOpen);
|
|
274
286
|
} }
|
|
275
287
|
function UserViewGridComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
276
288
|
i0.ɵɵelementStart(0, "div");
|
|
277
|
-
i0.ɵɵelement(1, "div",
|
|
278
|
-
i0.ɵɵtemplate(2, UserViewGridComponent_div_11_kendo_window_2_Template, 10, 18, "kendo-window",
|
|
289
|
+
i0.ɵɵelement(1, "div", 32);
|
|
290
|
+
i0.ɵɵtemplate(2, UserViewGridComponent_div_11_kendo_window_2_Template, 10, 18, "kendo-window", 33);
|
|
279
291
|
i0.ɵɵelementEnd();
|
|
280
292
|
} if (rf & 2) {
|
|
281
|
-
const
|
|
293
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
282
294
|
i0.ɵɵadvance(2);
|
|
283
|
-
i0.ɵɵproperty("ngIf",
|
|
295
|
+
i0.ɵɵproperty("ngIf", ctx_r3.isCompareDialogOpened);
|
|
284
296
|
} }
|
|
285
297
|
function UserViewGridComponent_kendo_dialog_12_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
286
|
-
i0.ɵɵelement(0, "kendo-loader",
|
|
298
|
+
i0.ɵɵelement(0, "kendo-loader", 49);
|
|
287
299
|
} }
|
|
288
300
|
function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
289
|
-
const
|
|
290
|
-
i0.ɵɵelementStart(0, "button",
|
|
291
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
292
|
-
i0.ɵɵelement(1, "span",
|
|
301
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
302
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
303
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_2_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)); });
|
|
304
|
+
i0.ɵɵelement(1, "span", 53);
|
|
293
305
|
i0.ɵɵtext(2, " Remove ");
|
|
294
306
|
i0.ɵɵelementEnd();
|
|
295
307
|
} }
|
|
296
308
|
function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
297
|
-
const
|
|
298
|
-
i0.ɵɵelementStart(0, "button",
|
|
299
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
300
|
-
i0.ɵɵelement(1, "span",
|
|
309
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
310
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
311
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_3_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)); });
|
|
312
|
+
i0.ɵɵelement(1, "span", 54);
|
|
301
313
|
i0.ɵɵtext(2, " Add ");
|
|
302
314
|
i0.ɵɵelementEnd();
|
|
303
315
|
} }
|
|
304
316
|
function UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
305
|
-
i0.ɵɵelementStart(0, "div",
|
|
317
|
+
i0.ɵɵelementStart(0, "div", 52);
|
|
306
318
|
i0.ɵɵtext(1);
|
|
307
|
-
i0.ɵɵtemplate(2, UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_2_Template, 3, 0, "button",
|
|
319
|
+
i0.ɵɵtemplate(2, UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_2_Template, 3, 0, "button", 17)(3, UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Conditional_3_Template, 3, 0, "button", 17);
|
|
308
320
|
i0.ɵɵelementEnd();
|
|
309
321
|
i0.ɵɵelement(4, "hr");
|
|
310
322
|
} if (rf & 2) {
|
|
311
|
-
const
|
|
312
|
-
const
|
|
323
|
+
const listEntity_r22 = ctx.$implicit;
|
|
324
|
+
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
313
325
|
i0.ɵɵadvance();
|
|
314
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
326
|
+
i0.ɵɵtextInterpolate1(" ", listEntity_r22.Name, " ");
|
|
315
327
|
i0.ɵɵadvance();
|
|
316
|
-
i0.ɵɵconditional(
|
|
328
|
+
i0.ɵɵconditional(ctx_r3.selectedListEntities.includes(listEntity_r22) ? 2 : 3);
|
|
317
329
|
} }
|
|
318
330
|
function UserViewGridComponent_kendo_dialog_12_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
319
331
|
i0.ɵɵrepeaterCreate(0, UserViewGridComponent_kendo_dialog_12_Conditional_5_For_1_Template, 5, 2, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
320
332
|
} if (rf & 2) {
|
|
321
|
-
const
|
|
322
|
-
i0.ɵɵrepeater(
|
|
333
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
334
|
+
i0.ɵɵrepeater(ctx_r3.listEntities);
|
|
323
335
|
} }
|
|
324
336
|
function UserViewGridComponent_kendo_dialog_12_Template(rf, ctx) { if (rf & 1) {
|
|
325
|
-
const
|
|
326
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
327
|
-
i0.ɵɵlistener("close", function UserViewGridComponent_kendo_dialog_12_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(
|
|
328
|
-
i0.ɵɵelementStart(1, "div")(2, "kendo-textbox",
|
|
329
|
-
i0.ɵɵlistener("valueChange", function UserViewGridComponent_kendo_dialog_12_Template_kendo_textbox_valueChange_2_listener($event) { i0.ɵɵrestoreView(
|
|
337
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
338
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 46);
|
|
339
|
+
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)); });
|
|
340
|
+
i0.ɵɵelementStart(1, "div")(2, "kendo-textbox", 47);
|
|
341
|
+
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)); });
|
|
330
342
|
i0.ɵɵelementEnd()();
|
|
331
|
-
i0.ɵɵelementStart(3, "div",
|
|
332
|
-
i0.ɵɵtemplate(4, UserViewGridComponent_kendo_dialog_12_Conditional_4_Template, 1, 0, "kendo-loader",
|
|
343
|
+
i0.ɵɵelementStart(3, "div", 48);
|
|
344
|
+
i0.ɵɵtemplate(4, UserViewGridComponent_kendo_dialog_12_Conditional_4_Template, 1, 0, "kendo-loader", 49)(5, UserViewGridComponent_kendo_dialog_12_Conditional_5_Template, 2, 0);
|
|
333
345
|
i0.ɵɵelementEnd();
|
|
334
|
-
i0.ɵɵelementStart(6, "kendo-dialog-actions")(7, "button",
|
|
335
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Template_button_click_7_listener() { i0.ɵɵrestoreView(
|
|
346
|
+
i0.ɵɵelementStart(6, "kendo-dialog-actions")(7, "button", 50);
|
|
347
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r20); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addRecordsToSelectedLists()); });
|
|
336
348
|
i0.ɵɵtext(8, " Save ");
|
|
337
349
|
i0.ɵɵelementEnd();
|
|
338
|
-
i0.ɵɵelementStart(9, "button",
|
|
339
|
-
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Template_button_click_9_listener() { i0.ɵɵrestoreView(
|
|
350
|
+
i0.ɵɵelementStart(9, "button", 51);
|
|
351
|
+
i0.ɵɵlistener("click", function UserViewGridComponent_kendo_dialog_12_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r20); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.toggleAddToListDialog(false)); });
|
|
340
352
|
i0.ɵɵtext(10, " Cancel ");
|
|
341
353
|
i0.ɵɵelementEnd()()();
|
|
342
354
|
} if (rf & 2) {
|
|
343
|
-
const
|
|
355
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
344
356
|
i0.ɵɵproperty("minHeight", 450)("maxHeight", 450)("minWidth", 500)("maxWidth", 650);
|
|
345
357
|
i0.ɵɵadvance(2);
|
|
346
358
|
i0.ɵɵproperty("clearButton", true);
|
|
347
359
|
i0.ɵɵadvance(2);
|
|
348
|
-
i0.ɵɵconditional(
|
|
360
|
+
i0.ɵɵconditional(ctx_r3.showAddToListLoader ? 4 : 5);
|
|
349
361
|
i0.ɵɵadvance(3);
|
|
350
|
-
i0.ɵɵproperty("disabled",
|
|
362
|
+
i0.ɵɵproperty("disabled", ctx_r3.showAddToListLoader);
|
|
351
363
|
i0.ɵɵadvance(2);
|
|
352
|
-
i0.ɵɵproperty("disabled",
|
|
364
|
+
i0.ɵɵproperty("disabled", ctx_r3.showAddToListLoader);
|
|
353
365
|
} }
|
|
354
366
|
export class UserViewGridComponent {
|
|
355
367
|
get anyModeEnabled() {
|
|
@@ -473,6 +485,10 @@ export class UserViewGridComponent {
|
|
|
473
485
|
* If set to true, the Create New Record button will be displayed if the user is allowed to create new records for the entity being shown. If set to false, the Create New Record button will be hidden.
|
|
474
486
|
*/
|
|
475
487
|
this.ShowCreateNewRecordButton = true;
|
|
488
|
+
/**
|
|
489
|
+
* If set to true, and if the entity being displayed supports communication, the communication button will be displayed. If set to false, the communication button will be hidden.
|
|
490
|
+
*/
|
|
491
|
+
this.ShowCommunicationButton = true;
|
|
476
492
|
/**
|
|
477
493
|
* When set to Dialog, the Create New Record button will open a dialog to create a new record. When set to Tab, the Create New Record button will open a new tab to create a new record.
|
|
478
494
|
*/
|
|
@@ -884,9 +900,12 @@ export class UserViewGridComponent {
|
|
|
884
900
|
});
|
|
885
901
|
}
|
|
886
902
|
Refresh(params) {
|
|
887
|
-
var _a, _b, _c;
|
|
888
903
|
return __awaiter(this, void 0, void 0, function* () {
|
|
904
|
+
var _a, _b, _c;
|
|
889
905
|
this.Params = params;
|
|
906
|
+
yield TemplateEngineBase.Instance.Config(false);
|
|
907
|
+
yield EntityCommunicationsEngineClient.Instance.Config(false);
|
|
908
|
+
yield CommunicationEngineBase.Instance.Config(false);
|
|
890
909
|
if (this.AllowLoad === false) {
|
|
891
910
|
return;
|
|
892
911
|
}
|
|
@@ -1144,8 +1163,8 @@ export class UserViewGridComponent {
|
|
|
1144
1163
|
});
|
|
1145
1164
|
}
|
|
1146
1165
|
findDuplicateRecords() {
|
|
1147
|
-
var _a;
|
|
1148
1166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
+
var _a;
|
|
1149
1168
|
if (!this._entityInfo) {
|
|
1150
1169
|
console.error("Entity Info is not available");
|
|
1151
1170
|
this.closeCompareDialog('duplicate');
|
|
@@ -1220,14 +1239,48 @@ export class UserViewGridComponent {
|
|
|
1220
1239
|
throw new Error("Unable to get export data");
|
|
1221
1240
|
});
|
|
1222
1241
|
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Handles communication functionality for a given view, only available if the entity being displayed supports communication.
|
|
1244
|
+
*/
|
|
1245
|
+
doCommunication() {
|
|
1246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1247
|
+
if (!this.Params)
|
|
1248
|
+
return;
|
|
1249
|
+
const msg = new Message();
|
|
1250
|
+
msg.From = "amith@bluecypress.io";
|
|
1251
|
+
msg.Body = "This is a test message";
|
|
1252
|
+
msg.Subject = "Test Subject";
|
|
1253
|
+
const sendGrid = CommunicationEngineBase.Instance.Providers.find(p => p.Name === "SendGrid");
|
|
1254
|
+
if (!sendGrid)
|
|
1255
|
+
throw new Error("SendGrid provider not found");
|
|
1256
|
+
const email = sendGrid.MessageTypes.find(mt => mt.Name === "Email");
|
|
1257
|
+
if (!email)
|
|
1258
|
+
throw new Error("Email message type not found");
|
|
1259
|
+
msg.MessageType = email;
|
|
1260
|
+
msg.BodyTemplate = TemplateEngineBase.Instance.FindTemplate('Test Template');
|
|
1261
|
+
msg.HTMLBodyTemplate = msg.BodyTemplate;
|
|
1262
|
+
msg.SubjectTemplate = TemplateEngineBase.Instance.FindTemplate('Test Subject Template');
|
|
1263
|
+
const result = yield EntityCommunicationsEngineClient.Instance.RunEntityCommunication(this._entityInfo.ID, this.Params, "SendGrid", "Email", msg);
|
|
1264
|
+
if (result && result.Success) {
|
|
1265
|
+
this.CreateSimpleNotification("Communication Sent", 'success', 2000);
|
|
1266
|
+
}
|
|
1267
|
+
else
|
|
1268
|
+
this.CreateSimpleNotification("Error sending communication", 'error', 5000);
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
get EntitySupportsCommunication() {
|
|
1272
|
+
if (!this._entityInfo)
|
|
1273
|
+
return false;
|
|
1274
|
+
return EntityCommunicationsEngineClient.Instance.EntitySupportsCommunication(this._entityInfo.ID);
|
|
1275
|
+
}
|
|
1223
1276
|
/**
|
|
1224
1277
|
* This method will create a new record of the given entity type. It will only work if the User has the ability to create records of
|
|
1225
1278
|
* this entity type and also if the entity level setting AllowCreateAPI is set to 1. If either of these conditions are not met, then
|
|
1226
1279
|
* this method will do nothing.
|
|
1227
1280
|
*/
|
|
1228
1281
|
doCreateNewRecord() {
|
|
1229
|
-
var _a;
|
|
1230
1282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1283
|
+
var _a;
|
|
1231
1284
|
// creates a new record either using a dialog or with the router
|
|
1232
1285
|
if (this.UserCanCreateNewRecord && this._entityInfo) {
|
|
1233
1286
|
if (this.CreateRecordMode === 'Tab') {
|
|
@@ -1387,21 +1440,22 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1387
1440
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.analysisResults = _t.first);
|
|
1388
1441
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.compareDialogContainer = _t.first);
|
|
1389
1442
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.entityFormDialog = _t.first);
|
|
1390
|
-
} }, inputs: { Params: "Params", BottomMargin: "BottomMargin", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", NewRecordValues: "NewRecordValues", ShowCreateNewRecordButton: "ShowCreateNewRecordButton", CreateRecordMode: "CreateRecordMode", AllowLoad: "AllowLoad" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 15, vars: 21, consts: [["mjFillContainer", "", 1, "user-view-grid-wrap"], ["mjFillContainer", "", "scrollable", "virtual", "kendoGridSelectBy", "", 3, "
|
|
1391
|
-
i0.ɵɵ
|
|
1392
|
-
i0.ɵɵ
|
|
1393
|
-
i0.ɵɵ
|
|
1394
|
-
i0.ɵɵ
|
|
1395
|
-
i0.ɵɵ
|
|
1396
|
-
i0.ɵɵ
|
|
1397
|
-
i0.ɵɵ
|
|
1443
|
+
} }, 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: 15, vars: 21, consts: [["kendoGrid", ""], ["excelExport", ""], ["compareDialogContainer", ""], ["entityFormDialog", ""], ["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", 3, "minHeight", "maxHeight", "minWidth", "maxWidth", "close", 4, "ngIf"], ["Mode", "complete", 3, "Visible"], ["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", 1, "dialog-wrapper", 3, "close", "minHeight", "maxHeight", "minWidth", "maxWidth"], ["id", "listSearch", "placeholder", "Search Lists...", "kendoTextBox", "", 1, "padding-bottom-small", 3, "valueChange", "clearButton"], [1, "overflow-y-scroll"], ["type", "converging-spinner"], ["kendoButton", "", "themeColor", "primary", 3, "click", "disabled"], ["kendoButton", "", 3, "click", "disabled"], [1, "list-item"], [1, "fa-regular", "fa-circle-minus"], [1, "fa-regular", "fa-circle-plus"]], template: function UserViewGridComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1444
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1445
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "kendo-grid", 6, 0);
|
|
1446
|
+
i0.ɵɵlistener("pageChange", function UserViewGridComponent_Template_kendo_grid_pageChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageChange($event)); });
|
|
1447
|
+
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); });
|
|
1448
|
+
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)); });
|
|
1449
|
+
i0.ɵɵtemplate(3, UserViewGridComponent_ng_template_3_Template, 6, 6, "ng-template", 7)(4, UserViewGridComponent_kendo_grid_checkbox_column_4_Template, 1, 6, "kendo-grid-checkbox-column", 8)(5, UserViewGridComponent_kendo_grid_column_5_Template, 2, 10, "kendo-grid-column", 9);
|
|
1450
|
+
i0.ɵɵelementStart(6, "kendo-excelexport", 10, 1);
|
|
1451
|
+
i0.ɵɵtemplate(8, UserViewGridComponent_kendo_excelexport_column_8_Template, 1, 2, "kendo-excelexport-column", 11);
|
|
1398
1452
|
i0.ɵɵelementEnd()();
|
|
1399
|
-
i0.ɵɵelementStart(9, "div", null,
|
|
1400
|
-
i0.ɵɵtemplate(11, UserViewGridComponent_div_11_Template, 3, 1, "div",
|
|
1453
|
+
i0.ɵɵelementStart(9, "div", null, 2);
|
|
1454
|
+
i0.ɵɵtemplate(11, UserViewGridComponent_div_11_Template, 3, 1, "div", 12);
|
|
1401
1455
|
i0.ɵɵelementEnd();
|
|
1402
|
-
i0.ɵɵtemplate(12, UserViewGridComponent_kendo_dialog_12_Template, 11, 8, "kendo-dialog",
|
|
1456
|
+
i0.ɵɵtemplate(12, UserViewGridComponent_kendo_dialog_12_Template, 11, 8, "kendo-dialog", 13);
|
|
1403
1457
|
i0.ɵɵelementEnd();
|
|
1404
|
-
i0.ɵɵelement(13, "mj-entity-form-dialog",
|
|
1458
|
+
i0.ɵɵelement(13, "mj-entity-form-dialog", 14, 3);
|
|
1405
1459
|
} if (rf & 2) {
|
|
1406
1460
|
i0.ɵɵadvance();
|
|
1407
1461
|
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);
|
|
@@ -1423,7 +1477,7 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1423
1477
|
} }, dependencies: [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, 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: 275px;\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}"] });
|
|
1424
1478
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridComponent, [{
|
|
1425
1479
|
type: Component,
|
|
1426
|
-
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(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(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}"] }]
|
|
1480
|
+
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(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}"] }]
|
|
1427
1481
|
}], () => [{ type: i0.ElementRef }, { type: i1.FormBuilder }, { type: i2.Router }, { type: i0.Renderer2 }], { Params: [{
|
|
1428
1482
|
type: Input
|
|
1429
1483
|
}], BottomMargin: [{
|
|
@@ -1438,6 +1492,8 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1438
1492
|
type: Input
|
|
1439
1493
|
}], ShowCreateNewRecordButton: [{
|
|
1440
1494
|
type: Input
|
|
1495
|
+
}], ShowCommunicationButton: [{
|
|
1496
|
+
type: Input
|
|
1441
1497
|
}], CreateRecordMode: [{
|
|
1442
1498
|
type: Input
|
|
1443
1499
|
}], rowClicked: [{
|
|
@@ -1471,4 +1527,4 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
|
|
|
1471
1527
|
type: ViewChild,
|
|
1472
1528
|
args: ['entityFormDialog']
|
|
1473
1529
|
}] }); })();
|
|
1474
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src/lib/ng-user-view-grid.component.ts", lineNumber:
|
|
1530
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src/lib/ng-user-view-grid.component.ts", lineNumber: 50 }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-user-view-grid",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
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",
|
|
@@ -15,27 +15,28 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@angular/compiler": "
|
|
19
|
-
"@angular/compiler-cli": "
|
|
18
|
+
"@angular/compiler": "18.0.2",
|
|
19
|
+
"@angular/compiler-cli": "18.0.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@angular/common": "
|
|
23
|
-
"@angular/core": "
|
|
24
|
-
"@angular/forms": "
|
|
25
|
-
"@angular/router": "
|
|
22
|
+
"@angular/common": "18.0.2",
|
|
23
|
+
"@angular/core": "18.0.2",
|
|
24
|
+
"@angular/forms": "18.0.2",
|
|
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
|
-
"@
|
|
36
|
-
"@progress/kendo-angular-
|
|
37
|
-
"@progress/kendo-angular-
|
|
38
|
-
"@progress/kendo-angular-
|
|
28
|
+
"@memberjunction/core-entities": "1.6.0",
|
|
29
|
+
"@memberjunction/global": "1.6.0",
|
|
30
|
+
"@memberjunction/core": "1.6.0",
|
|
31
|
+
"@memberjunction/ng-shared": "1.6.0",
|
|
32
|
+
"@memberjunction/ng-entity-form-dialog": "1.6.0",
|
|
33
|
+
"@memberjunction/ng-compare-records": "1.6.0",
|
|
34
|
+
"@memberjunction/ng-container-directives": "1.6.0",
|
|
35
|
+
"@memberjunction/entity-communications-client": "1.6.0",
|
|
36
|
+
"@progress/kendo-angular-grid": "16.2.0",
|
|
37
|
+
"@progress/kendo-angular-layout": "16.2.0",
|
|
38
|
+
"@progress/kendo-angular-inputs": "16.2.0",
|
|
39
|
+
"@progress/kendo-angular-buttons": "16.2.0",
|
|
39
40
|
"tslib": "^2.3.0"
|
|
40
41
|
},
|
|
41
42
|
"sideEffects": false
|