@schneideress/dashboardframework 20.0.9 → 20.0.10

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.
@@ -5207,7 +5207,7 @@ class RADashboardArea {
5207
5207
  }
5208
5208
  if (this.isSiteDetailDashboard) {
5209
5209
  this.raDashboardEventBus.publish(RAEvent.UpdateWidgetCount, -1);
5210
- this.raDashboardEventBus.publish(RAEvent.RearrangeClicked, true);
5210
+ this.rearrangeWidgets();
5211
5211
  }
5212
5212
  }
5213
5213
  /**To rearrange widgets position in the dashboard, compactLeft&Up,compactLeft,compactUp,etc*/
@@ -5224,6 +5224,17 @@ class RADashboardArea {
5224
5224
  setTimeout(() => {
5225
5225
  this.setAreaHeight();
5226
5226
  });
5227
+ // Centralized persistence for Site Detail dashboards (desktop only)
5228
+ if (this.isSiteDetailDashboard && this.responsiveService.IsDesktopView) {
5229
+ setTimeout(() => {
5230
+ this.widgetList.forEach(item => {
5231
+ const id = item.widgetInfo?.widgetInstanceId;
5232
+ if (id) {
5233
+ this.updateWidgetPosition(id);
5234
+ }
5235
+ });
5236
+ }, 50);
5237
+ }
5227
5238
  }
5228
5239
  /**To add widget instance to the database with the next available position and to make changes in
5229
5240
  * dashboard area.