@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
|
@@ -404,6 +404,8 @@
|
|
|
404
404
|
/** Bulk Action Clicked */
|
|
405
405
|
RAEvent["BulkActionClick"] = "BulkActionClick";
|
|
406
406
|
/** Global Filter Clicked */
|
|
407
|
+
/** When user change the curated filter(eg:data streams), system will create/delete widgets */
|
|
408
|
+
RAEvent["CuratedFilterChange"] = "CuratedFilterChange";
|
|
407
409
|
RAEvent["GlobalFilterClick"] = "GlobalFilterClick";
|
|
408
410
|
})(exports.RAEvent || (exports.RAEvent = {}));
|
|
409
411
|
|
|
@@ -679,7 +681,7 @@
|
|
|
679
681
|
}
|
|
680
682
|
});
|
|
681
683
|
setTimeout(function () {
|
|
682
|
-
_this.raDashboardEventBus.subscribe(exports.RAEvent.BulkActionClick).subscribe(function (data) {
|
|
684
|
+
_this.bulkActionClick = _this.raDashboardEventBus.subscribe(exports.RAEvent.BulkActionClick).subscribe(function (data) {
|
|
683
685
|
_this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
|
|
684
686
|
});
|
|
685
687
|
});
|
|
@@ -744,6 +746,11 @@
|
|
|
744
746
|
_this.addWidget(e);
|
|
745
747
|
});
|
|
746
748
|
});
|
|
749
|
+
this.curatedFilterChange = this.raDashboardEventBus.subscribe(exports.RAEvent.CuratedFilterChange).subscribe(function (e) {
|
|
750
|
+
_this.ngZone.run(function () {
|
|
751
|
+
_this.loadWidgets(_this.userDashboardId, _this.areaKey);
|
|
752
|
+
});
|
|
753
|
+
});
|
|
747
754
|
this.rearrangeWidgetClick = this.raDashboardEventBus.subscribe(exports.RAEvent.RearrangeClicked).subscribe(function (e) {
|
|
748
755
|
_this.ngZone.run(function () {
|
|
749
756
|
_this.rearrangeWidgets();
|
|
@@ -792,6 +799,10 @@
|
|
|
792
799
|
this.widgetLibraryDoneClick.unsubscribe();
|
|
793
800
|
if (this.rearrangeWidgetClick)
|
|
794
801
|
this.rearrangeWidgetClick.unsubscribe();
|
|
802
|
+
if (this.curatedFilterChange)
|
|
803
|
+
this.curatedFilterChange.unsubscribe();
|
|
804
|
+
if (this.bulkActionClick)
|
|
805
|
+
this.bulkActionClick.unsubscribe();
|
|
795
806
|
};
|
|
796
807
|
/**To update position/dimention of all widgets in the area */
|
|
797
808
|
RADashboardArea.prototype.updateWidgets = function () {
|