@masterteam/components 0.0.115 → 0.0.116
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-drawer.mjs +6 -6
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +252 -33
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +25 -8
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-progress.mjs +10 -2
- package/fesm2022/masterteam-components-progress.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 +395 -45
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +2 -2
- package/types/masterteam-components-drawer.d.ts +1 -1
- package/types/masterteam-components-entities.d.ts +28 -5
- package/types/masterteam-components-formula.d.ts +8 -1
- package/types/masterteam-components-progress.d.ts +2 -0
- package/types/masterteam-components-table.d.ts +27 -1
|
@@ -445,6 +445,8 @@ declare class FormulaToolbar {
|
|
|
445
445
|
readonly operators: _angular_core.InputSignal<OperatorDefinition[]>;
|
|
446
446
|
/** Initial active tab */
|
|
447
447
|
readonly initialTab: _angular_core.InputSignal<ToolbarTab>;
|
|
448
|
+
/** Tabs visible in the toolbar */
|
|
449
|
+
readonly visibleTabs: _angular_core.InputSignal<readonly ToolbarTab[]>;
|
|
448
450
|
/** Placeholder for search input */
|
|
449
451
|
readonly searchPlaceholder: _angular_core.InputSignal<string>;
|
|
450
452
|
/** Labels */
|
|
@@ -467,6 +469,11 @@ declare class FormulaToolbar {
|
|
|
467
469
|
label: string;
|
|
468
470
|
value: ToolbarTab;
|
|
469
471
|
}[];
|
|
472
|
+
/** Tabs actually rendered */
|
|
473
|
+
readonly resolvedTabOptions: _angular_core.Signal<{
|
|
474
|
+
label: string;
|
|
475
|
+
value: ToolbarTab;
|
|
476
|
+
}[]>;
|
|
470
477
|
/** Context for custom properties template */
|
|
471
478
|
protected readonly propertiesTemplateContext: FormulaToolbarPropertiesContext;
|
|
472
479
|
/** Resolve properties template (projected first, input fallback) */
|
|
@@ -519,7 +526,7 @@ declare class FormulaToolbar {
|
|
|
519
526
|
/** Clear custom value input */
|
|
520
527
|
clearCustomValue(): void;
|
|
521
528
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormulaToolbar, never>;
|
|
522
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormulaToolbar, "mt-formula-toolbar", never, { "knownProperties": { "alias": "knownProperties"; "required": false; "isSignal": true; }; "propertiesTemplate": { "alias": "propertiesTemplate"; "required": false; "isSignal": true; }; "functionCategories": { "alias": "functionCategories"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "initialTab": { "alias": "initialTab"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "onBlockInsert": "onBlockInsert"; "onTabChange": "onTabChange"; }, ["projectedPropertiesTemplate"], never, true, never>;
|
|
529
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormulaToolbar, "mt-formula-toolbar", never, { "knownProperties": { "alias": "knownProperties"; "required": false; "isSignal": true; }; "propertiesTemplate": { "alias": "propertiesTemplate"; "required": false; "isSignal": true; }; "functionCategories": { "alias": "functionCategories"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "initialTab": { "alias": "initialTab"; "required": false; "isSignal": true; }; "visibleTabs": { "alias": "visibleTabs"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "onBlockInsert": "onBlockInsert"; "onTabChange": "onTabChange"; }, ["projectedPropertiesTemplate"], never, true, never>;
|
|
523
530
|
}
|
|
524
531
|
|
|
525
532
|
declare const DEFAULT_OPERATORS: OperatorDefinition[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class Progress {
|
|
4
|
+
private static readonly DEFAULT_PRIMARY_COLOR;
|
|
4
5
|
value: _angular_core.InputSignal<number>;
|
|
5
6
|
mode: _angular_core.InputSignal<"linear" | "circle">;
|
|
6
7
|
showLabel: _angular_core.InputSignal<boolean>;
|
|
@@ -13,6 +14,7 @@ declare class Progress {
|
|
|
13
14
|
strokeWidth: _angular_core.InputSignal<number>;
|
|
14
15
|
customClass: _angular_core.InputSignal<string>;
|
|
15
16
|
labelTemplate: _angular_core.Signal<string>;
|
|
17
|
+
readonly resolvedColor: _angular_core.Signal<string>;
|
|
16
18
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Progress, never>;
|
|
17
19
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Progress, "mt-progress", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "circleSize": { "alias": "circleSize"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
20
|
}
|
|
@@ -63,7 +63,9 @@ interface ColumnDef {
|
|
|
63
63
|
type?: ColumnType;
|
|
64
64
|
customCellTpl?: TemplateRef<any>;
|
|
65
65
|
filterConfig?: FilterConfig;
|
|
66
|
+
sortable?: boolean;
|
|
66
67
|
readonly?: boolean;
|
|
68
|
+
width?: string;
|
|
67
69
|
}
|
|
68
70
|
interface TableAction {
|
|
69
71
|
icon?: MTIcon | undefined;
|
|
@@ -120,6 +122,8 @@ declare class Table {
|
|
|
120
122
|
currentPage: _angular_core.ModelSignal<number>;
|
|
121
123
|
first: _angular_core.ModelSignal<number>;
|
|
122
124
|
filterTerm: _angular_core.ModelSignal<string>;
|
|
125
|
+
sortField: _angular_core.WritableSignal<string | null>;
|
|
126
|
+
sortDirection: _angular_core.WritableSignal<"asc" | "desc" | null>;
|
|
123
127
|
confirmationService: ConfirmationService;
|
|
124
128
|
protected selectedRows: _angular_core.WritableSignal<Set<any>>;
|
|
125
129
|
protected exportColumns: _angular_core.Signal<{
|
|
@@ -130,7 +134,9 @@ declare class Table {
|
|
|
130
134
|
type?: _masterteam_components_table.ColumnType;
|
|
131
135
|
customCellTpl?: TemplateRef<any>;
|
|
132
136
|
filterConfig?: _masterteam_components_table.FilterConfig;
|
|
137
|
+
sortable?: boolean;
|
|
133
138
|
readonly?: boolean;
|
|
139
|
+
width?: string;
|
|
134
140
|
}[]>;
|
|
135
141
|
protected activeFilterCount: _angular_core.Signal<number>;
|
|
136
142
|
protected filteredData: _angular_core.Signal<any[]>;
|
|
@@ -150,6 +156,9 @@ declare class Table {
|
|
|
150
156
|
handleLazyLoad(event: any): void;
|
|
151
157
|
onPaginatorPage(event: any): void;
|
|
152
158
|
onSearchChange(searchTerm: string): void;
|
|
159
|
+
toggleSort(column: ColumnDef): void;
|
|
160
|
+
isColumnSortable(column: ColumnDef): boolean;
|
|
161
|
+
getSortIcon(column: ColumnDef): MTIcon;
|
|
153
162
|
onCellChange(row: any, columnKey: string, newValue: any, type?: ColumnTypeForActionCell): void;
|
|
154
163
|
resolveActionLoading(action: TableAction, row: any): boolean | undefined;
|
|
155
164
|
getVisibleRowActions(row: any): TableAction[];
|
|
@@ -171,6 +180,10 @@ declare class Table {
|
|
|
171
180
|
getEntityColumnData(row: any, col: ColumnDef): EntityData | null;
|
|
172
181
|
protected getBooleanProperty(obj: any, key: string): boolean;
|
|
173
182
|
private setProperty;
|
|
183
|
+
private sortData;
|
|
184
|
+
private getSortValue;
|
|
185
|
+
private getColumnResolvedValue;
|
|
186
|
+
private buildExportRows;
|
|
174
187
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
175
188
|
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; }; "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; }; "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; }; "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; }; "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>;
|
|
176
189
|
}
|
|
@@ -188,7 +201,20 @@ declare class TableFilter implements ControlValueAccessor {
|
|
|
188
201
|
}[];
|
|
189
202
|
private onChange;
|
|
190
203
|
private onTouched;
|
|
191
|
-
protected filterableColumns: _angular_core.Signal<
|
|
204
|
+
protected filterableColumns: _angular_core.Signal<{
|
|
205
|
+
filterConfig: {
|
|
206
|
+
type: "boolean" | "text" | "select" | "date" | "user";
|
|
207
|
+
label?: string;
|
|
208
|
+
options?: FilterOption[];
|
|
209
|
+
};
|
|
210
|
+
key: string;
|
|
211
|
+
label: string;
|
|
212
|
+
type?: _masterteam_components_table.ColumnType;
|
|
213
|
+
customCellTpl?: _angular_core.TemplateRef<any>;
|
|
214
|
+
sortable?: boolean;
|
|
215
|
+
readonly?: boolean;
|
|
216
|
+
width?: string;
|
|
217
|
+
}[]>;
|
|
192
218
|
protected activeFilterCount: _angular_core.Signal<number>;
|
|
193
219
|
protected getFilterType(col: ColumnDef): string;
|
|
194
220
|
protected getFilterValue(key: string): any;
|