@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.
- package/bundles/schneideress-dashboardframework.umd.js +19 -6
- 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 +20 -7
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +20 -7
- package/fesm2015/schneideress-dashboardframework.js +19 -6
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +19 -6
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -2080,8 +2080,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2080
2080
|
*/
|
|
2081
2081
|
function () {
|
|
2082
2082
|
this.baseUrl = this.getHostUrl();
|
|
2083
|
-
if (this.data.widgetInfo.widgetType == 'AV Widget')
|
|
2084
|
-
this.baseUrl = '';
|
|
2085
2083
|
/** @type {?} */
|
|
2086
2084
|
var url = this.baseUrl + this.detailPageUrl;
|
|
2087
2085
|
if (this.data.widgetInfo && this.data.widgetInfo.widgetSettings) {
|
|
@@ -2211,7 +2209,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2211
2209
|
return __generator(this, function (_a) {
|
|
2212
2210
|
switch (_a.label) {
|
|
2213
2211
|
case 0:
|
|
2214
|
-
console.log('widget inititated listener triggered');
|
|
2215
2212
|
this.widgetElement.addEventListener('on-widget-respond', (/**
|
|
2216
2213
|
* @param {?} e
|
|
2217
2214
|
* @return {?}
|
|
@@ -2615,7 +2612,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2615
2612
|
_this.addEventListener('wcMoveWidget', _this.moveWidget);
|
|
2616
2613
|
_this.addEventListener('wcWidgetDelete', _this.deleteWidget);
|
|
2617
2614
|
}
|
|
2618
|
-
|
|
2615
|
+
/** @type {?} */
|
|
2616
|
+
var customPageParams = false;
|
|
2617
|
+
if (_this.data.widgetInfo && _this.data.widgetInfo.widgetSettings) {
|
|
2618
|
+
_this.widgetSettings = _this.getParsedConfig(_this.data.widgetInfo.widgetSettings);
|
|
2619
|
+
if (_this.widgetSettings.customPageParams) {
|
|
2620
|
+
customPageParams = true;
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
if (_this.detailPageUrl || customPageParams) {
|
|
2619
2624
|
_this.addEventListener('wcVisitWidget', _this.visitPage);
|
|
2620
2625
|
}
|
|
2621
2626
|
if (_this.isChartDownloadVisible) {
|
|
@@ -2696,7 +2701,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2696
2701
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
2697
2702
|
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
2698
2703
|
}
|
|
2699
|
-
|
|
2704
|
+
/** @type {?} */
|
|
2705
|
+
var customPageParams = false;
|
|
2706
|
+
if (this.data.widgetInfo && this.data.widgetInfo.widgetSettings) {
|
|
2707
|
+
this.widgetSettings = this.getParsedConfig(this.data.widgetInfo.widgetSettings);
|
|
2708
|
+
if (this.widgetSettings.customPageParams) {
|
|
2709
|
+
customPageParams = true;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
if (this.detailPageUrl || customPageParams) {
|
|
2700
2713
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
2701
2714
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
2702
2715
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
@@ -2844,7 +2857,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2844
2857
|
if (element == 'dateRange')
|
|
2845
2858
|
_this.inapplicableFilters.push(_this.translateService.translate('Common.DateRange'));
|
|
2846
2859
|
else if (element == 'participant') {
|
|
2847
|
-
_this.inapplicableFilters.push(_this.translateService.translate('Common.
|
|
2860
|
+
_this.inapplicableFilters.push(_this.translateService.translate('Common.DivisionGroup'));
|
|
2848
2861
|
}
|
|
2849
2862
|
else if (element == 'source')
|
|
2850
2863
|
_this.inapplicableFilters.push(_this.translateService.translate('Common.DataStream'));
|