@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
|
@@ -14,7 +14,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
14
14
|
|
|
15
15
|
var internal = require('svelte/internal');
|
|
16
16
|
|
|
17
|
-
/* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.
|
|
17
|
+
/* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.49.0 */
|
|
18
18
|
|
|
19
19
|
function create_fragment(ctx) {
|
|
20
20
|
let t;
|
|
@@ -27,9 +27,9 @@ function functionalUpdate(updater, input) {
|
|
|
27
27
|
}
|
|
28
28
|
function noop() {//
|
|
29
29
|
}
|
|
30
|
-
function makeStateUpdater(key,
|
|
30
|
+
function makeStateUpdater(key, instance) {
|
|
31
31
|
return updater => {
|
|
32
|
-
|
|
32
|
+
instance.setState(old => {
|
|
33
33
|
return { ...old,
|
|
34
34
|
[key]: functionalUpdate(updater, old[key])
|
|
35
35
|
};
|
|
@@ -2893,9 +2893,9 @@ function createTable(options) {
|
|
|
2893
2893
|
header: props => props.header.column.id,
|
|
2894
2894
|
footer: props => props.header.column.id,
|
|
2895
2895
|
cell: props => {
|
|
2896
|
-
var
|
|
2896
|
+
var _props$renderValue$to, _props$renderValue;
|
|
2897
2897
|
|
|
2898
|
-
return (
|
|
2898
|
+
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;
|
|
2899
2899
|
},
|
|
2900
2900
|
...table._features.reduce((obj, feature) => {
|
|
2901
2901
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3425,9 +3425,7 @@ function getFacetedMinMaxValues() {
|
|
|
3425
3425
|
let facetedMinMaxValues = [firstValue, firstValue];
|
|
3426
3426
|
|
|
3427
3427
|
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
const value = (_facetedRowModel$flat2 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId);
|
|
3428
|
+
const value = facetedRowModel.flatRows[i].getValue(columnId);
|
|
3431
3429
|
|
|
3432
3430
|
if (value < facetedMinMaxValues[0]) {
|
|
3433
3431
|
facetedMinMaxValues[0] = value;
|
|
@@ -3577,7 +3575,7 @@ function getGroupedRowModel() {
|
|
|
3577
3575
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
|
|
3578
3576
|
|
|
3579
3577
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
3580
|
-
const row = createRow(table, id,
|
|
3578
|
+
const row = createRow(table, id, leafRows[0].original, index, depth);
|
|
3581
3579
|
Object.assign(row, {
|
|
3582
3580
|
groupingColumnId: columnId,
|
|
3583
3581
|
groupingValue,
|