@schneideress/dashboardframework 0.0.237 → 0.0.239

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.
@@ -2291,8 +2291,6 @@
2291
2291
  */
2292
2292
  function () {
2293
2293
  this.baseUrl = this.getHostUrl();
2294
- if (this.data.widgetInfo.widgetType == 'AV Widget')
2295
- this.baseUrl = '';
2296
2294
  /** @type {?} */
2297
2295
  var url = this.baseUrl + this.detailPageUrl;
2298
2296
  if (this.data.widgetInfo && this.data.widgetInfo.widgetSettings) {
@@ -2422,7 +2420,6 @@
2422
2420
  return __generator(this, function (_a) {
2423
2421
  switch (_a.label) {
2424
2422
  case 0:
2425
- console.log('widget inititated listener triggered');
2426
2423
  this.widgetElement.addEventListener('on-widget-respond', (/**
2427
2424
  * @param {?} e
2428
2425
  * @return {?}
@@ -2826,7 +2823,15 @@
2826
2823
  _this.addEventListener('wcMoveWidget', _this.moveWidget);
2827
2824
  _this.addEventListener('wcWidgetDelete', _this.deleteWidget);
2828
2825
  }
2829
- if (_this.detailPageUrl) {
2826
+ /** @type {?} */
2827
+ var customPageParams = false;
2828
+ if (_this.data.widgetInfo && _this.data.widgetInfo.widgetSettings) {
2829
+ _this.widgetSettings = _this.getParsedConfig(_this.data.widgetInfo.widgetSettings);
2830
+ if (_this.widgetSettings.customPageParams) {
2831
+ customPageParams = true;
2832
+ }
2833
+ }
2834
+ if (_this.detailPageUrl || customPageParams) {
2830
2835
  _this.addEventListener('wcVisitWidget', _this.visitPage);
2831
2836
  }
2832
2837
  if (_this.isChartDownloadVisible) {
@@ -2907,7 +2912,15 @@
2907
2912
  settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2908
2913
  settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
2909
2914
  }
2910
- if (this.detailPageUrl) {
2915
+ /** @type {?} */
2916
+ var customPageParams = false;
2917
+ if (this.data.widgetInfo && this.data.widgetInfo.widgetSettings) {
2918
+ this.widgetSettings = this.getParsedConfig(this.data.widgetInfo.widgetSettings);
2919
+ if (this.widgetSettings.customPageParams) {
2920
+ customPageParams = true;
2921
+ }
2922
+ }
2923
+ if (this.detailPageUrl || customPageParams) {
2911
2924
  settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
2912
2925
  settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
2913
2926
  settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
@@ -3055,7 +3068,7 @@
3055
3068
  if (element == 'dateRange')
3056
3069
  _this.inapplicableFilters.push(_this.translateService.translate('Common.DateRange'));
3057
3070
  else if (element == 'participant') {
3058
- _this.inapplicableFilters.push(_this.translateService.translate('Common.DivisionOrGrouporSite'));
3071
+ _this.inapplicableFilters.push(_this.translateService.translate('Common.DivisionGroup'));
3059
3072
  }
3060
3073
  else if (element == 'source')
3061
3074
  _this.inapplicableFilters.push(_this.translateService.translate('Common.DataStream'));