@schneideress/dashboardframework 0.0.191 → 0.0.192
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 +42 -37
- 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 +43 -38
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +43 -38
- package/fesm2015/schneideress-dashboardframework.js +42 -37
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +42 -37
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -1081,49 +1081,54 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1081
1081
|
*/
|
|
1082
1082
|
function () {
|
|
1083
1083
|
var _this = this;
|
|
1084
|
-
/**
|
|
1085
|
-
var isMobile = false;
|
|
1086
|
-
if (this.options.mobileBreakpoint > this.gridWrapper.nativeElement.clientWidth) {
|
|
1087
|
-
isMobile = true;
|
|
1088
|
-
}
|
|
1089
|
-
/** @type {?} */
|
|
1090
|
-
var areaScrollHeight = 0;
|
|
1091
|
-
/** @type {?} */
|
|
1092
|
-
var areaHeight = 0;
|
|
1093
|
-
/** @type {?} */
|
|
1094
|
-
var curRowHeight = 0;
|
|
1095
|
-
if (this.options.api) {
|
|
1096
|
-
curRowHeight = this.options.api.getCurrentRowHeight();
|
|
1097
|
-
}
|
|
1098
|
-
this.widgetList.forEach((/**
|
|
1099
|
-
* @param {?} t
|
|
1084
|
+
setTimeout((/**
|
|
1100
1085
|
* @return {?}
|
|
1101
1086
|
*/
|
|
1102
|
-
function (
|
|
1087
|
+
function () {
|
|
1103
1088
|
/** @type {?} */
|
|
1104
|
-
var
|
|
1105
|
-
if (
|
|
1106
|
-
|
|
1089
|
+
var isMobile = false;
|
|
1090
|
+
if (_this.options.mobileBreakpoint > _this.gridWrapper.nativeElement.clientWidth) {
|
|
1091
|
+
isMobile = true;
|
|
1107
1092
|
}
|
|
1108
|
-
|
|
1109
|
-
|
|
1093
|
+
/** @type {?} */
|
|
1094
|
+
var areaScrollHeight = 0;
|
|
1095
|
+
/** @type {?} */
|
|
1096
|
+
var areaHeight = 0;
|
|
1097
|
+
/** @type {?} */
|
|
1098
|
+
var curRowHeight = 0;
|
|
1099
|
+
if (_this.options.api) {
|
|
1100
|
+
curRowHeight = _this.options.api.getCurrentRowHeight();
|
|
1110
1101
|
}
|
|
1111
|
-
|
|
1102
|
+
_this.widgetList.forEach((/**
|
|
1103
|
+
* @param {?} t
|
|
1104
|
+
* @return {?}
|
|
1105
|
+
*/
|
|
1106
|
+
function (t) {
|
|
1107
|
+
/** @type {?} */
|
|
1108
|
+
var currentHeight = t.y + t.rows;
|
|
1109
|
+
if (currentHeight > areaScrollHeight) {
|
|
1110
|
+
areaScrollHeight = currentHeight;
|
|
1111
|
+
}
|
|
1112
|
+
if (curRowHeight == 0) {
|
|
1113
|
+
currentHeight = _this.widgetList[0].curRowHeight;
|
|
1114
|
+
}
|
|
1115
|
+
t.widgetInfo.rowHeight = curRowHeight;
|
|
1116
|
+
}));
|
|
1117
|
+
_this.gridcellHeight = curRowHeight;
|
|
1118
|
+
if (_this.options.api) {
|
|
1119
|
+
areaHeight = areaScrollHeight * _this.options.api.getCurrentRowHeight() + 100;
|
|
1120
|
+
}
|
|
1121
|
+
/** @type {?} */
|
|
1122
|
+
var areaScrollHeightMob = 0;
|
|
1123
|
+
if (isMobile) {
|
|
1124
|
+
areaScrollHeightMob = _this.widgetList.length * 300 + 200;
|
|
1125
|
+
areaHeight = areaScrollHeightMob;
|
|
1126
|
+
}
|
|
1127
|
+
if (areaHeight < 600) {
|
|
1128
|
+
areaHeight = 600;
|
|
1129
|
+
}
|
|
1130
|
+
_this.gridheight = areaHeight;
|
|
1112
1131
|
}));
|
|
1113
|
-
this.gridcellHeight = curRowHeight;
|
|
1114
|
-
if (this.options.api) {
|
|
1115
|
-
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 100;
|
|
1116
|
-
}
|
|
1117
|
-
/** @type {?} */
|
|
1118
|
-
var areaScrollHeightMob = 0;
|
|
1119
|
-
if (isMobile) {
|
|
1120
|
-
areaScrollHeightMob = this.widgetList.length * 300 + 200;
|
|
1121
|
-
areaHeight = areaScrollHeightMob;
|
|
1122
|
-
}
|
|
1123
|
-
if (areaHeight < 600) {
|
|
1124
|
-
areaHeight = 600;
|
|
1125
|
-
}
|
|
1126
|
-
this.gridheight = areaHeight;
|
|
1127
1132
|
};
|
|
1128
1133
|
/** To remove a widget instance from dashboard and to save info in database */
|
|
1129
1134
|
/**
|