@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
|
@@ -513,6 +513,7 @@
|
|
|
513
513
|
this.notifier = notifier;
|
|
514
514
|
this.widgetList = Array();
|
|
515
515
|
this.gridheight = 300;
|
|
516
|
+
this.isWidgetLoaded = false;
|
|
516
517
|
this.widgetHeight = 20;
|
|
517
518
|
this.widgetWidth = 50;
|
|
518
519
|
}
|
|
@@ -534,7 +535,8 @@
|
|
|
534
535
|
* @return {?}
|
|
535
536
|
*/
|
|
536
537
|
function (changes) {
|
|
537
|
-
if (this.
|
|
538
|
+
if (this.raDashboardEventBus && this.appConfig && !this.isWidgetLoaded) {
|
|
539
|
+
this.isWidgetLoaded = true;
|
|
538
540
|
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
539
541
|
}
|
|
540
542
|
if (changes.raDashboardEventBus && changes.raDashboardEventBus.currentValue != changes.raDashboardEventBus.previousValue) {
|
|
@@ -639,10 +641,14 @@
|
|
|
639
641
|
* @return {?}
|
|
640
642
|
*/
|
|
641
643
|
function () {
|
|
642
|
-
this.conifgAddClick
|
|
643
|
-
|
|
644
|
-
this.
|
|
645
|
-
|
|
644
|
+
if (this.conifgAddClick)
|
|
645
|
+
this.conifgAddClick.unsubscribe();
|
|
646
|
+
if (this.widgetAddEvent)
|
|
647
|
+
this.widgetAddEvent.unsubscribe();
|
|
648
|
+
if (this.widgetDeleteEvent)
|
|
649
|
+
this.widgetDeleteEvent.unsubscribe();
|
|
650
|
+
if (this.widgetLibraryDoneClick)
|
|
651
|
+
this.widgetLibraryDoneClick.unsubscribe();
|
|
646
652
|
};
|
|
647
653
|
/**To update position/dimention of all widgets in the area */
|
|
648
654
|
/**
|
|
@@ -991,7 +997,8 @@
|
|
|
991
997
|
* @return {?}
|
|
992
998
|
*/
|
|
993
999
|
function () {
|
|
994
|
-
this.configChanged
|
|
1000
|
+
if (this.configChanged)
|
|
1001
|
+
this.configChanged.unsubscribe();
|
|
995
1002
|
};
|
|
996
1003
|
/** To Edit current widget configuration*/
|
|
997
1004
|
/**
|
|
@@ -1107,9 +1114,9 @@
|
|
|
1107
1114
|
* @return {?}
|
|
1108
1115
|
*/
|
|
1109
1116
|
function () {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1117
|
+
widgetContainer.widgetElement = document.createElement(widgetInfo.customTag);
|
|
1118
|
+
widgetContainer.widgetElement.setAttribute("widget-instance-id", widgetInfo.widgetInstanceId);
|
|
1119
|
+
document.body.addEventListener('widgetinitiated' + widgetInfo.widgetInstanceId, (/**
|
|
1113
1120
|
* @return {?}
|
|
1114
1121
|
*/
|
|
1115
1122
|
function () {
|
|
@@ -1117,13 +1124,8 @@
|
|
|
1117
1124
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1118
1125
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1119
1126
|
widgetContainer.widgetElement.loadContent(widgetConfigFilter);
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
* @return {?}
|
|
1123
|
-
*/
|
|
1124
|
-
function (hidePanel) {
|
|
1125
|
-
}));
|
|
1126
|
-
}), 2000);
|
|
1127
|
+
}));
|
|
1128
|
+
_this.ctlWidget.nativeElement.appendChild(_this.widgetElement);
|
|
1127
1129
|
}));
|
|
1128
1130
|
};
|
|
1129
1131
|
/** To refresh widget on input config changes */
|
|
@@ -1138,13 +1140,15 @@
|
|
|
1138
1140
|
* @return {?}
|
|
1139
1141
|
*/
|
|
1140
1142
|
function (widgetInfo) {
|
|
1143
|
+
/** @type {?} */
|
|
1144
|
+
var widgetContainerContext = this;
|
|
1141
1145
|
/** @type {?} */
|
|
1142
1146
|
var widgetConfigFilter = (/** @type {?} */ ({
|
|
1143
1147
|
config: widgetInfo.widgetConfigInfo.config,
|
|
1144
1148
|
globalFilter: this.globalFilter,
|
|
1145
1149
|
appConfig: this.appConfig
|
|
1146
1150
|
}));
|
|
1147
|
-
|
|
1151
|
+
widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
|
|
1148
1152
|
};
|
|
1149
1153
|
RAWidgetContainer.decorators = [
|
|
1150
1154
|
{ type: core.Component, args: [{
|