@firestitch/list 13.0.4 → 13.0.5

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 (193) 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 +32 -32
  5. package/app/classes/index.d.ts +2 -2
  6. package/app/classes/list-controller.d.ts +191 -191
  7. package/app/classes/pagination-controller.d.ts +198 -198
  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 +155 -155
  11. package/app/classes/sorting-controller.d.ts +65 -65
  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 +14 -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 +128 -128
  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 +37 -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 +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/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 +4 -4
  58. package/app/interfaces/listconfig.interface.d.ts +247 -247
  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 -60
  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/{esm2015/app/classes/actions-controller.js → esm2020/app/classes/actions-controller.mjs} +55 -55
  77. package/{esm2015/app/classes/columns-controller.js → esm2020/app/classes/columns-controller.mjs} +205 -205
  78. package/esm2020/app/classes/data-controller.mjs +367 -0
  79. package/esm2020/app/classes/external-params-controller.mjs +147 -0
  80. package/{esm2015/app/classes/index.js → esm2020/app/classes/index.mjs} +3 -3
  81. package/esm2020/app/classes/list-controller.mjs +752 -0
  82. package/{esm2015/app/classes/pagination-controller.js → esm2020/app/classes/pagination-controller.mjs} +478 -479
  83. package/{esm2015/app/classes/persistance-controller.js → esm2020/app/classes/persistance-controller.mjs} +19 -19
  84. package/esm2020/app/classes/reorder-controller.mjs +182 -0
  85. package/esm2020/app/classes/selection-controller.mjs +468 -0
  86. package/{esm2015/app/classes/sorting-controller.js → esm2020/app/classes/sorting-controller.mjs} +183 -183
  87. package/esm2020/app/components/body/body.component.mjs +64 -0
  88. package/esm2020/app/components/body/row/actions/actions.component.mjs +97 -0
  89. package/esm2020/app/components/body/row/cell/cell.component.mjs +107 -0
  90. package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +33 -0
  91. package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +46 -0
  92. package/esm2020/app/components/body/row/row.component.mjs +323 -0
  93. package/esm2020/app/components/customize-cols/customize-cols.component.mjs +68 -0
  94. package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -0
  95. package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +28 -0
  96. package/esm2020/app/components/footer/footer.component.mjs +31 -0
  97. package/esm2020/app/components/head/head-cell/head-cell.component.mjs +29 -0
  98. package/esm2020/app/components/head/head.component.mjs +103 -0
  99. package/esm2020/app/components/list/list.component.mjs +391 -0
  100. package/esm2020/app/components/loader/loader.component.mjs +40 -0
  101. package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +76 -0
  102. package/esm2020/app/components/pagination/pagination.component.mjs +37 -0
  103. package/esm2020/app/components/saved-filters/saved-filters.component.mjs +29 -0
  104. package/esm2020/app/components/status/status.component.mjs +66 -0
  105. package/{esm2015/app/directives/cell/cell.directive.js → esm2020/app/directives/cell/cell.directive.mjs} +18 -18
  106. package/esm2020/app/directives/column/column.directive.mjs +121 -0
  107. package/{esm2015/app/directives/content/content.directive.js → esm2020/app/directives/content/content.directive.mjs} +13 -13
  108. package/{esm2015/app/directives/content-init/content-init.directive.js → esm2020/app/directives/content-init/content-init.directive.mjs} +22 -22
  109. package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +328 -0
  110. package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +78 -0
  111. package/{esm2015/app/directives/empty-state/empty-state.directive.js → esm2020/app/directives/empty-state/empty-state.directive.mjs} +13 -13
  112. package/{esm2015/app/directives/footer/footer.directive.js → esm2020/app/directives/footer/footer.directive.mjs} +18 -18
  113. package/{esm2015/app/directives/group-expand-trigger/group-expand-trigger.directive.js → esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs} +26 -26
  114. package/{esm2015/app/directives/group-footer/group-footer.directive.js → esm2020/app/directives/group-footer/group-footer.directive.mjs} +14 -14
  115. package/{esm2015/app/directives/group-header/group-header.directive.js → esm2020/app/directives/group-header/group-header.directive.mjs} +14 -14
  116. package/{esm2015/app/directives/header/header.directive.js → esm2020/app/directives/header/header.directive.mjs} +18 -18
  117. package/{esm2015/app/directives/heading/heading.directive.js → esm2020/app/directives/heading/heading.directive.mjs} +13 -13
  118. package/{esm2015/app/directives/heading-container/heading-container.directive.js → esm2020/app/directives/heading-container/heading-container.directive.mjs} +13 -13
  119. package/{esm2015/app/directives/index.js → esm2020/app/directives/index.mjs} +4 -4
  120. package/{esm2015/app/directives/subheading/subheading.directive.js → esm2020/app/directives/subheading/subheading.directive.mjs} +13 -13
  121. package/{esm2015/app/enums/button-type.enum.js → esm2020/app/enums/button-type.enum.mjs} +9 -9
  122. package/{esm2015/app/enums/page-change-type.enum.js → esm2020/app/enums/page-change-type.enum.mjs} +6 -6
  123. package/{esm2015/app/enums/pagination-strategy.enum.js → esm2020/app/enums/pagination-strategy.enum.mjs} +7 -7
  124. package/{esm2015/app/enums/row-type.enum.js → esm2020/app/enums/row-type.enum.mjs} +7 -7
  125. package/{esm2015/app/enums/state.enum.js → esm2020/app/enums/state.enum.mjs} +11 -11
  126. package/{esm2015/app/fs-list.module.js → esm2020/app/fs-list.module.mjs} +246 -246
  127. package/{esm2015/app/fs-list.providers.js → esm2020/app/fs-list.providers.mjs} +4 -4
  128. package/{esm2015/app/interfaces/cellconfig.interface.js → esm2020/app/interfaces/cellconfig.interface.mjs} +2 -2
  129. package/{esm2015/app/interfaces/column-config.interface.js → esm2020/app/interfaces/column-config.interface.mjs} +1 -1
  130. package/{esm2015/app/interfaces/draggable-list.interface.js → esm2020/app/interfaces/draggable-list.interface.mjs} +2 -2
  131. package/esm2020/app/interfaces/external-params.interface.mjs +2 -0
  132. package/{esm2015/app/interfaces/index.js → esm2020/app/interfaces/index.mjs} +5 -5
  133. package/{esm2015/app/interfaces/listconfig.interface.js → esm2020/app/interfaces/listconfig.interface.mjs} +1 -1
  134. package/{esm2015/app/interfaces/pagination-state.interface.js → esm2020/app/interfaces/pagination-state.interface.mjs} +1 -1
  135. package/esm2020/app/interfaces/pagination.interface.mjs +2 -0
  136. package/{esm2015/app/interfaces/sorting-change-event.interface.js → esm2020/app/interfaces/sorting-change-event.interface.mjs} +2 -2
  137. package/{esm2015/app/models/column-async-attribute.js → esm2020/app/models/column-async-attribute.mjs} +13 -13
  138. package/esm2020/app/models/column-attributes.mjs +132 -0
  139. package/esm2020/app/models/column.model.mjs +164 -0
  140. package/{esm2015/app/models/row/base-row.js → esm2020/app/models/row/base-row.mjs} +23 -23
  141. package/{esm2015/app/models/row/child-row.js → esm2020/app/models/row/child-row.mjs} +28 -28
  142. package/{esm2015/app/models/row/group-footer-row.js → esm2020/app/models/row/group-footer-row.mjs} +20 -20
  143. package/{esm2015/app/models/row/group-row.js → esm2020/app/models/row/group-row.mjs} +44 -44
  144. package/{esm2015/app/models/row/simple-row.js → esm2020/app/models/row/simple-row.mjs} +10 -10
  145. package/esm2020/app/models/row-action.model.mjs +90 -0
  146. package/{esm2015/app/models/row.js → esm2020/app/models/row.mjs} +88 -88
  147. package/{esm2015/app/models/styleConfig.model.js → esm2020/app/models/styleConfig.model.mjs} +75 -75
  148. package/{esm2015/app/pipes/action-label.js → esm2020/app/pipes/action-label.mjs} +17 -17
  149. package/{esm2015/app/pipes/index.js → esm2020/app/pipes/index.mjs} +1 -1
  150. package/{esm2015/app/services/group-expand-notifier.service.js → esm2020/app/services/group-expand-notifier.service.mjs} +26 -26
  151. package/{esm2015/firestitch-list.js → esm2020/firestitch-list.mjs} +4 -4
  152. package/{esm2015/public_api.js → esm2020/public_api.mjs} +45 -45
  153. package/fesm2015/{firestitch-list.js → firestitch-list.mjs} +5739 -5805
  154. package/fesm2015/firestitch-list.mjs.map +1 -0
  155. package/fesm2020/firestitch-list.mjs +5871 -0
  156. package/fesm2020/firestitch-list.mjs.map +1 -0
  157. package/firestitch-list.d.ts +5 -5
  158. package/package.json +20 -7
  159. package/public_api.d.ts +41 -41
  160. package/bundles/firestitch-list.umd.js +0 -7222
  161. package/bundles/firestitch-list.umd.js.map +0 -1
  162. package/esm2015/app/classes/data-controller.js +0 -365
  163. package/esm2015/app/classes/external-params-controller.js +0 -147
  164. package/esm2015/app/classes/list-controller.js +0 -754
  165. package/esm2015/app/classes/reorder-controller.js +0 -183
  166. package/esm2015/app/classes/selection-controller.js +0 -468
  167. package/esm2015/app/components/body/body.component.js +0 -69
  168. package/esm2015/app/components/body/row/actions/actions.component.js +0 -102
  169. package/esm2015/app/components/body/row/cell/cell.component.js +0 -113
  170. package/esm2015/app/components/body/row/inline-action/inline-action.component.js +0 -37
  171. package/esm2015/app/components/body/row/menu-action/menu-action.component.js +0 -50
  172. package/esm2015/app/components/body/row/row.component.js +0 -330
  173. package/esm2015/app/components/customize-cols/customize-cols.component.js +0 -72
  174. package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +0 -20
  175. package/esm2015/app/components/footer/footer-row/footer-row.component.js +0 -33
  176. package/esm2015/app/components/footer/footer.component.js +0 -36
  177. package/esm2015/app/components/head/head-cell/head-cell.component.js +0 -34
  178. package/esm2015/app/components/head/head.component.js +0 -108
  179. package/esm2015/app/components/list/list.component.js +0 -397
  180. package/esm2015/app/components/loader/loader.component.js +0 -45
  181. package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +0 -79
  182. package/esm2015/app/components/pagination/pagination.component.js +0 -42
  183. package/esm2015/app/components/saved-filters/saved-filters.component.js +0 -32
  184. package/esm2015/app/components/status/status.component.js +0 -72
  185. package/esm2015/app/directives/column/column.directive.js +0 -112
  186. package/esm2015/app/directives/draggable-list/draggable-list.directive.js +0 -330
  187. package/esm2015/app/directives/draggable-row/draggable-row.directive.js +0 -79
  188. package/esm2015/app/interfaces/external-params.interface.js +0 -2
  189. package/esm2015/app/interfaces/pagination.interface.js +0 -2
  190. package/esm2015/app/models/column-attributes.js +0 -131
  191. package/esm2015/app/models/column.model.js +0 -163
  192. package/esm2015/app/models/row-action.model.js +0 -90
  193. package/fesm2015/firestitch-list.js.map +0 -1
