@memberjunction/ng-user-view-grid 0.9.164 → 0.9.166

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.
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { RunViewParams } from "@memberjunction/core";
3
+ import { GridRowClickedEvent, GridRowEditedEvent } from "./ng-user-view-grid.component";
4
+ import * as i0 from "@angular/core";
5
+ export declare class UserViewGridWithAnalysisComponent {
6
+ Params: RunViewParams | undefined;
7
+ InEditMode: boolean;
8
+ EditMode: "None" | "Save" | "Queue";
9
+ AutoNavigate: boolean;
10
+ BottomMargin: number;
11
+ rowClicked: EventEmitter<GridRowClickedEvent>;
12
+ rowEdited: EventEmitter<GridRowEditedEvent>;
13
+ get ViewID(): number;
14
+ selectTabHandler(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridWithAnalysisComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserViewGridWithAnalysisComponent, "mj-user-view-grid-with-analysis", never, { "Params": { "alias": "Params"; "required": false; }; "InEditMode": { "alias": "InEditMode"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "AutoNavigate": { "alias": "AutoNavigate"; "required": false; }; "BottomMargin": { "alias": "BottomMargin"; "required": false; }; }, { "rowClicked": "rowClicked"; "rowEdited": "rowEdited"; }, never, never, false, never>;
17
+ }
@@ -0,0 +1,102 @@
1
+ import { Component, EventEmitter, Input, Output } from "@angular/core";
2
+ import { SharedService } from "@memberjunction/ng-shared";
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@memberjunction/ng-container-directives";
5
+ import * as i2 from "@progress/kendo-angular-layout";
6
+ import * as i3 from "@memberjunction/ng-ask-skip";
7
+ import * as i4 from "./ng-user-view-grid.component";
8
+ function UserViewGridWithAnalysisComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
9
+ i0.ɵɵtext(0, "Data");
10
+ } }
11
+ function UserViewGridWithAnalysisComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
12
+ const _r5 = i0.ɵɵgetCurrentView();
13
+ i0.ɵɵelementStart(0, "mj-user-view-grid", 4);
14
+ i0.ɵɵlistener("rowClicked", function UserViewGridWithAnalysisComponent_ng_template_4_Template_mj_user_view_grid_rowClicked_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.rowClicked.emit($event)); })("rowEdited", function UserViewGridWithAnalysisComponent_ng_template_4_Template_mj_user_view_grid_rowEdited_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.rowEdited.emit($event)); });
15
+ i0.ɵɵelementEnd();
16
+ } if (rf & 2) {
17
+ const ctx_r1 = i0.ɵɵnextContext();
18
+ i0.ɵɵproperty("Params", ctx_r1.Params)("InEditMode", ctx_r1.InEditMode)("EditMode", ctx_r1.EditMode)("AutoNavigate", ctx_r1.AutoNavigate);
19
+ } }
20
+ function UserViewGridWithAnalysisComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
21
+ i0.ɵɵtext(0, "Analysis");
22
+ } }
23
+ function UserViewGridWithAnalysisComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelement(0, "mj-skip-chat", 5);
25
+ } if (rf & 2) {
26
+ const ctx_r3 = i0.ɵɵnextContext();
27
+ i0.ɵɵproperty("AllowNewConversations", false)("ShowConversationList", false)("UpdateAppRoute", false)("LinkedEntity", "User Views")("LinkedEntityRecordID", ctx_r3.ViewID);
28
+ } }
29
+ export class UserViewGridWithAnalysisComponent {
30
+ constructor() {
31
+ this.InEditMode = false;
32
+ this.EditMode = "None";
33
+ this.AutoNavigate = true;
34
+ this.BottomMargin = 0;
35
+ this.rowClicked = new EventEmitter();
36
+ this.rowEdited = new EventEmitter();
37
+ }
38
+ get ViewID() {
39
+ if (this.Params && this.Params.ViewID)
40
+ return this.Params.ViewID;
41
+ else
42
+ return 0;
43
+ }
44
+ selectTabHandler() {
45
+ SharedService.Instance.InvokeManualResize(100); // resize when the tab is clicked
46
+ }
47
+ }
48
+ UserViewGridWithAnalysisComponent.ɵfac = function UserViewGridWithAnalysisComponent_Factory(t) { return new (t || UserViewGridWithAnalysisComponent)(); };
49
+ UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewGridWithAnalysisComponent, selectors: [["mj-user-view-grid-with-analysis"]], inputs: { Params: "Params", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", BottomMargin: "BottomMargin" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 8, vars: 4, consts: [["mjFillContainer", "", 3, "keepTabContent", "animate", "bottomMargin", "tabSelect"], [3, "selected"], ["kendoTabTitle", ""], ["kendoTabContent", ""], [3, "Params", "InEditMode", "EditMode", "AutoNavigate", "rowClicked", "rowEdited"], ["mjFillContainer", "", 3, "AllowNewConversations", "ShowConversationList", "UpdateAppRoute", "LinkedEntity", "LinkedEntityRecordID"]], template: function UserViewGridWithAnalysisComponent_Template(rf, ctx) { if (rf & 1) {
50
+ i0.ɵɵelementStart(0, "div")(1, "kendo-tabstrip", 0);
51
+ i0.ɵɵlistener("tabSelect", function UserViewGridWithAnalysisComponent_Template_kendo_tabstrip_tabSelect_1_listener() { return ctx.selectTabHandler(); });
52
+ i0.ɵɵelementStart(2, "kendo-tabstrip-tab", 1);
53
+ i0.ɵɵtemplate(3, UserViewGridWithAnalysisComponent_ng_template_3_Template, 1, 0, "ng-template", 2)(4, UserViewGridWithAnalysisComponent_ng_template_4_Template, 1, 4, "ng-template", 3);
54
+ i0.ɵɵelementEnd();
55
+ i0.ɵɵelementStart(5, "kendo-tabstrip-tab");
56
+ i0.ɵɵtemplate(6, UserViewGridWithAnalysisComponent_ng_template_6_Template, 1, 0, "ng-template", 2)(7, UserViewGridWithAnalysisComponent_ng_template_7_Template, 1, 5, "ng-template", 3);
57
+ i0.ɵɵelementEnd()()();
58
+ } if (rf & 2) {
59
+ i0.ɵɵadvance();
60
+ i0.ɵɵproperty("keepTabContent", true)("animate", false)("bottomMargin", ctx.BottomMargin);
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵproperty("selected", true);
63
+ } }, dependencies: [i1.FillContainer, i2.TabStripComponent, i2.TabStripTabComponent, i2.TabContentDirective, i2.TabTitleDirective, i3.SkipChatComponent, i4.UserViewGridComponent], styles: [".user-view-grid-wrap[_ngcontent-%COMP%] {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header[_ngcontent-%COMP%] {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] });
64
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridWithAnalysisComponent, [{
65
+ type: Component,
66
+ args: [{ selector: 'mj-user-view-grid-with-analysis', template: `
67
+ <div>
68
+ <kendo-tabstrip [keepTabContent]="true" [animate] = "false" mjFillContainer [bottomMargin]="BottomMargin" (tabSelect)="selectTabHandler() ">
69
+ <kendo-tabstrip-tab [selected]="true">
70
+ <ng-template kendoTabTitle>Data</ng-template>
71
+ <ng-template kendoTabContent>
72
+ <mj-user-view-grid [Params]="Params" [InEditMode]="InEditMode" [EditMode]="EditMode" [AutoNavigate]="AutoNavigate"
73
+ (rowClicked)="this.rowClicked.emit($event)" (rowEdited)="this.rowEdited.emit($event)" ></mj-user-view-grid>
74
+ </ng-template>
75
+ </kendo-tabstrip-tab>
76
+ <kendo-tabstrip-tab>
77
+ <ng-template kendoTabTitle>Analysis</ng-template>
78
+ <ng-template kendoTabContent>
79
+ <mj-skip-chat mjFillContainer [AllowNewConversations]="false" [ShowConversationList]="false" [UpdateAppRoute]="false"
80
+ [LinkedEntity]="'User Views'" [LinkedEntityRecordID]="ViewID">
81
+ </mj-skip-chat>
82
+ </ng-template>
83
+ </kendo-tabstrip-tab>
84
+ </kendo-tabstrip>
85
+ </div>
86
+ `, styles: [".user-view-grid-wrap {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] }]
87
+ }], null, { Params: [{
88
+ type: Input
89
+ }], InEditMode: [{
90
+ type: Input
91
+ }], EditMode: [{
92
+ type: Input
93
+ }], AutoNavigate: [{
94
+ type: Input
95
+ }], BottomMargin: [{
96
+ type: Input
97
+ }], rowClicked: [{
98
+ type: Output
99
+ }], rowEdited: [{
100
+ type: Output
101
+ }] }); })();
102
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridWithAnalysisComponent, { className: "UserViewGridWithAnalysisComponent", filePath: "src\\lib\\grid-with-analysis.component.ts", lineNumber: 31 }); })();
@@ -115,7 +115,6 @@ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
115
115
  doExcelExport(): Promise<void>;
116
116
  protected getExportData(): Promise<any[]>;
117
117
  kendoSVGIcon: typeof kendoSVGIcon;
118
- selectTabHandler(): void;
119
118
  static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridComponent, never>;
120
119
  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; }; "AllowLoad": { "alias": "AllowLoad"; "required": false; }; }, { "rowClicked": "rowClicked"; "rowEdited": "rowEdited"; }, never, never, false, never>;
121
120
  }
@@ -15,7 +15,7 @@ import { Keys } from '@progress/kendo-angular-common';
15
15
  import { Subject } from 'rxjs';
16
16
  import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
17
17
  import { MJEventType, MJGlobal } from '@memberjunction/global';
18
- import { SharedService, kendoSVGIcon } from '@memberjunction/ng-shared';
18
+ import { kendoSVGIcon } from '@memberjunction/ng-shared';
19
19
  import { TextAreaComponent } from '@progress/kendo-angular-inputs';
