@fundamental-ngx/platform 0.58.0-rc.68 → 0.58.0-rc.69
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 +7 -8
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-form.mjs +4 -5
- package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +4 -5
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-list.mjs +1 -3
- package/fesm2022/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-message-popover.mjs +1 -2
- package/fesm2022/fundamental-ngx-platform-message-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-settings-generator.mjs +1 -2
- package/fesm2022/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table-helpers.mjs +2 -3
- package/fesm2022/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table.mjs +1 -2
- package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +1 -3
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-variant-management.mjs +1 -2
- package/fesm2022/fundamental-ngx-platform-variant-management.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs +3 -4
- package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -5,7 +5,7 @@ import { EventEmitter, Output, Input, ViewEncapsulation, ChangeDetectionStrategy
|
|
|
5
5
|
import { combineLatest, Subscription, Subject, merge, fromEvent } from 'rxjs';
|
|
6
6
|
import { throttleTime, startWith, switchMap, mapTo, map, distinctUntilChanged } from 'rxjs/operators';
|
|
7
7
|
import * as i1$2 from '@fundamental-ngx/cdk/utils';
|
|
8
|
-
import { TemplateDirective, KeyUtil } from '@fundamental-ngx/cdk/utils';
|
|
8
|
+
import { TemplateDirective, KeyUtil, uniqBy } from '@fundamental-ngx/cdk/utils';
|
|
9
9
|
import * as i1$1 from '@fundamental-ngx/core/dialog';
|
|
10
10
|
import { DialogComponent, DialogHeaderComponent, DialogBodyComponent, DialogFooterComponent } from '@fundamental-ngx/core/dialog';
|
|
11
11
|
import { GridListItemComponent, GridListComponent, GridListTitleBarComponent, GridListTitleBarSpacerComponent, GridListItemToolbarComponent, GridListItemImageDirective, GridListItemBodyDirective } from '@fundamental-ngx/core/grid-list';
|
|
@@ -21,7 +21,6 @@ import { IllustratedMessageComponent, IllustratedMessageFigcaptionComponent, Ill
|
|
|
21
21
|
import { MultiInputComponent } from '@fundamental-ngx/core/multi-input';
|
|
22
22
|
import { FdTranslatePipe } from '@fundamental-ngx/i18n';
|
|
23
23
|
import { ApprovalFlowUserDataSource, ApprovalFlowTeamDataSource, DATA_PROVIDERS } from '@fundamental-ngx/platform/shared';
|
|
24
|
-
import { cloneDeep, uniqBy } from 'lodash-es';
|
|
25
24
|
import { FdDate } from '@fundamental-ngx/core/datetime';
|
|
26
25
|
import { CdkScrollable } from '@angular/cdk/overlay';
|
|
27
26
|
import { BusyIndicatorComponent } from '@fundamental-ngx/core/busy-indicator';
|
|
@@ -1705,7 +1704,7 @@ let defaultId = 0;
|
|
|
1705
1704
|
class ApprovalFlowComponent {
|
|
1706
1705
|
/** Returns snapshot of the current and initial states of approval process */
|
|
1707
1706
|
get approvalProcess() {
|
|
1708
|
-
return
|
|
1707
|
+
return structuredClone(this._approvalProcess);
|
|
1709
1708
|
}
|
|
1710
1709
|
/** @hidden */
|
|
1711
1710
|
get _rtl() {
|
|
@@ -1857,7 +1856,7 @@ class ApprovalFlowComponent {
|
|
|
1857
1856
|
ngOnChanges(changes) {
|
|
1858
1857
|
if (changes.value) {
|
|
1859
1858
|
const process = this.value ?? { watchers: [], nodes: [] };
|
|
1860
|
-
this._initialApprovalProcess =
|
|
1859
|
+
this._initialApprovalProcess = structuredClone(process);
|
|
1861
1860
|
this._buildView(process);
|
|
1862
1861
|
}
|
|
1863
1862
|
if (changes.userDataSource || changes.watcherDataSource || changes.teamDataSource) {
|
|
@@ -1991,7 +1990,7 @@ class ApprovalFlowComponent {
|
|
|
1991
1990
|
this._selectedWatchers = this._approvalProcess.watchers;
|
|
1992
1991
|
this._selectedWatcherIds = this._selectedWatchers.map((w) => w.id);
|
|
1993
1992
|
this._isEditMode = true;
|
|
1994
|
-
this._initialApprovalProcess =
|
|
1993
|
+
this._initialApprovalProcess = structuredClone(this._approvalProcess);
|
|
1995
1994
|
this._cdr.detectChanges();
|
|
1996
1995
|
});
|
|
1997
1996
|
this._subscriptions.add(this._editModeInitSub);
|
|
@@ -2014,7 +2013,7 @@ class ApprovalFlowComponent {
|
|
|
2014
2013
|
_exitEditMode() {
|
|
2015
2014
|
this._editModeInitSub?.unsubscribe();
|
|
2016
2015
|
this.watcherDataSource.close();
|
|
2017
|
-
this._approvalProcess =
|
|
2016
|
+
this._approvalProcess = structuredClone(this._initialApprovalProcess);
|
|
2018
2017
|
this._initialApprovalProcess = undefined;
|
|
2019
2018
|
this._isEditMode = false;
|
|
2020
2019
|
this._messages = [];
|
|
@@ -2030,7 +2029,7 @@ class ApprovalFlowComponent {
|
|
|
2030
2029
|
}
|
|
2031
2030
|
/** @hidden Restore previously saved approval process state */
|
|
2032
2031
|
_undoLastAction() {
|
|
2033
|
-
this._approvalProcess =
|
|
2032
|
+
this._approvalProcess = structuredClone(this._previousApprovalProcess);
|
|
2034
2033
|
this._previousApprovalProcess = undefined;
|
|
2035
2034
|
this._buildView(this._approvalProcess);
|
|
2036
2035
|
}
|
|
@@ -2338,7 +2337,7 @@ class ApprovalFlowComponent {
|
|
|
2338
2337
|
}
|
|
2339
2338
|
/** @hidden Save current state of approval process data to be able to undo an action made in edit mode */
|
|
2340
2339
|
_cacheCurrentApprovalProcess() {
|
|
2341
|
-
this._previousApprovalProcess =
|
|
2340
|
+
this._previousApprovalProcess = structuredClone(this._approvalProcess);
|
|
2342
2341
|
}
|
|
2343
2342
|
/** @hidden */
|
|
2344
2343
|
get _carouselStepSize() {
|