@schneideress/dashboardframework 0.0.273 → 0.0.274
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 +7 -3
- 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 +6 -3
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +3 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +6 -3
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +3 -2
- package/fesm2015/schneideress-dashboardframework.js +7 -3
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +7 -3
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -639,6 +639,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
639
639
|
var _this = this;
|
|
640
640
|
if (this.templateConfig && this.templateConfig.initialWidgetCount)
|
|
641
641
|
this.initialWidgetCount = this.templateConfig.initialWidgetCount;
|
|
642
|
+
window.scrollTo(0, 0);
|
|
642
643
|
if (location.href.indexOf('/kiosk/') > -1)
|
|
643
644
|
this.initialWidgetCount = 1000;
|
|
644
645
|
this.currentLoadedIndex = 0;
|
|
@@ -824,7 +825,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
824
825
|
this.ngxService.start();
|
|
825
826
|
this.dashboardService.addWidget(data, this.appConfig).subscribe(function (widget) {
|
|
826
827
|
_this.userWidgets.push(widget);
|
|
827
|
-
if (_this.currentLoadedIndex >= _this.userWidgets.length) {
|
|
828
|
+
if (_this.currentLoadedIndex >= (_this.userWidgets.length - 1)) {
|
|
829
|
+
_this.currentLoadedIndex++;
|
|
828
830
|
var gridsterItem = _this.responsiveService.getGridsterItem(widget);
|
|
829
831
|
_this.widgetList.push(gridsterItem);
|
|
830
832
|
_this.setAreaHeight();
|
|
@@ -878,7 +880,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
878
880
|
});
|
|
879
881
|
}
|
|
880
882
|
this.userWidgets.push(data);
|
|
881
|
-
if (this.currentLoadedIndex >= this.userWidgets.length) {
|
|
883
|
+
if (this.currentLoadedIndex >= (this.userWidgets.length - 1)) {
|
|
884
|
+
this.currentLoadedIndex++;
|
|
882
885
|
var gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
883
886
|
this.widgetList.push(gridsterItem);
|
|
884
887
|
this.setAreaHeight();
|
|
@@ -1523,7 +1526,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1523
1526
|
globalFilter: this.globalFilter,
|
|
1524
1527
|
appConfig: this.appConfig,
|
|
1525
1528
|
widgetInfo: widgetInfo,
|
|
1526
|
-
configChanges: this.getConfigChanges(configChanged)
|
|
1529
|
+
configChanges: this.getConfigChanges(configChanged),
|
|
1530
|
+
dashboardInfo: this.dashboardInfo
|
|
1527
1531
|
};
|
|
1528
1532
|
if (!widgetContainerContext.isWidgetLoaded) return [3 /*break*/, 3];
|
|
1529
1533
|
if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
|