@fundamental-ngx/platform 0.65.0-rc.3 → 0.65.0-rc.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.
@@ -18,7 +18,7 @@ import { SortDirection, TableService, Table, ColumnAlign, FILTER_STRING_STRATEGY
18
18
  export * from '@fundamental-ngx/platform/table-helpers';
19
19
  import { shallowEqual } from 'fast-equals';
20
20
  import { fromEvent, BehaviorSubject, Subscription, combineLatest, distinctUntilChanged, Subject, merge, of } from 'rxjs';
21
- import { startWith, take, debounceTime, skip, filter, switchMap, takeUntil, map, distinctUntilChanged as distinctUntilChanged$1, tap } from 'rxjs/operators';
21
+ import { startWith, take, debounceTime, skip, filter, map, switchMap, takeUntil, distinctUntilChanged as distinctUntilChanged$1, tap } from 'rxjs/operators';
22
22
  import { ButtonComponent } from '@fundamental-ngx/core/button';
23
23
  import { takeUntilDestroyed, outputFromObservable, toObservable } from '@angular/core/rxjs-interop';
24
24
  import { FormItemComponent, FormLabelComponent, FormControlComponent, FormGroupComponent } from '@fundamental-ngx/core/form';
@@ -4186,6 +4186,7 @@ class TableViewSettingsDialogComponent {
4186
4186
  /** @hidden Stores the last known full column order (visible + hidden) */
4187
4187
  this._lastColumnOrder = null;
4188
4188
  this.destroyRef = inject(DestroyRef);
4189
+ this._injector = inject(Injector);
4189
4190
  }
4190
4191
  /** @hidden */
4191
4192
  ngAfterViewInit() {
@@ -4294,8 +4295,8 @@ class TableViewSettingsDialogComponent {
4294
4295
  allowColumnConfiguration: this.allowColumnConfiguration
4295
4296
  }
4296
4297
  }, this.table.injector);
4297
- this._dialogRef.afterClosed
4298
- .pipe(filter((result) => !!result), takeUntilDestroyed(this.destroyRef))
4298
+ toObservable(this._dialogRef.closeResult, { injector: this._injector })
4299
+ .pipe(filter((result) => result !== null), take(1), filter((result) => result.status === 'closed' && !!result.value), map((result) => result.value), takeUntilDestroyed(this.destroyRef))
4299
4300
  .subscribe(({ sortingData, filteringData, includeExcludeFiltersData: resultFiltersData, groupingData, columnsData }) => {
4300
4301
  if (sortingData) {
4301
4302
  this._applySorting(sortingData);