@tanstack/svelte-table 8.8.3 → 8.8.5

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.
@@ -13,7 +13,7 @@ export * from '@tanstack/table-core';
13
13
  import { SvelteComponent, init, safe_not_equal, text, claim_text, insert_hydration, set_data, noop, detach, create_ssr_component, escape, validate_component, create_component, claim_component, mount_component, transition_in, transition_out, destroy_component } from 'svelte/internal';
14
14
  import { readable, get, writable, derived } from 'svelte/store';
15
15
 
16
- /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.57.0 */
16
+ /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.58.0 */
17
17
 
18
18
  function create_fragment$1(ctx) {
19
19
  let t;
@@ -13,7 +13,7 @@ export * from '@tanstack/table-core';
13
13
  import { SvelteComponent, init, safe_not_equal, text, claim_text, insert_hydration, set_data, noop, detach, create_ssr_component, escape, validate_component, create_component, claim_component, mount_component, transition_in, transition_out, destroy_component } from 'svelte/internal';
14
14
  import { readable, get, writable, derived } from 'svelte/store';
15
15
 
16
- /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.57.0 */
16
+ /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.58.0 */
17
17
 
18
18
  function create_fragment$1(ctx) {
19
19
  let t;
@@ -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.57.0 */
17
+ /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.58.0 */
18
18
 
19
19
  function create_fragment(ctx) {
20
20
  let t;
@@ -525,6 +525,8 @@
525
525
 
526
526
  //
527
527
 
528
+ //
529
+
528
530
  const defaultColumnSizing = {
529
531
  size: 150,
530
532
  minSize: 20,
@@ -831,7 +833,7 @@
831
833
  table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
832
834
  },
833
835
  getCanSomeRowsExpand: () => {
834
- return table.getRowModel().flatRows.some(row => row.getCanExpand());
836
+ return table.getPrePaginationRowModel().flatRows.some(row => row.getCanExpand());
835
837
  },
836
838
  getToggleAllRowsExpandedHandler: () => {
837
839
  return e => {
@@ -935,19 +937,19 @@
935
937
  };
936
938
 
937
939
  const includesString = (row, columnId, filterValue) => {
938
- var _row$getValue;
940
+ var _row$getValue, _row$getValue$toStrin, _row$getValue$toStrin2;
939
941
  const search = filterValue.toLowerCase();
940
- return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
942
+ return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : (_row$getValue$toStrin = _row$getValue.toString()) == null ? void 0 : (_row$getValue$toStrin2 = _row$getValue$toStrin.toLowerCase()) == null ? void 0 : _row$getValue$toStrin2.includes(search));
941
943
  };
942
944
  includesString.autoRemove = val => testFalsey(val);
943
945
  const includesStringSensitive = (row, columnId, filterValue) => {
944
- var _row$getValue2;
945
- return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
946
+ var _row$getValue2, _row$getValue2$toStri;
947
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : (_row$getValue2$toStri = _row$getValue2.toString()) == null ? void 0 : _row$getValue2$toStri.includes(filterValue));
946
948
  };
947
949
  includesStringSensitive.autoRemove = val => testFalsey(val);
948
950
  const equalsString = (row, columnId, filterValue) => {
949
- var _row$getValue3;
950
- return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : _row$getValue3.toLowerCase()) === filterValue.toLowerCase();
951
+ var _row$getValue3, _row$getValue3$toStri;
952
+ return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : (_row$getValue3$toStri = _row$getValue3.toString()) == null ? void 0 : _row$getValue3$toStri.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
951
953
  };
952
954
  equalsString.autoRemove = val => testFalsey(val);
953
955
  const arrIncludes = (row, columnId, filterValue) => {
@@ -2957,7 +2959,6 @@
2957
2959
  // helper.accessor('nested.bar', {
2958
2960
  // cell: info => info.getValue(),
2959
2961
  // })
2960
-
2961
2962
  function createColumnHelper() {
2962
2963
  return {
2963
2964
  accessor: (accessor, column) => {
@@ -3630,7 +3631,7 @@
3630
3631
  });
3631
3632
  }
3632
3633
 
3633
- /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.57.0 */
3634
+ /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.58.0 */
3634
3635
 
3635
3636
  function create_fragment$1(ctx) {
3636
3637
  let t;