@wavemaker-ai/app-ng-runtime 1.0.0-rc.319 → 1.0.0-rc.324

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.
@@ -3008,6 +3008,9 @@
3008
3008
  this.binditemtarget = this.nativeElement.getAttribute('itemtarget.bind');
3009
3009
  this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
3010
3010
  this.bindisactive = this.nativeElement.getAttribute('isactive.bind');
3011
+ this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe('locale-changed', () => {
3012
+ this._resetNodes();
3013
+ });
3011
3014
  }
3012
3015
  /**
3013
3016
  * constructs individual node for the widget model.
@@ -3148,6 +3151,9 @@
3148
3151
  super.onPropertyChange(key, nv, ov);
3149
3152
  }
3150
3153
  ngOnDestroy() {
3154
+ if (this.cancelLocaleChangeSubscription) {
3155
+ this.cancelLocaleChangeSubscription();
3156
+ }
3151
3157
  // MEMORY LEAK FIX: Cancel debounced function
3152
3158
  if (this._resetNodes && this._resetNodes.cancel) {
3153
3159
  this._resetNodes.cancel();
@@ -6059,14 +6065,15 @@
6059
6065
  static { this.ɵfac = function SvgIconDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SvgIconDirective)(); }; }
6060
6066
  static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: SvgIconDirective, selectors: [["", "iconUrl", ""]], hostVars: 1, hostBindings: function SvgIconDirective_HostBindings(rf, ctx) { if (rf & 2) {
6061
6067
  i0__namespace.ɵɵdomProperty("innerHTML", ctx.hostInnerHtml, i0__namespace.ɵɵsanitizeHtml);
6062
- } }, inputs: { iconUrl: "iconUrl" }, exportAs: ["svgIcon"], features: [i0__namespace.ɵɵNgOnChangesFeature] }); }
6068
+ } }, inputs: { iconUrl: "iconUrl" }, exportAs: ["svgIcon"], features: [i0__namespace.ɵɵProvidersFeature([ImagePipe]), i0__namespace.ɵɵNgOnChangesFeature] }); }
6063
6069
  }
6064
6070
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SvgIconDirective, [{
6065
6071
  type: i0.Directive,
6066
6072
  args: [{
6067
6073
  standalone: true,
6068
6074
  selector: '[iconUrl]',
6069
- exportAs: 'svgIcon'
6075
+ exportAs: 'svgIcon',
6076
+ providers: [ImagePipe]
6070
6077
  }]
6071
6078
  }], null, { iconUrl: [{
6072
6079
  type: i0.Input
@@ -3006,6 +3006,9 @@ class DatasetAwareNavComponent extends StylableComponent {
3006
3006
  this.binditemtarget = this.nativeElement.getAttribute('itemtarget.bind');
3007
3007
  this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
3008
3008
  this.bindisactive = this.nativeElement.getAttribute('isactive.bind');
3009
+ this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe('locale-changed', () => {
3010
+ this._resetNodes();
3011
+ });
3009
3012
  }
3010
3013
  /**
3011
3014
  * constructs individual node for the widget model.
@@ -3146,6 +3149,9 @@ class DatasetAwareNavComponent extends StylableComponent {
3146
3149
  super.onPropertyChange(key, nv, ov);
3147
3150
  }
3148
3151
  ngOnDestroy() {
3152
+ if (this.cancelLocaleChangeSubscription) {
3153
+ this.cancelLocaleChangeSubscription();
3154
+ }
3149
3155
  // MEMORY LEAK FIX: Cancel debounced function
3150
3156
  if (this._resetNodes && this._resetNodes.cancel) {
3151
3157
  this._resetNodes.cancel();
@@ -6060,14 +6066,15 @@ class SvgIconDirective {
6060
6066
  static { this.ɵfac = function SvgIconDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SvgIconDirective)(); }; }
6061
6067
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SvgIconDirective, selectors: [["", "iconUrl", ""]], hostVars: 1, hostBindings: function SvgIconDirective_HostBindings(rf, ctx) { if (rf & 2) {
6062
6068
  i0.ɵɵdomProperty("innerHTML", ctx.hostInnerHtml, i0.ɵɵsanitizeHtml);
6063
- } }, inputs: { iconUrl: "iconUrl" }, exportAs: ["svgIcon"], features: [i0.ɵɵNgOnChangesFeature] }); }
6069
+ } }, inputs: { iconUrl: "iconUrl" }, exportAs: ["svgIcon"], features: [i0.ɵɵProvidersFeature([ImagePipe]), i0.ɵɵNgOnChangesFeature] }); }
6064
6070
  }
6065
6071
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SvgIconDirective, [{
6066
6072
  type: Directive,
6067
6073
  args: [{
6068
6074
  standalone: true,
6069
6075
  selector: '[iconUrl]',
6070
- exportAs: 'svgIcon'
6076
+ exportAs: 'svgIcon',
6077
+ providers: [ImagePipe]
6071
6078
  }]
6072
6079
  }], null, { iconUrl: [{
6073
6080
  type: Input