@masterteam/components 0.0.224 → 0.0.225
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/i18n/ar.json +1 -0
- package/assets/i18n/en.json +1 -0
- package/fesm2022/masterteam-components-sidebar.mjs +8 -3
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +11 -2
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-table.d.ts +14 -4
package/package.json
CHANGED
|
@@ -74,6 +74,7 @@ interface CellChangeEvent {
|
|
|
74
74
|
}
|
|
75
75
|
type ColumnTypeForActionCell = 'boolean';
|
|
76
76
|
type TableActionShape = 'flat' | 'popover';
|
|
77
|
+
type TableActionPlacement = 'menu' | 'inline';
|
|
77
78
|
/**
|
|
78
79
|
* Filter UX mode for a table.
|
|
79
80
|
*
|
|
@@ -138,11 +139,17 @@ interface TableAction {
|
|
|
138
139
|
icon?: MTIcon | undefined;
|
|
139
140
|
color?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast' | 'help' | 'primary';
|
|
140
141
|
variant?: 'text' | 'outlined' | undefined;
|
|
142
|
+
size?: 'small' | 'large' | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* In popover action mode, `inline` actions render as direct icon buttons
|
|
145
|
+
* before the three-dot menu. Defaults to `menu`.
|
|
146
|
+
*/
|
|
147
|
+
placement?: TableActionPlacement;
|
|
141
148
|
label?: string;
|
|
142
149
|
tooltip?: string;
|
|
143
150
|
hidden?: (row: any) => boolean;
|
|
144
151
|
action: (row: any) => void;
|
|
145
|
-
loading?: (row: any) => boolean;
|
|
152
|
+
loading?: boolean | ((row: any) => boolean);
|
|
146
153
|
confirmation?: TableActionConfirmationConfig;
|
|
147
154
|
}
|
|
148
155
|
|
|
@@ -281,7 +288,7 @@ declare class Table {
|
|
|
281
288
|
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
282
289
|
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
283
290
|
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
284
|
-
paginatorPosition: _angular_core.InputSignal<"
|
|
291
|
+
paginatorPosition: _angular_core.InputSignal<"end" | "start" | "center">;
|
|
285
292
|
alwaysShowPaginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
286
293
|
rowsPerPageOptions: _angular_core.InputSignal<number[]>;
|
|
287
294
|
pageSize: _angular_core.ModelSignal<number>;
|
|
@@ -290,7 +297,7 @@ declare class Table {
|
|
|
290
297
|
filterTerm: _angular_core.ModelSignal<string>;
|
|
291
298
|
groupBy: _angular_core.ModelSignal<string | null>;
|
|
292
299
|
sortField: _angular_core.WritableSignal<string | null>;
|
|
293
|
-
sortDirection: _angular_core.WritableSignal<"
|
|
300
|
+
sortDirection: _angular_core.WritableSignal<"asc" | "desc" | null>;
|
|
294
301
|
confirmationService: ConfirmationService;
|
|
295
302
|
private readonly exportService;
|
|
296
303
|
private readonly transloco;
|
|
@@ -364,6 +371,9 @@ declare class Table {
|
|
|
364
371
|
onCellChange(row: any, columnKey: string, newValue: any, type?: ColumnTypeForActionCell): void;
|
|
365
372
|
resolveActionLoading(action: TableAction, row: any): boolean | undefined;
|
|
366
373
|
getVisibleRowActions(row: any): TableAction[];
|
|
374
|
+
getInlineRowActions(row: any): TableAction[];
|
|
375
|
+
getMenuRowActions(row: any): TableAction[];
|
|
376
|
+
shouldShowRowActionsPopover(row: any): boolean;
|
|
367
377
|
isRowActionsLoading(row: any): boolean;
|
|
368
378
|
onRowActionsToggle(event: Event, popover: {
|
|
369
379
|
toggle: (e: Event) => void;
|
|
@@ -724,4 +734,4 @@ declare class TableExportService {
|
|
|
724
734
|
}
|
|
725
735
|
|
|
726
736
|
export { Table, TableActionsMenu, TableCaption, TableColumnFilter, TableExportService, TableFilter, TableFilterField, TableGroupingController, TableValueResolver };
|
|
727
|
-
export type { CellChangeEvent, ColumnDef, ColumnType, ColumnTypeForActionCell, FilterConfig, FilterOption, FilterValue, TableAction, TableActionConfirmationConfig, TableActionShape, TableEntityUsage, TableExportConfig, TableExportValueResolver, TableFilterMode, TableFilters, TablePersistStateKey, TablePrintConfig, TableStatusMapValue };
|
|
737
|
+
export type { CellChangeEvent, ColumnDef, ColumnType, ColumnTypeForActionCell, FilterConfig, FilterOption, FilterValue, TableAction, TableActionConfirmationConfig, TableActionPlacement, TableActionShape, TableEntityUsage, TableExportConfig, TableExportValueResolver, TableFilterMode, TableFilters, TablePersistStateKey, TablePrintConfig, TableStatusMapValue };
|