@fundamental-ngx/platform 0.62.0-rc.40 → 0.62.0-rc.41

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, ContentChild, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, Directive, Inject, Injectable, forwardRef, EventEmitter, inject, DestroyRef, TemplateRef, ElementRef, booleanAttribute, ViewChildren, ContentChildren, ViewChild, Output, Optional, Self, SkipSelf, Attribute, NgModule, input, HostListener, NgZone, Injector, Pipe, ChangeDetectorRef, signal, effect, isDevMode, computed, Renderer2, LOCALE_ID } from '@angular/core';
2
+ import { InjectionToken, ContentChild, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, Directive, Inject, Injectable, forwardRef, EventEmitter, inject, DestroyRef, TemplateRef, ElementRef, booleanAttribute, ViewChildren, ContentChildren, ViewChild, Output, Optional, Self, SkipSelf, Attribute, NgModule, input, HostListener, Injector, Pipe, ChangeDetectorRef, signal, effect, isDevMode, computed, Renderer2, LOCALE_ID } from '@angular/core';
3
3
  import * as i1$4 from '@fundamental-ngx/cdk/forms';
4
4
  import { FD_FORM_FIELD, FD_FORM_FIELD_CONTROL, CvaControl, CvaDirective } from '@fundamental-ngx/cdk/forms';
5
5
  import * as i1 from '@fundamental-ngx/platform/shared';
@@ -2852,26 +2852,22 @@ class AutoCompleteDirective {
2852
2852
  /** @hidden */
2853
2853
  this._isComposing = false;
2854
2854
  /** @hidden */
2855
- this._zone = inject(NgZone);
2856
- /** @hidden */
2857
2855
  this._destroyRef = inject(DestroyRef);
2858
2856
  /**
2859
2857
  * Fixes #10710 / #12983
2860
2858
  * With chinese characters inputText property update was triggered after the keyup event trigger.
2861
2859
  * By ensuring that we set all properties we can proceed with stable data.
2862
2860
  */
2863
- this._zone.runOutsideAngular(() => {
2864
- const keyupEvent = fromEvent(this._elementRef.nativeElement, 'keyup');
2865
- const compositionStartEvent = fromEvent(this._elementRef.nativeElement, 'compositionstart');
2866
- const compositionEndEvent = fromEvent(this._elementRef.nativeElement, 'compositionend');
2867
- keyupEvent.pipe(takeUntilDestroyed(this._destroyRef)).subscribe((evt) => this.handleKeyboardEvent(evt));
2868
- compositionStartEvent.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
2869
- this._isComposing = true;
2870
- });
2871
- compositionEndEvent.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
2872
- this._isComposing = false;
2873
- this.inputText = this._elementRef.nativeElement.value;
2874
- });
2861
+ const keyupEvent = fromEvent(this._elementRef.nativeElement, 'keyup');
2862
+ const compositionStartEvent = fromEvent(this._elementRef.nativeElement, 'compositionstart');
2863
+ const compositionEndEvent = fromEvent(this._elementRef.nativeElement, 'compositionend');
2864
+ keyupEvent.pipe(takeUntilDestroyed(this._destroyRef)).subscribe((evt) => this.handleKeyboardEvent(evt));
2865
+ compositionStartEvent.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
2866
+ this._isComposing = true;
2867
+ });
2868
+ compositionEndEvent.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
2869
+ this._isComposing = false;
2870
+ this.inputText = this._elementRef.nativeElement.value;
2875
2871
  });
2876
2872
  }
2877
2873
  /** @hidden */