@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.
@@ -14,7 +14,7 @@ import { ZPopoverDirective } from '@shival99/z-ui/components/z-popover';
14
14
  import { ZTooltipDirective } from '@shival99/z-ui/components/z-tooltip';
15
15
  import { ZHighlightPipe, ZSafeHtmlPipe } from '@shival99/z-ui/pipes';
16
16
  import { ZTranslateService } from '@shival99/z-ui/services';
17
- import { zRemoveVietnamese, zMergeClasses, zTransform, zUuid, zResolveAsyncSelectedOptions, zMergeAsyncOptions, zCreateEvent, zIsMobileViewport, Z_ASYNC_OPTIONS_DEFAULT_PAGE_SIZE, zToAsyncOptionsObservable, zResolveAsyncOptionsHasMore } from '@shival99/z-ui/utils';
17
+ import { zRemoveVietnamese, zMergeClasses, zTransform, zUuid, zResolveAsyncSelectedOptions, zMergeAsyncOptions, zCreateDestroySafeTimeout, zCreateEvent, zIsMobileViewport, Z_ASYNC_OPTIONS_DEFAULT_PAGE_SIZE, zToAsyncOptionsObservable, zResolveAsyncOptionsHasMore } from '@shival99/z-ui/utils';
18
18
  import { injectVirtualizer } from '@tanstack/angular-virtual';
19
19
  import { Subject, debounceTime, merge, filter, finalize, isObservable, takeUntil, catchError, of, firstValueFrom } from 'rxjs';
20
20
  import { cva } from 'class-variance-authority';
@@ -1067,6 +1067,7 @@ class ZSelectComponent {
1067
1067
  _isNgModel = signal(false, /* @ts-ignore */
1068
1068
  ...(ngDevMode ? [{ debugName: "_isNgModel" }] : /* istanbul ignore next */ []));
1069
1069
  _pendingServerSearchScrollReset = false;
1070
+ _controlEmitTimer = zCreateDestroySafeTimeout(this._destroyRef);
1070
1071
  constructor() {
1071
1072
  afterNextRender(() => this._selectedTagLayoutVersion.update(version => version + 1));
1072
1073
  effect(onCleanup => {
@@ -1208,7 +1209,7 @@ class ZSelectComponent {
1208
1209
  this._ngControl = null;
1209
1210
  }
1210
1211
  });
1211
- setTimeout(() => this._emitControl());
1212
+ this._controlEmitTimer.schedule(() => this._emitControl());
1212
1213
  }
1213
1214
  writeValue(value) {
1214
1215
  const fieldKey = this.zKey();