@schneideress/dashboardframework 0.0.263 → 0.0.264
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 +15 -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 +14 -2
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +14 -2
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +15 -1
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +15 -1
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +3 -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.addRemoveWidgets(e);
|
|
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 () {
|
|
@@ -729,6 +740,9 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
729
740
|
_this.setAreaHeight();
|
|
730
741
|
});
|
|
731
742
|
};
|
|
743
|
+
//to add widgets into gridster when there is a change in curated filter
|
|
744
|
+
RADashboardArea.prototype.addRemoveWidgets = function (data) {
|
|
745
|
+
};
|
|
732
746
|
/**To add widget instance to the database with the next available position and to make changes in
|
|
733
747
|
* dashboard area.
|
|
734
748
|
*/
|