@fundamental-ngx/platform 0.48.0-rc.21 → 0.48.0-rc.23
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/esm2022/form/combobox/combobox-mobile/combobox/combobox-mobile.component.mjs +6 -8
- package/esm2022/form/combobox/commons/base-combobox.mjs +6 -5
- package/esm2022/form/form-generator/form-generator/form-generator.component.mjs +8 -8
- package/esm2022/form/form-generator/form-generator.service.mjs +8 -13
- package/esm2022/form/form-group/form-field/form-field.component.mjs +27 -29
- package/esm2022/form/form-group/form-group.component.mjs +37 -40
- package/esm2022/form/multi-combobox/commons/base-multi-combobox.mjs +9 -8
- package/esm2022/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +3 -3
- package/esm2022/form/multi-combobox/multi-combobox-mobile/multi-combobox/multi-combobox-mobile.component.mjs +10 -13
- package/esm2022/form/multi-combobox/multi-combobox.interface.mjs +1 -1
- package/esm2022/form/multi-input/base-multi-input.mjs +5 -4
- package/esm2022/form/multi-input/multi-input-mobile/multi-input-mobile.component.mjs +4 -7
- package/esm2022/form/radio-group/radio-group.component.mjs +23 -24
- package/esm2022/form/select/commons/base-select.mjs +3 -3
- package/esm2022/form/step-input/base.step-input.mjs +25 -35
- package/esm2022/form/step-input/number/number-step-input.component.mjs +3 -3
- package/esm2022/form/step-input/step-input-action-button.mjs +6 -10
- package/esm2022/icon-tab-bar/components/icon-tab-bar-base.class.mjs +6 -8
- package/esm2022/icon-tab-bar/directives/dnd/icon-bar-dnd-container.directive.mjs +10 -19
- package/esm2022/icon-tab-bar/directives/dnd/icon-bar-dnd-item.directive.mjs +7 -9
- package/esm2022/icon-tab-bar/directives/dnd/icon-bar-dnd-list.directive.mjs +7 -8
- package/esm2022/icon-tab-bar/icon-tab-bar.component.mjs +9 -20
- package/esm2022/list/list.component.mjs +7 -8
- package/esm2022/menu/menu.component.mjs +3 -4
- package/esm2022/message-popover/components/message-popover-form-wrapper/message-popover-form-wrapper.component.mjs +8 -11
- package/esm2022/message-popover/message-popover.component.mjs +52 -53
- package/esm2022/message-popover/models/message-popover-wrapper.interface.mjs +1 -1
- package/esm2022/search-field/search-field-mobile/search-field/search-field-mobile.component.mjs +3 -7
- package/esm2022/search-field/search-field.component.mjs +20 -21
- package/esm2022/settings-generator/settings-generator.service.mjs +9 -10
- package/esm2022/shared/form/base.input.mjs +7 -8
- package/esm2022/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +10 -15
- package/esm2022/split-menu-button/split-menu-button.component.mjs +7 -18
- package/esm2022/table/components/reset-button/reset-button.component.mjs +5 -6
- package/esm2022/table/components/table-cell-header-popover/table-cell-header-popover.component.mjs +6 -7
- package/esm2022/table/components/table-column-resizer/table-column-resizer.component.mjs +6 -8
- package/esm2022/table/components/table-group-row/table-group-row.component.mjs +3 -7
- package/esm2022/table/components/table-header-cell-content/table-header-cell-content.component.mjs +29 -13
- package/esm2022/table/components/table-header-row/table-header-row.component.mjs +7 -11
- package/esm2022/table/components/table-p13-dialog/columns/columns.component.mjs +5 -7
- package/esm2022/table/components/table-p13-dialog/filtering/filtering.component.mjs +5 -8
- package/esm2022/table/components/table-p13-dialog/grouping/grouping.component.mjs +5 -8
- package/esm2022/table/components/table-p13-dialog/sorting/sorting.component.mjs +5 -8
- package/esm2022/table/components/table-popping-row/table-popping-row.component.mjs +4 -5
- package/esm2022/table/components/table-row/table-row.component.mjs +6 -13
- package/esm2022/table/components/table-toolbar/table-toolbar.component.mjs +34 -21
- package/esm2022/table/components/table-view-settings-dialog/filtering/filters.component.mjs +5 -8
- package/esm2022/table/components/table-view-settings-dialog/grouping/grouping.component.mjs +6 -9
- package/esm2022/table/components/table-view-settings-dialog/sorting/sorting.component.mjs +6 -9
- package/esm2022/table/table.component.mjs +39 -49
- package/esm2022/table-helpers/directives/table-cell-header-popover.directive.mjs +1 -1
- package/esm2022/table-helpers/directives/table-cell-resizable.directive.mjs +8 -10
- package/esm2022/table-helpers/directives/table-data-source.directive.mjs +6 -6
- package/esm2022/table-helpers/services/table-column-resize.service.mjs +14 -17
- package/esm2022/table-helpers/services/table-responsive.service.mjs +6 -11
- package/esm2022/table-helpers/services/table.service.mjs +20 -18
- package/esm2022/value-help-dialog/value-help-dialog/value-help-dialog.component.mjs +10 -18
- package/esm2022/wizard-generator/base-wizard-generator.mjs +12 -19
- package/esm2022/wizard-generator/components/dialog-wizard-generator/dialog-wizard-generator.component.mjs +5 -4
- package/esm2022/wizard-generator/components/wizard-body/wizard-body.component.mjs +7 -13
- package/esm2022/wizard-generator/components/wizard-generator-step/wizard-generator-step.component.mjs +8 -7
- package/fesm2022/fundamental-ngx-platform-form.mjs +137 -174
- package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +24 -46
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-list.mjs +6 -7
- package/fesm2022/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-menu.mjs +3 -3
- package/fesm2022/fundamental-ngx-platform-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-message-popover.mjs +57 -60
- package/fesm2022/fundamental-ngx-platform-message-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-search-field.mjs +21 -38
- package/fesm2022/fundamental-ngx-platform-search-field.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-settings-generator.mjs +6 -8
- package/fesm2022/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-shared.mjs +6 -7
- package/fesm2022/fundamental-ngx-platform-shared.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs +9 -15
- package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs +6 -17
- package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table-helpers.mjs +42 -52
- package/fesm2022/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table.mjs +145 -157
- package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +9 -17
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs +20 -33
- package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs.map +1 -1
- package/form/combobox/combobox-mobile/combobox/combobox-mobile.component.d.ts +2 -4
- package/form/form-generator/form-generator/form-generator.component.d.ts +1 -1
- package/form/form-generator/form-generator.service.d.ts +3 -7
- package/form/form-group/form-field/form-field.component.d.ts +12 -12
- package/form/form-group/form-group.component.d.ts +35 -31
- package/form/multi-combobox/commons/base-multi-combobox.d.ts +2 -2
- package/form/multi-combobox/multi-combobox-mobile/multi-combobox/multi-combobox-mobile.component.d.ts +3 -5
- package/form/multi-combobox/multi-combobox.interface.d.ts +3 -3
- package/form/multi-input/multi-input-mobile/multi-input-mobile.component.d.ts +2 -4
- package/form/radio-group/radio-group.component.d.ts +3 -3
- package/form/step-input/base.step-input.d.ts +5 -6
- package/form/step-input/step-input-action-button.d.ts +4 -7
- package/fundamental-ngx-platform-v0.48.0-rc.23.tgz +0 -0
- package/icon-tab-bar/components/icon-tab-bar-base.class.d.ts +1 -1
- package/icon-tab-bar/directives/dnd/icon-bar-dnd-container.directive.d.ts +5 -8
- package/icon-tab-bar/directives/dnd/icon-bar-dnd-item.directive.d.ts +1 -1
- package/icon-tab-bar/directives/dnd/icon-bar-dnd-list.directive.d.ts +1 -1
- package/icon-tab-bar/icon-tab-bar.component.d.ts +4 -6
- package/list/list.component.d.ts +1 -3
- package/message-popover/components/message-popover-form-wrapper/message-popover-form-wrapper.component.d.ts +2 -4
- package/message-popover/message-popover.component.d.ts +13 -20
- package/message-popover/models/message-popover-wrapper.interface.d.ts +2 -2
- package/package.json +4 -4
- package/search-field/search-field-mobile/search-field/search-field-mobile.component.d.ts +4 -6
- package/search-field/search-field.component.d.ts +6 -4
- package/settings-generator/settings-generator.service.d.ts +1 -1
- package/shared/form/base.input.d.ts +2 -2
- package/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.d.ts +4 -8
- package/split-menu-button/split-menu-button.component.d.ts +3 -8
- package/table/components/reset-button/reset-button.component.d.ts +2 -3
- package/table/components/table-cell-header-popover/table-cell-header-popover.component.d.ts +1 -2
- package/table/components/table-column-resizer/table-column-resizer.component.d.ts +1 -1
- package/table/components/table-group-row/table-group-row.component.d.ts +2 -5
- package/table/components/table-header-cell-content/table-header-cell-content.component.d.ts +11 -6
- package/table/components/table-header-row/table-header-row.component.d.ts +1 -1
- package/table/components/table-p13-dialog/columns/columns.component.d.ts +2 -4
- package/table/components/table-p13-dialog/filtering/filtering.component.d.ts +1 -4
- package/table/components/table-p13-dialog/grouping/grouping.component.d.ts +1 -4
- package/table/components/table-p13-dialog/sorting/sorting.component.d.ts +1 -4
- package/table/components/table-row/table-row.component.d.ts +2 -2
- package/table/components/table-toolbar/table-toolbar.component.d.ts +20 -7
- package/table/components/table-view-settings-dialog/filtering/filters.component.d.ts +1 -4
- package/table/components/table-view-settings-dialog/grouping/grouping.component.d.ts +1 -4
- package/table/components/table-view-settings-dialog/sorting/sorting.component.d.ts +1 -4
- package/table/table.component.d.ts +4 -18
- package/table-helpers/directives/table-cell-header-popover.directive.d.ts +2 -3
- package/table-helpers/directives/table-cell-resizable.directive.d.ts +1 -1
- package/table-helpers/directives/table-data-source.directive.d.ts +1 -1
- package/table-helpers/services/table-column-resize.service.d.ts +2 -2
- package/table-helpers/services/table-responsive.service.d.ts +3 -5
- package/table-helpers/services/table.service.d.ts +12 -10
- package/value-help-dialog/value-help-dialog/value-help-dialog.component.d.ts +2 -1
- package/wizard-generator/base-wizard-generator.d.ts +4 -8
- package/wizard-generator/components/wizard-body/wizard-body.component.d.ts +3 -7
- package/wizard-generator/components/wizard-generator-step/wizard-generator-step.component.d.ts +1 -1
- package/esm2022/search-field/search-field-mobile/search-field-mobile.module.mjs +0 -16
- package/fundamental-ngx-platform-v0.48.0-rc.21.tgz +0 -0
- package/search-field/search-field-mobile/search-field-mobile.module.d.ts +0 -7
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Directive, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChildren,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Injectable, EventEmitter, DestroyRef, inject, Directive, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChildren, ViewChild, TemplateRef, ContentChild, NgModule } from '@angular/core';
|
|
3
|
+
import { take, map, debounceTime, finalize, filter } from 'rxjs/operators';
|
|
4
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
5
|
import { ContentDensityMode, ContentDensityDirective } from '@fundamental-ngx/core/content-density';
|
|
6
6
|
import { cloneDeep, uniq, mergeWith, concat } from 'lodash-es';
|
|
7
|
+
import { Subject, BehaviorSubject, of, firstValueFrom } from 'rxjs';
|
|
7
8
|
import * as i6 from '@fundamental-ngx/cdk/utils';
|
|
8
9
|
import { isFunction, selectStrategy, InitialFocusDirective, RepeatDirective } from '@fundamental-ngx/cdk/utils';
|
|
9
10
|
import * as i2 from '@fundamental-ngx/platform/form';
|
|
@@ -641,21 +642,21 @@ class BaseWizardGenerator {
|
|
|
641
642
|
* @hidden
|
|
642
643
|
* An RxJS Subject that will kill the data stream upon component’s destruction (for unsubscribing)
|
|
643
644
|
*/
|
|
644
|
-
this.
|
|
645
|
+
this._destroyRef = inject(DestroyRef);
|
|
645
646
|
/**
|
|
646
647
|
* @hidden
|
|
647
648
|
*/
|
|
648
649
|
this._navigationButtonLabels = DEFAULT_WIZARD_NAVIGATION_BUTTONS;
|
|
649
650
|
this._wizardGeneratorService
|
|
650
651
|
.getVisibleSteps()
|
|
651
|
-
.pipe(debounceTime(10),
|
|
652
|
+
.pipe(debounceTime(10), takeUntilDestroyed(this._destroyRef))
|
|
652
653
|
.subscribe((visibleSteps) => {
|
|
653
654
|
this.visibleItems = visibleSteps;
|
|
654
655
|
this._cd.detectChanges();
|
|
655
656
|
});
|
|
656
657
|
this._wizardGeneratorService
|
|
657
658
|
.trackStepsComponents()
|
|
658
|
-
.pipe(debounceTime(10),
|
|
659
|
+
.pipe(debounceTime(10), takeUntilDestroyed(this._destroyRef))
|
|
659
660
|
.subscribe(async (stepsComponents) => {
|
|
660
661
|
if (stepsComponents.size === this.items?.length) {
|
|
661
662
|
await this._setVisibleSteps();
|
|
@@ -663,31 +664,24 @@ class BaseWizardGenerator {
|
|
|
663
664
|
});
|
|
664
665
|
this._wizardGeneratorService
|
|
665
666
|
.trackAppendToWizardState()
|
|
666
|
-
.pipe(
|
|
667
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
667
668
|
.subscribe((value) => {
|
|
668
669
|
this._appendToWizard = value;
|
|
669
670
|
});
|
|
670
671
|
this._wizardGeneratorService
|
|
671
672
|
.trackStepsOrder()
|
|
672
|
-
.pipe(
|
|
673
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
673
674
|
.subscribe((newNextStep) => {
|
|
674
675
|
this._nextStepIndex = newNextStep;
|
|
675
676
|
this._stepsOrderChanged = true;
|
|
676
677
|
});
|
|
677
678
|
this._wizardGeneratorService
|
|
678
679
|
.trackNextStepIndex()
|
|
679
|
-
.pipe(
|
|
680
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
680
681
|
.subscribe((index) => {
|
|
681
682
|
this._nextStepIndex = index;
|
|
682
683
|
});
|
|
683
684
|
}
|
|
684
|
-
/**
|
|
685
|
-
* @hidden
|
|
686
|
-
*/
|
|
687
|
-
ngOnDestroy() {
|
|
688
|
-
this._onDestroy$.next();
|
|
689
|
-
this._onDestroy$.complete();
|
|
690
|
-
}
|
|
691
685
|
/**
|
|
692
686
|
* @description Reverts Wizard progress one step back.
|
|
693
687
|
*/
|
|
@@ -715,7 +709,7 @@ class BaseWizardGenerator {
|
|
|
715
709
|
const nextStepIndex = this._nextStepIndex;
|
|
716
710
|
this._wizardGeneratorService
|
|
717
711
|
.validateStepForms()
|
|
718
|
-
.pipe(
|
|
712
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
719
713
|
.subscribe(async (result) => {
|
|
720
714
|
if (!result) {
|
|
721
715
|
return;
|
|
@@ -756,7 +750,7 @@ class BaseWizardGenerator {
|
|
|
756
750
|
}
|
|
757
751
|
this._wizardGeneratorService
|
|
758
752
|
.validateStepForms()
|
|
759
|
-
.pipe(
|
|
753
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
760
754
|
.subscribe(async (result) => {
|
|
761
755
|
if (!result) {
|
|
762
756
|
return;
|
|
@@ -844,7 +838,7 @@ class WizardGeneratorStepComponent {
|
|
|
844
838
|
* @hidden
|
|
845
839
|
* An RxJS Subject that will kill the data stream upon component’s destruction (for unsubscribing)
|
|
846
840
|
*/
|
|
847
|
-
this.
|
|
841
|
+
this._destroyRef = inject(DestroyRef);
|
|
848
842
|
}
|
|
849
843
|
/**
|
|
850
844
|
* @hidden
|
|
@@ -857,8 +851,6 @@ class WizardGeneratorStepComponent {
|
|
|
857
851
|
*/
|
|
858
852
|
ngOnDestroy() {
|
|
859
853
|
this._wizardGeneratorService.removeWizardStepComponent(this.item.id);
|
|
860
|
-
this._onDestroy$.next();
|
|
861
|
-
this._onDestroy$.complete();
|
|
862
854
|
}
|
|
863
855
|
/** @hidden */
|
|
864
856
|
async ngOnChanges(changes) {
|
|
@@ -949,7 +941,9 @@ class WizardGeneratorStepComponent {
|
|
|
949
941
|
const refreshSteps = strategies[WizardGeneratorRefreshStrategy.REFRESH_STEP_VISIBILITY] !== undefined;
|
|
950
942
|
const revalidateForms = strategies[WizardGeneratorRefreshStrategy.REVALIDATE_STEP_FORMS];
|
|
951
943
|
const refreshFormVisibility = strategies[WizardGeneratorRefreshStrategy.REFRESH_FORM_VISIBILITY];
|
|
952
|
-
control?.valueChanges
|
|
944
|
+
control?.valueChanges
|
|
945
|
+
.pipe(debounceTime(50), takeUntilDestroyed(this._destroyRef))
|
|
946
|
+
.subscribe(async () => {
|
|
953
947
|
if (refreshSteps) {
|
|
954
948
|
await this._wizardGeneratorService.refreshStepVisibility();
|
|
955
949
|
}
|
|
@@ -1226,7 +1220,7 @@ class WizardBodyComponent {
|
|
|
1226
1220
|
* @hidden
|
|
1227
1221
|
* An RxJS Subject that will kill the data stream upon component’s destruction (for unsubscribing)
|
|
1228
1222
|
*/
|
|
1229
|
-
this.
|
|
1223
|
+
this._destroyRef = inject(DestroyRef);
|
|
1230
1224
|
/**
|
|
1231
1225
|
* @hidden
|
|
1232
1226
|
*/
|
|
@@ -1260,19 +1254,12 @@ class WizardBodyComponent {
|
|
|
1260
1254
|
ngOnInit() {
|
|
1261
1255
|
this._wizardGeneratorService
|
|
1262
1256
|
.getVisibleSteps()
|
|
1263
|
-
.pipe(debounceTime(50),
|
|
1257
|
+
.pipe(debounceTime(50), takeUntilDestroyed(this._destroyRef))
|
|
1264
1258
|
.subscribe((visibleSteps) => {
|
|
1265
1259
|
this._visibleItems = visibleSteps;
|
|
1266
1260
|
this._cd.detectChanges();
|
|
1267
1261
|
});
|
|
1268
1262
|
}
|
|
1269
|
-
/**
|
|
1270
|
-
* @hidden
|
|
1271
|
-
*/
|
|
1272
|
-
ngOnDestroy() {
|
|
1273
|
-
this._onDestroy$.next();
|
|
1274
|
-
this._onDestroy$.complete();
|
|
1275
|
-
}
|
|
1276
1263
|
/**
|
|
1277
1264
|
* @description Callback function for status change.
|
|
1278
1265
|
* @param id step ID.
|
|
@@ -1431,7 +1418,7 @@ class DialogWizardGeneratorComponent extends BaseWizardGenerator {
|
|
|
1431
1418
|
const template = this.confirmationDialogTemplate || this.defaultConfirmationDialogTemplate;
|
|
1432
1419
|
const messageBoxRef = this._messageBoxService.open(template, { responsivePadding: true });
|
|
1433
1420
|
messageBoxRef.afterClosed
|
|
1434
|
-
.pipe(filter((result) => result),
|
|
1421
|
+
.pipe(filter((result) => result), takeUntilDestroyed(this._destroyRef))
|
|
1435
1422
|
.subscribe(() => {
|
|
1436
1423
|
this._dialogRef.dismiss();
|
|
1437
1424
|
});
|
|
@@ -1447,7 +1434,7 @@ class DialogWizardGeneratorComponent extends BaseWizardGenerator {
|
|
|
1447
1434
|
}
|
|
1448
1435
|
const currentStepId = this._wizardGeneratorService.getCurrentStepId();
|
|
1449
1436
|
this.submitStepForms(currentStepId)
|
|
1450
|
-
.pipe(
|
|
1437
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
1451
1438
|
.subscribe(async (result) => {
|
|
1452
1439
|
if (result && Object.values(result).some((r) => !r.success)) {
|
|
1453
1440
|
return;
|