@schneideress/dashboardframework 0.0.278 → 0.0.279
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 +16 -4
- 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 +7 -3
- package/esm2015/lib/ra.base.dashboard.filter.js +9 -2
- package/esm2015/lib/ra.base.dashboard.template.js +3 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +7 -3
- package/esm5/lib/ra.base.dashboard.filter.js +9 -2
- package/esm5/lib/ra.base.dashboard.template.js +3 -2
- package/fesm2015/schneideress-dashboardframework.js +17 -5
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +16 -4
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -0
- package/lib/ra.base.dashboard.filter.d.ts +2 -1
- package/lib/ra.base.dashboard.template.d.ts +2 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -624,6 +624,7 @@
|
|
|
624
624
|
this.isWidgetMgmnt = false;
|
|
625
625
|
this.widgetHeight = 2;
|
|
626
626
|
this.widgetWidth = 4;
|
|
627
|
+
this.isIndicatorDashboard = false;
|
|
627
628
|
this.hideDashboardBanner = new core.EventEmitter();
|
|
628
629
|
}
|
|
629
630
|
RADashboardArea.prototype.ngOnInit = function () {
|
|
@@ -790,11 +791,10 @@
|
|
|
790
791
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
791
792
|
RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
|
|
792
793
|
var _this = this;
|
|
793
|
-
var isIndicatorDashboard = localStorage.getItem('IsIndicatorDashboard') == 'true' ? true : false;
|
|
794
794
|
var widgetInfo = {
|
|
795
795
|
dashboardId: userDashboarId.toString(),
|
|
796
796
|
dashboardAreaKey: areaKey,
|
|
797
|
-
isIndicatorDashboard: isIndicatorDashboard
|
|
797
|
+
isIndicatorDashboard: this.isIndicatorDashboard
|
|
798
798
|
};
|
|
799
799
|
this.widgetList = [];
|
|
800
800
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
|
|
@@ -1068,6 +1068,10 @@
|
|
|
1068
1068
|
core.Input('app-config'),
|
|
1069
1069
|
__metadata("design:type", Object)
|
|
1070
1070
|
], RADashboardArea.prototype, "appConfig", void 0);
|
|
1071
|
+
__decorate([
|
|
1072
|
+
core.Input('isIndicatorDashboard'),
|
|
1073
|
+
__metadata("design:type", Boolean)
|
|
1074
|
+
], RADashboardArea.prototype, "isIndicatorDashboard", void 0);
|
|
1071
1075
|
__decorate([
|
|
1072
1076
|
core.Output(),
|
|
1073
1077
|
__metadata("design:type", Object)
|
|
@@ -4995,11 +4999,12 @@
|
|
|
4995
4999
|
function RaBaseDashboardTemplate(ngZone) {
|
|
4996
5000
|
var _this = this;
|
|
4997
5001
|
this.ngZone = ngZone;
|
|
4998
|
-
this.initialize = function (eventBus, userDashboardId, appConfig) {
|
|
5002
|
+
this.initialize = function (eventBus, userDashboardId, appConfig, isIndicatorDashboard) {
|
|
4999
5003
|
_this.ngZone.run(function () {
|
|
5000
5004
|
_this.userDashboardId = userDashboardId;
|
|
5001
5005
|
_this.appConfig = appConfig;
|
|
5002
5006
|
_this.raDashboardEventBus = eventBus;
|
|
5007
|
+
_this.isIndicatorDashboard = isIndicatorDashboard;
|
|
5003
5008
|
});
|
|
5004
5009
|
_this.init();
|
|
5005
5010
|
};
|
|
@@ -5041,11 +5046,14 @@
|
|
|
5041
5046
|
this.setAllFilterConfig = function (globalFilter, appConfig) {
|
|
5042
5047
|
_this.setFilterConfig(globalFilter, appConfig);
|
|
5043
5048
|
};
|
|
5049
|
+
this.showOnlyDateRangeControl = function (isIndicatorDashboard) {
|
|
5050
|
+
debugger;
|
|
5051
|
+
_this.showDateRangeControl(isIndicatorDashboard);
|
|
5052
|
+
};
|
|
5044
5053
|
}
|
|
5045
5054
|
RaBaseDashboardFilter.prototype.ngOnInit = function () {
|
|
5046
5055
|
var myEvent = new CustomEvent("global-filter-initiated");
|
|
5047
5056
|
document.body.dispatchEvent(myEvent);
|
|
5048
|
-
this.hideControls();
|
|
5049
5057
|
};
|
|
5050
5058
|
__decorate([
|
|
5051
5059
|
core.Input(),
|
|
@@ -5067,6 +5075,10 @@
|
|
|
5067
5075
|
core.Input(),
|
|
5068
5076
|
__metadata("design:type", Object)
|
|
5069
5077
|
], RaBaseDashboardFilter.prototype, "setAllFilterConfig", void 0);
|
|
5078
|
+
__decorate([
|
|
5079
|
+
core.Input(),
|
|
5080
|
+
__metadata("design:type", Object)
|
|
5081
|
+
], RaBaseDashboardFilter.prototype, "showOnlyDateRangeControl", void 0);
|
|
5070
5082
|
return RaBaseDashboardFilter;
|
|
5071
5083
|
}());
|
|
5072
5084
|
|