@schneideress/dashboardframework 0.0.19 → 0.0.21
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 +12 -13
- 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 +9 -2
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +9 -12
- package/esm2015/lib/ra.gridster.config.js +2 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +9 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +9 -12
- package/esm5/lib/ra.gridster.config.js +2 -2
- package/fesm2015/schneideress-dashboardframework.js +12 -13
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +12 -13
- 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
|
@@ -411,7 +411,7 @@ var CompactType = {
|
|
|
411
411
|
/** @type {?} */
|
|
412
412
|
var GridsterConfigDefaultSettings = {
|
|
413
413
|
gridType: GridType.ScrollVertical,
|
|
414
|
-
compactType: CompactType.
|
|
414
|
+
compactType: CompactType.CompactLeftAndUp,
|
|
415
415
|
margin: 0,
|
|
416
416
|
outerMargin: true,
|
|
417
417
|
outerMarginTop: null,
|
|
@@ -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) {
|
|
@@ -1072,9 +1074,9 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1072
1074
|
* @return {?}
|
|
1073
1075
|
*/
|
|
1074
1076
|
function () {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1077
|
+
widgetContainer.widgetElement = document.createElement(widgetInfo.customTag);
|
|
1078
|
+
widgetContainer.widgetElement.setAttribute("widget-instance-id", widgetInfo.widgetInstanceId);
|
|
1079
|
+
document.body.addEventListener('widgetinitiated' + widgetInfo.widgetInstanceId, (/**
|
|
1078
1080
|
* @return {?}
|
|
1079
1081
|
*/
|
|
1080
1082
|
function () {
|
|
@@ -1082,13 +1084,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1082
1084
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1083
1085
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1084
1086
|
widgetContainer.widgetElement.loadContent(widgetConfigFilter);
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
* @return {?}
|
|
1088
|
-
*/
|
|
1089
|
-
function (hidePanel) {
|
|
1090
|
-
}));
|
|
1091
|
-
}), 2000);
|
|
1087
|
+
}));
|
|
1088
|
+
_this.ctlWidget.nativeElement.appendChild(_this.widgetElement);
|
|
1092
1089
|
}));
|
|
1093
1090
|
};
|
|
1094
1091
|
/** To refresh widget on input config changes */
|
|
@@ -1103,13 +1100,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1103
1100
|
* @return {?}
|
|
1104
1101
|
*/
|
|
1105
1102
|
function (widgetInfo) {
|
|
1103
|
+
/** @type {?} */
|
|
1104
|
+
var widgetContainerContext = this;
|
|
1106
1105
|
/** @type {?} */
|
|
1107
1106
|
var widgetConfigFilter = (/** @type {?} */ ({
|
|
1108
1107
|
config: widgetInfo.widgetConfigInfo.config,
|
|
1109
1108
|
globalFilter: this.globalFilter,
|
|
1110
1109
|
appConfig: this.appConfig
|
|
1111
1110
|
}));
|
|
1112
|
-
|
|
1111
|
+
widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
|
|
1113
1112
|
};
|
|
1114
1113
|
RAWidgetContainer.decorators = [
|
|
1115
1114
|
{ type: Component, args: [{
|