@tanstack/table-core 9.0.0-beta.10 → 9.0.0-beta.12

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.
Files changed (133) hide show
  1. package/dist/core/cells/coreCellsFeature.types.d.cts +3 -3
  2. package/dist/core/cells/coreCellsFeature.types.d.ts +3 -3
  3. package/dist/core/columns/coreColumnsFeature.types.d.cts +4 -4
  4. package/dist/core/columns/coreColumnsFeature.types.d.ts +4 -4
  5. package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
  6. package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
  7. package/dist/core/headers/buildHeaderGroups.cjs.map +1 -1
  8. package/dist/core/headers/buildHeaderGroups.js.map +1 -1
  9. package/dist/core/headers/coreHeadersFeature.types.d.cts +5 -5
  10. package/dist/core/headers/coreHeadersFeature.types.d.ts +5 -5
  11. package/dist/core/row-models/coreRowModelsFeature.types.d.cts +3 -3
  12. package/dist/core/row-models/coreRowModelsFeature.types.d.ts +3 -3
  13. package/dist/core/row-models/createCoreRowModel.cjs +1 -2
  14. package/dist/core/row-models/createCoreRowModel.cjs.map +1 -1
  15. package/dist/core/row-models/createCoreRowModel.d.cts +2 -2
  16. package/dist/core/row-models/createCoreRowModel.d.ts +2 -2
  17. package/dist/core/row-models/createCoreRowModel.js +1 -2
  18. package/dist/core/row-models/createCoreRowModel.js.map +1 -1
  19. package/dist/core/rows/coreRowsFeature.types.d.cts +4 -4
  20. package/dist/core/rows/coreRowsFeature.types.d.ts +4 -4
  21. package/dist/core/table/constructTable.cjs.map +1 -1
  22. package/dist/core/table/constructTable.js.map +1 -1
  23. package/dist/core/table/coreTablesFeature.types.d.cts +4 -4
  24. package/dist/core/table/coreTablesFeature.types.d.ts +4 -4
  25. package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
  26. package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
  27. package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +4 -4
  28. package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +4 -4
  29. package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +9 -9
  30. package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +9 -9
  31. package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
  32. package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
  33. package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +6 -6
  34. package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +6 -6
  35. package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +1 -1
  36. package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +1 -1
  37. package/dist/features/column-pinning/columnPinningFeature.types.d.cts +2 -2
  38. package/dist/features/column-pinning/columnPinningFeature.types.d.ts +2 -2
  39. package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
  40. package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +3 -2
  41. package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +3 -2
  42. package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
  43. package/dist/features/column-resizing/columnResizingFeature.types.d.cts +1 -4
  44. package/dist/features/column-resizing/columnResizingFeature.types.d.ts +1 -4
  45. package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +2 -2
  46. package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +2 -2
  47. package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +2 -2
  48. package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +2 -2
  49. package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
  50. package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
  51. package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +4 -4
  52. package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +4 -4
  53. package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +3 -3
  54. package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +3 -3
  55. package/dist/features/row-pinning/rowPinningFeature.types.d.cts +2 -2
  56. package/dist/features/row-pinning/rowPinningFeature.types.d.ts +2 -2
  57. package/dist/features/row-selection/rowSelectionFeature.types.d.cts +2 -2
  58. package/dist/features/row-selection/rowSelectionFeature.types.d.ts +2 -2
  59. package/dist/features/row-sorting/rowSortingFeature.types.d.cts +7 -7
  60. package/dist/features/row-sorting/rowSortingFeature.types.d.ts +7 -7
  61. package/dist/helpers/columnHelper.cjs.map +1 -1
  62. package/dist/helpers/columnHelper.d.cts +2 -2
  63. package/dist/helpers/columnHelper.d.ts +2 -2
  64. package/dist/helpers/columnHelper.js.map +1 -1
  65. package/dist/index.d.cts +2 -2
  66. package/dist/index.d.ts +2 -2
  67. package/dist/types/Cell.d.cts +1 -1
  68. package/dist/types/Cell.d.ts +1 -1
  69. package/dist/types/Column.d.cts +4 -4
  70. package/dist/types/Column.d.ts +4 -4
  71. package/dist/types/ColumnDef.d.cts +3 -3
  72. package/dist/types/ColumnDef.d.ts +3 -3
  73. package/dist/types/Header.d.cts +1 -1
  74. package/dist/types/Header.d.ts +1 -1
  75. package/dist/types/HeaderGroup.d.cts +2 -2
  76. package/dist/types/HeaderGroup.d.ts +2 -2
  77. package/dist/types/Row.d.cts +2 -2
  78. package/dist/types/Row.d.ts +2 -2
  79. package/dist/types/RowModel.d.cts +2 -2
  80. package/dist/types/RowModel.d.ts +2 -2
  81. package/dist/types/RowModelFns.d.cts +2 -2
  82. package/dist/types/RowModelFns.d.ts +2 -2
  83. package/dist/types/Table.d.cts +21 -12
  84. package/dist/types/Table.d.ts +21 -12
  85. package/dist/types/TableOptions.d.cts +11 -5
  86. package/dist/types/TableOptions.d.ts +11 -5
  87. package/dist/types/TableState.d.cts +1 -1
  88. package/dist/types/TableState.d.ts +1 -1
  89. package/dist/utils.cjs.map +1 -1
  90. package/dist/utils.d.cts +7 -2
  91. package/dist/utils.d.ts +7 -2
  92. package/dist/utils.js.map +1 -1
  93. package/package.json +1 -1
  94. package/src/core/cells/coreCellsFeature.types.ts +6 -6
  95. package/src/core/columns/coreColumnsFeature.types.ts +8 -8
  96. package/src/core/columns/coreColumnsFeature.utils.ts +1 -1
  97. package/src/core/headers/buildHeaderGroups.ts +3 -1
  98. package/src/core/headers/coreHeadersFeature.types.ts +10 -10
  99. package/src/core/row-models/coreRowModelsFeature.types.ts +6 -6
  100. package/src/core/row-models/createCoreRowModel.ts +5 -4
  101. package/src/core/rows/coreRowsFeature.types.ts +8 -8
  102. package/src/core/table/constructTable.ts +1 -1
  103. package/src/core/table/coreTablesFeature.types.ts +8 -8
  104. package/src/core/table/coreTablesFeature.utils.ts +8 -2
  105. package/src/features/column-faceting/columnFacetingFeature.types.ts +8 -8
  106. package/src/features/column-filtering/columnFilteringFeature.types.ts +18 -18
  107. package/src/features/column-filtering/columnFilteringFeature.utils.ts +1 -1
  108. package/src/features/column-grouping/columnGroupingFeature.types.ts +12 -12
  109. package/src/features/column-ordering/columnOrderingFeature.types.ts +2 -2
  110. package/src/features/column-pinning/columnPinningFeature.types.ts +4 -4
  111. package/src/features/column-pinning/columnPinningFeature.utils.ts +6 -14
  112. package/src/features/column-resizing/columnResizingFeature.types.ts +1 -4
  113. package/src/features/column-visibility/columnVisibilityFeature.types.ts +4 -4
  114. package/src/features/global-filtering/globalFilteringFeature.types.ts +4 -4
  115. package/src/features/global-filtering/globalFilteringFeature.utils.ts +1 -1
  116. package/src/features/row-expanding/rowExpandingFeature.types.ts +8 -8
  117. package/src/features/row-pagination/rowPaginationFeature.types.ts +6 -6
  118. package/src/features/row-pinning/rowPinningFeature.types.ts +4 -4
  119. package/src/features/row-selection/rowSelectionFeature.types.ts +4 -4
  120. package/src/features/row-sorting/rowSortingFeature.types.ts +14 -14
  121. package/src/helpers/columnHelper.ts +4 -4
  122. package/src/types/Cell.ts +2 -2
  123. package/src/types/Column.ts +8 -8
  124. package/src/types/ColumnDef.ts +6 -6
  125. package/src/types/Header.ts +2 -2
  126. package/src/types/HeaderGroup.ts +6 -6
  127. package/src/types/Row.ts +4 -4
  128. package/src/types/RowModel.ts +7 -7
  129. package/src/types/RowModelFns.ts +7 -7
  130. package/src/types/Table.ts +51 -25
  131. package/src/types/TableOptions.ts +54 -12
  132. package/src/types/TableState.ts +15 -1
  133. package/src/utils.ts +11 -2
@@ -22,7 +22,7 @@ interface Column_GlobalFiltering {
22
22
  */
23
23
  getCanGlobalFilter: () => boolean;
24
24
  }
