@schneideress/dashboardframework 0.0.263 → 0.0.265

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.
@@ -193,6 +193,8 @@ var RAEvent;
193
193
  /** Bulk Action Clicked */
194
194
  RAEvent["BulkActionClick"] = "BulkActionClick";
195
195
  /** Global Filter Clicked */
196
+ /** When user change the curated filter(eg:data streams), system will create/delete widgets */
197
+ RAEvent["CuratedFilterChange"] = "CuratedFilterChange";
196
198
  RAEvent["GlobalFilterClick"] = "GlobalFilterClick";
197
199
  })(RAEvent || (RAEvent = {}));
198
200
  var RAEventKey;
@@ -468,7 +470,7 @@ var RADashboardArea = /** @class */ (function () {
468
470
  }
469
471
  });
470
472
  setTimeout(function () {
471
- _this.raDashboardEventBus.subscribe(RAEvent.BulkActionClick).subscribe(function (data) {
473
+ _this.bulkActionClick = _this.raDashboardEventBus.subscribe(RAEvent.BulkActionClick).subscribe(function (data) {
472
474
  _this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
473
475
  });
474
476
  });
@@ -533,6 +535,11 @@ var RADashboardArea = /** @class */ (function () {
533
535
  _this.addWidget(e);
534
536
  });
535
537
  });
538
+ this.curatedFilterChange = this.raDashboardEventBus.subscribe(RAEvent.CuratedFilterChange).subscribe(function (e) {
539
+ _this.ngZone.run(function () {
540
+ _this.loadWidgets(_this.userDashboardId, _this.areaKey);
541
+ });
542
+ });
536
543
  this.rearrangeWidgetClick = this.raDashboardEventBus.subscribe(RAEvent.RearrangeClicked).subscribe(function (e) {
537
544
  _this.ngZone.run(function () {
538
545
  _this.rearrangeWidgets();
@@ -581,6 +588,10 @@ var RADashboardArea = /** @class */ (function () {
581
588
  this.widgetLibraryDoneClick.unsubscribe();
582
589
  if (this.rearrangeWidgetClick)
583
590
  this.rearrangeWidgetClick.unsubscribe();
591
+ if (this.curatedFilterChange)
592
+ this.curatedFilterChange.unsubscribe();
593
+ if (this.bulkActionClick)
594
+ this.bulkActionClick.unsubscribe();
584
595
  };
585
596
  /**To update position/dimention of all widgets in the area */
586
597
  RADashboardArea.prototype.updateWidgets = function () {