@firestitch/list 13.0.7 → 13.1.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.
- package/app/classes/actions-controller.d.ts +20 -20
- package/app/classes/columns-controller.d.ts +71 -71
- package/app/classes/data-controller.d.ts +91 -91
- package/app/classes/external-params-controller.d.ts +32 -32
- package/app/classes/index.d.ts +2 -2
- package/app/classes/list-controller.d.ts +194 -191
- package/app/classes/pagination-controller.d.ts +198 -198
- package/app/classes/persistance-controller.d.ts +10 -10
- package/app/classes/reorder-controller.d.ts +68 -68
- package/app/classes/selection-controller.d.ts +155 -155
- package/app/classes/sorting-controller.d.ts +65 -65
- package/app/components/body/body.component.d.ts +28 -28
- package/app/components/body/row/actions/actions.component.d.ts +36 -36
- package/app/components/body/row/cell/cell.component.d.ts +22 -22
- package/app/components/body/row/inline-action/inline-action.component.d.ts +13 -13
- package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
- package/app/components/body/row/row.component.d.ts +85 -85
- package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
- package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
- package/app/components/footer/footer-row/footer-row.component.d.ts +14 -14
- package/app/components/footer/footer.component.d.ts +15 -15
- package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
- package/app/components/head/head.component.d.ts +49 -49
- package/app/components/list/list.component.d.ts +128 -128
- package/app/components/loader/loader.component.d.ts +14 -14
- package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
- package/app/components/pagination/pagination.component.d.ts +14 -14
- package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
- package/app/components/status/status.component.d.ts +21 -21
- package/app/directives/cell/cell.directive.d.ts +8 -8
- package/app/directives/column/column.directive.d.ts +37 -37
- package/app/directives/content/content.directive.d.ts +5 -5
- package/app/directives/content-init/content-init.directive.d.ts +9 -9
- package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
- package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
- package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
- package/app/directives/footer/footer.directive.d.ts +8 -8
- package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
- package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
- package/app/directives/group-header/group-header.directive.d.ts +6 -6
- package/app/directives/header/header.directive.d.ts +8 -8
- package/app/directives/heading/heading.directive.d.ts +5 -5
- package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
- package/app/directives/index.d.ts +3 -3
- package/app/directives/subheading/subheading.directive.d.ts +5 -5
- package/app/enums/button-type.enum.d.ts +7 -7
- package/app/enums/page-change-type.enum.d.ts +4 -4
- package/app/enums/pagination-strategy.enum.d.ts +5 -5
- package/app/enums/row-type.enum.d.ts +6 -6
- package/app/enums/state.enum.d.ts +9 -9
- package/app/fs-list.module.d.ts +60 -60
- package/app/fs-list.providers.d.ts +3 -3
- package/app/interfaces/cellconfig.interface.d.ts +5 -5
- package/app/interfaces/column-config.interface.d.ts +2 -2
- package/app/interfaces/draggable-list.interface.d.ts +7 -7
- package/app/interfaces/external-params.interface.d.ts +13 -13
- package/app/interfaces/index.d.ts +4 -4
- package/app/interfaces/listconfig.interface.d.ts +249 -247
- package/app/interfaces/pagination-state.interface.d.ts +9 -9
- package/app/interfaces/pagination.interface.d.ts +13 -13
- package/app/interfaces/sorting-change-event.interface.d.ts +4 -4
- package/app/models/column-async-attribute.d.ts +5 -5
- package/app/models/column-attributes.d.ts +39 -39
- package/app/models/column.model.d.ts +61 -61
- package/app/models/row/base-row.d.ts +13 -13
- package/app/models/row/child-row.d.ts +12 -12
- package/app/models/row/group-footer-row.d.ts +10 -10
- package/app/models/row/group-row.d.ts +16 -16
- package/app/models/row/simple-row.d.ts +5 -5
- package/app/models/row-action.model.d.ts +29 -29
- package/app/models/row.d.ts +34 -34
- package/app/models/styleConfig.model.d.ts +31 -31
- package/app/pipes/action-label.d.ts +8 -8
- package/app/pipes/index.d.ts +1 -1
- package/app/services/group-expand-notifier.service.d.ts +11 -11
- package/esm2020/app/classes/actions-controller.mjs +55 -55
- package/esm2020/app/classes/columns-controller.mjs +205 -205
- package/esm2020/app/classes/data-controller.mjs +366 -366
- package/esm2020/app/classes/external-params-controller.mjs +146 -146
- package/esm2020/app/classes/index.mjs +3 -3
- package/esm2020/app/classes/list-controller.mjs +758 -752
- package/esm2020/app/classes/pagination-controller.mjs +477 -477
- package/esm2020/app/classes/persistance-controller.mjs +19 -19
- package/esm2020/app/classes/reorder-controller.mjs +181 -181
- package/esm2020/app/classes/selection-controller.mjs +467 -467
- package/esm2020/app/classes/sorting-controller.mjs +183 -183
- package/esm2020/app/components/body/body.component.mjs +63 -63
- package/esm2020/app/components/body/row/actions/actions.component.mjs +96 -96
- package/esm2020/app/components/body/row/cell/cell.component.mjs +107 -107
- package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +32 -32
- package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +45 -45
- package/esm2020/app/components/body/row/row.component.mjs +322 -322
- package/esm2020/app/components/customize-cols/customize-cols.component.mjs +68 -68
- package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -16
- package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +27 -27
- package/esm2020/app/components/footer/footer.component.mjs +30 -30
- package/esm2020/app/components/head/head-cell/head-cell.component.mjs +29 -29
- package/esm2020/app/components/head/head.component.mjs +102 -102
- package/esm2020/app/components/list/list.component.mjs +391 -391
- package/esm2020/app/components/loader/loader.component.mjs +40 -40
- package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +76 -76
- package/esm2020/app/components/pagination/pagination.component.mjs +37 -37
- package/esm2020/app/components/saved-filters/saved-filters.component.mjs +29 -29
- package/esm2020/app/components/status/status.component.mjs +66 -66
- package/esm2020/app/directives/cell/cell.directive.mjs +18 -18
- package/esm2020/app/directives/column/column.directive.mjs +120 -120
- package/esm2020/app/directives/content/content.directive.mjs +12 -12
- package/esm2020/app/directives/content-init/content-init.directive.mjs +21 -21
- package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +327 -327
- package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +77 -77
- package/esm2020/app/directives/empty-state/empty-state.directive.mjs +13 -13
- package/esm2020/app/directives/footer/footer.directive.mjs +18 -18
- package/esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +26 -26
- package/esm2020/app/directives/group-footer/group-footer.directive.mjs +13 -13
- package/esm2020/app/directives/group-header/group-header.directive.mjs +13 -13
- package/esm2020/app/directives/header/header.directive.mjs +18 -18
- package/esm2020/app/directives/heading/heading.directive.mjs +13 -13
- package/esm2020/app/directives/heading-container/heading-container.directive.mjs +13 -13
- package/esm2020/app/directives/index.mjs +4 -4
- package/esm2020/app/directives/subheading/subheading.directive.mjs +13 -13
- package/esm2020/app/enums/button-type.enum.mjs +9 -9
- package/esm2020/app/enums/page-change-type.enum.mjs +6 -6
- package/esm2020/app/enums/pagination-strategy.enum.mjs +7 -7
- package/esm2020/app/enums/row-type.enum.mjs +7 -7
- package/esm2020/app/enums/state.enum.mjs +11 -11
- package/esm2020/app/fs-list.module.mjs +245 -245
- package/esm2020/app/fs-list.providers.mjs +4 -4
- package/esm2020/app/interfaces/cellconfig.interface.mjs +2 -2
- package/esm2020/app/interfaces/column-config.interface.mjs +1 -1
- package/esm2020/app/interfaces/draggable-list.interface.mjs +2 -2
- package/esm2020/app/interfaces/external-params.interface.mjs +2 -2
- package/esm2020/app/interfaces/index.mjs +5 -5
- package/esm2020/app/interfaces/listconfig.interface.mjs +2 -2
- package/esm2020/app/interfaces/pagination-state.interface.mjs +1 -1
- package/esm2020/app/interfaces/pagination.interface.mjs +2 -2
- package/esm2020/app/interfaces/sorting-change-event.interface.mjs +2 -2
- package/esm2020/app/models/column-async-attribute.mjs +13 -13
- package/esm2020/app/models/column-attributes.mjs +131 -131
- package/esm2020/app/models/column.model.mjs +163 -163
- package/esm2020/app/models/row/base-row.mjs +23 -23
- package/esm2020/app/models/row/child-row.mjs +28 -28
- package/esm2020/app/models/row/group-footer-row.mjs +20 -20
- package/esm2020/app/models/row/group-row.mjs +44 -44
- package/esm2020/app/models/row/simple-row.mjs +10 -10
- package/esm2020/app/models/row-action.model.mjs +89 -89
- package/esm2020/app/models/row.mjs +88 -88
- package/esm2020/app/models/styleConfig.model.mjs +75 -75
- package/esm2020/app/pipes/action-label.mjs +16 -16
- package/esm2020/app/pipes/index.mjs +1 -1
- package/esm2020/app/services/group-expand-notifier.service.mjs +26 -26
- package/esm2020/firestitch-list.mjs +4 -4
- package/esm2020/public_api.mjs +45 -45
- package/fesm2015/firestitch-list.mjs +5721 -5714
- package/fesm2015/firestitch-list.mjs.map +1 -1
- package/fesm2020/firestitch-list.mjs +5702 -5695
- package/fesm2020/firestitch-list.mjs.map +1 -1
- package/firestitch-list.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +41 -41
|
@@ -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
|
+
}
|