@elderbyte/ngx-starter 12.11.0 → 12.12.0

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
- import { OnDestroy, OnInit, TemplateRef, TrackByFunction, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, OnInit, TemplateRef, TrackByFunction, ViewContainerRef } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { IDataContextContinuable } from '../../../../common/data/data-context/data-context';
3
+ import { IDataContext, IDataContextContinuable } from '../../../../common/data/data-context/data-context';
4
4
  import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
5
5
  import { SelectionModel } from '../../../../common/selection/selection-model';
6
6
  import { MediaObserver } from '@angular/flex-layout';
@@ -8,6 +8,7 @@ import { Sort } from '../../../../common/data/sort';
8
8
  import { ElderDataViewInteractionMode } from '../../base/elder-data-view';
9
9
  import { ElderDataViewSelectionMode } from '../../../select/popup/selection-model-popup.directive';
10
10
  import { ElderDataViewBaseComponent } from '../../base/elder-data-view-base';
11
+ import { MatPaginator } from '@angular/material/paginator';
11
12
  export declare class ElderGridTileDirective {
12
13
  templateRef: TemplateRef<any>;
13
14
  viewContainer: ViewContainerRef;
@@ -21,7 +22,7 @@ export declare class ElderGridToolbarDirective {
21
22
  viewContainer: ViewContainerRef;
22
23
  constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
23
24
  }
24
- export declare class ElderGridComponent extends ElderDataViewBaseComponent implements OnInit, OnDestroy {
25
+ export declare class ElderGridComponent extends ElderDataViewBaseComponent implements OnInit, AfterViewInit, OnDestroy {
25
26
  private mediaObserver;
26
27
  /***************************************************************************
27
28
  * *
@@ -54,8 +55,11 @@ export declare class ElderGridComponent extends ElderDataViewBaseComponent imple
54
55
  idField: string;
55
56
  selectionVisible: boolean;
56
57
  interactionMode: ElderDataViewInteractionMode;
58
+ pageSizeOptions: number[];
59
+ matPaginator: MatPaginator;
57
60
  toolbarTemplateQuery: TemplateRef<any>;
58
61
  private _toolbarTemplate;
62
+ private readonly destroy$;
59
63
  /***************************************************************************
60
64
  * *
61
65
  * Constructor *
@@ -68,6 +72,7 @@ export declare class ElderGridComponent extends ElderDataViewBaseComponent imple
68
72
  * *
69
73
  **************************************************************************/
70
74
  ngOnInit(): void;
75
+ ngAfterViewInit(): void;
71
76
  ngOnDestroy(): void;
72
77
  /***************************************************************************
73
78
  * *
@@ -78,7 +83,7 @@ export declare class ElderGridComponent extends ElderDataViewBaseComponent imple
78
83
  get tileTemplate(): TemplateRef<any>;
79
84
  set toolbarTemplate(template: TemplateRef<any>);
80
85
  get toolbarTemplate(): TemplateRef<any>;
81
- set data(data: IDataContextContinuable<any>);
86
+ set data(data: IDataContext<any>);
82
87
  get dataSnapshot(): IDataContextContinuable<any>;
83
88
  set columnCount(count: number);
84
89
  get columnCount(): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "12.11.0",
3
+ "version": "12.12.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.0.1",
6
6
  "@angular/core": "^12.0.1",