@schneideress/dashboardframework 0.0.213 → 0.0.215

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.
@@ -376,7 +376,14 @@ class RADashboardResponsiveService {
376
376
  * @return {?}
377
377
  */
378
378
  () => {
379
- this.setScreenWidth();
379
+ /** @type {?} */
380
+ var context = this;
381
+ setTimeout((/**
382
+ * @return {?}
383
+ */
384
+ () => {
385
+ context.setScreenWidth();
386
+ }), 1500);
380
387
  }));
381
388
  }
382
389
  /**
@@ -1349,6 +1356,7 @@ class RAWidgetContainer {
1349
1356
  this.isMouseHover = false;
1350
1357
  this.showSettingsLink = true;
1351
1358
  this.isKpiView = false;
1359
+ this.showExcell = true;
1352
1360
  this.widgetDeleted = new EventEmitter();
1353
1361
  this.isWidgetStateApplicable = false;
1354
1362
  this.widgetEmptyState = '';
@@ -1427,7 +1435,6 @@ class RAWidgetContainer {
1427
1435
  * @return {?}
1428
1436
  */
1429
1437
  invokeWidgetResizedEvent() {
1430
- console.log('in invoke widget resized event');
1431
1438
  if (this.widgetElement) {
1432
1439
  /** @type {?} */
1433
1440
  let size = {};
@@ -1904,6 +1911,7 @@ class RAWidgetContainer {
1904
1911
  this.isDownloadIconVisible = false;
1905
1912
  this.isChartDownloadVisible = false;
1906
1913
  this.isGridDownloadVisible = false;
1914
+ this.showExcell = true;
1907
1915
  if (downloadType != RADownloadType.None) {
1908
1916
  this.isDownloadIconVisible = true;
1909
1917
  }
@@ -1918,6 +1926,10 @@ class RAWidgetContainer {
1918
1926
  if (downloadType == RADownloadType.Grid) {
1919
1927
  this.isGridDownloadVisible = true;
1920
1928
  }
1929
+ if (downloadType == RADownloadType.Statistics) {
1930
+ this.isGridDownloadVisible = true;
1931
+ this.showExcell = false;
1932
+ }
1921
1933
  });
1922
1934
  }
1923
1935
  /**
@@ -1984,7 +1996,7 @@ class RAWidgetContainer {
1984
1996
  this.addEventListener('wcDownloadPdf', this.downloadIconClicked, 'PDF');
1985
1997
  this.addEventListener('wcDownloadSvg', this.downloadIconClicked, 'SVG');
1986
1998
  }
1987
- if (this.isGridDownloadVisible) {
1999
+ if (this.isGridDownloadVisible && this.showExcell) {
1988
2000
  this.addEventListener('wcDownloadExcel', this.downloadIconClicked, 'CSV');
1989
2001
  }
1990
2002
  document.getElementById('ra-db-widget-menu').addEventListener('mouseenter', (/**
@@ -2057,12 +2069,14 @@ class RAWidgetContainer {
2057
2069
  html += this.getHr();
2058
2070
  }
2059
2071
  if (this.isDownloadIconVisible) {
2060
- if (this.detailPageUrl || this.isWidgetMgmnt)
2061
- html += '<span style="color: #9FA0A4;font-size: 12px;">';
2062
- else
2063
- html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
2064
- html += this.translateService.translate('Common.downloads');
2065
- html += '</span>';
2072
+ if (this.showExcell) {
2073
+ if (this.detailPageUrl || this.isWidgetMgmnt)
2074
+ html += '<span style="color: #9FA0A4;font-size: 12px;">';
2075
+ else
2076
+ html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
2077
+ html += this.translateService.translate('Common.downloads');
2078
+ html += '</span>';
2079
+ }
2066
2080
  if (this.isChartDownloadVisible) {
2067
2081
  html += '<div style="padding-top: 10px;" class="chartDownload">';
2068
2082
  html += this.getHtmlForButton('wcDownloadPng', 'fal fa-file-image', this.translateService.translate('Common.png'));
@@ -2071,13 +2085,13 @@ class RAWidgetContainer {
2071
2085
  html += this.getHtmlForButton('wcDownloadSvg', 'fal fa-file-alt', this.translateService.translate('Common.svg'));
2072
2086
  html += '</div>';
2073
2087
  }
2074
- if (this.isGridDownloadVisible) {
2088
+ if (this.isGridDownloadVisible && this.showExcell) {
2075
2089
  html += '<div class="gridDownload">';
2076
2090
  html += this.getHtmlForButton('wcDownloadExcel', 'fal fa-download', this.excelText);
2077
2091
  html += '</div>';
2078
2092
  }
2079
2093
  }
2080
- if (this.isDownloadIconVisible && this.isWidgetMgmnt) {
2094
+ if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
2081
2095
  html += this.getHr();
2082
2096
  }
2083
2097
  if (this.isWidgetMgmnt) {
@@ -2259,6 +2273,8 @@ if (false) {
2259
2273
  /** @type {?} */
2260
2274
  RAWidgetContainer.prototype.isKpiView;
2261
2275
  /** @type {?} */
2276
+ RAWidgetContainer.prototype.showExcell;
2277
+ /** @type {?} */
2262
2278
  RAWidgetContainer.prototype.ctlWidget;
2263
2279
  /** @type {?} */
2264
2280
  RAWidgetContainer.prototype.widgetDropdown;