@firestitch/list 12.17.1 → 12.18.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 (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 +179 -179
  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 +155 -155
  11. package/app/classes/sorting-controller.d.ts +64 -64
  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 +23 -22
  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 +20 -20
  17. package/app/components/body/row/row.component.d.ts +82 -82
  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 +122 -122
  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 +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 +3 -3
  58. package/app/interfaces/listconfig.interface.d.ts +267 -267
  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 +6929 -6909
  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 +365 -353
  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 +738 -738
  82. package/esm2015/app/classes/pagination-controller.js +460 -460
  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 +467 -467
  86. package/esm2015/app/classes/sorting-controller.js +180 -180
  87. package/esm2015/app/components/body/body.component.js +68 -68
  88. package/esm2015/app/components/body/row/actions/actions.component.js +98 -98
  89. package/esm2015/app/components/body/row/cell/cell.component.js +113 -106
  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 +49 -49
  92. package/esm2015/app/components/body/row/row.component.js +304 -304
  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 +35 -35
  97. package/esm2015/app/components/head/head-cell/head-cell.component.js +34 -34
  98. package/esm2015/app/components/head/head.component.js +107 -107
  99. package/esm2015/app/components/list/list.component.js +385 -385
  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 +328 -328
  110. package/esm2015/app/directives/draggable-row/draggable-row.directive.js +78 -78
  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 +1 -1
  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 +5709 -5690
  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,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,64 +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
- private _trySortByDefaultSortableColumn;
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
+ private _trySortByDefaultSortableColumn;
64
+ }
@@ -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 _fsPrompt;
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(_fsPrompt: 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 _fsPrompt;
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(_fsPrompt: 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,23 @@
1
- import { 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, 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
- constructor();
14
- ngOnInit(): 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
+ constructor();
14
+ ngOnInit(): void;
15
+ ngDoCheck(): void;
16
+ ngOnChanges(changes: SimpleChanges): void;
17
+ ngOnDestroy(): void;
18
+ private _initCellContext;
19
+ private _initCellTemplate;
20
+ private _listenGroupOpen;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsCellComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsCellComponent, "[fs-cell]", never, { "column": "column"; "row": "row"; "rowIndex": "rowIndex"; }, {}, never, never>;
23
+ }
@@ -1,16 +1,16 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { FsPrompt } from '@firestitch/prompt';
3
- import { FsFile } from '@firestitch/file';
4
- import { RowAction } from '../../../../models/row-action.model';
5
- import * as i0 from "@angular/core";
6
- export declare class FsRowInlineActionComponent {
7
- private _fsPrompt;
8
- action: RowAction;
9
- clicked: EventEmitter<any>;
10
- fileSelect: EventEmitter<FsFile | FsFile[]>;
11
- constructor(_fsPrompt: FsPrompt);
12
- actionClick(event: any): void;
13
- fileSelected(event: any): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FsRowInlineActionComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FsRowInlineActionComponent, "fs-list-row-inline-action", never, { "action": "action"; }, { "clicked": "clicked"; "fileSelect": "fileSelect"; }, never, never>;
16
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FsPrompt } from '@firestitch/prompt';
3
+ import { FsFile } from '@firestitch/file';
4
+ import { RowAction } from '../../../../models/row-action.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FsRowInlineActionComponent {
7
+ private _fsPrompt;
8
+ action: RowAction;
9
+ clicked: EventEmitter<any>;
10
+ fileSelect: EventEmitter<FsFile | FsFile[]>;
11
+ constructor(_fsPrompt: FsPrompt);
12
+ actionClick(event: any): void;
13
+ fileSelected(event: any): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsRowInlineActionComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsRowInlineActionComponent, "fs-list-row-inline-action", never, { "action": "action"; }, { "clicked": "clicked"; "fileSelect": "fileSelect"; }, never, never>;
16
+ }