@memberjunction/ng-user-view-grid 0.9.21 → 0.9.22
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/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.22",
|
|
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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@angular/core": "^15.2.0",
|
|
21
21
|
"@angular/forms": "^15.2.0",
|
|
22
22
|
"@angular/router": "^15.2.0",
|
|
23
|
-
"@memberjunction/core": "^0.9.
|
|
24
|
-
"@memberjunction/ng-compare-records": "^0.9.
|
|
25
|
-
"@memberjunction/ng-container-directives": "^0.9.
|
|
23
|
+
"@memberjunction/core": "^0.9.31",
|
|
24
|
+
"@memberjunction/ng-compare-records": "^0.9.25",
|
|
25
|
+
"@memberjunction/ng-container-directives": "^0.9.18",
|
|
26
26
|
"@progress/kendo-angular-grid": "^12.1.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -2,8 +2,8 @@ import { Component, ViewChild, ElementRef, Output, EventEmitter, OnInit, Input,
|
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Router } from '@angular/router'
|
|
4
4
|
|
|
5
|
-
import { Metadata, BaseEntity, RunView, RunViewParams, EntityFieldInfo, EntityFieldTSType, EntityInfo, LogError
|
|
6
|
-
|
|
5
|
+
import { Metadata, BaseEntity, RunView, RunViewParams, EntityFieldInfo, EntityFieldTSType, EntityInfo, LogError } from '@memberjunction/core';
|
|
6
|
+
import { ViewInfo, ViewGridState, ViewColumnInfo, UserViewEntityExtended } from '@memberjunction/core-entities';
|
|
7
7
|
|
|
8
8
|
import { CellClickEvent, GridDataResult, PageChangeEvent, GridComponent, CellCloseEvent,
|
|
9
9
|
ColumnReorderEvent, ColumnResizeArgs, ColumnComponent, SelectionEvent, SelectableSettings} from "@progress/kendo-angular-grid";
|
|
@@ -68,7 +68,7 @@ export class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
68
68
|
public gridView: GridDataResult = { data: [], total: 0 };
|
|
69
69
|
public gridHeight: number = 750;
|
|
70
70
|
|
|
71
|
-
public _viewEntity:
|
|
71
|
+
public _viewEntity: UserViewEntityExtended | undefined
|
|
72
72
|
public _entityInfo: EntityInfo | undefined;
|
|
73
73
|
private _newGridState: ViewGridState = {};
|
|
74
74
|
|
|
@@ -497,17 +497,17 @@ export class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
|
497
497
|
// this is done for performance purposes
|
|
498
498
|
if (!params.ViewEntity && (params.ViewID || params.ViewName)) {
|
|
499
499
|
if (params.ViewID && params.ViewID > 0) {
|
|
500
|
-
this._viewEntity = <
|
|
500
|
+
this._viewEntity = <UserViewEntityExtended>await ViewInfo.GetViewEntity(params.ViewID);
|
|
501
501
|
this._entityInfo = md.Entities.find(x => x.ID === this._viewEntity?.Get('EntityID'));
|
|
502
502
|
}
|
|
503
503
|
else if (params.ViewName) {
|
|
504
|
-
this._viewEntity = <
|
|
504
|
+
this._viewEntity = <UserViewEntityExtended>await ViewInfo.GetViewEntityByName(params.ViewName);
|
|
505
505
|
this._entityInfo = md.Entities.find(x => x.ID === this._viewEntity?.Get('EntityID'));
|
|
506
506
|
}
|
|
507
507
|
params.ViewEntity = this._viewEntity;
|
|
508
508
|
}
|
|
509
509
|
else
|
|
510
|
-
this._viewEntity = <
|
|
510
|
+
this._viewEntity = <UserViewEntityExtended>params.ViewEntity; //passed in via params in the Refresh() function
|
|
511
511
|
|
|
512
512
|
const rvResult = await rv.RunView(params);
|
|
513
513
|
if (!rvResult.Success) {
|