@schneideress/dashboardframework 17.0.11 → 17.0.12

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.
@@ -3910,7 +3910,7 @@ class RAWidgetContainer {
3910
3910
  this.invokeWidgetResizedEvent();
3911
3911
  }
3912
3912
  }
3913
- if (changes['canLoadData'] && changes['canLoadData'].currentValue != changes['canLoadData'].previousValue) {
3913
+ if (changes['canLoadData'] && (changes['canLoadData'].currentValue != changes['canLoadData'].previousValue)) {
3914
3914
  if (this.canLoadData)
3915
3915
  this.refreshWidget(this.data.widgetInfo);
3916
3916
  }
@@ -4188,16 +4188,16 @@ class RAWidgetContainer {
4188
4188
  remoteEntry: basePath + widgetInfo.scriptUrl,
4189
4189
  exposedModule: './' + widgetInfo.widgetComponent
4190
4190
  }).then((m) => {
4191
- me.ctlWidgetModule.clear();
4192
- var component = me.ctlWidgetModule.createComponent(m[widgetInfo.widgetComponent]);
4193
- let instance = component.instance;
4194
- let widgetElement = component.instance;
4195
- this.setNotConfiguredState(widgetInfo);
4196
4191
  let appModule = this.data.widgetInfo.widgetName;
4197
- if (this.data.widgetInfo.applicationModule && this.data.widgetInfo.applicationModule.length > 0) {
4198
- appModule = this.data.widgetInfo.applicationModule;
4199
- }
4200
4192
  this.translateService.loadTranslations(this.appConfig.appManagementBaseUrl, appModule, false).then(() => {
4193
+ me.ctlWidgetModule.clear();
4194
+ var component = me.ctlWidgetModule.createComponent(m[widgetInfo.widgetComponent]);
4195
+ let instance = component.instance;
4196
+ let widgetElement = component.instance;
4197
+ this.setNotConfiguredState(widgetInfo);
4198
+ if (this.data.widgetInfo.applicationModule && this.data.widgetInfo.applicationModule.length > 0) {
4199
+ appModule = this.data.widgetInfo.applicationModule;
4200
+ }
4201
4201
  me.widgetElement = widgetElement;
4202
4202
  let element = component.location.nativeElement;
4203
4203
  element.setAttribute("widget-instance-id", widgetInfo.widgetInstanceId);
@@ -4289,7 +4289,7 @@ class RAWidgetContainer {
4289
4289
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
4290
4290
  widgetConfigFilter.globalFilter = me.globalFilter;
4291
4291
  widgetConfigFilter.dashboardInfo = me.dashboardInfo;
4292
- //this.widgetElement.loadContent(widgetConfigFilter);
4292
+ //me.widgetElement.loadContent(widgetConfigFilter);
4293
4293
  me.widgetLoaded.emit();
4294
4294
  await me.setLock(widgetConfigFilter.config);
4295
4295
  await me.setDownloadIcon();
@@ -4297,6 +4297,7 @@ class RAWidgetContainer {
4297
4297
  }.bind(this);
4298
4298
  this.widgetElementHandler = handler;
4299
4299
  document.body.addEventListener('widgetinitiated' + widgetInfo.widgetInstanceId, handler);
4300
+ component.changeDetectorRef.detectChanges();
4300
4301
  });
4301
4302
  });
4302
4303
  }