@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
|
@@ -772,22 +772,14 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
772
772
|
var _this = this;
|
|
773
773
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
774
774
|
this.initiateGridsterConfig();
|
|
775
|
+
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
775
776
|
this.responsiveService.resized.subscribe((/**
|
|
776
777
|
* @param {?} isDesktop
|
|
777
778
|
* @return {?}
|
|
778
779
|
*/
|
|
779
780
|
function (isDesktop) {
|
|
780
|
-
if (isDesktop) {
|
|
781
|
-
|
|
782
|
-
* @return {?}
|
|
783
|
-
*/
|
|
784
|
-
function () {
|
|
785
|
-
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
786
|
-
_this.domResized = !_this.domResized;
|
|
787
|
-
_this.setAreaHeight();
|
|
788
|
-
}), 100);
|
|
789
|
-
}
|
|
790
|
-
else {
|
|
781
|
+
if (_this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
782
|
+
_this.lastViewType = (isDesktop ? 'desktop' : 'mobile');
|
|
791
783
|
_this.widgetList = [];
|
|
792
784
|
setTimeout((/**
|
|
793
785
|
* @return {?}
|
|
@@ -810,6 +802,16 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
810
802
|
_this.domResized = !_this.domResized;
|
|
811
803
|
}));
|
|
812
804
|
}
|
|
805
|
+
else {
|
|
806
|
+
setTimeout((/**
|
|
807
|
+
* @return {?}
|
|
808
|
+
*/
|
|
809
|
+
function () {
|
|
810
|
+
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
811
|
+
_this.domResized = !_this.domResized;
|
|
812
|
+
_this.setAreaHeight();
|
|
813
|
+
}), 100);
|
|
814
|
+
}
|
|
813
815
|
}));
|
|
814
816
|
};
|
|
815
817
|
/**
|
|
@@ -1582,6 +1584,8 @@ if (false) {
|
|
|
1582
1584
|
/** @type {?} */
|
|
1583
1585
|
RADashboardArea.prototype.isWidgetMgmnt;
|
|
1584
1586
|
/** @type {?} */
|
|
1587
|
+
RADashboardArea.prototype.lastViewType;
|
|
1588
|
+
/** @type {?} */
|
|
1585
1589
|
RADashboardArea.prototype.userDashboardId;
|
|
1586
1590
|
/** @type {?} */
|
|
1587
1591
|
RADashboardArea.prototype.areaKey;
|