@schneideress/dashboardframework 0.0.13 → 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 +24 -0
- 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 +28 -1
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +28 -1
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +34 -0
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +34 -0
- 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
|
/**
|