@memberjunction/ng-user-view-grid 0.9.166 → 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
|
-
import { GridRowClickedEvent, GridRowEditedEvent } from "./ng-user-view-grid.component";
|
|
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";
|
|
@@ -10,8 +10,12 @@ export declare class UserViewGridWithAnalysisComponent {
|
|
|
10
10
|
BottomMargin: number;
|
|
11
11
|
rowClicked: EventEmitter<GridRowClickedEvent>;
|
|
12
12
|
rowEdited: EventEmitter<GridRowEditedEvent>;
|
|
13
|
+
viewGrid: UserViewGridComponent;
|
|
13
14
|
get ViewID(): number;
|
|
14
15
|
selectTabHandler(): void;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
_pendingRefresh: boolean;
|
|
18
|
+
Refresh(params: RunViewParams): Promise<void>;
|
|
15
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridWithAnalysisComponent, never>;
|
|
16
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>;
|
|
17
21
|
}
|
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Component, EventEmitter, Input, Output, ViewChild } from "@angular/core";
|
|
11
|
+
import { UserViewGridComponent } from "./ng-user-view-grid.component";
|
|
2
12
|
import { SharedService } from "@memberjunction/ng-shared";
|
|
3
13
|
import * as i0 from "@angular/core";
|
|
4
14
|
import * as i1 from "@memberjunction/ng-container-directives";
|
|
5
15
|
import * as i2 from "@progress/kendo-angular-layout";
|
|
6
16
|
import * as i3 from "@memberjunction/ng-ask-skip";
|
|
7
17
|
import * as i4 from "./ng-user-view-grid.component";
|
|
8
|
-
function
|
|
18
|
+
function UserViewGridWithAnalysisComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
9
19
|
i0.ɵɵtext(0, "Data");
|
|
10
20
|
} }
|
|
11
|
-
function
|
|
21
|
+
function UserViewGridWithAnalysisComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
12
22
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
13
23
|
i0.ɵɵelementStart(0, "mj-user-view-grid", 4);
|
|
14
|
-
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)); });
|
|
15
25
|
i0.ɵɵelementEnd();
|
|
16
26
|
} if (rf & 2) {
|
|
17
27
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
18
28
|
i0.ɵɵproperty("Params", ctx_r1.Params)("InEditMode", ctx_r1.InEditMode)("EditMode", ctx_r1.EditMode)("AutoNavigate", ctx_r1.AutoNavigate);
|
|
19
29
|
} }
|
|
20
|
-
function
|
|
30
|
+
function UserViewGridWithAnalysisComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
21
31
|
i0.ɵɵtext(0, "Analysis");
|
|
22
32
|
} }
|
|
23
|
-
function
|
|
33
|
+
function UserViewGridWithAnalysisComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
24
34
|
i0.ɵɵelement(0, "mj-skip-chat", 5);
|
|
25
35
|
} if (rf & 2) {
|
|
26
36
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -34,6 +44,7 @@ export class UserViewGridWithAnalysisComponent {
|
|
|
34
44
|
this.BottomMargin = 0;
|
|
35
45
|
this.rowClicked = new EventEmitter();
|
|
36
46
|
this.rowEdited = new EventEmitter();
|
|
47
|
+
this._pendingRefresh = false;
|
|
37
48
|
}
|
|
38
49
|
get ViewID() {
|
|
39
50
|
if (this.Params && this.Params.ViewID)
|
|
@@ -44,19 +55,38 @@ export class UserViewGridWithAnalysisComponent {
|
|
|
44
55
|
selectTabHandler() {
|
|
45
56
|
SharedService.Instance.InvokeManualResize(100); // resize when the tab is clicked
|
|
46
57
|
}
|
|
58
|
+
ngAfterViewInit() {
|
|
59
|
+
if (this._pendingRefresh && this.Params) {
|
|
60
|
+
this._pendingRefresh = false;
|
|
61
|
+
this.Refresh(this.Params);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
Refresh(params) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
this.Params = params;
|
|
67
|
+
if (this.viewGrid)
|
|
68
|
+
this.viewGrid.Refresh(params);
|
|
69
|
+
else
|
|
70
|
+
this._pendingRefresh = true;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
47
73
|
}
|
|
48
74
|
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"]],
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
i0.ɵɵ
|
|
75
|
+
UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewGridWithAnalysisComponent, selectors: [["mj-user-view-grid-with-analysis"]], viewQuery: function UserViewGridWithAnalysisComponent_Query(rf, ctx) { if (rf & 1) {
|
|
76
|
+
i0.ɵɵviewQuery(UserViewGridComponent, 5);
|
|
77
|
+
} if (rf & 2) {
|
|
78
|
+
let _t;
|
|
79
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewGrid = _t.first);
|
|
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);
|
|
54
85
|
i0.ɵɵelementEnd();
|
|
55
|
-
i0.ɵɵelementStart(
|
|
56
|
-
i0.ɵɵtemplate(
|
|
57
|
-
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()();
|
|
58
89
|
} if (rf & 2) {
|
|
59
|
-
i0.ɵɵadvance();
|
|
60
90
|
i0.ɵɵproperty("keepTabContent", true)("animate", false)("bottomMargin", ctx.BottomMargin);
|
|
61
91
|
i0.ɵɵadvance();
|
|
62
92
|
i0.ɵɵproperty("selected", true);
|
|
@@ -64,25 +94,23 @@ UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
64
94
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridWithAnalysisComponent, [{
|
|
65
95
|
type: Component,
|
|
66
96
|
args: [{ selector: 'mj-user-view-grid-with-analysis', template: `
|
|
67
|
-
<
|
|
68
|
-
<kendo-tabstrip [
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
</kendo-tabstrip>
|
|
85
|
-
</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>
|
|
86
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}"] }]
|
|
87
115
|
}], null, { Params: [{
|
|
88
116
|
type: Input
|
|
@@ -98,5 +126,8 @@ UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
98
126
|
type: Output
|
|
99
127
|
}], rowEdited: [{
|
|
100
128
|
type: Output
|
|
129
|
+
}], viewGrid: [{
|
|
130
|
+
type: ViewChild,
|
|
131
|
+
args: [UserViewGridComponent, { static: false }]
|
|
101
132
|
}] }); })();
|
|
102
|
-
(() => { (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",
|