@elderbyte/ngx-starter 12.11.0 → 12.12.3
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/bundles/elderbyte-ngx-starter.umd.js +75 -60
- package/bundles/elderbyte-ngx-starter.umd.js.map +1 -1
- package/elderbyte-ngx-starter.metadata.json +1 -1
- package/esm2015/lib/components/auditing/audited-entity/elder-audited-entity.component.js +2 -2
- package/esm2015/lib/components/data-view/base/elder-data-view-base.js +46 -3
- package/esm2015/lib/components/data-view/grid/elder-grid/elder-grid.component.js +24 -6
- package/esm2015/lib/components/data-view/grid/elder-grid.module.js +3 -2
- package/esm2015/lib/components/data-view/table/elder-table/elder-table.component.js +5 -48
- package/fesm2015/elderbyte-ngx-starter.js +68 -53
- package/fesm2015/elderbyte-ngx-starter.js.map +1 -1
- package/lib/components/data-view/base/elder-data-view-base.d.ts +11 -1
- package/lib/components/data-view/grid/elder-grid/elder-grid.component.d.ts +9 -6
- package/lib/components/data-view/table/elder-table/elder-table.component.d.ts +5 -10
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
2
2
|
import { ElderDataViewSelectionMode } from '../../select/popup/selection-model-popup.directive';
|
|
3
3
|
import { IDataContext, IDataContextActivePage, IDataContextContinuable } from '../../../common/data/data-context/data-context';
|
|
4
4
|
import { SelectionModel } from '../../../common/selection/selection-model';
|
|
5
|
-
import { IElderDataView } from './elder-data-view';
|
|
5
|
+
import { ElderDataViewInteractionMode, IElderDataView } from './elder-data-view';
|
|
6
6
|
export declare class ElderDataViewBaseComponent implements IElderDataView {
|
|
7
7
|
protected readonly dataViewSelection: ElderDataViewSelectionMode;
|
|
8
8
|
/***************************************************************************
|
|
@@ -18,6 +18,7 @@ export declare class ElderDataViewBaseComponent implements IElderDataView {
|
|
|
18
18
|
* Holds the current selection
|
|
19
19
|
*/
|
|
20
20
|
readonly selectionModel: SelectionModel<any>;
|
|
21
|
+
interactionMode: ElderDataViewInteractionMode;
|
|
21
22
|
/**
|
|
22
23
|
* If true, this table is in dense mode.
|
|
23
24
|
* Heights are generally reduced.
|
|
@@ -33,6 +34,7 @@ export declare class ElderDataViewBaseComponent implements IElderDataView {
|
|
|
33
34
|
* No borders / floating visible so that the table can be embedded into another container
|
|
34
35
|
*/
|
|
35
36
|
private _embedded;
|
|
37
|
+
private readonly _itemClickSubject;
|
|
36
38
|
/***************************************************************************
|
|
37
39
|
* *
|
|
38
40
|
* Constructor *
|
|
@@ -60,6 +62,12 @@ export declare class ElderDataViewBaseComponent implements IElderDataView {
|
|
|
60
62
|
get selectionChange(): Observable<any[]>;
|
|
61
63
|
get selectionSingleChange(): Observable<any>;
|
|
62
64
|
set selectionMultiEnabled(enableMultiSelection: boolean);
|
|
65
|
+
/***************************************************************************
|
|
66
|
+
* *
|
|
67
|
+
* On click properties *
|
|
68
|
+
* *
|
|
69
|
+
**************************************************************************/
|
|
70
|
+
get itemClick(): Observable<any>;
|
|
63
71
|
/***************************************************************************
|
|
64
72
|
* *
|
|
65
73
|
* Style Properties *
|
|
@@ -83,6 +91,8 @@ export declare class ElderDataViewBaseComponent implements IElderDataView {
|
|
|
83
91
|
* @protected
|
|
84
92
|
*/
|
|
85
93
|
protected onDataContextSet(data: IDataContext<any>): void;
|
|
94
|
+
onItemClick(entity: any): void;
|
|
95
|
+
onItemDoubleClick(entity: any): void;
|
|
86
96
|
/***************************************************************************
|
|
87
97
|
* *
|
|
88
98
|
* Private Methods *
|
|
@@ -1,13 +1,13 @@
|
|
|
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';
|
|
7
7
|
import { Sort } from '../../../../common/data/sort';
|
|
8
|
-
import { ElderDataViewInteractionMode } from '../../base/elder-data-view';
|
|
9
8
|
import { ElderDataViewSelectionMode } from '../../../select/popup/selection-model-popup.directive';
|
|
10
9
|
import { ElderDataViewBaseComponent } from '../../base/elder-data-view-base';
|
|
10
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
11
11
|
export declare class ElderGridTileDirective {
|
|
12
12
|
templateRef: TemplateRef<any>;
|
|
13
13
|
viewContainer: ViewContainerRef;
|
|
@@ -21,7 +21,7 @@ export declare class ElderGridToolbarDirective {
|
|
|
21
21
|
viewContainer: ViewContainerRef;
|
|
22
22
|
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
|
|
23
23
|
}
|
|
24
|
-
export declare class ElderGridComponent extends ElderDataViewBaseComponent implements OnInit, OnDestroy {
|
|
24
|
+
export declare class ElderGridComponent extends ElderDataViewBaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
25
25
|
private mediaObserver;
|
|
26
26
|
/***************************************************************************
|
|
27
27
|
* *
|
|
@@ -53,9 +53,11 @@ export declare class ElderGridComponent extends ElderDataViewBaseComponent imple
|
|
|
53
53
|
*/
|
|
54
54
|
idField: string;
|
|
55
55
|
selectionVisible: boolean;
|
|
56
|
-
|
|
56
|
+
pageSizeOptions: number[];
|
|
57
|
+
matPaginator: MatPaginator;
|
|
57
58
|
toolbarTemplateQuery: TemplateRef<any>;
|
|
58
59
|
private _toolbarTemplate;
|
|
60
|
+
private readonly destroy$;
|
|
59
61
|
/***************************************************************************
|
|
60
62
|
* *
|
|
61
63
|
* Constructor *
|
|
@@ -68,6 +70,7 @@ export declare class ElderGridComponent extends ElderDataViewBaseComponent imple
|
|
|
68
70
|
* *
|
|
69
71
|
**************************************************************************/
|
|
70
72
|
ngOnInit(): void;
|
|
73
|
+
ngAfterViewInit(): void;
|
|
71
74
|
ngOnDestroy(): void;
|
|
72
75
|
/***************************************************************************
|
|
73
76
|
* *
|
|
@@ -78,7 +81,7 @@ export declare class ElderGridComponent extends ElderDataViewBaseComponent imple
|
|
|
78
81
|
get tileTemplate(): TemplateRef<any>;
|
|
79
82
|
set toolbarTemplate(template: TemplateRef<any>);
|
|
80
83
|
get toolbarTemplate(): TemplateRef<any>;
|
|
81
|
-
set data(data:
|
|
84
|
+
set data(data: IDataContext<any>);
|
|
82
85
|
get dataSnapshot(): IDataContextContinuable<any>;
|
|
83
86
|
set columnCount(count: number);
|
|
84
87
|
get columnCount(): number;
|
|
@@ -5,7 +5,6 @@ import { IDataContext } from '../../../../common/data/data-context/data-context'
|
|
|
5
5
|
import { SelectionModel } from '../../../../common/selection/selection-model';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
7
7
|
import { CdkColumnDef, CdkRowDef, CdkTable } from '@angular/cdk/table';
|
|
8
|
-
import { ElderDataViewInteractionMode } from '../../base/elder-data-view';
|
|
9
8
|
import { ElderDataViewSelectionMode } from '../../../select/popup/selection-model-popup.directive';
|
|
10
9
|
import { ElderTableRowDirective } from '../elder-table-row.directive';
|
|
11
10
|
import { IDataSource } from '../../../../common/data/datasource/data-source';
|
|
@@ -33,7 +32,6 @@ export declare class ElderTableComponent extends ElderDataViewBaseComponent impl
|
|
|
33
32
|
**************************************************************************/
|
|
34
33
|
private readonly logger;
|
|
35
34
|
private readonly destroy$;
|
|
36
|
-
private readonly _itemClickSubject;
|
|
37
35
|
/**
|
|
38
36
|
* Load next chunk after current is done
|
|
39
37
|
*/
|
|
@@ -45,7 +43,11 @@ export declare class ElderTableComponent extends ElderDataViewBaseComponent impl
|
|
|
45
43
|
elderColumns: QueryList<ElderTableColumnDirective>;
|
|
46
44
|
rowDefs: QueryList<CdkRowDef<any>>;
|
|
47
45
|
/**
|
|
48
|
-
*
|
|
46
|
+
* Field to identify the data records (ID field).
|
|
47
|
+
* Note: This property is only considered in case the
|
|
48
|
+
* underlying data is an Array.
|
|
49
|
+
* In case of DataContext, the ID field needs to be defined in the context.
|
|
50
|
+
* In case of DataSource, the ID field is automatically picked from the DataSource.
|
|
49
51
|
*/
|
|
50
52
|
idField: string;
|
|
51
53
|
/**
|
|
@@ -74,7 +76,6 @@ export declare class ElderTableComponent extends ElderDataViewBaseComponent impl
|
|
|
74
76
|
cleanUp: boolean;
|
|
75
77
|
keepSelection: boolean;
|
|
76
78
|
showFooter: boolean;
|
|
77
|
-
interactionMode: ElderDataViewInteractionMode;
|
|
78
79
|
canLoadMore$: Observable<boolean>;
|
|
79
80
|
total$: Observable<string>;
|
|
80
81
|
/**
|
|
@@ -127,7 +128,6 @@ export declare class ElderTableComponent extends ElderDataViewBaseComponent impl
|
|
|
127
128
|
/** Indicates if selection column is shown. */
|
|
128
129
|
set selectionVisible(visible: boolean);
|
|
129
130
|
get selectionVisible(): boolean;
|
|
130
|
-
get itemClick(): Observable<any>;
|
|
131
131
|
/***************************************************************************
|
|
132
132
|
* *
|
|
133
133
|
* Public API *
|
|
@@ -135,11 +135,6 @@ export declare class ElderTableComponent extends ElderDataViewBaseComponent impl
|
|
|
135
135
|
**************************************************************************/
|
|
136
136
|
requestMoreDataZoned(event: any): void;
|
|
137
137
|
get trackByFn(): TrackByFunction<any>;
|
|
138
|
-
/**
|
|
139
|
-
* Occurs when the user clicks on a row
|
|
140
|
-
*/
|
|
141
|
-
onItemClick(entity: any): void;
|
|
142
|
-
onItemDoubleClick(entity: any): void;
|
|
143
138
|
/***************************************************************************
|
|
144
139
|
* *
|
|
145
140
|
* Private Methods *
|