@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.
@@ -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
- _this.widgetList = [];
969
- setTimeout((/**
970
- * @return {?}
971
- */
972
- function () {
973
- _this.initiateGridsterConfig();
974
- _this.options.api.optionsChanged();
975
- if (_this.userWidgets) {
976
- _this.widgetList = _this.mapObjectListToGridsterItemList(_this.userWidgets);
977
- setTimeout((/**
978
- * @return {?}
979
- */
980
- function () {
981
- _this.setAreaHeight();
982
- }));
983
- }
984
- else {
985
- _this.loadWidgets(_this.userDashboardId, _this.areaKey);
986
- }
987
- _this.domResized = !_this.domResized;
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 = {};