@schneideress/dashboardframework 0.0.180 → 0.0.182

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.
@@ -1845,7 +1845,7 @@
1845
1845
  function () {
1846
1846
  /** @type {?} */
1847
1847
  var widgetConfigFilter;
1848
- if (this.widgetElement) {
1848
+ if (this.widgetElement && typeof (this.widgetElement.getConfigFilter) == 'function') {
1849
1849
  /** @type {?} */
1850
1850
  var configData = this.widgetElement.getConfigFilter();
1851
1851
  if (configData) {
@@ -1958,9 +1958,12 @@
1958
1958
  if (this.gridCellHeight > 0) {
1959
1959
  this.data.widgetInfo.rowHeight = this.gridCellHeight;
1960
1960
  }
1961
- if (this.widgetElement) {
1961
+ if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
1962
1962
  this.widgetElement.setConfigFilter(this.generateConfigFilter(true));
1963
1963
  }
1964
+ else {
1965
+ console.warn('widget framework outdated, please update to version 0.0.98');
1966
+ }
1964
1967
  this.refreshWidget(this.data.widgetInfo, true);
1965
1968
  };
1966
1969
  /**
@@ -2227,6 +2230,9 @@
2227
2230
  console.log('wiget container filter data is');
2228
2231
  console.log(widgetConfigFilter);
2229
2232
  if (!widgetContainerContext.isWidgetLoaded) return [3 /*break*/, 3];
2233
+ if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
2234
+ widgetContainerContext.widgetElement.setConfigFilter(widgetConfigFilter);
2235
+ }
2230
2236
  widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
2231
2237
  return [4 /*yield*/, this.setLock(widgetConfigFilter.config)];
2232
2238
  case 1: