@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,127 +1,127 @@
1
- import { Location } from '@angular/common';
2
- import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { MatDialog, MatDialogRef } from '@angular/material/dialog';
5
- import { DrawerRef } from '@firestitch/drawer';
6
- import { FilterComponent } from '@firestitch/filter';
7
- import { SelectionDialog } from '@firestitch/selection';
8
- import { Observable } from 'rxjs';
9
- import { List } from '../../classes/list-controller';
10
- import { PersistanceController } from '../../classes/persistance-controller';
11
- import { ReorderController } from '../../classes/reorder-controller';
12
- import { FsListColumnDirective } from '../../directives/column/column.directive';
13
- import { FsListAbstractRow, FsListAction, FsListConfig, FsListSelectionConfig, FsListTrackByFn, FsListTrackByTargetRowFn } from '../../interfaces';
14
- import { IPaginationState } from '../../interfaces/pagination-state.interface';
15
- import { GroupExpandNotifierService } from '../../services/group-expand-notifier.service';
16
- import { FsBodyComponent } from '../body/body.component';
17
- import * as i0 from "@angular/core";
18
- export declare class FsListComponent implements OnInit, OnDestroy, AfterContentInit {
19
- reorderController: ReorderController;
20
- private _defaultOptions;
21
- private _dialogRef;
22
- private _drawerRef;
23
- private _el;
24
- private _selectionDialog;
25
- private _dialog;
26
- private _cdRef;
27
- private _groupExpandNotifier;
28
- private _router;
29
- private _route;
30
- private _persistance;
31
- private _location;
32
- classFsList: boolean;
33
- rowHoverHighlight: boolean;
34
- set config(config: FsListConfig);
35
- loaderLines: number;
36
- filtersReady: EventEmitter<void>;
37
- headingTemplate: TemplateRef<any>;
38
- headingContainerTemplate: TemplateRef<any>;
39
- subheadingTemplate: TemplateRef<any>;
40
- body: FsBodyComponent;
41
- list: List;
42
- keywordVisible: boolean;
43
- rowRemoved: EventEmitter<any>;
44
- firstLoad: boolean;
45
- private _listColumnDirectives;
46
- private _filterRef;
47
- private _filterParamsReady;
48
- private _inDialog;
49
- private _destroy;
50
- set filterReference(component: any);
51
- /**
52
- * Set columns to config
53
- * Create Column Model instances
54
- */
55
- set columnTemplates(listColumnDirectives: QueryList<FsListColumnDirective>);
56
- private set _emptyStateTemplate(value);
57
- constructor(reorderController: ReorderController, _defaultOptions: FsListConfig, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _el: ElementRef, _selectionDialog: SelectionDialog, _dialog: MatDialog, _cdRef: ChangeDetectorRef, _groupExpandNotifier: GroupExpandNotifierService, _router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _location: Location);
58
- /**
59
- * Return reference for filter
60
- */
61
- get filterRef(): FilterComponent;
62
- set groupEnabled(value: boolean);
63
- get groupEnabled(): boolean;
64
- get hasFilterKeyword(): boolean;
65
- get hasStatus(): boolean;
66
- get paginatorVisible(): boolean;
67
- get filtersQuery(): Record<string, unknown>;
68
- get pagingState(): IPaginationState;
69
- ngAfterContentInit(): void;
70
- ngOnInit(): void;
71
- ngOnDestroy(): void;
72
- nextPage(): void;
73
- prevPage(): void;
74
- firstPage(): void;
75
- lastPage(): void;
76
- reload(): Observable<any>;
77
- getData(trackBy?: FsListTrackByFn): any[];
78
- hasData(trackBy: FsListTrackByFn): boolean;
79
- updateData(rows: FsListAbstractRow | FsListAbstractRow[], trackBy?: FsListTrackByTargetRowFn): boolean;
80
- replaceRow(row: FsListAbstractRow, trackBy?: FsListTrackByTargetRowFn): boolean;
81
- updateSelectionConfig(config: FsListSelectionConfig): void;
82
- resetSelectionActions(): void;
83
- enableSelection(): void;
84
- disableSelection(): void;
85
- removeData(data: FsListAbstractRow | FsListAbstractRow[] | FsListTrackByTargetRowFn): boolean;
86
- setHeading(heading: string): void;
87
- setSubheading(subheading: string): void;
88
- reorderStart(): void;
89
- reorderFinish(): void;
90
- setActions(actions: FsListAction[]): void;
91
- filterReady(): void;
92
- /**
93
- * Update visibility for specific column
94
- */
95
- columnVisibility(name: string, show: boolean): void;
96
- /**
97
- * Update visibility for list of specific columns
98
- */
99
- columnsVisibility(columns: {
100
- name: string;
101
- show: boolean;
102
- }[]): void;
103
- private _emitFiltersReadyEvent;
104
- /**
105
- * Initialize config for list
106
- *
107
- * @param config
108
- */
109
- private _initWithConfig;
110
- /**
111
- * Find action with customize flag and re-declare click function for CustomizeColsDialog
112
- *
113
- * @param actions
114
- */
115
- private _updateCustomizeAction;
116
- /**
117
- * Update sorting in filter
118
- */
119
- private _listenSortingChange;
120
- private _subscribeToRemoveRow;
121
- private _subscribeToGroupExpandStatusChange;
122
- private _waitFirstLoad;
123
- private _configMergeCustomizer;
124
- private _restorePersistance;
125
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListComponent, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null, null, null, null, null, null, null]>;
126
- static ɵcmp: i0.ɵɵComponentDeclaration<FsListComponent, "fs-list", never, { "config": "config"; "loaderLines": "loaderLines"; }, { "filtersReady": "filtersReady"; }, ["headingTemplate", "headingContainerTemplate", "subheadingTemplate", "_emptyStateTemplate", "columnTemplates"], ["[fs-list-content]"], false>;
127
- }
1
+ import { Location } from '@angular/common';
2
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
3
+ import { ActivatedRoute, Router } from '@angular/router';
4
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
5
+ import { DrawerRef } from '@firestitch/drawer';
6
+ import { FilterComponent } from '@firestitch/filter';
7
+ import { SelectionDialog } from '@firestitch/selection';
8
+ import { Observable } from 'rxjs';
9
+ import { List } from '../../classes/list-controller';
10
+ import { PersistanceController } from '../../classes/persistance-controller';
11
+ import { ReorderController } from '../../classes/reorder-controller';
12
+ import { FsListColumnDirective } from '../../directives/column/column.directive';
13
+ import { FsListAbstractRow, FsListAction, FsListConfig, FsListSelectionConfig, FsListTrackByFn, FsListTrackByTargetRowFn } from '../../interfaces';
14
+ import { IPaginationState } from '../../interfaces/pagination-state.interface';
15
+ import { GroupExpandNotifierService } from '../../services/group-expand-notifier.service';
16
+ import { FsBodyComponent } from '../body/body.component';
17
+ import * as i0 from "@angular/core";
18
+ export declare class FsListComponent implements OnInit, OnDestroy, AfterContentInit {
19
+ reorderController: ReorderController;
20
+ private _defaultOptions;
21
+ private _dialogRef;
22
+ private _drawerRef;
23
+ private _el;
24
+ private _selectionDialog;
25
+ private _dialog;
26
+ private _cdRef;
27
+ private _groupExpandNotifier;
28
+ private _router;
29
+ private _route;
30
+ private _persistance;
31
+ private _location;
32
+ classFsList: boolean;
33
+ rowHoverHighlight: boolean;
34
+ set config(config: FsListConfig);
35
+ loaderLines: number;
36
+ filtersReady: EventEmitter<void>;
37
+ headingTemplate: TemplateRef<any>;
38
+ headingContainerTemplate: TemplateRef<any>;
39
+ subheadingTemplate: TemplateRef<any>;
40
+ body: FsBodyComponent;
41
+ list: List;
42
+ keywordVisible: boolean;
43
+ rowRemoved: EventEmitter<any>;
44
+ firstLoad: boolean;
45
+ private _listColumnDirectives;
46
+ private _filterRef;
47
+ private _filterParamsReady;
48
+ private _inDialog;
49
+ private _destroy;
50
+ set filterReference(component: any);
51
+ /**
52
+ * Set columns to config
53
+ * Create Column Model instances
54
+ */
55
+ set columnTemplates(listColumnDirectives: QueryList<FsListColumnDirective>);
56
+ private set _emptyStateTemplate(value);
57
+ constructor(reorderController: ReorderController, _defaultOptions: FsListConfig, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _el: ElementRef, _selectionDialog: SelectionDialog, _dialog: MatDialog, _cdRef: ChangeDetectorRef, _groupExpandNotifier: GroupExpandNotifierService, _router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _location: Location);
58
+ /**
59
+ * Return reference for filter
60
+ */
61
+ get filterRef(): FilterComponent;
62
+ set groupEnabled(value: boolean);
63
+ get groupEnabled(): boolean;
64
+ get hasFilterKeyword(): boolean;
65
+ get hasStatus(): boolean;
66
+ get paginatorVisible(): boolean;
67
+ get filtersQuery(): Record<string, unknown>;
68
+ get pagingState(): IPaginationState;
69
+ ngAfterContentInit(): void;
70
+ ngOnInit(): void;
71
+ ngOnDestroy(): void;
72
+ nextPage(): void;
73
+ prevPage(): void;
74
+ firstPage(): void;
75
+ lastPage(): void;
76
+ reload(): Observable<any>;
77
+ getData(trackBy?: FsListTrackByFn): any[];
78
+ hasData(trackBy: FsListTrackByFn): boolean;
79
+ updateData(rows: FsListAbstractRow | FsListAbstractRow[], trackBy?: FsListTrackByTargetRowFn): boolean;
80
+ replaceRow(row: FsListAbstractRow, trackBy?: FsListTrackByTargetRowFn): boolean;
81
+ updateSelectionConfig(config: FsListSelectionConfig): void;
82
+ resetSelectionActions(): void;
83
+ enableSelection(): void;
84
+ disableSelection(): void;
85
+ removeData(data: FsListAbstractRow | FsListAbstractRow[] | FsListTrackByTargetRowFn): boolean;
86
+ setHeading(heading: string): void;
87
+ setSubheading(subheading: string): void;
88
+ reorderStart(): void;
89
+ reorderFinish(): void;
90
+ setActions(actions: FsListAction[]): void;
91
+ filterReady(): void;
92
+ /**
93
+ * Update visibility for specific column
94
+ */
95
+ columnVisibility(name: string, show: boolean): void;
96
+ /**
97
+ * Update visibility for list of specific columns
98
+ */
99
+ columnsVisibility(columns: {
100
+ name: string;
101
+ show: boolean;
102
+ }[]): void;
103
+ private _emitFiltersReadyEvent;
104
+ /**
105
+ * Initialize config for list
106
+ *
107
+ * @param config
108
+ */
109
+ private _initWithConfig;
110
+ /**
111
+ * Find action with customize flag and re-declare click function for CustomizeColsDialog
112
+ *
113
+ * @param actions
114
+ */
115
+ private _updateCustomizeAction;
116
+ /**
117
+ * Update sorting in filter
118
+ */
119
+ private _listenSortingChange;
120
+ private _subscribeToRemoveRow;
121
+ private _subscribeToGroupExpandStatusChange;
122
+ private _waitFirstLoad;
123
+ private _configMergeCustomizer;
124
+ private _restorePersistance;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListComponent, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null, null, null, null, null, null, null]>;
126
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsListComponent, "fs-list", never, { "config": { "alias": "config"; "required": false; }; "loaderLines": { "alias": "loaderLines"; "required": false; }; }, { "filtersReady": "filtersReady"; }, ["headingTemplate", "headingContainerTemplate", "subheadingTemplate", "_emptyStateTemplate", "columnTemplates"], ["[fs-list-content]"], false, never>;
127
+ }
@@ -1,14 +1,14 @@
1
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FsListLoaderComponent implements OnInit, OnChanges {
4
- placeholderWidths: any[][];
5
- widths: any[];
6
- columns: any;
7
- loaderLines: number;
8
- cols: any[];
9
- rows: any[];
10
- ngOnInit(): void;
11
- ngOnChanges(changes: SimpleChanges): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListLoaderComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<FsListLoaderComponent, "fs-list-loader", never, { "columns": "columns"; "loaderLines": "loaderLines"; }, {}, never, never, false>;
14
- }
1
+ import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FsListLoaderComponent implements OnInit, OnChanges {
4
+ placeholderWidths: any[][];
5
+ widths: any[];
6
+ columns: any;
7
+ loaderLines: number;
8
+ cols: any[];
9
+ rows: any[];
10
+ ngOnInit(): void;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListLoaderComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsListLoaderComponent, "fs-list-loader", never, { "columns": { "alias": "columns"; "required": false; }; "loaderLines": { "alias": "loaderLines"; "required": false; }; }, {}, never, never, false, never>;
14
+ }
@@ -1,13 +1,13 @@
1
- import { ExternalParamsController } from '@firestitch/filter';
2
- import { FsListConfig } from '../../interfaces/listconfig.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class FsListManageSavedFiltersComponent {
5
- private _externalParams;
6
- config: FsListConfig;
7
- private _reorderReady;
8
- constructor(_externalParams: ExternalParamsController);
9
- private get savedFiltersController();
10
- private _initList;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListManageSavedFiltersComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<FsListManageSavedFiltersComponent, "ng-component", never, {}, {}, never, never, false>;
13
- }
1
+ import { ExternalParamsController } from '@firestitch/filter';
2
+ import { FsListConfig } from '../../interfaces/listconfig.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FsListManageSavedFiltersComponent {
5
+ private _externalParams;
6
+ config: FsListConfig;
7
+ private _reorderReady;
8
+ constructor(_externalParams: ExternalParamsController);
9
+ private get savedFiltersController();
10
+ private _initList;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListManageSavedFiltersComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsListManageSavedFiltersComponent, "ng-component", never, {}, {}, never, never, false, never>;
13
+ }
@@ -1,14 +1,14 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { PaginationController } from '../../classes/pagination-controller';
3
- import * as i0 from "@angular/core";
4
- export declare class FsPaginationComponent implements OnInit, OnDestroy {
5
- private _cdRef;
6
- pagination: PaginationController;
7
- rows: any;
8
- private _destroy$;
9
- constructor(_cdRef: ChangeDetectorRef);
10
- ngOnInit(): void;
11
- ngOnDestroy(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<FsPaginationComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<FsPaginationComponent, "fs-list-pagination", never, { "pagination": "pagination"; "rows": "rows"; }, {}, never, never, false>;
14
- }
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { PaginationController } from '../../classes/pagination-controller';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FsPaginationComponent implements OnInit, OnDestroy {
5
+ private _cdRef;
6
+ pagination: PaginationController;
7
+ rows: any;
8
+ private _destroy$;
9
+ constructor(_cdRef: ChangeDetectorRef);
10
+ ngOnInit(): void;
11
+ ngOnDestroy(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsPaginationComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsPaginationComponent, "fs-list-pagination", never, { "pagination": { "alias": "pagination"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, never, false, never>;
14
+ }
@@ -1,15 +1,15 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
3
- import { ExternalParamsController } from '@firestitch/filter';
4
- import { Observable } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare class FsListSavedFiltersComponent {
7
- private _dialog;
8
- private _externalParams;
9
- private _vcRef;
10
- constructor(_dialog: MatDialog, _externalParams: ExternalParamsController, _vcRef: ViewContainerRef);
11
- get savedFiltersEnabled$(): Observable<boolean>;
12
- showManageDialog(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListSavedFiltersComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<FsListSavedFiltersComponent, "fs-list-saved-filters", never, {}, {}, never, never, false>;
15
- }
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { ExternalParamsController } from '@firestitch/filter';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FsListSavedFiltersComponent {
7
+ private _dialog;
8
+ private _externalParams;
9
+ private _vcRef;
10
+ constructor(_dialog: MatDialog, _externalParams: ExternalParamsController, _vcRef: ViewContainerRef);
11
+ get savedFiltersEnabled$(): Observable<boolean>;
12
+ showManageDialog(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListSavedFiltersComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsListSavedFiltersComponent, "fs-list-saved-filters", never, {}, {}, never, never, false, never>;
15
+ }
@@ -1,20 +1,20 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { PaginationController } from '../../classes/pagination-controller';
3
- import { SortingController } from '../../classes/sorting-controller';
4
- import * as i0 from "@angular/core";
5
- export declare class FsStatusComponent implements OnInit, OnDestroy {
6
- private _cdRef;
7
- paging: PaginationController;
8
- sorting: SortingController;
9
- rows: any;
10
- firstLoad: boolean;
11
- private _destroy$;
12
- constructor(_cdRef: ChangeDetectorRef);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- toggleDirection(): void;
16
- setSortableColumn(column: any): void;
17
- setLimit(limit: any): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<FsStatusComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<FsStatusComponent, "fs-list-status", never, { "paging": "paging"; "sorting": "sorting"; "rows": "rows"; "firstLoad": "firstLoad"; }, {}, never, never, false>;
20
- }
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { PaginationController } from '../../classes/pagination-controller';
3
+ import { SortingController } from '../../classes/sorting-controller';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsStatusComponent implements OnInit, OnDestroy {
6
+ private _cdRef;
7
+ paging: PaginationController;
8
+ sorting: SortingController;
9
+ rows: any;
10
+ firstLoad: boolean;
11
+ private _destroy$;
12
+ constructor(_cdRef: ChangeDetectorRef);
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ toggleDirection(): void;
16
+ setSortableColumn(column: any): void;
17
+ setLimit(limit: any): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsStatusComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsStatusComponent, "fs-list-status", never, { "paging": { "alias": "paging"; "required": false; }; "sorting": { "alias": "sorting"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "firstLoad": { "alias": "firstLoad"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- export declare class FsListCellDirective {
3
- colspan: any;
4
- align: string;
5
- className: string | string[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListCellDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<FsListCellDirective, "[fs-list-cell]", never, { "colspan": "colspan"; "align": "align"; "className": "class"; }, {}, never, never, false>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class FsListCellDirective {
3
+ colspan: any;
4
+ align: string;
5
+ className: string | string[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListCellDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FsListCellDirective, "[fs-list-cell]", never, { "colspan": { "alias": "colspan"; "required": false; }; "align": { "alias": "align"; "required": false; }; "className": { "alias": "class"; "required": false; }; }, {}, never, never, false, never>;
8
+ }
@@ -1,37 +1,37 @@
1
- import { QueryList, TemplateRef } from '@angular/core';
2
- import { CellConfig } from '../../interfaces';
3
- import { ColumnAttributes } from '../../models/column-attributes';
4
- import { FsListGroupExpandTriggerDirective } from '../group-expand-trigger/group-expand-trigger.directive';
5
- import * as i0 from "@angular/core";
6
- export declare class FsListColumnDirective {
7
- headerTemplate: TemplateRef<any>;
8
- headerConfigs: CellConfig;
9
- groupHeaderTemplate: TemplateRef<any>;
10
- groupHeaderConfigs: CellConfig;
11
- groupFooterTemplate: TemplateRef<any>;
12
- groupFooterConfigs: CellConfig;
13
- expandTrigger: QueryList<FsListGroupExpandTriggerDirective>;
14
- cellTemplate: TemplateRef<any>;
15
- cellConfigs: CellConfig;
16
- footerTemplate: TemplateRef<any>;
17
- footerConfigs: CellConfig;
18
- private readonly _columnAttributes;
19
- constructor();
20
- get attributes(): ColumnAttributes;
21
- set visible(value: boolean);
22
- set title(value: string);
23
- set name(value: string);
24
- set customize(value: boolean);
25
- set sortable(value: boolean);
26
- set sortableDefault(value: boolean);
27
- set sortableDirection(value: 'asc' | 'desc');
28
- /**
29
- * @deprecated
30
- */
31
- set direction(value: 'asc' | 'desc');
32
- set align(value: string);
33
- set width(value: string);
34
- set className(value: string | string[]);
35
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListColumnDirective, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<FsListColumnDirective, "fs-list-column", never, { "visible": "show"; "title": "title"; "name": "name"; "customize": "customize"; "sortable": "sortable"; "sortableDefault": "sortableDefault"; "sortableDirection": "sortableDirection"; "direction": "direction"; "align": "align"; "width": "width"; "className": "class"; }, {}, ["headerTemplate", "headerConfigs", "groupHeaderTemplate", "groupHeaderConfigs", "groupFooterTemplate", "groupFooterConfigs", "cellTemplate", "cellConfigs", "footerTemplate", "footerConfigs", "expandTrigger"], never, false>;
37
- }
1
+ import { QueryList, TemplateRef } from '@angular/core';
2
+ import { CellConfig } from '../../interfaces';
3
+ import { ColumnAttributes } from '../../models/column-attributes';
4
+ import { FsListGroupExpandTriggerDirective } from '../group-expand-trigger/group-expand-trigger.directive';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FsListColumnDirective {
7
+ headerTemplate: TemplateRef<any>;
8
+ headerConfigs: CellConfig;
9
+ groupHeaderTemplate: TemplateRef<any>;
10
+ groupHeaderConfigs: CellConfig;
11
+ groupFooterTemplate: TemplateRef<any>;
12
+ groupFooterConfigs: CellConfig;
13
+ expandTrigger: QueryList<FsListGroupExpandTriggerDirective>;
14
+ cellTemplate: TemplateRef<any>;
15
+ cellConfigs: CellConfig;
16
+ footerTemplate: TemplateRef<any>;
17
+ footerConfigs: CellConfig;
18
+ private readonly _columnAttributes;
19
+ constructor();
20
+ get attributes(): ColumnAttributes;
21
+ set visible(value: boolean);
22
+ set title(value: string);
23
+ set name(value: string);
24
+ set customize(value: boolean);
25
+ set sortable(value: boolean);
26
+ set sortableDefault(value: boolean);
27
+ set sortableDirection(value: 'asc' | 'desc');
28
+ /**
29
+ * @deprecated
30
+ */
31
+ set direction(value: 'asc' | 'desc');
32
+ set align(value: string);
33
+ set width(value: string);
34
+ set className(value: string | string[]);
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListColumnDirective, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FsListColumnDirective, "fs-list-column", never, { "visible": { "alias": "show"; "required": false; }; "title": { "alias": "title"; "required": false; }; "name": { "alias": "name"; "required": false; }; "customize": { "alias": "customize"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sortableDefault": { "alias": "sortableDefault"; "required": false; }; "sortableDirection": { "alias": "sortableDirection"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "align": { "alias": "align"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "class"; "required": false; }; }, {}, ["headerTemplate", "headerConfigs", "groupHeaderTemplate", "groupHeaderConfigs", "groupFooterTemplate", "groupFooterConfigs", "cellTemplate", "cellConfigs", "footerTemplate", "footerConfigs", "expandTrigger"], never, false, never>;
37
+ }
@@ -1,5 +1,5 @@
1
- import * as i0 from "@angular/core";
2
- export declare class FsListContentDirective {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListContentDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<FsListContentDirective, "[fs-list-content]", never, {}, {}, never, never, false>;
5
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class FsListContentDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListContentDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FsListContentDirective, "[fs-list-content]", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,9 +1,9 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FsListContentInitDirective implements AfterViewInit {
4
- contentInitCallback: Function;
5
- constructor();
6
- ngAfterViewInit(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FsListContentInitDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<FsListContentInitDirective, "[fsListContentInit]", never, { "contentInitCallback": "fsListContentInit"; }, {}, never, never, false>;
9
- }
1
+ import { AfterViewInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FsListContentInitDirective implements AfterViewInit {
4
+ contentInitCallback: Function;
5
+ constructor();
6
+ ngAfterViewInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsListContentInitDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FsListContentInitDirective, "[fsListContentInit]", never, { "contentInitCallback": { "alias": "fsListContentInit"; "required": false; }; }, {}, never, never, false, never>;
9
+ }