@schneideress/dashboardframework 0.0.241 → 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.
@@ -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)];
@@ -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 && !_this.data.widgetInfo.isPortfolioClientDB) {
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
- if (_this.detailPageUrl || customPageParams) {
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 && !this.data.widgetInfo.isPortfolioClientDB) {
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);