ngx-st-tables 17.0.29 → 17.0.30
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/esm2022/lib/components/local-table/configurations/configurations.component.mjs +3 -3
- package/esm2022/lib/components/local-table/local-table.component.mjs +3 -3
- package/esm2022/lib/components/material-table/material-table-caption/material-table-caption.component.mjs +3 -3
- package/esm2022/lib/components/material-table/material-table-row-cell/material-table-row-cell.component.mjs +14 -3
- package/esm2022/lib/components/material-table/material-table.component.mjs +63 -10
- package/esm2022/lib/components/select-table/select-table.component.mjs +3 -3
- package/esm2022/lib/models/st-material-table-column.model.mjs +1 -1
- package/esm2022/lib/ngx-st-tables.module.mjs +3 -3
- package/fesm2022/ngx-st-tables.mjs +78 -18
- package/fesm2022/ngx-st-tables.mjs.map +1 -1
- package/lib/components/material-table/material-table-row-cell/material-table-row-cell.component.d.ts +6 -1
- package/lib/components/material-table/material-table.component.d.ts +10 -1
- package/lib/models/st-material-table-column.model.d.ts +1 -1
- package/package.json +1 -1
package/lib/components/material-table/material-table-row-cell/material-table-row-cell.component.d.ts
CHANGED
|
@@ -13,9 +13,11 @@ export declare class MaterialTableRowCellComponent implements OnInit {
|
|
|
13
13
|
set rowEditing(data: boolean);
|
|
14
14
|
get rowEditing(): boolean;
|
|
15
15
|
private _rowEditing;
|
|
16
|
+
rowIsSelected: boolean;
|
|
16
17
|
saveEditRowEmitter: EventEmitter<void>;
|
|
17
18
|
cancelEditRowEmitter: EventEmitter<void>;
|
|
18
19
|
editRowEmitter: EventEmitter<void>;
|
|
20
|
+
selectRowChange: EventEmitter<boolean>;
|
|
19
21
|
mobileView: boolean;
|
|
20
22
|
actionIconColorDef: {
|
|
21
23
|
[key: string]: 'primary' | 'warn';
|
|
@@ -25,7 +27,10 @@ export declare class MaterialTableRowCellComponent implements OnInit {
|
|
|
25
27
|
saveRow(): void;
|
|
26
28
|
cancelRow(): void;
|
|
27
29
|
editRow(): void;
|
|
30
|
+
selectRow(event: {
|
|
31
|
+
checked: boolean;
|
|
32
|
+
}): void;
|
|
28
33
|
private checkWidthSize;
|
|
29
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTableRowCellComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableRowCellComponent, "st-material-table-row-cell", never, { "column": { "alias": "column"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "rowDataCopy": { "alias": "rowDataCopy"; "required": false; }; "rowEditing": { "alias": "rowEditing"; "required": false; }; }, { "saveEditRowEmitter": "saveEditRowEmitter"; "cancelEditRowEmitter": "cancelEditRowEmitter"; "editRowEmitter": "editRowEmitter"; }, never, never, false, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableRowCellComponent, "st-material-table-row-cell", never, { "column": { "alias": "column"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "rowDataCopy": { "alias": "rowDataCopy"; "required": false; }; "rowEditing": { "alias": "rowEditing"; "required": false; }; "rowIsSelected": { "alias": "rowIsSelected"; "required": false; }; }, { "saveEditRowEmitter": "saveEditRowEmitter"; "cancelEditRowEmitter": "cancelEditRowEmitter"; "editRowEmitter": "editRowEmitter"; "selectRowChange": "selectRowChange"; }, never, never, false, never>;
|
|
31
36
|
}
|
|
@@ -7,6 +7,7 @@ import { ViewStMaterialTableColumnModel } from '../../models/view/view-st-materi
|
|
|
7
7
|
import { ICaptionDataChanged } from './material-table-caption/material-table-caption.component';
|
|
8
8
|
import { StSubscribeDestroyComponent } from 'ngx-st-base-functions';
|
|
9
9
|
import { StSnackBarService } from 'ngx-st-snack-bar';
|
|
10
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class MaterialTableComponent extends StSubscribeDestroyComponent implements OnInit, AfterViewInit {
|
|
12
13
|
private changeDetectorRef;
|
|
@@ -27,8 +28,11 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
27
28
|
set data(data: any[]);
|
|
28
29
|
get data(): any[];
|
|
29
30
|
rowEditing: boolean;
|
|
31
|
+
rowSelecting: boolean;
|
|
32
|
+
selectionFieldLabel: string;
|
|
30
33
|
loadData: EventEmitter<StMaterialTableLoadData>;
|
|
31
34
|
saveNewRow: EventEmitter<any>;
|
|
35
|
+
selectRowChange: EventEmitter<any[]>;
|
|
32
36
|
private _data;
|
|
33
37
|
columns: ViewStMaterialTableColumnModel[];
|
|
34
38
|
selectedColumns: ViewStMaterialTableColumnModel[];
|
|
@@ -44,6 +48,7 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
44
48
|
[prop: string]: any;
|
|
45
49
|
};
|
|
46
50
|
};
|
|
51
|
+
selection: SelectionModel<any>;
|
|
47
52
|
private localStorageData;
|
|
48
53
|
constructor(changeDetectorRef: ChangeDetectorRef, snackbar: StSnackBarService);
|
|
49
54
|
ngOnInit(): void;
|
|
@@ -53,6 +58,10 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
53
58
|
editRow(row: any, column: ViewStMaterialTableColumnModel): void;
|
|
54
59
|
saveEditRow(row: any, column: ViewStMaterialTableColumnModel): void;
|
|
55
60
|
cancelEditRow(row: any, column: ViewStMaterialTableColumnModel): void;
|
|
61
|
+
isAllSelected(): boolean;
|
|
62
|
+
toggleAllRows(): void;
|
|
63
|
+
removeSelectedRow(row: any): void;
|
|
64
|
+
selectRowChanged(value: boolean, row: any): void;
|
|
56
65
|
private createCustomFilterForLocalTable;
|
|
57
66
|
private emitLazyLoading;
|
|
58
67
|
private updateDataToLocalStorage;
|
|
@@ -65,7 +74,7 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
65
74
|
private loadLocalStorageData;
|
|
66
75
|
private setNewEmptyLocalStorageData;
|
|
67
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTableComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "ngx-st-material-table", never, { "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; }; "tableTitle": { "alias": "tableTitle"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "dataLength": { "alias": "dataLength"; "required": false; }; "allowPickColumns": { "alias": "allowPickColumns"; "required": false; }; "allowReorderColumns": { "alias": "allowReorderColumns"; "required": false; }; "localStorageName": { "alias": "localStorageName"; "required": false; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "initColumns": { "alias": "initColumns"; "required": false; }; "rowClickAction": { "alias": "rowClickAction"; "required": false; }; "data": { "alias": "data"; "required": false; }; "rowEditing": { "alias": "rowEditing"; "required": false; }; }, { "loadData": "loadData"; "saveNewRow": "saveNewRow"; }, never, never, false, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "ngx-st-material-table", never, { "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; }; "tableTitle": { "alias": "tableTitle"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "dataLength": { "alias": "dataLength"; "required": false; }; "allowPickColumns": { "alias": "allowPickColumns"; "required": false; }; "allowReorderColumns": { "alias": "allowReorderColumns"; "required": false; }; "localStorageName": { "alias": "localStorageName"; "required": false; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "initColumns": { "alias": "initColumns"; "required": false; }; "rowClickAction": { "alias": "rowClickAction"; "required": false; }; "data": { "alias": "data"; "required": false; }; "rowEditing": { "alias": "rowEditing"; "required": false; }; "rowSelecting": { "alias": "rowSelecting"; "required": false; }; "selectionFieldLabel": { "alias": "selectionFieldLabel"; "required": false; }; }, { "loadData": "loadData"; "saveNewRow": "saveNewRow"; "selectRowChange": "selectRowChange"; }, never, never, false, never>;
|
|
69
78
|
}
|
|
70
79
|
export interface StMaterialTableLoadData {
|
|
71
80
|
first: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export type StMaterialColumnType = 'string' | 'number' | 'boolean' | 'date' | 'custom-template' | 'actions-row-editing' | 'actions';
|
|
2
|
+
export type StMaterialColumnType = 'string' | 'number' | 'boolean' | 'date' | 'custom-template' | 'actions-row-editing' | 'actions' | 'actions-row-selecting';
|
|
3
3
|
export type StMaterialColumnFilterType = 'string' | 'number' | 'boolean' | 'date' | 'custom';
|
|
4
4
|
export interface StMaterialTableColumnModel {
|
|
5
5
|
field: string;
|