@shival99/z-ui 1.9.20 → 1.9.21
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.21",
|
|
4
4
|
"description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 20+, featuring 40+ customizable components with dark mode, accessibility, and enterprise-ready features.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -215,8 +215,15 @@ interface ZTableBodyColumnConfig<T> {
|
|
|
215
215
|
contentClass?: string | ((info: CellContext<T, unknown>) => string);
|
|
216
216
|
contentStyle?: Record<string, string> | ((info: CellContext<T, unknown>) => Record<string, string>);
|
|
217
217
|
tooltip?: string | ZTooltipConfig | ((info: CellContext<T, unknown>) => string | ZTooltipConfig);
|
|
218
|
-
/**
|
|
219
|
-
|
|
218
|
+
/**
|
|
219
|
+
* Action buttons rendered inside this cell.
|
|
220
|
+
*
|
|
221
|
+
* Preferred: pass an action array or `(row) => action[]` directly.
|
|
222
|
+
* Deprecated compatibility: `{ actions, maxVisible }` is still supported.
|
|
223
|
+
*/
|
|
224
|
+
actions?: ZTableActionBodyConfig<T>;
|
|
225
|
+
/** Maximum visible action buttons before rendering the overflow menu. */
|
|
226
|
+
actionMaxVisible?: number;
|
|
220
227
|
/** When true, clicking the cell emits a cellClick event */
|
|
221
228
|
enabledClick?: boolean;
|
|
222
229
|
/** Enable inline editing — true uses defaults, or pass full config */
|
|
@@ -363,17 +370,25 @@ interface ZTableActionItem<T = unknown> {
|
|
|
363
370
|
hidden?: boolean | ((row: T) => boolean);
|
|
364
371
|
divide?: 'before' | 'after';
|
|
365
372
|
}
|
|
373
|
+
type ZTableActionList<T = unknown> = ZTableActionItem<T>[] | ((row: T) => ZTableActionItem<T>[]);
|
|
366
374
|
interface ZTableActionClickEvent<T = unknown> {
|
|
367
375
|
key: string;
|
|
368
376
|
row: T;
|
|
369
377
|
rowId: string;
|
|
370
378
|
action: ZTableActionItem<T>;
|
|
371
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* @deprecated Use `ZTableBodyColumnConfig.actions` directly with an action array
|
|
382
|
+
* or `(row) => action[]`, and set `actionMaxVisible` on the body config when needed.
|
|
383
|
+
*/
|
|
372
384
|
interface ZTableActionColumnConfig<T = unknown> {
|
|
373
|
-
/**
|
|
374
|
-
|
|
385
|
+
/**
|
|
386
|
+
* @deprecated Put the action array/function directly in `body.actions` instead.
|
|
387
|
+
*/
|
|
388
|
+
actions: ZTableActionList<T>;
|
|
375
389
|
maxVisible?: number;
|
|
376
390
|
}
|
|
391
|
+
type ZTableActionBodyConfig<T = unknown> = ZTableActionColumnConfig<T> | (ZTableActionList<T> & Partial<ZTableActionColumnConfig<T>>);
|
|
377
392
|
/** All possible change event types — used as discriminant in ZTableChangeEvent */
|
|
378
393
|
type ZTableChangeType = 'page' | 'sort' | 'filter' | 'search' | 'select' | 'expand' | 'rowSelect' | 'rowSelectAll' | 'rowExpand' | 'rowDrag' | 'cellClick' | 'cellEdit' | 'action';
|
|
379
394
|
interface ZTableChangeEventBase {
|
|
@@ -894,6 +909,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
894
909
|
private _isColumnSortModeLocal;
|
|
895
910
|
private _filterServerModeColumnFilters;
|
|
896
911
|
private _filterServerModeSorting;
|
|
912
|
+
private _getActionColumnConfig;
|
|
897
913
|
/**
|
|
898
914
|
* Recursively finds a column config by ID with caching.
|
|
899
915
|
* Cache is invalidated when the column array reference changes.
|
|
@@ -1103,4 +1119,4 @@ declare const findColumnConfig: <T>(columnId: string, columns: ZTableColumnConfi
|
|
|
1103
1119
|
declare function columnConfigToColumnDef<T>(config: ZTableColumnConfig<T>): ColumnDef<T>;
|
|
1104
1120
|
|
|
1105
1121
|
export { ZTableActionsComponent, ZTableComponent, ZTableEditCellComponent, ZTableFilterComponent, ZTableIconTextComponent, columnConfigToColumnDef, findColumnConfig, getBodyConfig, getFooterConfig, getHeaderConfig, isBodyConfig, isFooterConfig, isHeaderConfig };
|
|
1106
|
-
export type { ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableCellEditChange, ZTableCellEditEvent, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableEditCellChangeEvent, ZTableEditConfig, ZTableEditSize, ZTableEditType, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSearchConfig, ZTableSortChangeEvent, ZTableSortConfig };
|
|
1122
|
+
export type { ZTableActionBodyConfig, ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableActionList, ZTableCellEditChange, ZTableCellEditEvent, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableEditCellChangeEvent, ZTableEditConfig, ZTableEditSize, ZTableEditType, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSearchConfig, ZTableSortChangeEvent, ZTableSortConfig };
|