@schneideress/dashboardframework 0.0.30 → 0.0.31

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.
@@ -960,7 +960,7 @@
960
960
  RADashboardArea.decorators = [
961
961
  { type: core.Component, args: [{
962
962
  selector: 'ra-dashboard-area',
963
- template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n<!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
963
+ template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n<!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-width]=\"item.cols\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
964
964
  styles: ["gridster{width:inherit;resize:height;display:flex}gridster-item{background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
965
965
  }] }
966
966
  ];
@@ -1025,6 +1025,11 @@
1025
1025
  if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
1026
1026
  this.refreshWidget(this.data.widgetInfo);
1027
1027
  }
1028
+ if (changes.widgetWidth && changes.widgetWidth.currentValue != changes.widgetWidth.previousValue) {
1029
+ this.data.widgetInfo.isDimensionUpdate = true;
1030
+ this.refreshWidget(this.data.widgetInfo);
1031
+ this.data.widgetInfo.isDimensionUpdate = false;
1032
+ }
1028
1033
  };
1029
1034
  /**
1030
1035
  * @return {?}
@@ -1160,7 +1165,6 @@
1160
1165
  * @return {?}
1161
1166
  */
1162
1167
  function () {
1163
- console.log('widget initialized ' + widgetInfo.widgetInstanceId);
1164
1168
  widgetConfigFilter.appConfig = _this.appConfig;
1165
1169
  widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
1166
1170
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
@@ -1214,6 +1218,7 @@
1214
1218
  data: [{ type: core.Input, args: ['data',] }],
1215
1219
  raDashboardEventBus: [{ type: core.Input, args: ['event-bus',] }],
1216
1220
  appConfig: [{ type: core.Input, args: ['app-config',] }],
1221
+ widgetWidth: [{ type: core.Input, args: ['widget-width',] }],
1217
1222
  widgetDeleted: [{ type: core.Output }]
1218
1223
  };
1219
1224
  return RAWidgetContainer;