@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.
@@ -26,9 +26,9 @@ function functionalUpdate(updater, input) {
26
26
  }
27
27
  function noop() {//
28
28
  }
29
- function makeStateUpdater(key, table) {
29
+ function makeStateUpdater(key, instance) {
30
30
  return updater => {
31
- table.setState(old => {
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 _toString, _props$renderValue;
2895
+ var _props$renderValue$to, _props$renderValue;
2896
2896
 
2897
- return (_toString = (_props$renderValue = props.renderValue()) == null ? void 0 : _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _toString : null;
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
- var _facetedRowModel$flat2;
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, undefined, index, depth);
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.48.0 */
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;