@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.
Files changed (147) hide show
  1. package/esm2022/form/combobox/combobox-mobile/combobox/combobox-mobile.component.mjs +6 -8
  2. package/esm2022/form/combobox/commons/base-combobox.mjs +6 -5
  3. package/esm2022/form/form-generator/form-generator/form-generator.component.mjs +8 -8
  4. package/esm2022/form/form-generator/form-generator.service.mjs +8 -13
  5. package/esm2022/form/form-group/form-field/form-field.component.mjs +27 -29
  6. package/esm2022/form/form-group/form-group.component.mjs +37 -40
  7. package/esm2022/form/multi-combobox/commons/base-multi-combobox.mjs +9 -8
  8. package/esm2022/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +3 -3
  9. package/esm2022/form/multi-combobox/multi-combobox-mobile/multi-combobox/multi-combobox-mobile.component.mjs +10 -13
  10. package/esm2022/form/multi-combobox/multi-combobox.interface.mjs +1 -1
  11. package/esm2022/form/multi-input/base-multi-input.mjs +5 -4
  12. package/esm2022/form/multi-input/multi-input-mobile/multi-input-mobile.component.mjs +4 -7
  13. package/esm2022/form/radio-group/radio-group.component.mjs +23 -24
  14. package/esm2022/form/select/commons/base-select.mjs +3 -3
  15. package/esm2022/form/step-input/base.step-input.mjs +25 -35
  16. package/esm2022/form/step-input/number/number-step-input.component.mjs +3 -3
  17. package/esm2022/form/step-input/step-input-action-button.mjs +6 -10
  18. package/esm2022/icon-tab-bar/components/icon-tab-bar-base.class.mjs +6 -8
  19. package/esm2022/icon-tab-bar/directives/dnd/icon-bar-dnd-container.directive.mjs +10 -19
  20. package/esm2022/icon-tab-bar/directives/dnd/icon-bar-dnd-item.directive.mjs +7 -9
  21. package/esm2022/icon-tab-bar/directives/dnd/icon-bar-dnd-list.directive.mjs +7 -8
  22. package/esm2022/icon-tab-bar/icon-tab-bar.component.mjs +9 -20
  23. package/esm2022/list/list.component.mjs +7 -8
  24. package/esm2022/menu/menu.component.mjs +3 -4
  25. package/esm2022/message-popover/components/message-popover-form-wrapper/message-popover-form-wrapper.component.mjs +8 -11
  26. package/esm2022/message-popover/message-popover.component.mjs +52 -53
  27. package/esm2022/message-popover/models/message-popover-wrapper.interface.mjs +1 -1
  28. package/esm2022/search-field/search-field-mobile/search-field/search-field-mobile.component.mjs +3 -7
  29. package/esm2022/search-field/search-field.component.mjs +20 -21
  30. package/esm2022/settings-generator/settings-generator.service.mjs +9 -10
  31. package/esm2022/shared/form/base.input.mjs +7 -8
  32. package/esm2022/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +10 -15
  33. package/esm2022/split-menu-button/split-menu-button.component.mjs +7 -18
  34. package/esm2022/table/components/reset-button/reset-button.component.mjs +5 -6
  35. package/esm2022/table/components/table-cell-header-popover/table-cell-header-popover.component.mjs +6 -7
  36. package/esm2022/table/components/table-column-resizer/table-column-resizer.component.mjs +6 -8
  37. package/esm2022/table/components/table-group-row/table-group-row.component.mjs +3 -7
  38. package/esm2022/table/components/table-header-cell-content/table-header-cell-content.component.mjs +29 -13
  39. package/esm2022/table/components/table-header-row/table-header-row.component.mjs +7 -11
  40. package/esm2022/table/components/table-p13-dialog/columns/columns.component.mjs +5 -7
  41. package/esm2022/table/components/table-p13-dialog/filtering/filtering.component.mjs +5 -8
  42. package/esm2022/table/components/table-p13-dialog/grouping/grouping.component.mjs +5 -8
  43. package/esm2022/table/components/table-p13-dialog/sorting/sorting.component.mjs +5 -8
  44. package/esm2022/table/components/table-popping-row/table-popping-row.component.mjs +4 -5
  45. package/esm2022/table/components/table-row/table-row.component.mjs +6 -13
  46. package/esm2022/table/components/table-toolbar/table-toolbar.component.mjs +34 -21
  47. package/esm2022/table/components/table-view-settings-dialog/filtering/filters.component.mjs +5 -8
  48. package/esm2022/table/components/table-view-settings-dialog/grouping/grouping.component.mjs +6 -9
  49. package/esm2022/table/components/table-view-settings-dialog/sorting/sorting.component.mjs +6 -9
  50. package/esm2022/table/table.component.mjs +39 -49
  51. package/esm2022/table-helpers/directives/table-cell-header-popover.directive.mjs +1 -1
  52. package/esm2022/table-helpers/directives/table-cell-resizable.directive.mjs +8 -10
  53. package/esm2022/table-helpers/directives/table-data-source.directive.mjs +6 -6
  54. package/esm2022/table-helpers/services/table-column-resize.service.mjs +14 -17
  55. package/esm2022/table-helpers/services/table-responsive.service.mjs +6 -11
  56. package/esm2022/table-helpers/services/table.service.mjs +20 -18
  57. package/esm2022/value-help-dialog/value-help-dialog/value-help-dialog.component.mjs +10 -18
  58. package/esm2022/wizard-generator/base-wizard-generator.mjs +12 -19
  59. package/esm2022/wizard-generator/components/dialog-wizard-generator/dialog-wizard-generator.component.mjs +5 -4
  60. package/esm2022/wizard-generator/components/wizard-body/wizard-body.component.mjs +7 -13
  61. package/esm2022/wizard-generator/components/wizard-generator-step/wizard-generator-step.component.mjs +8 -7
  62. package/fesm2022/fundamental-ngx-platform-form.mjs +137 -174
  63. package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
  64. package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +24 -46
  65. package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
  66. package/fesm2022/fundamental-ngx-platform-list.mjs +6 -7
  67. package/fesm2022/fundamental-ngx-platform-list.mjs.map +1 -1
  68. package/fesm2022/fundamental-ngx-platform-menu.mjs +3 -3
  69. package/fesm2022/fundamental-ngx-platform-menu.mjs.map +1 -1
  70. package/fesm2022/fundamental-ngx-platform-message-popover.mjs +57 -60
  71. package/fesm2022/fundamental-ngx-platform-message-popover.mjs.map +1 -1
  72. package/fesm2022/fundamental-ngx-platform-search-field.mjs +21 -38
  73. package/fesm2022/fundamental-ngx-platform-search-field.mjs.map +1 -1
  74. package/fesm2022/fundamental-ngx-platform-settings-generator.mjs +6 -8
  75. package/fesm2022/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
  76. package/fesm2022/fundamental-ngx-platform-shared.mjs +6 -7
  77. package/fesm2022/fundamental-ngx-platform-shared.mjs.map +1 -1
  78. package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs +9 -15
  79. package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  80. package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs +6 -17
  81. package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs.map +1 -1
  82. package/fesm2022/fundamental-ngx-platform-table-helpers.mjs +42 -52
  83. package/fesm2022/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  84. package/fesm2022/fundamental-ngx-platform-table.mjs +145 -157
  85. package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
  86. package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +9 -17
  87. package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  88. package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs +20 -33
  89. package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs.map +1 -1
  90. package/form/combobox/combobox-mobile/combobox/combobox-mobile.component.d.ts +2 -4
  91. package/form/form-generator/form-generator/form-generator.component.d.ts +1 -1
  92. package/form/form-generator/form-generator.service.d.ts +3 -7
  93. package/form/form-group/form-field/form-field.component.d.ts +12 -12
  94. package/form/form-group/form-group.component.d.ts +35 -31
  95. package/form/multi-combobox/commons/base-multi-combobox.d.ts +2 -2
  96. package/form/multi-combobox/multi-combobox-mobile/multi-combobox/multi-combobox-mobile.component.d.ts +3 -5
  97. package/form/multi-combobox/multi-combobox.interface.d.ts +3 -3
  98. package/form/multi-input/multi-input-mobile/multi-input-mobile.component.d.ts +2 -4
  99. package/form/radio-group/radio-group.component.d.ts +3 -3
  100. package/form/step-input/base.step-input.d.ts +5 -6
  101. package/form/step-input/step-input-action-button.d.ts +4 -7
  102. package/fundamental-ngx-platform-v0.48.0-rc.23.tgz +0 -0
  103. package/icon-tab-bar/components/icon-tab-bar-base.class.d.ts +1 -1
  104. package/icon-tab-bar/directives/dnd/icon-bar-dnd-container.directive.d.ts +5 -8
  105. package/icon-tab-bar/directives/dnd/icon-bar-dnd-item.directive.d.ts +1 -1
  106. package/icon-tab-bar/directives/dnd/icon-bar-dnd-list.directive.d.ts +1 -1
  107. package/icon-tab-bar/icon-tab-bar.component.d.ts +4 -6
  108. package/list/list.component.d.ts +1 -3
  109. package/message-popover/components/message-popover-form-wrapper/message-popover-form-wrapper.component.d.ts +2 -4
  110. package/message-popover/message-popover.component.d.ts +13 -20
  111. package/message-popover/models/message-popover-wrapper.interface.d.ts +2 -2
  112. package/package.json +4 -4
  113. package/search-field/search-field-mobile/search-field/search-field-mobile.component.d.ts +4 -6
  114. package/search-field/search-field.component.d.ts +6 -4
  115. package/settings-generator/settings-generator.service.d.ts +1 -1
  116. package/shared/form/base.input.d.ts +2 -2
  117. package/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.d.ts +4 -8
  118. package/split-menu-button/split-menu-button.component.d.ts +3 -8
  119. package/table/components/reset-button/reset-button.component.d.ts +2 -3
  120. package/table/components/table-cell-header-popover/table-cell-header-popover.component.d.ts +1 -2
  121. package/table/components/table-column-resizer/table-column-resizer.component.d.ts +1 -1
  122. package/table/components/table-group-row/table-group-row.component.d.ts +2 -5
  123. package/table/components/table-header-cell-content/table-header-cell-content.component.d.ts +11 -6
  124. package/table/components/table-header-row/table-header-row.component.d.ts +1 -1
  125. package/table/components/table-p13-dialog/columns/columns.component.d.ts +2 -4
  126. package/table/components/table-p13-dialog/filtering/filtering.component.d.ts +1 -4
  127. package/table/components/table-p13-dialog/grouping/grouping.component.d.ts +1 -4
  128. package/table/components/table-p13-dialog/sorting/sorting.component.d.ts +1 -4
  129. package/table/components/table-row/table-row.component.d.ts +2 -2
  130. package/table/components/table-toolbar/table-toolbar.component.d.ts +20 -7
  131. package/table/components/table-view-settings-dialog/filtering/filters.component.d.ts +1 -4
  132. package/table/components/table-view-settings-dialog/grouping/grouping.component.d.ts +1 -4
  133. package/table/components/table-view-settings-dialog/sorting/sorting.component.d.ts +1 -4
  134. package/table/table.component.d.ts +4 -18
  135. package/table-helpers/directives/table-cell-header-popover.directive.d.ts +2 -3
  136. package/table-helpers/directives/table-cell-resizable.directive.d.ts +1 -1
  137. package/table-helpers/directives/table-data-source.directive.d.ts +1 -1
  138. package/table-helpers/services/table-column-resize.service.d.ts +2 -2
  139. package/table-helpers/services/table-responsive.service.d.ts +3 -5
  140. package/table-helpers/services/table.service.d.ts +12 -10
  141. package/value-help-dialog/value-help-dialog/value-help-dialog.component.d.ts +2 -1
  142. package/wizard-generator/base-wizard-generator.d.ts +4 -8
  143. package/wizard-generator/components/wizard-body/wizard-body.component.d.ts +3 -7
  144. package/wizard-generator/components/wizard-generator-step/wizard-generator-step.component.d.ts +1 -1
  145. package/esm2022/search-field/search-field-mobile/search-field-mobile.module.mjs +0 -16
  146. package/fundamental-ngx-platform-v0.48.0-rc.21.tgz +0 -0
  147. 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, inject, ViewChild, TemplateRef, ContentChild, NgModule } from '@angular/core';
3
- import { Subject, BehaviorSubject, of, firstValueFrom } from 'rxjs';
4
- import { take, map, debounceTime, takeUntil, finalize, filter } from 'rxjs/operators';
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._onDestroy$ = new Subject();
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), takeUntil(this._onDestroy$))
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), takeUntil(this._onDestroy$))
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(takeUntil(this._onDestroy$))
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(takeUntil(this._onDestroy$))
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(takeUntil(this._onDestroy$))
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(takeUntil(this._onDestroy$))
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(takeUntil(this._onDestroy$))
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._onDestroy$ = new Subject();
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.pipe(debounceTime(50), takeUntil(this._onDestroy$)).subscribe(async () => {
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._onDestroy$ = new Subject();
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), takeUntil(this._onDestroy$))
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), takeUntil(this._onDestroy$))
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(takeUntil(this._onDestroy$))
1437
+ .pipe(takeUntilDestroyed(this._destroyRef))
1451
1438
  .subscribe(async (result) => {
1452
1439
  if (result && Object.values(result).some((r) => !r.success)) {
1453
1440
  return;