@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.
@@ -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
  /**