20
20
  import * as i0 from "@angular/core";
21
21
  import * as i1 from "@angular/forms";
@@ -28,265 +28,226 @@ import * as i7 from "@progress/kendo-angular-buttons";
28
28
  import * as i8 from "@memberjunction/ng-compare-records";
29
29
  import * as i9 from "@memberjunction/ng-container-directives";
30
30
  import * as i10 from "@progress/kendo-angular-icons";
31
- import * as i11 from "@progress/kendo-angular-layout";
32
- import * as i12 from "@memberjunction/ng-ask-skip";
33
31
  const _c0 = ["kendoGrid"];
34
32
  const _c1 = ["excelExport"];
35
33
  const _c2 = ["recordCompareRef"];
36
34
  const _c3 = ["analysisQuestion"];
37
35
  const _c4 = ["analysisResults"];
38
36
  const _c5 = ["plotContainer"];
39
- function UserViewGridComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
40
- i0.ɵɵtext(0, "Data");
41
- } }
42
- function UserViewGridComponent_ng_template_4_ng_template_2_button_0_Template(rf, ctx) { if (rf & 1) {
43
- const _r19 = i0.ɵɵgetCurrentView();
44
- i0.ɵɵelementStart(0, "button", 18);
45
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r18.doExcelExport()); });
46
- i0.ɵɵelement(1, "kendo-svgicon", 19);
37
+ function UserViewGridComponent_ng_template_3_button_0_Template(rf, ctx) { if (rf & 1) {
38
+ const _r16 = i0.ɵɵgetCurrentView();
39
+ i0.ɵɵelementStart(0, "button", 14);
40
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r15.doExcelExport()); });
41
+ i0.ɵɵelement(1, "kendo-svgicon", 15);
47
42
  i0.ɵɵtext(2, " Export to Excel ");
48
43
  i0.ɵɵelementEnd();
49
44
  } if (rf & 2) {
50
- const ctx_r10 = i0.ɵɵnextContext(3);
45
+ const ctx_r7 = i0.ɵɵnextContext(2);
51
46
  i0.ɵɵadvance();
52
- i0.ɵɵproperty("icon", ctx_r10.kendoSVGIcon("fileExcel"));
47
+ i0.ɵɵproperty("icon", ctx_r7.kendoSVGIcon("fileExcel"));
53
48
  } }
54
- function UserViewGridComponent_ng_template_4_ng_template_2_button_1_Template(rf, ctx) { if (rf & 1) {
55
- const _r21 = i0.ɵɵgetCurrentView();
56
- i0.ɵɵelementStart(0, "button", 20);
57
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r20.enableMergeOrCompare(false, "compare")); });
49
+ function UserViewGridComponent_ng_template_3_button_1_Template(rf, ctx) { if (rf & 1) {
50
+ const _r18 = i0.ɵɵgetCurrentView();
51
+ i0.ɵɵelementStart(0, "button", 16);
52
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.enableMergeOrCompare(false, "compare")); });
58
53
  i0.ɵɵtext(1, "Compare");
59
54
  i0.ɵɵelementEnd();
60
55
  } if (rf & 2) {
61
- const ctx_r11 = i0.ɵɵnextContext(3);
62
- i0.ɵɵproperty("disabled", ctx_r11.compareMode && ctx_r11.recordsToCompare.length < 2);
56
+ const ctx_r8 = i0.ɵɵnextContext(2);
57
+ i0.ɵɵproperty("disabled", ctx_r8.compareMode && ctx_r8.recordsToCompare.length < 2);
63
58
  } }
64
- function UserViewGridComponent_ng_template_4_ng_template_2_button_2_Template(rf, ctx) { if (rf & 1) {
65
- const _r23 = i0.ɵɵgetCurrentView();
66
- i0.ɵɵelementStart(0, "button", 20);
67
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r22.enableMergeOrCompare(false, "compare")); });
59
+ function UserViewGridComponent_ng_template_3_button_2_Template(rf, ctx) { if (rf & 1) {
60
+ const _r20 = i0.ɵɵgetCurrentView();
61
+ i0.ɵɵelementStart(0, "button", 16);
62
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r19.enableMergeOrCompare(false, "compare")); });
68
63
  i0.ɵɵtext(1, "Compare");
69
64
  i0.ɵɵelementEnd();
70
65
  } if (rf & 2) {
71
- const ctx_r12 = i0.ɵɵnextContext(3);
72
- i0.ɵɵproperty("disabled", ctx_r12.compareMode && ctx_r12.recordsToCompare.length < 2);
66
+ const ctx_r9 = i0.ɵɵnextContext(2);
67
+ i0.ɵɵproperty("disabled", ctx_r9.compareMode && ctx_r9.recordsToCompare.length < 2);
73
68
  } }
74
- function UserViewGridComponent_ng_template_4_ng_template_2_button_3_Template(rf, ctx) { if (rf & 1) {
75
- const _r25 = i0.ɵɵgetCurrentView();
76
- i0.ɵɵelementStart(0, "button", 21);
77
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r24.enableMergeOrCompare(true, "compare")); });
69
+ function UserViewGridComponent_ng_template_3_button_3_Template(rf, ctx) { if (rf & 1) {
70
+ const _r22 = i0.ɵɵgetCurrentView();
71
+ i0.ɵɵelementStart(0, "button", 17);
72
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.enableMergeOrCompare(true, "compare")); });
78
73
  i0.ɵɵtext(1, "Cancel");
79
74
  i0.ɵɵelementEnd();
80
75
  } }
81
- function UserViewGridComponent_ng_template_4_ng_template_2_button_4_Template(rf, ctx) { if (rf & 1) {
82
- const _r27 = i0.ɵɵgetCurrentView();
83
- i0.ɵɵelementStart(0, "button", 20);
84
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r27); const ctx_r26 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r26.enableMergeOrCompare(false, "merge")); });
76
+ function UserViewGridComponent_ng_template_3_button_4_Template(rf, ctx) { if (rf & 1) {
77
+ const _r24 = i0.ɵɵgetCurrentView();
78
+ i0.ɵɵelementStart(0, "button", 16);
79
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r23.enableMergeOrCompare(false, "merge")); });
85
80
  i0.ɵɵtext(1, "Merge");
86
81
  i0.ɵɵelementEnd();
87
82
  } if (rf & 2) {
88
- const ctx_r14 = i0.ɵɵnextContext(3);
89
- i0.ɵɵproperty("disabled", ctx_r14.mergeMode && ctx_r14.recordsToCompare.length < 2);
83
+ const ctx_r11 = i0.ɵɵnextContext(2);
84
+ i0.ɵɵproperty("disabled", ctx_r11.mergeMode && ctx_r11.recordsToCompare.length < 2);
90
85
  } }
91
- function UserViewGridComponent_ng_template_4_ng_template_2_button_5_Template(rf, ctx) { if (rf & 1) {
92
- const _r29 = i0.ɵɵgetCurrentView();
93
- i0.ɵɵelementStart(0, "button", 21);
94
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r29); const ctx_r28 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r28.enableMergeOrCompare(false, "merge")); });
86
+ function UserViewGridComponent_ng_template_3_button_5_Template(rf, ctx) { if (rf & 1) {
87
+ const _r26 = i0.ɵɵgetCurrentView();
88
+ i0.ɵɵelementStart(0, "button", 17);
89
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r25.enableMergeOrCompare(false, "merge")); });
95
90
  i0.ɵɵtext(1, "Merge");
96
91
  i0.ɵɵelementEnd();
97
92
  } }
98
- function UserViewGridComponent_ng_template_4_ng_template_2_button_6_Template(rf, ctx) { if (rf & 1) {
99
- const _r31 = i0.ɵɵgetCurrentView();
100
- i0.ɵɵelementStart(0, "button", 21);
101
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r31); const ctx_r30 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r30.enableMergeOrCompare(true, "merge")); });
93
+ function UserViewGridComponent_ng_template_3_button_6_Template(rf, ctx) { if (rf & 1) {
94
+ const _r28 = i0.ɵɵgetCurrentView();
95
+ i0.ɵɵelementStart(0, "button", 17);
96
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.enableMergeOrCompare(true, "merge")); });
102
97
  i0.ɵɵtext(1, "Cancel");
103
98
  i0.ɵɵelementEnd();
104
99
  } }
105
- function UserViewGridComponent_ng_template_4_ng_template_2_button_7_Template(rf, ctx) { if (rf & 1) {
106
- const _r33 = i0.ɵɵgetCurrentView();
107
- i0.ɵɵelementStart(0, "button", 22);
108
- i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_4_ng_template_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r32.RefreshFromSavedParams()); });
109
- i0.ɵɵelement(1, "kendo-svgicon", 19);
100
+ function UserViewGridComponent_ng_template_3_button_7_Template(rf, ctx) { if (rf & 1) {
101
+ const _r30 = i0.ɵɵgetCurrentView();
102
+ i0.ɵɵelementStart(0, "button", 18);
103
+ i0.ɵɵlistener("click", function UserViewGridComponent_ng_template_3_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.RefreshFromSavedParams()); });
104
+ i0.ɵɵelement(1, "kendo-svgicon", 15);
110
105
  i0.ɵɵtext(2, " Refresh ");
111
106
  i0.ɵɵelementEnd();
112
107
  } if (rf & 2) {
113
- const ctx_r17 = i0.ɵɵnextContext(3);
108
+ const ctx_r14 = i0.ɵɵnextContext(2);
114
109
  i0.ɵɵproperty("primary", true);
115
110
  i0.ɵɵadvance();
116
- i0.ɵɵproperty("icon", ctx_r17.kendoSVGIcon("arrowRotateCcwSmall"));
111
+ i0.ɵɵproperty("icon", ctx_r14.kendoSVGIcon("arrowRotateCcwSmall"));
117
112
  } }
118
- function UserViewGridComponent_ng_template_4_ng_template_2_Template(rf, ctx) { if (rf & 1) {
119
- i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_4_ng_template_2_button_0_Template, 3, 1, "button", 14)(1, UserViewGridComponent_ng_template_4_ng_template_2_button_1_Template, 2, 1, "button", 15)(2, UserViewGridComponent_ng_template_4_ng_template_2_button_2_Template, 2, 1, "button", 15)(3, UserViewGridComponent_ng_template_4_ng_template_2_button_3_Template, 2, 0, "button", 16)(4, UserViewGridComponent_ng_template_4_ng_template_2_button_4_Template, 2, 1, "button", 15)(5, UserViewGridComponent_ng_template_4_ng_template_2_button_5_Template, 2, 0, "button", 16)(6, UserViewGridComponent_ng_template_4_ng_template_2_button_6_Template, 2, 0, "button", 16)(7, UserViewGridComponent_ng_template_4_ng_template_2_button_7_Template, 3, 2, "button", 17);
113
+ function UserViewGridComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
114
+ i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_3_button_0_Template, 3, 1, "button", 10)(1, UserViewGridComponent_ng_template_3_button_1_Template, 2, 1, "button", 11)(2, UserViewGridComponent_ng_template_3_button_2_Template, 2, 1, "button", 11)(3, UserViewGridComponent_ng_template_3_button_3_Template, 2, 0, "button", 12)(4, UserViewGridComponent_ng_template_3_button_4_Template, 2, 1, "button", 11)(5, UserViewGridComponent_ng_template_3_button_5_Template, 2, 0, "button", 12)(6, UserViewGridComponent_ng_template_3_button_6_Template, 2, 0, "button", 12)(7, UserViewGridComponent_ng_template_3_button_7_Template, 3, 2, "button", 13);
120
115
  } if (rf & 2) {
121
- const ctx_r5 = i0.ɵɵnextContext(2);
122
- i0.ɵɵproperty("ngIf", !ctx_r5.compareMode && !ctx_r5.mergeMode);
116
+ const ctx_r1 = i0.ɵɵnextContext();
117
+ i0.ɵɵproperty("ngIf", !ctx_r1.compareMode && !ctx_r1.mergeMode);
123
118
  i0.ɵɵadvance();
124
- i0.ɵɵproperty("ngIf", !ctx_r5.compareMode && !ctx_r5.mergeMode);
119
+ i0.ɵɵproperty("ngIf", !ctx_r1.compareMode && !ctx_r1.mergeMode);
125
120
  i0.ɵɵadvance();
126
- i0.ɵɵproperty("ngIf", ctx_r5.compareMode);
121
+ i0.ɵɵproperty("ngIf", ctx_r1.compareMode);
127
122
  i0.ɵɵadvance();
128
- i0.ɵɵproperty("ngIf", ctx_r5.compareMode);
123
+ i0.ɵɵproperty("ngIf", ctx_r1.compareMode);
129
124
  i0.ɵɵadvance();
130
- i0.ɵɵproperty("ngIf", ctx_r5.mergeMode);
125
+ i0.ɵɵproperty("ngIf", ctx_r1.mergeMode);
131
126
  i0.ɵɵadvance();
132
- i0.ɵɵproperty("ngIf", !ctx_r5.mergeMode && !ctx_r5.compareMode);
127
+ i0.ɵɵproperty("ngIf", !ctx_r1.mergeMode && !ctx_r1.compareMode);
133
128
  i0.ɵɵadvance();
134
- i0.ɵɵproperty("ngIf", ctx_r5.mergeMode);
129
+ i0.ɵɵproperty("ngIf", ctx_r1.mergeMode);
135
130
  i0.ɵɵadvance();
136
- i0.ɵɵproperty("ngIf", ctx_r5.showRefreshButton && !ctx_r5.compareMode && !ctx_r5.mergeMode);
131
+ i0.ɵɵproperty("ngIf", ctx_r1.showRefreshButton && !ctx_r1.compareMode && !ctx_r1.mergeMode);
137
132
  } }
138
133
  const _c6 = () => ({ "text-align": "center", "vertical-align": "center" });
139
134
  const _c7 = () => ({ "font-weight": "bold", "background-color": "#a9c2af" });
140
- function UserViewGridComponent_ng_template_4_kendo_grid_checkbox_column_3_Template(rf, ctx) { if (rf & 1) {
141
- i0.ɵɵelement(0, "kendo-grid-checkbox-column", 23);
135
+ function UserViewGridComponent_kendo_grid_checkbox_column_4_Template(rf, ctx) { if (rf & 1) {
136
+ i0.ɵɵelement(0, "kendo-grid-checkbox-column", 19);
142
137
  } if (rf & 2) {
143
138
  i0.ɵɵstyleMap(i0.ɵɵpureFunction0(4, _c6));
144
139
  i0.ɵɵproperty("width", 50)("headerStyle", i0.ɵɵpureFunction0(5, _c7));
145
140
  } }
146
- function UserViewGridComponent_ng_template_4_kendo_grid_column_4_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
141
+ function UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
147
142
  i0.ɵɵtext(0);
148
143
  i0.ɵɵpipe(1, "number");
149
144
  i0.ɵɵpipe(2, "number");
150
145
  i0.ɵɵelement(3, "br");
151
- i0.ɵɵelementStart(4, "span", 26);
146
+ i0.ɵɵelementStart(4, "span", 22);
152
147
  i0.ɵɵtext(5);
153
148
  i0.ɵɵpipe(6, "number");
154
149
  i0.ɵɵelementEnd();
155
150
  } if (rf & 2) {
156
- const ctx_r36 = i0.ɵɵnextContext(4);
157
- i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3, ctx_r36.viewData.length), "", ctx_r36.totalRowCount > ctx_r36.viewData.length ? " of " + i0.ɵɵpipeBind1(2, 5, ctx_r36.totalRowCount) : " rows", "");
151
+ const ctx_r33 = i0.ɵɵnextContext(3);
152
+ i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3, ctx_r33.viewData.length), "", ctx_r33.totalRowCount > ctx_r33.viewData.length ? " of " + i0.ɵɵpipeBind1(2, 5, ctx_r33.totalRowCount) : " rows", "");
158
153
  i0.ɵɵadvance(5);
159
- i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r36.viewExecutionTime, "1.2-2"), " seconds");
154
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r33.viewExecutionTime, "1.2-2"), " seconds");
160
155
  } }
161
- function UserViewGridComponent_ng_template_4_kendo_grid_column_4_1_Template(rf, ctx) { if (rf & 1) {
162
- i0.ɵɵtemplate(0, UserViewGridComponent_ng_template_4_kendo_grid_column_4_1_ng_template_0_Template, 7, 10, "ng-template", 25);
156
+ function UserViewGridComponent_kendo_grid_column_5_1_Template(rf, ctx) { if (rf & 1) {
157
+ i0.ɵɵtemplate(0, UserViewGridComponent_kendo_grid_column_5_1_ng_template_0_Template, 7, 10, "ng-template", 21);
163
158
  } }
164
- function UserViewGridComponent_ng_template_4_kendo_grid_column_4_Template(rf, ctx) { if (rf & 1) {
165
- i0.ɵɵelementStart(0, "kendo-grid-column", 24);
166
- i0.ɵɵtemplate(1, UserViewGridComponent_ng_template_4_kendo_grid_column_4_1_Template, 1, 0, null, 5);
159
+ function UserViewGridComponent_kendo_grid_column_5_Template(rf, ctx) { if (rf & 1) {
160
+ i0.ɵɵelementStart(0, "kendo-grid-column", 20);
161
+ i0.ɵɵtemplate(1, UserViewGridComponent_kendo_grid_column_5_1_Template, 1, 0, null, 9);
167
162
  i0.ɵɵelementEnd();
168
163
  } if (rf & 2) {
169
- const item_r34 = ctx.$implicit;
170
- const ctx_r7 = i0.ɵɵnextContext(2);
171
- i0.ɵɵstyleMap(ctx_r7.GetColumnCellStyle(item_r34));
172
- i0.ɵɵproperty("field", item_r34.Name)("title", ctx_r7.GetColumnTitle(item_r34))("width", item_r34.width ? item_r34.width : 100)("editable", item_r34.EntityField.AllowUpdateAPI)("editor", ctx_r7.getEditor(item_r34.EntityField))("headerStyle", i0.ɵɵpureFunction0(9, _c7));
173
- i0.ɵɵadvance();
174
- i0.ɵɵproperty("ngIf", item_r34 === ctx_r7.visibleColumns[0]);
175
- } }
176
- function UserViewGridComponent_ng_template_4_kendo_excelexport_column_7_Template(rf, ctx) { if (rf & 1) {
177
- i0.ɵɵelement(0, "kendo-excelexport-column", 27);
178
- } if (rf & 2) {
179
- const exportCol_r37 = ctx.$implicit;
180
- i0.ɵɵproperty("field", exportCol_r37.Name)("title", exportCol_r37.Name);
181
- } }
182
- function UserViewGridComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
183
- const _r39 = i0.ɵɵgetCurrentView();
184
- i0.ɵɵelementStart(0, "kendo-grid", 6, 7);
185
- i0.ɵɵlistener("pageChange", function UserViewGridComponent_ng_template_4_Template_kendo_grid_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.pageChange($event)); })("selectedKeysChange", function UserViewGridComponent_ng_template_4_Template_kendo_grid_selectedKeysChange_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.selectedKeys = $event); })("cellClick", function UserViewGridComponent_ng_template_4_Template_kendo_grid_cellClick_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.cellClickHandler($event)); })("cellClose", function UserViewGridComponent_ng_template_4_Template_kendo_grid_cellClose_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.cellCloseHandler($event)); })("columnReorder", function UserViewGridComponent_ng_template_4_Template_kendo_grid_columnReorder_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r43 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r43.columnReorder($event)); })("columnResize", function UserViewGridComponent_ng_template_4_Template_kendo_grid_columnResize_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r44 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r44.columnResize($event)); })("selectionChange", function UserViewGridComponent_ng_template_4_Template_kendo_grid_selectionChange_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r45 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r45.selectionChange($event)); })("sortChange", function UserViewGridComponent_ng_template_4_Template_kendo_grid_sortChange_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r46 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r46.sortChanged($event)); });
186
- i0.ɵɵtemplate(2, UserViewGridComponent_ng_template_4_ng_template_2_Template, 8, 8, "ng-template", 8)(3, UserViewGridComponent_ng_template_4_kendo_grid_checkbox_column_3_Template, 1, 6, "kendo-grid-checkbox-column", 9)(4, UserViewGridComponent_ng_template_4_kendo_grid_column_4_Template, 2, 10, "kendo-grid-column", 10);
187
- i0.ɵɵelementStart(5, "kendo-excelexport", 11, 12);
188
- i0.ɵɵtemplate(7, UserViewGridComponent_ng_template_4_kendo_excelexport_column_7_Template, 1, 2, "kendo-excelexport-column", 13);
189
- i0.ɵɵelementEnd()();
190
- } if (rf & 2) {
191
- const ctx_r1 = i0.ɵɵnextContext();
192
- i0.ɵɵproperty("resizable", true)("data", ctx_r1.gridView)("skip", ctx_r1.skip)("pageSize", ctx_r1.pageSize)("rowHeight", 36)("loading", ctx_r1.isLoading)("height", ctx_r1.gridHeight)("sortable", true)("sort", ctx_r1.sortSettings)("resizable", true)("reorderable", true)("selectable", true)("selectedKeys", ctx_r1.selectedKeys);
193
- i0.ɵɵadvance(3);
194
- i0.ɵɵproperty("ngIf", ctx_r1.compareMode || ctx_r1.mergeMode);
195
- i0.ɵɵadvance();
196
- i0.ɵɵproperty("ngForOf", ctx_r1.visibleColumns);
164
+ const item_r31 = ctx.$implicit;
165
+ const ctx_r3 = i0.ɵɵnextContext();
166
+ i0.ɵɵstyleMap(ctx_r3.GetColumnCellStyle(item_r31));
167
+ i0.ɵɵproperty("field", item_r31.Name)("title", ctx_r3.GetColumnTitle(item_r31))("width", item_r31.width ? item_r31.width : 100)("editable", item_r31.EntityField.AllowUpdateAPI)("editor", ctx_r3.getEditor(item_r31.EntityField))("headerStyle", i0.ɵɵpureFunction0(9, _c7));
197
168
  i0.ɵɵadvance();
198
- i0.ɵɵproperty("data", ctx_r1.exportData)("fileName", (ctx_r1._viewEntity ? ctx_r1._viewEntity.Get("Name") : ctx_r1._entityInfo == null ? null : ctx_r1._entityInfo.Name) + ".xlsx");
199
- i0.ɵɵadvance(2);
200
- i0.ɵɵproperty("ngForOf", ctx_r1.exportColumns);
169
+ i0.ɵɵproperty("ngIf", item_r31 === ctx_r3.visibleColumns[0]);
201
170
  } }
202
- function UserViewGridComponent_kendo_tabstrip_tab_5_ng_template_1_Template(rf, ctx) { if (rf & 1) {
203
- i0.ɵɵtext(0, "Analysis");
204
- } }
205
- function UserViewGridComponent_kendo_tabstrip_tab_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
206
- i0.ɵɵelement(0, "mj-skip-chat", 28);
171
+ function UserViewGridComponent_kendo_excelexport_column_8_Template(rf, ctx) { if (rf & 1) {
172
+ i0.ɵɵelement(0, "kendo-excelexport-column", 23);
207
173
  } if (rf & 2) {
208
- const ctx_r48 = i0.ɵɵnextContext(2);
209
- i0.ɵɵproperty("AllowNewConversations", false)("ShowConversationList", false)("UpdateAppRoute", false)("LinkedEntity", "User Views")("LinkedEntityRecordID", ctx_r48.ViewID);
210
- } }
211
- function UserViewGridComponent_kendo_tabstrip_tab_5_Template(rf, ctx) { if (rf & 1) {
212
- i0.ɵɵelementStart(0, "kendo-tabstrip-tab");
213
- i0.ɵɵtemplate(1, UserViewGridComponent_kendo_tabstrip_tab_5_ng_template_1_Template, 1, 0, "ng-template", 3)(2, UserViewGridComponent_kendo_tabstrip_tab_5_ng_template_2_Template, 1, 5, "ng-template", 4);
214
- i0.ɵɵelementEnd();
174
+ const exportCol_r34 = ctx.$implicit;
175
+ i0.ɵɵproperty("field", exportCol_r34.Name)("title", exportCol_r34.Name);
215
176
  } }
216
- function UserViewGridComponent_div_6_kendo_window_2_button_6_Template(rf, ctx) { if (rf & 1) {
217
- const _r56 = i0.ɵɵgetCurrentView();
218
- i0.ɵɵelementStart(0, "button", 39);
219
- i0.ɵɵlistener("click", function UserViewGridComponent_div_6_kendo_window_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r56); const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.closeCompareDialog("close")); });
177
+ function UserViewGridComponent_div_9_kendo_window_2_button_6_Template(rf, ctx) { if (rf & 1) {
178
+ const _r42 = i0.ɵɵgetCurrentView();
179
+ i0.ɵɵelementStart(0, "button", 34);
180
+ i0.ɵɵlistener("click", function UserViewGridComponent_div_9_kendo_window_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r42); const ctx_r41 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r41.closeCompareDialog("close")); });
220
181
  i0.ɵɵtext(1, "Close");
221
182
  i0.ɵɵelementEnd();
222
183
  } }
223
- function UserViewGridComponent_div_6_kendo_window_2_button_7_Template(rf, ctx) { if (rf & 1) {
224
- const _r58 = i0.ɵɵgetCurrentView();
225
- i0.ɵɵelementStart(0, "button", 39);
226
- i0.ɵɵlistener("click", function UserViewGridComponent_div_6_kendo_window_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r58); const ctx_r57 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r57.closeCompareDialog("cancel")); });
184
+ function UserViewGridComponent_div_9_kendo_window_2_button_7_Template(rf, ctx) { if (rf & 1) {
185
+ const _r44 = i0.ɵɵgetCurrentView();
186
+ i0.ɵɵelementStart(0, "button", 34);
187
+ i0.ɵɵlistener("click", function UserViewGridComponent_div_9_kendo_window_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r43.closeCompareDialog("cancel")); });
227
188
  i0.ɵɵtext(1, "Cancel");
228
189
  i0.ɵɵelementEnd();
229
190
  } }
230
- function UserViewGridComponent_div_6_kendo_window_2_button_8_Template(rf, ctx) { if (rf & 1) {
231
- const _r60 = i0.ɵɵgetCurrentView();
232
- i0.ɵɵelementStart(0, "button", 40);
233
- i0.ɵɵlistener("click", function UserViewGridComponent_div_6_kendo_window_2_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r60); const ctx_r59 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r59.closeCompareDialog("merge")); });
191
+ function UserViewGridComponent_div_9_kendo_window_2_button_8_Template(rf, ctx) { if (rf & 1) {
192
+ const _r46 = i0.ɵɵgetCurrentView();
193
+ i0.ɵɵelementStart(0, "button", 35);
194
+ i0.ɵɵlistener("click", function UserViewGridComponent_div_9_kendo_window_2_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r46); const ctx_r45 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r45.closeCompareDialog("merge")); });
234
195
  i0.ɵɵtext(1, " Merge Records ");
235
196
  i0.ɵɵelementEnd();
236
197
  } }
237
- function UserViewGridComponent_div_6_kendo_window_2_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
238
- const _r62 = i0.ɵɵgetCurrentView();
239
- i0.ɵɵelementStart(0, "kendo-dialog", 41);
240
- i0.ɵɵlistener("close", function UserViewGridComponent_div_6_kendo_window_2_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r62); const ctx_r61 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r61.closeConfirmMergeDialog("cancel")); });
241
- i0.ɵɵelementStart(1, "p", 42);
198
+ function UserViewGridComponent_div_9_kendo_window_2_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
199
+ const _r48 = i0.ɵɵgetCurrentView();
200
+ i0.ɵɵelementStart(0, "kendo-dialog", 36);
201
+ i0.ɵɵlistener("close", function UserViewGridComponent_div_9_kendo_window_2_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r48); const ctx_r47 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r47.closeConfirmMergeDialog("cancel")); });
202
+ i0.ɵɵelementStart(1, "p", 37);
242
203
  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. ");
243
204
  i0.ɵɵelementEnd();
244
- i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button", 18);
245
- i0.ɵɵlistener("click", function UserViewGridComponent_div_6_kendo_window_2_kendo_dialog_9_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r62); const ctx_r63 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r63.closeConfirmMergeDialog("no")); });
205
+ i0.ɵɵelementStart(3, "kendo-dialog-actions")(4, "button", 14);
206
+ i0.ɵɵlistener("click", function UserViewGridComponent_div_9_kendo_window_2_kendo_dialog_9_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r48); const ctx_r49 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r49.closeConfirmMergeDialog("no")); });
246
207
  i0.ɵɵtext(5, "No");
247
208
  i0.ɵɵelementEnd();
248
- i0.ɵɵelementStart(6, "button", 43);
249
- i0.ɵɵlistener("click", function UserViewGridComponent_div_6_kendo_window_2_kendo_dialog_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r62); const ctx_r64 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r64.closeConfirmMergeDialog("yes")); });
209
+ i0.ɵɵelementStart(6, "button", 38);
210
+ i0.ɵɵlistener("click", function UserViewGridComponent_div_9_kendo_window_2_kendo_dialog_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r48); const ctx_r50 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r50.closeConfirmMergeDialog("yes")); });
250
211
  i0.ɵɵtext(7, " Yes ");
251
212
  i0.ɵɵelementEnd()()();
252
213
  } if (rf & 2) {
253
214
  i0.ɵɵproperty("minWidth", 250)("width", 450);
254
215
  } }
255
- function UserViewGridComponent_div_6_kendo_window_2_Template(rf, ctx) { if (rf & 1) {
256
- const _r66 = i0.ɵɵgetCurrentView();
257
- i0.ɵɵelementStart(0, "kendo-window", 31);
258
- i0.ɵɵlistener("close", function UserViewGridComponent_div_6_kendo_window_2_Template_kendo_window_close_0_listener($event) { i0.ɵɵrestoreView(_r66); const ctx_r65 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r65.closeCompareDialog($event)); });
259
- i0.ɵɵelementStart(1, "div", 32)(2, "div");
260
- i0.ɵɵelement(3, "mj-compare-records", 33, 34);
216
+ function UserViewGridComponent_div_9_kendo_window_2_Template(rf, ctx) { if (rf & 1) {
217
+ const _r52 = i0.ɵɵgetCurrentView();
218
+ i0.ɵɵelementStart(0, "kendo-window", 26);
219
+ i0.ɵɵlistener("close", function UserViewGridComponent_div_9_kendo_window_2_Template_kendo_window_close_0_listener($event) { i0.ɵɵrestoreView(_r52); const ctx_r51 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r51.closeCompareDialog($event)); });
220
+ i0.ɵɵelementStart(1, "div", 27)(2, "div");
221
+ i0.ɵɵelement(3, "mj-compare-records", 28, 29);
261
222
  i0.ɵɵelementEnd()();
262
- i0.ɵɵelementStart(5, "div", 35);
263
- i0.ɵɵtemplate(6, UserViewGridComponent_div_6_kendo_window_2_button_6_Template, 2, 0, "button", 36)(7, UserViewGridComponent_div_6_kendo_window_2_button_7_Template, 2, 0, "button", 36)(8, UserViewGridComponent_div_6_kendo_window_2_button_8_Template, 2, 0, "button", 37);
223
+ i0.ɵɵelementStart(5, "div", 30);
224
+ i0.ɵɵtemplate(6, UserViewGridComponent_div_9_kendo_window_2_button_6_Template, 2, 0, "button", 31)(7, UserViewGridComponent_div_9_kendo_window_2_button_7_Template, 2, 0, "button", 31)(8, UserViewGridComponent_div_9_kendo_window_2_button_8_Template, 2, 0, "button", 32);
264
225
  i0.ɵɵelementEnd();
265
- i0.ɵɵtemplate(9, UserViewGridComponent_div_6_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog", 38);
226
+ i0.ɵɵtemplate(9, UserViewGridComponent_div_9_kendo_window_2_kendo_dialog_9_Template, 8, 2, "kendo-dialog", 33);
266
227
  i0.ɵɵelementEnd();
267
228
  } if (rf & 2) {
268
- const ctx_r49 = i0.ɵɵnextContext(2);
229
+ const ctx_r35 = i0.ɵɵnextContext(2);
269
230
  i0.ɵɵproperty("minHeight", 300)("minWidth", 400)("resizable", true);
270
231
  i0.ɵɵadvance(3);
271
- i0.ɵɵproperty("entityName", ctx_r49._entityInfo ? ctx_r49._entityInfo.Name : "")("recordsToCompare", ctx_r49.recordsToCompare)("visibleColumns", ctx_r49.visibleColumns)("selectionMode", ctx_r49.mergeMode ? true : false);
232
+ i0.ɵɵproperty("entityName", ctx_r35._entityInfo ? ctx_r35._entityInfo.Name : "")("recordsToCompare", ctx_r35.recordsToCompare)("visibleColumns", ctx_r35.visibleColumns)("selectionMode", ctx_r35.mergeMode ? true : false);
272
233
  i0.ɵɵadvance(3);
273
- i0.ɵɵproperty("ngIf", ctx_r49.compareMode);
234
+ i0.ɵɵproperty("ngIf", ctx_r35.compareMode);
274
235
  i0.ɵɵadvance();
275
- i0.ɵɵproperty("ngIf", ctx_r49.mergeMode);
236
+ i0.ɵɵproperty("ngIf", ctx_r35.mergeMode);
276
237
  i0.ɵɵadvance();
277
- i0.ɵɵproperty("ngIf", ctx_r49.mergeMode);
238
+ i0.ɵɵproperty("ngIf", ctx_r35.mergeMode);
278
239
  i0.ɵɵadvance();
279
- i0.ɵɵproperty("ngIf", ctx_r49.isConfirmDialogOpen);
240
+ i0.ɵɵproperty("ngIf", ctx_r35.isConfirmDialogOpen);
280
241
  } }
281
- function UserViewGridComponent_div_6_Template(rf, ctx) { if (rf & 1) {
242
+ function UserViewGridComponent_div_9_Template(rf, ctx) { if (rf & 1) {
282
243
  i0.ɵɵelementStart(0, "div");
283
- i0.ɵɵelement(1, "div", 29);
284
- i0.ɵɵtemplate(2, UserViewGridComponent_div_6_kendo_window_2_Template, 10, 11, "kendo-window", 30);
244
+ i0.ɵɵelement(1, "div", 24);
245
+ i0.ɵɵtemplate(2, UserViewGridComponent_div_9_kendo_window_2_Template, 10, 11, "kendo-window", 25);
285
246
  i0.ɵɵelementEnd();
286
247
  } if (rf & 2) {
287
- const ctx_r3 = i0.ɵɵnextContext();
248
+ const ctx_r6 = i0.ɵɵnextContext();
288
249
  i0.ɵɵadvance(2);
289
- i0.ɵɵproperty("ngIf", ctx_r3.isCompareDialogOpened);
250
+ i0.ɵɵproperty("ngIf", ctx_r6.isCompareDialogOpened);
290
251
  } }
291
252
  export class UserViewGridComponent {
292
253
  get PendingRecords() {
@@ -400,14 +361,10 @@ export class UserViewGridComponent {
400
361
  this.gridView = { data: [], total: 0 };
401
362
  this.gridHeight = 750;
402
363
  this._newGridState = {};
403
- // public plotData = [];
404
- // public plotLayout: any = {};
405
364
  this.editModeEnded = new Subject();
406
365
  this.recordsToCompare = [];
407
366
  this.compareMode = false;
408
- // public compareRecords: BaseEntity[] = [];
409
367
  this.mergeMode = false;
410
- // public mergeRecords: BaseEntity[] = [];
411
368
  this.selectableSettings = {
412
369
  enabled: false
413
370
  };
@@ -985,9 +942,6 @@ export class UserViewGridComponent {
985
942
  throw new Error("Unable to get export data");
986
943
  });
987
944
  }
988
- selectTabHandler() {
989
- SharedService.Instance.InvokeManualResize(100); // resize when the tab is clicked
990
- }
991
945
  }
992
946
  UserViewGridComponent.ɵfac = function UserViewGridComponent_Factory(t) { return new (t || UserViewGridComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.Router)); };
993
947
  UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewGridComponent, selectors: [["mj-user-view-grid"]], viewQuery: function UserViewGridComponent_Query(rf, ctx) { if (rf & 1) {
@@ -1007,29 +961,32 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
1007
961
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.analysisQuestion = _t.first);
1008
962
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.analysisResults = _t.first);
1009
963
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
1010
- } }, inputs: { Params: "Params", BottomMargin: "BottomMargin", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", AllowLoad: "AllowLoad" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 7, vars: 5, consts: [["mjFillContainer", "", 1, "user-view-grid-wrap"], ["mjFillContainer", "", 3, "keepTabContent", "animate", "tabSelect"], [3, "selected"], ["kendoTabTitle", ""], ["kendoTabContent", ""], [4, "ngIf"], ["mjFillContainer", "", "scrollable", "virtual", "kendoGridSelectBy", "", 3, "resizable", "data", "skip", "pageSize", "rowHeight", "loading", "height", "sortable", "sort", "reorderable", "selectable", "selectedKeys", "pageChange", "selectedKeysChange", "cellClick", "cellClose", "columnReorder", "columnResize", "selectionChange", "sortChange"], ["kendoGrid", ""], ["kendoGridToolbarTemplate", ""], [3, "width", "headerStyle", "style", 4, "ngIf"], [3, "field", "title", "width", "editable", "editor", "headerStyle", "style", 4, "ngFor", "ngForOf"], [3, "data", "fileName"], ["excelExport", ""], [3, "field", "title", 4, "ngFor", "ngForOf"], ["kendoButton", "", 3, "click", 4, "ngIf"], ["class", "k-button k-button-md k-rounded-md k-button-solid-base k-button-solid", 3, "disabled", "click", 4, "ngIf"], ["class", "k-button k-button-md k-rounded-md k-button-solid-base k-button-solid", 3, "click", 4, "ngIf"], ["kendoButton", "", 3, "primary", "click", 4, "ngIf"], ["kendoButton", "", 3, "click"], [3, "icon"], [1, "k-button", "k-button-md", "k-rounded-md", "k-button-solid-base", "k-button-solid", 3, "disabled", "click"], [1, "k-button", "k-button-md", "k-rounded-md", "k-button-solid-base", "k-button-solid", 3, "click"], ["kendoButton", "", 3, "primary", "click"], [3, "width", "headerStyle"], [3, "field", "title", "width", "editable", "editor", "headerStyle"], ["kendoGridFooterTemplate", ""], [2, "font-size", "smaller", "font-weight", "normal"], [3, "field", "title"], ["mjFillContainer", "", 3, "AllowNewConversations", "ShowConversationList", "UpdateAppRoute", "LinkedEntity", "LinkedEntityRecordID"], [1, "k-overlay"], ["title", "Compare Records", 3, "minHeight", "minWidth", "resizable", "close", 4, "ngIf"], ["title", "Compare Records", 3, "minHeight", "minWidth", "resizable", "close"], [1, "k-d-flex", "k-flex-col", "k-justify-content-between", "k-h-full"], [3, "entityName", "recordsToCompare", "visibleColumns", "selectionMode"], ["recordCompareRef", ""], [1, "k-actions", "k-actions-end"], ["kendoButton", "", "type", "button", 3, "click", 4, "ngIf"], ["kendoButton", "", "themeColor", "primary", "type", "button", 3, "click", 4, "ngIf"], ["title", "Confirm Choice", 3, "minWidth", "width", "close", 4, "ngIf"], ["kendoButton", "", "type", "button", 3, "click"], ["kendoButton", "", "themeColor", "primary", "type", "button", 3, "click"], ["title", "Confirm Choice", 3, "minWidth", "width", "close"], [2, "margin", "30px", "text-align", "center"], ["kendoButton", "", "themeColor", "primary", 3, "click"]], template: function UserViewGridComponent_Template(rf, ctx) { if (rf & 1) {
1011
- i0.ɵɵelementStart(0, "div", 0)(1, "kendo-tabstrip", 1);
1012
- i0.ɵɵlistener("tabSelect", function UserViewGridComponent_Template_kendo_tabstrip_tabSelect_1_listener() { return ctx.selectTabHandler(); });
1013
- i0.ɵɵelementStart(2, "kendo-tabstrip-tab", 2);
1014
- i0.ɵɵtemplate(3, UserViewGridComponent_ng_template_3_Template, 1, 0, "ng-template", 3)(4, UserViewGridComponent_ng_template_4_Template, 8, 18, "ng-template", 4);
1015
- i0.ɵɵelementEnd();
1016
- i0.ɵɵtemplate(5, UserViewGridComponent_kendo_tabstrip_tab_5_Template, 3, 0, "kendo-tabstrip-tab", 5);
1017
- i0.ɵɵelementEnd();
1018
- i0.ɵɵtemplate(6, UserViewGridComponent_div_6_Template, 3, 1, "div", 5);
964
+ } }, inputs: { Params: "Params", BottomMargin: "BottomMargin", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", AllowLoad: "AllowLoad" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 10, vars: 19, consts: [["mjFillContainer", "", 1, "user-view-grid-wrap"], ["mjFillContainer", "", "scrollable", "virtual", "kendoGridSelectBy", "", 3, "resizable", "data", "skip", "pageSize", "rowHeight", "loading", "height", "sortable", "sort", "reorderable", "selectable", "selectedKeys", "pageChange", "selectedKeysChange", "cellClick", "cellClose", "columnReorder", "columnResize", "selectionChange", "sortChange"], ["kendoGrid", ""], ["kendoGridToolbarTemplate", ""], [3, "width", "headerStyle", "style", 4, "ngIf"], [3, "field", "title", "width", "editable", "editor", "headerStyle", "style", 4, "ngFor", "ngForOf"], [3, "data", "fileName"], ["excelExport", ""], [3, "field", "title", 4, "ngFor", "ngForOf"], [4, "ngIf"], ["kendoButton", "", 3, "click", 4, "ngIf"], ["class", "k-button k-button-md k-rounded-md k-button-solid-base k-button-solid", 3, "disabled", "click", 4, "ngIf"], ["class", "k-button k-button-md k-rounded-md k-button-solid-base k-button-solid", 3, "click", 4, "ngIf"], ["kendoButton", "", 3, "primary", "click", 4, "ngIf"], ["kendoButton", "", 3, "click"], [3, "icon"], [1, "k-button", "k-button-md", "k-rounded-md", "k-button-solid-base", "k-button-solid", 3, "disabled", "click"], [1, "k-button", "k-button-md", "k-rounded-md", "k-button-solid-base", "k-button-solid", 3, "click"], ["kendoButton", "", 3, "primary", "click"], [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", "resizable", "close", 4, "ngIf"], ["title", "Compare Records", 3, "minHeight", "minWidth", "resizable", "close"], [1, "k-d-flex", "k-flex-col", "k-justify-content-between", "k-h-full"], [3, "entityName", "recordsToCompare", "visibleColumns", "selectionMode"], ["recordCompareRef", ""], [1, "k-actions", "k-actions-end"], ["kendoButton", "", "type", "button", 3, "click", 4, "ngIf"], ["kendoButton", "", "themeColor", "primary", "type", "button", 3, "click", 4, "ngIf"], ["title", "Confirm Choice", 3, "minWidth", "width", "close", 4, "ngIf"], ["kendoButton", "", "type", "button", 3, "click"], ["kendoButton", "", "themeColor", "primary", "type", "button", 3, "click"], ["title", "Confirm Choice", 3, "minWidth", "width", "close"], [2, "margin", "30px", "text-align", "center"], ["kendoButton", "", "themeColor", "primary", 3, "click"]], template: function UserViewGridComponent_Template(rf, ctx) { if (rf & 1) {
965
+ i0.ɵɵelementStart(0, "div", 0)(1, "kendo-grid", 1, 2);
966
+ i0.ɵɵlistener("pageChange", function UserViewGridComponent_Template_kendo_grid_pageChange_1_listener($event) { return ctx.pageChange($event); })("selectedKeysChange", function UserViewGridComponent_Template_kendo_grid_selectedKeysChange_1_listener($event) { return ctx.selectedKeys = $event; })("cellClick", function UserViewGridComponent_Template_kendo_grid_cellClick_1_listener($event) { return ctx.cellClickHandler($event); })("cellClose", function UserViewGridComponent_Template_kendo_grid_cellClose_1_listener($event) { return ctx.cellCloseHandler($event); })("columnReorder", function UserViewGridComponent_Template_kendo_grid_columnReorder_1_listener($event) { return ctx.columnReorder($event); })("columnResize", function UserViewGridComponent_Template_kendo_grid_columnResize_1_listener($event) { return ctx.columnResize($event); })("selectionChange", function UserViewGridComponent_Template_kendo_grid_selectionChange_1_listener($event) { return ctx.selectionChange($event); })("sortChange", function UserViewGridComponent_Template_kendo_grid_sortChange_1_listener($event) { return ctx.sortChanged($event); });
967
+ i0.ɵɵtemplate(3, UserViewGridComponent_ng_template_3_Template, 8, 8, "ng-template", 3)(4, UserViewGridComponent_kendo_grid_checkbox_column_4_Template, 1, 6, "kendo-grid-checkbox-column", 4)(5, UserViewGridComponent_kendo_grid_column_5_Template, 2, 10, "kendo-grid-column", 5);
968
+ i0.ɵɵelementStart(6, "kendo-excelexport", 6, 7);
969
+ i0.ɵɵtemplate(8, UserViewGridComponent_kendo_excelexport_column_8_Template, 1, 2, "kendo-excelexport-column", 8);
970
+ i0.ɵɵelementEnd()();
971
+ i0.ɵɵtemplate(9, UserViewGridComponent_div_9_Template, 3, 1, "div", 9);
1019
972
  i0.ɵɵelementEnd();
1020
973
  } if (rf & 2) {
1021
974
  i0.ɵɵadvance();
1022
- i0.ɵɵproperty("keepTabContent", true)("animate", false);
1023
- i0.ɵɵadvance();
1024
- i0.ɵɵproperty("selected", true);
975
+ 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)("selectedKeys", ctx.selectedKeys);
1025
976
  i0.ɵɵadvance(3);
1026
- i0.ɵɵproperty("ngIf", ctx.Params == null ? null : ctx.Params.ViewID);
977
+ i0.ɵɵproperty("ngIf", ctx.compareMode || ctx.mergeMode);
978
+ i0.ɵɵadvance();
979
+ i0.ɵɵproperty("ngForOf", ctx.visibleColumns);
980
+ i0.ɵɵadvance();
981
+ i0.ɵɵproperty("data", ctx.exportData)("fileName", (ctx._viewEntity ? ctx._viewEntity.Get("Name") : ctx._entityInfo == null ? null : ctx._entityInfo.Name) + ".xlsx");
982
+ i0.ɵɵadvance(2);
983
+ i0.ɵɵproperty("ngForOf", ctx.exportColumns);
1027
984
  i0.ɵɵadvance();
1028
985
  i0.ɵɵproperty("ngIf", ctx.isCompareDialogOpened);
1029
- } }, 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.SVGIconComponent, i11.TabStripComponent, i11.TabStripTabComponent, i11.TabContentDirective, i11.TabTitleDirective, i12.SkipChatComponent, i3.DecimalPipe], styles: [".user-view-grid-wrap[_ngcontent-%COMP%] {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header[_ngcontent-%COMP%] {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] });
986
+ } }, 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.SVGIconComponent, i3.DecimalPipe], styles: [".user-view-grid-wrap[_ngcontent-%COMP%] {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header[_ngcontent-%COMP%] {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] });
1030
987
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridComponent, [{
1031
988
  type: Component,
1032
- args: [{ selector: 'mj-user-view-grid', template: "<div class=\"user-view-grid-wrap\" mjFillContainer>\r\n <kendo-tabstrip [keepTabContent]=\"true\" [animate] = \"false\" mjFillContainer (tabSelect)=\"selectTabHandler()\"> \r\n <kendo-tabstrip-tab [selected]=\"true\">\r\n <ng-template kendoTabTitle>Data</ng-template>\r\n <ng-template kendoTabContent>\r\n <kendo-grid #kendoGrid\r\n mjFillContainer\r\n [resizable]=\"true\"\r\n [data]=\"gridView\" \r\n [skip]=\"skip\"\r\n [pageSize]=\"pageSize\"\r\n scrollable=\"virtual\"\r\n [rowHeight]=\"36\"\r\n (pageChange)=\"pageChange($event)\"\r\n [loading]=\"isLoading\"\r\n [height]=\"gridHeight\"\r\n [sortable]=\"true\"\r\n [sort]=\"sortSettings\" \r\n [resizable]=\"true\"\r\n [reorderable]=\"true\"\r\n [selectable]=\"true\"\r\n kendoGridSelectBy\r\n [(selectedKeys)]=\"selectedKeys\"\r\n (cellClick)=\"cellClickHandler($event)\"\r\n (cellClose)=\"cellCloseHandler($event)\"\r\n (columnReorder)=\"columnReorder($event)\"\r\n (columnResize)=\"columnResize($event)\"\r\n (selectionChange)=\"selectionChange($event)\"\r\n (sortChange)=\"sortChanged($event)\"\r\n >\r\n <ng-template kendoGridToolbarTemplate>\r\n <button kendoButton *ngIf=\"!compareMode && !mergeMode\" (click)=\"doExcelExport()\" >\r\n <kendo-svgicon [icon]=\"kendoSVGIcon('fileExcel')\"></kendo-svgicon>\r\n Export to Excel\r\n </button>\r\n <!-- 3 buttons for compare. First one only shows when comparison is going on in the grid, the next one is the one the user starts the process with before records are selected, last one is to cancel the pending compare. -->\r\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" *ngIf=\"!compareMode && !mergeMode\" [disabled]=\"compareMode && recordsToCompare.length < 2\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Compare</button>\r\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" *ngIf=\"compareMode\" [disabled]=\"compareMode && recordsToCompare.length < 2\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Compare</button>\r\n <button (click)=\"enableMergeOrCompare(true, 'compare')\" *ngIf=\"compareMode\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Cancel</button>\r\n \r\n <!-- 3 buttons for merge. First one only shows when merge is getting goin in the grid, the next one is the one the user starts the process with before records are selected, last one is to cancel the pending merge. -->\r\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" *ngIf=\"mergeMode\" [disabled]=\"mergeMode && recordsToCompare.length < 2\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Merge</button>\r\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" *ngIf=\"!mergeMode && !compareMode\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Merge</button>\r\n <button (click)=\"enableMergeOrCompare(true, 'merge')\" *ngIf=\"mergeMode\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Cancel</button>\r\n <button\r\n kendoButton\r\n [primary]=\"true\"\r\n *ngIf=\"showRefreshButton && !compareMode && !mergeMode\"\r\n (click)=\"RefreshFromSavedParams()\">\r\n <kendo-svgicon [icon]=\"kendoSVGIcon('arrowRotateCcwSmall')\"></kendo-svgicon>\r\n Refresh\r\n </button>\r\n </ng-template>\r\n \r\n <kendo-grid-checkbox-column \r\n *ngIf=\"compareMode || mergeMode\" \r\n [width]=\"50\" \r\n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': '#a9c2af' }\" \r\n [style]=\"{'text-align': 'center', 'vertical-align': 'center'}\">\r\n </kendo-grid-checkbox-column>\r\n \r\n <kendo-grid-column \r\n *ngFor=\"let item of visibleColumns\" \r\n [field]=\"item.Name\" \r\n [title]=\"GetColumnTitle(item)\"\r\n [width]=\"item.width ? item.width : 100\"\r\n [editable]=\"item.EntityField.AllowUpdateAPI\"\r\n [editor]=\"getEditor(item.EntityField)\"\r\n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': '#a9c2af' }\"\r\n [style]=\"this.GetColumnCellStyle(item)\"\r\n >\r\n <ng-template *ngIf=\"item===visibleColumns[0]\" kendoGridFooterTemplate >\r\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>\r\n </ng-template>\r\n </kendo-grid-column>\r\n \r\n <kendo-excelexport #excelExport [data]=\"exportData\" [fileName]=\"(_viewEntity ? _viewEntity.Get('Name') : _entityInfo?.Name) + '.xlsx'\">\r\n <kendo-excelexport-column *ngFor=\"let exportCol of exportColumns\" [field]=\"exportCol.Name\" [title]=\"exportCol.Name\">\r\n </kendo-excelexport-column>\r\n </kendo-excelexport>\r\n </kendo-grid>\r\n </ng-template> \r\n </kendo-tabstrip-tab>\r\n <kendo-tabstrip-tab *ngIf=\"Params?.ViewID\">\r\n <ng-template kendoTabTitle>Analysis</ng-template>\r\n <ng-template kendoTabContent>\r\n <mj-skip-chat mjFillContainer [AllowNewConversations]=\"false\" [ShowConversationList]=\"false\" [UpdateAppRoute]=\"false\" \r\n [LinkedEntity]=\"'User Views'\" [LinkedEntityRecordID]=\"ViewID\">\r\n </mj-skip-chat>\r\n </ng-template>\r\n </kendo-tabstrip-tab>\r\n </kendo-tabstrip>\r\n \r\n\r\n\r\n <div *ngIf=\"isCompareDialogOpened\">\r\n <div class=\"k-overlay\"></div>\r\n <kendo-window\r\n [minHeight]=\"300\"\r\n [minWidth]=\"400\"\r\n [resizable]=\"true\"\r\n (close)=\"closeCompareDialog($event)\"\r\n title=\"Compare Records\"\r\n *ngIf=\"isCompareDialogOpened\"\r\n >\r\n <div class=\"k-d-flex k-flex-col k-justify-content-between k-h-full\">\r\n <div>\r\n <mj-compare-records\r\n #recordCompareRef\r\n [entityName]=\"_entityInfo ? _entityInfo.Name : ''\"\r\n [recordsToCompare]=\"recordsToCompare\" \r\n [visibleColumns]=\"visibleColumns\" \r\n [selectionMode]=\"mergeMode ? true : false\"\r\n >\r\n </mj-compare-records>\r\n </div>\r\n </div>\r\n <div class=\"k-actions k-actions-end\">\r\n <button *ngIf=\"compareMode\" kendoButton type=\"button\" (click)=\"closeCompareDialog('close')\">Close</button>\r\n <button *ngIf=\"mergeMode\"kendoButton type=\"button\" (click)=\"closeCompareDialog('cancel')\">Cancel</button>\r\n <button *ngIf=\"mergeMode\"\r\n kendoButton\r\n themeColor=\"primary\"\r\n type=\"button\"\r\n (click)=\"closeCompareDialog('merge')\"\r\n >\r\n Merge Records\r\n </button>\r\n </div> \r\n <kendo-dialog\r\n title=\"Confirm Choice\"\r\n *ngIf=\"isConfirmDialogOpen\"\r\n (close)=\"closeConfirmMergeDialog('cancel')\"\r\n [minWidth]=\"250\"\r\n [width]=\"450\"\r\n >\r\n <p style=\"margin: 30px; text-align: center;\">\r\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.\r\n </p>\r\n <kendo-dialog-actions>\r\n <button kendoButton (click)=\"closeConfirmMergeDialog('no')\">No</button>\r\n <button kendoButton (click)=\"closeConfirmMergeDialog('yes')\" themeColor=\"primary\">\r\n Yes\r\n </button>\r\n </kendo-dialog-actions>\r\n </kendo-dialog>\r\n </kendo-window>\r\n </div> \r\n</div>\r\n", styles: [".user-view-grid-wrap {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] }]
989
+ args: [{ selector: 'mj-user-view-grid', template: "<div class=\"user-view-grid-wrap\" mjFillContainer>\r\n <kendo-grid #kendoGrid\r\n mjFillContainer\r\n [resizable]=\"true\"\r\n [data]=\"gridView\" \r\n [skip]=\"skip\"\r\n [pageSize]=\"pageSize\"\r\n scrollable=\"virtual\"\r\n [rowHeight]=\"36\"\r\n (pageChange)=\"pageChange($event)\"\r\n [loading]=\"isLoading\"\r\n [height]=\"gridHeight\"\r\n [sortable]=\"true\"\r\n [sort]=\"sortSettings\" \r\n [resizable]=\"true\"\r\n [reorderable]=\"true\"\r\n [selectable]=\"true\"\r\n kendoGridSelectBy\r\n [(selectedKeys)]=\"selectedKeys\"\r\n (cellClick)=\"cellClickHandler($event)\"\r\n (cellClose)=\"cellCloseHandler($event)\"\r\n (columnReorder)=\"columnReorder($event)\"\r\n (columnResize)=\"columnResize($event)\"\r\n (selectionChange)=\"selectionChange($event)\"\r\n (sortChange)=\"sortChanged($event)\"\r\n >\r\n <ng-template kendoGridToolbarTemplate>\r\n <button kendoButton *ngIf=\"!compareMode && !mergeMode\" (click)=\"doExcelExport()\" >\r\n <kendo-svgicon [icon]=\"kendoSVGIcon('fileExcel')\"></kendo-svgicon>\r\n Export to Excel\r\n </button>\r\n <!-- 3 buttons for compare. First one only shows when comparison is going on in the grid, the next one is the one the user starts the process with before records are selected, last one is to cancel the pending compare. -->\r\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" *ngIf=\"!compareMode && !mergeMode\" [disabled]=\"compareMode && recordsToCompare.length < 2\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Compare</button>\r\n <button (click)=\"enableMergeOrCompare(false, 'compare')\" *ngIf=\"compareMode\" [disabled]=\"compareMode && recordsToCompare.length < 2\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Compare</button>\r\n <button (click)=\"enableMergeOrCompare(true, 'compare')\" *ngIf=\"compareMode\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Cancel</button>\r\n\r\n <!-- 3 buttons for merge. First one only shows when merge is getting goin in the grid, the next one is the one the user starts the process with before records are selected, last one is to cancel the pending merge. -->\r\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" *ngIf=\"mergeMode\" [disabled]=\"mergeMode && recordsToCompare.length < 2\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Merge</button>\r\n <button (click)=\"enableMergeOrCompare(false, 'merge')\" *ngIf=\"!mergeMode && !compareMode\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Merge</button>\r\n <button (click)=\"enableMergeOrCompare(true, 'merge')\" *ngIf=\"mergeMode\" class=\"k-button k-button-md k-rounded-md k-button-solid-base k-button-solid\">Cancel</button>\r\n <button\r\n kendoButton\r\n [primary]=\"true\"\r\n *ngIf=\"showRefreshButton && !compareMode && !mergeMode\"\r\n (click)=\"RefreshFromSavedParams()\">\r\n <kendo-svgicon [icon]=\"kendoSVGIcon('arrowRotateCcwSmall')\"></kendo-svgicon>\r\n Refresh\r\n </button>\r\n </ng-template>\r\n\r\n <kendo-grid-checkbox-column \r\n *ngIf=\"compareMode || mergeMode\" \r\n [width]=\"50\" \r\n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': '#a9c2af' }\" \r\n [style]=\"{'text-align': 'center', 'vertical-align': 'center'}\">\r\n </kendo-grid-checkbox-column>\r\n \r\n <kendo-grid-column \r\n *ngFor=\"let item of visibleColumns\" \r\n [field]=\"item.Name\" \r\n [title]=\"GetColumnTitle(item)\"\r\n [width]=\"item.width ? item.width : 100\"\r\n [editable]=\"item.EntityField.AllowUpdateAPI\"\r\n [editor]=\"getEditor(item.EntityField)\"\r\n [headerStyle]=\"{ 'font-weight' : 'bold', 'background-color': '#a9c2af' }\"\r\n [style]=\"this.GetColumnCellStyle(item)\"\r\n >\r\n <ng-template *ngIf=\"item===visibleColumns[0]\" kendoGridFooterTemplate >\r\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>\r\n </ng-template>\r\n </kendo-grid-column>\r\n\r\n <kendo-excelexport #excelExport [data]=\"exportData\" [fileName]=\"(_viewEntity ? _viewEntity.Get('Name') : _entityInfo?.Name) + '.xlsx'\">\r\n <kendo-excelexport-column *ngFor=\"let exportCol of exportColumns\" [field]=\"exportCol.Name\" [title]=\"exportCol.Name\">\r\n </kendo-excelexport-column>\r\n </kendo-excelexport>\r\n </kendo-grid>\r\n \r\n <div *ngIf=\"isCompareDialogOpened\">\r\n <div class=\"k-overlay\"></div>\r\n <kendo-window\r\n [minHeight]=\"300\"\r\n [minWidth]=\"400\"\r\n [resizable]=\"true\"\r\n (close)=\"closeCompareDialog($event)\"\r\n title=\"Compare Records\"\r\n *ngIf=\"isCompareDialogOpened\"\r\n >\r\n <div class=\"k-d-flex k-flex-col k-justify-content-between k-h-full\">\r\n <div>\r\n <mj-compare-records\r\n #recordCompareRef\r\n [entityName]=\"_entityInfo ? _entityInfo.Name : ''\"\r\n [recordsToCompare]=\"recordsToCompare\" \r\n [visibleColumns]=\"visibleColumns\" \r\n [selectionMode]=\"mergeMode ? true : false\"\r\n >\r\n </mj-compare-records>\r\n </div>\r\n </div>\r\n <div class=\"k-actions k-actions-end\">\r\n <button *ngIf=\"compareMode\" kendoButton type=\"button\" (click)=\"closeCompareDialog('close')\">Close</button>\r\n <button *ngIf=\"mergeMode\"kendoButton type=\"button\" (click)=\"closeCompareDialog('cancel')\">Cancel</button>\r\n <button *ngIf=\"mergeMode\"\r\n kendoButton\r\n themeColor=\"primary\"\r\n type=\"button\"\r\n (click)=\"closeCompareDialog('merge')\"\r\n >\r\n Merge Records\r\n </button>\r\n </div> \r\n <kendo-dialog\r\n title=\"Confirm Choice\"\r\n *ngIf=\"isConfirmDialogOpen\"\r\n (close)=\"closeConfirmMergeDialog('cancel')\"\r\n [minWidth]=\"250\"\r\n [width]=\"450\"\r\n >\r\n <p style=\"margin: 30px; text-align: center;\">\r\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.\r\n </p>\r\n <kendo-dialog-actions>\r\n <button kendoButton (click)=\"closeConfirmMergeDialog('no')\">No</button>\r\n <button kendoButton (click)=\"closeConfirmMergeDialog('yes')\" themeColor=\"primary\">\r\n Yes\r\n </button>\r\n </kendo-dialog-actions>\r\n </kendo-dialog>\r\n </kendo-window>\r\n </div> \r\n</div>\r\n", styles: [".user-view-grid-wrap {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] }]
1033
990
  }], () => [{ type: i1.FormBuilder }, { type: i2.Router }], { Params: [{
1034
991
  type: Input
1035
992
  }], BottomMargin: [{
@@ -1068,4 +1025,4 @@ UserViewGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserV
1068
1025
  }], AllowLoad: [{
1069
1026
  type: Input
1070
1027
  }] }); })();
1071
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src\\lib\\ng-user-view-grid.component.ts", lineNumber: 47 }); })();
1028
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridComponent, { className: "UserViewGridComponent", filePath: "src\\lib\\ng-user-view-grid.component.ts", lineNumber: 44 }); })();
@@ -1,20 +1,21 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./ng-user-view-grid.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@angular/router";
6
- import * as i5 from "@progress/kendo-angular-grid";
7
- import * as i6 from "@progress/kendo-angular-dialog";
8
- import * as i7 from "@progress/kendo-angular-excel-export";
9
- import * as i8 from "@progress/kendo-angular-buttons";
10
- import * as i9 from "@memberjunction/ng-compare-records";
11
- import * as i10 from "@memberjunction/ng-container-directives";
12
- import * as i11 from "@progress/kendo-angular-icons";
13
- import * as i12 from "@progress/kendo-angular-layout";
14
- import * as i13 from "@progress/kendo-angular-inputs";
15
- import * as i14 from "@memberjunction/ng-ask-skip";
3
+ import * as i2 from "./grid-with-analysis.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "@angular/router";
7
+ import * as i6 from "@progress/kendo-angular-grid";
8
+ import * as i7 from "@progress/kendo-angular-dialog";
9
+ import * as i8 from "@progress/kendo-angular-excel-export";
10
+ import * as i9 from "@progress/kendo-angular-buttons";
11
+ import * as i10 from "@memberjunction/ng-compare-records";
12
+ import * as i11 from "@memberjunction/ng-container-directives";
13
+ import * as i12 from "@progress/kendo-angular-icons";
14
+ import * as i13 from "@progress/kendo-angular-layout";
15
+ import * as i14 from "@progress/kendo-angular-inputs";
16
+ import * as i15 from "@memberjunction/ng-ask-skip";
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.IconsModule, typeof i12.LayoutModule, typeof i13.InputsModule, typeof i14.AskSkipModule], [typeof i1.UserViewGridComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent, typeof i2.UserViewGridWithAnalysisComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.RouterModule, typeof i6.GridModule, typeof i7.DialogsModule, typeof i8.ExcelExportModule, typeof i9.ButtonsModule, typeof i10.CompareRecordsModule, typeof i11.ContainerDirectivesModule, typeof i12.IconsModule, typeof i13.LayoutModule, typeof i14.InputsModule, typeof i15.AskSkipModule], [typeof i1.UserViewGridComponent, typeof i2.UserViewGridWithAnalysisComponent]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<UserViewGridModule>;
20
21
  }
@@ -15,6 +15,7 @@ import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
15
15
  import { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';
16
16
  //import { PlotlyViaCDNModule } from 'angular-plotly.js';
17
17
  import { AskSkipModule } from '@memberjunction/ng-ask-skip';
18
+ import { UserViewGridWithAnalysisComponent } from './grid-with-analysis.component';
18
19
  import * as i0 from "@angular/core";
19
20
  // PlotlyViaCDNModule.setPlotlyVersion('latest'); // can be `latest` or any version number (i.e.: '1.40.0')
20
21
  // PlotlyViaCDNModule.setPlotlyBundle(null); // optional: can be null (for full) or 'basic', 'cartesian', 'geo', 'gl3d', 'gl2d', 'mapbox' or 'finance'
@@ -41,7 +42,8 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
41
42
  type: NgModule,
42
43
  args: [{
43
44
  declarations: [
44
- UserViewGridComponent
45
+ UserViewGridComponent,
46
+ UserViewGridWithAnalysisComponent
45
47
  ],
46
48
  imports: [
47
49
  CommonModule,
@@ -61,11 +63,13 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
61
63
  AskSkipModule
62
64
  ],
63
65
  exports: [
64
- UserViewGridComponent
66
+ UserViewGridComponent,
67
+ UserViewGridWithAnalysisComponent
65
68
  ]
66
69
  }]
67
70
  }], null, null); })();
68
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserViewGridModule, { declarations: [UserViewGridComponent], imports: [CommonModule,
71
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserViewGridModule, { declarations: [UserViewGridComponent,
72
+ UserViewGridWithAnalysisComponent], imports: [CommonModule,
69
73
  FormsModule,
70
74
  ReactiveFormsModule,
71
75
  RouterModule,
@@ -79,4 +83,5 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
79
83
  LayoutModule,
80
84
  InputsModule,
81
85
  // PlotlyViaCDNModule,
82
- AskSkipModule], exports: [UserViewGridComponent] }); })();
86
+ AskSkipModule], exports: [UserViewGridComponent,
87
+ UserViewGridWithAnalysisComponent] }); })();
@@ -1,2 +1,3 @@
1
1
  export * from './lib/ng-user-view-grid.component';
2
+ export * from './lib/grid-with-analysis.component';
2
3
  export * from './lib/ng-user-view-grid.module';
@@ -2,4 +2,5 @@
2
2
  * Public API Surface of ng-user-view-grid
3
3
  */
4
4
  export * from './lib/ng-user-view-grid.component';
5
+ export * from './lib/grid-with-analysis.component';
5
6
  export * from './lib/ng-user-view-grid.module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-user-view-grid",
3
- "version": "0.9.164",
3
+ "version": "0.9.166",
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",