@schneideress/dashboardframework 0.0.40 → 0.0.41
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 +17 -9
- 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 +17 -9
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +2 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +17 -9
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +2 -2
- package/fesm2015/schneideress-dashboardframework.js +17 -9
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +17 -9
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -685,8 +685,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
685
685
|
this.widgetList = Array();
|
|
686
686
|
this.gridheight = 300;
|
|
687
687
|
this.isWidgetLoaded = false;
|
|
688
|
-
this.widgetHeight =
|
|
689
|
-
this.widgetWidth =
|
|
688
|
+
this.widgetHeight = 30;
|
|
689
|
+
this.widgetWidth = 50;
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
692
|
* @return {?}
|
|
@@ -901,6 +901,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
901
901
|
dashboardId: userDashboarId.toString(),
|
|
902
902
|
dashboardAreaKey: areaKey
|
|
903
903
|
}));
|
|
904
|
+
areaContext.widgetList = [];
|
|
904
905
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe((/**
|
|
905
906
|
* @param {?} widgets
|
|
906
907
|
* @return {?}
|
|
@@ -1011,11 +1012,12 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1011
1012
|
data.position_y = 0;
|
|
1012
1013
|
/** @type {?} */
|
|
1013
1014
|
var gridsterItem = this.mapObjectsToGridsterItem(data);
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
data.
|
|
1015
|
+
/** to find the available position in gridster, temp commenting the code-returning higher y value than normal */
|
|
1016
|
+
// if (this.options.api) {
|
|
1017
|
+
// gridsterItem = this.options.api.getFirstPossiblePosition(gridsterItem);
|
|
1018
|
+
// }
|
|
1019
|
+
// data.position_x = gridsterItem.x;
|
|
1020
|
+
// data.position_y = gridsterItem.y;
|
|
1019
1021
|
data.dashboardAreaKey = this.areaKey;
|
|
1020
1022
|
data.dashboardId = this.userDashboardId;
|
|
1021
1023
|
this.ngxService.start();
|
|
@@ -1027,7 +1029,13 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1027
1029
|
gridsterItem = _this.mapObjectsToGridsterItem(widget);
|
|
1028
1030
|
_this.widgetList.push(gridsterItem);
|
|
1029
1031
|
_this.setAreaHeight();
|
|
1030
|
-
|
|
1032
|
+
/**To save added widget position in db */
|
|
1033
|
+
setTimeout((/**
|
|
1034
|
+
* @return {?}
|
|
1035
|
+
*/
|
|
1036
|
+
function () {
|
|
1037
|
+
_this.updateWidgets();
|
|
1038
|
+
}), 1000);
|
|
1031
1039
|
}));
|
|
1032
1040
|
};
|
|
1033
1041
|
/** To add widget to current widget list ,invoked from copy widget window*/
|
|
@@ -1435,7 +1443,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1435
1443
|
return __generator(this, function (_a) {
|
|
1436
1444
|
switch (_a.label) {
|
|
1437
1445
|
case 0:
|
|
1438
|
-
console.log('widget
|
|
1446
|
+
console.log('widget initiated' + widgetInfo.widgetInstanceId);
|
|
1439
1447
|
widgetContainer.isWidgetLoaded = true;
|
|
1440
1448
|
widgetConfigFilter.appConfig = this.appConfig;
|
|
1441
1449
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|