@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
|
@@ -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
|
}
|
|
@@ -2582,6 +2580,22 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2582
2580
|
function () {
|
|
2583
2581
|
jQuery('#ra-db-widget-menu').remove();
|
|
2584
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
|
+
};
|
|
2585
2599
|
/**Show dropdown on gear icon click */
|
|
2586
2600
|
/**
|
|
2587
2601
|
* Show dropdown on gear icon click
|
|
@@ -2608,7 +2622,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2608
2622
|
/** @type {?} */
|
|
2609
2623
|
var html = _this.getContenxtHtml(style);
|
|
2610
2624
|
jQuery(html).appendTo('body');
|
|
2611
|
-
if (_this.isWidgetMgmnt
|
|
2625
|
+
if (_this.isWidgetMgmnt) {
|
|
2612
2626
|
_this.addEventListener('wcEditWidget', _this.editWidget);
|
|
2613
2627
|
_this.addEventListener('wcCopyWidget', _this.copyWidget);
|
|
2614
2628
|
_this.addEventListener('wcMoveWidget', _this.moveWidget);
|
|
@@ -2622,7 +2636,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2622
2636
|
customPageParams = true;
|
|
2623
2637
|
}
|
|
2624
2638
|
}
|
|
2625
|
-
if (_this.detailPageUrl || customPageParams) {
|
|
2639
|
+
if ((_this.detailPageUrl || customPageParams) && _this.checkVisitLinkVisiblity()) {
|
|
2626
2640
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2627
2641
|
}
|
|
2628
2642
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2698,7 +2712,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2698
2712
|
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
2713
|
/** @type {?} */
|
|
2700
2714
|
var settings = '';
|
|
2701
|
-
if (this.isWidgetMgmnt
|
|
2715
|
+
if (this.isWidgetMgmnt) {
|
|
2702
2716
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
2703
2717
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
2704
2718
|
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
@@ -2711,14 +2725,14 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2711
2725
|
customPageParams = true;
|
|
2712
2726
|
}
|
|
2713
2727
|
}
|
|
2714
|
-
if (this.detailPageUrl || customPageParams) {
|
|
2728
|
+
if ((this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
2715
2729
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
2716
2730
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
2717
2731
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
2718
2732
|
settings += this.translateService.translate('Common.visitpage');
|
|
2719
2733
|
settings += '</span></a>';
|
|
2720
2734
|
}
|
|
2721
|
-
if (this.detailPageUrl
|
|
2735
|
+
if ((this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
2722
2736
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
2723
2737
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
2724
2738
|
html += settings;
|
|
@@ -2726,7 +2740,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2726
2740
|
}
|
|
2727
2741
|
if (this.isDownloadIconVisible) {
|
|
2728
2742
|
if (this.showExcell) {
|
|
2729
|
-
if (this.detailPageUrl ||
|
|
2743
|
+
if (this.detailPageUrl || this.isWidgetMgmnt)
|
|
2730
2744
|
html += '<span style="color: #9FA0A4;font-size: 12px;">';
|
|
2731
2745
|
else
|
|
2732
2746
|
html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
|
|
@@ -2747,10 +2761,10 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2747
2761
|
html += '</div>';
|
|
2748
2762
|
}
|
|
2749
2763
|
}
|
|
2750
|
-
if (this.isDownloadIconVisible &&
|
|
2764
|
+
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
2751
2765
|
html += this.getHr();
|
|
2752
2766
|
}
|
|
2753
|
-
if (this.isWidgetMgmnt
|
|
2767
|
+
if (this.isWidgetMgmnt) {
|
|
2754
2768
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
2755
2769
|
html += this.deleteText;
|
|
2756
2770
|
html += '</span></a>';
|