@firestitch/list 14.0.2 → 16.0.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.
Files changed (210) hide show
  1. package/app/classes/actions-controller.d.ts +20 -20
  2. package/app/classes/columns-controller.d.ts +71 -71
  3. package/app/classes/data-controller.d.ts +88 -88
  4. package/app/classes/external-params-controller.d.ts +32 -32
  5. package/app/classes/index.d.ts +2 -2
  6. package/app/classes/list-controller.d.ts +188 -188
  7. package/app/classes/pagination-controller.d.ts +197 -197
  8. package/app/classes/persistance-controller.d.ts +10 -10
  9. package/app/classes/reorder-controller.d.ts +67 -67
  10. package/app/classes/selection-controller.d.ts +155 -155
  11. package/app/classes/sorting-controller.d.ts +70 -70
  12. package/app/components/body/body.component.d.ts +28 -28
  13. package/app/components/body/row/actions/actions.component.d.ts +36 -36
  14. package/app/components/body/row/cell/cell.component.d.ts +22 -22
  15. package/app/components/body/row/inline-action/inline-action.component.d.ts +13 -13
  16. package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
  17. package/app/components/body/row/row.component.d.ts +85 -85
  18. package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
  19. package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
  20. package/app/components/footer/footer-row/footer-row.component.d.ts +8 -14
  21. package/app/components/footer/footer.component.d.ts +15 -15
  22. package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
  23. package/app/components/head/head.component.d.ts +49 -49
  24. package/app/components/list/list.component.d.ts +127 -127
  25. package/app/components/loader/loader.component.d.ts +14 -14
  26. package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
  27. package/app/components/pagination/pagination.component.d.ts +14 -14
  28. package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
  29. package/app/components/status/status.component.d.ts +20 -20
  30. package/app/directives/cell/cell.directive.d.ts +8 -8
  31. package/app/directives/column/column.directive.d.ts +37 -37
  32. package/app/directives/content/content.directive.d.ts +5 -5
  33. package/app/directives/content-init/content-init.directive.d.ts +9 -9
  34. package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
  35. package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
  36. package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
  37. package/app/directives/footer/footer.directive.d.ts +8 -8
  38. package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
  39. package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
  40. package/app/directives/group-header/group-header.directive.d.ts +6 -6
  41. package/app/directives/header/header.directive.d.ts +8 -8
  42. package/app/directives/heading/heading.directive.d.ts +5 -5
  43. package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
  44. package/app/directives/index.d.ts +3 -3
  45. package/app/directives/subheading/subheading.directive.d.ts +5 -5
  46. package/app/enums/action-type.enum.d.ts +7 -7
  47. package/app/enums/page-change-type.enum.d.ts +4 -4
  48. package/app/enums/pagination-strategy.enum.d.ts +5 -5
  49. package/app/enums/row-type.enum.d.ts +6 -6
  50. package/app/enums/state.enum.d.ts +9 -9
  51. package/app/fs-list.module.d.ts +60 -60
  52. package/app/fs-list.providers.d.ts +3 -3
  53. package/app/interfaces/cellconfig.interface.d.ts +5 -5
  54. package/app/interfaces/column-config.interface.d.ts +2 -2
  55. package/app/interfaces/draggable-list.interface.d.ts +7 -7
  56. package/app/interfaces/external-params.interface.d.ts +13 -13
  57. package/app/interfaces/index.d.ts +4 -4
  58. package/app/interfaces/listconfig.interface.d.ts +245 -245
  59. package/app/interfaces/pagination-state.interface.d.ts +9 -9
  60. package/app/interfaces/pagination.interface.d.ts +13 -13
  61. package/app/interfaces/sorting-change-event.interface.d.ts +4 -4
  62. package/app/models/column-async-attribute.d.ts +5 -5
  63. package/app/models/column-attributes.d.ts +39 -39
  64. package/app/models/column.model.d.ts +61 -61
  65. package/app/models/row/base-row.d.ts +13 -13
  66. package/app/models/row/child-row.d.ts +12 -12
  67. package/app/models/row/group-footer-row.d.ts +10 -10
  68. package/app/models/row/group-row.d.ts +16 -16
  69. package/app/models/row/simple-row.d.ts +5 -5
  70. package/app/models/row-action.model.d.ts +29 -29
  71. package/app/models/row.d.ts +34 -34
  72. package/app/models/styleConfig.model.d.ts +31 -31
  73. package/app/pipes/action-label.d.ts +8 -8
  74. package/app/pipes/index.d.ts +1 -1
  75. package/app/services/group-expand-notifier.service.d.ts +11 -11
  76. package/esm2022/app/classes/actions-controller.mjs +57 -0
  77. package/esm2022/app/classes/columns-controller.mjs +211 -0
  78. package/esm2022/app/classes/data-controller.mjs +348 -0
  79. package/esm2022/app/classes/external-params-controller.mjs +153 -0
  80. package/{esm2020 → esm2022}/app/classes/index.mjs +3 -3
  81. package/esm2022/app/classes/list-controller.mjs +712 -0
  82. package/esm2022/app/classes/pagination-controller.mjs +491 -0
  83. package/esm2022/app/classes/persistance-controller.mjs +19 -0
  84. package/esm2022/app/classes/reorder-controller.mjs +191 -0
  85. package/esm2022/app/classes/selection-controller.mjs +473 -0
  86. package/esm2022/app/classes/sorting-controller.mjs +207 -0
  87. package/esm2022/app/components/body/body.component.mjs +73 -0
  88. package/esm2022/app/components/body/row/actions/actions.component.mjs +102 -0
  89. package/esm2022/app/components/body/row/cell/cell.component.mjs +109 -0
  90. package/esm2022/app/components/body/row/inline-action/inline-action.component.mjs +32 -0
  91. package/esm2022/app/components/body/row/menu-action/menu-action.component.mjs +51 -0
  92. package/esm2022/app/components/body/row/row.component.mjs +341 -0
  93. package/esm2022/app/components/customize-cols/customize-cols.component.mjs +70 -0
  94. package/esm2022/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -0
  95. package/esm2022/app/components/footer/footer-row/footer-row.component.mjs +17 -0
  96. package/esm2022/app/components/footer/footer.component.mjs +35 -0
  97. package/esm2022/app/components/head/head-cell/head-cell.component.mjs +32 -0
  98. package/esm2022/app/components/head/head.component.mjs +113 -0
  99. package/esm2022/app/components/list/list.component.mjs +406 -0
  100. package/esm2022/app/components/loader/loader.component.mjs +40 -0
  101. package/esm2022/app/components/manage-saved-filters/manage-saved-filters.component.mjs +78 -0
  102. package/esm2022/app/components/pagination/pagination.component.mjs +40 -0
  103. package/esm2022/app/components/saved-filters/saved-filters.component.mjs +32 -0
  104. package/esm2022/app/components/status/status.component.mjs +69 -0
  105. package/esm2022/app/directives/cell/cell.directive.mjs +21 -0
  106. package/esm2022/app/directives/column/column.directive.mjs +137 -0
  107. package/{esm2020 → esm2022}/app/directives/content/content.directive.mjs +13 -13
  108. package/esm2022/app/directives/content-init/content-init.directive.mjs +23 -0
  109. package/esm2022/app/directives/draggable-list/draggable-list.directive.mjs +344 -0
  110. package/esm2022/app/directives/draggable-row/draggable-row.directive.mjs +83 -0
  111. package/esm2022/app/directives/empty-state/empty-state.directive.mjs +13 -0
  112. package/esm2022/app/directives/footer/footer.directive.mjs +21 -0
  113. package/esm2022/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +28 -0
  114. package/{esm2020 → esm2022}/app/directives/group-footer/group-footer.directive.mjs +14 -14
  115. package/{esm2020 → esm2022}/app/directives/group-header/group-header.directive.mjs +14 -14
  116. package/esm2022/app/directives/header/header.directive.mjs +21 -0
  117. package/esm2022/app/directives/heading/heading.directive.mjs +13 -0
  118. package/{esm2020 → esm2022}/app/directives/heading-container/heading-container.directive.mjs +13 -13
  119. package/{esm2020 → esm2022}/app/directives/index.mjs +4 -4
  120. package/esm2022/app/directives/subheading/subheading.directive.mjs +13 -0
  121. package/{esm2020 → esm2022}/app/enums/action-type.enum.mjs +8 -8
  122. package/{esm2020 → esm2022}/app/enums/page-change-type.enum.mjs +6 -6
  123. package/{esm2020 → esm2022}/app/enums/pagination-strategy.enum.mjs +7 -7
  124. package/{esm2020 → esm2022}/app/enums/row-type.enum.mjs +7 -7
  125. package/{esm2020 → esm2022}/app/enums/state.enum.mjs +11 -11
  126. package/{esm2020 → esm2022}/app/fs-list.module.mjs +244 -244
  127. package/{esm2020 → esm2022}/app/fs-list.providers.mjs +4 -4
  128. package/{esm2020 → esm2022}/app/interfaces/cellconfig.interface.mjs +2 -2
  129. package/{esm2020 → esm2022}/app/interfaces/column-config.interface.mjs +1 -1
  130. package/{esm2020 → esm2022}/app/interfaces/draggable-list.interface.mjs +2 -2
  131. package/esm2022/app/interfaces/external-params.interface.mjs +2 -0
  132. package/{esm2020 → esm2022}/app/interfaces/index.mjs +5 -5
  133. package/{esm2020 → esm2022}/app/interfaces/listconfig.interface.mjs +1 -1
  134. package/{esm2020 → esm2022}/app/interfaces/pagination-state.interface.mjs +1 -1
  135. package/esm2022/app/interfaces/pagination.interface.mjs +2 -0
  136. package/{esm2020 → esm2022}/app/interfaces/sorting-change-event.interface.mjs +2 -2
  137. package/{esm2020 → esm2022}/app/models/column-async-attribute.mjs +13 -13
  138. package/esm2022/app/models/column-attributes.mjs +139 -0
  139. package/esm2022/app/models/column.model.mjs +173 -0
  140. package/esm2022/app/models/row/base-row.mjs +25 -0
  141. package/esm2022/app/models/row/child-row.mjs +29 -0
  142. package/esm2022/app/models/row/group-footer-row.mjs +22 -0
  143. package/{esm2020 → esm2022}/app/models/row/group-row.mjs +45 -45
  144. package/{esm2020 → esm2022}/app/models/row/simple-row.mjs +10 -10
  145. package/esm2022/app/models/row-action.model.mjs +102 -0
  146. package/esm2022/app/models/row.mjs +90 -0
  147. package/esm2022/app/models/styleConfig.model.mjs +78 -0
  148. package/{esm2020 → esm2022}/app/pipes/action-label.mjs +17 -17
  149. package/{esm2020 → esm2022}/app/pipes/index.mjs +1 -1
  150. package/esm2022/app/services/group-expand-notifier.service.mjs +24 -0
  151. package/{esm2020 → esm2022}/firestitch-list.mjs +4 -4
  152. package/{esm2020 → esm2022}/public_api.mjs +45 -45
  153. package/{fesm2020 → fesm2022}/firestitch-list.mjs +5854 -5620
  154. package/fesm2022/firestitch-list.mjs.map +1 -0
  155. package/index.d.ts +5 -5
  156. package/package.json +5 -11
  157. package/public_api.d.ts +41 -41
  158. package/esm2020/app/classes/actions-controller.mjs +0 -55
  159. package/esm2020/app/classes/columns-controller.mjs +0 -206
  160. package/esm2020/app/classes/data-controller.mjs +0 -345
  161. package/esm2020/app/classes/external-params-controller.mjs +0 -147
  162. package/esm2020/app/classes/list-controller.mjs +0 -674
  163. package/esm2020/app/classes/pagination-controller.mjs +0 -491
  164. package/esm2020/app/classes/persistance-controller.mjs +0 -19
  165. package/esm2020/app/classes/reorder-controller.mjs +0 -182
  166. package/esm2020/app/classes/selection-controller.mjs +0 -466
  167. package/esm2020/app/classes/sorting-controller.mjs +0 -206
  168. package/esm2020/app/components/body/body.component.mjs +0 -64
  169. package/esm2020/app/components/body/row/actions/actions.component.mjs +0 -97
  170. package/esm2020/app/components/body/row/cell/cell.component.mjs +0 -107
  171. package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +0 -33
  172. package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +0 -46
  173. package/esm2020/app/components/body/row/row.component.mjs +0 -322
  174. package/esm2020/app/components/customize-cols/customize-cols.component.mjs +0 -68
  175. package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +0 -16
  176. package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +0 -28
  177. package/esm2020/app/components/footer/footer.component.mjs +0 -31
  178. package/esm2020/app/components/head/head-cell/head-cell.component.mjs +0 -29
  179. package/esm2020/app/components/head/head.component.mjs +0 -103
  180. package/esm2020/app/components/list/list.component.mjs +0 -385
  181. package/esm2020/app/components/loader/loader.component.mjs +0 -40
  182. package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +0 -76
  183. package/esm2020/app/components/pagination/pagination.component.mjs +0 -37
  184. package/esm2020/app/components/saved-filters/saved-filters.component.mjs +0 -29
  185. package/esm2020/app/components/status/status.component.mjs +0 -64
  186. package/esm2020/app/directives/cell/cell.directive.mjs +0 -18
  187. package/esm2020/app/directives/column/column.directive.mjs +0 -121
  188. package/esm2020/app/directives/content-init/content-init.directive.mjs +0 -22
  189. package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +0 -330
  190. package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +0 -78
  191. package/esm2020/app/directives/empty-state/empty-state.directive.mjs +0 -13
  192. package/esm2020/app/directives/footer/footer.directive.mjs +0 -18
  193. package/esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +0 -26
  194. package/esm2020/app/directives/header/header.directive.mjs +0 -18
  195. package/esm2020/app/directives/heading/heading.directive.mjs +0 -13
  196. package/esm2020/app/directives/subheading/subheading.directive.mjs +0 -13
  197. package/esm2020/app/interfaces/external-params.interface.mjs +0 -2
  198. package/esm2020/app/interfaces/pagination.interface.mjs +0 -2
  199. package/esm2020/app/models/column-attributes.mjs +0 -132
  200. package/esm2020/app/models/column.model.mjs +0 -164
  201. package/esm2020/app/models/row/base-row.mjs +0 -23
  202. package/esm2020/app/models/row/child-row.mjs +0 -28
  203. package/esm2020/app/models/row/group-footer-row.mjs +0 -21
  204. package/esm2020/app/models/row-action.model.mjs +0 -90
  205. package/esm2020/app/models/row.mjs +0 -89
  206. package/esm2020/app/models/styleConfig.model.mjs +0 -76
  207. package/esm2020/app/services/group-expand-notifier.service.mjs +0 -26
  208. package/fesm2015/firestitch-list.mjs +0 -5801
  209. package/fesm2015/firestitch-list.mjs.map +0 -1
  210. package/fesm2020/firestitch-list.mjs.map +0 -1
