@tanstack/table-core 9.0.0-beta.19 → 9.0.0-beta.20

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 (79) hide show
  1. package/dist/core/cells/constructCell.d.cts +1 -1
  2. package/dist/core/cells/constructCell.d.ts +1 -1
  3. package/dist/core/cells/coreCellsFeature.types.d.cts +1 -1
  4. package/dist/core/cells/coreCellsFeature.types.d.ts +1 -1
  5. package/dist/core/cells/coreCellsFeature.utils.d.cts +1 -1
  6. package/dist/core/cells/coreCellsFeature.utils.d.ts +1 -1
  7. package/dist/core/columns/constructColumn.cjs +5 -0
  8. package/dist/core/columns/constructColumn.cjs.map +1 -1
  9. package/dist/core/columns/constructColumn.d.cts +2 -2
  10. package/dist/core/columns/constructColumn.d.ts +2 -2
  11. package/dist/core/columns/constructColumn.js +5 -0
  12. package/dist/core/columns/constructColumn.js.map +1 -1
  13. package/dist/core/columns/coreColumnsFeature.types.d.cts +2 -2
  14. package/dist/core/columns/coreColumnsFeature.types.d.ts +2 -2
  15. package/dist/core/columns/coreColumnsFeature.utils.d.cts +2 -2
  16. package/dist/core/columns/coreColumnsFeature.utils.d.ts +2 -2
  17. package/dist/core/headers/buildHeaderGroups.d.cts +1 -1
  18. package/dist/core/headers/buildHeaderGroups.d.ts +1 -1
  19. package/dist/core/headers/constructHeader.d.cts +1 -1
  20. package/dist/core/headers/constructHeader.d.ts +1 -1
  21. package/dist/core/headers/coreHeadersFeature.types.d.cts +1 -1
  22. package/dist/core/headers/coreHeadersFeature.types.d.ts +1 -1
  23. package/dist/core/headers/coreHeadersFeature.utils.d.cts +1 -1
  24. package/dist/core/headers/coreHeadersFeature.utils.d.ts +1 -1
  25. package/dist/core/row-models/coreRowModelsFeature.types.d.cts +1 -1
  26. package/dist/core/row-models/coreRowModelsFeature.types.d.ts +1 -1
  27. package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +1 -1
  28. package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +1 -1
  29. package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +1 -1
  30. package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +1 -1
  31. package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +1 -1
  32. package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +1 -1
  33. package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +1 -1
  34. package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +1 -1
  35. package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +1 -1
  36. package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +1 -1
  37. package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +1 -1
  38. package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +1 -1
  39. package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +1 -1
  40. package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +1 -1
  41. package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +1 -1
  42. package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +1 -1
  43. package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +1 -1
  44. package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +1 -1
  45. package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +1 -1
  46. package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +1 -1
  47. package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +1 -1
  48. package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +1 -1
  49. package/dist/features/row-pinning/rowPinningFeature.utils.cjs +2 -2
  50. package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -1
  51. package/dist/features/row-pinning/rowPinningFeature.utils.js +2 -2
  52. package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -1
  53. package/dist/features/row-sorting/rowSortingFeature.types.d.cts +1 -1
  54. package/dist/features/row-sorting/rowSortingFeature.types.d.ts +1 -1
  55. package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +1 -1
  56. package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +1 -1
  57. package/dist/index.d.cts +9 -9
  58. package/dist/index.d.ts +9 -9
  59. package/dist/types/Column.d.cts +4 -4
  60. package/dist/types/Column.d.ts +4 -4
  61. package/dist/types/ColumnDef.d.cts +3 -3
  62. package/dist/types/ColumnDef.d.ts +3 -3
  63. package/dist/types/Row.d.cts +1 -1
  64. package/dist/types/Row.d.ts +1 -1
  65. package/dist/types/RowModel.d.cts +1 -1
  66. package/dist/types/RowModel.d.ts +1 -1
  67. package/dist/types/RowModelFns.d.cts +1 -1
  68. package/dist/types/RowModelFns.d.ts +1 -1
  69. package/dist/types/Table.d.cts +5 -5
  70. package/dist/types/Table.d.ts +5 -5
  71. package/dist/types/TableFeatures.d.cts +154 -15
  72. package/dist/types/TableFeatures.d.ts +154 -15
  73. package/dist/types/TableOptions.d.cts +6 -6
  74. package/dist/types/TableOptions.d.ts +6 -6
  75. package/dist/types/TableState.d.cts +4 -4
  76. package/dist/types/TableState.d.ts +4 -4
  77. package/package.json +1 -1
  78. package/src/core/columns/constructColumn.ts +6 -0
  79. package/src/types/TableFeatures.ts +161 -15
