@schneideress/dashboardframework 0.0.233 → 0.0.234
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 +15 -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 +16 -12
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +16 -12
- package/fesm2015/schneideress-dashboardframework.js +15 -11
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +15 -11
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -983,22 +983,14 @@
|
|
|
983
983
|
var _this = this;
|
|
984
984
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
985
985
|
this.initiateGridsterConfig();
|
|
986
|
+
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
986
987
|
this.responsiveService.resized.subscribe((/**
|
|
987
988
|
* @param {?} isDesktop
|
|
988
989
|
* @return {?}
|
|
989
990
|
*/
|
|
990
991
|
function (isDesktop) {
|
|
991
|
-
if (isDesktop) {
|
|
992
|
-
|
|
993
|
-
* @return {?}
|
|
994
|
-
*/
|
|
995
|
-
function () {
|
|
996
|
-
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
997
|
-
_this.domResized = !_this.domResized;
|
|
998
|
-
_this.setAreaHeight();
|
|
999
|
-
}), 100);
|
|
1000
|
-
}
|
|
1001
|
-
else {
|
|
992
|
+
if (_this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
993
|
+
_this.lastViewType = (isDesktop ? 'desktop' : 'mobile');
|
|
1002
994
|
_this.widgetList = [];
|
|
1003
995
|
setTimeout((/**
|
|
1004
996
|
* @return {?}
|
|
@@ -1021,6 +1013,16 @@
|
|
|
1021
1013
|
_this.domResized = !_this.domResized;
|
|
1022
1014
|
}));
|
|
1023
1015
|
}
|
|
1016
|
+
else {
|
|
1017
|
+
setTimeout((/**
|
|
1018
|
+
* @return {?}
|
|
1019
|
+
*/
|
|
1020
|
+
function () {
|
|
1021
|
+
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
1022
|
+
_this.domResized = !_this.domResized;
|
|
1023
|
+
_this.setAreaHeight();
|
|
1024
|
+
}), 100);
|
|
1025
|
+
}
|
|
1024
1026
|
}));
|
|
1025
1027
|
};
|
|
1026
1028
|
/**
|
|
@@ -1793,6 +1795,8 @@
|
|
|
1793
1795
|
/** @type {?} */
|
|
1794
1796
|
RADashboardArea.prototype.isWidgetMgmnt;
|
|
1795
1797
|
/** @type {?} */
|
|
1798
|
+
RADashboardArea.prototype.lastViewType;
|
|
1799
|
+
/** @type {?} */
|
|
1796
1800
|
RADashboardArea.prototype.userDashboardId;
|
|
1797
1801
|
/** @type {?} */
|
|
1798
1802
|
RADashboardArea.prototype.areaKey;
|