@fundamental-ngx/platform 0.61.3 → 0.61.5
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/fesm2022/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-form.mjs +3 -3
- package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +9 -13
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/types/fundamental-ngx-platform-icon-tab-bar.d.ts +4 -8
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, signal, input, inject, ChangeDetectorRef,
|
|
3
|
-
import { take, debounceTime, distinctUntilChanged, first } from 'rxjs/operators';
|
|
2
|
+
import { EventEmitter, signal, input, inject, ChangeDetectorRef, isDevMode, ElementRef, ViewChild, Output, Input, Directive, ViewChildren, Component, DestroyRef, ChangeDetectionStrategy, ViewEncapsulation, booleanAttribute, viewChild, contentChild, TemplateRef, contentChildren, Injectable, model, output, viewChildren, computed, effect, HostBinding, Optional, NgModule } from '@angular/core';
|
|
4
3
|
import { SPACE, ENTER, RIGHT_ARROW, DOWN_ARROW, LEFT_ARROW, UP_ARROW, BACKSPACE, DELETE } from '@angular/cdk/keycodes';
|
|
5
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
4
|
import * as i1$1 from '@fundamental-ngx/cdk/utils';
|
|
7
5
|
import { KeyUtil, OverflowListDirective, AsyncOrSyncPipe, OverflowListItemDirective, RtlService, scrollTop } from '@fundamental-ngx/cdk/utils';
|
|
8
6
|
import { FD_DYNAMIC_PAGE } from '@fundamental-ngx/core/dynamic-page';
|
|
@@ -10,8 +8,10 @@ import { NgClass, NgTemplateOutlet, SlicePipe } from '@angular/common';
|
|
|
10
8
|
import { ButtonComponent } from '@fundamental-ngx/core/button';
|
|
11
9
|
import { IconComponent, FD_DEFAULT_ICON_FONT_FAMILY } from '@fundamental-ngx/core/icon';
|
|
12
10
|
import { PopoverComponent, PopoverControlComponent, PopoverBodyComponent } from '@fundamental-ngx/core/popover';
|
|
11
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
12
|
import * as i1 from '@angular/cdk/drag-drop';
|
|
14
13
|
import { ReplaySubject, Subject, fromEvent } from 'rxjs';
|
|
14
|
+
import { debounceTime, distinctUntilChanged, first } from 'rxjs/operators';
|
|
15
15
|
import { ScrollSpyDirective } from '@fundamental-ngx/core/scroll-spy';
|
|
16
16
|
import { ScrollbarDirective } from '@fundamental-ngx/core/scrollbar';
|
|
17
17
|
import { FD_TABLIST } from '@fundamental-ngx/core/shared';
|
|
@@ -47,14 +47,10 @@ class IconTabBarBase {
|
|
|
47
47
|
this._inDynamicPage = !!inject(FD_DYNAMIC_PAGE, { optional: true });
|
|
48
48
|
/** @hidden */
|
|
49
49
|
this._cd = inject(ChangeDetectorRef);
|
|
50
|
-
/** @Hidden */
|
|
51
|
-
this._ngZone = inject(NgZone);
|
|
52
|
-
/** @hidden */
|
|
53
|
-
this._tabs = [];
|
|
54
|
-
/** @hidden */
|
|
55
|
-
this._destroyRef = inject(DestroyRef);
|
|
56
50
|
/** @hidden */
|
|
57
51
|
this._destroyed = false;
|
|
52
|
+
/** @hidden */
|
|
53
|
+
this._tabs = [];
|
|
58
54
|
}
|
|
59
55
|
/**
|
|
60
56
|
* @description A tab bar configuration that stores the state of each tab. Based on this configuration, a tab bar is representing.
|
|
@@ -214,7 +210,7 @@ class IconTabBarBase {
|
|
|
214
210
|
* @description trigger recalculation items, need to do it asynchronously after dom was rerendered
|
|
215
211
|
*/
|
|
216
212
|
_triggerRecalculationVisibleItems() {
|
|
217
|
-
|
|
213
|
+
queueMicrotask(() => {
|
|
218
214
|
if (this.overflowDirective && !this._destroyed) {
|
|
219
215
|
const extra = this.overflowDirective.getAmountOfExtraItems();
|
|
220
216
|
this._recalculateVisibleItems(extra);
|
|
@@ -807,7 +803,7 @@ class IconTabBarProcessTypeComponent extends ClosableIconTabBar {
|
|
|
807
803
|
* @param selectedItem
|
|
808
804
|
* @description select extra item inside popover
|
|
809
805
|
*/
|
|
810
|
-
|
|
806
|
+
_selectExtraItem(selectedItem) {
|
|
811
807
|
this._currentStepIndex = selectedItem.index;
|
|
812
808
|
let amountOfPreviousSteps;
|
|
813
809
|
let amountOfNextSteps;
|
|
@@ -828,8 +824,8 @@ class IconTabBarProcessTypeComponent extends ClosableIconTabBar {
|
|
|
828
824
|
this._showLeftBtn = amountOfPreviousSteps > 0;
|
|
829
825
|
}
|
|
830
826
|
this._selectItem(selectedItem);
|
|
831
|
-
|
|
832
|
-
if (this.overflowDirective) {
|
|
827
|
+
queueMicrotask(() => {
|
|
828
|
+
if (this.overflowDirective && !this._destroyed) {
|
|
833
829
|
const extra = this.overflowDirective.getAmountOfExtraItems();
|
|
834
830
|
isPreviousStepsStrategy
|
|
835
831
|
? this.recalculateItemsByPrevArr(extra, amountOfPreviousSteps)
|