@energycap/components 0.39.32 → 0.39.33-ECAP-26866-table-multi-sort-improvements.20241025-1454
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/esm2020/lib/display/table/searchable-table.component.mjs +1 -1
- package/esm2020/lib/display/table/table.component.mjs +32 -28
- package/fesm2015/energycap-components.mjs +30 -26
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +30 -26
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/display/table/searchable-table.component.d.ts +3 -3
- package/lib/display/table/table.component.d.ts +4 -2
- package/package.json +1 -1
@@ -25,14 +25,14 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy, OnCh
|
|
25
25
|
id: string;
|
26
26
|
resizable: boolean;
|
27
27
|
sortable: boolean;
|
28
|
-
sort?: TableSort;
|
28
|
+
sort?: TableSort | TableSort[];
|
29
29
|
autofocus: boolean;
|
30
30
|
/**Set to a space-separated set of strings that should be added to the ec-table class attribute
|
31
31
|
* this allows finer control over styling.
|
32
32
|
*/
|
33
33
|
tableClasses: string;
|
34
34
|
/** Emits when table sort has changed */
|
35
|
-
sortChange: EventEmitter<TableSort>;
|
35
|
+
sortChange: EventEmitter<TableSort | TableSort[]>;
|
36
36
|
/** Emits when the table page has changed */
|
37
37
|
pageChangeEmitter: EventEmitter<PagingInfo>;
|
38
38
|
/** Placeholder text for the searchbox */
|
@@ -183,7 +183,7 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy, OnCh
|
|
183
183
|
ngOnInit(): void;
|
184
184
|
ngOnDestroy(): void;
|
185
185
|
/** Pass along sort to parent component */
|
186
|
-
onSortChange(sort: TableSort): void;
|
186
|
+
onSortChange(sort: TableSort | TableSort[]): void;
|
187
187
|
/**
|
188
188
|
* When a page changes, store the new pagingInfo and emit the current value of the form to trigger getData.
|
189
189
|
*/
|
@@ -68,11 +68,11 @@ export declare class TableComponent implements AfterViewInit, OnDestroy, OnChang
|
|
68
68
|
/**
|
69
69
|
* The current sort field and direction ('desc' or 'asc')
|
70
70
|
*/
|
71
|
-
sort?: TableSort;
|
71
|
+
sort?: TableSort | TableSort[];
|
72
72
|
/**
|
73
73
|
* Emits the new sort value whenever a sortable column is clicked
|
74
74
|
*/
|
75
|
-
sortChange: EventEmitter<TableSort>;
|
75
|
+
sortChange: EventEmitter<TableSort | TableSort[]>;
|
76
76
|
/**
|
77
77
|
* True if a TableMasterRowComponent exists in the table content
|
78
78
|
*/
|
@@ -113,6 +113,8 @@ export declare class TableComponent implements AfterViewInit, OnDestroy, OnChang
|
|
113
113
|
* @param field
|
114
114
|
*/
|
115
115
|
private onSort;
|
116
|
+
private clearSort;
|
117
|
+
private applySort;
|
116
118
|
private initSelectable;
|
117
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
118
120
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ec-table", never, { "id": "id"; "scrollable": "scrollable"; "resizable": "resizable"; "condensed": "condensed"; "sortable": "sortable"; "selectionContext": "selectionContext"; "selectionToolbarTemplate": "selectionToolbarTemplate"; "selectable": "selectable"; "isForm": "isForm"; "sort": "sort"; "searchableTableResizableColumns": "resizableColumns"; }, { "sortChange": "sortChange"; }, ["masterRows", "_resizableColumns"], ["*"], false, never>;
|