@memberjunction/ng-user-view-grid 0.9.2 → 0.9.4

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,4 +1,4 @@
1
- import { ElementRef, EventEmitter, OnInit, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnInit, AfterViewInit } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { Router } from '@angular/router';
4
4
  import { BaseEntity, RunViewParams, EntityFieldInfo, EntityInfo, ViewColumnInfo, UserViewEntityBase } from '@memberjunction/core';
@@ -20,7 +20,7 @@ export type GridPendingRecordItem = {
20
20
  row: number;
21
21
  dataItem: any;
22
22
  };
23
- export declare class UserViewGridComponent implements OnInit, OnDestroy, AfterViewInit {
23
+ export declare class UserViewGridComponent implements OnInit, AfterViewInit {
24
24
  private formBuilder;
25
25
  private router;
26
26
  title: string;
@@ -49,7 +49,6 @@ export declare class UserViewGridComponent implements OnInit, OnDestroy, AfterVi
49
49
  isLoading: boolean;
50
50
  gridView: GridDataResult;
51
51
  gridHeight: number;
52
- private resizeSub;
53
52
  _viewEntity: UserViewEntityBase | undefined;
54
53
  _entityInfo: EntityInfo | undefined;
55
54
  private _newGridState;
@@ -84,8 +83,6 @@ export declare class UserViewGridComponent implements OnInit, OnDestroy, AfterVi
84
83
  RevertPendingChanges(): void;
85
84
  ngOnInit(): void;
86
85
  ngAfterViewInit(): void;
87
- ngOnDestroy(): void;
88
- ResizeGrid(): void;
89
86
  private _deferLoadCount;
90
87
  private _allowLoad;
91
88
  get AllowLoad(): boolean;
@@ -231,7 +231,6 @@ export class UserViewGridComponent {
231
231
  this.isLoading = false;
232
232
  this.gridView = { data: [], total: 0 };
233
233
  this.gridHeight = 750;
234
- this.resizeSub = null;
235
234
  this._newGridState = {};
236
235
  this.editModeEnded = new Subject();
237
236
  this.compareMode = false;
@@ -513,14 +512,6 @@ export class UserViewGridComponent {
513
512
  if (this.Params)
514
513
  this.Refresh(this.Params);
515
514
  }
516
- ngOnDestroy() {
517
- if (this.resizeSub) {
518
- this.resizeSub.unsubscribe();
519
- }
520
- }
521
- ResizeGrid() {
522
- // doesn't do anything now, handled by mjFillContainer directive
523
- }
524
515
  get AllowLoad() {
525
516
  return this._allowLoad;
526
517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-user-view-grid",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
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",
@@ -21,8 +21,9 @@
21
21
  "@angular/forms": "^15.2.0",
22
22
  "@angular/router": "^15.2.0",
23
23
  "@memberjunction/core": "^0.9.14",
24
- "@progress/kendo-angular-grid": "^12.1.0",
25
- "@memberjunction/ng-compare-records": "^0.9.7"
24
+ "@memberjunction/ng-compare-records": "^0.9.7",
25
+ "@memberjunction/ng-container-directives": "^0.9.1",
26
+ "@progress/kendo-angular-grid": "^12.1.0"
26
27
  },
27
28
  "dependencies": {
28
29
  "tslib": "^2.3.0"
@@ -1,4 +1,4 @@
1
- import { Component, ViewChild, ElementRef, Output, EventEmitter, OnInit, Input, OnDestroy, AfterViewInit } from '@angular/core';
1
+ import { Component, ViewChild, ElementRef, Output, EventEmitter, OnInit, Input, AfterViewInit } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { Router } from '@angular/router'
4
4
 
@@ -10,7 +10,7 @@ import { CellClickEvent, GridDataResult, PageChangeEvent, GridComponent, CellClo
10
10
  import { Keys } from '@progress/kendo-angular-common';
11
11
 
12
12
 
13
- import { Subscription, Subject } from 'rxjs';
13
+ import { Subject } from 'rxjs';
14
14
  import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
15
15
  import { DisplaySimpleNotificationRequestData, MJEventType, MJGlobal } from '@memberjunction/global';
16
16
 
@@ -38,7 +38,7 @@ export type GridPendingRecordItem = {
38
38
  templateUrl: './ng-user-view-grid.component.html',
39
39
  styleUrls: ['./ng-user-view-grid.component.css']
40
40
  })
41
- export class UserViewGridComponent implements OnInit, OnDestroy, AfterViewInit {
41
+ export class UserViewGridComponent implements OnInit, AfterViewInit {
42
42
  title = 'UserViewGrid';
43
43
  @Input() Params: RunViewParams | undefined;
44
44
  @Input() BottomMargin: number = 0;
@@ -67,7 +67,6 @@ export class UserViewGridComponent implements OnInit, OnDestroy, AfterViewInit {
67
67
  public isLoading: boolean = false;
68
68
  public gridView: GridDataResult = { data: [], total: 0 };
69
69
  public gridHeight: number = 750;
70
- private resizeSub: Subscription | null = null;
71
70
 
72
71
  public _viewEntity: UserViewEntityBase | undefined
73
72
  public _entityInfo: EntityInfo | undefined;
@@ -462,17 +461,6 @@ export class UserViewGridComponent implements OnInit, OnDestroy, AfterViewInit {
462
461
  this.Refresh(this.Params)
463
462
  }
464
463
 
465
- ngOnDestroy(): void {
466
- if (this.resizeSub) {
467
- this.resizeSub.unsubscribe();
468
- }
469
- }
470
-
471
-
472
- public ResizeGrid(): void {
473
- // doesn't do anything now, handled by mjFillContainer directive
474
- }
475
-
476
464
  private _deferLoadCount: number = 0;
477
465
  private _allowLoad: boolean = true;
478
466
  @Input() public get AllowLoad(): boolean {