@schneideress/dashboardframework 0.0.242 → 0.0.243
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 +13 -10
- 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 +14 -11
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +14 -11
- package/fesm2015/schneideress-dashboardframework.js +13 -10
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +13 -10
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -2504,8 +2504,6 @@
|
|
|
2504
2504
|
widgetConfigFilter.widgetInfo = widgetInfo;
|
|
2505
2505
|
widgetConfigFilter.configChanges = this.getConfigChanges(false);
|
|
2506
2506
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
2507
|
-
widgetConfigFilter.widgetInfo.isPortfolioClientDB = widgetInfo.isPortfolioClientDB;
|
|
2508
|
-
widgetConfigFilter.widgetInfo.isPortfolioDashboard = widgetInfo.isPortfolioDashboard;
|
|
2509
2507
|
widgetConfigFilter.globalFilter = this.globalFilter;
|
|
2510
2508
|
this.widgetElement.loadContent(widgetConfigFilter);
|
|
2511
2509
|
return [4 /*yield*/, this.setLock(widgetConfigFilter.config)];
|
|
@@ -2736,7 +2734,7 @@
|
|
|
2736
2734
|
this.isDownloadIconVisible = true;
|
|
2737
2735
|
}
|
|
2738
2736
|
else {
|
|
2739
|
-
if (
|
|
2737
|
+
if (!this.isWidgetMgmnt && !this.detailPageUrl) {
|
|
2740
2738
|
this.showSettingsLink = false;
|
|
2741
2739
|
}
|
|
2742
2740
|
}
|
|
@@ -2819,7 +2817,7 @@
|
|
|
2819
2817
|
/** @type {?} */
|
|
2820
2818
|
var html = _this.getContenxtHtml(style);
|
|
2821
2819
|
jQuery(html).appendTo('body');
|
|
2822
|
-
if (_this.isWidgetMgmnt
|
|
2820
|
+
if (_this.isWidgetMgmnt) {
|
|
2823
2821
|
_this.addEventListener('wcEditWidget', _this.editWidget);
|
|
2824
2822
|
_this.addEventListener('wcCopyWidget', _this.copyWidget);
|
|
2825
2823
|
_this.addEventListener('wcMoveWidget', _this.moveWidget);
|
|
@@ -2833,7 +2831,12 @@
|
|
|
2833
2831
|
customPageParams = true;
|
|
2834
2832
|
}
|
|
2835
2833
|
}
|
|
2836
|
-
|
|
2834
|
+
/** @type {?} */
|
|
2835
|
+
var isVisitApplicable = true;
|
|
2836
|
+
if (_this.widgetElement && typeof _this.widgetElement.getVisitLinkVisibilityStatus === "function") {
|
|
2837
|
+
isVisitApplicable = _this.widgetElement.getVisitLinkVisibilityStatus();
|
|
2838
|
+
}
|
|
2839
|
+
if ((_this.detailPageUrl || customPageParams) && isVisitApplicable) {
|
|
2837
2840
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2838
2841
|
}
|
|
2839
2842
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2909,7 +2912,7 @@
|
|
|
2909
2912
|
var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
|
|
2910
2913
|
/** @type {?} */
|
|
2911
2914
|
var settings = '';
|
|
2912
|
-
if (this.isWidgetMgmnt
|
|
2915
|
+
if (this.isWidgetMgmnt) {
|
|
2913
2916
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
2914
2917
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
2915
2918
|
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
@@ -2929,7 +2932,7 @@
|
|
|
2929
2932
|
settings += this.translateService.translate('Common.visitpage');
|
|
2930
2933
|
settings += '</span></a>';
|
|
2931
2934
|
}
|
|
2932
|
-
if (this.detailPageUrl ||
|
|
2935
|
+
if (this.detailPageUrl || this.isWidgetMgmnt) {
|
|
2933
2936
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
2934
2937
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
2935
2938
|
html += settings;
|
|
@@ -2937,7 +2940,7 @@
|
|
|
2937
2940
|
}
|
|
2938
2941
|
if (this.isDownloadIconVisible) {
|
|
2939
2942
|
if (this.showExcell) {
|
|
2940
|
-
if (this.detailPageUrl ||
|
|
2943
|
+
if (this.detailPageUrl || this.isWidgetMgmnt)
|
|
2941
2944
|
html += '<span style="color: #9FA0A4;font-size: 12px;">';
|
|
2942
2945
|
else
|
|
2943
2946
|
html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
|
|
@@ -2958,10 +2961,10 @@
|
|
|
2958
2961
|
html += '</div>';
|
|
2959
2962
|
}
|
|
2960
2963
|
}
|
|
2961
|
-
if (this.isDownloadIconVisible &&
|
|
2964
|
+
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
2962
2965
|
html += this.getHr();
|
|
2963
2966
|
}
|
|
2964
|
-
if (this.isWidgetMgmnt
|
|
2967
|
+
if (this.isWidgetMgmnt) {
|
|
2965
2968
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
2966
2969
|
html += this.deleteText;
|
|
2967
2970
|
html += '</span></a>';
|