@schneideress/dashboardframework 0.0.20 → 0.0.22
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 +21 -17
- 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 +17 -6
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +11 -13
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +17 -6
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +11 -13
- package/fesm2015/schneideress-dashboardframework.js +21 -17
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +21 -17
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -0
- package/package.json +1 -1
|
@@ -478,6 +478,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
478
478
|
this.notifier = notifier;
|
|
479
479
|
this.widgetList = Array();
|
|
480
480
|
this.gridheight = 300;
|
|
481
|
+
this.isWidgetLoaded = false;
|
|
481
482
|
this.widgetHeight = 20;
|
|
482
483
|
this.widgetWidth = 50;
|
|
483
484
|
}
|
|
@@ -499,7 +500,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
499
500
|
* @return {?}
|
|
500
501
|
*/
|
|
501
502
|
function (changes) {
|
|
502
|
-
if (this.
|
|
503
|
+
if (this.raDashboardEventBus && this.appConfig && !this.isWidgetLoaded) {
|
|
504
|
+
this.isWidgetLoaded = true;
|
|
503
505
|
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
504
506
|
}
|
|
505
507
|
if (changes.raDashboardEventBus && changes.raDashboardEventBus.currentValue != changes.raDashboardEventBus.previousValue) {
|
|
@@ -604,10 +606,14 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
604
606
|
* @return {?}
|
|
605
607
|
*/
|
|
606
608
|
function () {
|
|
607
|
-
this.conifgAddClick
|
|
608
|
-
|
|
609
|
-
this.
|
|
610
|
-
|
|
609
|
+
if (this.conifgAddClick)
|
|
610
|
+
this.conifgAddClick.unsubscribe();
|
|
611
|
+
if (this.widgetAddEvent)
|
|
612
|
+
this.widgetAddEvent.unsubscribe();
|
|
613
|
+
if (this.widgetDeleteEvent)
|
|
614
|
+
this.widgetDeleteEvent.unsubscribe();
|
|
615
|
+
if (this.widgetLibraryDoneClick)
|
|
616
|
+
this.widgetLibraryDoneClick.unsubscribe();
|
|
611
617
|
};
|
|
612
618
|
/**To update position/dimention of all widgets in the area */
|
|
613
619
|
/**
|
|
@@ -956,7 +962,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
956
962
|
* @return {?}
|
|
957
963
|
*/
|
|
958
964
|
function () {
|
|
959
|
-
this.configChanged
|
|
965
|
+
if (this.configChanged)
|
|
966
|
+
this.configChanged.unsubscribe();
|
|
960
967
|
};
|
|
961
968
|
/** To Edit current widget configuration*/
|
|
962
969
|
/**
|
|
@@ -1072,9 +1079,9 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1072
1079
|
* @return {?}
|
|
1073
1080
|
*/
|
|
1074
1081
|
function () {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1082
|
+
widgetContainer.widgetElement = document.createElement(widgetInfo.customTag);
|
|
1083
|
+
widgetContainer.widgetElement.setAttribute("widget-instance-id", widgetInfo.widgetInstanceId);
|
|
1084
|
+
document.body.addEventListener('widgetinitiated' + widgetInfo.widgetInstanceId, (/**
|
|
1078
1085
|
* @return {?}
|
|
1079
1086
|
*/
|
|
1080
1087
|
function () {
|
|
@@ -1082,13 +1089,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1082
1089
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1083
1090
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1084
1091
|
widgetContainer.widgetElement.loadContent(widgetConfigFilter);
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
* @return {?}
|
|
1088
|
-
*/
|
|
1089
|
-
function (hidePanel) {
|
|
1090
|
-
}));
|
|
1091
|
-
}), 2000);
|
|
1092
|
+
}));
|
|
1093
|
+
_this.ctlWidget.nativeElement.appendChild(_this.widgetElement);
|
|
1092
1094
|
}));
|
|
1093
1095
|
};
|
|
1094
1096
|
/** To refresh widget on input config changes */
|
|
@@ -1103,13 +1105,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1103
1105
|
* @return {?}
|
|
1104
1106
|
*/
|
|
1105
1107
|
function (widgetInfo) {
|
|
1108
|
+
/** @type {?} */
|
|
1109
|
+
var widgetContainerContext = this;
|
|
1106
1110
|
/** @type {?} */
|
|
1107
1111
|
var widgetConfigFilter = (/** @type {?} */ ({
|
|
1108
1112
|
config: widgetInfo.widgetConfigInfo.config,
|
|
1109
1113
|
globalFilter: this.globalFilter,
|
|
1110
1114
|
appConfig: this.appConfig
|
|
1111
1115
|
}));
|
|
1112
|
-
|
|
1116
|
+
widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
|
|
1113
1117
|
};
|
|
1114
1118
|
RAWidgetContainer.decorators = [
|
|
1115
1119
|
{ type: Component, args: [{
|