@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.
- package/bundles/schneideress-dashboardframework.umd.js +12 -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 +11 -2
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +11 -2
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +12 -1
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +12 -1
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +2 -0
- package/lib/ra.event.enum.d.ts +2 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -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 () {
|