@shival99/z-ui 2.0.69 → 2.0.70

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.69",
3
+ "version": "2.0.70",
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
  /**