@schneideress/dashboardframework 0.0.130 → 0.0.131
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 +35 -2
- 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-dashboard-area/ra.dashboard.area.js +1 -2
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +31 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +1 -2
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +36 -2
- package/fesm2015/schneideress-dashboardframework.js +30 -2
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +35 -2
- 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
|
@@ -1034,7 +1034,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1034
1034
|
*/
|
|
1035
1035
|
function (widgetInstanceId, isalertDisabled) {
|
|
1036
1036
|
if (isalertDisabled === void 0) { isalertDisabled = false; }
|
|
1037
|
-
debugger;
|
|
1038
1037
|
console.log("goCorona");
|
|
1039
1038
|
/** @type {?} */
|
|
1040
1039
|
var widget = this.widgetList.filter((/**
|
|
@@ -1419,7 +1418,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1419
1418
|
}));
|
|
1420
1419
|
}
|
|
1421
1420
|
if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
1422
|
-
|
|
1421
|
+
/** @type {?} */
|
|
1422
|
+
var filterObj = this.getParsedConfig(this.globalFilter);
|
|
1423
|
+
if (filterObj.WidgetInstanceId) {
|
|
1424
|
+
if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
|
|
1425
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1426
|
+
}
|
|
1427
|
+
else {
|
|
1428
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1429
|
+
}
|
|
1423
1430
|
}
|
|
1424
1431
|
if (changes.width && changes.width.currentValue != changes.width.previousValue ||
|
|
1425
1432
|
(changes.height && changes.height.currentValue != changes.height.previousValue)) {
|
|
@@ -1942,6 +1949,32 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1942
1949
|
}
|
|
1943
1950
|
this.isDownloadChartVisible = false;
|
|
1944
1951
|
};
|
|
1952
|
+
/**
|
|
1953
|
+
* @private
|
|
1954
|
+
* @param {?} config
|
|
1955
|
+
* @return {?}
|
|
1956
|
+
*/
|
|
1957
|
+
RAWidgetContainer.prototype.getParsedConfig = /**
|
|
1958
|
+
* @private
|
|
1959
|
+
* @param {?} config
|
|
1960
|
+
* @return {?}
|
|
1961
|
+
*/
|
|
1962
|
+
function (config) {
|
|
1963
|
+
/** @type {?} */
|
|
1964
|
+
var parsedConfig;
|
|
1965
|
+
if (config) {
|
|
1966
|
+
if (typeof config === 'string') {
|
|
1967
|
+
try {
|
|
1968
|
+
parsedConfig = JSON.parse(config);
|
|
1969
|
+
}
|
|
1970
|
+
catch (_a) {
|
|
1971
|
+
parsedConfig = {};
|
|
1972
|
+
}
|
|
1973
|
+
return parsedConfig;
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
return config;
|
|
1977
|
+
};
|
|
1945
1978
|
RAWidgetContainer.decorators = [
|
|
1946
1979
|
{ type: Component, args: [{
|
|
1947
1980
|
selector: 'ra-widget-container',
|