@memberjunction/ng-explorer-core 0.9.152 → 0.9.154
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,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
-
import { GridRowClickedEvent,
|
|
2
|
+
import { GridRowClickedEvent, UserViewGridWithAnalysisComponent } from '@memberjunction/ng-user-view-grid';
|
|
3
3
|
import { EntityInfo } from '@memberjunction/core';
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { UserViewEntity } from '@memberjunction/core-entities';
|
|
@@ -9,7 +9,7 @@ export declare class SingleViewComponent implements AfterViewInit, OnInit {
|
|
|
9
9
|
private router;
|
|
10
10
|
private route;
|
|
11
11
|
private sharedService;
|
|
12
|
-
|
|
12
|
+
viewGridWithAnalysis: UserViewGridWithAnalysisComponent;
|
|
13
13
|
viewId: number | null;
|
|
14
14
|
viewName: string | null;
|
|
15
15
|
selectedView: UserViewEntity | null;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
|
11
|
-
import {
|
|
11
|
+
import { UserViewGridWithAnalysisComponent } from '@memberjunction/ng-user-view-grid';
|
|
12
12
|
import { Metadata, LogError } from '@memberjunction/core';
|
|
13
13
|
import { distinctUntilChanged, Subject } from "rxjs";
|
|
14
14
|
import { debounceTime } from "rxjs/operators";
|
|
@@ -109,7 +109,7 @@ export class SingleViewComponent {
|
|
|
109
109
|
// load up the view
|
|
110
110
|
if (viewInfo && viewInfo.ID && viewInfo.ID > 0)
|
|
111
111
|
this.selectedView = viewInfo;
|
|
112
|
-
yield this.
|
|
112
|
+
yield this.viewGridWithAnalysis.Refresh({
|
|
113
113
|
ViewEntity: viewInfo,
|
|
114
114
|
ViewID: viewInfo.ID,
|
|
115
115
|
UserSearchString: this.searchText
|
|
@@ -120,7 +120,7 @@ export class SingleViewComponent {
|
|
|
120
120
|
LoadDynamicView() {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
this.selectedView = null;
|
|
123
|
-
yield this.
|
|
123
|
+
yield this.viewGridWithAnalysis.Refresh({
|
|
124
124
|
EntityName: this.entityName,
|
|
125
125
|
ExtraFilter: this.extraFilter,
|
|
126
126
|
UserSearchString: this.searchText
|
|
@@ -160,10 +160,10 @@ export class SingleViewComponent {
|
|
|
160
160
|
}
|
|
161
161
|
SingleViewComponent.ɵfac = function SingleViewComponent_Factory(t) { return new (t || SingleViewComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.SharedService)); };
|
|
162
162
|
SingleViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleViewComponent, selectors: [["app-single-view"]], viewQuery: function SingleViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
163
|
-
i0.ɵɵviewQuery(
|
|
163
|
+
i0.ɵɵviewQuery(UserViewGridWithAnalysisComponent, 7);
|
|
164
164
|
} if (rf & 2) {
|
|
165
165
|
let _t;
|
|
166
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
|
166
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewGridWithAnalysis = _t.first);
|
|
167
167
|
} }, inputs: { viewId: "viewId", viewName: "viewName", selectedView: "selectedView", extraFilter: "extraFilter", entityName: "entityName" }, outputs: { loadComplete: "loadComplete" }, decls: 5, vars: 3, consts: [["mjFillContainer", ""], [1, "searchBox"], ["id", "txtSearch", "placeholder", "Search here...", "kendoTextBox", "", 3, "clearButton", "ngModel", "valueChange", "ngModelChange", 4, "ngIf"], [3, "ViewID", "dialogClosed", 4, "ngIf"], ["mjFillContainer", "", 3, "AutoNavigate", "rowClicked"], ["id", "txtSearch", "placeholder", "Search here...", "kendoTextBox", "", 3, "clearButton", "ngModel", "valueChange", "ngModelChange"], [3, "ViewID", "dialogClosed"]], template: function SingleViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
168
168
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
169
169
|
i0.ɵɵtemplate(2, SingleViewComponent_kendo_textbox_2_Template, 1, 2, "kendo-textbox", 2)(3, SingleViewComponent_app_view_properties_dialog_3_Template, 1, 1, "app-view-properties-dialog", 3);
|
|
@@ -182,9 +182,9 @@ SingleViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SingleV
|
|
|
182
182
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleViewComponent, [{
|
|
183
183
|
type: Component,
|
|
184
184
|
args: [{ selector: 'app-single-view', template: "<div mjFillContainer>\r\n <div class=\"card-container\" class=\"searchBox\">\r\n <kendo-textbox\r\n id=\"txtSearch\"\r\n *ngIf=\"showSearch\"\r\n placeholder=\"Search here...\"\r\n kendoTextBox\r\n (valueChange)=\"onSearch($event)\"\r\n [clearButton]=\"true\"\r\n [(ngModel)]=\"searchText\"\r\n ></kendo-textbox>\r\n\r\n <app-view-properties-dialog *ngIf=\"selectedView\" [ViewID]=\"selectedView.ID\" (dialogClosed)=\"this.viewPropertiesDialogClosed($event)\" ></app-view-properties-dialog>\r\n </div>\r\n\r\n <mj-user-view-grid-with-analysis (rowClicked)=\"handleRowClick($event)\" [AutoNavigate]=\"false\" mjFillContainer></mj-user-view-grid-with-analysis>\r\n</div>\r\n" }]
|
|
185
|
-
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], {
|
|
185
|
+
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }], { viewGridWithAnalysis: [{
|
|
186
186
|
type: ViewChild,
|
|
187
|
-
args: [
|
|
187
|
+
args: [UserViewGridWithAnalysisComponent, { static: true }]
|
|
188
188
|
}], viewId: [{
|
|
189
189
|
type: Input
|
|
190
190
|
}], viewName: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-explorer-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.154",
|
|
4
4
|
"description": "MemberJunction Explorer: Core Angular Components",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@memberjunction/ng-compare-records": "^0.9.153",
|
|
42
42
|
"@memberjunction/ng-record-changes": "^0.9.85",
|
|
43
43
|
"@memberjunction/ng-container-directives": "^0.9.119",
|
|
44
|
-
"@memberjunction/ng-user-view-grid": "^0.9.
|
|
44
|
+
"@memberjunction/ng-user-view-grid": "^0.9.168",
|
|
45
45
|
"@memberjunction/ng-query-grid": "^0.9.31",
|
|
46
46
|
"@memberjunction/ng-shared": "^0.9.12",
|
|
47
47
|
"@memberjunction/ng-ask-skip": "^0.9.38",
|