@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.
- package/bundles/schneideress-dashboardframework.umd.js +27 -11
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +20 -11
- package/esm2015/lib/ra.dashboard.responsive.service.js +9 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +20 -11
- package/esm5/lib/ra.dashboard.responsive.service.js +9 -2
- package/fesm2015/schneideress-dashboardframework.js +27 -11
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +27 -11
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +1 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -702,7 +702,14 @@
|
|
|
702
702
|
* @return {?}
|
|
703
703
|
*/
|
|
704
704
|
function () {
|
|
705
|
-
|
|
705
|
+
/** @type {?} */
|
|
706
|
+
var context = _this;
|
|
707
|
+
setTimeout((/**
|
|
708
|
+
* @return {?}
|
|
709
|
+
*/
|
|
710
|
+
function () {
|
|
711
|
+
context.setScreenWidth();
|
|
712
|
+
}), 1500);
|
|
706
713
|
}));
|
|
707
714
|
}
|
|
708
715
|
/**
|
|
@@ -1822,6 +1829,7 @@
|
|
|
1822
1829
|
this.isMouseHover = false;
|
|
1823
1830
|
this.showSettingsLink = true;
|
|
1824
1831
|
this.isKpiView = false;
|
|
1832
|
+
this.showExcell = true;
|
|
1825
1833
|
this.widgetDeleted = new core.EventEmitter();
|
|
1826
1834
|
this.isWidgetStateApplicable = false;
|
|
1827
1835
|
this.widgetEmptyState = '';
|
|
@@ -1919,7 +1927,6 @@
|
|
|
1919
1927
|
* @return {?}
|
|
1920
1928
|
*/
|
|
1921
1929
|
function () {
|
|
1922
|
-
console.log('in invoke widget resized event');
|
|
1923
1930
|
if (this.widgetElement) {
|
|
1924
1931
|
/** @type {?} */
|
|
1925
1932
|
var size = {};
|
|
@@ -2523,6 +2530,7 @@
|
|
|
2523
2530
|
this.isDownloadIconVisible = false;
|
|
2524
2531
|
this.isChartDownloadVisible = false;
|
|
2525
2532
|
this.isGridDownloadVisible = false;
|
|
2533
|
+
this.showExcell = true;
|
|
2526
2534
|
if (downloadType != widgetframework.RADownloadType.None) {
|
|
2527
2535
|
this.isDownloadIconVisible = true;
|
|
2528
2536
|
}
|
|
@@ -2537,6 +2545,10 @@
|
|
|
2537
2545
|
if (downloadType == widgetframework.RADownloadType.Grid) {
|
|
2538
2546
|
this.isGridDownloadVisible = true;
|
|
2539
2547
|
}
|
|
2548
|
+
if (downloadType == widgetframework.RADownloadType.Statistics) {
|
|
2549
|
+
this.isGridDownloadVisible = true;
|
|
2550
|
+
this.showExcell = false;
|
|
2551
|
+
}
|
|
2540
2552
|
return [2 /*return*/];
|
|
2541
2553
|
}
|
|
2542
2554
|
});
|
|
@@ -2621,7 +2633,7 @@
|
|
|
2621
2633
|
_this.addEventListener('wcDownloadPdf', _this.downloadIconClicked, 'PDF');
|
|
2622
2634
|
_this.addEventListener('wcDownloadSvg', _this.downloadIconClicked, 'SVG');
|
|
2623
2635
|
}
|
|
2624
|
-
if (_this.isGridDownloadVisible) {
|
|
2636
|
+
if (_this.isGridDownloadVisible && _this.showExcell) {
|
|
2625
2637
|
_this.addEventListener('wcDownloadExcel', _this.downloadIconClicked, 'CSV');
|
|
2626
2638
|
}
|
|
2627
2639
|
document.getElementById('ra-db-widget-menu').addEventListener('mouseenter', (/**
|
|
@@ -2707,12 +2719,14 @@
|
|
|
2707
2719
|
html += this.getHr();
|
|
2708
2720
|
}
|
|
2709
2721
|
if (this.isDownloadIconVisible) {
|
|
2710
|
-
if (this.
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2722
|
+
if (this.showExcell) {
|
|
2723
|
+
if (this.detailPageUrl || this.isWidgetMgmnt)
|
|
2724
|
+
html += '<span style="color: #9FA0A4;font-size: 12px;">';
|
|
2725
|
+
else
|
|
2726
|
+
html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
|
|
2727
|
+
html += this.translateService.translate('Common.downloads');
|
|
2728
|
+
html += '</span>';
|
|
2729
|
+
}
|
|
2716
2730
|
if (this.isChartDownloadVisible) {
|
|
2717
2731
|
html += '<div style="padding-top: 10px;" class="chartDownload">';
|
|
2718
2732
|
html += this.getHtmlForButton('wcDownloadPng', 'fal fa-file-image', this.translateService.translate('Common.png'));
|
|
@@ -2721,13 +2735,13 @@
|
|
|
2721
2735
|
html += this.getHtmlForButton('wcDownloadSvg', 'fal fa-file-alt', this.translateService.translate('Common.svg'));
|
|
2722
2736
|
html += '</div>';
|
|
2723
2737
|
}
|
|
2724
|
-
if (this.isGridDownloadVisible) {
|
|
2738
|
+
if (this.isGridDownloadVisible && this.showExcell) {
|
|
2725
2739
|
html += '<div class="gridDownload">';
|
|
2726
2740
|
html += this.getHtmlForButton('wcDownloadExcel', 'fal fa-download', this.excelText);
|
|
2727
2741
|
html += '</div>';
|
|
2728
2742
|
}
|
|
2729
2743
|
}
|
|
2730
|
-
if (this.isDownloadIconVisible && this.isWidgetMgmnt) {
|
|
2744
|
+
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
2731
2745
|
html += this.getHr();
|
|
2732
2746
|
}
|
|
2733
2747
|
if (this.isWidgetMgmnt) {
|
|
@@ -2931,6 +2945,8 @@
|
|
|
2931
2945
|
/** @type {?} */
|
|
2932
2946
|
RAWidgetContainer.prototype.isKpiView;
|
|
2933
2947
|
/** @type {?} */
|
|
2948
|
+
RAWidgetContainer.prototype.showExcell;
|
|
2949
|
+
/** @type {?} */
|
|
2934
2950
|
RAWidgetContainer.prototype.ctlWidget;
|
|
2935
2951
|
/** @type {?} */
|
|
2936
2952
|
RAWidgetContainer.prototype.widgetDropdown;
|