@lavalogic/scoria 0.11.8 → 0.11.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.
|
@@ -99,10 +99,6 @@ export class TableContext {
|
|
|
99
99
|
if (dataRepo.paginationType != PaginationType.Local) {
|
|
100
100
|
return sd ?? [];
|
|
101
101
|
}
|
|
102
|
-
if (dataRepo.pageEndIndexExclusive > sd.length - 1) {
|
|
103
|
-
console.error(`Data Repository reports more items than what exists: End index: ${dataRepo.pageEndIndexExclusive} sorted data:`, $state.snapshot(sd));
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
102
|
return sd.slice(dataRepo.pageStartIndex, dataRepo.pageEndIndexExclusive);
|
|
107
103
|
})();
|
|
108
104
|
const ori = new Map((dataRepo.data ?? []).map((item, index) => [item, index]));
|
|
@@ -125,6 +121,9 @@ export class TableContext {
|
|
|
125
121
|
});
|
|
126
122
|
}
|
|
127
123
|
});
|
|
124
|
+
$effect(() => {
|
|
125
|
+
$inspect(this.sortedData, this._currentPageData, this._originalRowIndices);
|
|
126
|
+
});
|
|
128
127
|
if (defaultColumnDefs.remoteFilters) {
|
|
129
128
|
this.remoteFilters = defaultColumnDefs.remoteFilters;
|
|
130
129
|
}
|
|
@@ -690,8 +689,6 @@ export class TableContext {
|
|
|
690
689
|
const originalIndex = this._originalRowIndices.get(item);
|
|
691
690
|
const unsortedIndex = originalIndex ?? index;
|
|
692
691
|
if (originalIndex == null) {
|
|
693
|
-
$inspect(this.sortedData);
|
|
694
|
-
$inspect(this._originalRowIndices);
|
|
695
692
|
throw new Error(`Sorted Data not found in Original Row Indices: original index ${originalIndex}, index ${index}`);
|
|
696
693
|
}
|
|
697
694
|
return this.createRow(item, index, unsortedIndex);
|
|
@@ -1724,7 +1721,6 @@ export class TableContext {
|
|
|
1724
1721
|
// #region private methods
|
|
1725
1722
|
createRow(item, index, unsortedIndex) {
|
|
1726
1723
|
if (!item) {
|
|
1727
|
-
console.log($state.snapshot(this._originalRowIndices));
|
|
1728
1724
|
throw new Error(`No Item was found at index ${index} (unsorted index ${unsortedIndex})`);
|
|
1729
1725
|
}
|
|
1730
1726
|
const row = {
|