@memberjunction/ng-user-view-grid 0.9.1 → 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,15 +1,15 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./ng-user-view-grid.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@angular/router";
6
- import * as i5 from "@progress/kendo-angular-grid";
7
- import * as i6 from "@progress/kendo-angular-dialog";
8
- import * as i7 from "@progress/kendo-angular-excel-export";
9
- import * as i8 from "@progress/kendo-angular-buttons";
10
- import * as i9 from "@memberjunction/ng-compare-records";
11
- export declare class UserViewGridModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.RouterModule, typeof i5.GridModule, typeof i6.DialogsModule, typeof i7.ExcelExportModule, typeof i8.ButtonsModule, typeof i9.CompareRecordsModule], [typeof i1.UserViewGridComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<UserViewGridModule>;
15
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ng-user-view-grid.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/router";
6
+ import * as i5 from "@progress/kendo-angular-grid";
7
+ import * as i6 from "@progress/kendo-angular-dialog";
8
+ import * as i7 from "@progress/kendo-angular-excel-export";
9
+ import * as i8 from "@progress/kendo-angular-buttons";
10
+ import * as i9 from "@memberjunction/ng-compare-records";
11
+ export declare class UserViewGridModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.RouterModule, typeof i5.GridModule, typeof i6.DialogsModule, typeof i7.ExcelExportModule, typeof i8.ButtonsModule, typeof i9.CompareRecordsModule], [typeof i1.UserViewGridComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<UserViewGridModule>;
15
+ }
@@ -1,56 +1,56 @@
1
- import { NgModule } from '@angular/core';
2
- import { UserViewGridComponent } from './ng-user-view-grid.component';
3
- import { CommonModule } from '@angular/common';
4
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
- import { RouterModule } from '@angular/router';
6
- // Kendo UI Angular imports
7
- import { GridModule } from '@progress/kendo-angular-grid';
8
- import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
9
- import { DialogsModule } from "@progress/kendo-angular-dialog";
10
- import { ButtonsModule } from '@progress/kendo-angular-buttons';
11
- import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
12
- import * as i0 from "@angular/core";
13
- export class UserViewGridModule {
14
- }
15
- UserViewGridModule.ɵfac = function UserViewGridModule_Factory(t) { return new (t || UserViewGridModule)(); };
16
- UserViewGridModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: UserViewGridModule });
17
- UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
18
- FormsModule,
19
- ReactiveFormsModule,
20
- RouterModule,
21
- GridModule,
22
- DialogsModule,
23
- ExcelExportModule,
24
- ButtonsModule,
25
- CompareRecordsModule] });
26
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridModule, [{
27
- type: NgModule,
28
- args: [{
29
- declarations: [
30
- UserViewGridComponent
31
- ],
32
- imports: [
33
- CommonModule,
34
- FormsModule,
35
- ReactiveFormsModule,
36
- RouterModule,
37
- GridModule,
38
- DialogsModule,
39
- ExcelExportModule,
40
- ButtonsModule,
41
- CompareRecordsModule
42
- ],
43
- exports: [
44
- UserViewGridComponent
45
- ]
46
- }]
47
- }], null, null); })();
48
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserViewGridModule, { declarations: [UserViewGridComponent], imports: [CommonModule,
49
- FormsModule,
50
- ReactiveFormsModule,
51
- RouterModule,
52
- GridModule,
53
- DialogsModule,
54
- ExcelExportModule,
55
- ButtonsModule,
56
- CompareRecordsModule], exports: [UserViewGridComponent] }); })();
1
+ import { NgModule } from '@angular/core';
2
+ import { UserViewGridComponent } from './ng-user-view-grid.component';
3
+ import { CommonModule } from '@angular/common';
4
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
+ import { RouterModule } from '@angular/router';
6
+ // Kendo UI Angular imports
7
+ import { GridModule } from '@progress/kendo-angular-grid';
8
+ import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
9
+ import { DialogsModule } from "@progress/kendo-angular-dialog";
10
+ import { ButtonsModule } from '@progress/kendo-angular-buttons';
11
+ import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
12
+ import * as i0 from "@angular/core";
13
+ export class UserViewGridModule {
14
+ }
15
+ UserViewGridModule.ɵfac = function UserViewGridModule_Factory(t) { return new (t || UserViewGridModule)(); };
16
+ UserViewGridModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: UserViewGridModule });
17
+ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
18
+ FormsModule,
19
+ ReactiveFormsModule,
20
+ RouterModule,
21
+ GridModule,
22
+ DialogsModule,
23
+ ExcelExportModule,
24
+ ButtonsModule,
25
+ CompareRecordsModule] });
26
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridModule, [{
27
+ type: NgModule,
28
+ args: [{
29
+ declarations: [
30
+ UserViewGridComponent
31
+ ],
32
+ imports: [
33
+ CommonModule,
34
+ FormsModule,
35
+ ReactiveFormsModule,
36
+ RouterModule,
37
+ GridModule,
38
+ DialogsModule,
39
+ ExcelExportModule,
40
+ ButtonsModule,
41
+ CompareRecordsModule
42
+ ],
43
+ exports: [
44
+ UserViewGridComponent
45
+ ]
46
+ }]
47
+ }], null, null); })();
48
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserViewGridModule, { declarations: [UserViewGridComponent], imports: [CommonModule,
49
+ FormsModule,
50
+ ReactiveFormsModule,
51
+ RouterModule,
52
+ GridModule,
53
+ DialogsModule,
54
+ ExcelExportModule,
55
+ ButtonsModule,
56
+ CompareRecordsModule], exports: [UserViewGridComponent] }); })();
@@ -1,2 +1,2 @@
1
- export * from './lib/ng-user-view-grid.component';
2
- export * from './lib/ng-user-view-grid.module';
1
+ export * from './lib/ng-user-view-grid.component';
2
+ export * from './lib/ng-user-view-grid.module';
@@ -1,5 +1,5 @@
1
- /*
2
- * Public API Surface of ng-user-view-grid
3
- */
4
- export * from './lib/ng-user-view-grid.component';
5
- export * from './lib/ng-user-view-grid.module';
1
+ /*
2
+ * Public API Surface of ng-user-view-grid
3
+ */
4
+ export * from './lib/ng-user-view-grid.component';
5
+ export * from './lib/ng-user-view-grid.module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-user-view-grid",
3
- "version": "0.9.1",
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",
@@ -12,17 +12,18 @@
12
12
  "author": "",
13
13
  "license": "ISC",
14
14
  "devDependencies": {
15
- "@angular/compiler": "^16.2.7",
16
- "@angular/compiler-cli": "^16.2.7"
15
+ "@angular/compiler": "^15.2.0",
16
+ "@angular/compiler-cli": "^15.2.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/common": "^16.0.0",
20
- "@angular/core": "^16.0.0",
21
- "@angular/forms": "^16.2.7",
19
+ "@angular/common": "^15.2.0",
20
+ "@angular/core": "^15.2.0",
21
+ "@angular/forms": "^15.2.0",
22
+ "@angular/router": "^15.2.0",
22
23
  "@memberjunction/core": "^0.9.14",
23
- "@progress/kendo-angular-grid": "^12.1.0",
24
- "@angular/router": "^16.2.7",
25
- "@memberjunction/ng-compare-records": "^0.9.6"
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 {
package/tsconfig.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "module": "es2020",
5
5
  "moduleResolution": "node",
6
6
  "declaration": true,
7
+ "experimentalDecorators": true,
7
8
  "outDir": "./dist",
8
9
  "strict": true,
9
10
  "lib": [