@schneideress/dashboardframework 17.0.38 → 17.0.40
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/esm2022/lib/ra-dashboard-area/ra.dashboard.area.mjs +2 -2
- package/esm2022/lib/ra-widget-container/ra.widget.container.component.mjs +2 -2
- package/esm2022/lib/ra.event.enum.mjs +5 -1
- package/fesm2022/schneideress-dashboardframework.mjs +6 -2
- package/fesm2022/schneideress-dashboardframework.mjs.map +1 -1
- package/lib/ra.event.enum.d.ts +5 -1
- package/package.json +1 -1
|
@@ -160,6 +160,10 @@ var RAEvent;
|
|
|
160
160
|
RAEvent["DownloadOnlyState"] = "DownloadOnlyState";
|
|
161
161
|
/** Event on excel download button clicked*/
|
|
162
162
|
RAEvent["DownloadExcelClick"] = "DownloadExcelClick";
|
|
163
|
+
/** Event on emission report snapshot button clicked*/
|
|
164
|
+
RAEvent["SnapShotClick"] = "SnapShotClick";
|
|
165
|
+
/** Event on emission report snapshot selected from list*/
|
|
166
|
+
RAEvent["SnapShotSelected"] = "SnapShotSelected";
|
|
163
167
|
})(RAEvent || (RAEvent = {}));
|
|
164
168
|
var RAEventKey;
|
|
165
169
|
(function (RAEventKey) {
|
|
@@ -3884,7 +3888,7 @@ class RAWidgetContainer {
|
|
|
3884
3888
|
this.lockIconFooter = this.translateService.translate('Common.lockedfieldseditinfo');
|
|
3885
3889
|
this.inapplicableIconTitle = this.translateService.translate('Common.InapplicableFilters');
|
|
3886
3890
|
this.inapplicableIconFooter = this.translateService.translate('Common.InapplicableFiltersDesc');
|
|
3887
|
-
if (this.dashboardInfo.templateName == 'Emission Report') {
|
|
3891
|
+
if (this.dashboardInfo.templateName == 'Emission Report' || this.dashboardInfo.templateName == 'CostUsage Report') {
|
|
3888
3892
|
this.hideTitle = true;
|
|
3889
3893
|
this.showOnlyDropdown = true;
|
|
3890
3894
|
}
|
|
@@ -4802,7 +4806,7 @@ class RADashboardArea {
|
|
|
4802
4806
|
this.setEmptyDashboardConfig();
|
|
4803
4807
|
this.setDownloadOnlyStateConfig();
|
|
4804
4808
|
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
4805
|
-
this.hasGird = this.dashboardInfo.templateName == 'Emission Report';
|
|
4809
|
+
this.hasGird = this.dashboardInfo.templateName == 'Emission Report' || this.dashboardInfo.templateName == 'CostUsage Report';
|
|
4806
4810
|
this.responsiveService.resized.subscribe((isDesktop) => {
|
|
4807
4811
|
if (this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
4808
4812
|
this.lastViewType = (isDesktop ? 'desktop' : 'mobile');
|