@tanstack/svelte-table 8.1.2 → 8.2.1
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.
- package/build/cjs/svelte-table/src/placeholder.svelte.js +1 -1
- package/build/cjs/table-core/build/esm/index.js +6 -8
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +7 -9
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +48 -48
- package/build/umd/index.development.js +7 -9
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -26,9 +26,9 @@ function functionalUpdate(updater, input) {
|
|
|
26
26
|
}
|
|
27
27
|
function noop() {//
|
|
28
28
|
}
|
|
29
|
-
function makeStateUpdater(key,
|
|
29
|
+
function makeStateUpdater(key, instance) {
|
|
30
30
|
return updater => {
|
|
31
|
-
|
|
31
|
+
instance.setState(old => {
|
|
32
32
|
return { ...old,
|
|
33
33
|
[key]: functionalUpdate(updater, old[key])
|
|
34
34
|
};
|
|
@@ -2892,9 +2892,9 @@ function createTable(options) {
|
|
|
2892
2892
|
header: props => props.header.column.id,
|
|
2893
2893
|
footer: props => props.header.column.id,
|
|
2894
2894
|
cell: props => {
|
|
2895
|
-
var
|
|
2895
|
+
var _props$renderValue$to, _props$renderValue;
|
|
2896
2896
|
|
|
2897
|
-
return (
|
|
2897
|
+
return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null ? void 0 : _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
|
|
2898
2898
|
},
|
|
2899
2899
|
...table._features.reduce((obj, feature) => {
|
|
2900
2900
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3424,9 +3424,7 @@ function getFacetedMinMaxValues() {
|
|
|
3424
3424
|
let facetedMinMaxValues = [firstValue, firstValue];
|
|
3425
3425
|
|
|
3426
3426
|
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
const value = (_facetedRowModel$flat2 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId);
|
|
3427
|
+
const value = facetedRowModel.flatRows[i].getValue(columnId);
|
|
3430
3428
|
|
|
3431
3429
|
if (value < facetedMinMaxValues[0]) {
|
|
3432
3430
|
facetedMinMaxValues[0] = value;
|
|
@@ -3576,7 +3574,7 @@ function getGroupedRowModel() {
|
|
|
3576
3574
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
|
|
3577
3575
|
|
|
3578
3576
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
3579
|
-
const row = createRow(table, id,
|
|
3577
|
+
const row = createRow(table, id, leafRows[0].original, index, depth);
|
|
3580
3578
|
Object.assign(row, {
|
|
3581
3579
|
groupingColumnId: columnId,
|
|
3582
3580
|
groupingValue,
|
|
@@ -3770,7 +3768,7 @@ function getPaginationRowModel(opts) {
|
|
|
3770
3768
|
});
|
|
3771
3769
|
}
|
|
3772
3770
|
|
|
3773
|
-
/* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.
|
|
3771
|
+
/* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.49.0 */
|
|
3774
3772
|
|
|
3775
3773
|
function create_fragment$1(ctx) {
|
|
3776
3774
|
let t;
|