@schneideress/dashboardframework 0.0.277 → 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 -5
- 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 -5
- package/esm2015/lib/ra.base.dashboard.filter.js +9 -1
- package/esm2015/lib/ra.base.dashboard.template.js +3 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +7 -5
- package/esm5/lib/ra.base.dashboard.filter.js +9 -1
- package/esm5/lib/ra.base.dashboard.template.js +3 -2
- package/fesm2015/schneideress-dashboardframework.js +17 -6
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +16 -5
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -1
- package/lib/ra.base.dashboard.filter.d.ts +2 -0
- package/lib/ra.base.dashboard.template.d.ts +2 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -411,9 +411,9 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
411
411
|
this.domResized = false;
|
|
412
412
|
this.showEmptyDashboard = false;
|
|
413
413
|
this.isWidgetMgmnt = false;
|
|
414
|
-
this.templateId = '';
|
|
415
414
|
this.widgetHeight = 2;
|
|
416
415
|
this.widgetWidth = 4;
|
|
416
|
+
this.isIndicatorDashboard = false;
|
|
417
417
|
this.hideDashboardBanner = new EventEmitter();
|
|
418
418
|
}
|
|
419
419
|
RADashboardArea.prototype.ngOnInit = function () {
|
|
@@ -580,12 +580,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
580
580
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
581
581
|
RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
|
|
582
582
|
var _this = this;
|
|
583
|
-
if (localStorage.getItem('IndicatorDashboardTemplateId'))
|
|
584
|
-
this.templateId = localStorage.getItem('IndicatorDashboardTemplateId');
|
|
585
583
|
var widgetInfo = {
|
|
586
584
|
dashboardId: userDashboarId.toString(),
|
|
587
585
|
dashboardAreaKey: areaKey,
|
|
588
|
-
|
|
586
|
+
isIndicatorDashboard: this.isIndicatorDashboard
|
|
589
587
|
};
|
|
590
588
|
this.widgetList = [];
|
|
591
589
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
|
|
@@ -859,6 +857,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
859
857
|
Input('app-config'),
|
|
860
858
|
__metadata("design:type", Object)
|
|
861
859
|
], RADashboardArea.prototype, "appConfig", void 0);
|
|
860
|
+
__decorate([
|
|
861
|
+
Input('isIndicatorDashboard'),
|
|
862
|
+
__metadata("design:type", Boolean)
|
|
863
|
+
], RADashboardArea.prototype, "isIndicatorDashboard", void 0);
|
|
862
864
|
__decorate([
|
|
863
865
|
Output(),
|
|
864
866
|
__metadata("design:type", Object)
|
|
@@ -4786,11 +4788,12 @@ var RaBaseDashboardTemplate = /** @class */ (function () {
|
|
|
4786
4788
|
function RaBaseDashboardTemplate(ngZone) {
|
|
4787
4789
|
var _this = this;
|
|
4788
4790
|
this.ngZone = ngZone;
|
|
4789
|
-
this.initialize = function (eventBus, userDashboardId, appConfig) {
|
|
4791
|
+
this.initialize = function (eventBus, userDashboardId, appConfig, isIndicatorDashboard) {
|
|
4790
4792
|
_this.ngZone.run(function () {
|
|
4791
4793
|
_this.userDashboardId = userDashboardId;
|
|
4792
4794
|
_this.appConfig = appConfig;
|
|
4793
4795
|
_this.raDashboardEventBus = eventBus;
|
|
4796
|
+
_this.isIndicatorDashboard = isIndicatorDashboard;
|
|
4794
4797
|
});
|
|
4795
4798
|
_this.init();
|
|
4796
4799
|
};
|
|
@@ -4832,6 +4835,10 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
4832
4835
|
this.setAllFilterConfig = function (globalFilter, appConfig) {
|
|
4833
4836
|
_this.setFilterConfig(globalFilter, appConfig);
|
|
4834
4837
|
};
|
|
4838
|
+
this.showOnlyDateRangeControl = function (isIndicatorDashboard) {
|
|
4839
|
+
debugger;
|
|
4840
|
+
_this.showDateRangeControl(isIndicatorDashboard);
|
|
4841
|
+
};
|
|
4835
4842
|
}
|
|
4836
4843
|
RaBaseDashboardFilter.prototype.ngOnInit = function () {
|
|
4837
4844
|
var myEvent = new CustomEvent("global-filter-initiated");
|
|
@@ -4857,6 +4864,10 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
4857
4864
|
Input(),
|
|
4858
4865
|
__metadata("design:type", Object)
|
|
4859
4866
|
], RaBaseDashboardFilter.prototype, "setAllFilterConfig", void 0);
|
|
4867
|
+
__decorate([
|
|
4868
|
+
Input(),
|
|
4869
|
+
__metadata("design:type", Object)
|
|
4870
|
+
], RaBaseDashboardFilter.prototype, "showOnlyDateRangeControl", void 0);
|
|
4860
4871
|
return RaBaseDashboardFilter;
|
|
4861
4872
|
}());
|
|
4862
4873
|
|