@schneideress/dashboardframework 20.0.23 → 20.0.24

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.
@@ -3930,8 +3930,8 @@ class RAWidgetContainer {
3930
3930
  if (changes['bulkActionData'] && changes['bulkActionData'].currentValue != changes['bulkActionData'].previousValue) {
3931
3931
  if (typeof this.widgetElement.bulkActionClicked === "function") {
3932
3932
  this.widgetElement.bulkActionClicked(this.bulkActionData);
3933
- this.setDownloadIcon().then(() => this.cdr.detectChanges());
3934
3933
  }
3934
+ this.setDownloadIcon();
3935
3935
  }
3936
3936
  if (changes['globalFilter'] && changes['globalFilter'].currentValue != changes['globalFilter'].previousValue) {
3937
3937
  if (!this.dashboardInfo.curatedFilters) {
@@ -3984,7 +3984,7 @@ class RAWidgetContainer {
3984
3984
  /** Refresh download icon state when user clicks inside widget (e.g. tab change). */
3985
3985
  onWidgetBodyClick() {
3986
3986
  if (this.hideEllipses && this.widgetElement) {
3987
- this.setDownloadIcon().then(() => this.cdr.detectChanges());
3987
+ this.setDownloadIcon();
3988
3988
  }
3989
3989
  }
3990
3990
  ngAfterViewInit() {
@@ -4149,7 +4149,7 @@ class RAWidgetContainer {
4149
4149
  me.data.dataLoaded = true;
4150
4150
  me.dataLoaded.emit(widgetInfo);
4151
4151
  }
4152
- me.setDownloadIcon().then(() => me.cdr.detectChanges());
4152
+ me.setDownloadIcon();
4153
4153
  break;
4154
4154
  case 'onConfigEditClicked':
4155
4155
  me.editWidget();
@@ -4175,6 +4175,9 @@ class RAWidgetContainer {
4175
4175
  case 'onGlobalFilterApplicableCheck':
4176
4176
  me.setInapplicableFilters(e.detail.data, widgetInfo.widgetInstanceId);
4177
4177
  break;
4178
+ case 'onDownloadViewChanged':
4179
+ me.setDownloadIcon();
4180
+ break;
4178
4181
  default:
4179
4182
  break;
4180
4183
  }
@@ -4223,6 +4226,9 @@ class RAWidgetContainer {
4223
4226
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
4224
4227
  widgetConfigFilter.globalFilter = me.globalFilter;
4225
4228
  widgetConfigFilter.dashboardInfo = me.dashboardInfo;
4229
+ if (me.hideEllipses) {
4230
+ widgetConfigFilter.onDownloadViewReady = () => me.setDownloadIcon();
4231
+ }
4226
4232
  me.widgetElement.loadContent(widgetConfigFilter);
4227
4233
  await me.setLock(widgetConfigFilter.config);
4228
4234
  await me.setDownloadIcon();
@@ -4269,7 +4275,7 @@ class RAWidgetContainer {
4269
4275
  me.data.dataLoaded = true;
4270
4276
  me.dataLoaded.emit(me.widgetElement);
4271
4277
  }
4272
- me.setDownloadIcon().then(() => me.cdr.detectChanges());
4278
+ me.setDownloadIcon();
4273
4279
  break;
4274
4280
  case 'onConfigEditClicked':
4275
4281
  me.editWidget();
@@ -4296,7 +4302,7 @@ class RAWidgetContainer {
4296
4302
  me.setInapplicableFilters(e.data, widgetInfo.widgetInstanceId);
4297
4303
  break;
4298
4304
  case 'onDownloadViewChanged':
4299
- me.setDownloadIcon().then(() => me.cdr.detectChanges());
4305
+ me.setDownloadIcon();
4300
4306
  break;
4301
4307
  default:
4302
4308
  break;
@@ -4346,6 +4352,9 @@ class RAWidgetContainer {
4346
4352
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
4347
4353
  widgetConfigFilter.globalFilter = me.globalFilter;
4348
4354
  widgetConfigFilter.dashboardInfo = me.dashboardInfo;
4355
+ if (me.hideEllipses) {
4356
+ widgetConfigFilter.onDownloadViewReady = () => me.setDownloadIcon();
4357
+ }
4349
4358
  me.widgetElement.loadContent(widgetConfigFilter);
4350
4359
  await me.setLock(widgetConfigFilter.config);
4351
4360
  await me.setDownloadIcon();
@@ -4490,6 +4499,7 @@ class RAWidgetContainer {
4490
4499
  this.isGridDownloadVisible = true;
4491
4500
  this.showExcell = false;
4492
4501
  }
4502
+ this.cdr.detectChanges();
4493
4503
  }
4494
4504
  downloadIconClicked(type) {
4495
4505
  if (!this.widgetElement || typeof this.widgetElement.downloadClicked !== 'function')