@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
|
@@ -2580,6 +2580,22 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2580
2580
|
function () {
|
|
2581
2581
|
jQuery('#ra-db-widget-menu').remove();
|
|
2582
2582
|
};
|
|
2583
|
+
/**
|
|
2584
|
+
* @private
|
|
2585
|
+
* @return {?}
|
|
2586
|
+
*/
|
|
2587
|
+
RAWidgetContainer.prototype.checkVisitLinkVisiblity = /**
|
|
2588
|
+
* @private
|
|
2589
|
+
* @return {?}
|
|
2590
|
+
*/
|
|
2591
|
+
function () {
|
|
2592
|
+
/** @type {?} */
|
|
2593
|
+
var isVisitApplicable = true;
|
|
2594
|
+
if (this.widgetElement && typeof this.widgetElement.getVisitLinkVisibilityStatus === "function") {
|
|
2595
|
+
isVisitApplicable = this.widgetElement.getVisitLinkVisibilityStatus();
|
|
2596
|
+
}
|
|
2597
|
+
return isVisitApplicable;
|
|
2598
|
+
};
|
|
2583
2599
|
/**Show dropdown on gear icon click */
|
|
2584
2600
|
/**
|
|
2585
2601
|
* Show dropdown on gear icon click
|
|
@@ -2620,12 +2636,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2620
2636
|
customPageParams = true;
|
|
2621
2637
|
}
|
|
2622
2638
|
}
|
|
2623
|
-
|
|
2624
|
-
var isVisitApplicable = true;
|
|
2625
|
-
if (_this.widgetElement && typeof _this.widgetElement.getVisitLinkVisibilityStatus === "function") {
|
|
2626
|
-
isVisitApplicable = _this.widgetElement.getVisitLinkVisibilityStatus();
|
|
2627
|
-
}
|
|
2628
|
-
if ((_this.detailPageUrl || customPageParams) && isVisitApplicable) {
|
|
2639
|
+
if ((_this.detailPageUrl || customPageParams) && _this.checkVisitLinkVisiblity()) {
|
|
2629
2640
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2630
2641
|
}
|
|
2631
2642
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2714,14 +2725,14 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2714
2725
|
customPageParams = true;
|
|
2715
2726
|
}
|
|
2716
2727
|
}
|
|
2717
|
-
if (this.detailPageUrl || customPageParams) {
|
|
2728
|
+
if ((this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
2718
2729
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
2719
2730
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
2720
2731
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
2721
2732
|
settings += this.translateService.translate('Common.visitpage');
|
|
2722
2733
|
settings += '</span></a>';
|
|
2723
2734
|
}
|
|
2724
|
-
if (this.detailPageUrl || this.isWidgetMgmnt) {
|
|
2735
|
+
if ((this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
2725
2736
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
2726
2737
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
2727
2738
|
html += settings;
|