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