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

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,7 +18797,7 @@ 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
18800
+ .pipe(startWith('none'), tap((mode) => console.debug('[toolbar] Updating progressBarMode: ' + mode)), debounceTime(100), // wait 100ms, to group changes
18801
18801
  distinctUntilChanged());
18802
18802
  }
18803
18803
  }
@@ -18843,8 +18843,9 @@ class ToolbarComponent {
18843
18843
  async toggleSearchBar() {
18844
18844
  this.showSearchBar = !this.showSearchBar;
18845
18845
  if (this.showSearchBar && this.searchbar) {
18846
- setTimeout(async () => {
18847
- await this.searchbar.setFocus();
18846
+ setTimeout(() => {
18847
+ this.searchbar.setFocus();
18848
+ this.markForCheck();
18848
18849
  }, 300);
18849
18850
  }
18850
18851
  }
@@ -18937,6 +18938,9 @@ class ToolbarComponent {
18937
18938
  ionSearchBarChanged(event) {
18938
18939
  this.onSearch.emit(event);
18939
18940
  }
18941
+ markForCheck() {
18942
+ this.cd.markForCheck();
18943
+ }
18940
18944
  }
18941
18945
  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
18946
  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: [