@fundamental-ngx/platform 0.62.0-rc.76 → 0.62.0-rc.78
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.
|
@@ -7,7 +7,7 @@ import { ColumnLayoutGridClass, ResponsiveBreakPointConfig, RESPONSIVE_BREAKPOIN
|
|
|
7
7
|
import * as i1$1 from '@angular/forms';
|
|
8
8
|
import { Validators, FormControl, FormGroup, FormsModule, ReactiveFormsModule, ControlContainer, NgForm, NgControl, FormGroupDirective } from '@angular/forms';
|
|
9
9
|
import * as i2 from '@fundamental-ngx/cdk/utils';
|
|
10
|
-
import { uniqBy, RangeSelector, KeyUtil, TemplateDirective, InitialFocusDirective, DisplayFnPipe, warnOnce, DynamicComponentService, merge as merge$1, cloneDeep, isFunction as isFunction$1, selectStrategy, resizeObservable, SearchHighlightPipe, destroyObservable, RtlService, OnlyDigitsDirective } from '@fundamental-ngx/cdk/utils';
|
|
10
|
+
import { uniqBy, RangeSelector, KeyUtil, TemplateDirective, InitialFocusDirective, DisplayFnPipe, warnOnce, DynamicComponentService, merge as merge$1, cloneDeep, isFunction as isFunction$1, selectStrategy, resizeObservable, FocusTrapService, SearchHighlightPipe, destroyObservable, RtlService, OnlyDigitsDirective } from '@fundamental-ngx/cdk/utils';
|
|
11
11
|
import * as i2$2 from 'rxjs';
|
|
12
12
|
import { Subject, BehaviorSubject, combineLatest, filter, tap, Subscription, isObservable, fromEvent, merge, of, timer, interval } from 'rxjs';
|
|
13
13
|
import { distinctUntilChanged, map, switchMap, startWith, debounceTime, tap as tap$1, filter as filter$1, take, takeUntil, skip } from 'rxjs/operators';
|
|
@@ -6285,6 +6285,8 @@ class BaseCombobox extends CollectionBaseInput {
|
|
|
6285
6285
|
this._flatSuggestions = [];
|
|
6286
6286
|
/** @hidden */
|
|
6287
6287
|
this._element = this.elementRef.nativeElement;
|
|
6288
|
+
/** @hidden */
|
|
6289
|
+
this._focusTrapService = inject(FocusTrapService);
|
|
6288
6290
|
/** Keys, that won't trigger the popover's open state, when dispatched on search input */
|
|
6289
6291
|
this._nonOpeningKeys = [
|
|
6290
6292
|
ESCAPE,
|
|
@@ -6382,6 +6384,11 @@ class BaseCombobox extends CollectionBaseInput {
|
|
|
6382
6384
|
_onOpenChange(isOpen) {
|
|
6383
6385
|
if (isOpen) {
|
|
6384
6386
|
this.formMessage?._popover.close();
|
|
6387
|
+
/** Allow combobox arrow keys to work properly when combobox is inside a dialog with a trapped focus */
|
|
6388
|
+
this._focusTrapService.pauseCurrentFocusTrap();
|
|
6389
|
+
}
|
|
6390
|
+
else {
|
|
6391
|
+
this._focusTrapService.unpauseCurrentFocusTrap();
|
|
6385
6392
|
}
|
|
6386
6393
|
this.formMessage?._popover.setIgnoreTriggers(isOpen);
|
|
6387
6394
|
}
|