@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.
@@ -364,6 +364,8 @@ var RAEvent = {
364
364
  WidgetDelete: "WidgetDelete",
365
365
  /** used to add widget to widgetlist when user copies a widget to current dashboard */
366
366
  AddWidget: "AddWidget",
367
+ /** done button click on widget library flyout */
368
+ widgetLibraryDoneClick: "widgetLibraryDoneClick",
367
369
  };
368
370
  /** @enum {string} */
369
371
  var RAEventKey = {
@@ -573,6 +575,27 @@ var RADashboardArea = /** @class */ (function () {
573
575
  _this.addWidget(e);
574
576
  }));
575
577
  }));
578
+ this.widgetLibraryDoneClick = this.raDashboardEventBus.subscribe(RAEvent.widgetLibraryDoneClick).subscribe((/**
579
+ * @param {?} widgetList
580
+ * @return {?}
581
+ */
582
+ function (widgetList) {
583
+ _this.ngZone.run((/**
584
+ * @return {?}
585
+ */
586
+ function () {
587
+ console.log(widgetList);
588
+ if (widgetList) {
589
+ widgetList.forEach((/**
590
+ * @param {?} widgetInfo
591
+ * @return {?}
592
+ */
593
+ function (widgetInfo) {
594
+ _this.addWidget(widgetInfo);
595
+ }));
596
+ }
597
+ }));
598
+ }));
576
599
  };
577
600
  /**
578
601
  * @return {?}
@@ -584,6 +607,7 @@ var RADashboardArea = /** @class */ (function () {
584
607
  this.conifgAddClick.unsubscribe();
585
608
  this.widgetAddEvent.unsubscribe();
586
609
  this.widgetDeleteEvent.unsubscribe();
610
+ this.widgetLibraryDoneClick.unsubscribe();
587
611
  };
588
612
  /**To update position/dimention of all widgets in the area */
589
613
  /**
@@ -858,7 +882,7 @@ var RADashboardArea = /** @class */ (function () {
858
882
  { type: Component, args: [{
859
883
  selector: 'ra-dashboard-area',
860
884
  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",
861
- styles: ["gridster{width:inherit;resize:height;display:flex;min-height:600px}gridster-item{border:1px solid #ccc;background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
885
+ 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}"]
862
886
  }] }
863
887
  ];
864
888
  /** @nocollapse */
@@ -5752,5 +5776,15 @@ var RaBaseDashboardFilter = /** @class */ (function () {
5752
5776
  return RaBaseDashboardFilter;
5753
5777
  }());
5754
5778
 
5779
+ /**
5780
+ * @fileoverview added by tsickle
5781
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5782
+ */
5783
+
5784
+ /**
5785
+ * @fileoverview added by tsickle
5786
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5787
+ */
5788
+
5755
5789
  export { DashboardFrameworkModule, RADashboardArea, RADashboardEventBus, RAEvent, RAEventKey, RAWidgetContainer, RaBaseDashboardFilter, RaBaseDashboardTemplate, RaDashboardService, GridsterModule as ɵa, GridsterComponent as ɵb, GridsterItemComponent as ɵc, GridsterPreviewComponent as ɵd, customNotifierOptions as ɵe };
5756
5790
  //# sourceMappingURL=schneideress-dashboardframework.js.map