ngx-st-tables 17.0.13 → 17.0.15
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/assets/base-table.scss +6 -4
- package/esm2022/lib/components/local-table/local-table.component.mjs +2 -2
- package/esm2022/lib/components/material-table/material-table-caption/material-table-caption.component.mjs +13 -7
- package/esm2022/lib/components/material-table/material-table-caption/material-table-filter-dialog/material-table-filter-dialog.component.mjs +15 -6
- package/esm2022/lib/components/material-table/material-table-row-cell/material-table-row-cell.component.mjs +6 -3
- package/esm2022/lib/components/material-table/material-table.component.mjs +54 -54
- package/esm2022/lib/components/select-table/select-table.component.mjs +2 -2
- package/esm2022/lib/models/st-material-table-column.model.mjs +1 -1
- package/fesm2022/ngx-st-tables.mjs +89 -72
- package/fesm2022/ngx-st-tables.mjs.map +1 -1
- package/lib/components/material-table/material-table-caption/material-table-caption.component.d.ts +1 -0
- package/lib/components/material-table/material-table-caption/material-table-filter-dialog/material-table-filter-dialog.component.d.ts +1 -0
- 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 +2 -3
- package/lib/models/st-material-table-column.model.d.ts +1 -1
- package/package.json +1 -1
package/lib/components/material-table/material-table-caption/material-table-caption.component.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare class MaterialTableCaptionComponent extends StSubscribeDestroyCom
|
|
|
30
30
|
openFilterDialog(): void;
|
|
31
31
|
openReorderColumnsDialog(): void;
|
|
32
32
|
resetTable(): void;
|
|
33
|
+
clearAllFilters(): void;
|
|
33
34
|
private emitCaptionDataChanged;
|
|
34
35
|
private updateColumns;
|
|
35
36
|
private setActiveFiltersCount;
|
|
@@ -23,6 +23,7 @@ export declare class MaterialTableFilterDialogComponent implements OnInit {
|
|
|
23
23
|
};
|
|
24
24
|
}, dialogRef: MatDialogRef<MaterialTableFilterDialogComponent, MaterialTableFilterDialogResult>, fb: NonNullableFormBuilder, changeDetectorRef: ChangeDetectorRef);
|
|
25
25
|
ngOnInit(): void;
|
|
26
|
+
clearAllFilters(): void;
|
|
26
27
|
showAllFilters(): void;
|
|
27
28
|
hideAllFilters(): void;
|
|
28
29
|
saveFilters(): void;
|
package/lib/components/material-table/material-table-row-cell/material-table-row-cell.component.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare class MaterialTableRowCellComponent implements OnInit {
|
|
|
7
7
|
rowData: {
|
|
8
8
|
[prop: string]: any;
|
|
9
9
|
};
|
|
10
|
+
rowEditing: boolean;
|
|
10
11
|
mobileView: boolean;
|
|
11
12
|
actionIconColorDef: {
|
|
12
13
|
[key: string]: 'primary' | 'warn';
|
|
@@ -14,6 +15,10 @@ export declare class MaterialTableRowCellComponent implements OnInit {
|
|
|
14
15
|
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
private checkWidthSize;
|
|
18
|
+
protected readonly PluginArray: {
|
|
19
|
+
new (): PluginArray;
|
|
20
|
+
prototype: PluginArray;
|
|
21
|
+
};
|
|
17
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTableRowCellComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableRowCellComponent, "st-material-table-row-cell", never, { "column": { "alias": "column"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableRowCellComponent, "st-material-table-row-cell", never, { "column": { "alias": "column"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "rowEditing": { "alias": "rowEditing"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
24
|
}
|
|
@@ -3,7 +3,6 @@ import { MatPaginator } from '@angular/material/paginator';
|
|
|
3
3
|
import { MatSort, SortDirection } from '@angular/material/sort';
|
|
4
4
|
import { StGlobalSearchSettingsModel } from '../../models/st-global-search-settings.model';
|
|
5
5
|
import { MatTableDataSource } from '@angular/material/table';
|
|
6
|
-
import { LocalTableActionColumnModel } from '../../models/st-local-table-column.model';
|
|
7
6
|
import { StMaterialTableColumnModel } from '../../models/st-material-table-column.model';
|
|
8
7
|
import { ViewStMaterialTableColumnModel } from '../../models/view/view-st-material-table-column.model';
|
|
9
8
|
import { ICaptionDataChanged } from './material-table-caption/material-table-caption.component';
|
|
@@ -25,6 +24,7 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
25
24
|
rowClickAction: ((row: any) => void) | undefined;
|
|
26
25
|
set data(data: any[]);
|
|
27
26
|
get data(): any[];
|
|
27
|
+
rowEditing: boolean;
|
|
28
28
|
loadData: EventEmitter<StMaterialTableLoadData>;
|
|
29
29
|
private _data;
|
|
30
30
|
columns: ViewStMaterialTableColumnModel[];
|
|
@@ -41,7 +41,6 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
41
41
|
ngOnInit(): void;
|
|
42
42
|
ngAfterViewInit(): void;
|
|
43
43
|
captionDataChanged(event: ICaptionDataChanged): void;
|
|
44
|
-
checkIfActionVisible(row: any, action: LocalTableActionColumnModel): boolean;
|
|
45
44
|
resetTableSettings(): void;
|
|
46
45
|
private createCustomFilterForLocalTable;
|
|
47
46
|
private emitLazyLoading;
|
|
@@ -55,7 +54,7 @@ export declare class MaterialTableComponent extends StSubscribeDestroyComponent
|
|
|
55
54
|
private loadLocalStorageData;
|
|
56
55
|
private setNewEmptyLocalStorageData;
|
|
57
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTableComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "ngx-st-material-table", never, { "globalSearchSettings": { "alias": "globalSearchSettings"; "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; }; }, { "loadData": "loadData"; }, never, never, false, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTableComponent, "ngx-st-material-table", never, { "globalSearchSettings": { "alias": "globalSearchSettings"; "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"; }, never, never, false, never>;
|
|
59
58
|
}
|
|
60
59
|
export interface StMaterialTableLoadData {
|
|
61
60
|
first: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export type StMaterialColumnType = 'string' | 'number' | 'boolean' | 'date' | 'custom-template';
|
|
2
|
+
export type StMaterialColumnType = 'string' | 'number' | 'boolean' | 'date' | 'custom-template' | 'actions-row-editing' | 'actions';
|
|
3
3
|
export type StMaterialColumnFilterType = 'string' | 'number' | 'boolean' | 'date' | 'custom';
|
|
4
4
|
export interface StMaterialTableColumnModel {
|
|
5
5
|
field: string;
|