@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
|
@@ -413,6 +413,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
413
413
|
this.isWidgetMgmnt = false;
|
|
414
414
|
this.widgetHeight = 2;
|
|
415
415
|
this.widgetWidth = 4;
|
|
416
|
+
this.isIndicatorDashboard = false;
|
|
416
417
|
this.hideDashboardBanner = new EventEmitter();
|
|
417
418
|
}
|
|
418
419
|
RADashboardArea.prototype.ngOnInit = function () {
|
|
@@ -579,11 +580,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
579
580
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
580
581
|
RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
|
|
581
582
|
var _this = this;
|
|
582
|
-
var isIndicatorDashboard = localStorage.getItem('IsIndicatorDashboard') == 'true' ? true : false;
|
|
583
583
|
var widgetInfo = {
|
|
584
584
|
dashboardId: userDashboarId.toString(),
|
|
585
585
|
dashboardAreaKey: areaKey,
|
|
586
|
-
isIndicatorDashboard: isIndicatorDashboard
|
|
586
|
+
isIndicatorDashboard: this.isIndicatorDashboard
|
|
587
587
|
};
|
|
588
588
|
this.widgetList = [];
|
|
589
589
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
|
|
@@ -857,6 +857,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
857
857
|
Input('app-config'),
|
|
858
858
|
__metadata("design:type", Object)
|
|
859
859
|
], RADashboardArea.prototype, "appConfig", void 0);
|
|
860
|
+
__decorate([
|
|
861
|
+
Input('isIndicatorDashboard'),
|
|
862
|
+
__metadata("design:type", Boolean)
|
|
863
|
+
], RADashboardArea.prototype, "isIndicatorDashboard", void 0);
|
|
860
864
|
__decorate([
|
|
861
865
|
Output(),
|
|
862
866
|
__metadata("design:type", Object)
|
|
@@ -4784,11 +4788,12 @@ var RaBaseDashboardTemplate = /** @class */ (function () {
|
|
|
4784
4788
|
function RaBaseDashboardTemplate(ngZone) {
|
|
4785
4789
|
var _this = this;
|
|
4786
4790
|
this.ngZone = ngZone;
|
|
4787
|
-
this.initialize = function (eventBus, userDashboardId, appConfig) {
|
|
4791
|
+
this.initialize = function (eventBus, userDashboardId, appConfig, isIndicatorDashboard) {
|
|
4788
4792
|
_this.ngZone.run(function () {
|
|
4789
4793
|
_this.userDashboardId = userDashboardId;
|
|
4790
4794
|
_this.appConfig = appConfig;
|
|
4791
4795
|
_this.raDashboardEventBus = eventBus;
|
|
4796
|
+
_this.isIndicatorDashboard = isIndicatorDashboard;
|
|
4792
4797
|
});
|
|
4793
4798
|
_this.init();
|
|
4794
4799
|
};
|
|
@@ -4830,11 +4835,14 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
4830
4835
|
this.setAllFilterConfig = function (globalFilter, appConfig) {
|
|
4831
4836
|
_this.setFilterConfig(globalFilter, appConfig);
|
|
4832
4837
|
};
|
|
4838
|
+
this.showOnlyDateRangeControl = function (isIndicatorDashboard) {
|
|
4839
|
+
debugger;
|
|
4840
|
+
_this.showDateRangeControl(isIndicatorDashboard);
|
|
4841
|
+
};
|
|
4833
4842
|
}
|
|
4834
4843
|
RaBaseDashboardFilter.prototype.ngOnInit = function () {
|
|
4835
4844
|
var myEvent = new CustomEvent("global-filter-initiated");
|
|
4836
4845
|
document.body.dispatchEvent(myEvent);
|
|
4837
|
-
this.hideControls();
|
|
4838
4846
|
};
|
|
4839
4847
|
__decorate([
|
|
4840
4848
|
Input(),
|
|
@@ -4856,6 +4864,10 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
4856
4864
|
Input(),
|
|
4857
4865
|
__metadata("design:type", Object)
|
|
4858
4866
|
], RaBaseDashboardFilter.prototype, "setAllFilterConfig", void 0);
|
|
4867
|
+
__decorate([
|
|
4868
|
+
Input(),
|
|
4869
|
+
__metadata("design:type", Object)
|
|
4870
|
+
], RaBaseDashboardFilter.prototype, "showOnlyDateRangeControl", void 0);
|
|
4859
4871
|
return RaBaseDashboardFilter;
|
|
4860
4872
|
}());
|
|
4861
4873
|
|