@smartbit4all/ng-client 3.3.176 → 3.3.178

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.
@@ -4656,8 +4656,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
4656
4656
  }], ctorParameters: function () { return [{ type: i4.MatIconRegistry }, { type: i2$2.DomSanitizer }]; } });
4657
4657
 
4658
4658
  class SmartIconComponent {
4659
- constructor(service) {
4659
+ constructor(service, changeDetector) {
4660
4660
  this.service = service;
4661
+ this.changeDetector = changeDetector;
4661
4662
  this.isCustom = false;
4662
4663
  }
4663
4664
  ngOnChanges(changes) {
@@ -4674,14 +4675,15 @@ class SmartIconComponent {
4674
4675
  this.isCustom = false;
4675
4676
  this.icon = this.iconWithoutNamespace;
4676
4677
  }
4678
+ this.changeDetector.markForCheck();
4677
4679
  }
4678
4680
  }
4679
- SmartIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartIconComponent, deps: [{ token: SmartIconService }], target: i0.ɵɵFactoryTarget.Component });
4681
+ SmartIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartIconComponent, deps: [{ token: SmartIconService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4680
4682
  SmartIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartIconComponent, selector: "smart-icon", inputs: { iconWithoutNamespace: ["icon", "iconWithoutNamespace"], color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon [color]=\"color ?? 'primary'\" *ngIf=\"isCustom\" svgIcon=\"{{ icon }}\"></mat-icon>\r\n<mat-icon [color]=\"color ?? 'primary'\" *ngIf=\"!isCustom\"> {{ icon }} </mat-icon>\r\n", styles: [""], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4681
4683
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartIconComponent, decorators: [{
4682
4684
  type: Component,
4683
4685
  args: [{ selector: 'smart-icon', template: "<mat-icon [color]=\"color ?? 'primary'\" *ngIf=\"isCustom\" svgIcon=\"{{ icon }}\"></mat-icon>\r\n<mat-icon [color]=\"color ?? 'primary'\" *ngIf=\"!isCustom\"> {{ icon }} </mat-icon>\r\n", styles: [""] }]
4684
- }], ctorParameters: function () { return [{ type: SmartIconService }]; }, propDecorators: { iconWithoutNamespace: [{
4686
+ }], ctorParameters: function () { return [{ type: SmartIconService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { iconWithoutNamespace: [{
4685
4687
  type: Input,
4686
4688
  args: ['icon']
4687
4689
  }], color: [{
@@ -5176,12 +5178,6 @@ class UiActionToolbarComponent {
5176
5178
  }
5177
5179
  this.setUp();
5178
5180
  }
5179
- ngAfterViewInit() {
5180
- this.changeDetector.detectChanges();
5181
- }
5182
- ngAfterViewChecked() {
5183
- this.changeDetector.detectChanges();
5184
- }
5185
5181
  ngOnChanges(changes) {
5186
5182
  if (changes['uiActionModels']) {
5187
5183
  let uiActionModels = changes['uiActionModels'].currentValue;
@@ -15455,19 +15451,6 @@ class SmartComponentApiClient {
15455
15451
  await toolbar.setUp();
15456
15452
  });
15457
15453
  this.changeDetector?.detectChanges();
15458
- // Promise.all(
15459
- // toolbars.map((toolbar) => {
15460
- // toolbar.uiActionModels = toolbarModels.get(toolbar.id!);
15461
- // return toolbar.setUp();
15462
- // })
15463
- // )
15464
- // .then(() => {
15465
- // // continue code here if needed
15466
- // this.changeDetector?.detectChanges();
15467
- // })
15468
- // .catch((error) => {
15469
- // console.error('An error occurred during toolbar setup:', error);
15470
- // });
15471
15454
  }
15472
15455
  }
15473
15456
  run() {