@schneideress/dashboardframework 20.0.3 → 20.0.5
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.
|
@@ -1458,7 +1458,7 @@ class GridsterComponent {
|
|
|
1458
1458
|
if (changes['options']) {
|
|
1459
1459
|
this.setOptions();
|
|
1460
1460
|
this.options.api = {
|
|
1461
|
-
optionsChanged: this.optionsChanged
|
|
1461
|
+
optionsChanged: this.optionsChanged?.bind(this),
|
|
1462
1462
|
resize: this.onResize.bind(this),
|
|
1463
1463
|
getNextPossiblePosition: this.getNextPossiblePosition.bind(this),
|
|
1464
1464
|
getFirstPossiblePosition: this.getFirstPossiblePosition.bind(this),
|
|
@@ -3935,7 +3935,7 @@ class RAWidgetContainer {
|
|
|
3935
3935
|
}
|
|
3936
3936
|
invokeWidgetResizedEvent() {
|
|
3937
3937
|
if (this.widgetElement) {
|
|
3938
|
-
if (typeof this.widgetElement
|
|
3938
|
+
if (typeof this.widgetElement?.widgetResized === "function") {
|
|
3939
3939
|
let size = {};
|
|
3940
3940
|
size.height = this.height;
|
|
3941
3941
|
size.width = this.width;
|
|
@@ -4431,7 +4431,7 @@ class RAWidgetContainer {
|
|
|
4431
4431
|
}
|
|
4432
4432
|
}
|
|
4433
4433
|
async setDownloadIcon() {
|
|
4434
|
-
let downloadType = await this.widgetElement
|
|
4434
|
+
let downloadType = await this.widgetElement?.getDownloadType();
|
|
4435
4435
|
this.downloadIconType = downloadType;
|
|
4436
4436
|
this.isDownloadIconVisible = false;
|
|
4437
4437
|
this.isChartDownloadVisible = false;
|
|
@@ -4924,7 +4924,7 @@ class RADashboardArea {
|
|
|
4924
4924
|
this.initialWidgetCount === this.currentLoadingCount ? this.changeInitialWidgetCount() : null;
|
|
4925
4925
|
if (this.initialWidgetCount > this.currentLoadingCount) {
|
|
4926
4926
|
for (let i = 0; i < items.length; i++) {
|
|
4927
|
-
if (this.isElementLoaded(items[i]
|
|
4927
|
+
if (this.isElementLoaded(items[i]?.widgetElement) ||
|
|
4928
4928
|
(totalLoadedCount <= this.initialWidgetCount)) {
|
|
4929
4929
|
this.currentLoadingCount++;
|
|
4930
4930
|
items[i].canLoadData = true;
|
|
@@ -4935,7 +4935,7 @@ class RADashboardArea {
|
|
|
4935
4935
|
}
|
|
4936
4936
|
}
|
|
4937
4937
|
changeInitialWidgetCount() {
|
|
4938
|
-
this.isElementLoaded(this.widgetList[this.currentLoadingCount]
|
|
4938
|
+
this.isElementLoaded(this.widgetList[this.currentLoadingCount]?.widgetElement) ?
|
|
4939
4939
|
this.initialWidgetCount++ : null;
|
|
4940
4940
|
}
|
|
4941
4941
|
dataLoaded(widgetInfo) {
|