@schneideress/dashboardframework 0.0.29 → 0.0.31
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 +18 -2
- 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 +9 -2
- package/esm2015/lib/ra.base.dashboard.template.js +9 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +2 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +9 -2
- package/esm5/lib/ra.base.dashboard.template.js +12 -1
- package/fesm2015/schneideress-dashboardframework.js +15 -2
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +18 -2
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +1 -0
- package/lib/ra.base.dashboard.template.d.ts +1 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
RADashboardArea.decorators = [
|
|
961
961
|
{ type: core.Component, args: [{
|
|
962
962
|
selector: 'ra-dashboard-area',
|
|
963
|
-
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",
|
|
963
|
+
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",
|
|
964
964
|
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}"]
|
|
965
965
|
}] }
|
|
966
966
|
];
|
|
@@ -1025,6 +1025,11 @@
|
|
|
1025
1025
|
if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
1026
1026
|
this.refreshWidget(this.data.widgetInfo);
|
|
1027
1027
|
}
|
|
1028
|
+
if (changes.widgetWidth && changes.widgetWidth.currentValue != changes.widgetWidth.previousValue) {
|
|
1029
|
+
this.data.widgetInfo.isDimensionUpdate = true;
|
|
1030
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1031
|
+
this.data.widgetInfo.isDimensionUpdate = false;
|
|
1032
|
+
}
|
|
1028
1033
|
};
|
|
1029
1034
|
/**
|
|
1030
1035
|
* @return {?}
|
|
@@ -1160,7 +1165,6 @@
|
|
|
1160
1165
|
* @return {?}
|
|
1161
1166
|
*/
|
|
1162
1167
|
function () {
|
|
1163
|
-
console.log('widget initialized ' + widgetInfo.widgetInstanceId);
|
|
1164
1168
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1165
1169
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1166
1170
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
@@ -1214,6 +1218,7 @@
|
|
|
1214
1218
|
data: [{ type: core.Input, args: ['data',] }],
|
|
1215
1219
|
raDashboardEventBus: [{ type: core.Input, args: ['event-bus',] }],
|
|
1216
1220
|
appConfig: [{ type: core.Input, args: ['app-config',] }],
|
|
1221
|
+
widgetWidth: [{ type: core.Input, args: ['widget-width',] }],
|
|
1217
1222
|
widgetDeleted: [{ type: core.Output }]
|
|
1218
1223
|
};
|
|
1219
1224
|
return RAWidgetContainer;
|
|
@@ -5818,6 +5823,17 @@
|
|
|
5818
5823
|
_this.init();
|
|
5819
5824
|
});
|
|
5820
5825
|
}
|
|
5826
|
+
/**
|
|
5827
|
+
* @return {?}
|
|
5828
|
+
*/
|
|
5829
|
+
RaBaseDashboardTemplate.prototype.ngOnInit = /**
|
|
5830
|
+
* @return {?}
|
|
5831
|
+
*/
|
|
5832
|
+
function () {
|
|
5833
|
+
/** @type {?} */
|
|
5834
|
+
var myEvent = new CustomEvent("event-template-initiated");
|
|
5835
|
+
document.body.dispatchEvent(myEvent);
|
|
5836
|
+
};
|
|
5821
5837
|
RaBaseDashboardTemplate.propDecorators = {
|
|
5822
5838
|
dashboardId: [{ type: core.Input, args: ['dashboard-id',] }],
|
|
5823
5839
|
globalFilter: [{ type: core.Input, args: ['global-filter',] }],
|