25
- interface TableOptions_GlobalFiltering<TFeatures extends TableFeatures, TData extends RowData> {
25
+ interface TableOptions_GlobalFiltering<in out TFeatures extends TableFeatures, in out TData extends RowData> {
26
26
  /**
27
27
  * Enables global filtering across columns that allow it.
28
28
  */
@@ -46,7 +46,7 @@ interface TableOptions_GlobalFiltering<TFeatures extends TableFeatures, TData ex
46
46
  */
47
47
  onGlobalFilterChange?: OnChangeFn<any>;
48
48
  }
49
- interface Table_GlobalFiltering<TFeatures extends TableFeatures, TData extends RowData> {
49
+ interface Table_GlobalFiltering<in out TFeatures extends TableFeatures, in out TData extends RowData> {
50
50
  /**
51
51
  * Currently, this function returns the built-in `includesString` filter function. In future releases, it may return more dynamic filter functions based on the nature of the data provided.
52
52
  */
@@ -22,7 +22,7 @@ interface Column_GlobalFiltering {
22
22
  */
23
23
  getCanGlobalFilter: () => boolean;
24
24
  }
25
- interface TableOptions_GlobalFiltering<TFeatures extends TableFeatures, TData extends RowData> {
25
+ interface TableOptions_GlobalFiltering<in out TFeatures extends TableFeatures, in out TData extends RowData> {
26
26
  /**
27
27
  * Enables global filtering across columns that allow it.
28
28
  */
@@ -46,7 +46,7 @@ interface TableOptions_GlobalFiltering<TFeatures extends TableFeatures, TData ex
46
46
  */
47
47
  onGlobalFilterChange?: OnChangeFn<any>;
48
48
  }
49
- interface Table_GlobalFiltering<TFeatures extends TableFeatures, TData extends RowData> {
49
+ interface Table_GlobalFiltering<in out TFeatures extends TableFeatures, in out TData extends RowData> {
50
50
  /**
51
51
  * Currently, this function returns the built-in `includesString` filter function. In future releases, it may return more dynamic filter functions based on the nature of the data provided.
52
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"globalFilteringFeature.utils.cjs","names":["filterFn_includesString","isFunction","cloneState"],"sources":["../../../src/features/global-filtering/globalFilteringFeature.utils.ts"],"sourcesContent":["import { filterFn_includesString } from '../../fns/filterFns'\nimport { cloneState, isFunction } from '../../utils'\nimport type { Column_Internal } from '../../types/Column'\nimport type { FilterFn } from '../column-filtering/columnFilteringFeature.types'\nimport type { CellData, RowData } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\n\n/**\n * Checks whether this accessor column participates in global filtering.\n *\n * The column must have an accessor and pass column-level, table-level, and\n * optional `getColumnCanGlobalFilter` checks.\n *\n * @example\n * ```ts\n * const canGlobalFilter = column_getCanGlobalFilter(column)\n * ```\n */\nexport function column_getCanGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n TValue extends CellData = CellData,\n>(column: Column_Internal<TFeatures, TData, TValue>): boolean {\n return (\n (column.columnDef.enableGlobalFilter ?? true) &&\n (column.table.options.enableGlobalFilter ?? true) &&\n (column.table.options.enableFilters ?? true) &&\n (column.table.options.getColumnCanGlobalFilter?.(column) ?? true) &&\n !!column.accessorFn\n )\n}\n\n/**\n * Provides the built-in automatic global filter function.\n *\n * Global filtering defaults to `includesString`, which gives search-box style\n * matching across globally filterable columns.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalAutoFilterFn()\n * ```\n */\nexport function table_getGlobalAutoFilterFn() {\n return filterFn_includesString\n}\n\n/**\n * Resolves the filter function used for global filtering.\n *\n * Function-valued `options.globalFilterFn` is returned directly, `'auto'`\n * delegates to `table_getGlobalAutoFilterFn`, and string values are looked up in\n * the table's filter function registry.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalFilterFn(table)\n * ```\n */\nexport function table_getGlobalFilterFn<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n): FilterFn<TFeatures, TData> | undefined {\n const { globalFilterFn: globalFilterFn } = table.options\n const filterFns: Record<string, FilterFn<TFeatures, TData>> | undefined =\n table._rowModelFns.filterFns\n\n const filterFn = isFunction(globalFilterFn)\n ? globalFilterFn\n : globalFilterFn === 'auto'\n ? table_getGlobalAutoFilterFn()\n : filterFns?.[globalFilterFn as string]\n\n return filterFn\n}\n\n/**\n * Routes a global filter updater through the table's global filter handler.\n *\n * The updater may be a next value or a function of the previous value, matching\n * the instance `table.setGlobalFilter` behavior.\n *\n * @example\n * ```ts\n * table_setGlobalFilter(table, 'search text')\n * ```\n */\nexport function table_setGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: any) {\n table.options.onGlobalFilterChange?.(updater)\n}\n\n/**\n * Resets `globalFilter` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.globalFilter`. Passing\n * `true` ignores initial state and resets to `undefined`.\n *\n * @example\n * ```ts\n * table_resetGlobalFilter(table)\n * table_resetGlobalFilter(table, true)\n * ```\n */\nexport function table_resetGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setGlobalFilter(\n table,\n defaultState ? undefined : cloneState(table.initialState.globalFilter),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAgB,0BAId,QAA4D;;CAC5D,QACG,OAAO,UAAU,sBAAsB,UACvC,OAAO,MAAM,QAAQ,sBAAsB,UAC3C,OAAO,MAAM,QAAQ,iBAAiB,8DACtC,OAAO,MAAM,SAAQ,qIAA2B,MAAM,MAAK,SAC5D,CAAC,CAAC,OAAO;AAEb;;;;;;;;;;;;AAaA,SAAgB,8BAA8B;CAC5C,OAAOA;AACT;;;;;;;;;;;;;AAcA,SAAgB,wBAId,OACwC;CACxC,MAAM,EAAkB,mBAAmB,MAAM;CACjD,MAAM,YACJ,MAAM,aAAa;CAQrB,OANiBC,yBAAW,cAAc,IACtC,iBACA,mBAAmB,SACjB,4BAA4B,0DAC5B,UAAY;AAGpB;;;;;;;;;;;;AAaA,SAAgB,sBAGd,OAAyC,SAAc;;CACvD,iDAAM,SAAQ,iHAAuB,OAAO;AAC9C;;;;;;;;;;;;;AAcA,SAAgB,wBAGd,OAAyC,cAAwB;CACjE,sBACE,OACA,eAAe,SAAYC,yBAAW,MAAM,aAAa,YAAY,CACvE;AACF"}
1
+ {"version":3,"file":"globalFilteringFeature.utils.cjs","names":["filterFn_includesString","isFunction","cloneState"],"sources":["../../../src/features/global-filtering/globalFilteringFeature.utils.ts"],"sourcesContent":["import { filterFn_includesString } from '../../fns/filterFns'\nimport { cloneState, isFunction } from '../../utils'\nimport type { Column_Internal } from '../../types/Column'\nimport type { FilterFn } from '../column-filtering/columnFilteringFeature.types'\nimport type { CellData, RowData } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\n\n/**\n * Checks whether this accessor column participates in global filtering.\n *\n * The column must have an accessor and pass column-level, table-level, and\n * optional `getColumnCanGlobalFilter` checks.\n *\n * @example\n * ```ts\n * const canGlobalFilter = column_getCanGlobalFilter(column)\n * ```\n */\nexport function column_getCanGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n TValue extends CellData = CellData,\n>(column: Column_Internal<TFeatures, TData, TValue>): boolean {\n return (\n (column.columnDef.enableGlobalFilter ?? true) &&\n (column.table.options.enableGlobalFilter ?? true) &&\n (column.table.options.enableFilters ?? true) &&\n (column.table.options.getColumnCanGlobalFilter?.(column as any) ?? true) &&\n !!column.accessorFn\n )\n}\n\n/**\n * Provides the built-in automatic global filter function.\n *\n * Global filtering defaults to `includesString`, which gives search-box style\n * matching across globally filterable columns.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalAutoFilterFn()\n * ```\n */\nexport function table_getGlobalAutoFilterFn() {\n return filterFn_includesString\n}\n\n/**\n * Resolves the filter function used for global filtering.\n *\n * Function-valued `options.globalFilterFn` is returned directly, `'auto'`\n * delegates to `table_getGlobalAutoFilterFn`, and string values are looked up in\n * the table's filter function registry.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalFilterFn(table)\n * ```\n */\nexport function table_getGlobalFilterFn<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n): FilterFn<TFeatures, TData> | undefined {\n const { globalFilterFn: globalFilterFn } = table.options\n const filterFns: Record<string, FilterFn<TFeatures, TData>> | undefined =\n table._rowModelFns.filterFns\n\n const filterFn = isFunction(globalFilterFn)\n ? globalFilterFn\n : globalFilterFn === 'auto'\n ? table_getGlobalAutoFilterFn()\n : filterFns?.[globalFilterFn as string]\n\n return filterFn\n}\n\n/**\n * Routes a global filter updater through the table's global filter handler.\n *\n * The updater may be a next value or a function of the previous value, matching\n * the instance `table.setGlobalFilter` behavior.\n *\n * @example\n * ```ts\n * table_setGlobalFilter(table, 'search text')\n * ```\n */\nexport function table_setGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: any) {\n table.options.onGlobalFilterChange?.(updater)\n}\n\n/**\n * Resets `globalFilter` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.globalFilter`. Passing\n * `true` ignores initial state and resets to `undefined`.\n *\n * @example\n * ```ts\n * table_resetGlobalFilter(table)\n * table_resetGlobalFilter(table, true)\n * ```\n */\nexport function table_resetGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setGlobalFilter(\n table,\n defaultState ? undefined : cloneState(table.initialState.globalFilter),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAgB,0BAId,QAA4D;;CAC5D,QACG,OAAO,UAAU,sBAAsB,UACvC,OAAO,MAAM,QAAQ,sBAAsB,UAC3C,OAAO,MAAM,QAAQ,iBAAiB,8DACtC,OAAO,MAAM,SAAQ,qIAA2B,MAAa,MAAK,SACnE,CAAC,CAAC,OAAO;AAEb;;;;;;;;;;;;AAaA,SAAgB,8BAA8B;CAC5C,OAAOA;AACT;;;;;;;;;;;;;AAcA,SAAgB,wBAId,OACwC;CACxC,MAAM,EAAkB,mBAAmB,MAAM;CACjD,MAAM,YACJ,MAAM,aAAa;CAQrB,OANiBC,yBAAW,cAAc,IACtC,iBACA,mBAAmB,SACjB,4BAA4B,0DAC5B,UAAY;AAGpB;;;;;;;;;;;;AAaA,SAAgB,sBAGd,OAAyC,SAAc;;CACvD,iDAAM,SAAQ,iHAAuB,OAAO;AAC9C;;;;;;;;;;;;;AAcA,SAAgB,wBAGd,OAAyC,cAAwB;CACjE,sBACE,OACA,eAAe,SAAYC,yBAAW,MAAM,aAAa,YAAY,CACvE;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"globalFilteringFeature.utils.js","names":[],"sources":["../../../src/features/global-filtering/globalFilteringFeature.utils.ts"],"sourcesContent":["import { filterFn_includesString } from '../../fns/filterFns'\nimport { cloneState, isFunction } from '../../utils'\nimport type { Column_Internal } from '../../types/Column'\nimport type { FilterFn } from '../column-filtering/columnFilteringFeature.types'\nimport type { CellData, RowData } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\n\n/**\n * Checks whether this accessor column participates in global filtering.\n *\n * The column must have an accessor and pass column-level, table-level, and\n * optional `getColumnCanGlobalFilter` checks.\n *\n * @example\n * ```ts\n * const canGlobalFilter = column_getCanGlobalFilter(column)\n * ```\n */\nexport function column_getCanGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n TValue extends CellData = CellData,\n>(column: Column_Internal<TFeatures, TData, TValue>): boolean {\n return (\n (column.columnDef.enableGlobalFilter ?? true) &&\n (column.table.options.enableGlobalFilter ?? true) &&\n (column.table.options.enableFilters ?? true) &&\n (column.table.options.getColumnCanGlobalFilter?.(column) ?? true) &&\n !!column.accessorFn\n )\n}\n\n/**\n * Provides the built-in automatic global filter function.\n *\n * Global filtering defaults to `includesString`, which gives search-box style\n * matching across globally filterable columns.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalAutoFilterFn()\n * ```\n */\nexport function table_getGlobalAutoFilterFn() {\n return filterFn_includesString\n}\n\n/**\n * Resolves the filter function used for global filtering.\n *\n * Function-valued `options.globalFilterFn` is returned directly, `'auto'`\n * delegates to `table_getGlobalAutoFilterFn`, and string values are looked up in\n * the table's filter function registry.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalFilterFn(table)\n * ```\n */\nexport function table_getGlobalFilterFn<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n): FilterFn<TFeatures, TData> | undefined {\n const { globalFilterFn: globalFilterFn } = table.options\n const filterFns: Record<string, FilterFn<TFeatures, TData>> | undefined =\n table._rowModelFns.filterFns\n\n const filterFn = isFunction(globalFilterFn)\n ? globalFilterFn\n : globalFilterFn === 'auto'\n ? table_getGlobalAutoFilterFn()\n : filterFns?.[globalFilterFn as string]\n\n return filterFn\n}\n\n/**\n * Routes a global filter updater through the table's global filter handler.\n *\n * The updater may be a next value or a function of the previous value, matching\n * the instance `table.setGlobalFilter` behavior.\n *\n * @example\n * ```ts\n * table_setGlobalFilter(table, 'search text')\n * ```\n */\nexport function table_setGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: any) {\n table.options.onGlobalFilterChange?.(updater)\n}\n\n/**\n * Resets `globalFilter` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.globalFilter`. Passing\n * `true` ignores initial state and resets to `undefined`.\n *\n * @example\n * ```ts\n * table_resetGlobalFilter(table)\n * table_resetGlobalFilter(table, true)\n * ```\n */\nexport function table_resetGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setGlobalFilter(\n table,\n defaultState ? undefined : cloneState(table.initialState.globalFilter),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAgB,0BAId,QAA4D;;CAC5D,QACG,OAAO,UAAU,sBAAsB,UACvC,OAAO,MAAM,QAAQ,sBAAsB,UAC3C,OAAO,MAAM,QAAQ,iBAAiB,8DACtC,OAAO,MAAM,SAAQ,qIAA2B,MAAM,MAAK,SAC5D,CAAC,CAAC,OAAO;AAEb;;;;;;;;;;;;AAaA,SAAgB,8BAA8B;CAC5C,OAAO;AACT;;;;;;;;;;;;;AAcA,SAAgB,wBAId,OACwC;CACxC,MAAM,EAAkB,mBAAmB,MAAM;CACjD,MAAM,YACJ,MAAM,aAAa;CAQrB,OANiB,WAAW,cAAc,IACtC,iBACA,mBAAmB,SACjB,4BAA4B,0DAC5B,UAAY;AAGpB;;;;;;;;;;;;AAaA,SAAgB,sBAGd,OAAyC,SAAc;;CACvD,iDAAM,SAAQ,iHAAuB,OAAO;AAC9C;;;;;;;;;;;;;AAcA,SAAgB,wBAGd,OAAyC,cAAwB;CACjE,sBACE,OACA,eAAe,SAAY,WAAW,MAAM,aAAa,YAAY,CACvE;AACF"}
1
+ {"version":3,"file":"globalFilteringFeature.utils.js","names":[],"sources":["../../../src/features/global-filtering/globalFilteringFeature.utils.ts"],"sourcesContent":["import { filterFn_includesString } from '../../fns/filterFns'\nimport { cloneState, isFunction } from '../../utils'\nimport type { Column_Internal } from '../../types/Column'\nimport type { FilterFn } from '../column-filtering/columnFilteringFeature.types'\nimport type { CellData, RowData } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\n\n/**\n * Checks whether this accessor column participates in global filtering.\n *\n * The column must have an accessor and pass column-level, table-level, and\n * optional `getColumnCanGlobalFilter` checks.\n *\n * @example\n * ```ts\n * const canGlobalFilter = column_getCanGlobalFilter(column)\n * ```\n */\nexport function column_getCanGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n TValue extends CellData = CellData,\n>(column: Column_Internal<TFeatures, TData, TValue>): boolean {\n return (\n (column.columnDef.enableGlobalFilter ?? true) &&\n (column.table.options.enableGlobalFilter ?? true) &&\n (column.table.options.enableFilters ?? true) &&\n (column.table.options.getColumnCanGlobalFilter?.(column as any) ?? true) &&\n !!column.accessorFn\n )\n}\n\n/**\n * Provides the built-in automatic global filter function.\n *\n * Global filtering defaults to `includesString`, which gives search-box style\n * matching across globally filterable columns.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalAutoFilterFn()\n * ```\n */\nexport function table_getGlobalAutoFilterFn() {\n return filterFn_includesString\n}\n\n/**\n * Resolves the filter function used for global filtering.\n *\n * Function-valued `options.globalFilterFn` is returned directly, `'auto'`\n * delegates to `table_getGlobalAutoFilterFn`, and string values are looked up in\n * the table's filter function registry.\n *\n * @example\n * ```ts\n * const filterFn = table_getGlobalFilterFn(table)\n * ```\n */\nexport function table_getGlobalFilterFn<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n): FilterFn<TFeatures, TData> | undefined {\n const { globalFilterFn: globalFilterFn } = table.options\n const filterFns: Record<string, FilterFn<TFeatures, TData>> | undefined =\n table._rowModelFns.filterFns\n\n const filterFn = isFunction(globalFilterFn)\n ? globalFilterFn\n : globalFilterFn === 'auto'\n ? table_getGlobalAutoFilterFn()\n : filterFns?.[globalFilterFn as string]\n\n return filterFn\n}\n\n/**\n * Routes a global filter updater through the table's global filter handler.\n *\n * The updater may be a next value or a function of the previous value, matching\n * the instance `table.setGlobalFilter` behavior.\n *\n * @example\n * ```ts\n * table_setGlobalFilter(table, 'search text')\n * ```\n */\nexport function table_setGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: any) {\n table.options.onGlobalFilterChange?.(updater)\n}\n\n/**\n * Resets `globalFilter` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.globalFilter`. Passing\n * `true` ignores initial state and resets to `undefined`.\n *\n * @example\n * ```ts\n * table_resetGlobalFilter(table)\n * table_resetGlobalFilter(table, true)\n * ```\n */\nexport function table_resetGlobalFilter<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setGlobalFilter(\n table,\n defaultState ? undefined : cloneState(table.initialState.globalFilter),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAgB,0BAId,QAA4D;;CAC5D,QACG,OAAO,UAAU,sBAAsB,UACvC,OAAO,MAAM,QAAQ,sBAAsB,UAC3C,OAAO,MAAM,QAAQ,iBAAiB,8DACtC,OAAO,MAAM,SAAQ,qIAA2B,MAAa,MAAK,SACnE,CAAC,CAAC,OAAO;AAEb;;;;;;;;;;;;AAaA,SAAgB,8BAA8B;CAC5C,OAAO;AACT;;;;;;;;;;;;;AAcA,SAAgB,wBAId,OACwC;CACxC,MAAM,EAAkB,mBAAmB,MAAM;CACjD,MAAM,YACJ,MAAM,aAAa;CAQrB,OANiB,WAAW,cAAc,IACtC,iBACA,mBAAmB,SACjB,4BAA4B,0DAC5B,UAAY;AAGpB;;;;;;;;;;;;AAaA,SAAgB,sBAGd,OAAyC,SAAc;;CACvD,iDAAM,SAAQ,iHAAuB,OAAO;AAC9C;;;;;;;;;;;;;AAcA,SAAgB,wBAGd,OAAyC,cAAwB;CACjE,sBACE,OACA,eAAe,SAAY,WAAW,MAAM,aAAa,YAAY,CACvE;AACF"}
@@ -31,7 +31,7 @@ interface Row_RowExpanding {
31
31
  */
32
32
  toggleExpanded: (expanded?: boolean) => void;
33
33
  }
34
- interface TableOptions_RowExpanding<TFeatures extends TableFeatures, TData extends RowData> {
34
+ interface TableOptions_RowExpanding<in out TFeatures extends TableFeatures, in out TData extends RowData> {
35
35
  /**
36
36
  * Enables automatic expanded-state resets when page-altering table state changes.
37
37
  */
@@ -63,7 +63,7 @@ interface TableOptions_RowExpanding<TFeatures extends TableFeatures, TData exten
63
63
  */
64
64
  paginateExpandedRows?: boolean;
65
65
  }
66
- interface Table_RowExpanding<TFeatures extends TableFeatures, TData extends RowData> {
66
+ interface Table_RowExpanding<in out TFeatures extends TableFeatures, in out TData extends RowData> {
67
67
  autoResetExpanded: () => void;
68
68
  /**
69
69
  * Checks whether at least one row can be expanded.
@@ -100,7 +100,7 @@ interface Table_RowExpanding<TFeatures extends TableFeatures, TData extends RowD
100
100
  */
101
101
  toggleAllRowsExpanded: (expanded?: boolean) => void;
102
102
  }
103
- interface Table_RowModels_Expanded<TFeatures extends TableFeatures, TData extends RowData> {
103
+ interface Table_RowModels_Expanded<in out TFeatures extends TableFeatures, in out TData extends RowData> {
104
104
  /**
105
105
  * Resolves the row model after expanded rows have been flattened into view.
106
106
  */
@@ -110,7 +110,7 @@ interface Table_RowModels_Expanded<TFeatures extends TableFeatures, TData extend
110
110
  */
111
111
  getPreExpandedRowModel: () => RowModel<TFeatures, TData>;
112
112
  }
113
- interface CachedRowModel_Expanded<TFeatures extends TableFeatures, TData extends RowData> {
113
+ interface CachedRowModel_Expanded<in out TFeatures extends TableFeatures, in out TData extends RowData> {
114
114
  expandedRowModel: () => RowModel<TFeatures, TData>;
115
115
  }
116
116
  //#endregion
@@ -31,7 +31,7 @@ interface Row_RowExpanding {
31
31
  */
32
32
  toggleExpanded: (expanded?: boolean) => void;
33
33
  }
34
- interface TableOptions_RowExpanding<TFeatures extends TableFeatures, TData extends RowData> {
34
+ interface TableOptions_RowExpanding<in out TFeatures extends TableFeatures, in out TData extends RowData> {
35
35
  /**
36
36
  * Enables automatic expanded-state resets when page-altering table state changes.
37
37
  */
@@ -63,7 +63,7 @@ interface TableOptions_RowExpanding<TFeatures extends TableFeatures, TData exten
63
63
  */
64
64
  paginateExpandedRows?: boolean;
65
65
  }
66
- interface Table_RowExpanding<TFeatures extends TableFeatures, TData extends RowData> {
66
+ interface Table_RowExpanding<in out TFeatures extends TableFeatures, in out TData extends RowData> {
67
67
  autoResetExpanded: () => void;
68
68
  /**
69
69
  * Checks whether at least one row can be expanded.
@@ -100,7 +100,7 @@ interface Table_RowExpanding<TFeatures extends TableFeatures, TData extends RowD
100
100
  */
101
101
  toggleAllRowsExpanded: (expanded?: boolean) => void;
102
102
  }
103
- interface Table_RowModels_Expanded<TFeatures extends TableFeatures, TData extends RowData> {
103
+ interface Table_RowModels_Expanded<in out TFeatures extends TableFeatures, in out TData extends RowData> {
104
104
  /**
105
105
  * Resolves the row model after expanded rows have been flattened into view.
106
106
  */
@@ -110,7 +110,7 @@ interface Table_RowModels_Expanded<TFeatures extends TableFeatures, TData extend
110
110
  */
111
111
  getPreExpandedRowModel: () => RowModel<TFeatures, TData>;
112
112
  }
113
- interface CachedRowModel_Expanded<TFeatures extends TableFeatures, TData extends RowData> {
113
+ interface CachedRowModel_Expanded<in out TFeatures extends TableFeatures, in out TData extends RowData> {
114
114
  expandedRowModel: () => RowModel<TFeatures, TData>;
115
115
  }
116
116
  //#endregion
@@ -37,7 +37,7 @@ interface TableOptions_RowPagination {
37
37
  interface PaginationDefaultOptions {
38
38
  onPaginationChange: OnChangeFn<PaginationState>;
39
39
  }
40
- interface Table_RowPagination<TFeatures extends TableFeatures, TData extends RowData> {
40
+ interface Table_RowPagination<in out TFeatures extends TableFeatures, in out TData extends RowData> {
41
41
  _autoResetPageIndex: () => void;
42
42
  /**
43
43
  * Checks whether the current page index can move forward.
@@ -108,7 +108,7 @@ interface Table_RowPagination<TFeatures extends TableFeatures, TData extends Row
108
108
  */
109
109
  setPagination: (updater: Updater<PaginationState>) => void;
110
110
  }
111
- interface Table_RowModels_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
111
+ interface Table_RowModels_Paginated<in out TFeatures extends TableFeatures, in out TData extends RowData> {
112
112
  /**
113
113
  * Resolves the row model after pagination has sliced the current page.
114
114
  */
@@ -118,7 +118,7 @@ interface Table_RowModels_Paginated<TFeatures extends TableFeatures, TData exten
118
118
  */
119
119
  getPrePaginatedRowModel: () => RowModel<TFeatures, TData>;
120
120
  }
121
- interface CachedRowModel_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
121
+ interface CachedRowModel_Paginated<in out TFeatures extends TableFeatures, in out TData extends RowData> {
122
122
  paginatedRowModel: () => RowModel<TFeatures, TData>;
123
123
  }
124
124
  //#endregion
@@ -37,7 +37,7 @@ interface TableOptions_RowPagination {
37
37
  interface PaginationDefaultOptions {
38
38
  onPaginationChange: OnChangeFn<PaginationState>;
39
39
  }
40
- interface Table_RowPagination<TFeatures extends TableFeatures, TData extends RowData> {
40
+ interface Table_RowPagination<in out TFeatures extends TableFeatures, in out TData extends RowData> {
41
41
  _autoResetPageIndex: () => void;
42
42
  /**
43
43
  * Checks whether the current page index can move forward.
@@ -108,7 +108,7 @@ interface Table_RowPagination<TFeatures extends TableFeatures, TData extends Row
108
108
  */
109
109
  setPagination: (updater: Updater<PaginationState>) => void;
110
110
  }
111
- interface Table_RowModels_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
111
+ interface Table_RowModels_Paginated<in out TFeatures extends TableFeatures, in out TData extends RowData> {
112
112
  /**
113
113
  * Resolves the row model after pagination has sliced the current page.
114
114
  */
@@ -118,7 +118,7 @@ interface Table_RowModels_Paginated<TFeatures extends TableFeatures, TData exten
118
118
  */
119
119
  getPrePaginatedRowModel: () => RowModel<TFeatures, TData>;
120
120
  }
121
- interface CachedRowModel_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
121
+ interface CachedRowModel_Paginated<in out TFeatures extends TableFeatures, in out TData extends RowData> {
122
122
  paginatedRowModel: () => RowModel<TFeatures, TData>;
123
123
  }
124
124
  //#endregion
@@ -11,7 +11,7 @@ interface RowPinningState {
11
11
  interface TableState_RowPinning {
12
12
  rowPinning: RowPinningState;
13
13
  }
14
- interface TableOptions_RowPinning<TFeatures extends TableFeatures, TData extends RowData> {
14
+ interface TableOptions_RowPinning<in out TFeatures extends TableFeatures, in out TData extends RowData> {
15
15
  /**
16
16
  * Allows rows to be pinned to top or bottom regions.
17
17
  *
@@ -50,7 +50,7 @@ interface Row_RowPinning {
50
50
  */
51
51
  pin: (position: RowPinningPosition, includeLeafRows?: boolean, includeParentRows?: boolean) => void;
52
52
  }
53
- interface Table_RowPinning<TFeatures extends TableFeatures, TData extends RowData> {
53
+ interface Table_RowPinning<in out TFeatures extends TableFeatures, in out TData extends RowData> {
54
54
  /**
55
55
  * Gets rows pinned to the bottom region.
56
56
  */
@@ -11,7 +11,7 @@ interface RowPinningState {
11
11
  interface TableState_RowPinning {
12
12
  rowPinning: RowPinningState;
13
13
  }
14
- interface TableOptions_RowPinning<TFeatures extends TableFeatures, TData extends RowData> {
14
+ interface TableOptions_RowPinning<in out TFeatures extends TableFeatures, in out TData extends RowData> {
15
15
  /**
16
16
  * Allows rows to be pinned to top or bottom regions.
17
17
  *
@@ -50,7 +50,7 @@ interface Row_RowPinning {
50
50
  */
51
51
  pin: (position: RowPinningPosition, includeLeafRows?: boolean, includeParentRows?: boolean) => void;
52
52
  }
53
- interface Table_RowPinning<TFeatures extends TableFeatures, TData extends RowData> {
53
+ interface Table_RowPinning<in out TFeatures extends TableFeatures, in out TData extends RowData> {
54
54
  /**
55
55
  * Gets rows pinned to the bottom region.
56
56
  */
@@ -8,7 +8,7 @@ type RowSelectionState = Record<string, boolean | undefined>;
8
8
  interface TableState_RowSelection {
9
9
  rowSelection: RowSelectionState;
10
10
  }
11
- interface TableOptions_RowSelection<TFeatures extends TableFeatures, TData extends RowData> {
11
+ interface TableOptions_RowSelection<in out TFeatures extends TableFeatures, in out TData extends RowData> {
12
12
  /**
13
13
  * Allows rows to be selected alongside other rows.
14
14
  *
@@ -71,7 +71,7 @@ interface Row_RowSelection {
71
71
  selectChildren?: boolean;
72
72
  }) => void;
73
73
  }
74
- interface Table_RowSelection<TFeatures extends TableFeatures, TData extends RowData> {
74
+ interface Table_RowSelection<in out TFeatures extends TableFeatures, in out TData extends RowData> {
75
75
  /**
76
76
  * Builds a selected-row model from rows after filtering.
77
77
  */
@@ -8,7 +8,7 @@ type RowSelectionState = Record<string, boolean | undefined>;
8
8
  interface TableState_RowSelection {
9
9
  rowSelection: RowSelectionState;
10
10
  }
11
- interface TableOptions_RowSelection<TFeatures extends TableFeatures, TData extends RowData> {
11
+ interface TableOptions_RowSelection<in out TFeatures extends TableFeatures, in out TData extends RowData> {
12
12
  /**
13
13
  * Allows rows to be selected alongside other rows.
14
14
  *
@@ -71,7 +71,7 @@ interface Row_RowSelection {
71
71
  selectChildren?: boolean;
72
72
  }) => void;
73
73
  }
74
- interface Table_RowSelection<TFeatures extends TableFeatures, TData extends RowData> {
74
+ interface Table_RowSelection<in out TFeatures extends TableFeatures, in out TData extends RowData> {
75
75
  /**
76
76
  * Builds a selected-row model from rows after filtering.
77
77
  */
@@ -14,11 +14,11 @@ type SortingState = Array<ColumnSort>;
14
14
  interface TableState_RowSorting {
15
15
  sorting: SortingState;
16
16
  }
17
- interface RowModelFns_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
17
+ interface RowModelFns_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
18
18
  sortFns: Record<string, SortFn<TFeatures, TData>>;
19
19
  }
20
20
  interface SortFns {}
21
- interface SortFn<TFeatures extends TableFeatures, TData extends RowData> {
21
+ interface SortFn<in out TFeatures extends TableFeatures, in out TData extends RowData> {
22
22
  (rowA: Row<TFeatures, TData>, rowB: Row<TFeatures, TData>, columnId: string): number;
23
23
  }
24
24
  type CustomSortFns<TFeatures extends TableFeatures, TData extends RowData> = Record<string, SortFn<TFeatures, TData>>;
@@ -35,7 +35,7 @@ type ExtractSortFnKeys<TFeatures extends TableFeatures> = IsAny<TFeatures> exten
35
35
  sortFns: infer TSortFns extends object;
36
36
  } ? Extract<keyof TSortFns, string> : keyof SortFns;
37
37
  type SortFnOption<TFeatures extends TableFeatures, TData extends RowData> = 'auto' | ExtractSortFnKeys<TFeatures> | SortFn<TFeatures, TData>;
38
- interface ColumnDef_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
38
+ interface ColumnDef_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
39
39
  /**
40
40
  * Enables/Disables multi-sorting for this column.
41
41
  */
@@ -69,7 +69,7 @@ interface ColumnDef_RowSorting<TFeatures extends TableFeatures, TData extends Ro
69
69
  */
70
70
  sortUndefined?: false | -1 | 1 | 'first' | 'last';
71
71
  }
72
- interface Column_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
72
+ interface Column_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
73
73
  /**
74
74
  * Removes this column from the table's sorting state
75
75
  */
@@ -161,7 +161,7 @@ interface TableOptions_RowSorting {
161
161
  */
162
162
  sortDescFirst?: boolean;
163
163
  }
164
- interface Table_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
164
+ interface Table_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
165
165
  /**
166
166
  * Resets `sorting` to `initialState.sorting`.
167
167
  *
@@ -173,7 +173,7 @@ interface Table_RowSorting<TFeatures extends TableFeatures, TData extends RowDat
173
173
  */
174
174
  setSorting: (updater: Updater<SortingState>) => void;
175
175
  }
176
- interface Table_RowModels_Sorted<TFeatures extends TableFeatures, TData extends RowData> {
176
+ interface Table_RowModels_Sorted<in out TFeatures extends TableFeatures, in out TData extends RowData> {
177
177
  /**
178
178
  * Reads the row model immediately before sorting.
179
179
  */
@@ -183,7 +183,7 @@ interface Table_RowModels_Sorted<TFeatures extends TableFeatures, TData extends
183
183
  */
184
184
  getSortedRowModel: () => RowModel<TFeatures, TData>;
185
185
  }
186
- interface CachedRowModel_Sorted<TFeatures extends TableFeatures, TData extends RowData> {
186
+ interface CachedRowModel_Sorted<in out TFeatures extends TableFeatures, in out TData extends RowData> {
187
187
  sortedRowModel: () => RowModel<TFeatures, TData>;
188
188
  }
189
189
  //#endregion
@@ -14,11 +14,11 @@ type SortingState = Array<ColumnSort>;
14
14
  interface TableState_RowSorting {
15
15
  sorting: SortingState;
16
16
  }
17
- interface RowModelFns_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
17
+ interface RowModelFns_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
18
18
  sortFns: Record<string, SortFn<TFeatures, TData>>;
19
19
  }
20
20
  interface SortFns {}
21
- interface SortFn<TFeatures extends TableFeatures, TData extends RowData> {
21
+ interface SortFn<in out TFeatures extends TableFeatures, in out TData extends RowData> {
22
22
  (rowA: Row<TFeatures, TData>, rowB: Row<TFeatures, TData>, columnId: string): number;
23
23
  }
24
24
  type CustomSortFns<TFeatures extends TableFeatures, TData extends RowData> = Record<string, SortFn<TFeatures, TData>>;
@@ -35,7 +35,7 @@ type ExtractSortFnKeys<TFeatures extends TableFeatures> = IsAny<TFeatures> exten
35
35
  sortFns: infer TSortFns extends object;
36
36
  } ? Extract<keyof TSortFns, string> : keyof SortFns;
37
37
  type SortFnOption<TFeatures extends TableFeatures, TData extends RowData> = 'auto' | ExtractSortFnKeys<TFeatures> | SortFn<TFeatures, TData>;
38
- interface ColumnDef_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
38
+ interface ColumnDef_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
39
39
  /**
40
40
  * Enables/Disables multi-sorting for this column.
41
41
  */
@@ -69,7 +69,7 @@ interface ColumnDef_RowSorting<TFeatures extends TableFeatures, TData extends Ro
69
69
  */
70
70
  sortUndefined?: false | -1 | 1 | 'first' | 'last';
71
71
  }
72
- interface Column_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
72
+ interface Column_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
73
73
  /**
74
74
  * Removes this column from the table's sorting state
75
75
  */
@@ -161,7 +161,7 @@ interface TableOptions_RowSorting {
161
161
  */
162
162
  sortDescFirst?: boolean;
163
163
  }
164
- interface Table_RowSorting<TFeatures extends TableFeatures, TData extends RowData> {
164
+ interface Table_RowSorting<in out TFeatures extends TableFeatures, in out TData extends RowData> {
165
165
  /**
166
166
  * Resets `sorting` to `initialState.sorting`.
167
167
  *
@@ -173,7 +173,7 @@ interface Table_RowSorting<TFeatures extends TableFeatures, TData extends RowDat
173
173
  */
174
174
  setSorting: (updater: Updater<SortingState>) => void;
175
175
  }
176
- interface Table_RowModels_Sorted<TFeatures extends TableFeatures, TData extends RowData> {
176
+ interface Table_RowModels_Sorted<in out TFeatures extends TableFeatures, in out TData extends RowData> {
177
177
  /**
178
178
  * Reads the row model immediately before sorting.
179
179
  */
@@ -183,7 +183,7 @@ interface Table_RowModels_Sorted<TFeatures extends TableFeatures, TData extends
183
183
  */
184
184
  getSortedRowModel: () => RowModel<TFeatures, TData>;
185
185
  }
186
- interface CachedRowModel_Sorted<TFeatures extends TableFeatures, TData extends RowData> {
186
+ interface CachedRowModel_Sorted<in out TFeatures extends TableFeatures, in out TData extends RowData> {
187
187
  sortedRowModel: () => RowModel<TFeatures, TData>;
188
188
  }
189
189
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"columnHelper.cjs","names":[],"sources":["../../src/helpers/columnHelper.ts"],"sourcesContent":["import type { DeepKeys, DeepValue, RowData } from '../types/type-utils'\nimport type { TableFeatures } from '../types/TableFeatures'\nimport type {\n AccessorFn,\n AccessorFnColumnDef,\n AccessorKeyColumnDef,\n ColumnDef,\n DisplayColumnDef,\n GroupColumnDef,\n IdentifiedColumnDef,\n} from '../types/ColumnDef'\n\nexport type ColumnHelper<\n TFeatures extends TableFeatures,\n TData extends RowData,\n> = {\n /**\n * Creates a data column definition with an accessor key or function to extract the cell value.\n * @example\n * ```ts\n * helper.accessor('firstName', { cell: (info) => info.getValue() })\n * helper.accessor((row) => row.lastName, { id: 'lastName' })\n * ```\n */\n accessor: <\n TAccessor extends AccessorFn<TData> | DeepKeys<TData>,\n TValue extends TAccessor extends AccessorFn<TData, infer TReturn>\n ? TReturn\n : TAccessor extends DeepKeys<TData>\n ? DeepValue<TData, TAccessor>\n : never,\n >(\n accessor: TAccessor,\n column: TAccessor extends AccessorFn<TData>\n ? DisplayColumnDef<TFeatures, TData, TValue>\n : IdentifiedColumnDef<TFeatures, TData, TValue>,\n ) => TAccessor extends AccessorFn<TData>\n ? AccessorFnColumnDef<TFeatures, TData, TValue>\n : AccessorKeyColumnDef<TFeatures, TData, TValue>\n /**\n * Wraps an array of column definitions to preserve each column's individual TValue type.\n * Uses variadic tuple types to infer element types before checking constraints, preventing type widening.\n * @example\n * ```ts\n * helper.columns([helper.accessor('firstName', {}), helper.accessor('age', {})])\n * ```\n */\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ) => Array<ColumnDef<TFeatures, TData, any>> & [...TColumns]\n /**\n * Creates a display column definition for non-data columns like actions or row selection.\n * @example\n * ```ts\n * helper.display({ id: 'actions', header: 'Actions', cell: () => <button>Edit</button> })\n * ```\n */\n display: (\n column: DisplayColumnDef<TFeatures, TData>,\n ) => DisplayColumnDef<TFeatures, TData, unknown>\n /**\n * Creates a group column definition that contains nested child columns.\n * @example\n * ```ts\n * helper.group({\n * id: 'name',\n * header: 'Name',\n * columns: helper.columns([\n * helper.accessor('firstName', {}),\n * helper.accessor('lastName', { id: 'lastName' }),\n * ]),\n * })\n * ```\n */\n group: (\n column: GroupColumnDef<TFeatures, TData, unknown>,\n ) => GroupColumnDef<TFeatures, TData, unknown>\n}\n\n/**\n * Creates helper functions for authoring column definitions with stronger value\n * inference.\n *\n * `accessor` infers `TValue` from an accessor key or accessor function,\n * `display` creates non-data columns, `group` creates parent columns, and\n * `columns` preserves tuple-level value types for arrays. At runtime these\n * helpers only return column definition objects.\n *\n * @example\n * ```tsx\n * const helper = createColumnHelper<typeof features, Person>() // features is the result of `tableFeatures({})` helper\n * const columns = [\n * helper.display({ id: 'actions', header: 'Actions' }),\n * helper.accessor('firstName', {}),\n * helper.accessor((row) => row.lastName, { id: 'lastName' }),\n * ]\n * ```\n */\nexport function createColumnHelper<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(): ColumnHelper<TFeatures, TData> {\n return {\n accessor: (accessor, column) => {\n return typeof accessor === 'function'\n ? ({\n ...column,\n accessorFn: accessor,\n } as any)\n : {\n ...column,\n accessorKey: accessor,\n }\n },\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ): Array<ColumnDef<TFeatures, TData, any>> & [...TColumns] =>\n columns as Array<ColumnDef<TFeatures, TData, any>> & [...TColumns],\n display: (column) => column,\n group: (column) => column,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkGA,SAAgB,qBAGoB;CAClC,OAAO;EACL,WAAW,UAAU,WAAW;GAC9B,OAAO,OAAO,aAAa,aACtB;IACC,GAAG;IACH,YAAY;GACd,IACA;IACE,GAAG;IACH,aAAa;GACf;EACN;EACA,UACE,YAEA;EACF,UAAU,WAAW;EACrB,QAAQ,WAAW;CACrB;AACF"}
1
+ {"version":3,"file":"columnHelper.cjs","names":[],"sources":["../../src/helpers/columnHelper.ts"],"sourcesContent":["import type { DeepKeys, DeepValue, RowData } from '../types/type-utils'\nimport type { TableFeatures } from '../types/TableFeatures'\nimport type {\n AccessorFn,\n AccessorFnColumnDef,\n AccessorKeyColumnDef,\n ColumnDef,\n DisplayColumnDef,\n GroupColumnDef,\n IdentifiedColumnDef,\n} from '../types/ColumnDef'\n\nexport interface ColumnHelper<\n in out TFeatures extends TableFeatures,\n in out TData extends RowData,\n> {\n /**\n * Creates a data column definition with an accessor key or function to extract the cell value.\n * @example\n * ```ts\n * helper.accessor('firstName', { cell: (info) => info.getValue() })\n * helper.accessor((row) => row.lastName, { id: 'lastName' })\n * ```\n */\n accessor: <\n TAccessor extends AccessorFn<TData> | DeepKeys<TData>,\n TValue extends TAccessor extends AccessorFn<TData, infer TReturn>\n ? TReturn\n : TAccessor extends DeepKeys<TData>\n ? DeepValue<TData, TAccessor>\n : never,\n >(\n accessor: TAccessor,\n column: TAccessor extends AccessorFn<TData>\n ? DisplayColumnDef<TFeatures, TData, TValue>\n : IdentifiedColumnDef<TFeatures, TData, TValue>,\n ) => TAccessor extends AccessorFn<TData>\n ? AccessorFnColumnDef<TFeatures, TData, TValue>\n : AccessorKeyColumnDef<TFeatures, TData, TValue>\n /**\n * Wraps an array of column definitions to preserve each column's individual TValue type.\n * Uses variadic tuple types to infer element types before checking constraints, preventing type widening.\n * @example\n * ```ts\n * helper.columns([helper.accessor('firstName', {}), helper.accessor('age', {})])\n * ```\n */\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ) => Array<ColumnDef<TFeatures, TData, any>> & [...TColumns]\n /**\n * Creates a display column definition for non-data columns like actions or row selection.\n * @example\n * ```ts\n * helper.display({ id: 'actions', header: 'Actions', cell: () => <button>Edit</button> })\n * ```\n */\n display: (\n column: DisplayColumnDef<TFeatures, TData>,\n ) => DisplayColumnDef<TFeatures, TData, unknown>\n /**\n * Creates a group column definition that contains nested child columns.\n * @example\n * ```ts\n * helper.group({\n * id: 'name',\n * header: 'Name',\n * columns: helper.columns([\n * helper.accessor('firstName', {}),\n * helper.accessor('lastName', { id: 'lastName' }),\n * ]),\n * })\n * ```\n */\n group: (\n column: GroupColumnDef<TFeatures, TData, unknown>,\n ) => GroupColumnDef<TFeatures, TData, unknown>\n}\n\n/**\n * Creates helper functions for authoring column definitions with stronger value\n * inference.\n *\n * `accessor` infers `TValue` from an accessor key or accessor function,\n * `display` creates non-data columns, `group` creates parent columns, and\n * `columns` preserves tuple-level value types for arrays. At runtime these\n * helpers only return column definition objects.\n *\n * @example\n * ```tsx\n * const helper = createColumnHelper<typeof features, Person>() // features is the result of `tableFeatures({})` helper\n * const columns = [\n * helper.display({ id: 'actions', header: 'Actions' }),\n * helper.accessor('firstName', {}),\n * helper.accessor((row) => row.lastName, { id: 'lastName' }),\n * ]\n * ```\n */\nexport function createColumnHelper<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(): ColumnHelper<TFeatures, TData> {\n return {\n accessor: (accessor, column) => {\n return typeof accessor === 'function'\n ? ({\n ...column,\n accessorFn: accessor,\n } as any)\n : {\n ...column,\n accessorKey: accessor,\n }\n },\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ): Array<ColumnDef<TFeatures, TData, any>> & [...TColumns] =>\n columns as Array<ColumnDef<TFeatures, TData, any>> & [...TColumns],\n display: (column) => column,\n group: (column) => column,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkGA,SAAgB,qBAGoB;CAClC,OAAO;EACL,WAAW,UAAU,WAAW;GAC9B,OAAO,OAAO,aAAa,aACtB;IACC,GAAG;IACH,YAAY;GACd,IACA;IACE,GAAG;IACH,aAAa;GACf;EACN;EACA,UACE,YAEA;EACF,UAAU,WAAW;EACrB,QAAQ,WAAW;CACrB;AACF"}
@@ -3,7 +3,7 @@ import { AccessorFn, AccessorFnColumnDef, AccessorKeyColumnDef, ColumnDef, Displ
3
3
  import { TableFeatures } from "../types/TableFeatures.cjs";
4
4
 
5
5
  //#region src/helpers/columnHelper.d.ts
6
- type ColumnHelper<TFeatures extends TableFeatures, TData extends RowData> = {
6
+ interface ColumnHelper<in out TFeatures extends TableFeatures, in out TData extends RowData> {
7
7
  /**
8
8
  * Creates a data column definition with an accessor key or function to extract the cell value.
9
9
  * @example
@@ -45,7 +45,7 @@ type ColumnHelper<TFeatures extends TableFeatures, TData extends RowData> = {
45
45
  * ```
46
46
  */
47
47
  group: (column: GroupColumnDef<TFeatures, TData, unknown>) => GroupColumnDef<TFeatures, TData, unknown>;
48
- };
48
+ }
49
49
  /**
50
50
  * Creates helper functions for authoring column definitions with stronger value
51
51
  * inference.
@@ -3,7 +3,7 @@ import { AccessorFn, AccessorFnColumnDef, AccessorKeyColumnDef, ColumnDef, Displ
3
3
  import { TableFeatures } from "../types/TableFeatures.js";
4
4
 
5
5
  //#region src/helpers/columnHelper.d.ts
6
- type ColumnHelper<TFeatures extends TableFeatures, TData extends RowData> = {
6
+ interface ColumnHelper<in out TFeatures extends TableFeatures, in out TData extends RowData> {
7
7
  /**
8
8
  * Creates a data column definition with an accessor key or function to extract the cell value.
9
9
  * @example
@@ -45,7 +45,7 @@ type ColumnHelper<TFeatures extends TableFeatures, TData extends RowData> = {
45
45
  * ```
46
46
  */
47
47
  group: (column: GroupColumnDef<TFeatures, TData, unknown>) => GroupColumnDef<TFeatures, TData, unknown>;
48
- };
48
+ }
49
49
  /**
50
50
  * Creates helper functions for authoring column definitions with stronger value
51
51
  * inference.
@@ -1 +1 @@
1
- {"version":3,"file":"columnHelper.js","names":[],"sources":["../../src/helpers/columnHelper.ts"],"sourcesContent":["import type { DeepKeys, DeepValue, RowData } from '../types/type-utils'\nimport type { TableFeatures } from '../types/TableFeatures'\nimport type {\n AccessorFn,\n AccessorFnColumnDef,\n AccessorKeyColumnDef,\n ColumnDef,\n DisplayColumnDef,\n GroupColumnDef,\n IdentifiedColumnDef,\n} from '../types/ColumnDef'\n\nexport type ColumnHelper<\n TFeatures extends TableFeatures,\n TData extends RowData,\n> = {\n /**\n * Creates a data column definition with an accessor key or function to extract the cell value.\n * @example\n * ```ts\n * helper.accessor('firstName', { cell: (info) => info.getValue() })\n * helper.accessor((row) => row.lastName, { id: 'lastName' })\n * ```\n */\n accessor: <\n TAccessor extends AccessorFn<TData> | DeepKeys<TData>,\n TValue extends TAccessor extends AccessorFn<TData, infer TReturn>\n ? TReturn\n : TAccessor extends DeepKeys<TData>\n ? DeepValue<TData, TAccessor>\n : never,\n >(\n accessor: TAccessor,\n column: TAccessor extends AccessorFn<TData>\n ? DisplayColumnDef<TFeatures, TData, TValue>\n : IdentifiedColumnDef<TFeatures, TData, TValue>,\n ) => TAccessor extends AccessorFn<TData>\n ? AccessorFnColumnDef<TFeatures, TData, TValue>\n : AccessorKeyColumnDef<TFeatures, TData, TValue>\n /**\n * Wraps an array of column definitions to preserve each column's individual TValue type.\n * Uses variadic tuple types to infer element types before checking constraints, preventing type widening.\n * @example\n * ```ts\n * helper.columns([helper.accessor('firstName', {}), helper.accessor('age', {})])\n * ```\n */\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ) => Array<ColumnDef<TFeatures, TData, any>> & [...TColumns]\n /**\n * Creates a display column definition for non-data columns like actions or row selection.\n * @example\n * ```ts\n * helper.display({ id: 'actions', header: 'Actions', cell: () => <button>Edit</button> })\n * ```\n */\n display: (\n column: DisplayColumnDef<TFeatures, TData>,\n ) => DisplayColumnDef<TFeatures, TData, unknown>\n /**\n * Creates a group column definition that contains nested child columns.\n * @example\n * ```ts\n * helper.group({\n * id: 'name',\n * header: 'Name',\n * columns: helper.columns([\n * helper.accessor('firstName', {}),\n * helper.accessor('lastName', { id: 'lastName' }),\n * ]),\n * })\n * ```\n */\n group: (\n column: GroupColumnDef<TFeatures, TData, unknown>,\n ) => GroupColumnDef<TFeatures, TData, unknown>\n}\n\n/**\n * Creates helper functions for authoring column definitions with stronger value\n * inference.\n *\n * `accessor` infers `TValue` from an accessor key or accessor function,\n * `display` creates non-data columns, `group` creates parent columns, and\n * `columns` preserves tuple-level value types for arrays. At runtime these\n * helpers only return column definition objects.\n *\n * @example\n * ```tsx\n * const helper = createColumnHelper<typeof features, Person>() // features is the result of `tableFeatures({})` helper\n * const columns = [\n * helper.display({ id: 'actions', header: 'Actions' }),\n * helper.accessor('firstName', {}),\n * helper.accessor((row) => row.lastName, { id: 'lastName' }),\n * ]\n * ```\n */\nexport function createColumnHelper<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(): ColumnHelper<TFeatures, TData> {\n return {\n accessor: (accessor, column) => {\n return typeof accessor === 'function'\n ? ({\n ...column,\n accessorFn: accessor,\n } as any)\n : {\n ...column,\n accessorKey: accessor,\n }\n },\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ): Array<ColumnDef<TFeatures, TData, any>> & [...TColumns] =>\n columns as Array<ColumnDef<TFeatures, TData, any>> & [...TColumns],\n display: (column) => column,\n group: (column) => column,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkGA,SAAgB,qBAGoB;CAClC,OAAO;EACL,WAAW,UAAU,WAAW;GAC9B,OAAO,OAAO,aAAa,aACtB;IACC,GAAG;IACH,YAAY;GACd,IACA;IACE,GAAG;IACH,aAAa;GACf;EACN;EACA,UACE,YAEA;EACF,UAAU,WAAW;EACrB,QAAQ,WAAW;CACrB;AACF"}
1
+ {"version":3,"file":"columnHelper.js","names":[],"sources":["../../src/helpers/columnHelper.ts"],"sourcesContent":["import type { DeepKeys, DeepValue, RowData } from '../types/type-utils'\nimport type { TableFeatures } from '../types/TableFeatures'\nimport type {\n AccessorFn,\n AccessorFnColumnDef,\n AccessorKeyColumnDef,\n ColumnDef,\n DisplayColumnDef,\n GroupColumnDef,\n IdentifiedColumnDef,\n} from '../types/ColumnDef'\n\nexport interface ColumnHelper<\n in out TFeatures extends TableFeatures,\n in out TData extends RowData,\n> {\n /**\n * Creates a data column definition with an accessor key or function to extract the cell value.\n * @example\n * ```ts\n * helper.accessor('firstName', { cell: (info) => info.getValue() })\n * helper.accessor((row) => row.lastName, { id: 'lastName' })\n * ```\n */\n accessor: <\n TAccessor extends AccessorFn<TData> | DeepKeys<TData>,\n TValue extends TAccessor extends AccessorFn<TData, infer TReturn>\n ? TReturn\n : TAccessor extends DeepKeys<TData>\n ? DeepValue<TData, TAccessor>\n : never,\n >(\n accessor: TAccessor,\n column: TAccessor extends AccessorFn<TData>\n ? DisplayColumnDef<TFeatures, TData, TValue>\n : IdentifiedColumnDef<TFeatures, TData, TValue>,\n ) => TAccessor extends AccessorFn<TData>\n ? AccessorFnColumnDef<TFeatures, TData, TValue>\n : AccessorKeyColumnDef<TFeatures, TData, TValue>\n /**\n * Wraps an array of column definitions to preserve each column's individual TValue type.\n * Uses variadic tuple types to infer element types before checking constraints, preventing type widening.\n * @example\n * ```ts\n * helper.columns([helper.accessor('firstName', {}), helper.accessor('age', {})])\n * ```\n */\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ) => Array<ColumnDef<TFeatures, TData, any>> & [...TColumns]\n /**\n * Creates a display column definition for non-data columns like actions or row selection.\n * @example\n * ```ts\n * helper.display({ id: 'actions', header: 'Actions', cell: () => <button>Edit</button> })\n * ```\n */\n display: (\n column: DisplayColumnDef<TFeatures, TData>,\n ) => DisplayColumnDef<TFeatures, TData, unknown>\n /**\n * Creates a group column definition that contains nested child columns.\n * @example\n * ```ts\n * helper.group({\n * id: 'name',\n * header: 'Name',\n * columns: helper.columns([\n * helper.accessor('firstName', {}),\n * helper.accessor('lastName', { id: 'lastName' }),\n * ]),\n * })\n * ```\n */\n group: (\n column: GroupColumnDef<TFeatures, TData, unknown>,\n ) => GroupColumnDef<TFeatures, TData, unknown>\n}\n\n/**\n * Creates helper functions for authoring column definitions with stronger value\n * inference.\n *\n * `accessor` infers `TValue` from an accessor key or accessor function,\n * `display` creates non-data columns, `group` creates parent columns, and\n * `columns` preserves tuple-level value types for arrays. At runtime these\n * helpers only return column definition objects.\n *\n * @example\n * ```tsx\n * const helper = createColumnHelper<typeof features, Person>() // features is the result of `tableFeatures({})` helper\n * const columns = [\n * helper.display({ id: 'actions', header: 'Actions' }),\n * helper.accessor('firstName', {}),\n * helper.accessor((row) => row.lastName, { id: 'lastName' }),\n * ]\n * ```\n */\nexport function createColumnHelper<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(): ColumnHelper<TFeatures, TData> {\n return {\n accessor: (accessor, column) => {\n return typeof accessor === 'function'\n ? ({\n ...column,\n accessorFn: accessor,\n } as any)\n : {\n ...column,\n accessorKey: accessor,\n }\n },\n columns: <TColumns extends ReadonlyArray<ColumnDef<TFeatures, TData, any>>>(\n columns: [...TColumns],\n ): Array<ColumnDef<TFeatures, TData, any>> & [...TColumns] =>\n columns as Array<ColumnDef<TFeatures, TData, any>> & [...TColumns],\n display: (column) => column,\n group: (column) => column,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkGA,SAAgB,qBAGoB;CAClC,OAAO;EACL,WAAW,UAAU,WAAW;GAC9B,OAAO,OAAO,aAAa,aACtB;IACC,GAAG;IACH,YAAY;GACd,IACA;IACE,GAAG;IACH,aAAa;GACf;EACN;EACA,UACE,YAEA;EACF,UAAU,WAAW;EACrB,QAAQ,WAAW;CACrB;AACF"}
package/dist/index.d.cts CHANGED
@@ -30,7 +30,7 @@ import { CachedRowModel_Paginated, PaginationDefaultOptions, PaginationState, Ta
30
30
  import { CachedRowModel_All, CachedRowModels, CachedRowModels_FeatureMap } from "./types/RowModel.cjs";
31
31
  import { RowModelFns, RowModelFns_All, RowModelFns_Core, RowModelFns_FeatureMap } from "./types/RowModelFns.cjs";
32
32
  import { TableState, TableState_All, TableState_FeatureMap } from "./types/TableState.cjs";
33
- import { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap, TableOptions_FeatureMap_All } from "./types/TableOptions.cjs";
33
+ import { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap } from "./types/TableOptions.cjs";
34
34
  import { Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, ExternalAtoms, ExternalAtoms_All, ExtractTableMeta, TableMeta, TableOptions_Table, Table_CoreProperties, Table_Table } from "./core/table/coreTablesFeature.types.cjs";
35
35
  import { Table, Table_Core, Table_FeatureMap, Table_Internal } from "./types/Table.cjs";
36
36
  import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.cjs";
@@ -76,4 +76,4 @@ import { createGroupedRowModel } from "./features/column-grouping/createGroupedR
76
76
  import { createExpandedRowModel, expandRows } from "./features/row-expanding/createExpandedRowModel.cjs";
77
77
  import { createPaginatedRowModel } from "./features/row-pagination/createPaginatedRowModel.cjs";
78
78
  import { createSortedRowModel } from "./features/row-sorting/createSortedRowModel.cjs";
79
- export { API, APIObject, AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, AggregationFn, AggregationFnOption, AggregationFns, Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortFn, CachedRowModel_All, CachedRowModel_Core, CachedRowModel_Expanded, CachedRowModel_Faceted, CachedRowModel_Filtered, CachedRowModel_Grouped, CachedRowModel_Paginated, CachedRowModel_Sorted, CachedRowModels, CachedRowModels_FeatureMap, Cell, CellContext, CellData, Cell_Cell, Cell_ColumnGrouping, Cell_Core, Cell_CoreProperties, Cell_FeatureMap, Column, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_ColumnFiltering, ColumnDef_ColumnGrouping, ColumnDef_ColumnPinning, ColumnDef_ColumnResizing, ColumnDef_ColumnSizing, ColumnDef_ColumnVisibility, ColumnDef_FeatureMap, ColumnDef_GlobalFiltering, ColumnDef_RowSorting, ColumnDefaultOptions, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderState, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, ColumnSizingDefaultOptions, ColumnSizingState, ColumnSort, ColumnVisibilityState, Column_Column, Column_ColumnFaceting, Column_ColumnFiltering, Column_ColumnGrouping, Column_ColumnOrdering, Column_ColumnPinning, Column_ColumnResizing, Column_ColumnSizing, Column_ColumnVisibility, Column_Core, Column_CoreProperties, Column_FeatureMap, Column_GlobalFiltering, Column_Internal, Column_RowSorting, CoreFeatures, CustomAggregationFns, CustomFilterFns, CustomSortFns, DebugOptions, DeepKeys, DeepValue, DisplayColumnDef, ExpandedState, ExpandedStateList, ExternalAtoms, ExternalAtoms_All, ExtractAggregationFnKeys, ExtractColumnMeta, ExtractFeatureMapTypes, ExtractFilterFnKeys, ExtractFilterMeta, ExtractSortFnKeys, ExtractTableMeta, FeatureSlotPrereqs, FilterFn, FilterFnOption, FilterFns, FilterMeta, Getter, GroupColumnDef, GroupingColumnMode, GroupingState, Header, HeaderContext, HeaderGroup, HeaderGroup_Core, HeaderGroup_Header, Header_ColumnResizing, Header_ColumnSizing, Header_Core, Header_CoreProperties, Header_FeatureMap, Header_Header, IdIdentifier, IdentifiedColumnDef, IsAny, NoInfer, NonFeatureKeys, OnChangeFn, PaginationDefaultOptions, PaginationState, PartialKeys, Plugins, Prettify, PrototypeAPI, PrototypeAPIObject, RequiredKeys, ResolvedColumnFilter, Row, RowData, RowModel, RowModelFns, RowModelFns_All, RowModelFns_ColumnFiltering, RowModelFns_ColumnGrouping, RowModelFns_Core, RowModelFns_FeatureMap, RowModelFns_RowSorting, RowPinningDefaultOptions, RowPinningPosition, RowPinningState, RowSelectionState, Row_ColumnFiltering, Row_ColumnGrouping, Row_ColumnPinning, Row_ColumnVisibility, Row_Core, Row_CoreProperties, Row_FeatureMap, Row_Row, Row_RowExpanding, Row_RowPinning, Row_RowSelection, SortDirection, SortFn, SortFnOption, SortFns, SortingState, StockFeatures, StringHeaderIdentifier, StringOrTemplateHeader, Table, TableFeature, TableFeatures, TableMeta, TableOptions, TableOptions_All, TableOptions_Cell, TableOptions_ColumnFiltering, TableOptions_ColumnGrouping, TableOptions_ColumnOrdering, TableOptions_ColumnPinning, TableOptions_ColumnResizing, TableOptions_ColumnSizing, TableOptions_ColumnVisibility, TableOptions_Columns, TableOptions_Core, TableOptions_FeatureMap, TableOptions_FeatureMap_All, TableOptions_GlobalFiltering, TableOptions_RowExpanding, TableOptions_RowPagination, TableOptions_RowPinning, TableOptions_RowSelection, TableOptions_RowSorting, TableOptions_Rows, TableOptions_Table, TableState, TableState_All, TableState_ColumnFiltering, TableState_ColumnGrouping, TableState_ColumnOrdering, TableState_ColumnPinning, TableState_ColumnResizing, TableState_ColumnSizing, TableState_ColumnVisibility, TableState_FeatureMap, TableState_GlobalFiltering, TableState_RowExpanding, TableState_RowPagination, TableState_RowPinning, TableState_RowSelection, TableState_RowSorting, Table_ColumnFaceting, Table_ColumnFiltering, Table_ColumnGrouping, Table_ColumnOrdering, Table_ColumnPinning, Table_ColumnResizing, Table_ColumnSizing, Table_ColumnVisibility, Table_Columns, Table_Core, Table_CoreProperties, Table_FeatureMap, Table_GlobalFiltering, Table_Headers, Table_Internal, Table_RowExpanding, Table_RowModels, Table_RowModels_Core, Table_RowModels_Expanded, Table_RowModels_Faceted, Table_RowModels_Filtered, Table_RowModels_Grouped, Table_RowModels_Paginated, Table_RowModels_Sorted, Table_RowPagination, Table_RowPinning, Table_RowSelection, Table_RowSorting, Table_Rows, Table_Table, TransformFilterValueFn, UnionToIntersection, Updater, ValidateFeatureSlots, VisibilityDefaultOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnResizingState, columnSizingFeature, columnVisibilityFeature, constructCell, constructColumn, constructHeader, constructRow, constructTable, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, isFunction, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
79
+ export { API, APIObject, AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, AggregationFn, AggregationFnOption, AggregationFns, Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortFn, CachedRowModel_All, CachedRowModel_Core, CachedRowModel_Expanded, CachedRowModel_Faceted, CachedRowModel_Filtered, CachedRowModel_Grouped, CachedRowModel_Paginated, CachedRowModel_Sorted, CachedRowModels, CachedRowModels_FeatureMap, Cell, CellContext, CellData, Cell_Cell, Cell_ColumnGrouping, Cell_Core, Cell_CoreProperties, Cell_FeatureMap, Column, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_ColumnFiltering, ColumnDef_ColumnGrouping, ColumnDef_ColumnPinning, ColumnDef_ColumnResizing, ColumnDef_ColumnSizing, ColumnDef_ColumnVisibility, ColumnDef_FeatureMap, ColumnDef_GlobalFiltering, ColumnDef_RowSorting, ColumnDefaultOptions, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderState, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, ColumnSizingDefaultOptions, ColumnSizingState, ColumnSort, ColumnVisibilityState, Column_Column, Column_ColumnFaceting, Column_ColumnFiltering, Column_ColumnGrouping, Column_ColumnOrdering, Column_ColumnPinning, Column_ColumnResizing, Column_ColumnSizing, Column_ColumnVisibility, Column_Core, Column_CoreProperties, Column_FeatureMap, Column_GlobalFiltering, Column_Internal, Column_RowSorting, CoreFeatures, CustomAggregationFns, CustomFilterFns, CustomSortFns, DebugOptions, DeepKeys, DeepValue, DisplayColumnDef, ExpandedState, ExpandedStateList, ExternalAtoms, ExternalAtoms_All, ExtractAggregationFnKeys, ExtractColumnMeta, ExtractFeatureMapTypes, ExtractFilterFnKeys, ExtractFilterMeta, ExtractSortFnKeys, ExtractTableMeta, FeatureSlotPrereqs, FilterFn, FilterFnOption, FilterFns, FilterMeta, Getter, GroupColumnDef, GroupingColumnMode, GroupingState, Header, HeaderContext, HeaderGroup, HeaderGroup_Core, HeaderGroup_Header, Header_ColumnResizing, Header_ColumnSizing, Header_Core, Header_CoreProperties, Header_FeatureMap, Header_Header, IdIdentifier, IdentifiedColumnDef, IsAny, NoInfer, NonFeatureKeys, OnChangeFn, PaginationDefaultOptions, PaginationState, PartialKeys, Plugins, Prettify, PrototypeAPI, PrototypeAPIObject, RequiredKeys, ResolvedColumnFilter, Row, RowData, RowModel, RowModelFns, RowModelFns_All, RowModelFns_ColumnFiltering, RowModelFns_ColumnGrouping, RowModelFns_Core, RowModelFns_FeatureMap, RowModelFns_RowSorting, RowPinningDefaultOptions, RowPinningPosition, RowPinningState, RowSelectionState, Row_ColumnFiltering, Row_ColumnGrouping, Row_ColumnPinning, Row_ColumnVisibility, Row_Core, Row_CoreProperties, Row_FeatureMap, Row_Row, Row_RowExpanding, Row_RowPinning, Row_RowSelection, SortDirection, SortFn, SortFnOption, SortFns, SortingState, StockFeatures, StringHeaderIdentifier, StringOrTemplateHeader, Table, TableFeature, TableFeatures, TableMeta, TableOptions, TableOptions_All, TableOptions_Cell, TableOptions_ColumnFiltering, TableOptions_ColumnGrouping, TableOptions_ColumnOrdering, TableOptions_ColumnPinning, TableOptions_ColumnResizing, TableOptions_ColumnSizing, TableOptions_ColumnVisibility, TableOptions_Columns, TableOptions_Core, TableOptions_FeatureMap, TableOptions_GlobalFiltering, TableOptions_RowExpanding, TableOptions_RowPagination, TableOptions_RowPinning, TableOptions_RowSelection, TableOptions_RowSorting, TableOptions_Rows, TableOptions_Table, TableState, TableState_All, TableState_ColumnFiltering, TableState_ColumnGrouping, TableState_ColumnOrdering, TableState_ColumnPinning, TableState_ColumnResizing, TableState_ColumnSizing, TableState_ColumnVisibility, TableState_FeatureMap, TableState_GlobalFiltering, TableState_RowExpanding, TableState_RowPagination, TableState_RowPinning, TableState_RowSelection, TableState_RowSorting, Table_ColumnFaceting, Table_ColumnFiltering, Table_ColumnGrouping, Table_ColumnOrdering, Table_ColumnPinning, Table_ColumnResizing, Table_ColumnSizing, Table_ColumnVisibility, Table_Columns, Table_Core, Table_CoreProperties, Table_FeatureMap, Table_GlobalFiltering, Table_Headers, Table_Internal, Table_RowExpanding, Table_RowModels, Table_RowModels_Core, Table_RowModels_Expanded, Table_RowModels_Faceted, Table_RowModels_Filtered, Table_RowModels_Grouped, Table_RowModels_Paginated, Table_RowModels_Sorted, Table_RowPagination, Table_RowPinning, Table_RowSelection, Table_RowSorting, Table_Rows, Table_Table, TransformFilterValueFn, UnionToIntersection, Updater, ValidateFeatureSlots, VisibilityDefaultOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnResizingState, columnSizingFeature, columnVisibilityFeature, constructCell, constructColumn, constructHeader, constructRow, constructTable, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, isFunction, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@ import { CachedRowModel_Paginated, PaginationDefaultOptions, PaginationState, Ta
30
30
  import { CachedRowModel_All, CachedRowModels, CachedRowModels_FeatureMap } from "./types/RowModel.js";
31
31
  import { RowModelFns, RowModelFns_All, RowModelFns_Core, RowModelFns_FeatureMap } from "./types/RowModelFns.js";
32
32
  import { TableState, TableState_All, TableState_FeatureMap } from "./types/TableState.js";
33
- import { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap, TableOptions_FeatureMap_All } from "./types/TableOptions.js";
33
+ import { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap } from "./types/TableOptions.js";
34
34
  import { Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, ExternalAtoms, ExternalAtoms_All, ExtractTableMeta, TableMeta, TableOptions_Table, Table_CoreProperties, Table_Table } from "./core/table/coreTablesFeature.types.js";
35
35
  import { Table, Table_Core, Table_FeatureMap, Table_Internal } from "./types/Table.js";
36
36
  import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.js";
@@ -76,4 +76,4 @@ import { createGroupedRowModel } from "./features/column-grouping/createGroupedR
76
76
  import { createExpandedRowModel, expandRows } from "./features/row-expanding/createExpandedRowModel.js";
77
77
  import { createPaginatedRowModel } from "./features/row-pagination/createPaginatedRowModel.js";
78
78
  import { createSortedRowModel } from "./features/row-sorting/createSortedRowModel.js";
79
- export { API, APIObject, AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, AggregationFn, AggregationFnOption, AggregationFns, Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortFn, CachedRowModel_All, CachedRowModel_Core, CachedRowModel_Expanded, CachedRowModel_Faceted, CachedRowModel_Filtered, CachedRowModel_Grouped, CachedRowModel_Paginated, CachedRowModel_Sorted, CachedRowModels, CachedRowModels_FeatureMap, Cell, CellContext, CellData, Cell_Cell, Cell_ColumnGrouping, Cell_Core, Cell_CoreProperties, Cell_FeatureMap, Column, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_ColumnFiltering, ColumnDef_ColumnGrouping, ColumnDef_ColumnPinning, ColumnDef_ColumnResizing, ColumnDef_ColumnSizing, ColumnDef_ColumnVisibility, ColumnDef_FeatureMap, ColumnDef_GlobalFiltering, ColumnDef_RowSorting, ColumnDefaultOptions, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderState, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, ColumnSizingDefaultOptions, ColumnSizingState, ColumnSort, ColumnVisibilityState, Column_Column, Column_ColumnFaceting, Column_ColumnFiltering, Column_ColumnGrouping, Column_ColumnOrdering, Column_ColumnPinning, Column_ColumnResizing, Column_ColumnSizing, Column_ColumnVisibility, Column_Core, Column_CoreProperties, Column_FeatureMap, Column_GlobalFiltering, Column_Internal, Column_RowSorting, CoreFeatures, CustomAggregationFns, CustomFilterFns, CustomSortFns, DebugOptions, DeepKeys, DeepValue, DisplayColumnDef, ExpandedState, ExpandedStateList, ExternalAtoms, ExternalAtoms_All, ExtractAggregationFnKeys, ExtractColumnMeta, ExtractFeatureMapTypes, ExtractFilterFnKeys, ExtractFilterMeta, ExtractSortFnKeys, ExtractTableMeta, FeatureSlotPrereqs, FilterFn, FilterFnOption, FilterFns, FilterMeta, Getter, GroupColumnDef, GroupingColumnMode, GroupingState, Header, HeaderContext, HeaderGroup, HeaderGroup_Core, HeaderGroup_Header, Header_ColumnResizing, Header_ColumnSizing, Header_Core, Header_CoreProperties, Header_FeatureMap, Header_Header, IdIdentifier, IdentifiedColumnDef, IsAny, NoInfer, NonFeatureKeys, OnChangeFn, PaginationDefaultOptions, PaginationState, PartialKeys, Plugins, Prettify, PrototypeAPI, PrototypeAPIObject, RequiredKeys, ResolvedColumnFilter, Row, RowData, RowModel, RowModelFns, RowModelFns_All, RowModelFns_ColumnFiltering, RowModelFns_ColumnGrouping, RowModelFns_Core, RowModelFns_FeatureMap, RowModelFns_RowSorting, RowPinningDefaultOptions, RowPinningPosition, RowPinningState, RowSelectionState, Row_ColumnFiltering, Row_ColumnGrouping, Row_ColumnPinning, Row_ColumnVisibility, Row_Core, Row_CoreProperties, Row_FeatureMap, Row_Row, Row_RowExpanding, Row_RowPinning, Row_RowSelection, SortDirection, SortFn, SortFnOption, SortFns, SortingState, StockFeatures, StringHeaderIdentifier, StringOrTemplateHeader, Table, TableFeature, TableFeatures, TableMeta, TableOptions, TableOptions_All, TableOptions_Cell, TableOptions_ColumnFiltering, TableOptions_ColumnGrouping, TableOptions_ColumnOrdering, TableOptions_ColumnPinning, TableOptions_ColumnResizing, TableOptions_ColumnSizing, TableOptions_ColumnVisibility, TableOptions_Columns, TableOptions_Core, TableOptions_FeatureMap, TableOptions_FeatureMap_All, TableOptions_GlobalFiltering, TableOptions_RowExpanding, TableOptions_RowPagination, TableOptions_RowPinning, TableOptions_RowSelection, TableOptions_RowSorting, TableOptions_Rows, TableOptions_Table, TableState, TableState_All, TableState_ColumnFiltering, TableState_ColumnGrouping, TableState_ColumnOrdering, TableState_ColumnPinning, TableState_ColumnResizing, TableState_ColumnSizing, TableState_ColumnVisibility, TableState_FeatureMap, TableState_GlobalFiltering, TableState_RowExpanding, TableState_RowPagination, TableState_RowPinning, TableState_RowSelection, TableState_RowSorting, Table_ColumnFaceting, Table_ColumnFiltering, Table_ColumnGrouping, Table_ColumnOrdering, Table_ColumnPinning, Table_ColumnResizing, Table_ColumnSizing, Table_ColumnVisibility, Table_Columns, Table_Core, Table_CoreProperties, Table_FeatureMap, Table_GlobalFiltering, Table_Headers, Table_Internal, Table_RowExpanding, Table_RowModels, Table_RowModels_Core, Table_RowModels_Expanded, Table_RowModels_Faceted, Table_RowModels_Filtered, Table_RowModels_Grouped, Table_RowModels_Paginated, Table_RowModels_Sorted, Table_RowPagination, Table_RowPinning, Table_RowSelection, Table_RowSorting, Table_Rows, Table_Table, TransformFilterValueFn, UnionToIntersection, Updater, ValidateFeatureSlots, VisibilityDefaultOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnResizingState, columnSizingFeature, columnVisibilityFeature, constructCell, constructColumn, constructHeader, constructRow, constructTable, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, isFunction, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
79
+ export { API, APIObject, AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, AggregationFn, AggregationFnOption, AggregationFns, Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortFn, CachedRowModel_All, CachedRowModel_Core, CachedRowModel_Expanded, CachedRowModel_Faceted, CachedRowModel_Filtered, CachedRowModel_Grouped, CachedRowModel_Paginated, CachedRowModel_Sorted, CachedRowModels, CachedRowModels_FeatureMap, Cell, CellContext, CellData, Cell_Cell, Cell_ColumnGrouping, Cell_Core, Cell_CoreProperties, Cell_FeatureMap, Column, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_ColumnFiltering, ColumnDef_ColumnGrouping, ColumnDef_ColumnPinning, ColumnDef_ColumnResizing, ColumnDef_ColumnSizing, ColumnDef_ColumnVisibility, ColumnDef_FeatureMap, ColumnDef_GlobalFiltering, ColumnDef_RowSorting, ColumnDefaultOptions, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderState, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, ColumnSizingDefaultOptions, ColumnSizingState, ColumnSort, ColumnVisibilityState, Column_Column, Column_ColumnFaceting, Column_ColumnFiltering, Column_ColumnGrouping, Column_ColumnOrdering, Column_ColumnPinning, Column_ColumnResizing, Column_ColumnSizing, Column_ColumnVisibility, Column_Core, Column_CoreProperties, Column_FeatureMap, Column_GlobalFiltering, Column_Internal, Column_RowSorting, CoreFeatures, CustomAggregationFns, CustomFilterFns, CustomSortFns, DebugOptions, DeepKeys, DeepValue, DisplayColumnDef, ExpandedState, ExpandedStateList, ExternalAtoms, ExternalAtoms_All, ExtractAggregationFnKeys, ExtractColumnMeta, ExtractFeatureMapTypes, ExtractFilterFnKeys, ExtractFilterMeta, ExtractSortFnKeys, ExtractTableMeta, FeatureSlotPrereqs, FilterFn, FilterFnOption, FilterFns, FilterMeta, Getter, GroupColumnDef, GroupingColumnMode, GroupingState, Header, HeaderContext, HeaderGroup, HeaderGroup_Core, HeaderGroup_Header, Header_ColumnResizing, Header_ColumnSizing, Header_Core, Header_CoreProperties, Header_FeatureMap, Header_Header, IdIdentifier, IdentifiedColumnDef, IsAny, NoInfer, NonFeatureKeys, OnChangeFn, PaginationDefaultOptions, PaginationState, PartialKeys, Plugins, Prettify, PrototypeAPI, PrototypeAPIObject, RequiredKeys, ResolvedColumnFilter, Row, RowData, RowModel, RowModelFns, RowModelFns_All, RowModelFns_ColumnFiltering, RowModelFns_ColumnGrouping, RowModelFns_Core, RowModelFns_FeatureMap, RowModelFns_RowSorting, RowPinningDefaultOptions, RowPinningPosition, RowPinningState, RowSelectionState, Row_ColumnFiltering, Row_ColumnGrouping, Row_ColumnPinning, Row_ColumnVisibility, Row_Core, Row_CoreProperties, Row_FeatureMap, Row_Row, Row_RowExpanding, Row_RowPinning, Row_RowSelection, SortDirection, SortFn, SortFnOption, SortFns, SortingState, StockFeatures, StringHeaderIdentifier, StringOrTemplateHeader, Table, TableFeature, TableFeatures, TableMeta, TableOptions, TableOptions_All, TableOptions_Cell, TableOptions_ColumnFiltering, TableOptions_ColumnGrouping, TableOptions_ColumnOrdering, TableOptions_ColumnPinning, TableOptions_ColumnResizing, TableOptions_ColumnSizing, TableOptions_ColumnVisibility, TableOptions_Columns, TableOptions_Core, TableOptions_FeatureMap, TableOptions_GlobalFiltering, TableOptions_RowExpanding, TableOptions_RowPagination, TableOptions_RowPinning, TableOptions_RowSelection, TableOptions_RowSorting, TableOptions_Rows, TableOptions_Table, TableState, TableState_All, TableState_ColumnFiltering, TableState_ColumnGrouping, TableState_ColumnOrdering, TableState_ColumnPinning, TableState_ColumnResizing, TableState_ColumnSizing, TableState_ColumnVisibility, TableState_FeatureMap, TableState_GlobalFiltering, TableState_RowExpanding, TableState_RowPagination, TableState_RowPinning, TableState_RowSelection, TableState_RowSorting, Table_ColumnFaceting, Table_ColumnFiltering, Table_ColumnGrouping, Table_ColumnOrdering, Table_ColumnPinning, Table_ColumnResizing, Table_ColumnSizing, Table_ColumnVisibility, Table_Columns, Table_Core, Table_CoreProperties, Table_FeatureMap, Table_GlobalFiltering, Table_Headers, Table_Internal, Table_RowExpanding, Table_RowModels, Table_RowModels_Core, Table_RowModels_Expanded, Table_RowModels_Faceted, Table_RowModels_Filtered, Table_RowModels_Grouped, Table_RowModels_Paginated, Table_RowModels_Sorted, Table_RowPagination, Table_RowPinning, Table_RowSelection, Table_RowSorting, Table_Rows, Table_Table, TransformFilterValueFn, UnionToIntersection, Updater, ValidateFeatureSlots, VisibilityDefaultOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnResizingState, columnSizingFeature, columnVisibilityFeature, constructCell, constructColumn, constructHeader, constructRow, constructTable, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, isFunction, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
@@ -4,7 +4,7 @@ import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.cjs";
4
4
  import { Cell_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.cjs";
5
5
 
6
6
  //#region src/types/Cell.d.ts
7
- interface Cell_Core<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> extends Cell_Cell<TFeatures, TData, TValue> {}
7
+ interface Cell_Core<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> extends Cell_Cell<TFeatures, TData, TValue> {}
8
8
  interface Cell_FeatureMap {
9
9
  columnGroupingFeature: Cell_ColumnGrouping;
10
10
  }
@@ -4,7 +4,7 @@ import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
4
4
  import { Cell_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.js";
5
5
 
6
6
  //#region src/types/Cell.d.ts
7
- interface Cell_Core<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> extends Cell_Cell<TFeatures, TData, TValue> {}
7
+ interface Cell_Core<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> extends Cell_Cell<TFeatures, TData, TValue> {}
8
8
  interface Cell_FeatureMap {
9
9
  columnGroupingFeature: Cell_ColumnGrouping;
10
10
  }