@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
|
@@ -863,49 +863,54 @@ class RADashboardArea {
|
|
|
863
863
|
* @return {?}
|
|
864
864
|
*/
|
|
865
865
|
setAreaHeight() {
|
|
866
|
-
/**
|
|
867
|
-
let isMobile = false;
|
|
868
|
-
if (this.options.mobileBreakpoint > this.gridWrapper.nativeElement.clientWidth) {
|
|
869
|
-
isMobile = true;
|
|
870
|
-
}
|
|
871
|
-
/** @type {?} */
|
|
872
|
-
let areaScrollHeight = 0;
|
|
873
|
-
/** @type {?} */
|
|
874
|
-
let areaHeight = 0;
|
|
875
|
-
/** @type {?} */
|
|
876
|
-
let curRowHeight = 0;
|
|
877
|
-
if (this.options.api) {
|
|
878
|
-
curRowHeight = this.options.api.getCurrentRowHeight();
|
|
879
|
-
}
|
|
880
|
-
this.widgetList.forEach((/**
|
|
881
|
-
* @param {?} t
|
|
866
|
+
setTimeout((/**
|
|
882
867
|
* @return {?}
|
|
883
868
|
*/
|
|
884
|
-
(
|
|
869
|
+
() => {
|
|
885
870
|
/** @type {?} */
|
|
886
|
-
let
|
|
887
|
-
if (
|
|
888
|
-
|
|
871
|
+
let isMobile = false;
|
|
872
|
+
if (this.options.mobileBreakpoint > this.gridWrapper.nativeElement.clientWidth) {
|
|
873
|
+
isMobile = true;
|
|
889
874
|
}
|
|
890
|
-
|
|
891
|
-
|
|
875
|
+
/** @type {?} */
|
|
876
|
+
let areaScrollHeight = 0;
|
|
877
|
+
/** @type {?} */
|
|
878
|
+
let areaHeight = 0;
|
|
879
|
+
/** @type {?} */
|
|
880
|
+
let curRowHeight = 0;
|
|
881
|
+
if (this.options.api) {
|
|
882
|
+
curRowHeight = this.options.api.getCurrentRowHeight();
|
|
892
883
|
}
|
|
893
|
-
|
|
884
|
+
this.widgetList.forEach((/**
|
|
885
|
+
* @param {?} t
|
|
886
|
+
* @return {?}
|
|
887
|
+
*/
|
|
888
|
+
(t) => {
|
|
889
|
+
/** @type {?} */
|
|
890
|
+
let currentHeight = t.y + t.rows;
|
|
891
|
+
if (currentHeight > areaScrollHeight) {
|
|
892
|
+
areaScrollHeight = currentHeight;
|
|
893
|
+
}
|
|
894
|
+
if (curRowHeight == 0) {
|
|
895
|
+
currentHeight = this.widgetList[0].curRowHeight;
|
|
896
|
+
}
|
|
897
|
+
t.widgetInfo.rowHeight = curRowHeight;
|
|
898
|
+
}));
|
|
899
|
+
this.gridcellHeight = curRowHeight;
|
|
900
|
+
if (this.options.api) {
|
|
901
|
+
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 100;
|
|
902
|
+
}
|
|
903
|
+
/** @type {?} */
|
|
904
|
+
let areaScrollHeightMob = 0;
|
|
905
|
+
if (isMobile) {
|
|
906
|
+
areaScrollHeightMob = this.widgetList.length * 300 + 200;
|
|
907
|
+
areaHeight = areaScrollHeightMob;
|
|
908
|
+
}
|
|
909
|
+
if (areaHeight < 600) {
|
|
910
|
+
areaHeight = 600;
|
|
911
|
+
}
|
|
912
|
+
this.gridheight = areaHeight;
|
|
894
913
|
}));
|
|
895
|
-
this.gridcellHeight = curRowHeight;
|
|
896
|
-
if (this.options.api) {
|
|
897
|
-
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 100;
|
|
898
|
-
}
|
|
899
|
-
/** @type {?} */
|
|
900
|
-
let areaScrollHeightMob = 0;
|
|
901
|
-
if (isMobile) {
|
|
902
|
-
areaScrollHeightMob = this.widgetList.length * 300 + 200;
|
|
903
|
-
areaHeight = areaScrollHeightMob;
|
|
904
|
-
}
|
|
905
|
-
if (areaHeight < 600) {
|
|
906
|
-
areaHeight = 600;
|
|
907
|
-
}
|
|
908
|
-
this.gridheight = areaHeight;
|
|
909
914
|
}
|
|
910
915
|
/**
|
|
911
916
|
* To remove a widget instance from dashboard and to save info in database
|