@schneideress/dashboardframework 17.0.40 → 17.0.42

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.
@@ -3888,7 +3888,7 @@ class RAWidgetContainer {
3888
3888
  this.lockIconFooter = this.translateService.translate('Common.lockedfieldseditinfo');
3889
3889
  this.inapplicableIconTitle = this.translateService.translate('Common.InapplicableFilters');
3890
3890
  this.inapplicableIconFooter = this.translateService.translate('Common.InapplicableFiltersDesc');
3891
- if (this.dashboardInfo.templateName == 'Emission Report' || this.dashboardInfo.templateName == 'CostUsage Report') {
3891
+ if (this.dashboardInfo.templateName == 'Emission Report') {
3892
3892
  this.hideTitle = true;
3893
3893
  this.showOnlyDropdown = true;
3894
3894
  }
@@ -4806,7 +4806,7 @@ class RADashboardArea {
4806
4806
  this.setEmptyDashboardConfig();
4807
4807
  this.setDownloadOnlyStateConfig();
4808
4808
  this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
4809
- this.hasGird = this.dashboardInfo.templateName == 'Emission Report' || this.dashboardInfo.templateName == 'CostUsage Report';
4809
+ this.hasGird = this.dashboardInfo.templateName == 'Emission Report';
4810
4810
  this.responsiveService.resized.subscribe((isDesktop) => {
4811
4811
  if (this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
4812
4812
  this.lastViewType = (isDesktop ? 'desktop' : 'mobile');
@@ -4830,7 +4830,9 @@ class RADashboardArea {
4830
4830
  }
4831
4831
  else {
4832
4832
  setTimeout(() => {
4833
- this.gridcellHeight = this.options.api.getCurrentRowHeight();
4833
+ if (this.options?.api) {
4834
+ this.gridcellHeight = this.options.api.getCurrentRowHeight();
4835
+ }
4834
4836
  this.domResized = !this.domResized;
4835
4837
  this.setAreaHeight();
4836
4838
  }, 100);
@@ -5581,8 +5583,8 @@ class RaBaseDashboardFilter {
5581
5583
  this.clearAllData = () => {
5582
5584
  this.clearData();
5583
5585
  };
5584
- this.setAllFilterConfig = (globalFilter, appConfig) => {
5585
- this.setFilterConfig(globalFilter, appConfig);
5586
+ this.setAllFilterConfig = (globalFilter, appConfig, hasIDM) => {
5587
+ this.setFilterConfig(globalFilter, appConfig, hasIDM);
5586
5588
  };
5587
5589
  this.showOnlyDateRangeControl = (isIndicatorDashboard) => {
5588
5590
  this.showDateRangeControl(isIndicatorDashboard);