@shival99/z-ui 2.0.69 → 2.0.71
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": "2.0.
|
|
3
|
+
"version": "2.0.71",
|
|
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",
|
|
@@ -72,6 +72,12 @@ type ZTableCellContent<T> = string | number | TemplateRef<{
|
|
|
72
72
|
type ZTableHeaderContent<T> = string | TemplateRef<unknown> | Type<unknown> | (() => string) | ((info: HeaderContext<T, unknown>) => string);
|
|
73
73
|
/** Alias for ZTableColumnConfig — kept for backward compatibility */
|
|
74
74
|
type ZTableColumn<T = unknown> = ZTableColumnConfig<T>;
|
|
75
|
+
interface ZTableGroupLabelContext<T> {
|
|
76
|
+
value: unknown;
|
|
77
|
+
columnId: string;
|
|
78
|
+
rows: Row<T>[];
|
|
79
|
+
}
|
|
80
|
+
type ZTableGroupLabelFormatter<T> = (context: ZTableGroupLabelContext<T>) => string;
|
|
75
81
|
/** Available column filter value input hints */
|
|
76
82
|
type ZTableFilterValueType = 'text' | 'number';
|
|
77
83
|
type ZTableFilterUi = 'basic' | 'advanced' | 'custom';
|
|
@@ -346,6 +352,10 @@ interface ZTableColumnConfig<T> {
|
|
|
346
352
|
enablePinning?: boolean;
|
|
347
353
|
enableHiding?: boolean;
|
|
348
354
|
enableOrdering?: boolean;
|
|
355
|
+
/** Whether this column can be used from the header "Group by" menu */
|
|
356
|
+
enableGrouping?: boolean;
|
|
357
|
+
/** Format the displayed group header value for this column */
|
|
358
|
+
groupLabel?: ZTableGroupLabelFormatter<T>;
|
|
349
359
|
enableHeaderMenu?: boolean;
|
|
350
360
|
/** Initial pin position — applied on first render */
|
|
351
361
|
pinned?: 'left' | 'right' | false;
|
|
@@ -1473,6 +1483,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
1473
1483
|
private _filterServerModeColumnFilters;
|
|
1474
1484
|
private _filterServerModeSorting;
|
|
1475
1485
|
private _getGroupId;
|
|
1486
|
+
private _getColumnGroupLabel;
|
|
1476
1487
|
private _getGroupLabel;
|
|
1477
1488
|
private _getActionColumnConfig;
|
|
1478
1489
|
/**
|
|
@@ -1494,7 +1505,7 @@ declare class ZTableFilterComponent<T> {
|
|
|
1494
1505
|
protected readonly sortOptions: _angular_core.Signal<ZSelectOption<string>[]>;
|
|
1495
1506
|
protected readonly draftFilters: _angular_core.WritableSignal<ZTableDraftFilterCondition[]>;
|
|
1496
1507
|
protected readonly draftLegacyFilterValue: _angular_core.WritableSignal<unknown>;
|
|
1497
|
-
protected readonly draftSortState: _angular_core.WritableSignal<false | "
|
|
1508
|
+
protected readonly draftSortState: _angular_core.WritableSignal<false | "desc" | "asc">;
|
|
1498
1509
|
protected readonly columnFilterValue: _angular_core.Signal<unknown>;
|
|
1499
1510
|
protected readonly effectiveFilterValue: _angular_core.Signal<unknown>;
|
|
1500
1511
|
protected readonly sortState: _angular_core.Signal<false | _tanstack_angular_table.SortDirection>;
|
|
@@ -1516,7 +1527,7 @@ declare class ZTableFilterComponent<T> {
|
|
|
1516
1527
|
protected readonly filterBadgeCount: _angular_core.Signal<number>;
|
|
1517
1528
|
protected readonly hasFilterValue: _angular_core.Signal<boolean>;
|
|
1518
1529
|
protected readonly isActive: _angular_core.Signal<boolean>;
|
|
1519
|
-
protected readonly draftSortValue: _angular_core.Signal<"
|
|
1530
|
+
protected readonly draftSortValue: _angular_core.Signal<"none" | "desc" | "asc">;
|
|
1520
1531
|
protected readonly rangeMinValue: _angular_core.Signal<any>;
|
|
1521
1532
|
protected readonly rangeMaxValue: _angular_core.Signal<any>;
|
|
1522
1533
|
protected readonly dateValue: _angular_core.Signal<Date | null>;
|