@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.
@@ -622,9 +622,9 @@
622
622
  this.domResized = false;
623
623
  this.showEmptyDashboard = false;
624
624
  this.isWidgetMgmnt = false;
625
- this.templateId = '';
626
625
  this.widgetHeight = 2;
627
626
  this.widgetWidth = 4;
627
+ this.isIndicatorDashboard = false;
628
628
  this.hideDashboardBanner = new core.EventEmitter();
629
629
  }
630
630
  RADashboardArea.prototype.ngOnInit = function () {
@@ -791,12 +791,10 @@
791
791
  /** To retrieve widgets based on userDashboardid and area name */
792
792
  RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
793
793
  var _this = this;
794
- if (localStorage.getItem('IndicatorDashboardTemplateId'))
795
- this.templateId = localStorage.getItem('IndicatorDashboardTemplateId');
796
794
  var widgetInfo = {
797
795
  dashboardId: userDashboarId.toString(),
798
796
  dashboardAreaKey: areaKey,
799
- templateId: this.templateId
797
+ isIndicatorDashboard: this.isIndicatorDashboard
800
798
  };
801
799
  this.widgetList = [];
802
800
  this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
@@ -1070,6 +1068,10 @@
1070
1068
  core.Input('app-config'),
1071
1069
  __metadata("design:type", Object)
1072
1070
  ], RADashboardArea.prototype, "appConfig", void 0);
1071
+ __decorate([
1072
+ core.Input('isIndicatorDashboard'),
1073
+ __metadata("design:type", Boolean)
1074
+ ], RADashboardArea.prototype, "isIndicatorDashboard", void 0);
1073
1075
  __decorate([
1074
1076
  core.Output(),
1075
1077
  __metadata("design:type", Object)
@@ -4997,11 +4999,12 @@
4997
4999
  function RaBaseDashboardTemplate(ngZone) {
4998
5000
  var _this = this;
4999
5001
  this.ngZone = ngZone;
5000
- this.initialize = function (eventBus, userDashboardId, appConfig) {
5002
+ this.initialize = function (eventBus, userDashboardId, appConfig, isIndicatorDashboard) {
5001
5003
  _this.ngZone.run(function () {
5002
5004
  _this.userDashboardId = userDashboardId;
5003
5005
  _this.appConfig = appConfig;
5004
5006
  _this.raDashboardEventBus = eventBus;
5007
+ _this.isIndicatorDashboard = isIndicatorDashboard;
5005
5008
  });
5006
5009
  _this.init();
5007
5010
  };
@@ -5043,6 +5046,10 @@
5043
5046
  this.setAllFilterConfig = function (globalFilter, appConfig) {
5044
5047
  _this.setFilterConfig(globalFilter, appConfig);
5045
5048
  };
5049
+ this.showOnlyDateRangeControl = function (isIndicatorDashboard) {
5050
+ debugger;
5051
+ _this.showDateRangeControl(isIndicatorDashboard);
5052
+ };
5046
5053
  }
5047
5054
  RaBaseDashboardFilter.prototype.ngOnInit = function () {
5048
5055
  var myEvent = new CustomEvent("global-filter-initiated");
@@ -5068,6 +5075,10 @@
5068
5075
  core.Input(),
5069
5076
  __metadata("design:type", Object)
5070
5077
  ], RaBaseDashboardFilter.prototype, "setAllFilterConfig", void 0);
5078
+ __decorate([
5079
+ core.Input(),
5080
+ __metadata("design:type", Object)
5081
+ ], RaBaseDashboardFilter.prototype, "showOnlyDateRangeControl", void 0);
5071
5082
  return RaBaseDashboardFilter;
5072
5083
  }());
5073
5084