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