@schneideress/dashboardframework 0.0.268 → 0.0.269
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.
- package/bundles/schneideress-dashboardframework.umd.js +16 -11
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +8 -9
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +17 -12
- package/fesm2015/schneideress-dashboardframework.js +7 -8
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +16 -11
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -878,6 +878,9 @@
|
|
|
878
878
|
if (lst.length == 0) {
|
|
879
879
|
this.startLoadWidgetData(this.widgetList);
|
|
880
880
|
}
|
|
881
|
+
if (widget.dataTriggered) {
|
|
882
|
+
this.loadWidgetData(widget);
|
|
883
|
+
}
|
|
881
884
|
};
|
|
882
885
|
RADashboardArea.prototype.startLoadWidgetData = function (lst) {
|
|
883
886
|
if (lst) {
|
|
@@ -891,24 +894,26 @@
|
|
|
891
894
|
}
|
|
892
895
|
};
|
|
893
896
|
RADashboardArea.prototype.loadWidgetData = function (widget) {
|
|
894
|
-
var _this = this;
|
|
895
897
|
widget.dataTriggered = true;
|
|
896
898
|
if (widget.widgetLoaded) {
|
|
897
|
-
|
|
898
|
-
widget.canLoadData = true;
|
|
899
|
-
});
|
|
899
|
+
widget.canLoadData = true;
|
|
900
900
|
}
|
|
901
|
-
else
|
|
902
|
-
setTimeout(function () {
|
|
903
|
-
_this.loadWidgetData(widget);
|
|
904
|
-
}, 1000);
|
|
905
901
|
};
|
|
906
902
|
RADashboardArea.prototype.dataLoaded = function () {
|
|
903
|
+
var _this = this;
|
|
904
|
+
var _loop_1 = function (i) {
|
|
905
|
+
if (!this_1.widgetList[i].dataTriggered) {
|
|
906
|
+
setTimeout(function () {
|
|
907
|
+
_this.loadWidgetData(_this.widgetList[i]);
|
|
908
|
+
});
|
|
909
|
+
return "break";
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
var this_1 = this;
|
|
907
913
|
for (var i = 0; i < this.widgetList.length; i++) {
|
|
908
|
-
|
|
909
|
-
|
|
914
|
+
var state_1 = _loop_1(i);
|
|
915
|
+
if (state_1 === "break")
|
|
910
916
|
break;
|
|
911
|
-
}
|
|
912
917
|
}
|
|
913
918
|
};
|
|
914
919
|
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|