@shival99/z-ui 2.6.6 → 2.6.7

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.6.6",
3
+ "version": "2.6.7",
4
4
  "description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 22, featuring 45+ customizable components with dark mode, accessibility, and enterprise-ready features.",
5
5
  "keywords": [
6
6
  "angular",
@@ -172,7 +172,9 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
172
172
  protected readonly activeIndex: _angular_core.WritableSignal<number>;
173
173
  protected readonly dropdownWidth: _angular_core.WritableSignal<number>;
174
174
  private readonly _pendingSearch;
175
- private _localLoadingTimeout;
175
+ private readonly _localLoadingTimer;
176
+ private readonly _focusInputTimer;
177
+ private readonly _navigationFillTimer;
176
178
  private _loadMoreObserver;
177
179
  private _virtualScrollListener;
178
180
  private _asyncLoadSubscription;
@@ -75,6 +75,7 @@ declare class ZMenuComponent {
75
75
  private readonly _destroyRef;
76
76
  private readonly _platformId;
77
77
  private readonly _router;
78
+ private readonly _controlEmitTimer;
78
79
  readonly zOnSelect: _angular_core.OutputEmitterRef<ZMenuItem>;
79
80
  readonly zOnMenuAction: _angular_core.OutputEmitterRef<ZMenuUserAction>;
80
81
  readonly zControl: _angular_core.OutputEmitterRef<ZMenuControl>;
@@ -178,6 +179,7 @@ declare class ZMenuV2Component {
178
179
  private readonly _hasSyncedInitialPath;
179
180
  private readonly _openingRenderTimers;
180
181
  private readonly _closingRenderTimers;
182
+ private readonly _controlEmitTimer;
181
183
  protected readonly zClasses: _angular_core.Signal<string>;
182
184
  private readonly _isMobile$;
183
185
  readonly isMobile: _angular_core.Signal<boolean>;
@@ -297,6 +297,7 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
297
297
  private _ngControl;
298
298
  private readonly _isNgModel;
299
299
  private _pendingServerSearchScrollReset;
300
+ private readonly _controlEmitTimer;
300
301
  constructor();
301
302
  ngOnInit(): void;
302
303
  writeValue(value: T | T[] | null): void;
@@ -1128,6 +1128,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
1128
1128
  private readonly _zTranslate;
1129
1129
  private readonly _overlayService;
1130
1130
  private readonly _viewContainerRef;
1131
+ private readonly _destroyRef;
1131
1132
  /** Prevents recursive scroll sync between thead/tbody/tfoot */
1132
1133
  private readonly _isSyncingScroll;
1133
1134
  private _lastSyncedScrollLeft;
@@ -1139,7 +1140,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
1139
1140
  private _settingsDebounceTimeout;
1140
1141
  private _visibilityDebounceTimeout;
1141
1142
  /** Debounces filter change emissions to server */
1142
- private _filterEmitDebounceTimeout;
1143
+ private readonly _filterEmitDebounceTimer;
1143
1144
  /** Keeps the bulk bar mounted long enough for its exit animation */
1144
1145
  private _bulkBarTimer;
1145
1146
  private _bulkBarOverlayRef;
@@ -2179,7 +2180,7 @@ declare class ZTableFilterComponent<T> {
2179
2180
  protected readonly filterBadgeCount: _angular_core.Signal<number>;
2180
2181
  protected readonly hasFilterValue: _angular_core.Signal<boolean>;
2181
2182
  protected readonly isActive: _angular_core.Signal<boolean>;
2182
- protected readonly draftSortValue: _angular_core.Signal<"asc" | "desc" | "none">;
2183
+ protected readonly draftSortValue: _angular_core.Signal<"none" | "asc" | "desc">;
2183
2184
  protected readonly rangeMinValue: _angular_core.Signal<any>;
2184
2185
  protected readonly rangeMaxValue: _angular_core.Signal<any>;
2185
2186
  protected readonly dateValue: _angular_core.Signal<Date | null>;
@@ -2251,7 +2252,7 @@ declare class ZTableActionsComponent<T = unknown> {
2251
2252
  readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
2252
2253
  readonly zRow: _angular_core.InputSignal<T>;
2253
2254
  readonly zRowId: _angular_core.InputSignal<string>;
2254
- readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "lg" | "xs" | "xl" | null | undefined>;
2255
+ readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "sm" | "lg" | "xs" | "xl" | null | undefined>;
2255
2256
  readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
2256
2257
  protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
2257
2258
  protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
@@ -52,6 +52,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
52
52
  private readonly _injector;
53
53
  private readonly _destroyRef;
54
54
  private readonly _zTranslate;
55
+ private readonly _controlEmitTimer;
55
56
  protected readonly fileInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
56
57
  readonly zOnUpload: _angular_core.OutputEmitterRef<ZUploadFile[]>;
57
58
  readonly zOnRemove: _angular_core.OutputEmitterRef<ZUploadFile>;
@@ -1,4 +1,4 @@
1
- import { WritableSignal, Signal } from '@angular/core';
1
+ import { WritableSignal, Signal, DestroyRef } from '@angular/core';
2
2
  import { ClassValue } from 'clsx';
3
3
  import * as ExcelJS from 'exceljs';
4
4
  import { Observable } from 'rxjs';
@@ -214,6 +214,12 @@ interface ZViewport {
214
214
 
215
215
  declare const zViewport: (options?: ZViewportOptions) => ZViewport;
216
216
 
217
+ /** Schedules one callback and cancels it automatically when the owning Angular scope is destroyed. */
218
+ declare function zCreateDestroySafeTimeout(destroyRef: DestroyRef): {
219
+ cancel: () => void;
220
+ schedule: (callback: () => void, delay?: number) => void;
221
+ };
222
+
217
223
  /**
218
224
  * Unified event types for Z-UI form components
219
225
  * Allows components to emit native DOM events with type discrimination
@@ -257,5 +263,5 @@ interface ZFormDebugOptions {
257
263
  logLevel?: 'error' | 'warn' | 'log';
258
264
  }
259
265
 
260
- export { VIETNAMESE_MAP, Z_ASYNC_OPTIONS_DEFAULT_PAGE_SIZE, Z_DIVIDE_SCALE, Z_EMOJI_KEYWORDS, Z_EMOJI_SHEET, Z_EXCEL_NUMBER_FORMAT_MAP, Z_LOCALE_MAP, Z_VIEWPORT_BREAKPOINTS, Z_VIEWPORT_CATEGORIES, zCapitalCase, zCleanObject, zConvertColorToArgb, zCreateEvent, zDebugFormInvalid, zDecodeUnicode, zDetectBrowser, zFormatNum, zFormatNumExcel, zGetAsyncOptionKey, zIsMobileViewport, zMergeAsyncOptions, zMergeClasses, zMiniSearch, zMiniSearch$, zNoop, zNormalize, zRandomColor, zRegisterEchartsTheme, zRemoveVietnamese, zResolveAsyncOptionsHasMore, zResolveAsyncSelectedOptions, zToAsyncOptionsObservable, zTransform, zTreeBuild, zTreeFlatten, zUuid, zValidForm, zViewport };
266
+ export { VIETNAMESE_MAP, Z_ASYNC_OPTIONS_DEFAULT_PAGE_SIZE, Z_DIVIDE_SCALE, Z_EMOJI_KEYWORDS, Z_EMOJI_SHEET, Z_EXCEL_NUMBER_FORMAT_MAP, Z_LOCALE_MAP, Z_VIEWPORT_BREAKPOINTS, Z_VIEWPORT_CATEGORIES, zCapitalCase, zCleanObject, zConvertColorToArgb, zCreateDestroySafeTimeout, zCreateEvent, zDebugFormInvalid, zDecodeUnicode, zDetectBrowser, zFormatNum, zFormatNumExcel, zGetAsyncOptionKey, zIsMobileViewport, zMergeAsyncOptions, zMergeClasses, zMiniSearch, zMiniSearch$, zNoop, zNormalize, zRandomColor, zRegisterEchartsTheme, zRemoveVietnamese, zResolveAsyncOptionsHasMore, zResolveAsyncSelectedOptions, zToAsyncOptionsObservable, zTransform, zTreeBuild, zTreeFlatten, zUuid, zValidForm, zViewport };
261
267
  export type { ZAsyncOptionsConfig, ZAsyncOptionsLoadFn, ZAsyncOptionsLoadResult, ZAsyncOptionsQuery, ZAsyncOptionsResult, ZBlurEventData, ZBrowserInfo, ZBrowserName, ZCapitalizeType, ZChangeEventData, ZClickEventData, ZCopyEventData, ZCutEventData, ZDblclickEventData, ZDeviceType, ZDragenterEventData, ZDragleaveEventData, ZDragoverEventData, ZDropEventData, ZEchartsThemeOptions, ZEmojiCategory, ZEmojiEntry, ZEmptyCheck, ZEvent, ZEventType, ZFocusEventData, ZFormDebugOptions, ZFormSubmitResult, ZFormatNumExcelOptions, ZFormatNumOptions, ZInputEventData, ZKeydownEventData, ZKeypressEventData, ZKeyupEventData, ZMousedownEventData, ZMouseenterEventData, ZMouseleaveEventData, ZMouseoutEventData, ZMouseoverEventData, ZMouseupEventData, ZNavigatorUABrandVersion, ZNavigatorUAData, ZNumberDivide, ZPasteEventData, ZTouchendEventData, ZTouchmoveEventData, ZTouchstartEventData, ZViewport, ZViewportCategory, ZViewportOptions, ZViewportSize, ZViewportTarget };