@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
|
@@ -2293,8 +2293,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2293
2293
|
widgetConfigFilter.widgetInfo = widgetInfo;
|
|
2294
2294
|
widgetConfigFilter.configChanges = this.getConfigChanges(false);
|
|
2295
2295
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
2296
|
-
widgetConfigFilter.widgetInfo.isPortfolioClientDB = widgetInfo.isPortfolioClientDB;
|
|
2297
|
-
widgetConfigFilter.widgetInfo.isPortfolioDashboard = widgetInfo.isPortfolioDashboard;
|
|
2298
2296
|
widgetConfigFilter.globalFilter = this.globalFilter;
|
|
2299
2297
|
this.widgetElement.loadContent(widgetConfigFilter);
|
|
2300
2298
|
return [4 /*yield*/, this.setLock(widgetConfigFilter.config)];
|
|
@@ -2525,7 +2523,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2525
2523
|
this.isDownloadIconVisible = true;
|
|
2526
2524
|
}
|
|
2527
2525
|
else {
|
|
2528
|
-
if (
|
|
2526
|
+
if (!this.isWidgetMgmnt && !this.detailPageUrl) {
|
|
2529
2527
|
this.showSettingsLink = false;
|
|
2530
2528
|
}
|
|
2531
2529
|
}
|
|
@@ -2608,7 +2606,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2608
2606
|
/** @type {?} */
|
|
2609
2607
|
var html = _this.getContenxtHtml(style);
|
|
2610
2608
|
jQuery(html).appendTo('body');
|
|
2611
|
-
if (_this.isWidgetMgmnt
|
|
2609
|
+
if (_this.isWidgetMgmnt) {
|
|
2612
2610
|
_this.addEventListener('wcEditWidget', _this.editWidget);
|
|
2613
2611
|
_this.addEventListener('wcCopyWidget', _this.copyWidget);
|
|
2614
2612
|
_this.addEventListener('wcMoveWidget', _this.moveWidget);
|
|
@@ -2622,7 +2620,12 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2622
2620
|
customPageParams = true;
|
|
2623
2621
|
}
|
|
2624
2622
|
}
|
|
2625
|
-
|
|
2623
|
+
/** @type {?} */
|
|
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) {
|
|
2626
2629
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2627
2630
|
}
|
|
2628
2631
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2698,7 +2701,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2698
2701
|
var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
|
|
2699
2702
|
/** @type {?} */
|
|
2700
2703
|
var settings = '';
|
|
2701
|
-
if (this.isWidgetMgmnt
|
|
2704
|
+
if (this.isWidgetMgmnt) {
|
|
2702
2705
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
2703
2706
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
2704
2707
|
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
@@ -2718,7 +2721,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2718
2721
|
settings += this.translateService.translate('Common.visitpage');
|
|
2719
2722
|
settings += '</span></a>';
|
|
2720
2723
|
}
|
|
2721
|
-
if (this.detailPageUrl ||
|
|
2724
|
+
if (this.detailPageUrl || this.isWidgetMgmnt) {
|
|
2722
2725
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
2723
2726
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
2724
2727
|
html += settings;
|
|
@@ -2726,7 +2729,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2726
2729
|
}
|
|
2727
2730
|
if (this.isDownloadIconVisible) {
|
|
2728
2731
|
if (this.showExcell) {
|
|
2729
|
-
if (this.detailPageUrl ||
|
|
2732
|
+
if (this.detailPageUrl || this.isWidgetMgmnt)
|
|
2730
2733
|
html += '<span style="color: #9FA0A4;font-size: 12px;">';
|
|
2731
2734
|
else
|
|
2732
2735
|
html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
|
|
@@ -2747,10 +2750,10 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2747
2750
|
html += '</div>';
|
|
2748
2751
|
}
|
|
2749
2752
|
}
|
|
2750
|
-
if (this.isDownloadIconVisible &&
|
|
2753
|
+
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
2751
2754
|
html += this.getHr();
|
|
2752
2755
|
}
|
|
2753
|
-
if (this.isWidgetMgmnt
|
|
2756
|
+
if (this.isWidgetMgmnt) {
|
|
2754
2757
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
2755
2758
|
html += this.deleteText;
|
|
2756
2759
|
html += '</span></a>';
|