@shival99/z-ui 2.0.35 → 2.0.36

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.35",
3
+ "version": "2.0.36",
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",
@@ -186,7 +186,7 @@ declare class ZGalleryComponent implements AfterViewInit {
186
186
  protected readonly headerControlHeight: _angular_core.Signal<"1.75rem" | "2rem" | "2.5rem" | "2.25rem">;
187
187
  protected readonly skeletonMediaHeight: _angular_core.Signal<"9rem" | "14rem" | "11rem">;
188
188
  protected readonly toggleIconSize: _angular_core.Signal<"14" | "16" | "20" | "18">;
189
- protected readonly searchInputSize: _angular_core.Signal<"default" | "sm" | "lg">;
189
+ protected readonly searchInputSize: _angular_core.Signal<"sm" | "default" | "lg">;
190
190
  protected readonly filteredFiles: _angular_core.Signal<ZGalleryFile[]>;
191
191
  protected readonly selectedIds: _angular_core.Signal<Set<string>>;
192
192
  protected readonly isAllSelected: _angular_core.Signal<boolean>;
@@ -380,16 +380,16 @@ declare const isPreviewable: (file: ZGalleryFile) => boolean;
380
380
  declare const isImage: (file: ZGalleryFile) => boolean;
381
381
 
382
382
  declare const zGalleryVariants: (props?: ({
383
- zSize?: "default" | "sm" | "lg" | null | undefined;
383
+ zSize?: "sm" | "default" | "lg" | null | undefined;
384
384
  } & class_variance_authority_types.ClassProp) | undefined) => string;
385
385
  type ZGalleryVariants = VariantProps<typeof zGalleryVariants>;
386
386
  declare const zGalleryItemVariants: (props?: ({
387
387
  zMode?: "grid" | "list" | null | undefined;
388
- zSize?: "default" | "sm" | "lg" | null | undefined;
388
+ zSize?: "sm" | "default" | "lg" | null | undefined;
389
389
  } & class_variance_authority_types.ClassProp) | undefined) => string;
390
390
  type ZGalleryItemVariants = VariantProps<typeof zGalleryItemVariants>;
391
391
  declare const zGalleryFileIconVariants: (props?: ({
392
- zSize?: "default" | "sm" | "lg" | null | undefined;
392
+ zSize?: "sm" | "default" | "lg" | null | undefined;
393
393
  zMode?: "grid" | "list" | null | undefined;
394
394
  } & class_variance_authority_types.ClassProp) | undefined) => string;
395
395
  type ZGalleryFileIconVariants = VariantProps<typeof zGalleryFileIconVariants>;
@@ -251,7 +251,7 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
251
251
  protected readonly effectiveOkText: _angular_core.Signal<string | null | undefined>;
252
252
  protected readonly effectiveCancelText: _angular_core.Signal<string | null | undefined>;
253
253
  protected readonly effectiveOkDestructive: _angular_core.Signal<boolean | undefined>;
254
- protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "default" | "primary" | "secondary" | "destructive" | "destructive-heartbeat" | "success" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-shimmer" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "outline-primary-soft" | "outline-success-soft" | "outline-info-soft" | "outline-warning-soft" | "outline-error-soft" | "outline-destructive-soft" | "outline-primary-soft-border" | "outline-success-soft-border" | "outline-info-soft-border" | "outline-warning-soft-border" | "outline-error-soft-border" | "outline-destructive-soft-border" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "subtle-primary" | "subtle-success" | "subtle-info" | "subtle-warning" | "subtle-destructive" | "subtle-outline" | "subtle-primary-outline" | "subtle-success-outline" | "subtle-info-outline" | "subtle-warning-outline" | "subtle-destructive-outline" | "link" | null | undefined>;
254
+ protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "link" | "default" | "primary" | "secondary" | "destructive" | "destructive-heartbeat" | "success" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-shimmer" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "outline-primary-soft" | "outline-success-soft" | "outline-info-soft" | "outline-warning-soft" | "outline-error-soft" | "outline-destructive-soft" | "outline-primary-soft-border" | "outline-success-soft-border" | "outline-info-soft-border" | "outline-warning-soft-border" | "outline-error-soft-border" | "outline-destructive-soft-border" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "subtle-primary" | "subtle-success" | "subtle-info" | "subtle-warning" | "subtle-destructive" | "subtle-outline" | "subtle-primary-outline" | "subtle-success-outline" | "subtle-info-outline" | "subtle-warning-outline" | "subtle-destructive-outline" | null | undefined>;
255
255
  protected readonly effectiveOkDisabled: _angular_core.Signal<boolean | undefined>;
256
256
  protected readonly effectiveLoading: _angular_core.Signal<boolean>;
257
257
  protected readonly effectiveContentLoading: _angular_core.Signal<boolean>;
@@ -89,7 +89,7 @@ declare class ZPopoverDirective implements OnInit, OnDestroy {
89
89
  readonly zHideDelay: _angular_core.InputSignal<number>;
90
90
  readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
91
91
  readonly zOffset: _angular_core.InputSignal<number>;
92
- readonly zPopoverWidth: _angular_core.InputSignal<number | "auto" | "trigger">;
92
+ readonly zPopoverWidth: _angular_core.InputSignal<number | "trigger" | "auto">;
93
93
  readonly zTriggerRef: _angular_core.InputSignal<HTMLElement | ElementRef<HTMLElement> | null>;
94
94
  readonly zManualClose: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
95
95
  readonly zOutsideClickClose: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_angular_table from '@tanstack/angular-table';
2
- import { RowData, RowSelectionState, HeaderContext, CellContext, FlexRenderComponent, Row, SortingState, ColumnFiltersState, PaginationState, ExpandedState, ColumnPinningState, RowPinningState, VisibilityState, ColumnOrderState, Column, createAngularTable, Table, ColumnDef } from '@tanstack/angular-table';
2
+ import { RowData, RowSelectionState, HeaderContext, CellContext, FlexRenderComponent, Row, SortingState, ColumnFiltersState, PaginationState, ExpandedState, ColumnPinningState, RowPinningState, VisibilityState, ColumnOrderState, ColumnSizingState, Column, createAngularTable, Table, ColumnDef } from '@tanstack/angular-table';
3
3
  import * as _shival99_angular_virtual from '@shival99/angular-virtual';
4
4
  import * as _shival99_z_ui_components_z_input from '@shival99/z-ui/components/z-input';
5
5
  import { ZInputSize } from '@shival99/z-ui/components/z-input';
@@ -703,12 +703,6 @@ interface ZTableConfig<T> {
703
703
  getRowCanExpand?: (row: Row<T>) => boolean;
704
704
  /** Fixed table width. Defaults to the available width of the parent container. */
705
705
  width?: string;
706
- /**
707
- * Distribute remaining width evenly across visible data columns.
708
- * Special columns such as select, expand, drag, row pin, and actions keep their fixed widths.
709
- * @default true
710
- */
711
- equalColumns?: boolean;
712
706
  /** Fixed table height. Keeps the horizontal scrollbar at the bottom when the table has few rows. */
713
707
  height?: string;
714
708
  maxHeight?: string;
@@ -795,6 +789,8 @@ declare class ZTableComponent<T> implements AfterViewInit {
795
789
  private _bulkBarTimer;
796
790
  private readonly _activeColumnVisibilityPopover;
797
791
  private _hasInitializedColumnPinning;
792
+ private _fitColumnFrame;
793
+ private _isApplyingFitColumnSizing;
798
794
  /** Merged loading state from both zLoading input and config.loading */
799
795
  protected readonly isLoading: _angular_core.Signal<boolean>;
800
796
  /** True during debounced async state transitions (sort/filter processing) */
@@ -815,6 +811,8 @@ declare class ZTableComponent<T> implements AfterViewInit {
815
811
  protected readonly rowPinning: _angular_core.WritableSignal<RowPinningState>;
816
812
  protected readonly columnFilters: _angular_core.WritableSignal<ColumnFiltersState>;
817
813
  protected readonly globalFilter: _angular_core.WritableSignal<string>;
814
+ protected readonly columnSizingState: _angular_core.WritableSignal<ColumnSizingState>;
815
+ private readonly _columnBaseSizing;
818
816
  /** Note: pageIndex is 1-based here; converted to 0-based for TanStack via _tanstackPagination */
819
817
  protected readonly pagination: _angular_core.WritableSignal<PaginationState>;
820
818
  protected readonly sorting: _angular_core.WritableSignal<SortingState>;
@@ -945,9 +943,8 @@ declare class ZTableComponent<T> implements AfterViewInit {
945
943
  protected readonly virtualRightSpacerWidth: _angular_core.Signal<number>;
946
944
  protected readonly renderedColumnCount: _angular_core.Signal<number>;
947
945
  protected readonly orderedLeafColumns: _angular_core.Signal<Column<T, unknown>[]>;
948
- protected readonly fillColumnIds: _angular_core.Signal<string[]>;
946
+ protected readonly fitColumnIds: _angular_core.Signal<string[]>;
949
947
  protected readonly fillColumnId: _angular_core.Signal<string>;
950
- protected readonly fillColumnWidths: _angular_core.Signal<Record<string, string>>;
951
948
  protected readonly hideableColumns: _angular_core.Signal<Column<T, unknown>[]>;
952
949
  protected readonly orderedHeaderGroups: _angular_core.Signal<{
953
950
  id: string;
@@ -977,7 +974,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
977
974
  protected readonly skeletonRows: _angular_core.Signal<number[]>;
978
975
  protected readonly dynamicGroupRows: _angular_core.Signal<Row<T>[][]>;
979
976
  protected readonly dynamicGroupHeights: _angular_core.Signal<any[]>;
980
- protected readonly columnSizing: _angular_core.Signal<_tanstack_angular_table.ColumnSizingState>;
977
+ protected readonly columnSizing: _angular_core.Signal<ColumnSizingState>;
981
978
  protected readonly columnSizingInfo: _angular_core.Signal<_tanstack_angular_table.ColumnSizingInfoState>;
982
979
  protected readonly columnSizeVars: _angular_core.Signal<Record<string, number>>;
983
980
  protected readonly table: ReturnType<typeof createAngularTable<T>>;
@@ -1026,6 +1023,14 @@ declare class ZTableComponent<T> implements AfterViewInit {
1026
1023
  private _checkVerticalScroll;
1027
1024
  private _checkLastRowTouchesBottom;
1028
1025
  private _getTbodyViewportElement;
1026
+ private _handleColumnSizingChange;
1027
+ private _syncColumnBaseSizing;
1028
+ private _scheduleFitColumnWidths;
1029
+ private _cancelFitColumnFrame;
1030
+ private _applyFitColumnWidths;
1031
+ private _setColumnSizingFromFit;
1032
+ private _getColumnBaseSize;
1033
+ private _isSameColumnSizing;
1029
1034
  private _checkHorizontalScroll;
1030
1035
  private _updateScrollShadowState;
1031
1036
  hasRightPinnedColumns(): boolean;
@@ -100,7 +100,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
100
100
  protected readonly hasError: _angular_core.Signal<boolean>;
101
101
  protected readonly showError: _angular_core.Signal<boolean>;
102
102
  protected readonly errorMessage: _angular_core.Signal<string>;
103
- protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error" | "active">;
103
+ protected readonly currentStatus: _angular_core.Signal<"default" | "error" | "disabled" | "readonly" | "active">;
104
104
  protected readonly dropzoneClasses: _angular_core.Signal<string>;
105
105
  protected readonly acceptTypes: _angular_core.Signal<string>;
106
106
  protected readonly formatFileSize: (bytes: number) => string;
@@ -141,11 +141,11 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
141
141
 
142
142
  declare const zUploadDropzoneVariants: (props?: ({
143
143
  zSize?: "sm" | "default" | "lg" | null | undefined;
144
- zStatus?: "default" | "disabled" | "readonly" | "error" | "active" | null | undefined;
144
+ zStatus?: "default" | "error" | "active" | "disabled" | "readonly" | null | undefined;
145
145
  } & class_variance_authority_types.ClassProp) | undefined) => string;
146
146
  type ZUploadDropzoneVariants = VariantProps<typeof zUploadDropzoneVariants>;
147
147
  declare const zUploadFileItemVariants: (props?: ({
148
- zStatus?: "error" | "pending" | "uploading" | "success" | null | undefined;
148
+ zStatus?: "pending" | "uploading" | "success" | "error" | null | undefined;
149
149
  } & class_variance_authority_types.ClassProp) | undefined) => string;
150
150
  type ZUploadFileItemVariants = VariantProps<typeof zUploadFileItemVariants>;
151
151