@schneideress/dashboardframework 0.0.242 → 0.0.244
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 +25 -11
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +2 -2
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +22 -12
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +26 -12
- package/fesm2015/schneideress-dashboardframework.js +21 -11
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +25 -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
|
@@ -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
|
}
|
|
@@ -2793,6 +2791,22 @@
|
|
|
2793
2791
|
function () {
|
|
2794
2792
|
jQuery('#ra-db-widget-menu').remove();
|
|
2795
2793
|
};
|
|
2794
|
+
/**
|
|
2795
|
+
* @private
|
|
2796
|
+
* @return {?}
|
|
2797
|
+
*/
|
|
2798
|
+
RAWidgetContainer.prototype.checkVisitLinkVisiblity = /**
|
|
2799
|
+
* @private
|
|
2800
|
+
* @return {?}
|
|
2801
|
+
*/
|
|
2802
|
+
function () {
|
|
2803
|
+
/** @type {?} */
|
|
2804
|
+
var isVisitApplicable = true;
|
|
2805
|
+
if (this.widgetElement && typeof this.widgetElement.getVisitLinkVisibilityStatus === "function") {
|
|
2806
|
+
isVisitApplicable = this.widgetElement.getVisitLinkVisibilityStatus();
|
|
2807
|
+
}
|
|
2808
|
+
return isVisitApplicable;
|
|
2809
|
+
};
|
|
2796
2810
|
/**Show dropdown on gear icon click */
|
|
2797
2811
|
/**
|
|
2798
2812
|
* Show dropdown on gear icon click
|
|
@@ -2819,7 +2833,7 @@
|
|
|
2819
2833
|
/** @type {?} */
|
|
2820
2834
|
var html = _this.getContenxtHtml(style);
|
|
2821
2835
|
jQuery(html).appendTo('body');
|
|
2822
|
-
if (_this.isWidgetMgmnt
|
|
2836
|
+
if (_this.isWidgetMgmnt) {
|
|
2823
2837
|
_this.addEventListener('wcEditWidget', _this.editWidget);
|
|
2824
2838
|
_this.addEventListener('wcCopyWidget', _this.copyWidget);
|
|
2825
2839
|
_this.addEventListener('wcMoveWidget', _this.moveWidget);
|
|
@@ -2833,7 +2847,7 @@
|
|
|
2833
2847
|
customPageParams = true;
|
|
2834
2848
|
}
|
|
2835
2849
|
}
|
|
2836
|
-
if (_this.detailPageUrl || customPageParams) {
|
|
2850
|
+
if ((_this.detailPageUrl || customPageParams) && _this.checkVisitLinkVisiblity()) {
|
|
2837
2851
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2838
2852
|
}
|
|
2839
2853
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2909,7 +2923,7 @@
|
|
|
2909
2923
|
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
2924
|
/** @type {?} */
|
|
2911
2925
|
var settings = '';
|
|
2912
|
-
if (this.isWidgetMgmnt
|
|
2926
|
+
if (this.isWidgetMgmnt) {
|
|
2913
2927
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
2914
2928
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
2915
2929
|
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
@@ -2922,14 +2936,14 @@
|
|
|
2922
2936
|
customPageParams = true;
|
|
2923
2937
|
}
|
|
2924
2938
|
}
|
|
2925
|
-
if (this.detailPageUrl || customPageParams) {
|
|
2939
|
+
if ((this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
2926
2940
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
2927
2941
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
2928
2942
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
2929
2943
|
settings += this.translateService.translate('Common.visitpage');
|
|
2930
2944
|
settings += '</span></a>';
|
|
2931
2945
|
}
|
|
2932
|
-
if (this.detailPageUrl
|
|
2946
|
+
if ((this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
2933
2947
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
2934
2948
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
2935
2949
|
html += settings;
|
|
@@ -2937,7 +2951,7 @@
|
|
|
2937
2951
|
}
|
|
2938
2952
|
if (this.isDownloadIconVisible) {
|
|
2939
2953
|
if (this.showExcell) {
|
|
2940
|
-
if (this.detailPageUrl ||
|
|
2954
|
+
if (this.detailPageUrl || this.isWidgetMgmnt)
|
|
2941
2955
|
html += '<span style="color: #9FA0A4;font-size: 12px;">';
|
|
2942
2956
|
else
|
|
2943
2957
|
html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
|
|
@@ -2958,10 +2972,10 @@
|
|
|
2958
2972
|
html += '</div>';
|
|
2959
2973
|
}
|
|
2960
2974
|
}
|
|
2961
|
-
if (this.isDownloadIconVisible &&
|
|
2975
|
+
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
2962
2976
|
html += this.getHr();
|
|
2963
2977
|
}
|
|
2964
|
-
if (this.isWidgetMgmnt
|
|
2978
|
+
if (this.isWidgetMgmnt) {
|
|
2965
2979
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
2966
2980
|
html += this.deleteText;
|
|
2967
2981
|
html += '</span></a>';
|