@schneideress/dashboardframework 0.0.153 → 0.0.154
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 +8 -24
- 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 +9 -23
- package/esm2015/lib/ra.dashboard.responsive.service.js +1 -3
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +9 -23
- package/esm5/lib/ra.dashboard.responsive.service.js +1 -3
- package/fesm2015/schneideress-dashboardframework.js +8 -24
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +8 -24
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -660,8 +660,6 @@ class RADashboardResponsiveService {
|
|
|
660
660
|
getGridsterItem(widget) {
|
|
661
661
|
/** @type {?} */
|
|
662
662
|
let gridsterItem = (/** @type {?} */ ({
|
|
663
|
-
actCols: widget.width,
|
|
664
|
-
actRows: widget.height,
|
|
665
663
|
cols: this.getWidth(widget.width),
|
|
666
664
|
rows: this.getHeight(widget.height),
|
|
667
665
|
x: this.IsDesktopView ? widget.position_x : 0,
|
|
@@ -1011,22 +1009,6 @@ class RADashboardArea {
|
|
|
1011
1009
|
* @return {?}
|
|
1012
1010
|
*/
|
|
1013
1011
|
widgets => {
|
|
1014
|
-
//sorting the widgets y, x
|
|
1015
|
-
widgets = widgets.sort((/**
|
|
1016
|
-
* @param {?} a
|
|
1017
|
-
* @param {?} b
|
|
1018
|
-
* @return {?}
|
|
1019
|
-
*/
|
|
1020
|
-
(a, b) => {
|
|
1021
|
-
if (a['position_y'] > b['position_y'])
|
|
1022
|
-
return 1;
|
|
1023
|
-
if (a['position_y'] < b['position_y'])
|
|
1024
|
-
return -1;
|
|
1025
|
-
if (a['position_x'] > b['position_x'])
|
|
1026
|
-
return 1;
|
|
1027
|
-
if (a['position_x'] < b['position_x'])
|
|
1028
|
-
return -1;
|
|
1029
|
-
}));
|
|
1030
1012
|
this.userWidgets = widgets;
|
|
1031
1013
|
if (widgets && widgets.length > 0) {
|
|
1032
1014
|
this.widgetList = this.mapObjectListToGridsterItemList(widgets);
|
|
@@ -1164,12 +1146,14 @@ class RADashboardArea {
|
|
|
1164
1146
|
if (widget && widget.widgetInstanceId) {
|
|
1165
1147
|
widgetInstanceId = widget.widgetInstanceId;
|
|
1166
1148
|
/**To save added widget position in db */
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1149
|
+
if (this.responsiveService.IsDesktopView) {
|
|
1150
|
+
setTimeout((/**
|
|
1151
|
+
* @return {?}
|
|
1152
|
+
*/
|
|
1153
|
+
() => {
|
|
1154
|
+
this.updateWidgetPosition(widgetInstanceId);
|
|
1155
|
+
}));
|
|
1156
|
+
}
|
|
1173
1157
|
}
|
|
1174
1158
|
this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
1175
1159
|
}));
|