@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.
@@ -1240,7 +1240,6 @@
1240
1240
  */
1241
1241
  function (widgetInstanceId, isalertDisabled) {
1242
1242
  if (isalertDisabled === void 0) { isalertDisabled = false; }
1243
- debugger;
1244
1243
  console.log("goCorona");
1245
1244
  /** @type {?} */
1246
1245
  var widget = this.widgetList.filter((/**
@@ -1625,7 +1624,19 @@
1625
1624
  }));
1626
1625
  }
1627
1626
  if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
1628
- this.refreshWidget(this.data.widgetInfo);
1627
+ /** @type {?} */
1628
+ var filterObj = this.getParsedConfig(this.globalFilter);
1629
+ console.log('================================');
1630
+ console.log(this.globalFilter);
1631
+ console.log(filterObj);
1632
+ console.log(this.data.widgetInfo.widgetInstanceId);
1633
+ if (filterObj.WidgetInstanceId) {
1634
+ if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
1635
+ this.refreshWidget(this.data.widgetInfo);
1636
+ }
1637
+ else {
1638
+ this.refreshWidget(this.data.widgetInfo);
1639
+ }
1629
1640
  }
1630
1641
  if (changes.width && changes.width.currentValue != changes.width.previousValue ||
1631
1642
  (changes.height && changes.height.currentValue != changes.height.previousValue)) {
@@ -2148,6 +2159,32 @@
2148
2159
  }
2149
2160
  this.isDownloadChartVisible = false;
2150
2161
  };
2162
+ /**
2163
+ * @private
2164
+ * @param {?} config
2165
+ * @return {?}
2166
+ */
2167
+ RAWidgetContainer.prototype.getParsedConfig = /**
2168
+ * @private
2169
+ * @param {?} config
2170
+ * @return {?}
2171
+ */
2172
+ function (config) {
2173
+ /** @type {?} */
2174
+ var parsedConfig;
2175
+ if (config) {
2176
+ if (typeof config === 'string') {
2177
+ try {
2178
+ parsedConfig = JSON.parse(config);
2179
+ }
2180
+ catch (_a) {
2181
+ parsedConfig = {};
2182
+ }
2183
+ return parsedConfig;
2184
+ }
2185
+ }
2186
+ return config;
2187
+ };
2151
2188
  RAWidgetContainer.decorators = [
2152
2189
  { type: core.Component, args: [{
2153
2190
  selector: 'ra-widget-container',