@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.
@@ -491,7 +491,14 @@ var RADashboardResponsiveService = /** @class */ (function () {
491
491
  * @return {?}
492
492
  */
493
493
  function () {
494
- _this.setScreenWidth();
494
+ /** @type {?} */
495
+ var context = _this;
496
+ setTimeout((/**
497
+ * @return {?}
498
+ */
499
+ function () {
500
+ context.setScreenWidth();
501
+ }), 1500);
495
502
  }));
496
503
  }
497
504
  /**
@@ -1611,6 +1618,7 @@ var RAWidgetContainer = /** @class */ (function () {
1611
1618
  this.isMouseHover = false;
1612
1619
  this.showSettingsLink = true;
1613
1620
  this.isKpiView = false;
1621
+ this.showExcell = true;
1614
1622
  this.widgetDeleted = new EventEmitter();
1615
1623
  this.isWidgetStateApplicable = false;
1616
1624
  this.widgetEmptyState = '';
@@ -1708,7 +1716,6 @@ var RAWidgetContainer = /** @class */ (function () {
1708
1716
  * @return {?}
1709
1717
  */
1710
1718
  function () {
1711
- console.log('in invoke widget resized event');
1712
1719
  if (this.widgetElement) {
1713
1720
  /** @type {?} */
1714
1721
  var size = {};
@@ -2312,6 +2319,7 @@ var RAWidgetContainer = /** @class */ (function () {
2312
2319
  this.isDownloadIconVisible = false;
2313
2320
  this.isChartDownloadVisible = false;
2314
2321
  this.isGridDownloadVisible = false;
2322
+ this.showExcell = true;
2315
2323
  if (downloadType != RADownloadType.None) {
2316
2324
  this.isDownloadIconVisible = true;
2317
2325
  }
@@ -2326,6 +2334,10 @@ var RAWidgetContainer = /** @class */ (function () {
2326
2334
  if (downloadType == RADownloadType.Grid) {
2327
2335
  this.isGridDownloadVisible = true;
2328
2336
  }
2337
+ if (downloadType == RADownloadType.Statistics) {
2338
+ this.isGridDownloadVisible = true;
2339
+ this.showExcell = false;
2340
+ }
2329
2341
  return [2 /*return*/];
2330
2342
  }
2331
2343
  });
@@ -2410,7 +2422,7 @@ var RAWidgetContainer = /** @class */ (function () {
2410
2422
  _this.addEventListener('wcDownloadPdf', _this.downloadIconClicked, 'PDF');
2411
2423
  _this.addEventListener('wcDownloadSvg', _this.downloadIconClicked, 'SVG');
2412
2424
  }
2413
- if (_this.isGridDownloadVisible) {
2425
+ if (_this.isGridDownloadVisible && _this.showExcell) {
2414
2426
  _this.addEventListener('wcDownloadExcel', _this.downloadIconClicked, 'CSV');
2415
2427
  }
2416
2428
  document.getElementById('ra-db-widget-menu').addEventListener('mouseenter', (/**
@@ -2496,12 +2508,14 @@ var RAWidgetContainer = /** @class */ (function () {
2496
2508
  html += this.getHr();
2497
2509
  }
2498
2510
  if (this.isDownloadIconVisible) {
2499
- if (this.detailPageUrl || this.isWidgetMgmnt)
2500
- html += '<span style="color: #9FA0A4;font-size: 12px;">';
2501
- else
2502
- html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
2503
- html += this.translateService.translate('Common.downloads');
2504
- html += '</span>';
2511
+ if (this.showExcell) {
2512
+ if (this.detailPageUrl || this.isWidgetMgmnt)
2513
+ html += '<span style="color: #9FA0A4;font-size: 12px;">';
2514
+ else
2515
+ html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
2516
+ html += this.translateService.translate('Common.downloads');
2517
+ html += '</span>';
2518
+ }
2505
2519
  if (this.isChartDownloadVisible) {
2506
2520
  html += '<div style="padding-top: 10px;" class="chartDownload">';
2507
2521
  html += this.getHtmlForButton('wcDownloadPng', 'fal fa-file-image', this.translateService.translate('Common.png'));
@@ -2510,13 +2524,13 @@ var RAWidgetContainer = /** @class */ (function () {
2510
2524
  html += this.getHtmlForButton('wcDownloadSvg', 'fal fa-file-alt', this.translateService.translate('Common.svg'));
2511
2525
  html += '</div>';
2512
2526
  }
2513
- if (this.isGridDownloadVisible) {
2527
+ if (this.isGridDownloadVisible && this.showExcell) {
2514
2528
  html += '<div class="gridDownload">';
2515
2529
  html += this.getHtmlForButton('wcDownloadExcel', 'fal fa-download', this.excelText);
2516
2530
  html += '</div>';
2517
2531
  }
2518
2532
  }
2519
- if (this.isDownloadIconVisible && this.isWidgetMgmnt) {
2533
+ if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
2520
2534
  html += this.getHr();
2521
2535
  }
2522
2536
  if (this.isWidgetMgmnt) {
@@ -2720,6 +2734,8 @@ if (false) {
2720
2734
  /** @type {?} */
2721
2735
  RAWidgetContainer.prototype.isKpiView;
2722
2736
  /** @type {?} */
2737
+ RAWidgetContainer.prototype.showExcell;
2738
+ /** @type {?} */
2723
2739
  RAWidgetContainer.prototype.ctlWidget;
2724
2740
  /** @type {?} */
2725
2741
  RAWidgetContainer.prototype.widgetDropdown;