@memberjunction/ng-user-view-grid 0.9.167 → 0.9.168
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
2
2
|
import { RunViewParams } from "@memberjunction/core";
|
|
3
3
|
import { GridRowClickedEvent, GridRowEditedEvent, UserViewGridComponent } from "./ng-user-view-grid.component";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserViewGridWithAnalysisComponent {
|
|
5
|
+
export declare class UserViewGridWithAnalysisComponent implements AfterViewInit {
|
|
6
6
|
Params: RunViewParams | undefined;
|
|
7
7
|
InEditMode: boolean;
|
|
8
8
|
EditMode: "None" | "Save" | "Queue";
|
|
@@ -13,6 +13,8 @@ export declare class UserViewGridWithAnalysisComponent {
|
|
|
13
13
|
viewGrid: UserViewGridComponent;
|
|
14
14
|
get ViewID(): number;
|
|
15
15
|
selectTabHandler(): void;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
_pendingRefresh: boolean;
|
|
16
18
|
Refresh(params: RunViewParams): Promise<void>;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridWithAnalysisComponent, never>;
|
|
18
20
|
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>;
|
|
@@ -15,22 +15,22 @@ import * as i1 from "@memberjunction/ng-container-directives";
|
|
|
15
15
|
import * as i2 from "@progress/kendo-angular-layout";
|
|
16
16
|
import * as i3 from "@memberjunction/ng-ask-skip";
|
|
17
17
|
import * as i4 from "./ng-user-view-grid.component";
|
|
18
|
-
function
|
|
18
|
+
function UserViewGridWithAnalysisComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
19
|
i0.ɵɵtext(0, "Data");
|
|
20
20
|
} }
|
|
21
|
-
function
|
|
21
|
+
function UserViewGridWithAnalysisComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
22
22
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
23
23
|
i0.ɵɵelementStart(0, "mj-user-view-grid", 4);
|
|
24
|
-
i0.ɵɵlistener("rowClicked", function
|
|
24
|
+
i0.ɵɵlistener("rowClicked", function UserViewGridWithAnalysisComponent_ng_template_3_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_3_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)); });
|
|
25
25
|
i0.ɵɵelementEnd();
|
|
26
26
|
} if (rf & 2) {
|
|
27
27
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
28
28
|
i0.ɵɵproperty("Params", ctx_r1.Params)("InEditMode", ctx_r1.InEditMode)("EditMode", ctx_r1.EditMode)("AutoNavigate", ctx_r1.AutoNavigate);
|
|
29
29
|
} }
|
|
30
|
-
function
|
|
30
|
+
function UserViewGridWithAnalysisComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
31
31
|
i0.ɵɵtext(0, "Analysis");
|
|
32
32
|
} }
|
|
33
|
-
function
|
|
33
|
+
function UserViewGridWithAnalysisComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
34
34
|
i0.ɵɵelement(0, "mj-skip-chat", 5);
|
|
35
35
|
} if (rf & 2) {
|
|
36
36
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -44,6 +44,7 @@ export class UserViewGridWithAnalysisComponent {
|
|
|
44
44
|
this.BottomMargin = 0;
|
|
45
45
|
this.rowClicked = new EventEmitter();
|
|
46
46
|
this.rowEdited = new EventEmitter();
|
|
47
|
+
this._pendingRefresh = false;
|
|
47
48
|
}
|
|
48
49
|
get ViewID() {
|
|
49
50
|
if (this.Params && this.Params.ViewID)
|
|
@@ -54,30 +55,38 @@ export class UserViewGridWithAnalysisComponent {
|
|
|
54
55
|
selectTabHandler() {
|
|
55
56
|
SharedService.Instance.InvokeManualResize(100); // resize when the tab is clicked
|
|
56
57
|
}
|
|
58
|
+
ngAfterViewInit() {
|
|
59
|
+
if (this._pendingRefresh && this.Params) {
|
|
60
|
+
this._pendingRefresh = false;
|
|
61
|
+
this.Refresh(this.Params);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
57
64
|
Refresh(params) {
|
|
58
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
66
|
this.Params = params;
|
|
60
|
-
this.viewGrid
|
|
67
|
+
if (this.viewGrid)
|
|
68
|
+
this.viewGrid.Refresh(params);
|
|
69
|
+
else
|
|
70
|
+
this._pendingRefresh = true;
|
|
61
71
|
});
|
|
62
72
|
}
|
|
63
73
|
}
|
|
64
74
|
UserViewGridWithAnalysisComponent.ɵfac = function UserViewGridWithAnalysisComponent_Factory(t) { return new (t || UserViewGridWithAnalysisComponent)(); };
|
|
65
75
|
UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewGridWithAnalysisComponent, selectors: [["mj-user-view-grid-with-analysis"]], viewQuery: function UserViewGridWithAnalysisComponent_Query(rf, ctx) { if (rf & 1) {
|
|
66
|
-
i0.ɵɵviewQuery(UserViewGridComponent,
|
|
76
|
+
i0.ɵɵviewQuery(UserViewGridComponent, 5);
|
|
67
77
|
} if (rf & 2) {
|
|
68
78
|
let _t;
|
|
69
79
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewGrid = _t.first);
|
|
70
|
-
} }, inputs: { Params: "Params", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", BottomMargin: "BottomMargin" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls:
|
|
71
|
-
i0.ɵɵelementStart(0, "
|
|
72
|
-
i0.ɵɵlistener("tabSelect", function
|
|
73
|
-
i0.ɵɵelementStart(
|
|
74
|
-
i0.ɵɵtemplate(
|
|
80
|
+
} }, inputs: { Params: "Params", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", BottomMargin: "BottomMargin" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 7, 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) {
|
|
81
|
+
i0.ɵɵelementStart(0, "kendo-tabstrip", 0);
|
|
82
|
+
i0.ɵɵlistener("tabSelect", function UserViewGridWithAnalysisComponent_Template_kendo_tabstrip_tabSelect_0_listener() { return ctx.selectTabHandler(); });
|
|
83
|
+
i0.ɵɵelementStart(1, "kendo-tabstrip-tab", 1);
|
|
84
|
+
i0.ɵɵtemplate(2, UserViewGridWithAnalysisComponent_ng_template_2_Template, 1, 0, "ng-template", 2)(3, UserViewGridWithAnalysisComponent_ng_template_3_Template, 1, 4, "ng-template", 3);
|
|
75
85
|
i0.ɵɵelementEnd();
|
|
76
|
-
i0.ɵɵelementStart(
|
|
77
|
-
i0.ɵɵtemplate(
|
|
78
|
-
i0.ɵɵelementEnd()()
|
|
86
|
+
i0.ɵɵelementStart(4, "kendo-tabstrip-tab");
|
|
87
|
+
i0.ɵɵtemplate(5, UserViewGridWithAnalysisComponent_ng_template_5_Template, 1, 0, "ng-template", 2)(6, UserViewGridWithAnalysisComponent_ng_template_6_Template, 1, 5, "ng-template", 3);
|
|
88
|
+
i0.ɵɵelementEnd()();
|
|
79
89
|
} if (rf & 2) {
|
|
80
|
-
i0.ɵɵadvance();
|
|
81
90
|
i0.ɵɵproperty("keepTabContent", true)("animate", false)("bottomMargin", ctx.BottomMargin);
|
|
82
91
|
i0.ɵɵadvance();
|
|
83
92
|
i0.ɵɵproperty("selected", true);
|
|
@@ -85,25 +94,23 @@ UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
85
94
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridWithAnalysisComponent, [{
|
|
86
95
|
type: Component,
|
|
87
96
|
args: [{ selector: 'mj-user-view-grid-with-analysis', template: `
|
|
88
|
-
<
|
|
89
|
-
<kendo-tabstrip [
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
</kendo-tabstrip>
|
|
106
|
-
</div>
|
|
97
|
+
<kendo-tabstrip [keepTabContent]="true" [animate] = "false" mjFillContainer [bottomMargin]="BottomMargin" (tabSelect)="selectTabHandler() ">
|
|
98
|
+
<kendo-tabstrip-tab [selected]="true">
|
|
99
|
+
<ng-template kendoTabTitle>Data</ng-template>
|
|
100
|
+
<ng-template kendoTabContent>
|
|
101
|
+
<mj-user-view-grid [Params]="Params" [InEditMode]="InEditMode" [EditMode]="EditMode" [AutoNavigate]="AutoNavigate"
|
|
102
|
+
(rowClicked)="this.rowClicked.emit($event)" (rowEdited)="this.rowEdited.emit($event)" ></mj-user-view-grid>
|
|
103
|
+
</ng-template>
|
|
104
|
+
</kendo-tabstrip-tab>
|
|
105
|
+
<kendo-tabstrip-tab>
|
|
106
|
+
<ng-template kendoTabTitle>Analysis</ng-template>
|
|
107
|
+
<ng-template kendoTabContent>
|
|
108
|
+
<mj-skip-chat mjFillContainer [AllowNewConversations]="false" [ShowConversationList]="false" [UpdateAppRoute]="false"
|
|
109
|
+
[LinkedEntity]="'User Views'" [LinkedEntityRecordID]="ViewID">
|
|
110
|
+
</mj-skip-chat>
|
|
111
|
+
</ng-template>
|
|
112
|
+
</kendo-tabstrip-tab>
|
|
113
|
+
</kendo-tabstrip>
|
|
107
114
|
`, 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}"] }]
|
|
108
115
|
}], null, { Params: [{
|
|
109
116
|
type: Input
|
|
@@ -121,6 +128,6 @@ UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
121
128
|
type: Output
|
|
122
129
|
}], viewGrid: [{
|
|
123
130
|
type: ViewChild,
|
|
124
|
-
args: [UserViewGridComponent, { static:
|
|
131
|
+
args: [UserViewGridComponent, { static: false }]
|
|
125
132
|
}] }); })();
|
|
126
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridWithAnalysisComponent, { className: "UserViewGridWithAnalysisComponent", filePath: "src\\lib\\grid-with-analysis.component.ts", lineNumber:
|
|
133
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridWithAnalysisComponent, { className: "UserViewGridWithAnalysisComponent", filePath: "src\\lib\\grid-with-analysis.component.ts", lineNumber: 29 }); })();
|
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.168",
|
|
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",
|