@firestitch/list 12.17.1 → 12.18.1
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/app/classes/actions-controller.d.ts +20 -20
- package/app/classes/columns-controller.d.ts +71 -71
- package/app/classes/data-controller.d.ts +91 -91
- package/app/classes/external-params-controller.d.ts +31 -31
- package/app/classes/index.d.ts +2 -2
- package/app/classes/list-controller.d.ts +179 -179
- package/app/classes/pagination-controller.d.ts +189 -189
- package/app/classes/persistance-controller.d.ts +10 -10
- package/app/classes/reorder-controller.d.ts +68 -68
- package/app/classes/selection-controller.d.ts +155 -155
- package/app/classes/sorting-controller.d.ts +64 -64
- package/app/components/body/body.component.d.ts +28 -28
- package/app/components/body/row/actions/actions.component.d.ts +36 -36
- package/app/components/body/row/cell/cell.component.d.ts +23 -22
- package/app/components/body/row/inline-action/inline-action.component.d.ts +16 -16
- package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
- package/app/components/body/row/row.component.d.ts +82 -82
- package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
- package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
- package/app/components/footer/footer-row/footer-row.component.d.ts +14 -14
- package/app/components/footer/footer.component.d.ts +15 -15
- package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
- package/app/components/head/head.component.d.ts +49 -49
- package/app/components/list/list.component.d.ts +122 -122
- package/app/components/loader/loader.component.d.ts +14 -14
- package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
- package/app/components/pagination/pagination.component.d.ts +14 -14
- package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
- package/app/components/status/status.component.d.ts +21 -21
- package/app/directives/cell/cell.directive.d.ts +8 -8
- package/app/directives/column/column.directive.d.ts +33 -33
- package/app/directives/content/content.directive.d.ts +5 -5
- package/app/directives/content-init/content-init.directive.d.ts +9 -9
- package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
- package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
- package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
- package/app/directives/footer/footer.directive.d.ts +8 -8
- package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
- package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
- package/app/directives/group-header/group-header.directive.d.ts +6 -6
- package/app/directives/header/header.directive.d.ts +8 -8
- package/app/directives/heading/heading.directive.d.ts +5 -5
- package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
- package/app/directives/index.d.ts +3 -3
- package/app/directives/subheading/subheading.directive.d.ts +5 -5
- package/app/enums/button-type.enum.d.ts +7 -7
- package/app/enums/page-change-type.enum.d.ts +4 -4
- package/app/enums/pagination-strategy.enum.d.ts +5 -5
- package/app/enums/row-type.enum.d.ts +6 -6
- package/app/enums/state.enum.d.ts +9 -9
- package/app/fs-list.module.d.ts +60 -60
- package/app/fs-list.providers.d.ts +3 -3
- package/app/interfaces/cellconfig.interface.d.ts +5 -5
- package/app/interfaces/column-config.interface.d.ts +2 -2
- package/app/interfaces/draggable-list.interface.d.ts +7 -7
- package/app/interfaces/external-params.interface.d.ts +13 -13
- package/app/interfaces/index.d.ts +3 -3
- package/app/interfaces/listconfig.interface.d.ts +267 -267
- package/app/interfaces/pagination.interface.d.ts +13 -13
- package/app/models/column-async-attribute.d.ts +5 -5
- package/app/models/column-attributes.d.ts +39 -39
- package/app/models/column.model.d.ts +59 -59
- package/app/models/row/base-row.d.ts +13 -13
- package/app/models/row/child-row.d.ts +12 -12
- package/app/models/row/group-footer-row.d.ts +10 -10
- package/app/models/row/group-row.d.ts +16 -16
- package/app/models/row/simple-row.d.ts +5 -5
- package/app/models/row-action.model.d.ts +29 -29
- package/app/models/row.d.ts +30 -30
- package/app/models/styleConfig.model.d.ts +31 -31
- package/app/pipes/action-label.d.ts +8 -8
- package/app/pipes/index.d.ts +1 -1
- package/app/services/group-expand-notifier.service.d.ts +11 -11
- package/bundles/firestitch-list.umd.js +6930 -6909
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/actions-controller.js +55 -55
- package/esm2015/app/classes/columns-controller.js +205 -205
- package/esm2015/app/classes/data-controller.js +365 -353
- package/esm2015/app/classes/external-params-controller.js +153 -153
- package/esm2015/app/classes/index.js +3 -3
- package/esm2015/app/classes/list-controller.js +738 -738
- package/esm2015/app/classes/pagination-controller.js +460 -460
- package/esm2015/app/classes/persistance-controller.js +19 -19
- package/esm2015/app/classes/reorder-controller.js +182 -182
- package/esm2015/app/classes/selection-controller.js +467 -467
- package/esm2015/app/classes/sorting-controller.js +180 -180
- package/esm2015/app/components/body/body.component.js +68 -68
- package/esm2015/app/components/body/row/actions/actions.component.js +98 -98
- package/esm2015/app/components/body/row/cell/cell.component.js +113 -106
- package/esm2015/app/components/body/row/inline-action/inline-action.component.js +39 -39
- package/esm2015/app/components/body/row/menu-action/menu-action.component.js +49 -49
- package/esm2015/app/components/body/row/row.component.js +305 -305
- package/esm2015/app/components/customize-cols/customize-cols.component.js +72 -72
- package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +20 -20
- package/esm2015/app/components/footer/footer-row/footer-row.component.js +31 -31
- package/esm2015/app/components/footer/footer.component.js +35 -35
- package/esm2015/app/components/head/head-cell/head-cell.component.js +34 -34
- package/esm2015/app/components/head/head.component.js +107 -107
- package/esm2015/app/components/list/list.component.js +385 -385
- package/esm2015/app/components/loader/loader.component.js +47 -47
- package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +78 -78
- package/esm2015/app/components/pagination/pagination.component.js +44 -44
- package/esm2015/app/components/saved-filters/saved-filters.component.js +33 -33
- package/esm2015/app/components/status/status.component.js +72 -72
- package/esm2015/app/directives/cell/cell.directive.js +18 -18
- package/esm2015/app/directives/column/column.directive.js +111 -111
- package/esm2015/app/directives/content/content.directive.js +12 -12
- package/esm2015/app/directives/content-init/content-init.directive.js +21 -21
- package/esm2015/app/directives/draggable-list/draggable-list.directive.js +330 -329
- package/esm2015/app/directives/draggable-row/draggable-row.directive.js +78 -78
- package/esm2015/app/directives/empty-state/empty-state.directive.js +13 -13
- package/esm2015/app/directives/footer/footer.directive.js +18 -18
- package/esm2015/app/directives/group-expand-trigger/group-expand-trigger.directive.js +26 -26
- package/esm2015/app/directives/group-footer/group-footer.directive.js +13 -13
- package/esm2015/app/directives/group-header/group-header.directive.js +13 -13
- package/esm2015/app/directives/header/header.directive.js +18 -18
- package/esm2015/app/directives/heading/heading.directive.js +13 -13
- package/esm2015/app/directives/heading-container/heading-container.directive.js +13 -13
- package/esm2015/app/directives/index.js +4 -4
- package/esm2015/app/directives/subheading/subheading.directive.js +13 -13
- package/esm2015/app/enums/button-type.enum.js +9 -9
- package/esm2015/app/enums/page-change-type.enum.js +6 -6
- package/esm2015/app/enums/pagination-strategy.enum.js +7 -7
- package/esm2015/app/enums/row-type.enum.js +7 -7
- package/esm2015/app/enums/state.enum.js +11 -11
- package/esm2015/app/fs-list.module.js +244 -244
- package/esm2015/app/fs-list.providers.js +4 -4
- package/esm2015/app/interfaces/cellconfig.interface.js +2 -2
- package/esm2015/app/interfaces/column-config.interface.js +1 -1
- package/esm2015/app/interfaces/draggable-list.interface.js +2 -2
- package/esm2015/app/interfaces/external-params.interface.js +2 -2
- package/esm2015/app/interfaces/index.js +4 -4
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/esm2015/app/interfaces/pagination.interface.js +2 -2
- package/esm2015/app/models/column-async-attribute.js +13 -13
- package/esm2015/app/models/column-attributes.js +130 -130
- package/esm2015/app/models/column.model.js +166 -166
- package/esm2015/app/models/row/base-row.js +23 -23
- package/esm2015/app/models/row/child-row.js +28 -28
- package/esm2015/app/models/row/group-footer-row.js +20 -20
- package/esm2015/app/models/row/group-row.js +44 -44
- package/esm2015/app/models/row/simple-row.js +10 -10
- package/esm2015/app/models/row-action.model.js +94 -94
- package/esm2015/app/models/row.js +80 -80
- package/esm2015/app/models/styleConfig.model.js +75 -75
- package/esm2015/app/pipes/action-label.js +16 -16
- package/esm2015/app/pipes/index.js +1 -1
- package/esm2015/app/services/group-expand-notifier.service.js +26 -26
- package/esm2015/firestitch-list.js +4 -4
- package/esm2015/public_api.js +45 -45
- package/fesm2015/firestitch-list.js +5710 -5690
- package/fesm2015/firestitch-list.js.map +1 -1
- package/firestitch-list.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +39 -39
|
@@ -1,179 +1,179 @@
|
|
|
1
|
-
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { ChangeFn, FilterConfig, IFilterSavedFiltersConfig } from '@firestitch/filter';
|
|
4
|
-
import { FsScrollInstance, FsScrollService } from '@firestitch/scroll';
|
|
5
|
-
import { SelectionDialog } from '@firestitch/selection';
|
|
6
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
|
-
import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListAfterInitFn, FsListBeforeFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListScrollableConfig, FsListTrackByFn } from '../interfaces';
|
|
8
|
-
import { ColumnsController } from './columns-controller';
|
|
9
|
-
import { DataController } from './data-controller';
|
|
10
|
-
import { ActionsController } from './index';
|
|
11
|
-
import { PaginationController } from './pagination-controller';
|
|
12
|
-
import { SelectionController } from './selection-controller';
|
|
13
|
-
import { SortingController } from './sorting-controller';
|
|
14
|
-
import { ExternalParamsController } from './external-params-controller';
|
|
15
|
-
import { PersistanceController } from './persistance-controller';
|
|
16
|
-
export declare class List {
|
|
17
|
-
private el;
|
|
18
|
-
private config;
|
|
19
|
-
private fsScroll;
|
|
20
|
-
private selectionDialog;
|
|
21
|
-
private router;
|
|
22
|
-
private route;
|
|
23
|
-
private persistance;
|
|
24
|
-
private inDialog;
|
|
25
|
-
heading: string;
|
|
26
|
-
trackBy: string;
|
|
27
|
-
subheading: string;
|
|
28
|
-
autoFocus: boolean;
|
|
29
|
-
rowHighlight: boolean;
|
|
30
|
-
rowActionsRaw: any[];
|
|
31
|
-
groupActionsRaw: any[];
|
|
32
|
-
rowClass: any;
|
|
33
|
-
rowEvents: any;
|
|
34
|
-
restore: FsListRestoreConfig;
|
|
35
|
-
persist: FsListPersitance;
|
|
36
|
-
filters: any[];
|
|
37
|
-
filterInitCb: ChangeFn;
|
|
38
|
-
filterChangeCb: ChangeFn;
|
|
39
|
-
savedFilters: IFilterSavedFiltersConfig;
|
|
40
|
-
scrollable: FsListScrollableConfig;
|
|
41
|
-
noResults: FsListNoResultsConfig;
|
|
42
|
-
emptyState: FsListEmptyStateConfig;
|
|
43
|
-
fetchFn: FsListFetchFn;
|
|
44
|
-
beforeFetchFn: FsListBeforeFetchFn;
|
|
45
|
-
afterFetchFn: FsListAfterFetchFn;
|
|
46
|
-
afterContentInit: FsListAfterContentInitFn;
|
|
47
|
-
afterInit: FsListAfterInitFn;
|
|
48
|
-
style: any;
|
|
49
|
-
initialized$: BehaviorSubject<boolean>;
|
|
50
|
-
loading$: BehaviorSubject<boolean>;
|
|
51
|
-
hasRowActions: any;
|
|
52
|
-
paging: PaginationController;
|
|
53
|
-
columns: ColumnsController;
|
|
54
|
-
actions: ActionsController;
|
|
55
|
-
dataController: DataController;
|
|
56
|
-
sorting: SortingController;
|
|
57
|
-
externalParams: ExternalParamsController;
|
|
58
|
-
selection: SelectionController;
|
|
59
|
-
filterConfig: FilterConfig;
|
|
60
|
-
fetch$: Subject<void | FsListFetchSubscription>;
|
|
61
|
-
fetchComplete$: Subject<void>;
|
|
62
|
-
filtersReady$: Subject<void>;
|
|
63
|
-
status: boolean;
|
|
64
|
-
chips: boolean;
|
|
65
|
-
filterInput: boolean;
|
|
66
|
-
queryParam: boolean;
|
|
67
|
-
restoreMode: boolean;
|
|
68
|
-
initialFetch: boolean;
|
|
69
|
-
emptyStateEnabled: boolean;
|
|
70
|
-
emptyStateTemplate: TemplateRef<any>;
|
|
71
|
-
fsScrollInstance: FsScrollInstance;
|
|
72
|
-
onDestroy$: Subject<unknown>;
|
|
73
|
-
private readonly _filtersQuery;
|
|
74
|
-
private readonly _activeFiltersCount$;
|
|
75
|
-
private readonly _headerConfig;
|
|
76
|
-
private readonly _groupCellConfig;
|
|
77
|
-
private readonly _cellConfig;
|
|
78
|
-
private readonly _footerConfig;
|
|
79
|
-
private _fsScrollSubscription;
|
|
80
|
-
constructor(el: ElementRef, config: FsListConfig, fsScroll: FsScrollService, selectionDialog: SelectionDialog, router: Router, route: ActivatedRoute, persistance: PersistanceController, inDialog: boolean);
|
|
81
|
-
get hasSavedFilters(): boolean;
|
|
82
|
-
get filtersQuery(): Record<string, any>;
|
|
83
|
-
get activeFiltersCount$(): Observable<number>;
|
|
84
|
-
fetchRemote(query: any): any;
|
|
85
|
-
/**
|
|
86
|
-
* Transform templates for using
|
|
87
|
-
* @param templates
|
|
88
|
-
*/
|
|
89
|
-
tranformTemplatesToColumns(templates: any): void;
|
|
90
|
-
reload(): void;
|
|
91
|
-
/**
|
|
92
|
-
* Watch page changes
|
|
93
|
-
*/
|
|
94
|
-
subscribe(): void;
|
|
95
|
-
getData(trackBy?: FsListTrackByFn): any[];
|
|
96
|
-
hasData(trackBy: FsListTrackByFn): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Toggle group mode status
|
|
99
|
-
* @param value
|
|
100
|
-
*/
|
|
101
|
-
groupEnabled(value: boolean): void;
|
|
102
|
-
destroy(): void;
|
|
103
|
-
/**
|
|
104
|
-
* Do initialization of table
|
|
105
|
-
* @param config
|
|
106
|
-
*/
|
|
107
|
-
private initialize;
|
|
108
|
-
/**
|
|
109
|
-
* Just init options by default it it wasn't specified
|
|
110
|
-
* @param config
|
|
111
|
-
*/
|
|
112
|
-
private initDefaultOptions;
|
|
113
|
-
/**
|
|
114
|
-
* Init restore row action and append Show Deleted option into filters
|
|
115
|
-
*/
|
|
116
|
-
private initRestore;
|
|
117
|
-
/**
|
|
118
|
-
* Init paging
|
|
119
|
-
* @param pagingConfig
|
|
120
|
-
* @param loadMore
|
|
121
|
-
*/
|
|
122
|
-
private initPaging;
|
|
123
|
-
/**
|
|
124
|
-
* Split actions by categories
|
|
125
|
-
*/
|
|
126
|
-
private initActions;
|
|
127
|
-
private initSelection;
|
|
128
|
-
private initializeData;
|
|
129
|
-
private initGroups;
|
|
130
|
-
private initExternalParamsController;
|
|
131
|
-
/**
|
|
132
|
-
* Subscribe to fetch$ event with debounce
|
|
133
|
-
*/
|
|
134
|
-
private listenFetch;
|
|
135
|
-
private listenRowsRemove;
|
|
136
|
-
/**
|
|
137
|
-
* Lister may have originally hidden columns, but visibility of those columns
|
|
138
|
-
* can be changed programmaticaly in any time
|
|
139
|
-
*/
|
|
140
|
-
private _listenVisibleColumnChanges;
|
|
141
|
-
private initInfinityScroll;
|
|
142
|
-
/**
|
|
143
|
-
* Update and watch filter changes
|
|
144
|
-
*/
|
|
145
|
-
private initFilters;
|
|
146
|
-
/**
|
|
147
|
-
* Callback when Filter has been initialized
|
|
148
|
-
* @param filters
|
|
149
|
-
*/
|
|
150
|
-
private filterInit;
|
|
151
|
-
/**
|
|
152
|
-
* Callback when Filter has been changed
|
|
153
|
-
* @param filterQuery
|
|
154
|
-
* @param filterSort
|
|
155
|
-
*/
|
|
156
|
-
private filterChange;
|
|
157
|
-
private checkRestoreFilter;
|
|
158
|
-
private filterSort;
|
|
159
|
-
private completeFetch;
|
|
160
|
-
/**
|
|
161
|
-
* Will do some actions if you removed item and item was last on his own page
|
|
162
|
-
*
|
|
163
|
-
* Ex: if list has 3 pages and on third page you have only one item. And you just deleted this item.
|
|
164
|
-
* You must go to second page, but if it was last page and you can't go back -> just reload
|
|
165
|
-
*
|
|
166
|
-
* @param deletedCount
|
|
167
|
-
*/
|
|
168
|
-
private noDataPaginationUpdate;
|
|
169
|
-
/**
|
|
170
|
-
* Temporary solution, will do auto subscribe if was returned Observable.
|
|
171
|
-
*
|
|
172
|
-
* TODO: MOVE THIS PEACE OF CODE TO SPECIAL PLACE
|
|
173
|
-
*
|
|
174
|
-
* @param restoreClickCallback
|
|
175
|
-
* @param row
|
|
176
|
-
*/
|
|
177
|
-
private restoreClick;
|
|
178
|
-
private _updateSortingColumns;
|
|
179
|
-
}
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ChangeFn, FilterConfig, IFilterSavedFiltersConfig } from '@firestitch/filter';
|
|
4
|
+
import { FsScrollInstance, FsScrollService } from '@firestitch/scroll';
|
|
5
|
+
import { SelectionDialog } from '@firestitch/selection';
|
|
6
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
|
+
import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListAfterInitFn, FsListBeforeFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListScrollableConfig, FsListTrackByFn } from '../interfaces';
|
|
8
|
+
import { ColumnsController } from './columns-controller';
|
|
9
|
+
import { DataController } from './data-controller';
|
|
10
|
+
import { ActionsController } from './index';
|
|
11
|
+
import { PaginationController } from './pagination-controller';
|
|
12
|
+
import { SelectionController } from './selection-controller';
|
|
13
|
+
import { SortingController } from './sorting-controller';
|
|
14
|
+
import { ExternalParamsController } from './external-params-controller';
|
|
15
|
+
import { PersistanceController } from './persistance-controller';
|
|
16
|
+
export declare class List {
|
|
17
|
+
private el;
|
|
18
|
+
private config;
|
|
19
|
+
private fsScroll;
|
|
20
|
+
private selectionDialog;
|
|
21
|
+
private router;
|
|
22
|
+
private route;
|
|
23
|
+
private persistance;
|
|
24
|
+
private inDialog;
|
|
25
|
+
heading: string;
|
|
26
|
+
trackBy: string;
|
|
27
|
+
subheading: string;
|
|
28
|
+
autoFocus: boolean;
|
|
29
|
+
rowHighlight: boolean;
|
|
30
|
+
rowActionsRaw: any[];
|
|
31
|
+
groupActionsRaw: any[];
|
|
32
|
+
rowClass: any;
|
|
33
|
+
rowEvents: any;
|
|
34
|
+
restore: FsListRestoreConfig;
|
|
35
|
+
persist: FsListPersitance;
|
|
36
|
+
filters: any[];
|
|
37
|
+
filterInitCb: ChangeFn;
|
|
38
|
+
filterChangeCb: ChangeFn;
|
|
39
|
+
savedFilters: IFilterSavedFiltersConfig;
|
|
40
|
+
scrollable: FsListScrollableConfig;
|
|
41
|
+
noResults: FsListNoResultsConfig;
|
|
42
|
+
emptyState: FsListEmptyStateConfig;
|
|
43
|
+
fetchFn: FsListFetchFn;
|
|
44
|
+
beforeFetchFn: FsListBeforeFetchFn;
|
|
45
|
+
afterFetchFn: FsListAfterFetchFn;
|
|
46
|
+
afterContentInit: FsListAfterContentInitFn;
|
|
47
|
+
afterInit: FsListAfterInitFn;
|
|
48
|
+
style: any;
|
|
49
|
+
initialized$: BehaviorSubject<boolean>;
|
|
50
|
+
loading$: BehaviorSubject<boolean>;
|
|
51
|
+
hasRowActions: any;
|
|
52
|
+
paging: PaginationController;
|
|
53
|
+
columns: ColumnsController;
|
|
54
|
+
actions: ActionsController;
|
|
55
|
+
dataController: DataController;
|
|
56
|
+
sorting: SortingController;
|
|
57
|
+
externalParams: ExternalParamsController;
|
|
58
|
+
selection: SelectionController;
|
|
59
|
+
filterConfig: FilterConfig;
|
|
60
|
+
fetch$: Subject<void | FsListFetchSubscription>;
|
|
61
|
+
fetchComplete$: Subject<void>;
|
|
62
|
+
filtersReady$: Subject<void>;
|
|
63
|
+
status: boolean;
|
|
64
|
+
chips: boolean;
|
|
65
|
+
filterInput: boolean;
|
|
66
|
+
queryParam: boolean;
|
|
67
|
+
restoreMode: boolean;
|
|
68
|
+
initialFetch: boolean;
|
|
69
|
+
emptyStateEnabled: boolean;
|
|
70
|
+
emptyStateTemplate: TemplateRef<any>;
|
|
71
|
+
fsScrollInstance: FsScrollInstance;
|
|
72
|
+
onDestroy$: Subject<unknown>;
|
|
73
|
+
private readonly _filtersQuery;
|
|
74
|
+
private readonly _activeFiltersCount$;
|
|
75
|
+
private readonly _headerConfig;
|
|
76
|
+
private readonly _groupCellConfig;
|
|
77
|
+
private readonly _cellConfig;
|
|
78
|
+
private readonly _footerConfig;
|
|
79
|
+
private _fsScrollSubscription;
|
|
80
|
+
constructor(el: ElementRef, config: FsListConfig, fsScroll: FsScrollService, selectionDialog: SelectionDialog, router: Router, route: ActivatedRoute, persistance: PersistanceController, inDialog: boolean);
|
|
81
|
+
get hasSavedFilters(): boolean;
|
|
82
|
+
get filtersQuery(): Record<string, any>;
|
|
83
|
+
get activeFiltersCount$(): Observable<number>;
|
|
84
|
+
fetchRemote(query: any): any;
|
|
85
|
+
/**
|
|
86
|
+
* Transform templates for using
|
|
87
|
+
* @param templates
|
|
88
|
+
*/
|
|
89
|
+
tranformTemplatesToColumns(templates: any): void;
|
|
90
|
+
reload(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Watch page changes
|
|
93
|
+
*/
|
|
94
|
+
subscribe(): void;
|
|
95
|
+
getData(trackBy?: FsListTrackByFn): any[];
|
|
96
|
+
hasData(trackBy: FsListTrackByFn): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Toggle group mode status
|
|
99
|
+
* @param value
|
|
100
|
+
*/
|
|
101
|
+
groupEnabled(value: boolean): void;
|
|
102
|
+
destroy(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Do initialization of table
|
|
105
|
+
* @param config
|
|
106
|
+
*/
|
|
107
|
+
private initialize;
|
|
108
|
+
/**
|
|
109
|
+
* Just init options by default it it wasn't specified
|
|
110
|
+
* @param config
|
|
111
|
+
*/
|
|
112
|
+
private initDefaultOptions;
|
|
113
|
+
/**
|
|
114
|
+
* Init restore row action and append Show Deleted option into filters
|
|
115
|
+
*/
|
|
116
|
+
private initRestore;
|
|
117
|
+
/**
|
|
118
|
+
* Init paging
|
|
119
|
+
* @param pagingConfig
|
|
120
|
+
* @param loadMore
|
|
121
|
+
*/
|
|
122
|
+
private initPaging;
|
|
123
|
+
/**
|
|
124
|
+
* Split actions by categories
|
|
125
|
+
*/
|
|
126
|
+
private initActions;
|
|
127
|
+
private initSelection;
|
|
128
|
+
private initializeData;
|
|
129
|
+
private initGroups;
|
|
130
|
+
private initExternalParamsController;
|
|
131
|
+
/**
|
|
132
|
+
* Subscribe to fetch$ event with debounce
|
|
133
|
+
*/
|
|
134
|
+
private listenFetch;
|
|
135
|
+
private listenRowsRemove;
|
|
136
|
+
/**
|
|
137
|
+
* Lister may have originally hidden columns, but visibility of those columns
|
|
138
|
+
* can be changed programmaticaly in any time
|
|
139
|
+
*/
|
|
140
|
+
private _listenVisibleColumnChanges;
|
|
141
|
+
private initInfinityScroll;
|
|
142
|
+
/**
|
|
143
|
+
* Update and watch filter changes
|
|
144
|
+
*/
|
|
145
|
+
private initFilters;
|
|
146
|
+
/**
|
|
147
|
+
* Callback when Filter has been initialized
|
|
148
|
+
* @param filters
|
|
149
|
+
*/
|
|
150
|
+
private filterInit;
|
|
151
|
+
/**
|
|
152
|
+
* Callback when Filter has been changed
|
|
153
|
+
* @param filterQuery
|
|
154
|
+
* @param filterSort
|
|
155
|
+
*/
|
|
156
|
+
private filterChange;
|
|
157
|
+
private checkRestoreFilter;
|
|
158
|
+
private filterSort;
|
|
159
|
+
private completeFetch;
|
|
160
|
+
/**
|
|
161
|
+
* Will do some actions if you removed item and item was last on his own page
|
|
162
|
+
*
|
|
163
|
+
* Ex: if list has 3 pages and on third page you have only one item. And you just deleted this item.
|
|
164
|
+
* You must go to second page, but if it was last page and you can't go back -> just reload
|
|
165
|
+
*
|
|
166
|
+
* @param deletedCount
|
|
167
|
+
*/
|
|
168
|
+
private noDataPaginationUpdate;
|
|
169
|
+
/**
|
|
170
|
+
* Temporary solution, will do auto subscribe if was returned Observable.
|
|
171
|
+
*
|
|
172
|
+
* TODO: MOVE THIS PEACE OF CODE TO SPECIAL PLACE
|
|
173
|
+
*
|
|
174
|
+
* @param restoreClickCallback
|
|
175
|
+
* @param row
|
|
176
|
+
*/
|
|
177
|
+
private restoreClick;
|
|
178
|
+
private _updateSortingColumns;
|
|
179
|
+
}
|