@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
|
@@ -1000,8 +1000,6 @@
|
|
|
1000
1000
|
function (widget) {
|
|
1001
1001
|
/** @type {?} */
|
|
1002
1002
|
var gridsterItem = (/** @type {?} */ ({
|
|
1003
|
-
actCols: widget.width,
|
|
1004
|
-
actRows: widget.height,
|
|
1005
1003
|
cols: this.getWidth(widget.width),
|
|
1006
1004
|
rows: this.getHeight(widget.height),
|
|
1007
1005
|
x: this.IsDesktopView ? widget.position_x : 0,
|
|
@@ -1419,22 +1417,6 @@
|
|
|
1419
1417
|
* @return {?}
|
|
1420
1418
|
*/
|
|
1421
1419
|
function (widgets) {
|
|
1422
|
-
//sorting the widgets y, x
|
|
1423
|
-
widgets = widgets.sort((/**
|
|
1424
|
-
* @param {?} a
|
|
1425
|
-
* @param {?} b
|
|
1426
|
-
* @return {?}
|
|
1427
|
-
*/
|
|
1428
|
-
function (a, b) {
|
|
1429
|
-
if (a['position_y'] > b['position_y'])
|
|
1430
|
-
return 1;
|
|
1431
|
-
if (a['position_y'] < b['position_y'])
|
|
1432
|
-
return -1;
|
|
1433
|
-
if (a['position_x'] > b['position_x'])
|
|
1434
|
-
return 1;
|
|
1435
|
-
if (a['position_x'] < b['position_x'])
|
|
1436
|
-
return -1;
|
|
1437
|
-
}));
|
|
1438
1420
|
_this.userWidgets = widgets;
|
|
1439
1421
|
if (widgets && widgets.length > 0) {
|
|
1440
1422
|
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
@@ -1601,12 +1583,14 @@
|
|
|
1601
1583
|
if (widget && widget.widgetInstanceId) {
|
|
1602
1584
|
widgetInstanceId = widget.widgetInstanceId;
|
|
1603
1585
|
/**To save added widget position in db */
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1586
|
+
if (_this.responsiveService.IsDesktopView) {
|
|
1587
|
+
setTimeout((/**
|
|
1588
|
+
* @return {?}
|
|
1589
|
+
*/
|
|
1590
|
+
function () {
|
|
1591
|
+
_this.updateWidgetPosition(widgetInstanceId);
|
|
1592
|
+
}));
|
|
1593
|
+
}
|
|
1610
1594
|
}
|
|
1611
1595
|
_this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
1612
1596
|
}));
|