@lavalogic/scoria 0.11.11 → 0.11.12

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.
@@ -121,11 +121,13 @@ export class TableContext {
121
121
  });
122
122
  $effect(() => {
123
123
  if (this._currentPageData) {
124
+ void this.selectedItems;
124
125
  untrack(() => {
125
126
  if (this.paginationRepo?.paginationState.pageIndex != undefined &&
126
127
  this.paginationRepo?.paginationState.pageSize != undefined) {
127
128
  this.updateSelectedItems();
128
129
  this.resetHighlightedRows();
130
+ this.recalculateAllSelectedInCurrentPage();
129
131
  }
130
132
  });
131
133
  }
@@ -848,7 +850,6 @@ export class TableContext {
848
850
  else {
849
851
  this.selectedItems.delete(key);
850
852
  }
851
- this.recalculateAllSelectedInCurrentPage();
852
853
  };
853
854
  setSelectionMap = (set) => {
854
855
  this.selectedItems = set;
@@ -893,7 +894,6 @@ export class TableContext {
893
894
  updateSelectedItem(item);
894
895
  }
895
896
  }
896
- this.recalculateAllSelectedInCurrentPage();
897
897
  };
898
898
  resetSelectedItems = () => {
899
899
  for (const key of this.selectedItems.keys()) {
@@ -954,7 +954,6 @@ export class TableContext {
954
954
  }
955
955
  }
956
956
  }
957
- this.recalculateAllSelectedInCurrentPage();
958
957
  };
959
958
  onHighlightAll = () => {
960
959
  if (!this.dataRepo) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.11.11",
4
+ "version": "0.11.12",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },