@memberjunction/ng-user-view-grid 0.9.165 → 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.
- package/dist/lib/grid-with-analysis.component.d.ts +17 -0
- package/dist/lib/grid-with-analysis.component.js +102 -0
- package/dist/lib/ng-user-view-grid.component.d.ts +0 -1
- package/dist/lib/ng-user-view-grid.component.js +137 -180
- package/dist/lib/ng-user-view-grid.module.d.ts +15 -14
- package/dist/lib/ng-user-view-grid.module.js +9 -4
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.js +1 -0
- package/package.json +1 -1
|
@@ -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 {
|
|
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
|
|
40
|
-
i0.ɵɵ
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
|
|
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
|
|
45
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
51
46
|
i0.ɵɵadvance();
|
|
52
|
-
i0.ɵɵproperty("icon",
|
|
47
|
+
i0.ɵɵproperty("icon", ctx_r7.kendoSVGIcon("fileExcel"));
|
|
53
48
|
} }
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
i0.ɵɵelementStart(0, "button",
|
|
57
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
62
|
-
i0.ɵɵproperty("disabled",
|
|
56
|
+
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
57
|
+
i0.ɵɵproperty("disabled", ctx_r8.compareMode && ctx_r8.recordsToCompare.length < 2);
|
|
63
58
|
} }
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
i0.ɵɵelementStart(0, "button",
|
|
67
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
72
|
-
i0.ɵɵproperty("disabled",
|
|
66
|
+
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
67
|
+
i0.ɵɵproperty("disabled", ctx_r9.compareMode && ctx_r9.recordsToCompare.length < 2);
|
|
73
68
|
} }
|
|
74
|
-
function
|
|
75
|
-
const
|
|
76
|
-
i0.ɵɵelementStart(0, "button",
|
|
77
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
82
|
-
const
|
|
83
|
-
i0.ɵɵelementStart(0, "button",
|
|
84
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
89
|
-
i0.ɵɵproperty("disabled",
|
|
83
|
+
const ctx_r11 = i0.ɵɵnextContext(2);
|
|
84
|
+
i0.ɵɵproperty("disabled", ctx_r11.mergeMode && ctx_r11.recordsToCompare.length < 2);
|
|
90
85
|
} }
|
|
91
|
-
function
|
|
92
|
-
const
|
|
93
|
-
i0.ɵɵelementStart(0, "button",
|
|
94
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
99
|
-
const
|
|
100
|
-
i0.ɵɵelementStart(0, "button",
|
|
101
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
106
|
-
const
|
|
107
|
-
i0.ɵɵelementStart(0, "button",
|
|
108
|
-
i0.ɵɵlistener("click", function
|
|
109
|
-
i0.ɵɵelement(1, "kendo-svgicon",
|
|
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
|
|
108
|
+
const ctx_r14 = i0.ɵɵnextContext(2);
|
|
114
109
|
i0.ɵɵproperty("primary", true);
|
|
115
110
|
i0.ɵɵadvance();
|
|
116
|
-
i0.ɵɵproperty("icon",
|
|
111
|
+
i0.ɵɵproperty("icon", ctx_r14.kendoSVGIcon("arrowRotateCcwSmall"));
|
|
117
112
|
} }
|
|
118
|
-
function
|
|
119
|
-
i0.ɵɵtemplate(0,
|
|
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
|
|
122
|
-
i0.ɵɵproperty("ngIf", !
|
|
116
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
117
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.compareMode && !ctx_r1.mergeMode);
|
|
123
118
|
i0.ɵɵadvance();
|
|
124
|
-
i0.ɵɵproperty("ngIf", !
|
|
119
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.compareMode && !ctx_r1.mergeMode);
|
|
125
120
|
i0.ɵɵadvance();
|
|
126
|
-
i0.ɵɵproperty("ngIf",
|
|
121
|
+
i0.ɵɵproperty("ngIf", ctx_r1.compareMode);
|
|
127
122
|
i0.ɵɵadvance();
|
|
128
|
-
i0.ɵɵproperty("ngIf",
|
|
123
|
+
i0.ɵɵproperty("ngIf", ctx_r1.compareMode);
|
|
129
124
|
i0.ɵɵadvance();
|
|
130
|
-
i0.ɵɵproperty("ngIf",
|
|
125
|
+
i0.ɵɵproperty("ngIf", ctx_r1.mergeMode);
|
|
131
126
|
i0.ɵɵadvance();
|
|
132
|
-
i0.ɵɵproperty("ngIf", !
|
|
127
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.mergeMode && !ctx_r1.compareMode);
|
|
133
128
|
i0.ɵɵadvance();
|
|
134
|
-
i0.ɵɵproperty("ngIf",
|
|
129
|
+
i0.ɵɵproperty("ngIf", ctx_r1.mergeMode);
|
|
135
130
|
i0.ɵɵadvance();
|
|
136
|
-
i0.ɵɵproperty("ngIf",
|
|
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
|
|
141
|
-
i0.ɵɵelement(0, "kendo-grid-checkbox-column",
|
|
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
|
|
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",
|
|
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
|
|
157
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(1, 3,
|
|
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,
|
|
154
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(6, 7, ctx_r33.viewExecutionTime, "1.2-2"), " seconds");
|
|
160
155
|
} }
|
|
161
|
-
function
|
|
162
|
-
i0.ɵɵtemplate(0,
|
|
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
|
|
165
|
-
i0.ɵɵelementStart(0, "kendo-grid-column",
|
|
166
|
-
i0.ɵɵtemplate(1,
|
|
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
|
|
170
|
-
const
|
|
171
|
-
i0.ɵɵstyleMap(
|
|
172
|
-
i0.ɵɵproperty("field",
|
|
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("
|
|
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
|
|
203
|
-
i0.ɵɵ
|
|
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
|
|
209
|
-
i0.ɵɵproperty("
|
|
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
|
|
217
|
-
const
|
|
218
|
-
i0.ɵɵelementStart(0, "button",
|
|
219
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
224
|
-
const
|
|
225
|
-
i0.ɵɵelementStart(0, "button",
|
|
226
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
231
|
-
const
|
|
232
|
-
i0.ɵɵelementStart(0, "button",
|
|
233
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
238
|
-
const
|
|
239
|
-
i0.ɵɵelementStart(0, "kendo-dialog",
|
|
240
|
-
i0.ɵɵlistener("close", function
|
|
241
|
-
i0.ɵɵelementStart(1, "p",
|
|
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",
|
|
245
|
-
i0.ɵɵlistener("click", function
|
|
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",
|
|
249
|
-
i0.ɵɵlistener("click", function
|
|
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
|
|
256
|
-
const
|
|
257
|
-
i0.ɵɵelementStart(0, "kendo-window",
|
|
258
|
-
i0.ɵɵlistener("close", function
|
|
259
|
-
i0.ɵɵelementStart(1, "div",
|
|
260
|
-
i0.ɵɵelement(3, "mj-compare-records",
|
|
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",
|
|
263
|
-
i0.ɵɵtemplate(6,
|
|
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,
|
|
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
|
|
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",
|
|
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",
|
|
234
|
+
i0.ɵɵproperty("ngIf", ctx_r35.compareMode);
|
|
274
235
|
i0.ɵɵadvance();
|
|
275
|
-
i0.ɵɵproperty("ngIf",
|
|
236
|
+
i0.ɵɵproperty("ngIf", ctx_r35.mergeMode);
|
|
276
237
|
i0.ɵɵadvance();
|
|
277
|
-
i0.ɵɵproperty("ngIf",
|
|
238
|
+
i0.ɵɵproperty("ngIf", ctx_r35.mergeMode);
|
|
278
239
|
i0.ɵɵadvance();
|
|
279
|
-
i0.ɵɵproperty("ngIf",
|
|
240
|
+
i0.ɵɵproperty("ngIf", ctx_r35.isConfirmDialogOpen);
|
|
280
241
|
} }
|
|
281
|
-
function
|
|
242
|
+
function UserViewGridComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
282
243
|
i0.ɵɵelementStart(0, "div");
|
|
283
|
-
i0.ɵɵelement(1, "div",
|
|
284
|
-
i0.ɵɵtemplate(2,
|
|
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
|
|
248
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
288
249
|
i0.ɵɵadvance(2);
|
|
289
|
-
i0.ɵɵproperty("ngIf",
|
|
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:
|
|
1011
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "kendo-
|
|
1012
|
-
i0.ɵɵlistener("
|
|
1013
|
-
i0.ɵɵ
|
|
1014
|
-
i0.ɵɵ
|
|
1015
|
-
i0.ɵɵ
|
|
1016
|
-
i0.ɵɵ
|
|
1017
|
-
i0.ɵɵ
|
|
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("
|
|
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",
|
|
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,
|
|
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 <!-- Only Include the Analysis tab if the ViewID is present and there is no ExtraFilter - meaning we're just a regular view that someone's looking at, we're not on a tab of a form -->\r\n <kendo-tabstrip-tab *ngIf=\"Params?.ViewID && !Params?.ExtraFilter\">\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:
|
|
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 "
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "@angular/
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "@progress/kendo-angular-
|
|
8
|
-
import * as i7 from "@progress/kendo-angular-
|
|
9
|
-
import * as i8 from "@progress/kendo-angular-
|
|
10
|
-
import * as i9 from "@
|
|
11
|
-
import * as i10 from "@memberjunction/ng-
|
|
12
|
-
import * as i11 from "@
|
|
13
|
-
import * as i12 from "@progress/kendo-angular-
|
|
14
|
-
import * as i13 from "@progress/kendo-angular-
|
|
15
|
-
import * as i14 from "@
|
|
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
|
|
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
|
|
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] }); })();
|
package/dist/public-api.d.ts
CHANGED
package/dist/public-api.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-user-view-grid",
|
|
3
|
-
"version": "0.9.
|
|
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",
|