@shival99/z-ui 2.0.37 → 2.0.39

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.37",
3
+ "version": "2.0.39",
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",
@@ -429,16 +429,16 @@ declare class ZCalendarComponent implements OnInit, ControlValueAccessor {
429
429
 
430
430
  declare const zCalendarVariants: (props?: ({
431
431
  zSize?: "sm" | "default" | "lg" | null | undefined;
432
- zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
432
+ zStatus?: "default" | "disabled" | "open" | "error" | "readonly" | null | undefined;
433
433
  } & class_variance_authority_types.ClassProp) | undefined) => string;
434
434
  declare const zCalendarDayVariants: (props?: ({
435
- state?: "default" | "disabled" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "otherMonth" | "hovered" | null | undefined;
435
+ state?: "default" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "disabled" | "otherMonth" | "hovered" | null | undefined;
436
436
  } & class_variance_authority_types.ClassProp) | undefined) => string;
437
437
  declare const zCalendarMonthVariants: (props?: ({
438
- state?: "default" | "current" | "disabled" | "selected" | null | undefined;
438
+ state?: "default" | "selected" | "disabled" | "current" | null | undefined;
439
439
  } & class_variance_authority_types.ClassProp) | undefined) => string;
440
440
  declare const zCalendarYearVariants: (props?: ({
441
- state?: "default" | "current" | "disabled" | "selected" | null | undefined;
441
+ state?: "default" | "selected" | "disabled" | "current" | null | undefined;
442
442
  } & class_variance_authority_types.ClassProp) | undefined) => string;
443
443
 
444
444
  export { ZCalendarComponent, zCalendarDayVariants, zCalendarMonthVariants, zCalendarVariants, zCalendarYearVariants };
@@ -7,11 +7,11 @@ import * as _angular_core from '@angular/core';
7
7
  import { TemplateRef, Type, AfterViewInit, ElementRef, OnInit } from '@angular/core';
8
8
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
9
9
  import { ConnectedPosition } from '@angular/cdk/overlay';
10
- import { ZButtonVariants } from '@shival99/z-ui/components/z-button';
11
10
  import { ZPopoverDirective } from '@shival99/z-ui/components/z-popover';
12
11
  import { ClassValue } from 'clsx';
13
12
  import { NgScrollbar } from 'ngx-scrollbar';
14
13
  import { ZAutocompleteType, ZAutocompleteOption } from '@shival99/z-ui/components/z-autocomplete';
14
+ import { ZButtonVariants } from '@shival99/z-ui/components/z-button';
15
15
  import { ZIcon, ZIconVariants } from '@shival99/z-ui/components/z-icon';
16
16
  import { ZSelectOption, ZSelectConfig } from '@shival99/z-ui/components/z-select';
17
17
  import * as _shival99_z_ui_components_z_tags from '@shival99/z-ui/components/z-tags';
@@ -309,6 +309,7 @@ interface ZTableColumnConfig<T> {
309
309
  enablePinning?: boolean;
310
310
  enableHiding?: boolean;
311
311
  enableOrdering?: boolean;
312
+ enableHeaderMenu?: boolean;
312
313
  /** Initial pin position — applied on first render */
313
314
  pinned?: 'left' | 'right' | false;
314
315
  /** Child columns for multi-level header grouping */
@@ -428,6 +429,9 @@ interface ZTableBulkActionViewItem<T = unknown> {
428
429
  action: ZTableBulkActionItem<T>;
429
430
  disabled: boolean;
430
431
  }
432
+ type ZTableBulkActionRenderItem<T = unknown> = ZTableBulkActionViewItem<T> & {
433
+ buttonType: ZButtonVariants['zType'];
434
+ };
431
435
  type ZTableBulkActionList<T = unknown> = ZTableBulkActionItem<T>[] | ((context: ZTableBulkActionContext<T>) => ZTableBulkActionItem<T>[]);
432
436
  interface ZTableBulkActionOptions<T = unknown> {
433
437
  enabled?: boolean;
@@ -752,10 +756,8 @@ declare module '@tanstack/angular-table' {
752
756
  }
753
757
  }
754
758
 
755
- type ZTableBulkActionRenderItem<T> = ZTableBulkActionViewItem<T> & {
756
- buttonType: ZButtonVariants['zType'];
757
- };
758
759
  declare class ZTableComponent<T> implements AfterViewInit {
760
+ private static _dragInstanceCount;
759
761
  /** Unified change event — parent listens to this for all table interactions */
760
762
  readonly zChange: _angular_core.OutputEmitterRef<ZTableChangeEvent<T>>;
761
763
  /** Emits an imperative control handle for programmatic table manipulation */
@@ -789,6 +791,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
789
791
  private _bulkBarTimer;
790
792
  private readonly _activeColumnVisibilityPopover;
791
793
  private _hasInitializedColumnPinning;
794
+ private _fitColumnScheduleId;
792
795
  private _isFitColumnScheduled;
793
796
  private _isApplyingFitColumnSizing;
794
797
  /** Merged loading state from both zLoading input and config.loading */
@@ -1026,10 +1029,12 @@ declare class ZTableComponent<T> implements AfterViewInit {
1026
1029
  private _handleColumnSizingChange;
1027
1030
  private _syncColumnBaseSizing;
1028
1031
  private _scheduleFitColumnWidths;
1032
+ private _cancelFitColumnSchedule;
1029
1033
  private _applyFitColumnWidths;
1030
1034
  private _setColumnSizingFromFit;
1031
1035
  private _getColumnBaseSize;
1032
1036
  private _isSameColumnSizing;
1037
+ private _reconcileColumnSizing;
1033
1038
  private _checkHorizontalScroll;
1034
1039
  private _updateScrollShadowState;
1035
1040
  hasRightPinnedColumns(): boolean;
@@ -1202,7 +1207,7 @@ declare class ZTableActionsComponent<T = unknown> {
1202
1207
  readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
1203
1208
  readonly zRow: _angular_core.InputSignal<T>;
1204
1209
  readonly zRowId: _angular_core.InputSignal<string>;
1205
- readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "lg" | "xs" | "xl" | null | undefined>;
1210
+ readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "sm" | "lg" | "xs" | "xl" | null | undefined>;
1206
1211
  readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
1207
1212
  protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
1208
1213
  protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;