@firestitch/list 12.13.1 → 12.13.3

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