@@ -1,155 +1,155 @@
1
- import { SelectionDialog } from '@firestitch/selection';
2
- import { Observable } from 'rxjs';
3
- import { FsListSelectionConfig } from '../interfaces';
4
- import { Row } from '../models/row';
5
- export declare enum SelectionChangeType {
6
- AllVisibleSelectionChange = "AllVisibleSelectionChange",
7
- RowSelectionChange = "RowSelectionChange",
8
- SelectedAll = "SelectedAll"
9
- }
10
- export declare class SelectionController {
11
- private _trackBy;
12
- private _selectionDialog;
13
- actions: any[];
14
- selectAll: boolean;
15
- selectionChangedFn: any;
16
- actionSelectedFn: any;
17
- allSelectedFn: any;
18
- cancelledFn: any;
19
- selectedRows: Map<any, any>;
20
- selectedGroups: Map<any, any>;
21
- private _selectionDialogRef;
22
- private _getRows;
23
- private _selectionChange;
24
- private _selectedAllVisible;
25
- private _selectedAll;
26
- private _selectedRecords;
27
- private _visibleRecordsCount;
28
- private _totalRecordsCount;
29
- private _destroy$;
30
- private _disabled$;
31
- constructor(config: FsListSelectionConfig, _trackBy: string, _selectionDialog: SelectionDialog);
32
- get disabled(): boolean;
33
- get disabled$(): Observable<boolean>;
34
- get selectedAll(): boolean;
35
- get selectionChange$(): Observable<{
36
- type: SelectionChangeType;
37
- payload: any;
38
- }>;
39
- setRowsCallback(data: () => any[]): void;
40
- /**
41
- * Trigger when row was selected
42
- *
43
- * @param row
44
- * @param checked
45
- */
46
- rowSelectionChange(row: Row, checked: boolean): void;
47
- /**
48
- * Do check or uncheck of visible rows
49
- *
50
- * @param checked
51
- */
52
- selectAllVisibleRows(checked: any): void;
53
- isRowSelected(rowData: any): boolean;
54
- isGroupSelected(row: any): boolean | 'indeterminate';
55
- /**
56
- * Open selection dialog and create reference
57
- */
58
- openDialog(): void;
59
- /**
60
- * Update count of visible elements
61
- *
62
- * @param count
63
- */
64
- updateVisibleRecordsCount(count: number): void;
65
- /**
66
- * Update count of total available elemenets
67
- *
68
- * @param count
69
- */
70
- updateTotalRecordsCount(count: number): void;
71
- pageChanged(infinityScrollEnabled: any): void;
72
- enableSelection(): void;
73
- disableSelection(): void;
74
- /**
75
- * Method will be called from List for remove row if it was selected
76
- *
77
- * BUT methods for update visible and etc. will be called a bit later
78
- *
79
- * @param row
80
- */
81
- removeRow(row: any): void;
82
- /**
83
- * Intersection of selected and passed rows to remove rows that we dont need more
84
- *
85
- * @param rows
86
- */
87
- selectedRowsIntersection(rows: any): void;
88
- updateConfig({ actions, actionSelected, allSelected, cancelled, selectionChanged, selectAll, }: FsListSelectionConfig): void;
89
- resetActions(): void;
90
- closeSelectionDialog(): void;
91
- destroy(): void;
92
- /**
93
- * Subscribe to selectionRef events
94
- */
95
- private _subscribeToSelection;
96
- /**
97
- * If some action was clicked on selection ref dialog
98
- *
99
- * @param data
100
- */
101
- private _onActionActions;
102
- /**
103
- * If cancel was clicked on selection ref dialog
104
- */
105
- private _onCancelActions;
106
- /**
107
- * If "Select All" action was clicked on selection ref dialog
108
- *
109
- * @param flag
110
- */
111
- private _onSelectAllActions;
112
- private _selectionChangedActions;
113
- /**
114
- * Update in Dialog Ref how much rows was selected
115
- */
116
- private _updateSelectionRefSelected;
117
- /**
118
- * Update in Dialog Ref selected all status
119
- *
120
- * Ex.: Was clicked "Select All" in Dialog and after that some checkbox was unchecked
121
- * Dialog Ref must know about it
122
- *
123
- */
124
- private _updateSelectionRefSelectedAll;
125
- /**
126
- * Check if all visible rows was checked and send event to main header checkbox
127
- */
128
- private _updateSelectedVisibleStatus;
129
- /**
130
- * If select all checkbox in header was changed
131
- */
132
- private _visibleRowsSelectionChanged;
133
- /**
134
- * Method constructor for events
135
- *
136
- * @param type
137
- * @param payload
138
- */
139
- private _selectionChangeEvent;
140
- /**
141
- * Get row identified by trackBy path
142
- *
143
- * @param row
144
- */
145
- private _rowIdentifier;
146
- private _selectRow;
147
- private _deselectRow;
148
- private _selectChildRow;
149
- private _deselectChildRow;
150
- private _setNumberOfSelectedChildrenInGroup;
151
- /**
152
- * Reset selection
153
- */
154
- private _resetSelection;
155
- }
1
+ import { SelectionDialog } from '@firestitch/selection';
2
+ import { Observable } from 'rxjs';
3
+ import { FsListSelectionConfig } from '../interfaces';
4
+ import { Row } from '../models/row';
5
+ export declare enum SelectionChangeType {
6
+ AllVisibleSelectionChange = "AllVisibleSelectionChange",
7
+ RowSelectionChange = "RowSelectionChange",
8
+ SelectedAll = "SelectedAll"
9
+ }
10
+ export declare class SelectionController {
11
+ private _trackBy;
12
+ private _selectionDialog;
13
+ actions: any[];
14
+ selectAll: boolean;
15
+ selectionChangedFn: any;
16
+ actionSelectedFn: any;
17
+ allSelectedFn: any;
18
+ cancelledFn: any;
19
+ selectedRows: Map<any, any>;
20
+ selectedGroups: Map<any, any>;
21
+ private _selectionDialogRef;
22
+ private _getRows;
23
+ private _selectionChange;
24
+ private _selectedAllVisible;
25
+ private _selectedAll;
26
+ private _selectedRecords;
27
+ private _visibleRecordsCount;
28
+ private _totalRecordsCount;
29
+ private _destroy$;
30
+ private _disabled$;
31
+ constructor(config: FsListSelectionConfig, _trackBy: string, _selectionDialog: SelectionDialog);
32
+ get disabled(): boolean;
33
+ get disabled$(): Observable<boolean>;
34
+ get selectedAll(): boolean;
35
+ get selectionChange$(): Observable<{
36
+ type: SelectionChangeType;
37
+ payload: any;
38
+ }>;
39
+ setRowsCallback(data: () => any[]): void;
40
+ /**
41
+ * Trigger when row was selected
42
+ *
43
+ * @param row
44
+ * @param checked
45
+ */
46
+ rowSelectionChange(row: Row, checked: boolean): void;
47
+ /**
48
+ * Do check or uncheck of visible rows
49
+ *
50
+ * @param checked
51
+ */
52
+ selectAllVisibleRows(checked: any): void;
53
+ isRowSelected(rowData: any): boolean;
54
+ isGroupSelected(row: any): boolean | 'indeterminate';
55
+ /**
56
+ * Open selection dialog and create reference
57
+ */
58
+ openDialog(): void;
59
+ /**
60
+ * Update count of visible elements
61
+ *
62
+ * @param count
63
+ */
64
+ updateVisibleRecordsCount(count: number): void;
65
+ /**
66
+ * Update count of total available elemenets
67
+ *
68
+ * @param count
69
+ */
70
+ updateTotalRecordsCount(count: number): void;
71
+ pageChanged(infinityScrollEnabled: any): void;
72
+ enableSelection(): void;
73
+ disableSelection(): void;
74
+ /**
75
+ * Method will be called from List for remove row if it was selected
76
+ *
77
+ * BUT methods for update visible and etc. will be called a bit later
78
+ *
79
+ * @param row
80
+ */
81
+ removeRow(row: any): void;
82
+ /**
83
+ * Intersection of selected and passed rows to remove rows that we dont need more
84
+ *
85
+ * @param rows
86
+ */
87
+ selectedRowsIntersection(rows: any): void;
88
+ updateConfig({ actions, actionSelected, allSelected, cancelled, selectionChanged, selectAll, }: FsListSelectionConfig): void;
89
+ resetActions(): void;
90
+ closeSelectionDialog(): void;
91
+ destroy(): void;
92
+ /**
93
+ * Subscribe to selectionRef events
94
+ */
95
+ private _subscribeToSelection;
96
+ /**
97
+ * If some action was clicked on selection ref dialog
98
+ *
99
+ * @param data
100
+ */
101
+ private _onActionActions;
102
+ /**
103
+ * If cancel was clicked on selection ref dialog
104
+ */
105
+ private _onCancelActions;
106
+ /**
107
+ * If "Select All" action was clicked on selection ref dialog
108
+ *
109
+ * @param flag
110
+ */
111
+ private _onSelectAllActions;
112
+ private _selectionChangedActions;
113
+ /**
114
+ * Update in Dialog Ref how much rows was selected
115
+ */
116
+ private _updateSelectionRefSelected;
117
+ /**
118
+ * Update in Dialog Ref selected all status
119
+ *
120
+ * Ex.: Was clicked "Select All" in Dialog and after that some checkbox was unchecked
121
+ * Dialog Ref must know about it
122
+ *
123
+ */
124
+ private _updateSelectionRefSelectedAll;
125
+ /**
126
+ * Check if all visible rows was checked and send event to main header checkbox
127
+ */
128
+ private _updateSelectedVisibleStatus;
129
+ /**
130
+ * If select all checkbox in header was changed
131
+ */
132
+ private _visibleRowsSelectionChanged;
133
+ /**
134
+ * Method constructor for events
135
+ *
136
+ * @param type
137
+ * @param payload
138
+ */
139
+ private _selectionChangeEvent;
140
+ /**
141
+ * Get row identified by trackBy path
142
+ *
143
+ * @param row
144
+ */
145
+ private _rowIdentifier;
146
+ private _selectRow;
147
+ private _deselectRow;
148
+ private _selectChildRow;
149
+ private _deselectChildRow;
150
+ private _setNumberOfSelectedChildrenInGroup;
151
+ /**
152
+ * Reset selection
153
+ */
154
+ private _resetSelection;
155
+ }
@@ -1,65 +1,65 @@
1
- import { Observable } from 'rxjs';
2
- import { FsListSortConfig, SortingChangeEvent } from '../interfaces';
3
- import { Column } from '../models/column.model';
4
- import { List } from './list-controller';
5
- export declare class SortingController {
6
- config: List;
7
- sortingColumns: Column[];
8
- fakeSortingColumns: Column[];
9
- sortingColumn: Column;
10
- private _initialized;
11
- private _sortingChanged$;
12
- private _onDestroy;
13
- constructor();
14
- get sortingChanged$(): Observable<SortingChangeEvent>;
15
- get initialized$(): Observable<boolean>;
16
- get value(): FsListSortConfig | undefined;
17
- get initialization(): boolean;
18
- get isDefined(): boolean;
19
- private set _initialization(value);
20
- addSortableColumn(column: Column): void;
21
- clearSortableColumns(): void;
22
- /**
23
- * Set Sortable Direction
24
- *
25
- * @param direction
26
- */
27
- sortDirection(direction: any): void;
28
- /**
29
- * Sort By
30
- *
31
- * @param column
32
- */
33
- sortBy(column: Column): void;
34
- /**
35
- * Same as sortBy, but need only column name as parameter for sort
36
- *
37
- * @param name
38
- */
39
- sortByColumnWithName(name: string): void;
40
- /**
41
- * Init fake columns for sorting
42
- *
43
- * @param columns
44
- */
45
- initFakeColumns(columns: any): void;
46
- /**
47
- * Set initial sorting
48
- *
49
- * @param sort
50
- */
51
- initialSortBy(sort: FsListSortConfig): void;
52
- /**
53
- * Sort by first of available sorting columns
54
- */
55
- sortByFirstSortbale(): void;
56
- getColumn(name: string): Column;
57
- /**
58
- * Destroy
59
- */
60
- destroy(): void;
61
- private _setSortingColumn;
62
- private _setSortingDirection;
63
- private _notifySortChanged;
64
- private _trySortByDefaultSortableColumn;
65
- }
1
+ import { Observable } from 'rxjs';
2
+ import { FsListSortConfig, SortingChangeEvent } from '../interfaces';
3
+ import { Column } from '../models/column.model';
4
+ import { List } from './list-controller';
5
+ export declare class SortingController {
6
+ config: List;
7
+ sortingColumns: Column[];
8
+ fakeSortingColumns: Column[];
9
+ sortingColumn: Column;
10
+ private _initialized;
11
+ private _sortingChanged$;
12
+ private _onDestroy;
13
+ constructor();
14
+ get sortingChanged$(): Observable<SortingChangeEvent>;
15
+ get initialized$(): Observable<boolean>;
16
+ get value(): FsListSortConfig | undefined;
17
+ get initialization(): boolean;
18
+ get isDefined(): boolean;
19
+ private set _initialization(value);
20
+ addSortableColumn(column: Column): void;
21
+ clearSortableColumns(): void;
22
+ /**
23
+ * Set Sortable Direction
24
+ *
25
+ * @param direction
26
+ */
27
+ sortDirection(direction: any): void;
28
+ /**
29
+ * Sort By
30
+ *
31
+ * @param column
32
+ */
33
+ sortBy(column: Column): void;
34
+ /**
35
+ * Same as sortBy, but need only column name as parameter for sort
36
+ *
37
+ * @param name
38
+ */
39
+ sortByColumnWithName(name: string): void;
40
+ /**
41
+ * Init fake columns for sorting
42
+ *
43
+ * @param columns
44
+ */
45
+ initFakeColumns(columns: any): void;
46
+ /**
47
+ * Set initial sorting
48
+ *
49
+ * @param sort
50
+ */
51
+ initialSortBy(sort: FsListSortConfig): void;
52
+ /**
53
+ * Sort by first of available sorting columns
54
+ */
55
+ sortByFirstSortbale(): void;
56
+ getColumn(name: string): Column;
57
+ /**
58
+ * Destroy
59
+ */
60
+ destroy(): void;
61
+ private _setSortingColumn;
62
+ private _setSortingDirection;
63
+ private _notifySortChanged;
64
+ private _trySortByDefaultSortableColumn;
65
+ }
@@ -1,28 +1,28 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
3
- import { SelectionController } from '../../classes/selection-controller';
4
- import { Column } from '../../models/column.model';
5
- import { Row } from '../../models/row';
6
- import * as i0 from "@angular/core";
7
- export declare class FsBodyComponent {
8
- rows: Row[];
9
- columns: Column[];
10
- hasFooter: boolean;
11
- rowActionsRaw: any[];
12
- groupActionsRaw: any[];
13
- rowEvents: {};
14
- rowClass: any;
15
- hasRowActions: boolean;
16
- selection: SelectionController;
17
- restoreMode: boolean;
18
- rowRemoved: EventEmitter<any>;
19
- activeFiltersCount: number;
20
- reorderEnabled: boolean;
21
- reorderPosition: ReorderPosition | null;
22
- reorderStrategy: ReorderStrategy | null;
23
- reorderMultiple: boolean;
24
- rowsContainer: any;
25
- headerTemplate: TemplateRef<any>;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<FsBodyComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<FsBodyComponent, "[fs-list-body]", never, { "rows": "rows"; "columns": "columns"; "hasFooter": "hasFooter"; "rowActionsRaw": "rowActionsRaw"; "groupActionsRaw": "groupActionsRaw"; "rowEvents": "rowEvents"; "rowClass": "rowClass"; "hasRowActions": "hasRowActions"; "selection": "selection"; "restoreMode": "restoreMode"; "rowRemoved": "rowRemoved"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; "reorderMultiple": "reorderMultiple"; }, {}, ["headerTemplate"], never>;
28
- }
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
+ import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
3
+ import { SelectionController } from '../../classes/selection-controller';
4
+ import { Column } from '../../models/column.model';
5
+ import { Row } from '../../models/row';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FsBodyComponent {
8
+ rows: Row[];
9
+ columns: Column[];
10
+ hasFooter: boolean;
11
+ rowActionsRaw: any[];
12
+ groupActionsRaw: any[];
13
+ rowEvents: {};
14
+ rowClass: any;
15
+ hasRowActions: boolean;
16
+ selection: SelectionController;
17
+ restoreMode: boolean;
18
+ rowRemoved: EventEmitter<any>;
19
+ activeFiltersCount: number;
20
+ reorderEnabled: boolean;
21
+ reorderPosition: ReorderPosition | null;
22
+ reorderStrategy: ReorderStrategy | null;
23
+ reorderMultiple: boolean;
24
+ rowsContainer: any;
25
+ headerTemplate: TemplateRef<any>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsBodyComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsBodyComponent, "[fs-list-body]", never, { "rows": "rows"; "columns": "columns"; "hasFooter": "hasFooter"; "rowActionsRaw": "rowActionsRaw"; "groupActionsRaw": "groupActionsRaw"; "rowEvents": "rowEvents"; "rowClass": "rowClass"; "hasRowActions": "hasRowActions"; "selection": "selection"; "restoreMode": "restoreMode"; "rowRemoved": "rowRemoved"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; "reorderMultiple": "reorderMultiple"; }, {}, ["headerTemplate"], never>;
28
+ }
@@ -1,36 +1,36 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { FsPrompt } from '@firestitch/prompt';
3
- import { Row } from '../../../../models/row';
4
- import { RowAction } from '../../../../models/row-action.model';
5
- import * as i0 from "@angular/core";
6
- export declare class FsRowActionsComponent {
7
- private _prompt;
8
- row: Row;
9
- index: number;
10
- restoreMode: boolean;
11
- rowActions: RowAction[];
12
- rowRemoved: EventEmitter<any>;
13
- menuRowActions: RowAction[];
14
- inlineRowActions: RowAction[];
15
- restoreAction: RowAction;
16
- private _destroy$;
17
- constructor(_prompt: FsPrompt);
18
- actionClick(action: RowAction, row: any, event: any, menuRef?: any): void;
19
- /**
20
- * Track By for improve change detection
21
- *
22
- * @param index
23
- */
24
- trackByFn(index: any): any;
25
- /**
26
- * Emit that some row must be removed
27
- *
28
- * @param action
29
- * @param row
30
- * @param event
31
- * @param index
32
- */
33
- private _removeAction;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<FsRowActionsComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<FsRowActionsComponent, "fs-list-row-actions", never, { "row": "row"; "index": "index"; "restoreMode": "restoreMode"; "rowActions": "rowActions"; "rowRemoved": "rowRemoved"; "menuRowActions": "menuRowActions"; "inlineRowActions": "inlineRowActions"; "restoreAction": "restoreAction"; }, {}, never, never>;
36
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FsPrompt } from '@firestitch/prompt';
3
+ import { Row } from '../../../../models/row';
4
+ import { RowAction } from '../../../../models/row-action.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FsRowActionsComponent {
7
+ private _prompt;
8
+ row: Row;
9
+ index: number;
10
+ restoreMode: boolean;
11
+ rowActions: RowAction[];
12
+ rowRemoved: EventEmitter<any>;
13
+ menuRowActions: RowAction[];
14
+ inlineRowActions: RowAction[];
15
+ restoreAction: RowAction;
16
+ private _destroy$;
17
+ constructor(_prompt: FsPrompt);
18
+ actionClick(action: RowAction, row: any, event: any, menuRef?: any): void;
19
+ /**
20
+ * Track By for improve change detection
21
+ *
22
+ * @param index
23
+ */
24
+ trackByFn(index: any): any;
25
+ /**
26
+ * Emit that some row must be removed
27
+ *
28
+ * @param action
29
+ * @param row
30
+ * @param event
31
+ * @param index
32
+ */
33
+ private _removeAction;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsRowActionsComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsRowActionsComponent, "fs-list-row-actions", never, { "row": "row"; "index": "index"; "restoreMode": "restoreMode"; "rowActions": "rowActions"; "rowRemoved": "rowRemoved"; "menuRowActions": "menuRowActions"; "inlineRowActions": "inlineRowActions"; "restoreAction": "restoreAction"; }, {}, never, never>;
36
+ }
@@ -1,22 +1,22 @@
1
- import { DoCheck, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { Column } from '../../../../models/column.model';
3
- import * as i0 from "@angular/core";
4
- export declare class FsCellComponent implements OnInit, OnChanges, DoCheck, OnDestroy {
5
- isColl: boolean;
6
- role: string;
7
- column: Column;
8
- row: any;
9
- rowIndex: number;
10
- cellContext: any;
11
- cellTemplate: TemplateRef<any>;
12
- private _destroy$;
13
- ngOnInit(): void;
14
- ngDoCheck(): void;
15
- ngOnChanges(changes: SimpleChanges): void;
16
- ngOnDestroy(): void;
17
- private _initCellContext;
18
- private _initCellTemplate;
19
- private _listenGroupOpen;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FsCellComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<FsCellComponent, "[fs-cell]", never, { "column": "column"; "row": "row"; "rowIndex": "rowIndex"; }, {}, never, never>;
22
- }
1
+ import { DoCheck, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { Column } from '../../../../models/column.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FsCellComponent implements OnInit, OnChanges, DoCheck, OnDestroy {
5
+ isColl: boolean;
6
+ role: string;
7
+ column: Column;
8
+ row: any;
9
+ rowIndex: number;
10
+ cellContext: any;
11
+ cellTemplate: TemplateRef<any>;
12
+ private _destroy$;
13
+ ngOnInit(): void;
14
+ ngDoCheck(): void;
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ ngOnDestroy(): void;
17
+ private _initCellContext;
18
+ private _initCellTemplate;
19
+ private _listenGroupOpen;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsCellComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsCellComponent, "[fs-cell]", never, { "column": "column"; "row": "row"; "rowIndex": "rowIndex"; }, {}, never, never>;
22
+ }
@@ -1,13 +1,13 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { FsFile } from '@firestitch/file';
3
- import { RowAction } from '../../../../models/row-action.model';
4
- import * as i0 from "@angular/core";
5
- export declare class FsRowInlineActionComponent {
6
- action: RowAction;
7
- clicked: EventEmitter<any>;
8
- fileSelect: EventEmitter<FsFile | FsFile[]>;
9
- actionClick(event: any): void;
10
- fileSelected(event: any): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FsRowInlineActionComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<FsRowInlineActionComponent, "fs-list-row-inline-action", never, { "action": "action"; }, { "clicked": "clicked"; "fileSelect": "fileSelect"; }, never, never>;
13
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FsFile } from '@firestitch/file';
3
+ import { RowAction } from '../../../../models/row-action.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsRowInlineActionComponent {
6
+ action: RowAction;
7
+ clicked: EventEmitter<any>;
8
+ fileSelect: EventEmitter<FsFile | FsFile[]>;
9
+ actionClick(event: any): void;
10
+ fileSelected(event: any): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsRowInlineActionComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsRowInlineActionComponent, "fs-list-row-inline-action", never, { "action": "action"; }, { "clicked": "clicked"; "fileSelect": "fileSelect"; }, never, never>;
13
+ }