@smartsoft001/crud-shell-angular 1.1.750 → 1.1.752

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.
@@ -17,7 +17,7 @@ import { FormsModule, FormControl, FormGroup, FormArray } from '@angular/forms';
17
17
  import * as i3$1 from '@angular/common';
18
18
  import { CommonModule } from '@angular/common';
19
19
  import * as i4 from '@ngx-translate/core';
20
- import { Subscription, combineLatest, forkJoin, of, BehaviorSubject } from 'rxjs';
20
+ import { Subscription, combineLatest, forkJoin, of, BehaviorSubject, Subject } from 'rxjs';
21
21
  import * as _ from 'lodash';
22
22
  import * as i6 from 'ng-dynamic-component';
23
23
  import { DynamicIoModule } from 'ng-dynamic-component';
@@ -1847,6 +1847,7 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
1847
1847
  this.searchService = searchService;
1848
1848
  this.moduleRef = moduleRef;
1849
1849
  this.componentFactoryResolver = componentFactoryResolver;
1850
+ this._cleanMultiSelected$ = new Subject();
1850
1851
  this.filter$ = this.facade.filter$.pipe(tap((filter) => {
1851
1852
  this.filter = filter;
1852
1853
  }));
@@ -1951,6 +1952,7 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
1951
1952
  },
1952
1953
  list$: this.facade.list$,
1953
1954
  loading$: this.facade.loaded$.pipe(map((l) => !l)),
1955
+ onCleanMultiSelected$: this._cleanMultiSelected$
1954
1956
  },
1955
1957
  cellPipe: this.config.list ? this.config.list.cellPipe : null,
1956
1958
  mode: this.config.list?.mode,
@@ -2043,15 +2045,18 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
2043
2045
  {
2044
2046
  icon: "checkbox-outline",
2045
2047
  text: "multi",
2046
- handler: async () => {
2047
- this.listOptions = {
2048
- ...this.listOptions,
2049
- select: this.listOptions.select === "multi" ? null : "multi",
2050
- };
2048
+ handler: () => {
2051
2049
  this.facade.multiSelect([]);
2052
- if (this.menuService.openedEnd)
2053
- await this.menuService.closeEnd();
2054
- this.cd.detectChanges();
2050
+ this._cleanMultiSelected$.next();
2051
+ setTimeout(async () => {
2052
+ this.listOptions = {
2053
+ ...this.listOptions,
2054
+ select: this.listOptions.select === "multi" ? null : "multi",
2055
+ };
2056
+ if (this.menuService.openedEnd)
2057
+ await this.menuService.closeEnd();
2058
+ this.cd.detectChanges();
2059
+ });
2055
2060
  },
2056
2061
  },
2057
2062
  ]