@schneideress/dashboardframework 0.0.130 → 0.0.132

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.
@@ -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,19 @@ var RAWidgetContainer = /** @class */ (function () {
1419
1418
  }));
1420
1419
  }
1421
1420
  if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
1422
- this.refreshWidget(this.data.widgetInfo);
1421
+ /** @type {?} */
1422
+ var filterObj = this.getParsedConfig(this.globalFilter);
1423
+ console.log('================================');
1424
+ console.log(this.globalFilter);
1425
+ console.log(filterObj);
1426
+ console.log(this.data.widgetInfo.widgetInstanceId);
1427
+ if (filterObj.WidgetInstanceId) {
1428
+ if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
1429
+ this.refreshWidget(this.data.widgetInfo);
1430
+ }
1431
+ else {
1432
+ this.refreshWidget(this.data.widgetInfo);
1433
+ }
1423
1434
  }
1424
1435
  if (changes.width && changes.width.currentValue != changes.width.previousValue ||
1425
1436
  (changes.height && changes.height.currentValue != changes.height.previousValue)) {
@@ -1942,6 +1953,32 @@ var RAWidgetContainer = /** @class */ (function () {
1942
1953
  }
1943
1954
  this.isDownloadChartVisible = false;
1944
1955
  };
1956
+ /**
1957
+ * @private
1958
+ * @param {?} config
1959
+ * @return {?}
1960
+ */
1961
+ RAWidgetContainer.prototype.getParsedConfig = /**
1962
+ * @private
1963
+ * @param {?} config
1964
+ * @return {?}
1965
+ */
1966
+ function (config) {
1967
+ /** @type {?} */
1968
+ var parsedConfig;
1969
+ if (config) {
1970
+ if (typeof config === 'string') {
1971
+ try {
1972
+ parsedConfig = JSON.parse(config);
1973
+ }
1974
+ catch (_a) {
1975
+ parsedConfig = {};
1976
+ }
1977
+ return parsedConfig;
1978
+ }
1979
+ }
1980
+ return config;
1981
+ };
1945
1982
  RAWidgetContainer.decorators = [
1946
1983
  { type: Component, args: [{
1947
1984
  selector: 'ra-widget-container',