@sumaris-net/ngx-components 2.2.5 → 2.2.6-rc2

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.
@@ -18797,15 +18797,17 @@ class ToolbarComponent {
18797
18797
  // Listen progress bar service mode
18798
18798
  if (progressBarService) {
18799
18799
  this.progressBarMode$ = progressBarService.onProgressChanged
18800
- .pipe(startWith('none'), tap((mode) => '[toolbar] Updating progressBarMode: ' + mode), debounceTime(100), // wait 100ms, to group changes
18801
- distinctUntilChanged());
18800
+ .pipe(startWith(null), debounceTime(100), // wait 100ms, to group changes
18801
+ distinctUntilChanged(),
18802
+ // DEBUG
18803
+ tap((mode) => console.debug('[toolbar] Updating progressBarMode: ' + mode)));
18802
18804
  }
18803
18805
  }
18804
18806
  set backHref(value) {
18805
18807
  if (value !== this._backHref) {
18806
18808
  this._backHref = value;
18807
18809
  this.canGoBack = this.canGoBack || isNotNil(value);
18808
- this.cd.markForCheck();
18810
+ this.markForCheck();
18809
18811
  }
18810
18812
  }
18811
18813
  get backHref() {
@@ -18815,7 +18817,7 @@ class ToolbarComponent {
18815
18817
  if (value !== this._defaultBackHref) {
18816
18818
  this._defaultBackHref = value;
18817
18819
  this.canGoBack = this.canGoBack || isNotNil(value);
18818
- this.cd.markForCheck();
18820
+ this.markForCheck();
18819
18821
  }
18820
18822
  }
18821
18823
  get defaultBackHref() {
@@ -18843,8 +18845,9 @@ class ToolbarComponent {
18843
18845
  async toggleSearchBar() {
18844
18846
  this.showSearchBar = !this.showSearchBar;
18845
18847
  if (this.showSearchBar && this.searchbar) {
18846
- setTimeout(async () => {
18847
- await this.searchbar.setFocus();
18848
+ setTimeout(() => {
18849
+ this.searchbar.setFocus();
18850
+ this.markForCheck();
18848
18851
  }, 300);
18849
18852
  }
18850
18853
  }
@@ -18937,6 +18940,9 @@ class ToolbarComponent {
18937
18940
  ionSearchBarChanged(event) {
18938
18941
  this.onSearch.emit(event);
18939
18942
  }
18943
+ markForCheck() {
18944
+ this.cd.markForCheck();
18945
+ }
18940
18946
  }
18941
18947
  ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1$5.ActivatedRoute }, { token: i1$5.Router }, { token: i2.IonRouterOutlet }, { token: i0.ChangeDetectorRef }, { token: ProgressBarService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
18942
18948
  ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: ToolbarComponent, selector: "app-toolbar", inputs: { title: "title", color: "color", class: "class", backHref: "backHref", defaultBackHref: "defaultBackHref", hasValidate: "hasValidate", hasClose: "hasClose", hasSearch: "hasSearch", canGoBack: "canGoBack", canShowMenu: "canShowMenu" }, outputs: { onValidate: "onValidate", onClose: "onClose", onValidateAndClose: "onValidateAndClose", onBackClick: "onBackClick", onSearch: "onSearch" }, providers: [