@masterteam/components 0.0.141 → 0.0.142
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/common.css +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +2 -2
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +2 -2
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +4 -4
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-paginator.mjs +2 -3
- package/fesm2022/masterteam-components-paginator.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +2 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-statistic-card.mjs +2 -2
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +69 -27
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +58 -234
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +11 -10
- package/types/masterteam-components-table.d.ts +10 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as _masterteam_components_table from '@masterteam/components/table';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
3
2
|
import { TemplateRef } from '@angular/core';
|
|
4
3
|
import { MTIcon } from '@masterteam/icons';
|
|
5
4
|
import { ConfirmationConfig, ConfirmationService } from '@masterteam/components/confirmation';
|
|
6
|
-
import {
|
|
5
|
+
import { TablePageEvent } from 'primeng/table';
|
|
7
6
|
import { EntityData } from '@masterteam/components/entities';
|
|
7
|
+
import * as _masterteam_components_table from '@masterteam/components/table';
|
|
8
8
|
import { ControlValueAccessor } from '@angular/forms';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -117,6 +117,7 @@ declare class Table {
|
|
|
117
117
|
exportable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
118
118
|
exportFilename: _angular_core.InputSignal<string>;
|
|
119
119
|
actionShape: _angular_core.InputSignal<TableActionShape>;
|
|
120
|
+
tableLayout: _angular_core.InputSignal<"fixed" | "auto">;
|
|
120
121
|
tabs: _angular_core.InputSignal<any[] | undefined>;
|
|
121
122
|
tabsOptionLabel: _angular_core.InputSignal<string | undefined>;
|
|
122
123
|
tabsOptionValue: _angular_core.InputSignal<string | undefined>;
|
|
@@ -126,8 +127,8 @@ declare class Table {
|
|
|
126
127
|
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
127
128
|
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
128
129
|
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
129
|
-
protected tableRef: _angular_core.Signal<Table$1<any> | undefined>;
|
|
130
130
|
paginatorPosition: _angular_core.InputSignal<"end" | "start" | "center">;
|
|
131
|
+
alwaysShowPaginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
131
132
|
rowsPerPageOptions: _angular_core.InputSignal<number[]>;
|
|
132
133
|
pageSize: _angular_core.ModelSignal<number>;
|
|
133
134
|
currentPage: _angular_core.ModelSignal<number>;
|
|
@@ -140,19 +141,6 @@ declare class Table {
|
|
|
140
141
|
protected transientSelectedRows: _angular_core.WritableSignal<Set<any>>;
|
|
141
142
|
private readonly hydratedStorageKey;
|
|
142
143
|
private readonly storageHydrated;
|
|
143
|
-
protected exportColumns: _angular_core.Signal<{
|
|
144
|
-
field: string;
|
|
145
|
-
header: string;
|
|
146
|
-
key: string;
|
|
147
|
-
label: string;
|
|
148
|
-
type?: _masterteam_components_table.ColumnType;
|
|
149
|
-
customCellTpl?: TemplateRef<any>;
|
|
150
|
-
filterConfig?: _masterteam_components_table.FilterConfig;
|
|
151
|
-
statusMap?: Record<string, _masterteam_components_table.TableStatusMapValue>;
|
|
152
|
-
sortable?: boolean;
|
|
153
|
-
readonly?: boolean;
|
|
154
|
-
width?: string;
|
|
155
|
-
}[]>;
|
|
156
144
|
protected activeFilterCount: _angular_core.Signal<number>;
|
|
157
145
|
protected filteredData: _angular_core.Signal<any[]>;
|
|
158
146
|
protected displayData: _angular_core.Signal<any[]>;
|
|
@@ -183,7 +171,7 @@ declare class Table {
|
|
|
183
171
|
onRowClick(event: MouseEvent, row: any): void;
|
|
184
172
|
protected updatePagingFromEvent(event: any): void;
|
|
185
173
|
protected emitLazyLoad(event: any): void;
|
|
186
|
-
|
|
174
|
+
exportExcel(): void;
|
|
187
175
|
rowAction(event: Event, action: TableAction, row: any): void;
|
|
188
176
|
private buildUserEntityData;
|
|
189
177
|
private buildStatusEntityData;
|
|
@@ -210,11 +198,14 @@ declare class Table {
|
|
|
210
198
|
private getSortValue;
|
|
211
199
|
private getColumnResolvedValue;
|
|
212
200
|
private buildExportRows;
|
|
201
|
+
private buildExcelRows;
|
|
213
202
|
protected isRowSelected(row: Record<string, unknown>): boolean;
|
|
203
|
+
protected getColumnMinWidth(column: ColumnDef): string | null;
|
|
214
204
|
private emitSelectionChange;
|
|
215
205
|
private getSelectedRows;
|
|
216
206
|
private getRowSelectionKey;
|
|
217
207
|
private getNormalizedStorageKey;
|
|
208
|
+
private normalizeExportFilename;
|
|
218
209
|
private getStorage;
|
|
219
210
|
private buildPersistedState;
|
|
220
211
|
private applyPersistedState;
|
|
@@ -222,9 +213,10 @@ declare class Table {
|
|
|
222
213
|
private readPersistedState;
|
|
223
214
|
private writePersistedState;
|
|
224
215
|
private toPositiveInteger;
|
|
216
|
+
private normalizePersistedPageSize;
|
|
225
217
|
private toNonNegativeInteger;
|
|
226
218
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
227
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
219
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "tableLayout": { "alias": "tableLayout"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "alwaysShowPaginator": { "alias": "alwaysShowPaginator"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
228
220
|
}
|
|
229
221
|
|
|
230
222
|
declare class TableFilter implements ControlValueAccessor {
|