@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
|
@@ -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
|
];
|
|
@@ -991,6 +991,11 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
991
991
|
if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
992
992
|
this.refreshWidget(this.data.widgetInfo);
|
|
993
993
|
}
|
|
994
|
+
if (changes.widgetWidth && changes.widgetWidth.currentValue != changes.widgetWidth.previousValue) {
|
|
995
|
+
this.data.widgetInfo.isDimensionUpdate = true;
|
|
996
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
997
|
+
this.data.widgetInfo.isDimensionUpdate = false;
|
|
998
|
+
}
|
|
994
999
|
};
|
|
995
1000
|
/**
|
|
996
1001
|
* @return {?}
|
|
@@ -1126,7 +1131,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1126
1131
|
* @return {?}
|
|
1127
1132
|
*/
|
|
1128
1133
|
function () {
|
|
1129
|
-
console.log('widget initialized ' + widgetInfo.widgetInstanceId);
|
|
1130
1134
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1131
1135
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1132
1136
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
@@ -1180,6 +1184,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1180
1184
|
data: [{ type: Input, args: ['data',] }],
|
|
1181
1185
|
raDashboardEventBus: [{ type: Input, args: ['event-bus',] }],
|
|
1182
1186
|
appConfig: [{ type: Input, args: ['app-config',] }],
|
|
1187
|
+
widgetWidth: [{ type: Input, args: ['widget-width',] }],
|
|
1183
1188
|
widgetDeleted: [{ type: Output }]
|
|
1184
1189
|
};
|
|
1185
1190
|
return RAWidgetContainer;
|
|
@@ -5784,6 +5789,17 @@ var RaBaseDashboardTemplate = /** @class */ (function () {
|
|
|
5784
5789
|
_this.init();
|
|
5785
5790
|
});
|
|
5786
5791
|
}
|
|
5792
|
+
/**
|
|
5793
|
+
* @return {?}
|
|
5794
|
+
*/
|
|
5795
|
+
RaBaseDashboardTemplate.prototype.ngOnInit = /**
|
|
5796
|
+
* @return {?}
|
|
5797
|
+
*/
|
|
5798
|
+
function () {
|
|
5799
|
+
/** @type {?} */
|
|
5800
|
+
var myEvent = new CustomEvent("event-template-initiated");
|
|
5801
|
+
document.body.dispatchEvent(myEvent);
|
|
5802
|
+
};
|
|
5787
5803
|
RaBaseDashboardTemplate.propDecorators = {
|
|
5788
5804
|
dashboardId: [{ type: Input, args: ['dashboard-id',] }],
|
|
5789
5805
|
globalFilter: [{ type: Input, args: ['global-filter',] }],
|