@@ -1,188 +1,188 @@
1
- import { ElementRef, TemplateRef } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { ChangeFn, FilterConfig, FsFilterAutoReload, IFilterSavedFiltersConfig } from '@firestitch/filter';
4
- import { SelectionDialog } from '@firestitch/selection';
5
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
6
- import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListAfterInitFn, FsListBeforeFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListTrackByFn } from '../interfaces';
7
- import { ColumnsController } from './columns-controller';
8
- import { DataController } from './data-controller';
9
- import { ExternalParamsController } from './external-params-controller';
10
- import { ActionsController } from './index';
11
- import { PaginationController } from './pagination-controller';
12
- import { PersistanceController } from './persistance-controller';
13
- import { SelectionController } from './selection-controller';
14
- import { SortingController } from './sorting-controller';
15
- export declare class List {
16
- private _el;
17
- private _config;
18
- private _selectionDialog;
19
- private _router;
20
- private _route;
21
- private _persistance;
22
- private _inDialog;
23
- heading: string;
24
- trackBy: string;
25
- subheading: string;
26
- autoFocus: boolean;
27
- rowHoverHighlight: boolean;
28
- rowActionsRaw: any[];
29
- groupActionsRaw: any[];
30
- rowClass: any;
31
- rowEvents: any;
32
- restore: FsListRestoreConfig;
33
- persist: FsListPersitance;
34
- filters: any[];
35
- filterInitCb: ChangeFn;
36
- filterChangeCb: ChangeFn;
37
- savedFilters: IFilterSavedFiltersConfig;
38
- noResults: FsListNoResultsConfig;
39
- emptyState: FsListEmptyStateConfig;
40
- fetchFn: FsListFetchFn;
41
- beforeFetchFn: FsListBeforeFetchFn;
42
- afterFetchFn: FsListAfterFetchFn;
43
- afterContentInit: FsListAfterContentInitFn;
44
- afterInit: FsListAfterInitFn;
45
- style: any;
46
- hasRowActions: any;
47
- paging: PaginationController;
48
- columns: ColumnsController;
49
- actions: ActionsController;
50
- dataController: DataController;
51
- sorting: SortingController;
52
- externalParams: ExternalParamsController;
53
- selection: SelectionController;
54
- filterConfig: FilterConfig;
55
- loading$: BehaviorSubject<boolean>;
56
- fetchComplete$: Subject<{
57
- scrollIntoView?: boolean;
58
- }>;
59
- filtersReady$: Subject<void>;
60
- status: boolean;
61
- chips: boolean;
62
- filterInput: boolean;
63
- queryParam: boolean;
64
- restoreMode: boolean;
65
- autoReload: FsFilterAutoReload;
66
- initialFetch: boolean;
67
- emptyStateEnabled: boolean;
68
- emptyStateTemplate: TemplateRef<any>;
69
- private _destroy$;
70
- private _initialized$;
71
- private _fetch$;
72
- private readonly _filtersQuery;
73
- private readonly _activeFiltersCount$;
74
- private readonly _headerConfig;
75
- private readonly _groupCellConfig;
76
- private readonly _cellConfig;
77
- private readonly _footerConfig;
78
- constructor(_el: ElementRef, _config: FsListConfig, _selectionDialog: SelectionDialog, _router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _inDialog: boolean);
79
- get fetch$(): Observable<FsListFetchSubscription | void>;
80
- get hasSavedFilters(): boolean;
81
- get filtersQuery(): Record<string, any>;
82
- get activeFiltersCount$(): Observable<number>;
83
- get destroy$(): Observable<any>;
84
- get initialized$(): Observable<boolean>;
85
- fetchRemote(query: any): any;
86
- /**
87
- * Transform templates for using
88
- *
89
- * @param templates
90
- */
91
- tranformTemplatesToColumns(templates: any): void;
92
- reload(): Observable<any>;
93
- /**
94
- * Watch page changes
95
- */
96
- subscribe(): void;
97
- getData(trackBy?: FsListTrackByFn): any[];
98
- hasData(trackBy: FsListTrackByFn): boolean;
99
- /**
100
- * Toggle group mode status
101
- *
102
- * @param value
103
- */
104
- groupEnabled(value: boolean): void;
105
- destroy(): void;
106
- /**
107
- * Do initialization of table
108
- *
109
- * @param config
110
- */
111
- private _initialize;
112
- private _initVariables;
113
- /**
114
- * Just init options by default it it wasn't specified
115
- *
116
- * @param config
117
- */
118
- private _initDefaultOptions;
119
- /**
120
- * Init restore row action and append Show Deleted option into filters
121
- */
122
- private _initRestore;
123
- /**
124
- * Init paging
125
- *
126
- * @param pagingConfig
127
- * @param loadMore
128
- */
129
- private _initPaging;
130
- /**
131
- * Split actions by categories
132
- */
133
- private _initActions;
134
- private _initSelection;
135
- private _initializeData;
136
- private _initGroups;
137
- private _initExternalParamsController;
138
- /**
139
- * Subscribe to fetch$ event with debounce
140
- */
141
- private _listenFetch;
142
- private _listenRowsRemove;
143
- /**
144
- * Lister may have originally hidden columns, but visibility of those columns
145
- * can be changed programmaticaly in any time
146
- */
147
- private _listenVisibleColumnChanges;
148
- /**
149
- * Update and watch filter changes
150
- */
151
- private _initFilters;
152
- /**
153
- * Callback when Filter has been initialized
154
- *
155
- * @param filters
156
- */
157
- private _filterInit;
158
- /**
159
- * Callback when Filter has been changed
160
- *
161
- * @param filterQuery
162
- * @param filterSort
163
- */
164
- private _filterChange;
165
- private _checkRestoreFilter;
166
- private _filterSort;
167
- private _completeFetch;
168
- private _completeFetchUpdateSelecton;
169
- /**
170
- * Will do some actions if you removed item and item was last on his own page
171
- *
172
- * Ex: if list has 3 pages and on third page you have only one item. And you just deleted this item.
173
- * You must go to second page, but if it was last page and you can't go back -> just reload
174
- *
175
- * @param deletedCount
176
- */
177
- private _noDataPaginationUpdate;
178
- /**
179
- * Temporary solution, will do auto subscribe if was returned Observable.
180
- *
181
- * TODO: MOVE THIS PEACE OF CODE TO SPECIAL PLACE
182
- *
183
- * @param restoreClickCallback
184
- * @param row
185
- */
186
- private _restoreClick;
187
- private _updateSortingColumns;
188
- }
1
+ import { ElementRef, TemplateRef } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { ChangeFn, FilterConfig, FsFilterAutoReload, IFilterSavedFiltersConfig } from '@firestitch/filter';
4
+ import { SelectionDialog } from '@firestitch/selection';
5
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
6
+ import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListAfterInitFn, FsListBeforeFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListTrackByFn } from '../interfaces';
7
+ import { ColumnsController } from './columns-controller';
8
+ import { DataController } from './data-controller';
9
+ import { ExternalParamsController } from './external-params-controller';
10
+ import { ActionsController } from './index';
11
+ import { PaginationController } from './pagination-controller';
12
+ import { PersistanceController } from './persistance-controller';
13
+ import { SelectionController } from './selection-controller';
14
+ import { SortingController } from './sorting-controller';
15
+ export declare class List {
16
+ private _el;
17
+ private _config;
18
+ private _selectionDialog;
19
+ private _router;
20
+ private _route;
21
+ private _persistance;
22
+ private _inDialog;
23
+ heading: string;
24
+ trackBy: string;
25
+ subheading: string;
26
+ autoFocus: boolean;
27
+ rowHoverHighlight: boolean;
28
+ rowActionsRaw: any[];
29
+ groupActionsRaw: any[];
30
+ rowClass: any;
31
+ rowEvents: any;
32
+ restore: FsListRestoreConfig;
33
+ persist: FsListPersitance;
34
+ filters: any[];
35
+ filterInitCb: ChangeFn;
36
+ filterChangeCb: ChangeFn;
37
+ savedFilters: IFilterSavedFiltersConfig;
38
+ noResults: FsListNoResultsConfig;
39
+ emptyState: FsListEmptyStateConfig;
40
+ fetchFn: FsListFetchFn;
41
+ beforeFetchFn: FsListBeforeFetchFn;
42
+ afterFetchFn: FsListAfterFetchFn;
43
+ afterContentInit: FsListAfterContentInitFn;
44
+ afterInit: FsListAfterInitFn;
45
+ style: any;
46
+ hasRowActions: any;
47
+ paging: PaginationController;
48
+ columns: ColumnsController;
49
+ actions: ActionsController;
50
+ dataController: DataController;
51
+ sorting: SortingController;
52
+ externalParams: ExternalParamsController;
53
+ selection: SelectionController;
54
+ filterConfig: FilterConfig;
55
+ loading$: BehaviorSubject<boolean>;
56
+ fetchComplete$: Subject<{
57
+ scrollIntoView?: boolean;
58
+ }>;
59
+ filtersReady$: Subject<void>;
60
+ status: boolean;
61
+ chips: boolean;
62
+ filterInput: boolean;
63
+ queryParam: boolean;
64
+ restoreMode: boolean;
65
+ autoReload: FsFilterAutoReload;
66
+ initialFetch: boolean;
67
+ emptyStateEnabled: boolean;
68
+ emptyStateTemplate: TemplateRef<any>;
69
+ private _destroy$;
70
+ private _initialized$;
71
+ private _fetch$;
72
+ private readonly _filtersQuery;
73
+ private readonly _activeFiltersCount$;
74
+ private readonly _headerConfig;
75
+ private readonly _groupCellConfig;
76
+ private readonly _cellConfig;
77
+ private readonly _footerConfig;
78
+ constructor(_el: ElementRef, _config: FsListConfig, _selectionDialog: SelectionDialog, _router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _inDialog: boolean);
79
+ get fetch$(): Observable<FsListFetchSubscription | void>;
80
+ get hasSavedFilters(): boolean;
81
+ get filtersQuery(): Record<string, any>;
82
+ get activeFiltersCount$(): Observable<number>;
83
+ get destroy$(): Observable<any>;
84
+ get initialized$(): Observable<boolean>;
85
+ fetchRemote(query: any): any;
86
+ /**
87
+ * Transform templates for using
88
+ *
89
+ * @param templates
90
+ */
91
+ tranformTemplatesToColumns(templates: any): void;
92
+ reload(): Observable<any>;
93
+ /**
94
+ * Watch page changes
95
+ */
96
+ subscribe(): void;
97
+ getData(trackBy?: FsListTrackByFn): any[];
98
+ hasData(trackBy: FsListTrackByFn): boolean;
99
+ /**
100
+ * Toggle group mode status
101
+ *
102
+ * @param value
103
+ */
104
+ groupEnabled(value: boolean): void;
105
+ destroy(): void;
106
+ /**
107
+ * Do initialization of table
108
+ *
109
+ * @param config
110
+ */
111
+ private _initialize;
112
+ private _initVariables;
113
+ /**
114
+ * Just init options by default it it wasn't specified
115
+ *
116
+ * @param config
117
+ */
118
+ private _initDefaultOptions;
119
+ /**
120
+ * Init restore row action and append Show Deleted option into filters
121
+ */
122
+ private _initRestore;
123
+ /**
124
+ * Init paging
125
+ *
126
+ * @param pagingConfig
127
+ * @param loadMore
128
+ */
129
+ private _initPaging;
130
+ /**
131
+ * Split actions by categories
132
+ */
133
+ private _initActions;
134
+ private _initSelection;
135
+ private _initializeData;
136
+ private _initGroups;
137
+ private _initExternalParamsController;
138
+ /**
139
+ * Subscribe to fetch$ event with debounce
140
+ */
141
+ private _listenFetch;
142
+ private _listenRowsRemove;
143
+ /**
144
+ * Lister may have originally hidden columns, but visibility of those columns
145
+ * can be changed programmaticaly in any time
146
+ */
147
+ private _listenVisibleColumnChanges;
148
+ /**
149
+ * Update and watch filter changes
150
+ */
151
+ private _initFilters;
152
+ /**
153
+ * Callback when Filter has been initialized
154
+ *
155
+ * @param filters
156
+ */
157
+ private _filterInit;
158
+ /**
159
+ * Callback when Filter has been changed
160
+ *
161
+ * @param filterQuery
162
+ * @param filterSort
163
+ */
164
+ private _filterChange;
165
+ private _checkRestoreFilter;
166
+ private _filterSort;
167
+ private _completeFetch;
168
+ private _completeFetchUpdateSelecton;
169
+ /**
170
+ * Will do some actions if you removed item and item was last on his own page
171
+ *
172
+ * Ex: if list has 3 pages and on third page you have only one item. And you just deleted this item.
173
+ * You must go to second page, but if it was last page and you can't go back -> just reload
174
+ *
175
+ * @param deletedCount
176
+ */
177
+ private _noDataPaginationUpdate;
178
+ /**
179
+ * Temporary solution, will do auto subscribe if was returned Observable.
180
+ *
181
+ * TODO: MOVE THIS PEACE OF CODE TO SPECIAL PLACE
182
+ *
183
+ * @param restoreClickCallback
184
+ * @param row
185
+ */
186
+ private _restoreClick;
187
+ private _updateSortingColumns;
188
+ }