@schneideress/dashboardframework 0.0.12 → 0.0.14
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 +25 -1
- 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 +29 -2
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +29 -2
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +35 -1
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +35 -1
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -0
- package/lib/ra.dashboard.service.d.ts +5 -5
- package/lib/ra.event.enum.d.ts +3 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -399,6 +399,8 @@
|
|
|
399
399
|
WidgetDelete: "WidgetDelete",
|
|
400
400
|
/** used to add widget to widgetlist when user copies a widget to current dashboard */
|
|
401
401
|
AddWidget: "AddWidget",
|
|
402
|
+
/** done button click on widget library flyout */
|
|
403
|
+
widgetLibraryDoneClick: "widgetLibraryDoneClick",
|
|
402
404
|
};
|
|
403
405
|
/** @enum {string} */
|
|
404
406
|
var RAEventKey = {
|
|
@@ -608,6 +610,27 @@
|
|
|
608
610
|
_this.addWidget(e);
|
|
609
611
|
}));
|
|
610
612
|
}));
|
|
613
|
+
this.widgetLibraryDoneClick = this.raDashboardEventBus.subscribe(RAEvent.widgetLibraryDoneClick).subscribe((/**
|
|
614
|
+
* @param {?} widgetList
|
|
615
|
+
* @return {?}
|
|
616
|
+
*/
|
|
617
|
+
function (widgetList) {
|
|
618
|
+
_this.ngZone.run((/**
|
|
619
|
+
* @return {?}
|
|
620
|
+
*/
|
|
621
|
+
function () {
|
|
622
|
+
console.log(widgetList);
|
|
623
|
+
if (widgetList) {
|
|
624
|
+
widgetList.forEach((/**
|
|
625
|
+
* @param {?} widgetInfo
|
|
626
|
+
* @return {?}
|
|
627
|
+
*/
|
|
628
|
+
function (widgetInfo) {
|
|
629
|
+
_this.addWidget(widgetInfo);
|
|
630
|
+
}));
|
|
631
|
+
}
|
|
632
|
+
}));
|
|
633
|
+
}));
|
|
611
634
|
};
|
|
612
635
|
/**
|
|
613
636
|
* @return {?}
|
|
@@ -619,6 +642,7 @@
|
|
|
619
642
|
this.conifgAddClick.unsubscribe();
|
|
620
643
|
this.widgetAddEvent.unsubscribe();
|
|
621
644
|
this.widgetDeleteEvent.unsubscribe();
|
|
645
|
+
this.widgetLibraryDoneClick.unsubscribe();
|
|
622
646
|
};
|
|
623
647
|
/**To update position/dimention of all widgets in the area */
|
|
624
648
|
/**
|
|
@@ -893,7 +917,7 @@
|
|
|
893
917
|
{ type: core.Component, args: [{
|
|
894
918
|
selector: 'ra-dashboard-area',
|
|
895
919
|
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",
|
|
896
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;min-height:600px}gridster-item{
|
|
920
|
+
styles: ["gridster{width:inherit;resize:height;display:flex;min-height:600px}gridster-item{background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
|
|
897
921
|
}] }
|
|
898
922
|
];
|
|
899
923
|
/** @nocollapse */
|