@schneideress/dashboardframework 0.0.30 → 0.0.32
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 -3
- 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 +2 -2
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +19 -3
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +2 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +19 -3
- package/fesm2015/schneideress-dashboardframework.js +12 -3
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +12 -3
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +2 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -926,7 +926,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
926
926
|
RADashboardArea.decorators = [
|
|
927
927
|
{ type: Component, args: [{
|
|
928
928
|
selector: 'ra-dashboard-area',
|
|
929
|
-
template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n<!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
|
|
929
|
+
template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n<!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-width]=\"item.cols\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
|
|
930
930
|
styles: ["gridster{width:inherit;resize:height;display:flex}gridster-item{background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
|
|
931
931
|
}] }
|
|
932
932
|
];
|
|
@@ -961,6 +961,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
961
961
|
this.translateService = translateService;
|
|
962
962
|
this.ngZone = ngZone;
|
|
963
963
|
this.notifier = notifier;
|
|
964
|
+
this.isWidgetLoaded = false;
|
|
964
965
|
this.isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
|
|
965
966
|
this.widgetDeleted = new EventEmitter();
|
|
966
967
|
}
|
|
@@ -991,6 +992,11 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
991
992
|
if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
992
993
|
this.refreshWidget(this.data.widgetInfo);
|
|
993
994
|
}
|
|
995
|
+
if (changes.widgetWidth && changes.widgetWidth.currentValue != changes.widgetWidth.previousValue) {
|
|
996
|
+
this.data.widgetInfo.isDimensionUpdate = true;
|
|
997
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
998
|
+
this.data.widgetInfo.isDimensionUpdate = false;
|
|
999
|
+
}
|
|
994
1000
|
};
|
|
995
1001
|
/**
|
|
996
1002
|
* @return {?}
|
|
@@ -1126,7 +1132,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1126
1132
|
* @return {?}
|
|
1127
1133
|
*/
|
|
1128
1134
|
function () {
|
|
1129
|
-
|
|
1135
|
+
widgetContainer.isWidgetLoaded = true;
|
|
1130
1136
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1131
1137
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1132
1138
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
@@ -1156,7 +1162,9 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1156
1162
|
appConfig: this.appConfig,
|
|
1157
1163
|
widgetInfo: widgetInfo
|
|
1158
1164
|
}));
|
|
1159
|
-
widgetContainerContext.
|
|
1165
|
+
if (widgetContainerContext.isWidgetLoaded) {
|
|
1166
|
+
widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
|
|
1167
|
+
}
|
|
1160
1168
|
};
|
|
1161
1169
|
RAWidgetContainer.decorators = [
|
|
1162
1170
|
{ type: Component, args: [{
|
|
@@ -1180,6 +1188,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1180
1188
|
data: [{ type: Input, args: ['data',] }],
|
|
1181
1189
|
raDashboardEventBus: [{ type: Input, args: ['event-bus',] }],
|
|
1182
1190
|
appConfig: [{ type: Input, args: ['app-config',] }],
|
|
1191
|
+
widgetWidth: [{ type: Input, args: ['widget-width',] }],
|
|
1183
1192
|
widgetDeleted: [{ type: Output }]
|
|
1184
1193
|
};
|
|
1185
1194
|
return RAWidgetContainer;
|