@schneideress/dashboardframework 0.0.243 → 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 +19 -8
- 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 +16 -9
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +20 -9
- package/fesm2015/schneideress-dashboardframework.js +15 -8
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +19 -8
- 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
|
@@ -2791,6 +2791,22 @@
|
|
|
2791
2791
|
function () {
|
|
2792
2792
|
jQuery('#ra-db-widget-menu').remove();
|
|
2793
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
|
+
};
|
|
2794
2810
|
/**Show dropdown on gear icon click */
|
|
2795
2811
|
/**
|
|
2796
2812
|
* Show dropdown on gear icon click
|
|
@@ -2831,12 +2847,7 @@
|
|
|
2831
2847
|
customPageParams = true;
|
|
2832
2848
|
}
|
|
2833
2849
|
}
|
|
2834
|
-
|
|
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) {
|
|
2850
|
+
if ((_this.detailPageUrl || customPageParams) && _this.checkVisitLinkVisiblity()) {
|
|
2840
2851
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2841
2852
|
}
|
|
2842
2853
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2925,14 +2936,14 @@
|
|
|
2925
2936
|
customPageParams = true;
|
|
2926
2937
|
}
|
|
2927
2938
|
}
|
|
2928
|
-
if (this.detailPageUrl || customPageParams) {
|
|
2939
|
+
if ((this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
2929
2940
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
2930
2941
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
2931
2942
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
2932
2943
|
settings += this.translateService.translate('Common.visitpage');
|
|
2933
2944
|
settings += '</span></a>';
|
|
2934
2945
|
}
|
|
2935
|
-
if (this.detailPageUrl || this.isWidgetMgmnt) {
|
|
2946
|
+
if ((this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
2936
2947
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
2937
2948
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
2938
2949
|
html += settings;
|