@schneideress/dashboardframework 0.0.212 → 0.0.213
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 +47 -22
- 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 +36 -23
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +2 -1
- package/esm2015/lib/ra.dashboard.responsive.service.js +12 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +36 -23
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +2 -1
- package/esm5/lib/ra.dashboard.responsive.service.js +12 -1
- package/fesm2015/schneideress-dashboardframework.js +47 -22
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +47 -22
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -718,6 +718,17 @@
|
|
|
718
718
|
this.screenWidth = window.outerWidth;
|
|
719
719
|
if (this.IsDesktopView) {
|
|
720
720
|
this.currentResInfo = this.resInfo[3];
|
|
721
|
+
/** @type {?} */
|
|
722
|
+
var resInfo = this.resInfo.filter((/**
|
|
723
|
+
* @param {?} item
|
|
724
|
+
* @return {?}
|
|
725
|
+
*/
|
|
726
|
+
function (item) {
|
|
727
|
+
return item.end >= _this.screenWidth && item.start <= _this.screenWidth;
|
|
728
|
+
}))[0];
|
|
729
|
+
if (this.currentResInfo.id != resInfo.id) {
|
|
730
|
+
this.resized.next(true);
|
|
731
|
+
}
|
|
721
732
|
}
|
|
722
733
|
else {
|
|
723
734
|
/** @type {?} */
|
|
@@ -962,30 +973,43 @@
|
|
|
962
973
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
963
974
|
this.initiateGridsterConfig();
|
|
964
975
|
this.responsiveService.resized.subscribe((/**
|
|
976
|
+
* @param {?} isDesktop
|
|
965
977
|
* @return {?}
|
|
966
978
|
*/
|
|
967
|
-
function () {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
_this.
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
979
|
+
function (isDesktop) {
|
|
980
|
+
console.log('in responsive service subscribe');
|
|
981
|
+
console.log(isDesktop);
|
|
982
|
+
if (isDesktop) {
|
|
983
|
+
setTimeout((/**
|
|
984
|
+
* @return {?}
|
|
985
|
+
*/
|
|
986
|
+
function () {
|
|
987
|
+
_this.domResized = !_this.domResized;
|
|
988
|
+
}), 2000);
|
|
989
|
+
}
|
|
990
|
+
else {
|
|
991
|
+
_this.widgetList = [];
|
|
992
|
+
setTimeout((/**
|
|
993
|
+
* @return {?}
|
|
994
|
+
*/
|
|
995
|
+
function () {
|
|
996
|
+
_this.initiateGridsterConfig();
|
|
997
|
+
_this.options.api.optionsChanged();
|
|
998
|
+
if (_this.userWidgets) {
|
|
999
|
+
_this.widgetList = _this.mapObjectListToGridsterItemList(_this.userWidgets);
|
|
1000
|
+
setTimeout((/**
|
|
1001
|
+
* @return {?}
|
|
1002
|
+
*/
|
|
1003
|
+
function () {
|
|
1004
|
+
_this.setAreaHeight();
|
|
1005
|
+
}));
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
_this.loadWidgets(_this.userDashboardId, _this.areaKey);
|
|
1009
|
+
}
|
|
1010
|
+
_this.domResized = !_this.domResized;
|
|
1011
|
+
}));
|
|
1012
|
+
}
|
|
989
1013
|
}));
|
|
990
1014
|
};
|
|
991
1015
|
/**
|
|
@@ -1895,6 +1919,7 @@
|
|
|
1895
1919
|
* @return {?}
|
|
1896
1920
|
*/
|
|
1897
1921
|
function () {
|
|
1922
|
+
console.log('in invoke widget resized event');
|
|
1898
1923
|
if (this.widgetElement) {
|
|
1899
1924
|
/** @type {?} */
|
|
1900
1925
|
var size = {};
|