@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
|
@@ -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
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
_this.
|
|
775
|
-
|
|
776
|
-
|
|
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 = {};
|