@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.
@@ -507,6 +507,17 @@ var RADashboardResponsiveService = /** @class */ (function () {
507
507
  this.screenWidth = window.outerWidth;
508
508
  if (this.IsDesktopView) {
509
509
  this.currentResInfo = this.resInfo[3];
510
+ /** @type {?} */
511
+ var resInfo = this.resInfo.filter((/**
512
+ * @param {?} item
513
+ * @return {?}
514
+ */
515
+ function (item) {
516
+ return item.end >= _this.screenWidth && item.start <= _this.screenWidth;
517
+ }))[0];
518
+ if (this.currentResInfo.id != resInfo.id) {
519
+ this.resized.next(true);
520
+ }
510
521
  }
511
522
  else {
512
523
  /** @type {?} */
@@ -751,30 +762,43 @@ var RADashboardArea = /** @class */ (function () {
751
762
  this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
752
763
  this.initiateGridsterConfig();
753
764
  this.responsiveService.resized.subscribe((/**
765
+ * @param {?} isDesktop
754
766
  * @return {?}
755
767
  */
756
- function () {
757
- _this.widgetList = [];
758
- setTimeout((/**
759
- * @return {?}
760
- */
761
- function () {
762
- _this.initiateGridsterConfig();
763
- _this.options.api.optionsChanged();
764
- if (_this.userWidgets) {
765
- _this.widgetList = _this.mapObjectListToGridsterItemList(_this.userWidgets);
766
- setTimeout((/**
767
- * @return {?}
768
- */
769
- function () {
770
- _this.setAreaHeight();
771
- }));
772
- }
773
- else {
774
- _this.loadWidgets(_this.userDashboardId, _this.areaKey);
775
- }
776
- _this.domResized = !_this.domResized;
777
- }));
768
+ function (isDesktop) {
769
+ console.log('in responsive service subscribe');
770
+ console.log(isDesktop);
771
+ if (isDesktop) {
772
+ setTimeout((/**
773
+ * @return {?}
774
+ */
775
+ function () {
776
+ _this.domResized = !_this.domResized;
777
+ }), 2000);
778
+ }
779
+ else {
780
+ _this.widgetList = [];
781
+ setTimeout((/**
782
+ * @return {?}
783
+ */
784
+ function () {
785
+ _this.initiateGridsterConfig();
786
+ _this.options.api.optionsChanged();
787
+ if (_this.userWidgets) {
788
+ _this.widgetList = _this.mapObjectListToGridsterItemList(_this.userWidgets);
789
+ setTimeout((/**
790
+ * @return {?}
791
+ */
792
+ function () {
793
+ _this.setAreaHeight();
794
+ }));
795
+ }
796
+ else {
797
+ _this.loadWidgets(_this.userDashboardId, _this.areaKey);
798
+ }
799
+ _this.domResized = !_this.domResized;
800
+ }));
801
+ }
778
802
  }));
779
803
  };
780
804
  /**
@@ -1684,6 +1708,7 @@ var RAWidgetContainer = /** @class */ (function () {
1684
1708
  * @return {?}
1685
1709
  */
1686
1710
  function () {
1711
+ console.log('in invoke widget resized event');
1687
1712
  if (this.widgetElement) {
1688
1713
  /** @type {?} */
1689
1714
  var size = {};