@@ -1 +1 @@
1
- {"version":3,"file":"rowPinningFeature.utils.cjs","names":["cloneState","row_getIsAllParentsExpanded","callMemoOrStaticFn"],"sources":["../../../src/features/row-pinning/rowPinningFeature.utils.ts"],"sourcesContent":["import { row_getIsAllParentsExpanded } from '../row-expanding/rowExpandingFeature.utils'\nimport { callMemoOrStaticFn, cloneState } from '../../utils'\nimport type { RowData, Updater } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\nimport type { Row } from '../../types/Row'\nimport type {\n RowPinningPosition,\n RowPinningState,\n} from './rowPinningFeature.types'\n\n// State Utils\n\n/**\n * Creates the default row pinning state.\n *\n * Both pinning regions start empty. Reset APIs use this value when\n * `defaultState` is `true`.\n *\n * @example\n * ```ts\n * const pinning = getDefaultRowPinningState()\n * ```\n */\nexport function getDefaultRowPinningState(): RowPinningState {\n return {\n top: [],\n bottom: [],\n }\n}\n\n/**\n * Routes a row pinning updater through the table's row-pinning change handler.\n *\n * The updater may be a next `{ top, bottom }` state or a function of the\n * previous state, matching the instance `table.setRowPinning` behavior.\n *\n * @example\n * ```ts\n * table_setRowPinning(table, (old) => ({ ...old, top: [rowId] }))\n * ```\n */\nexport function table_setRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n updater: Updater<RowPinningState>,\n): void {\n table.options.onRowPinningChange?.(updater)\n}\n\n/**\n * Resets `rowPinning` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.rowPinning` when it\n * exists. Passing `true` ignores initial state and resets to empty top/bottom\n * arrays.\n *\n * @example\n * ```ts\n * table_resetRowPinning(table)\n * table_resetRowPinning(table, true)\n * ```\n */\nexport function table_resetRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void {\n table_setRowPinning(\n table,\n defaultState\n ? getDefaultRowPinningState()\n : cloneState(\n table.initialState.rowPinning ?? getDefaultRowPinningState(),\n ),\n )\n}\n\n// Table Utils\n\n/**\n * Checks whether any rows are pinned.\n *\n * Omit `position` to check both regions, or pass `'top'`/`'bottom'` to inspect\n * one region.\n *\n * @example\n * ```ts\n * const hasPinnedRows = table_getIsSomeRowsPinned(table)\n * ```\n */\nexport function table_getIsSomeRowsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position?: RowPinningPosition,\n): boolean {\n const rowPinning = table.atoms.rowPinning?.get()\n\n if (!position) {\n return Boolean(rowPinning?.top.length || rowPinning?.bottom.length)\n }\n return Boolean(rowPinning?.[position].length)\n}\n\nfunction table_getPinnedRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position: 'top' | 'bottom',\n): Array<Row<TFeatures, TData>> {\n const visibleRows = table.getRowModel().rows\n const pinnedRowIds = table.atoms.rowPinning?.get()?.[position] ?? []\n const keepPinnedRows = table.options.keepPinnedRows ?? true\n\n const result: Array<Row<TFeatures, TData>> = []\n for (let i = 0; i < pinnedRowIds.length; i++) {\n const rowId = pinnedRowIds[i]!\n let row: Row<TFeatures, TData> | undefined\n if (keepPinnedRows) {\n // get all rows that are pinned even if they would not be otherwise\n // visible; account for expanded parent rows, but not pagination/filtering\n const fullRow = table.getRow(rowId, true)\n if (row_getIsAllParentsExpanded(fullRow)) row = fullRow\n } else {\n // else get only visible rows that are pinned\n row = visibleRows.find((r) => r.id === rowId)\n }\n if (!row)\n continue\n // Assign position property directly to preserve prototype chain\n ;(row as any).position = position\n result.push(row)\n }\n return result\n}\n\n/**\n * Resolves the visible rows pinned to the top region.\n *\n * The result follows `state.rowPinning.top` order and marks each row with\n * `position = 'top'`.\n *\n * @example\n * ```ts\n * const rows = table_getTopRows(table)\n * ```\n */\nexport function table_getTopRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'top')\n}\n\n/**\n * Resolves the visible rows pinned to the bottom region.\n *\n * The result follows `state.rowPinning.bottom` order and marks each row with\n * `position = 'bottom'`.\n *\n * @example\n * ```ts\n * const rows = table_getBottomRows(table)\n * ```\n */\nexport function table_getBottomRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'bottom')\n}\n\n/**\n * Resolves rows that are not pinned to top or bottom.\n *\n * The current row model is filtered by `state.rowPinning.top` and\n * `state.rowPinning.bottom`.\n *\n * @example\n * ```ts\n * const rows = table_getCenterRows(table)\n * ```\n */\nexport function table_getCenterRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n const { top, bottom } =\n table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n const allRows = table.getRowModel().rows\n\n const topAndBottom = new Set([...top, ...bottom])\n return allRows.filter((d) => !topAndBottom.has(d.id))\n}\n\n// Row Utils\n\n/**\n * Checks whether this row can be pinned.\n *\n * `options.enableRowPinning` may be a boolean or a row predicate; it defaults\n * to `true`.\n *\n * @example\n * ```ts\n * const canPin = row_getCanPin(row)\n * ```\n */\nexport function row_getCanPin<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): boolean {\n const { enableRowPinning } = row.table.options\n if (typeof enableRowPinning === 'function') {\n return enableRowPinning(row)\n }\n return enableRowPinning ?? true\n}\n\n/**\n * Reads this row's current pinning region.\n *\n * Rows listed in `state.rowPinning.top` return `'top'`, rows listed in\n * `bottom` return `'bottom'`, and unpinned rows return `false`.\n *\n * @example\n * ```ts\n * const position = row_getIsPinned(row)\n * ```\n */\nexport function row_getIsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): RowPinningPosition {\n const { top, bottom } =\n row.table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n\n return top.includes(row.id)\n ? 'top'\n : bottom.includes(row.id)\n ? 'bottom'\n : false\n}\n\n/**\n * Finds this row's visible index within its pinned region.\n *\n * Unpinned rows return `-1`.\n *\n * @example\n * ```ts\n * const index = row_getPinnedIndex(row)\n * ```\n */\nexport function row_getPinnedIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): number {\n const position = row_getIsPinned(row)\n if (!position) return -1\n\n const visiblePinnedRowIds = (\n position === 'top'\n ? callMemoOrStaticFn(row.table, 'getTopRows', table_getTopRows)\n : callMemoOrStaticFn(row.table, 'getBottomRows', table_getBottomRows)\n ).map(({ id }) => id)\n\n return visiblePinnedRowIds.indexOf(row.id)\n}\n\n/**\n * Pins or unpins a row.\n *\n * Optional flags let callers include parent rows or leaf rows when updating\n * the row pinning state.\n *\n * @example\n * ```ts\n * row_pin(row, 'top')\n * ```\n */\nexport function row_pin<TFeatures extends TableFeatures, TData extends RowData>(\n row: Row<TFeatures, TData>,\n position: RowPinningPosition,\n includeLeafRows?: boolean,\n includeParentRows?: boolean,\n): void {\n const leafRowIds = includeLeafRows\n ? row.getLeafRows().map(({ id }) => id)\n : []\n const parentRowIds = includeParentRows\n ? row.getParentRows().map(({ id }) => id)\n : []\n const rowIds: Set<string> = new Set([...parentRowIds, row.id, ...leafRowIds])\n\n table_setRowPinning(row.table, (old) => {\n if (position === 'bottom') {\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: [\n ...old.bottom.filter((d) => !rowIds.has(d)),\n ...Array.from(rowIds),\n ],\n }\n }\n\n if (position === 'top') {\n return {\n top: [...old.top.filter((d) => !rowIds.has(d)), ...Array.from(rowIds)],\n bottom: old.bottom.filter((d) => !rowIds.has(d)),\n }\n }\n\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: old.bottom.filter((d) => !rowIds.has(d)),\n }\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;AAwBA,SAAgB,4BAA6C;CAC3D,OAAO;EACL,KAAK,CAAC;EACN,QAAQ,CAAC;CACX;AACF;;;;;;;;;;;;AAaA,SAAgB,oBAId,OACA,SACM;;CACN,iDAAM,SAAQ,+GAAqB,OAAO;AAC5C;;;;;;;;;;;;;;AAeA,SAAgB,sBAGd,OAAyC,cAA8B;CACvE,oBACE,OACA,eACI,0BAA0B,IAC1BA,yBACE,MAAM,aAAa,cAAc,0BAA0B,CAC7D,CACN;AACF;;;;;;;;;;;;AAeA,SAAgB,0BAId,OACA,UACS;;CACT,MAAM,sCAAa,MAAM,MAAM,0FAAY,IAAI;CAE/C,IAAI,CAAC,UACH,OAAO,iEAAQ,WAAY,IAAI,oEAAU,WAAY,OAAO,OAAM;CAEpE,OAAO,gEAAQ,WAAa,SAAS,CAAC,MAAM;AAC9C;AAEA,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,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;GACzC,QAAQ,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;EACjD;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"rowPinningFeature.utils.cjs","names":["cloneState","row_getIsAllParentsExpanded","callMemoOrStaticFn"],"sources":["../../../src/features/row-pinning/rowPinningFeature.utils.ts"],"sourcesContent":["import { row_getIsAllParentsExpanded } from '../row-expanding/rowExpandingFeature.utils'\nimport { callMemoOrStaticFn, cloneState } from '../../utils'\nimport type { RowData, Updater } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\nimport type { Row } from '../../types/Row'\nimport type {\n RowPinningPosition,\n RowPinningState,\n} from './rowPinningFeature.types'\n\n// State Utils\n\n/**\n * Creates the default row pinning state.\n *\n * Both pinning regions start empty. Reset APIs use this value when\n * `defaultState` is `true`.\n *\n * @example\n * ```ts\n * const pinning = getDefaultRowPinningState()\n * ```\n */\nexport function getDefaultRowPinningState(): RowPinningState {\n return {\n top: [],\n bottom: [],\n }\n}\n\n/**\n * Routes a row pinning updater through the table's row-pinning change handler.\n *\n * The updater may be a next `{ top, bottom }` state or a function of the\n * previous state, matching the instance `table.setRowPinning` behavior.\n *\n * @example\n * ```ts\n * table_setRowPinning(table, (old) => ({ ...old, top: [rowId] }))\n * ```\n */\nexport function table_setRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n updater: Updater<RowPinningState>,\n): void {\n table.options.onRowPinningChange?.(updater)\n}\n\n/**\n * Resets `rowPinning` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.rowPinning` when it\n * exists. Passing `true` ignores initial state and resets to empty top/bottom\n * arrays.\n *\n * @example\n * ```ts\n * table_resetRowPinning(table)\n * table_resetRowPinning(table, true)\n * ```\n */\nexport function table_resetRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void {\n table_setRowPinning(\n table,\n defaultState\n ? getDefaultRowPinningState()\n : cloneState(\n table.initialState.rowPinning ?? getDefaultRowPinningState(),\n ),\n )\n}\n\n// Table Utils\n\n/**\n * Checks whether any rows are pinned.\n *\n * Omit `position` to check both regions, or pass `'top'`/`'bottom'` to inspect\n * one region.\n *\n * @example\n * ```ts\n * const hasPinnedRows = table_getIsSomeRowsPinned(table)\n * ```\n */\nexport function table_getIsSomeRowsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position?: RowPinningPosition,\n): boolean {\n const rowPinning = table.atoms.rowPinning?.get()\n\n if (!position) {\n return Boolean(rowPinning?.top.length || rowPinning?.bottom.length)\n }\n return Boolean(rowPinning?.[position].length)\n}\n\nfunction table_getPinnedRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position: 'top' | 'bottom',\n): Array<Row<TFeatures, TData>> {\n const visibleRows = table.getRowModel().rows\n const pinnedRowIds = table.atoms.rowPinning?.get()?.[position] ?? []\n const keepPinnedRows = table.options.keepPinnedRows ?? true\n\n const result: Array<Row<TFeatures, TData>> = []\n for (let i = 0; i < pinnedRowIds.length; i++) {\n const rowId = pinnedRowIds[i]!\n let row: Row<TFeatures, TData> | undefined\n if (keepPinnedRows) {\n // get all rows that are pinned even if they would not be otherwise\n // visible; account for expanded parent rows, but not pagination/filtering\n const fullRow = table.getRow(rowId, true)\n if (row_getIsAllParentsExpanded(fullRow)) row = fullRow\n } else {\n // else get only visible rows that are pinned\n row = visibleRows.find((r) => r.id === rowId)\n }\n if (!row)\n continue\n // Assign position property directly to preserve prototype chain\n ;(row as any).position = position\n result.push(row)\n }\n return result\n}\n\n/**\n * Resolves the visible rows pinned to the top region.\n *\n * The result follows `state.rowPinning.top` order and marks each row with\n * `position = 'top'`.\n *\n * @example\n * ```ts\n * const rows = table_getTopRows(table)\n * ```\n */\nexport function table_getTopRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'top')\n}\n\n/**\n * Resolves the visible rows pinned to the bottom region.\n *\n * The result follows `state.rowPinning.bottom` order and marks each row with\n * `position = 'bottom'`.\n *\n * @example\n * ```ts\n * const rows = table_getBottomRows(table)\n * ```\n */\nexport function table_getBottomRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'bottom')\n}\n\n/**\n * Resolves rows that are not pinned to top or bottom.\n *\n * The current row model is filtered by `state.rowPinning.top` and\n * `state.rowPinning.bottom`.\n *\n * @example\n * ```ts\n * const rows = table_getCenterRows(table)\n * ```\n */\nexport function table_getCenterRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n const { top, bottom } =\n table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n const allRows = table.getRowModel().rows\n\n const topAndBottom = new Set([...top, ...bottom])\n return allRows.filter((d) => !topAndBottom.has(d.id))\n}\n\n// Row Utils\n\n/**\n * Checks whether this row can be pinned.\n *\n * `options.enableRowPinning` may be a boolean or a row predicate; it defaults\n * to `true`.\n *\n * @example\n * ```ts\n * const canPin = row_getCanPin(row)\n * ```\n */\nexport function row_getCanPin<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): boolean {\n const { enableRowPinning } = row.table.options\n if (typeof enableRowPinning === 'function') {\n return enableRowPinning(row)\n }\n return enableRowPinning ?? true\n}\n\n/**\n * Reads this row's current pinning region.\n *\n * Rows listed in `state.rowPinning.top` return `'top'`, rows listed in\n * `bottom` return `'bottom'`, and unpinned rows return `false`.\n *\n * @example\n * ```ts\n * const position = row_getIsPinned(row)\n * ```\n */\nexport function row_getIsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): RowPinningPosition {\n const { top, bottom } =\n row.table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n\n return top.includes(row.id)\n ? 'top'\n : bottom.includes(row.id)\n ? 'bottom'\n : false\n}\n\n/**\n * Finds this row's visible index within its pinned region.\n *\n * Unpinned rows return `-1`.\n *\n * @example\n * ```ts\n * const index = row_getPinnedIndex(row)\n * ```\n */\nexport function row_getPinnedIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): number {\n const position = row_getIsPinned(row)\n if (!position) return -1\n\n const visiblePinnedRowIds = (\n position === 'top'\n ? callMemoOrStaticFn(row.table, 'getTopRows', table_getTopRows)\n : callMemoOrStaticFn(row.table, 'getBottomRows', table_getBottomRows)\n ).map(({ id }) => id)\n\n return visiblePinnedRowIds.indexOf(row.id)\n}\n\n/**\n * Pins or unpins a row.\n *\n * Optional flags let callers include parent rows or leaf rows when updating\n * the row pinning state.\n *\n * @example\n * ```ts\n * row_pin(row, 'top')\n * ```\n */\nexport function row_pin<TFeatures extends TableFeatures, TData extends RowData>(\n row: Row<TFeatures, TData>,\n position: RowPinningPosition,\n includeLeafRows?: boolean,\n includeParentRows?: boolean,\n): void {\n const leafRowIds = includeLeafRows\n ? row.getLeafRows().map(({ id }) => id)\n : []\n const parentRowIds = includeParentRows\n ? row.getParentRows().map(({ id }) => id)\n : []\n const rowIds: Set<string> = new Set([...parentRowIds, row.id, ...leafRowIds])\n\n table_setRowPinning(row.table, (old) => {\n if (position === 'bottom') {\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: [\n ...old.bottom.filter((d) => !rowIds.has(d)),\n ...Array.from(rowIds),\n ],\n }\n }\n\n if (position === 'top') {\n return {\n top: [...old.top.filter((d) => !rowIds.has(d)), ...Array.from(rowIds)],\n bottom: old.bottom.filter((d) => !rowIds.has(d)),\n }\n }\n\n return {\n top: old.top.filter((d) => !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SAAS,EAAE,IACtC,CAAC;CACL,MAAM,yBAAsB,IAAI,IAAI;EAAC,GAAG;EAAc,IAAI;EAAI,GAAG;CAAU,CAAC;CAE5E,oBAAoB,IAAI,QAAQ,QAAQ;EACtC,IAAI,aAAa,UACf,OAAO;GACL,KAAK,IAAI,IAAI,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;GACzC,QAAQ,CACN,GAAG,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,GAC1C,GAAG,MAAM,KAAK,MAAM,CACtB;EACF;EAGF,IAAI,aAAa,OACf,OAAO;GACL,KAAK,CAAC,GAAG,IAAI,IAAI,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,GAAG,MAAM,KAAK,MAAM,CAAC;GACrE,QAAQ,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;EACjD;EAGF,OAAO;GACL,KAAK,IAAI,IAAI,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;GACzC,QAAQ,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;EACjD;CACF,CAAC;AACH"}
@@ -129,7 +129,7 @@ function table_getCenterRows(table) {
129
129
  var _table$atoms$rowPinni3;
130
130
  const { top, bottom } = ((_table$atoms$rowPinni3 = table.atoms.rowPinning) === null || _table$atoms$rowPinni3 === void 0 ? void 0 : _table$atoms$rowPinni3.get()) ?? getDefaultRowPinningState();
131
131
  const allRows = table.getRowModel().rows;
132
- const topAndBottom = new Set([...top, ...bottom]);
132
+ const topAndBottom = /* @__PURE__ */ new Set([...top, ...bottom]);
133
133
  return allRows.filter((d) => !topAndBottom.has(d.id));
134
134
  }
135
135
  /**
@@ -193,7 +193,7 @@ function row_getPinnedIndex(row) {
193
193
  function row_pin(row, position, includeLeafRows, includeParentRows) {
194
194
  const leafRowIds = includeLeafRows ? row.getLeafRows().map(({ id }) => id) : [];
195
195
  const parentRowIds = includeParentRows ? row.getParentRows().map(({ id }) => id) : [];
196
- const rowIds = new Set([
196
+ const rowIds = /* @__PURE__ */ new Set([
197
197
  ...parentRowIds,
198
198
  row.id,
199
199
  ...leafRowIds
@@ -1 +1 @@
1
- {"version":3,"file":"rowPinningFeature.utils.js","names":[],"sources":["../../../src/features/row-pinning/rowPinningFeature.utils.ts"],"sourcesContent":["import { row_getIsAllParentsExpanded } from '../row-expanding/rowExpandingFeature.utils'\nimport { callMemoOrStaticFn, cloneState } from '../../utils'\nimport type { RowData, Updater } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\nimport type { Row } from '../../types/Row'\nimport type {\n RowPinningPosition,\n RowPinningState,\n} from './rowPinningFeature.types'\n\n// State Utils\n\n/**\n * Creates the default row pinning state.\n *\n * Both pinning regions start empty. Reset APIs use this value when\n * `defaultState` is `true`.\n *\n * @example\n * ```ts\n * const pinning = getDefaultRowPinningState()\n * ```\n */\nexport function getDefaultRowPinningState(): RowPinningState {\n return {\n top: [],\n bottom: [],\n }\n}\n\n/**\n * Routes a row pinning updater through the table's row-pinning change handler.\n *\n * The updater may be a next `{ top, bottom }` state or a function of the\n * previous state, matching the instance `table.setRowPinning` behavior.\n *\n * @example\n * ```ts\n * table_setRowPinning(table, (old) => ({ ...old, top: [rowId] }))\n * ```\n */\nexport function table_setRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n updater: Updater<RowPinningState>,\n): void {\n table.options.onRowPinningChange?.(updater)\n}\n\n/**\n * Resets `rowPinning` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.rowPinning` when it\n * exists. Passing `true` ignores initial state and resets to empty top/bottom\n * arrays.\n *\n * @example\n * ```ts\n * table_resetRowPinning(table)\n * table_resetRowPinning(table, true)\n * ```\n */\nexport function table_resetRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void {\n table_setRowPinning(\n table,\n defaultState\n ? getDefaultRowPinningState()\n : cloneState(\n table.initialState.rowPinning ?? getDefaultRowPinningState(),\n ),\n )\n}\n\n// Table Utils\n\n/**\n * Checks whether any rows are pinned.\n *\n * Omit `position` to check both regions, or pass `'top'`/`'bottom'` to inspect\n * one region.\n *\n * @example\n * ```ts\n * const hasPinnedRows = table_getIsSomeRowsPinned(table)\n * ```\n */\nexport function table_getIsSomeRowsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position?: RowPinningPosition,\n): boolean {\n const rowPinning = table.atoms.rowPinning?.get()\n\n if (!position) {\n return Boolean(rowPinning?.top.length || rowPinning?.bottom.length)\n }\n return Boolean(rowPinning?.[position].length)\n}\n\nfunction table_getPinnedRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position: 'top' | 'bottom',\n): Array<Row<TFeatures, TData>> {\n const visibleRows = table.getRowModel().rows\n const pinnedRowIds = table.atoms.rowPinning?.get()?.[position] ?? []\n const keepPinnedRows = table.options.keepPinnedRows ?? true\n\n const result: Array<Row<TFeatures, TData>> = []\n for (let i = 0; i < pinnedRowIds.length; i++) {\n const rowId = pinnedRowIds[i]!\n let row: Row<TFeatures, TData> | undefined\n if (keepPinnedRows) {\n // get all rows that are pinned even if they would not be otherwise\n // visible; account for expanded parent rows, but not pagination/filtering\n const fullRow = table.getRow(rowId, true)\n if (row_getIsAllParentsExpanded(fullRow)) row = fullRow\n } else {\n // else get only visible rows that are pinned\n row = visibleRows.find((r) => r.id === rowId)\n }\n if (!row)\n continue\n // Assign position property directly to preserve prototype chain\n ;(row as any).position = position\n result.push(row)\n }\n return result\n}\n\n/**\n * Resolves the visible rows pinned to the top region.\n *\n * The result follows `state.rowPinning.top` order and marks each row with\n * `position = 'top'`.\n *\n * @example\n * ```ts\n * const rows = table_getTopRows(table)\n * ```\n */\nexport function table_getTopRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'top')\n}\n\n/**\n * Resolves the visible rows pinned to the bottom region.\n *\n * The result follows `state.rowPinning.bottom` order and marks each row with\n * `position = 'bottom'`.\n *\n * @example\n * ```ts\n * const rows = table_getBottomRows(table)\n * ```\n */\nexport function table_getBottomRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'bottom')\n}\n\n/**\n * Resolves rows that are not pinned to top or bottom.\n *\n * The current row model is filtered by `state.rowPinning.top` and\n * `state.rowPinning.bottom`.\n *\n * @example\n * ```ts\n * const rows = table_getCenterRows(table)\n * ```\n */\nexport function table_getCenterRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n const { top, bottom } =\n table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n const allRows = table.getRowModel().rows\n\n const topAndBottom = new Set([...top, ...bottom])\n return allRows.filter((d) => !topAndBottom.has(d.id))\n}\n\n// Row Utils\n\n/**\n * Checks whether this row can be pinned.\n *\n * `options.enableRowPinning` may be a boolean or a row predicate; it defaults\n * to `true`.\n *\n * @example\n * ```ts\n * const canPin = row_getCanPin(row)\n * ```\n */\nexport function row_getCanPin<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): boolean {\n const { enableRowPinning } = row.table.options\n if (typeof enableRowPinning === 'function') {\n return enableRowPinning(row)\n }\n return enableRowPinning ?? true\n}\n\n/**\n * Reads this row's current pinning region.\n *\n * Rows listed in `state.rowPinning.top` return `'top'`, rows listed in\n * `bottom` return `'bottom'`, and unpinned rows return `false`.\n *\n * @example\n * ```ts\n * const position = row_getIsPinned(row)\n * ```\n */\nexport function row_getIsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): RowPinningPosition {\n const { top, bottom } =\n row.table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n\n return top.includes(row.id)\n ? 'top'\n : bottom.includes(row.id)\n ? 'bottom'\n : false\n}\n\n/**\n * Finds this row's visible index within its pinned region.\n *\n * Unpinned rows return `-1`.\n *\n * @example\n * ```ts\n * const index = row_getPinnedIndex(row)\n * ```\n */\nexport function row_getPinnedIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): number {\n const position = row_getIsPinned(row)\n if (!position) return -1\n\n const visiblePinnedRowIds = (\n position === 'top'\n ? callMemoOrStaticFn(row.table, 'getTopRows', table_getTopRows)\n : callMemoOrStaticFn(row.table, 'getBottomRows', table_getBottomRows)\n ).map(({ id }) => id)\n\n return visiblePinnedRowIds.indexOf(row.id)\n}\n\n/**\n * Pins or unpins a row.\n *\n * Optional flags let callers include parent rows or leaf rows when updating\n * the row pinning state.\n *\n * @example\n * ```ts\n * row_pin(row, 'top')\n * ```\n */\nexport function row_pin<TFeatures extends TableFeatures, TData extends RowData>(\n row: Row<TFeatures, TData>,\n position: RowPinningPosition,\n includeLeafRows?: boolean,\n includeParentRows?: boolean,\n): void {\n const leafRowIds = includeLeafRows\n ? row.getLeafRows().map(({ id }) => id)\n : []\n const parentRowIds = includeParentRows\n ? row.getParentRows().map(({ id }) => id)\n : []\n const rowIds: Set<string> = new Set([...parentRowIds, row.id, ...leafRowIds])\n\n table_setRowPinning(row.table, (old) => {\n if (position === 'bottom') {\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: [\n ...old.bottom.filter((d) => !rowIds.has(d)),\n ...Array.from(rowIds),\n ],\n }\n }\n\n if (position === 'top') {\n return {\n top: [...old.top.filter((d) => !rowIds.has(d)), ...Array.from(rowIds)],\n bottom: old.bottom.filter((d) => !rowIds.has(d)),\n }\n }\n\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: old.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MAAM,SAAsB,IAAI,IAAI;EAAC,GAAG;EAAc,IAAI;EAAI,GAAG;CAAU,CAAC;CAE5E,oBAAoB,IAAI,QAAQ,QAAQ;EACtC,IAAI,aAAa,UACf,OAAO;GACL,KAAK,IAAI,IAAI,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;GACzC,QAAQ,CACN,GAAG,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,GAC1C,GAAG,MAAM,KAAK,MAAM,CACtB;EACF;EAGF,IAAI,aAAa,OACf,OAAO;GACL,KAAK,CAAC,GAAG,IAAI,IAAI,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,GAAG,MAAM,KAAK,MAAM,CAAC;GACrE,QAAQ,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;EACjD;EAGF,OAAO;GACL,KAAK,IAAI,IAAI,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;GACzC,QAAQ,IAAI,OAAO,QAAQ,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;EACjD;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"rowPinningFeature.utils.js","names":[],"sources":["../../../src/features/row-pinning/rowPinningFeature.utils.ts"],"sourcesContent":["import { row_getIsAllParentsExpanded } from '../row-expanding/rowExpandingFeature.utils'\nimport { callMemoOrStaticFn, cloneState } from '../../utils'\nimport type { RowData, Updater } from '../../types/type-utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { Table_Internal } from '../../types/Table'\nimport type { Row } from '../../types/Row'\nimport type {\n RowPinningPosition,\n RowPinningState,\n} from './rowPinningFeature.types'\n\n// State Utils\n\n/**\n * Creates the default row pinning state.\n *\n * Both pinning regions start empty. Reset APIs use this value when\n * `defaultState` is `true`.\n *\n * @example\n * ```ts\n * const pinning = getDefaultRowPinningState()\n * ```\n */\nexport function getDefaultRowPinningState(): RowPinningState {\n return {\n top: [],\n bottom: [],\n }\n}\n\n/**\n * Routes a row pinning updater through the table's row-pinning change handler.\n *\n * The updater may be a next `{ top, bottom }` state or a function of the\n * previous state, matching the instance `table.setRowPinning` behavior.\n *\n * @example\n * ```ts\n * table_setRowPinning(table, (old) => ({ ...old, top: [rowId] }))\n * ```\n */\nexport function table_setRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n updater: Updater<RowPinningState>,\n): void {\n table.options.onRowPinningChange?.(updater)\n}\n\n/**\n * Resets `rowPinning` to the configured initial state or feature default.\n *\n * With no argument, the reset clones `table.initialState.rowPinning` when it\n * exists. Passing `true` ignores initial state and resets to empty top/bottom\n * arrays.\n *\n * @example\n * ```ts\n * table_resetRowPinning(table)\n * table_resetRowPinning(table, true)\n * ```\n */\nexport function table_resetRowPinning<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void {\n table_setRowPinning(\n table,\n defaultState\n ? getDefaultRowPinningState()\n : cloneState(\n table.initialState.rowPinning ?? getDefaultRowPinningState(),\n ),\n )\n}\n\n// Table Utils\n\n/**\n * Checks whether any rows are pinned.\n *\n * Omit `position` to check both regions, or pass `'top'`/`'bottom'` to inspect\n * one region.\n *\n * @example\n * ```ts\n * const hasPinnedRows = table_getIsSomeRowsPinned(table)\n * ```\n */\nexport function table_getIsSomeRowsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position?: RowPinningPosition,\n): boolean {\n const rowPinning = table.atoms.rowPinning?.get()\n\n if (!position) {\n return Boolean(rowPinning?.top.length || rowPinning?.bottom.length)\n }\n return Boolean(rowPinning?.[position].length)\n}\n\nfunction table_getPinnedRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(\n table: Table_Internal<TFeatures, TData>,\n position: 'top' | 'bottom',\n): Array<Row<TFeatures, TData>> {\n const visibleRows = table.getRowModel().rows\n const pinnedRowIds = table.atoms.rowPinning?.get()?.[position] ?? []\n const keepPinnedRows = table.options.keepPinnedRows ?? true\n\n const result: Array<Row<TFeatures, TData>> = []\n for (let i = 0; i < pinnedRowIds.length; i++) {\n const rowId = pinnedRowIds[i]!\n let row: Row<TFeatures, TData> | undefined\n if (keepPinnedRows) {\n // get all rows that are pinned even if they would not be otherwise\n // visible; account for expanded parent rows, but not pagination/filtering\n const fullRow = table.getRow(rowId, true)\n if (row_getIsAllParentsExpanded(fullRow)) row = fullRow\n } else {\n // else get only visible rows that are pinned\n row = visibleRows.find((r) => r.id === rowId)\n }\n if (!row)\n continue\n // Assign position property directly to preserve prototype chain\n ;(row as any).position = position\n result.push(row)\n }\n return result\n}\n\n/**\n * Resolves the visible rows pinned to the top region.\n *\n * The result follows `state.rowPinning.top` order and marks each row with\n * `position = 'top'`.\n *\n * @example\n * ```ts\n * const rows = table_getTopRows(table)\n * ```\n */\nexport function table_getTopRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'top')\n}\n\n/**\n * Resolves the visible rows pinned to the bottom region.\n *\n * The result follows `state.rowPinning.bottom` order and marks each row with\n * `position = 'bottom'`.\n *\n * @example\n * ```ts\n * const rows = table_getBottomRows(table)\n * ```\n */\nexport function table_getBottomRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n return table_getPinnedRows(table, 'bottom')\n}\n\n/**\n * Resolves rows that are not pinned to top or bottom.\n *\n * The current row model is filtered by `state.rowPinning.top` and\n * `state.rowPinning.bottom`.\n *\n * @example\n * ```ts\n * const rows = table_getCenterRows(table)\n * ```\n */\nexport function table_getCenterRows<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>): Array<Row<TFeatures, TData>> {\n const { top, bottom } =\n table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n const allRows = table.getRowModel().rows\n\n const topAndBottom = new Set([...top, ...bottom])\n return allRows.filter((d) => !topAndBottom.has(d.id))\n}\n\n// Row Utils\n\n/**\n * Checks whether this row can be pinned.\n *\n * `options.enableRowPinning` may be a boolean or a row predicate; it defaults\n * to `true`.\n *\n * @example\n * ```ts\n * const canPin = row_getCanPin(row)\n * ```\n */\nexport function row_getCanPin<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): boolean {\n const { enableRowPinning } = row.table.options\n if (typeof enableRowPinning === 'function') {\n return enableRowPinning(row)\n }\n return enableRowPinning ?? true\n}\n\n/**\n * Reads this row's current pinning region.\n *\n * Rows listed in `state.rowPinning.top` return `'top'`, rows listed in\n * `bottom` return `'bottom'`, and unpinned rows return `false`.\n *\n * @example\n * ```ts\n * const position = row_getIsPinned(row)\n * ```\n */\nexport function row_getIsPinned<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): RowPinningPosition {\n const { top, bottom } =\n row.table.atoms.rowPinning?.get() ?? getDefaultRowPinningState()\n\n return top.includes(row.id)\n ? 'top'\n : bottom.includes(row.id)\n ? 'bottom'\n : false\n}\n\n/**\n * Finds this row's visible index within its pinned region.\n *\n * Unpinned rows return `-1`.\n *\n * @example\n * ```ts\n * const index = row_getPinnedIndex(row)\n * ```\n */\nexport function row_getPinnedIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(row: Row<TFeatures, TData>): number {\n const position = row_getIsPinned(row)\n if (!position) return -1\n\n const visiblePinnedRowIds = (\n position === 'top'\n ? callMemoOrStaticFn(row.table, 'getTopRows', table_getTopRows)\n : callMemoOrStaticFn(row.table, 'getBottomRows', table_getBottomRows)\n ).map(({ id }) => id)\n\n return visiblePinnedRowIds.indexOf(row.id)\n}\n\n/**\n * Pins or unpins a row.\n *\n * Optional flags let callers include parent rows or leaf rows when updating\n * the row pinning state.\n *\n * @example\n * ```ts\n * row_pin(row, 'top')\n * ```\n */\nexport function row_pin<TFeatures extends TableFeatures, TData extends RowData>(\n row: Row<TFeatures, TData>,\n position: RowPinningPosition,\n includeLeafRows?: boolean,\n includeParentRows?: boolean,\n): void {\n const leafRowIds = includeLeafRows\n ? row.getLeafRows().map(({ id }) => id)\n : []\n const parentRowIds = includeParentRows\n ? row.getParentRows().map(({ id }) => id)\n : []\n const rowIds: Set<string> = new Set([...parentRowIds, row.id, ...leafRowIds])\n\n table_setRowPinning(row.table, (old) => {\n if (position === 'bottom') {\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: [\n ...old.bottom.filter((d) => !rowIds.has(d)),\n ...Array.from(rowIds),\n ],\n }\n }\n\n if (position === 'top') {\n return {\n top: [...old.top.filter((d) => !rowIds.has(d)), ...Array.from(rowIds)],\n bottom: old.bottom.filter((d) => !rowIds.has(d)),\n }\n }\n\n return {\n top: old.top.filter((d) => !rowIds.has(d)),\n bottom: old.bottom.filter((d) => !rowIds.has(d)),\n }\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;AAwBA,SAAgB,4BAA6C;CAC3D,OAAO;EACL,KAAK,CAAC;EACN,QAAQ,CAAC;CACX;AACF;;;;;;;;;;;;AAaA,SAAgB,oBAId,OACA,SACM;;CACN,iDAAM,SAAQ,+GAAqB,OAAO;AAC5C;;;;;;;;;;;;;;AAeA,SAAgB,sBAGd,OAAyC,cAA8B;CACvE,oBACE,OACA,eACI,0BAA0B,IAC1B,WACE,MAAM,aAAa,cAAc,0BAA0B,CAC7D,CACN;AACF;;;;;;;;;;;;AAeA,SAAgB,0BAId,OACA,UACS;;CACT,MAAM,sCAAa,MAAM,MAAM,0FAAY,IAAI;CAE/C,IAAI,CAAC,UACH,OAAO,iEAAQ,WAAY,IAAI,oEAAU,WAAY,OAAO,OAAM;CAEpE,OAAO,gEAAQ,WAAa,SAAS,CAAC,MAAM;AAC9C;AAEA,SAAS,oBAIP,OACA,UAC8B;;CAC9B,MAAM,cAAc,MAAM,YAAY,CAAC,CAAC;CACxC,MAAM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,OAAO,IAAI,CAAC,CAAC;EACjD;CACF,CAAC;AACH"}
@@ -1,6 +1,6 @@
1
1
  import { OnChangeFn, RowData, Updater } from "../../types/type-utils.cjs";
2
- import { BuiltInSortFn } from "../../fns/sortFns.cjs";
3
2
  import { Row } from "../../types/Row.cjs";
3
+ import { BuiltInSortFn } from "../../fns/sortFns.cjs";
4
4
  import { IsAny, TableFeatures } from "../../types/TableFeatures.cjs";
5
5
  import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.cjs";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { OnChangeFn, RowData, Updater } from "../../types/type-utils.js";
2
- import { BuiltInSortFn } from "../../fns/sortFns.js";
3
2
  import { Row } from "../../types/Row.js";
3
+ import { BuiltInSortFn } from "../../fns/sortFns.js";
4
4
  import { IsAny, TableFeatures } from "../../types/TableFeatures.js";
5
5
  import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.js";
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { CellData, RowData, Updater } from "../../types/type-utils.cjs";
2
2
  import { SortDirection, SortFn, SortingState } from "./rowSortingFeature.types.cjs";
3
- import { Column } from "../../types/Column.cjs";
4
3
  import { Table } from "../../types/Table.cjs";
4
+ import { Column } from "../../types/Column.cjs";
5
5
  import { TableFeatures } from "../../types/TableFeatures.cjs";
6
6
 
7
7
  //#region src/features/row-sorting/rowSortingFeature.utils.d.ts
@@ -1,7 +1,7 @@
1
1
  import { CellData, RowData, Updater } from "../../types/type-utils.js";
2
2
  import { SortDirection, SortFn, SortingState } from "./rowSortingFeature.types.js";
3
- import { Column } from "../../types/Column.js";
4
3
  import { Table } from "../../types/Table.js";
4
+ import { Column } from "../../types/Column.js";
5
5
  import { TableFeatures } from "../../types/TableFeatures.js";
6
6
 
7
7
  //#region src/features/row-sorting/rowSortingFeature.utils.d.ts
package/dist/index.d.cts CHANGED
@@ -7,18 +7,12 @@ import { coreRowsFeature } from "./core/rows/coreRowsFeature.cjs";
7
7
  import { coreTablesFeature } from "./core/table/coreTablesFeature.cjs";
8
8
  import { CoreFeatures, coreFeatures } from "./core/coreFeatures.cjs";
9
9
  import { ColumnDef_ColumnResizing, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, Column_ColumnResizing, Header_ColumnResizing, TableOptions_ColumnResizing, TableState_ColumnResizing, Table_ColumnResizing, columnResizingState } from "./features/column-resizing/columnResizingFeature.types.cjs";
10
- import { BuiltInSortFn, reSplitAlphaNumeric, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns } from "./fns/sortFns.cjs";
11
- import { CachedRowModel_Sorted, ColumnDef_RowSorting, ColumnSort, Column_RowSorting, CustomSortFns, ExtractSortFnKeys, RowModelFns_RowSorting, SortDirection, SortFn, SortFnOption, SortFns, SortingState, TableOptions_RowSorting, TableState_RowSorting, Table_RowModels_Sorted, Table_RowSorting } from "./features/row-sorting/rowSortingFeature.types.cjs";
10
+ import { ColumnDef_ColumnVisibility, ColumnVisibilityState, Column_ColumnVisibility, Row_ColumnVisibility, TableOptions_ColumnVisibility, TableState_ColumnVisibility, Table_ColumnVisibility, VisibilityDefaultOptions } from "./features/column-visibility/columnVisibilityFeature.types.cjs";
12
11
  import { ColumnDef_ColumnSizing, ColumnSizingDefaultOptions, ColumnSizingState, Column_ColumnSizing, Header_ColumnSizing, TableOptions_ColumnSizing, TableState_ColumnSizing, Table_ColumnSizing } from "./features/column-sizing/columnSizingFeature.types.cjs";
13
12
  import { HeaderGroup, HeaderGroup_Core } from "./types/HeaderGroup.cjs";
14
13
  import { HeaderContext, HeaderGroup_Header, Header_CoreProperties, Header_Header, Table_Headers } from "./core/headers/coreHeadersFeature.types.cjs";
15
14
  import { Header, Header_Core, Header_FeatureMap } from "./types/Header.cjs";
16
15
  import { ColumnDef_ColumnPinning, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, Column_ColumnPinning, Row_ColumnPinning, TableOptions_ColumnPinning, TableState_ColumnPinning, Table_ColumnPinning } from "./features/column-pinning/columnPinningFeature.types.cjs";
17
- import { ColumnOrderDefaultOptions, ColumnOrderState, Column_ColumnOrdering, TableOptions_ColumnOrdering, TableState_ColumnOrdering, Table_ColumnOrdering } from "./features/column-ordering/columnOrderingFeature.types.cjs";
18
- import { ColumnDef_GlobalFiltering, Column_GlobalFiltering, TableOptions_GlobalFiltering, TableState_GlobalFiltering, Table_GlobalFiltering } from "./features/global-filtering/globalFilteringFeature.types.cjs";
19
- import { Column_Column, Column_CoreProperties, TableOptions_Columns, Table_Columns } from "./core/columns/coreColumnsFeature.types.cjs";
20
- import { Column, Column_Core, Column_FeatureMap } from "./types/Column.cjs";
21
- import { ColumnDef_ColumnVisibility, ColumnVisibilityState, Column_ColumnVisibility, Row_ColumnVisibility, TableOptions_ColumnVisibility, TableState_ColumnVisibility, Table_ColumnVisibility, VisibilityDefaultOptions } from "./features/column-visibility/columnVisibilityFeature.types.cjs";
22
16
  import { CachedRowModel_Expanded, ExpandedState, ExpandedStateList, Row_RowExpanding, TableOptions_RowExpanding, TableState_RowExpanding, Table_RowExpanding, Table_RowModels_Expanded } from "./features/row-expanding/rowExpandingFeature.types.cjs";
23
17
  import { RowPinningDefaultOptions, RowPinningPosition, RowPinningState, Row_RowPinning, TableOptions_RowPinning, TableState_RowPinning, Table_RowPinning } from "./features/row-pinning/rowPinningFeature.types.cjs";
24
18
  import { RowSelectionState, Row_RowSelection, TableOptions_RowSelection, TableState_RowSelection, Table_RowSelection } from "./features/row-selection/rowSelectionFeature.types.cjs";
@@ -26,15 +20,21 @@ import { Row_CoreProperties, Row_Row, TableOptions_Rows, Table_Rows } from "./co
26
20
  import { Row, Row_Core, Row_FeatureMap } from "./types/Row.cjs";
27
21
  import { BuiltInFilterFn, 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 } from "./fns/filterFns.cjs";
28
22
  import { CachedRowModel_Filtered, ColumnDef_ColumnFiltering, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, Column_ColumnFiltering, CustomFilterFns, ExtractFilterFnKeys, ExtractFilterMeta, FilterFn, FilterFnOption, FilterFns, FilterMeta, ResolvedColumnFilter, RowModelFns_ColumnFiltering, Row_ColumnFiltering, TableOptions_ColumnFiltering, TableState_ColumnFiltering, Table_ColumnFiltering, Table_RowModels_Filtered, TransformFilterValueFn } from "./features/column-filtering/columnFilteringFeature.types.cjs";
23
+ import { ColumnOrderDefaultOptions, ColumnOrderState, Column_ColumnOrdering, TableOptions_ColumnOrdering, TableState_ColumnOrdering, Table_ColumnOrdering } from "./features/column-ordering/columnOrderingFeature.types.cjs";
24
+ import { ColumnDef_GlobalFiltering, Column_GlobalFiltering, TableOptions_GlobalFiltering, TableState_GlobalFiltering, Table_GlobalFiltering } from "./features/global-filtering/globalFilteringFeature.types.cjs";
29
25
  import { CachedRowModel_Paginated, PaginationDefaultOptions, PaginationState, TableOptions_RowPagination, TableState_RowPagination, Table_RowModels_Paginated, Table_RowPagination } from "./features/row-pagination/rowPaginationFeature.types.cjs";
26
+ import { BuiltInSortFn, reSplitAlphaNumeric, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns } from "./fns/sortFns.cjs";
27
+ import { CachedRowModel_Sorted, ColumnDef_RowSorting, ColumnSort, Column_RowSorting, CustomSortFns, ExtractSortFnKeys, RowModelFns_RowSorting, SortDirection, SortFn, SortFnOption, SortFns, SortingState, TableOptions_RowSorting, TableState_RowSorting, Table_RowModels_Sorted, Table_RowSorting } from "./features/row-sorting/rowSortingFeature.types.cjs";
30
28
  import { CachedRowModel_All, CachedRowModels, CachedRowModels_FeatureMap } from "./types/RowModel.cjs";
31
29
  import { RowModelFns, RowModelFns_All, RowModelFns_Core, RowModelFns_FeatureMap } from "./types/RowModelFns.cjs";
32
30
  import { TableState, TableState_All, TableState_FeatureMap } from "./types/TableState.cjs";
31
+ import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.cjs";
32
+ import { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_FeatureMap, ColumnMeta, DisplayColumnDef, ExtractColumnMeta, GroupColumnDef, IdIdentifier, IdentifiedColumnDef, StringHeaderIdentifier, StringOrTemplateHeader } from "./types/ColumnDef.cjs";
33
+ import { Column_Column, Column_CoreProperties, TableOptions_Columns, Table_Columns } from "./core/columns/coreColumnsFeature.types.cjs";
33
34
  import { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap } from "./types/TableOptions.cjs";
34
35
  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
36
  import { Table, Table_Core, Table_FeatureMap } from "./types/Table.cjs";
36
- import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.cjs";
37
- import { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_FeatureMap, ColumnMeta, DisplayColumnDef, ExtractColumnMeta, GroupColumnDef, IdIdentifier, IdentifiedColumnDef, StringHeaderIdentifier, StringOrTemplateHeader } from "./types/ColumnDef.cjs";
37
+ import { Column, Column_Core, Column_FeatureMap } from "./types/Column.cjs";
38
38
  import { columnFacetingFeature } from "./features/column-faceting/columnFacetingFeature.cjs";
39
39
  import { columnFilteringFeature } from "./features/column-filtering/columnFilteringFeature.cjs";
40
40
  import { columnGroupingFeature } from "./features/column-grouping/columnGroupingFeature.cjs";
package/dist/index.d.ts CHANGED
@@ -7,18 +7,12 @@ import { coreRowsFeature } from "./core/rows/coreRowsFeature.js";
7
7
  import { coreTablesFeature } from "./core/table/coreTablesFeature.js";
8
8
  import { CoreFeatures, coreFeatures } from "./core/coreFeatures.js";
9
9
  import { ColumnDef_ColumnResizing, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, Column_ColumnResizing, Header_ColumnResizing, TableOptions_ColumnResizing, TableState_ColumnResizing, Table_ColumnResizing, columnResizingState } from "./features/column-resizing/columnResizingFeature.types.js";
10
- import { BuiltInSortFn, reSplitAlphaNumeric, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns } from "./fns/sortFns.js";
11
- import { CachedRowModel_Sorted, ColumnDef_RowSorting, ColumnSort, Column_RowSorting, CustomSortFns, ExtractSortFnKeys, RowModelFns_RowSorting, SortDirection, SortFn, SortFnOption, SortFns, SortingState, TableOptions_RowSorting, TableState_RowSorting, Table_RowModels_Sorted, Table_RowSorting } from "./features/row-sorting/rowSortingFeature.types.js";
10
+ import { ColumnDef_ColumnVisibility, ColumnVisibilityState, Column_ColumnVisibility, Row_ColumnVisibility, TableOptions_ColumnVisibility, TableState_ColumnVisibility, Table_ColumnVisibility, VisibilityDefaultOptions } from "./features/column-visibility/columnVisibilityFeature.types.js";
12
11
  import { ColumnDef_ColumnSizing, ColumnSizingDefaultOptions, ColumnSizingState, Column_ColumnSizing, Header_ColumnSizing, TableOptions_ColumnSizing, TableState_ColumnSizing, Table_ColumnSizing } from "./features/column-sizing/columnSizingFeature.types.js";
13
12
  import { HeaderGroup, HeaderGroup_Core } from "./types/HeaderGroup.js";
14
13
  import { HeaderContext, HeaderGroup_Header, Header_CoreProperties, Header_Header, Table_Headers } from "./core/headers/coreHeadersFeature.types.js";
15
14
  import { Header, Header_Core, Header_FeatureMap } from "./types/Header.js";
16
15
  import { ColumnDef_ColumnPinning, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, Column_ColumnPinning, Row_ColumnPinning, TableOptions_ColumnPinning, TableState_ColumnPinning, Table_ColumnPinning } from "./features/column-pinning/columnPinningFeature.types.js";
17
- import { ColumnOrderDefaultOptions, ColumnOrderState, Column_ColumnOrdering, TableOptions_ColumnOrdering, TableState_ColumnOrdering, Table_ColumnOrdering } from "./features/column-ordering/columnOrderingFeature.types.js";
18
- import { ColumnDef_GlobalFiltering, Column_GlobalFiltering, TableOptions_GlobalFiltering, TableState_GlobalFiltering, Table_GlobalFiltering } from "./features/global-filtering/globalFilteringFeature.types.js";
19
- import { Column_Column, Column_CoreProperties, TableOptions_Columns, Table_Columns } from "./core/columns/coreColumnsFeature.types.js";
20
- import { Column, Column_Core, Column_FeatureMap } from "./types/Column.js";
21
- import { ColumnDef_ColumnVisibility, ColumnVisibilityState, Column_ColumnVisibility, Row_ColumnVisibility, TableOptions_ColumnVisibility, TableState_ColumnVisibility, Table_ColumnVisibility, VisibilityDefaultOptions } from "./features/column-visibility/columnVisibilityFeature.types.js";
22
16
  import { CachedRowModel_Expanded, ExpandedState, ExpandedStateList, Row_RowExpanding, TableOptions_RowExpanding, TableState_RowExpanding, Table_RowExpanding, Table_RowModels_Expanded } from "./features/row-expanding/rowExpandingFeature.types.js";
23
17
  import { RowPinningDefaultOptions, RowPinningPosition, RowPinningState, Row_RowPinning, TableOptions_RowPinning, TableState_RowPinning, Table_RowPinning } from "./features/row-pinning/rowPinningFeature.types.js";
24
18
  import { RowSelectionState, Row_RowSelection, TableOptions_RowSelection, TableState_RowSelection, Table_RowSelection } from "./features/row-selection/rowSelectionFeature.types.js";
@@ -26,15 +20,21 @@ import { Row_CoreProperties, Row_Row, TableOptions_Rows, Table_Rows } from "./co
26
20
  import { Row, Row_Core, Row_FeatureMap } from "./types/Row.js";
27
21
  import { BuiltInFilterFn, 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 } from "./fns/filterFns.js";
28
22
  import { CachedRowModel_Filtered, ColumnDef_ColumnFiltering, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, Column_ColumnFiltering, CustomFilterFns, ExtractFilterFnKeys, ExtractFilterMeta, FilterFn, FilterFnOption, FilterFns, FilterMeta, ResolvedColumnFilter, RowModelFns_ColumnFiltering, Row_ColumnFiltering, TableOptions_ColumnFiltering, TableState_ColumnFiltering, Table_ColumnFiltering, Table_RowModels_Filtered, TransformFilterValueFn } from "./features/column-filtering/columnFilteringFeature.types.js";
23
+ import { ColumnOrderDefaultOptions, ColumnOrderState, Column_ColumnOrdering, TableOptions_ColumnOrdering, TableState_ColumnOrdering, Table_ColumnOrdering } from "./features/column-ordering/columnOrderingFeature.types.js";
24
+ import { ColumnDef_GlobalFiltering, Column_GlobalFiltering, TableOptions_GlobalFiltering, TableState_GlobalFiltering, Table_GlobalFiltering } from "./features/global-filtering/globalFilteringFeature.types.js";
29
25
  import { CachedRowModel_Paginated, PaginationDefaultOptions, PaginationState, TableOptions_RowPagination, TableState_RowPagination, Table_RowModels_Paginated, Table_RowPagination } from "./features/row-pagination/rowPaginationFeature.types.js";
26
+ import { BuiltInSortFn, reSplitAlphaNumeric, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns } from "./fns/sortFns.js";
27
+ import { CachedRowModel_Sorted, ColumnDef_RowSorting, ColumnSort, Column_RowSorting, CustomSortFns, ExtractSortFnKeys, RowModelFns_RowSorting, SortDirection, SortFn, SortFnOption, SortFns, SortingState, TableOptions_RowSorting, TableState_RowSorting, Table_RowModels_Sorted, Table_RowSorting } from "./features/row-sorting/rowSortingFeature.types.js";
30
28
  import { CachedRowModel_All, CachedRowModels, CachedRowModels_FeatureMap } from "./types/RowModel.js";
31
29
  import { RowModelFns, RowModelFns_All, RowModelFns_Core, RowModelFns_FeatureMap } from "./types/RowModelFns.js";
32
30
  import { TableState, TableState_All, TableState_FeatureMap } from "./types/TableState.js";
31
+ import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.js";
32
+ import { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_FeatureMap, ColumnMeta, DisplayColumnDef, ExtractColumnMeta, GroupColumnDef, IdIdentifier, IdentifiedColumnDef, StringHeaderIdentifier, StringOrTemplateHeader } from "./types/ColumnDef.js";
33
+ import { Column_Column, Column_CoreProperties, TableOptions_Columns, Table_Columns } from "./core/columns/coreColumnsFeature.types.js";
33
34
  import { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap } from "./types/TableOptions.js";
34
35
  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
36
  import { Table, Table_Core, Table_FeatureMap } from "./types/Table.js";
36
- import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.js";
37
- import { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_FeatureMap, ColumnMeta, DisplayColumnDef, ExtractColumnMeta, GroupColumnDef, IdIdentifier, IdentifiedColumnDef, StringHeaderIdentifier, StringOrTemplateHeader } from "./types/ColumnDef.js";
37
+ import { Column, Column_Core, Column_FeatureMap } from "./types/Column.js";
38
38
  import { columnFacetingFeature } from "./features/column-faceting/columnFacetingFeature.js";
39
39
  import { columnFilteringFeature } from "./features/column-filtering/columnFilteringFeature.js";
40
40
  import { columnGroupingFeature } from "./features/column-grouping/columnGroupingFeature.js";
@@ -1,15 +1,15 @@
1
1
  import { RowData } from "./type-utils.cjs";
2
2
  import { Column_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.cjs";
3
- import { Column_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
3
+ import { Column_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
4
4
  import { Column_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.cjs";
5
5
  import { Column_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.cjs";
6
+ import { Column_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.cjs";
6
7
  import { Column_ColumnOrdering } from "../features/column-ordering/columnOrderingFeature.types.cjs";
7
8
  import { Column_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.cjs";
9
+ import { Column_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
10
+ import { ColumnDefBase_All } from "./ColumnDef.cjs";
8
11
  import { Column_Column } from "../core/columns/coreColumnsFeature.types.cjs";
9
- import { Column_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
10
- import { Column_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.cjs";
11
12
  import { Table } from "./Table.cjs";
12
- import { ColumnDefBase_All } from "./ColumnDef.cjs";
13
13
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.cjs";
14
14
  import { Column_ColumnFaceting } from "../features/column-faceting/columnFacetingFeature.types.cjs";
15
15
  import { Column_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.cjs";
@@ -1,15 +1,15 @@
1
1
  import { RowData } from "./type-utils.js";
2
2
  import { Column_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
3
- import { Column_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
3
+ import { Column_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
4
4
  import { Column_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
5
5
  import { Column_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
6
+ import { Column_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
6
7
  import { Column_ColumnOrdering } from "../features/column-ordering/columnOrderingFeature.types.js";
7
8
  import { Column_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
9
+ import { Column_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
10
+ import { ColumnDefBase_All } from "./ColumnDef.js";
8
11
  import { Column_Column } from "../core/columns/coreColumnsFeature.types.js";
9
- import { Column_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
10
- import { Column_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
11
12
  import { Table } from "./Table.js";
12
- import { ColumnDefBase_All } from "./ColumnDef.js";
13
13
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
14
14
  import { Column_ColumnFaceting } from "../features/column-faceting/columnFacetingFeature.types.js";
15
15
  import { Column_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.js";
@@ -1,12 +1,12 @@
1
1
  import { CellData, RowData, UnionToIntersection } from "./type-utils.cjs";
2
2
  import { ColumnDef_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.cjs";
3
- import { ColumnDef_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
3
+ import { ColumnDef_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
4
4
  import { ColumnDef_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.cjs";
5
5
  import { HeaderContext } from "../core/headers/coreHeadersFeature.types.cjs";
6
6
  import { ColumnDef_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.cjs";
7
- import { ColumnDef_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.cjs";
8
- import { ColumnDef_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
9
7
  import { ColumnDef_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.cjs";
8
+ import { ColumnDef_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.cjs";
9
+ import { ColumnDef_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
10
10
  import { CellContext } from "../core/cells/coreCellsFeature.types.cjs";
11
11
  import { ExtractFeatureMapTypes, IsAny, TableFeatures } from "./TableFeatures.cjs";
12
12
  import { ColumnDef_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.cjs";
@@ -1,12 +1,12 @@
1
1
  import { CellData, RowData, UnionToIntersection } from "./type-utils.js";
2
2
  import { ColumnDef_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
3
- import { ColumnDef_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
3
+ import { ColumnDef_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
4
4
  import { ColumnDef_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
5
5
  import { HeaderContext } from "../core/headers/coreHeadersFeature.types.js";
6
6
  import { ColumnDef_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
7
- import { ColumnDef_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
8
- import { ColumnDef_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
9
7
  import { ColumnDef_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
8
+ import { ColumnDef_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
9
+ import { ColumnDef_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
10
10
  import { CellContext } from "../core/cells/coreCellsFeature.types.js";
11
11
  import { ExtractFeatureMapTypes, IsAny, TableFeatures } from "./TableFeatures.js";
12
12
  import { ColumnDef_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.js";
@@ -1,6 +1,6 @@
1
1
  import { RowData } from "./type-utils.cjs";
2
- import { Row_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.cjs";
3
2
  import { Row_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
3
+ import { Row_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.cjs";
4
4
  import { Row_RowExpanding } from "../features/row-expanding/rowExpandingFeature.types.cjs";
5
5
  import { Row_RowPinning } from "../features/row-pinning/rowPinningFeature.types.cjs";
6
6
  import { Row_RowSelection } from "../features/row-selection/rowSelectionFeature.types.cjs";
@@ -1,6 +1,6 @@
1
1
  import { RowData } from "./type-utils.js";
2
- import { Row_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
3
2
  import { Row_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
3
+ import { Row_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
4
4
  import { Row_RowExpanding } from "../features/row-expanding/rowExpandingFeature.types.js";
5
5
  import { Row_RowPinning } from "../features/row-pinning/rowPinningFeature.types.js";
6
6
  import { Row_RowSelection } from "../features/row-selection/rowSelectionFeature.types.js";
@@ -1,8 +1,8 @@
1
1
  import { RowData } from "./type-utils.cjs";
2
- import { CachedRowModel_Sorted } from "../features/row-sorting/rowSortingFeature.types.cjs";
3
2
  import { CachedRowModel_Expanded } from "../features/row-expanding/rowExpandingFeature.types.cjs";
4
3
  import { CachedRowModel_Filtered } from "../features/column-filtering/columnFilteringFeature.types.cjs";
5
4
  import { CachedRowModel_Paginated } from "../features/row-pagination/rowPaginationFeature.types.cjs";
5
+ import { CachedRowModel_Sorted } from "../features/row-sorting/rowSortingFeature.types.cjs";
6
6
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.cjs";
7
7
  import { CachedRowModel_Faceted } from "../features/column-faceting/columnFacetingFeature.types.cjs";
8
8
  import { CachedRowModel_Core, RowModel } from "../core/row-models/coreRowModelsFeature.types.cjs";
@@ -1,8 +1,8 @@
1
1
  import { RowData } from "./type-utils.js";
2
- import { CachedRowModel_Sorted } from "../features/row-sorting/rowSortingFeature.types.js";
3
2
  import { CachedRowModel_Expanded } from "../features/row-expanding/rowExpandingFeature.types.js";
4
3
  import { CachedRowModel_Filtered } from "../features/column-filtering/columnFilteringFeature.types.js";
5
4
  import { CachedRowModel_Paginated } from "../features/row-pagination/rowPaginationFeature.types.js";
5
+ import { CachedRowModel_Sorted } from "../features/row-sorting/rowSortingFeature.types.js";
6
6
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
7
7
  import { CachedRowModel_Faceted } from "../features/column-faceting/columnFacetingFeature.types.js";
8
8
  import { CachedRowModel_Core, RowModel } from "../core/row-models/coreRowModelsFeature.types.js";
@@ -1,6 +1,6 @@
1
1
  import { RowData } from "./type-utils.cjs";
2
- import { RowModelFns_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
3
2
  import { RowModelFns_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.cjs";
3
+ import { RowModelFns_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
4
4
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.cjs";
5
5
  import { RowModelFns_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.cjs";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { RowData } from "./type-utils.js";
2
- import { RowModelFns_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
3
2
  import { RowModelFns_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
3
+ import { RowModelFns_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
4
4
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
5
5
  import { RowModelFns_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.js";
6
6
 
@@ -1,22 +1,22 @@
1
1
  import { RowData } from "./type-utils.cjs";
2
2
  import { Table_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.cjs";
3
- import { Table_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
3
+ import { Table_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
4
4
  import { Table_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.cjs";
5
5
  import { Table_Headers } from "../core/headers/coreHeadersFeature.types.cjs";
6
6
  import { Table_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.cjs";
7
- import { Table_ColumnOrdering } from "../features/column-ordering/columnOrderingFeature.types.cjs";
8
- import { Table_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.cjs";
9
- import { Table_Columns } from "../core/columns/coreColumnsFeature.types.cjs";
10
- import { Table_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.cjs";
11
7
  import { Table_RowExpanding } from "../features/row-expanding/rowExpandingFeature.types.cjs";
12
8
  import { Table_RowPinning } from "../features/row-pinning/rowPinningFeature.types.cjs";
13
9
  import { Table_RowSelection } from "../features/row-selection/rowSelectionFeature.types.cjs";
14
10
  import { Table_Rows } from "../core/rows/coreRowsFeature.types.cjs";
15
11
  import { Table_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.cjs";
12
+ import { Table_ColumnOrdering } from "../features/column-ordering/columnOrderingFeature.types.cjs";
13
+ import { Table_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.cjs";
16
14
  import { Table_RowPagination } from "../features/row-pagination/rowPaginationFeature.types.cjs";
15
+ import { Table_RowSorting } from "../features/row-sorting/rowSortingFeature.types.cjs";
17
16
  import { CachedRowModel_All } from "./RowModel.cjs";
18
17
  import { RowModelFns_All } from "./RowModelFns.cjs";
19
18
  import { TableState, TableState_All } from "./TableState.cjs";
19
+ import { Table_Columns } from "../core/columns/coreColumnsFeature.types.cjs";
20
20
  import { DebugOptions, TableOptions_All } from "./TableOptions.cjs";
21
21
  import { Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, ExternalAtoms_All, Table_Table } from "../core/table/coreTablesFeature.types.cjs";
22
22
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.cjs";
@@ -1,22 +1,22 @@
1
1
  import { RowData } from "./type-utils.js";
2
2
  import { Table_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
3
- import { Table_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
3
+ import { Table_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
4
4
  import { Table_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
5
5
  import { Table_Headers } from "../core/headers/coreHeadersFeature.types.js";
6
6
  import { Table_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
7
- import { Table_ColumnOrdering } from "../features/column-ordering/columnOrderingFeature.types.js";
8
- import { Table_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
9
- import { Table_Columns } from "../core/columns/coreColumnsFeature.types.js";
10
- import { Table_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
11
7
  import { Table_RowExpanding } from "../features/row-expanding/rowExpandingFeature.types.js";
12
8
  import { Table_RowPinning } from "../features/row-pinning/rowPinningFeature.types.js";
13
9
  import { Table_RowSelection } from "../features/row-selection/rowSelectionFeature.types.js";
14
10
  import { Table_Rows } from "../core/rows/coreRowsFeature.types.js";
15
11
  import { Table_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
12
+ import { Table_ColumnOrdering } from "../features/column-ordering/columnOrderingFeature.types.js";
13
+ import { Table_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
16
14
  import { Table_RowPagination } from "../features/row-pagination/rowPaginationFeature.types.js";
15
+ import { Table_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
17
16
  import { CachedRowModel_All } from "./RowModel.js";
18
17
  import { RowModelFns_All } from "./RowModelFns.js";
19
18
  import { TableState, TableState_All } from "./TableState.js";
19
+ import { Table_Columns } from "../core/columns/coreColumnsFeature.types.js";
20
20
  import { DebugOptions, TableOptions_All } from "./TableOptions.js";
21
21
  import { Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, ExternalAtoms_All, Table_Table } from "../core/table/coreTablesFeature.types.js";
22
22
  import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";