ngx-st-tables 17.0.130 → 17.0.132
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.
|
@@ -29,18 +29,6 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
29
29
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
30
30
|
initColumns: import("@angular/core").InputSignal<StMaterialTableColumnModel[]>;
|
|
31
31
|
rowClickAction: import("@angular/core").InputSignal<((row: any) => void) | undefined>;
|
|
32
|
-
/**
|
|
33
|
-
* Immutable Data Pattern:
|
|
34
|
-
* Creates a deep copy of incoming data to prevent mutations of parent data.
|
|
35
|
-
* IDs are generated on the copy, not on the original parent data.
|
|
36
|
-
* This ensures the parent maintains control of their data while the library
|
|
37
|
-
* manages its own working copy for UI operations.
|
|
38
|
-
*
|
|
39
|
-
* When data is updated (e.g., after fieldValueChanged), existing row IDs are preserved
|
|
40
|
-
* to prevent focus loss on inputs.
|
|
41
|
-
*/
|
|
42
|
-
set data(data: any[]);
|
|
43
|
-
get data(): any[];
|
|
44
32
|
allowEditRow: import("@angular/core").InputSignal<boolean>;
|
|
45
33
|
showEditAllRows: import("@angular/core").InputSignal<boolean>;
|
|
46
34
|
/**
|
|
@@ -64,6 +52,18 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
64
52
|
}> | undefined>;
|
|
65
53
|
initSelectedRow: import("@angular/core").InputSignal<any>;
|
|
66
54
|
extraCustomFilter: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Immutable Data Pattern:
|
|
57
|
+
* Creates a deep copy of incoming data to prevent mutations of parent data.
|
|
58
|
+
* IDs are generated on the copy, not on the original parent data.
|
|
59
|
+
* This ensures the parent maintains control of their data while the library
|
|
60
|
+
* manages its own working copy for UI operations.
|
|
61
|
+
*
|
|
62
|
+
* When data is updated (e.g., after fieldValueChanged), existing row IDs are preserved
|
|
63
|
+
* to prevent focus loss on inputs.
|
|
64
|
+
*/
|
|
65
|
+
set data(data: any[]);
|
|
66
|
+
get data(): any[];
|
|
67
67
|
loadData: import("@angular/core").OutputEmitterRef<StMaterialTableLoadData>;
|
|
68
68
|
saveEditedRow: import("@angular/core").OutputEmitterRef<{
|
|
69
69
|
row: any;
|
|
@@ -167,7 +167,7 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
167
167
|
private setNewEmptyLocalStorageData;
|
|
168
168
|
isFirstEditableColumn(column: ViewStMaterialTableColumnModel): boolean;
|
|
169
169
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTableComponent, never>;
|
|
170
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "ngx-st-material-table", never, { "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; "isSignal": true; }; "tableTitle": { "alias": "tableTitle"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "dataLength": { "alias": "dataLength"; "required": false; "isSignal": true; }; "allowPickColumns": { "alias": "allowPickColumns"; "required": false; "isSignal": true; }; "allowReorderColumns": { "alias": "allowReorderColumns"; "required": false; "isSignal": true; }; "localStorageName": { "alias": "localStorageName"; "required": false; "isSignal": true; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "initColumns": { "alias": "initColumns"; "required": false; "isSignal": true; }; "rowClickAction": { "alias": "rowClickAction"; "required": false; "isSignal": true; }; "
|
|
170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "ngx-st-material-table", never, { "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; "isSignal": true; }; "tableTitle": { "alias": "tableTitle"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "dataLength": { "alias": "dataLength"; "required": false; "isSignal": true; }; "allowPickColumns": { "alias": "allowPickColumns"; "required": false; "isSignal": true; }; "allowReorderColumns": { "alias": "allowReorderColumns"; "required": false; "isSignal": true; }; "localStorageName": { "alias": "localStorageName"; "required": false; "isSignal": true; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "initColumns": { "alias": "initColumns"; "required": false; "isSignal": true; }; "rowClickAction": { "alias": "rowClickAction"; "required": false; "isSignal": true; }; "allowEditRow": { "alias": "allowEditRow"; "required": false; "isSignal": true; }; "showEditAllRows": { "alias": "showEditAllRows"; "required": false; "isSignal": true; }; "autoSaveOnChange": { "alias": "autoSaveOnChange"; "required": false; "isSignal": true; }; "canEditRowValidator": { "alias": "canEditRowValidator"; "required": false; "isSignal": true; }; "canDeleteRowValidator": { "alias": "canDeleteRowValidator"; "required": false; "isSignal": true; }; "allowSelectRow": { "alias": "allowSelectRow"; "required": false; "isSignal": true; }; "selectionFieldLabel": { "alias": "selectionFieldLabel"; "required": false; "isSignal": true; }; "selectRowOnlyOne": { "alias": "selectRowOnlyOne"; "required": false; "isSignal": true; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; "isSignal": true; }; "createButtonLabel": { "alias": "createButtonLabel"; "required": false; "isSignal": true; }; "createButtonAction": { "alias": "createButtonAction"; "required": false; "isSignal": true; }; "disableCreateButton": { "alias": "disableCreateButton"; "required": false; "isSignal": true; }; "allowCreateRow": { "alias": "allowCreateRow"; "required": false; "isSignal": true; }; "allowExtendRow": { "alias": "allowExtendRow"; "required": false; "isSignal": true; }; "extendedRowTemplate": { "alias": "extendedRowTemplate"; "required": false; "isSignal": true; }; "initSelectedRow": { "alias": "initSelectedRow"; "required": false; "isSignal": true; }; "extraCustomFilter": { "alias": "extraCustomFilter"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; }; }, { "loadData": "loadData"; "saveEditedRow": "saveEditedRow"; "saveCreatedRow": "saveCreatedRow"; "rowDeleted": "rowDeleted"; "selectRowChange": "selectRowChange"; "fieldValueChanged": "fieldValueChanged"; }, never, never, false, never>;
|
|
171
171
|
}
|
|
172
172
|
export interface StMaterialTableLoadData {
|
|
173
173
|
first: number;
|