@memberjunction/ng-user-view-grid 0.9.166 → 0.9.167
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,6 +1,6 @@
|
|
|
1
1
|
import { 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
5
|
export declare class UserViewGridWithAnalysisComponent {
|
|
6
6
|
Params: RunViewParams | undefined;
|
|
@@ -10,8 +10,10 @@ 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
|
+
Refresh(params: RunViewParams): Promise<void>;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridWithAnalysisComponent, never>;
|
|
16
18
|
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
19
|
}
|
|
@@ -1,4 +1,14 @@
|
|
|
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";
|
|
@@ -44,9 +54,20 @@ export class UserViewGridWithAnalysisComponent {
|
|
|
44
54
|
selectTabHandler() {
|
|
45
55
|
SharedService.Instance.InvokeManualResize(100); // resize when the tab is clicked
|
|
46
56
|
}
|
|
57
|
+
Refresh(params) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
this.Params = params;
|
|
60
|
+
this.viewGrid.Refresh(params);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
47
63
|
}
|
|
48
64
|
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"]],
|
|
65
|
+
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, 7);
|
|
67
|
+
} if (rf & 2) {
|
|
68
|
+
let _t;
|
|
69
|
+
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: 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
71
|
i0.ɵɵelementStart(0, "div")(1, "kendo-tabstrip", 0);
|
|
51
72
|
i0.ɵɵlistener("tabSelect", function UserViewGridWithAnalysisComponent_Template_kendo_tabstrip_tabSelect_1_listener() { return ctx.selectTabHandler(); });
|
|
52
73
|
i0.ɵɵelementStart(2, "kendo-tabstrip-tab", 1);
|
|
@@ -98,5 +119,8 @@ UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
98
119
|
type: Output
|
|
99
120
|
}], rowEdited: [{
|
|
100
121
|
type: Output
|
|
122
|
+
}], viewGrid: [{
|
|
123
|
+
type: ViewChild,
|
|
124
|
+
args: [UserViewGridComponent, { static: true }]
|
|
101
125
|
}] }); })();
|
|
102
126
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridWithAnalysisComponent, { className: "UserViewGridWithAnalysisComponent", filePath: "src\\lib\\grid-with-analysis.component.ts", lineNumber: 31 }); })();
|
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.167",
|
|
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",
|