@tanstack/table-core 9.0.0-alpha.16 → 9.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/cells/constructCell.cjs +28 -0
- package/dist/core/cells/constructCell.cjs.map +1 -0
- package/dist/core/cells/constructCell.d.cts +12 -0
- package/dist/core/cells/constructCell.d.ts +12 -0
- package/dist/core/cells/constructCell.js +27 -0
- package/dist/core/cells/constructCell.js.map +1 -0
- package/dist/core/cells/coreCellsFeature.cjs +25 -0
- package/dist/core/cells/coreCellsFeature.cjs.map +1 -0
- package/dist/core/cells/coreCellsFeature.d.cts +13 -0
- package/dist/core/cells/coreCellsFeature.d.ts +13 -0
- package/dist/core/cells/coreCellsFeature.js +24 -0
- package/dist/core/cells/coreCellsFeature.js.map +1 -0
- package/dist/core/cells/coreCellsFeature.types.d.cts +57 -0
- package/dist/core/cells/coreCellsFeature.types.d.ts +57 -0
- package/dist/core/cells/coreCellsFeature.utils.cjs +24 -0
- package/dist/core/cells/coreCellsFeature.utils.cjs.map +1 -0
- package/dist/core/cells/coreCellsFeature.utils.d.cts +20 -0
- package/dist/core/cells/coreCellsFeature.utils.d.ts +20 -0
- package/dist/core/cells/coreCellsFeature.utils.js +21 -0
- package/dist/core/cells/coreCellsFeature.utils.js.map +1 -0
- package/dist/core/columns/constructColumn.cjs +52 -0
- package/dist/core/columns/constructColumn.cjs.map +1 -0
- package/dist/core/columns/constructColumn.d.cts +11 -0
- package/dist/core/columns/constructColumn.d.ts +11 -0
- package/dist/core/columns/constructColumn.js +51 -0
- package/dist/core/columns/constructColumn.js.map +1 -0
- package/dist/core/columns/coreColumnsFeature.cjs +64 -0
- package/dist/core/columns/coreColumnsFeature.cjs.map +1 -0
- package/dist/core/columns/coreColumnsFeature.d.cts +13 -0
- package/dist/core/columns/coreColumnsFeature.d.ts +13 -0
- package/dist/core/columns/coreColumnsFeature.js +63 -0
- package/dist/core/columns/coreColumnsFeature.js.map +1 -0
- package/dist/core/columns/coreColumnsFeature.types.d.cts +89 -0
- package/dist/core/columns/coreColumnsFeature.types.d.ts +89 -0
- package/dist/core/columns/coreColumnsFeature.utils.cjs +74 -0
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -0
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +18 -0
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +18 -0
- package/dist/core/columns/coreColumnsFeature.utils.js +67 -0
- package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -0
- package/dist/core/coreFeatures.cjs +20 -0
- package/dist/core/coreFeatures.cjs.map +1 -0
- package/dist/core/coreFeatures.d.cts +20 -0
- package/dist/core/coreFeatures.d.ts +20 -0
- package/dist/{esm/core → core}/coreFeatures.js +12 -10
- package/dist/core/coreFeatures.js.map +1 -0
- package/dist/core/headers/buildHeaderGroups.cjs +90 -0
- package/dist/core/headers/buildHeaderGroups.cjs.map +1 -0
- package/dist/core/headers/buildHeaderGroups.d.cts +11 -0
- package/dist/core/headers/buildHeaderGroups.d.ts +11 -0
- package/dist/core/headers/buildHeaderGroups.js +90 -0
- package/dist/core/headers/buildHeaderGroups.js.map +1 -0
- package/dist/core/headers/constructHeader.cjs +35 -0
- package/dist/core/headers/constructHeader.cjs.map +1 -0
- package/dist/core/headers/constructHeader.d.cts +17 -0
- package/dist/core/headers/constructHeader.d.ts +17 -0
- package/dist/core/headers/constructHeader.js +34 -0
- package/dist/core/headers/constructHeader.js.map +1 -0
- package/dist/core/headers/coreHeadersFeature.cjs +61 -0
- package/dist/core/headers/coreHeadersFeature.cjs.map +1 -0
- package/dist/core/headers/coreHeadersFeature.d.cts +13 -0
- package/dist/core/headers/coreHeadersFeature.d.ts +13 -0
- package/dist/core/headers/coreHeadersFeature.js +60 -0
- package/dist/core/headers/coreHeadersFeature.js.map +1 -0
- package/dist/core/headers/coreHeadersFeature.types.d.cts +104 -0
- package/dist/core/headers/coreHeadersFeature.types.d.ts +104 -0
- package/dist/core/headers/coreHeadersFeature.utils.cjs +65 -0
- package/dist/core/headers/coreHeadersFeature.utils.cjs.map +1 -0
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +20 -0
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +20 -0
- package/dist/core/headers/coreHeadersFeature.utils.js +60 -0
- package/dist/core/headers/coreHeadersFeature.utils.js.map +1 -0
- package/dist/core/row-models/coreRowModelsFeature.cjs +31 -0
- package/dist/core/row-models/coreRowModelsFeature.cjs.map +1 -0
- package/dist/core/row-models/coreRowModelsFeature.d.cts +13 -0
- package/dist/core/row-models/coreRowModelsFeature.d.ts +13 -0
- package/dist/core/row-models/coreRowModelsFeature.js +30 -0
- package/dist/core/row-models/coreRowModelsFeature.js.map +1 -0
- package/dist/core/row-models/coreRowModelsFeature.types.d.cts +42 -0
- package/dist/core/row-models/coreRowModelsFeature.types.d.ts +42 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +83 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +1 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +21 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +21 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.js +72 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.js.map +1 -0
- package/dist/core/row-models/createCoreRowModel.cjs +47 -0
- package/dist/core/row-models/createCoreRowModel.cjs.map +1 -0
- package/dist/core/row-models/createCoreRowModel.d.cts +10 -0
- package/dist/core/row-models/createCoreRowModel.d.ts +10 -0
- package/dist/core/row-models/createCoreRowModel.js +47 -0
- package/dist/core/row-models/createCoreRowModel.js.map +1 -0
- package/dist/core/rows/constructRow.cjs +37 -0
- package/dist/core/rows/constructRow.cjs.map +1 -0
- package/dist/core/rows/constructRow.d.cts +10 -0
- package/dist/core/rows/constructRow.d.ts +10 -0
- package/dist/core/rows/constructRow.js +36 -0
- package/dist/core/rows/constructRow.js.map +1 -0
- package/dist/core/rows/coreRowsFeature.cjs +41 -0
- package/dist/core/rows/coreRowsFeature.cjs.map +1 -0
- package/dist/core/rows/coreRowsFeature.d.cts +13 -0
- package/dist/core/rows/coreRowsFeature.d.ts +13 -0
- package/dist/core/rows/coreRowsFeature.js +40 -0
- package/dist/core/rows/coreRowsFeature.js.map +1 -0
- package/dist/core/rows/coreRowsFeature.types.d.cts +96 -0
- package/dist/core/rows/coreRowsFeature.types.d.ts +96 -0
- package/dist/core/rows/coreRowsFeature.utils.cjs +81 -0
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +1 -0
- package/dist/core/rows/coreRowsFeature.utils.d.cts +20 -0
- package/dist/core/rows/coreRowsFeature.utils.d.ts +20 -0
- package/dist/core/rows/coreRowsFeature.utils.js +72 -0
- package/dist/core/rows/coreRowsFeature.utils.js.map +1 -0
- package/dist/core/table/constructTable.cjs +69 -0
- package/dist/core/table/constructTable.cjs.map +1 -0
- package/dist/core/table/constructTable.d.cts +14 -0
- package/dist/core/table/constructTable.d.ts +14 -0
- package/dist/core/table/constructTable.js +67 -0
- package/dist/core/table/constructTable.js.map +1 -0
- package/dist/core/table/coreTablesFeature.cjs +21 -0
- package/dist/core/table/coreTablesFeature.cjs.map +1 -0
- package/dist/core/table/coreTablesFeature.d.cts +13 -0
- package/dist/core/table/coreTablesFeature.d.ts +13 -0
- package/dist/core/table/coreTablesFeature.js +20 -0
- package/dist/core/table/coreTablesFeature.js.map +1 -0
- package/dist/core/table/coreTablesFeature.types.d.cts +113 -0
- package/dist/core/table/coreTablesFeature.types.d.ts +113 -0
- package/dist/core/table/coreTablesFeature.utils.cjs +23 -0
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -0
- package/dist/core/table/coreTablesFeature.utils.d.cts +12 -0
- package/dist/core/table/coreTablesFeature.utils.d.ts +12 -0
- package/dist/core/table/coreTablesFeature.utils.js +21 -0
- package/dist/core/table/coreTablesFeature.utils.js.map +1 -0
- package/dist/features/column-faceting/columnFacetingFeature.cjs +59 -0
- package/dist/features/column-faceting/columnFacetingFeature.cjs.map +1 -0
- package/dist/features/column-faceting/columnFacetingFeature.d.cts +13 -0
- package/dist/features/column-faceting/columnFacetingFeature.d.ts +13 -0
- package/dist/features/column-faceting/columnFacetingFeature.js +58 -0
- package/dist/features/column-faceting/columnFacetingFeature.js.map +1 -0
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +73 -0
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +73 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +35 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +1 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +16 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +16 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +29 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +1 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs +36 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs.map +1 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.cts +9 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.ts +9 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.js +36 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.js.map +1 -0
- package/dist/features/column-faceting/createFacetedRowModel.cjs +37 -0
- package/dist/features/column-faceting/createFacetedRowModel.cjs.map +1 -0
- package/dist/features/column-faceting/createFacetedRowModel.d.cts +10 -0
- package/dist/features/column-faceting/createFacetedRowModel.d.ts +10 -0
- package/dist/features/column-faceting/createFacetedRowModel.js +37 -0
- package/dist/features/column-faceting/createFacetedRowModel.js.map +1 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs +33 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs.map +1 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.d.cts +9 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.d.ts +9 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.js +33 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.js.map +1 -0
- package/dist/features/column-filtering/columnFilteringFeature.cjs +55 -0
- package/dist/features/column-filtering/columnFilteringFeature.cjs.map +1 -0
- package/dist/features/column-filtering/columnFilteringFeature.d.cts +14 -0
- package/dist/features/column-filtering/columnFilteringFeature.d.ts +14 -0
- package/dist/features/column-filtering/columnFilteringFeature.js +54 -0
- package/dist/features/column-filtering/columnFilteringFeature.js.map +1 -0
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +147 -0
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +147 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +90 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +21 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +21 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +80 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -0
- package/dist/features/column-filtering/createFilteredRowModel.cjs +94 -0
- package/dist/features/column-filtering/createFilteredRowModel.cjs.map +1 -0
- package/dist/features/column-filtering/createFilteredRowModel.d.cts +11 -0
- package/dist/features/column-filtering/createFilteredRowModel.d.ts +11 -0
- package/dist/features/column-filtering/createFilteredRowModel.js +94 -0
- package/dist/features/column-filtering/createFilteredRowModel.js.map +1 -0
- package/dist/features/column-filtering/filterRowsUtils.cjs +76 -0
- package/dist/features/column-filtering/filterRowsUtils.cjs.map +1 -0
- package/dist/features/column-filtering/filterRowsUtils.js +76 -0
- package/dist/features/column-filtering/filterRowsUtils.js.map +1 -0
- package/dist/features/column-grouping/columnGroupingFeature.cjs +71 -0
- package/dist/features/column-grouping/columnGroupingFeature.cjs.map +1 -0
- package/dist/features/column-grouping/columnGroupingFeature.d.cts +13 -0
- package/dist/features/column-grouping/columnGroupingFeature.d.ts +13 -0
- package/dist/features/column-grouping/columnGroupingFeature.js +70 -0
- package/dist/features/column-grouping/columnGroupingFeature.js.map +1 -0
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +157 -0
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +157 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +88 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +1 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +27 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +27 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +74 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +1 -0
- package/dist/features/column-grouping/createGroupedRowModel.cjs +110 -0
- package/dist/features/column-grouping/createGroupedRowModel.cjs.map +1 -0
- package/dist/features/column-grouping/createGroupedRowModel.d.cts +11 -0
- package/dist/features/column-grouping/createGroupedRowModel.d.ts +11 -0
- package/dist/features/column-grouping/createGroupedRowModel.js +110 -0
- package/dist/features/column-grouping/createGroupedRowModel.js.map +1 -0
- package/dist/features/column-ordering/columnOrderingFeature.cjs +55 -0
- package/dist/features/column-ordering/columnOrderingFeature.cjs.map +1 -0
- package/dist/features/column-ordering/columnOrderingFeature.d.cts +13 -0
- package/dist/features/column-ordering/columnOrderingFeature.d.ts +13 -0
- package/dist/features/column-ordering/columnOrderingFeature.js +54 -0
- package/dist/features/column-ordering/columnOrderingFeature.js.map +1 -0
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +45 -0
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +45 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +62 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +1 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +19 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +19 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +55 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +1 -0
- package/dist/features/column-pinning/columnPinningFeature.cjs +178 -0
- package/dist/features/column-pinning/columnPinningFeature.cjs.map +1 -0
- package/dist/features/column-pinning/columnPinningFeature.d.cts +13 -0
- package/dist/features/column-pinning/columnPinningFeature.d.ts +13 -0
- package/dist/features/column-pinning/columnPinningFeature.js +177 -0
- package/dist/features/column-pinning/columnPinningFeature.js.map +1 -0
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +162 -0
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +162 -0
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +194 -0
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -0
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +43 -0
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +43 -0
- package/dist/features/column-pinning/columnPinningFeature.utils.js +164 -0
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -0
- package/dist/features/column-resizing/columnResizingFeature.cjs +46 -0
- package/dist/features/column-resizing/columnResizingFeature.cjs.map +1 -0
- package/dist/features/column-resizing/columnResizingFeature.d.cts +14 -0
- package/dist/features/column-resizing/columnResizingFeature.d.ts +14 -0
- package/dist/features/column-resizing/columnResizingFeature.js +45 -0
- package/dist/features/column-resizing/columnResizingFeature.js.map +1 -0
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +73 -0
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +73 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +156 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +1 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +19 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +19 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.js +149 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.js.map +1 -0
- package/dist/features/column-sizing/columnSizingFeature.cjs +69 -0
- package/dist/features/column-sizing/columnSizingFeature.cjs.map +1 -0
- package/dist/features/column-sizing/columnSizingFeature.d.cts +14 -0
- package/dist/features/column-sizing/columnSizingFeature.d.ts +14 -0
- package/dist/features/column-sizing/columnSizingFeature.js +68 -0
- package/dist/features/column-sizing/columnSizingFeature.js.map +1 -0
- package/dist/features/column-sizing/columnSizingFeature.types.d.cts +86 -0
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +86 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +97 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +1 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +30 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +30 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.js +84 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +1 -0
- package/dist/features/column-visibility/columnVisibilityFeature.cjs +76 -0
- package/dist/features/column-visibility/columnVisibilityFeature.cjs.map +1 -0
- package/dist/features/column-visibility/columnVisibilityFeature.d.cts +13 -0
- package/dist/features/column-visibility/columnVisibilityFeature.d.ts +13 -0
- package/dist/features/column-visibility/columnVisibilityFeature.js +75 -0
- package/dist/features/column-visibility/columnVisibilityFeature.js.map +1 -0
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +89 -0
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +89 -0
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +84 -0
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +1 -0
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +26 -0
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +26 -0
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +70 -0
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +1 -0
- package/dist/features/global-filtering/globalFilteringFeature.cjs +46 -0
- package/dist/features/global-filtering/globalFilteringFeature.cjs.map +1 -0
- package/dist/features/global-filtering/globalFilteringFeature.d.cts +14 -0
- package/dist/features/global-filtering/globalFilteringFeature.d.ts +14 -0
- package/dist/features/global-filtering/globalFilteringFeature.js +45 -0
- package/dist/features/global-filtering/globalFilteringFeature.js.map +1 -0
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +64 -0
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +64 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +31 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +15 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +15 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +27 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -0
- package/dist/features/row-expanding/createExpandedRowModel.cjs +45 -0
- package/dist/features/row-expanding/createExpandedRowModel.cjs.map +1 -0
- package/dist/features/row-expanding/createExpandedRowModel.d.cts +11 -0
- package/dist/features/row-expanding/createExpandedRowModel.d.ts +11 -0
- package/dist/features/row-expanding/createExpandedRowModel.js +44 -0
- package/dist/features/row-expanding/createExpandedRowModel.js.map +1 -0
- package/dist/features/row-expanding/rowExpandingFeature.cjs +51 -0
- package/dist/features/row-expanding/rowExpandingFeature.cjs.map +1 -0
- package/dist/features/row-expanding/rowExpandingFeature.d.cts +13 -0
- package/dist/features/row-expanding/rowExpandingFeature.d.ts +13 -0
- package/dist/features/row-expanding/rowExpandingFeature.js +50 -0
- package/dist/features/row-expanding/rowExpandingFeature.js.map +1 -0
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +121 -0
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +121 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +111 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +1 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +25 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +25 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +96 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +1 -0
- package/dist/features/row-pagination/createPaginatedRowModel.cjs +53 -0
- package/dist/features/row-pagination/createPaginatedRowModel.cjs.map +1 -0
- package/dist/features/row-pagination/createPaginatedRowModel.d.cts +10 -0
- package/dist/features/row-pagination/createPaginatedRowModel.d.ts +10 -0
- package/dist/features/row-pagination/createPaginatedRowModel.js +53 -0
- package/dist/features/row-pagination/createPaginatedRowModel.js.map +1 -0
- package/dist/features/row-pagination/rowPaginationFeature.cjs +49 -0
- package/dist/features/row-pagination/rowPaginationFeature.cjs.map +1 -0
- package/dist/features/row-pagination/rowPaginationFeature.d.cts +13 -0
- package/dist/features/row-pagination/rowPaginationFeature.d.ts +13 -0
- package/dist/features/row-pagination/rowPaginationFeature.js +48 -0
- package/dist/features/row-pagination/rowPaginationFeature.js.map +1 -0
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +124 -0
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +124 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +114 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +1 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +26 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +26 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +98 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +1 -0
- package/dist/features/row-pinning/rowPinningFeature.cjs +65 -0
- package/dist/features/row-pinning/rowPinningFeature.cjs.map +1 -0
- package/dist/features/row-pinning/rowPinningFeature.d.cts +13 -0
- package/dist/features/row-pinning/rowPinningFeature.d.ts +13 -0
- package/dist/features/row-pinning/rowPinningFeature.js +64 -0
- package/dist/features/row-pinning/rowPinningFeature.js.map +1 -0
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +77 -0
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +77 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs +98 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +21 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +21 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.js +88 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -0
- package/dist/features/row-selection/rowSelectionFeature.cjs +70 -0
- package/dist/features/row-selection/rowSelectionFeature.cjs.map +1 -0
- package/dist/features/row-selection/rowSelectionFeature.d.cts +13 -0
- package/dist/features/row-selection/rowSelectionFeature.d.ts +13 -0
- package/dist/features/row-selection/rowSelectionFeature.js +69 -0
- package/dist/features/row-selection/rowSelectionFeature.js.map +1 -0
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +128 -0
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +128 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +224 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +1 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +39 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +39 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.js +198 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +1 -0
- package/dist/features/row-sorting/createSortedRowModel.cjs +81 -0
- package/dist/features/row-sorting/createSortedRowModel.cjs.map +1 -0
- package/dist/features/row-sorting/createSortedRowModel.d.cts +11 -0
- package/dist/features/row-sorting/createSortedRowModel.d.ts +11 -0
- package/dist/features/row-sorting/createSortedRowModel.js +81 -0
- package/dist/features/row-sorting/createSortedRowModel.js.map +1 -0
- package/dist/features/row-sorting/rowSortingFeature.cjs +59 -0
- package/dist/features/row-sorting/rowSortingFeature.cjs.map +1 -0
- package/dist/features/row-sorting/rowSortingFeature.d.cts +13 -0
- package/dist/features/row-sorting/rowSortingFeature.d.ts +13 -0
- package/dist/features/row-sorting/rowSortingFeature.js +58 -0
- package/dist/features/row-sorting/rowSortingFeature.js.map +1 -0
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +182 -0
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +182 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +134 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +1 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +25 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +25 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.js +120 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.js.map +1 -0
- package/dist/features/stockFeatures.cjs +36 -0
- package/dist/features/stockFeatures.cjs.map +1 -0
- package/dist/features/stockFeatures.d.cts +36 -0
- package/dist/features/stockFeatures.d.ts +36 -0
- package/dist/{esm/features → features}/stockFeatures.js +20 -18
- package/dist/features/stockFeatures.js.map +1 -0
- package/dist/features/table-reactivity/tableReactivityFeature.cjs +24 -0
- package/dist/features/table-reactivity/tableReactivityFeature.cjs.map +1 -0
- package/dist/features/table-reactivity/tableReactivityFeature.d.cts +12 -0
- package/dist/features/table-reactivity/tableReactivityFeature.d.ts +12 -0
- package/dist/features/table-reactivity/tableReactivityFeature.js +23 -0
- package/dist/features/table-reactivity/tableReactivityFeature.js.map +1 -0
- package/dist/fns/aggregationFns.cjs +125 -0
- package/dist/fns/aggregationFns.cjs.map +1 -0
- package/dist/fns/aggregationFns.d.cts +54 -0
- package/dist/fns/aggregationFns.d.ts +54 -0
- package/dist/fns/aggregationFns.js +116 -0
- package/dist/fns/aggregationFns.js.map +1 -0
- package/dist/fns/filterFns.cjs +179 -0
- package/dist/fns/filterFns.cjs.map +1 -0
- package/dist/fns/filterFns.d.cts +81 -0
- package/dist/fns/filterFns.d.ts +81 -0
- package/dist/fns/filterFns.js +163 -0
- package/dist/fns/filterFns.js.map +1 -0
- package/dist/fns/sortFns.cjs +73 -0
- package/dist/fns/sortFns.cjs.map +1 -0
- package/dist/fns/sortFns.d.cts +22 -0
- package/dist/fns/sortFns.d.ts +22 -0
- package/dist/fns/sortFns.js +65 -0
- package/dist/fns/sortFns.js.map +1 -0
- package/dist/helpers/columnHelper.cjs +36 -0
- package/dist/helpers/columnHelper.cjs.map +1 -0
- package/dist/helpers/columnHelper.d.cts +66 -0
- package/dist/helpers/columnHelper.d.ts +66 -0
- package/dist/helpers/columnHelper.js +35 -0
- package/dist/helpers/columnHelper.js.map +1 -0
- package/dist/helpers/tableFeatures.cjs +20 -0
- package/dist/helpers/tableFeatures.cjs.map +1 -0
- package/dist/helpers/tableFeatures.d.cts +18 -0
- package/dist/{esm/helpers → helpers}/tableFeatures.d.ts +7 -2
- package/dist/helpers/tableFeatures.js +19 -0
- package/dist/helpers/tableFeatures.js.map +1 -0
- package/dist/helpers/tableHelper.cjs +21 -0
- package/dist/helpers/tableHelper.cjs.map +1 -0
- package/dist/helpers/tableHelper.d.cts +30 -0
- package/dist/helpers/tableHelper.d.ts +30 -0
- package/dist/helpers/tableHelper.js +21 -0
- package/dist/helpers/tableHelper.js.map +1 -0
- package/dist/helpers/tableOptions.cjs +9 -0
- package/dist/helpers/tableOptions.cjs.map +1 -0
- package/dist/helpers/tableOptions.d.cts +28 -0
- package/dist/helpers/tableOptions.d.ts +28 -0
- package/dist/helpers/tableOptions.js +8 -0
- package/dist/helpers/tableOptions.js.map +1 -0
- package/dist/index.cjs +420 -0
- package/dist/index.d.cts +100 -0
- package/dist/index.d.ts +100 -0
- package/dist/{esm/index.js → index.js} +42 -395
- package/dist/types/Cell.d.cts +16 -0
- package/dist/types/Cell.d.ts +16 -0
- package/dist/types/Column.d.cts +29 -0
- package/dist/types/Column.d.ts +29 -0
- package/dist/types/ColumnDef.d.cts +66 -0
- package/dist/types/ColumnDef.d.ts +66 -0
- package/dist/types/Header.d.cts +17 -0
- package/dist/types/Header.d.ts +17 -0
- package/dist/types/HeaderGroup.d.cts +15 -0
- package/dist/types/HeaderGroup.d.ts +15 -0
- package/dist/types/Row.d.cts +22 -0
- package/dist/types/Row.d.ts +22 -0
- package/dist/types/RowModel.d.cts +26 -0
- package/dist/types/RowModel.d.ts +26 -0
- package/dist/types/RowModelFns.d.cts +18 -0
- package/dist/types/RowModelFns.d.ts +18 -0
- package/dist/types/Table.d.cts +57 -0
- package/dist/types/Table.d.ts +57 -0
- package/dist/types/TableFeatures.d.cts +77 -0
- package/dist/types/TableFeatures.d.ts +77 -0
- package/dist/types/TableOptions.d.cts +39 -0
- package/dist/types/TableOptions.d.ts +39 -0
- package/dist/types/TableState.d.cts +27 -0
- package/dist/types/TableState.d.ts +27 -0
- package/dist/types/type-utils.d.cts +23 -0
- package/dist/types/type-utils.d.ts +23 -0
- package/dist/utils.cjs +210 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +90 -0
- package/dist/utils.d.ts +90 -0
- package/dist/utils.js +196 -0
- package/dist/utils.js.map +1 -0
- package/package.json +8 -8
- package/src/features/column-resizing/columnResizingFeature.utils.ts +8 -2
- package/src/process-env.d.ts +6 -0
- package/dist/esm/core/cells/constructCell.d.ts +0 -7
- package/dist/esm/core/cells/constructCell.js +0 -21
- package/dist/esm/core/cells/constructCell.js.map +0 -1
- package/dist/esm/core/cells/coreCellsFeature.d.ts +0 -10
- package/dist/esm/core/cells/coreCellsFeature.js +0 -26
- package/dist/esm/core/cells/coreCellsFeature.js.map +0 -1
- package/dist/esm/core/cells/coreCellsFeature.types.d.ts +0 -52
- package/dist/esm/core/cells/coreCellsFeature.utils.d.ts +0 -13
- package/dist/esm/core/cells/coreCellsFeature.utils.js +0 -23
- package/dist/esm/core/cells/coreCellsFeature.utils.js.map +0 -1
- package/dist/esm/core/columns/constructColumn.d.ts +0 -6
- package/dist/esm/core/columns/constructColumn.js +0 -60
- package/dist/esm/core/columns/constructColumn.js.map +0 -1
- package/dist/esm/core/columns/coreColumnsFeature.d.ts +0 -10
- package/dist/esm/core/columns/coreColumnsFeature.js +0 -61
- package/dist/esm/core/columns/coreColumnsFeature.js.map +0 -1
- package/dist/esm/core/columns/coreColumnsFeature.types.d.ts +0 -84
- package/dist/esm/core/columns/coreColumnsFeature.utils.d.ts +0 -13
- package/dist/esm/core/columns/coreColumnsFeature.utils.js +0 -91
- package/dist/esm/core/columns/coreColumnsFeature.utils.js.map +0 -1
- package/dist/esm/core/coreFeatures.d.ts +0 -15
- package/dist/esm/core/coreFeatures.js.map +0 -1
- package/dist/esm/core/headers/buildHeaderGroups.d.ts +0 -6
- package/dist/esm/core/headers/buildHeaderGroups.js +0 -99
- package/dist/esm/core/headers/buildHeaderGroups.js.map +0 -1
- package/dist/esm/core/headers/constructHeader.d.ts +0 -12
- package/dist/esm/core/headers/constructHeader.js +0 -28
- package/dist/esm/core/headers/constructHeader.js.map +0 -1
- package/dist/esm/core/headers/coreHeadersFeature.d.ts +0 -10
- package/dist/esm/core/headers/coreHeadersFeature.js +0 -68
- package/dist/esm/core/headers/coreHeadersFeature.js.map +0 -1
- package/dist/esm/core/headers/coreHeadersFeature.types.d.ts +0 -99
- package/dist/esm/core/headers/coreHeadersFeature.utils.d.ts +0 -15
- package/dist/esm/core/headers/coreHeadersFeature.utils.js +0 -85
- package/dist/esm/core/headers/coreHeadersFeature.utils.js.map +0 -1
- package/dist/esm/core/row-models/coreRowModelsFeature.d.ts +0 -10
- package/dist/esm/core/row-models/coreRowModelsFeature.js +0 -52
- package/dist/esm/core/row-models/coreRowModelsFeature.js.map +0 -1
- package/dist/esm/core/row-models/coreRowModelsFeature.types.d.ts +0 -39
- package/dist/esm/core/row-models/coreRowModelsFeature.utils.d.ts +0 -16
- package/dist/esm/core/row-models/coreRowModelsFeature.utils.js +0 -85
- package/dist/esm/core/row-models/coreRowModelsFeature.utils.js.map +0 -1
- package/dist/esm/core/row-models/createCoreRowModel.d.ts +0 -5
- package/dist/esm/core/row-models/createCoreRowModel.js +0 -54
- package/dist/esm/core/row-models/createCoreRowModel.js.map +0 -1
- package/dist/esm/core/rows/constructRow.d.ts +0 -5
- package/dist/esm/core/rows/constructRow.js +0 -29
- package/dist/esm/core/rows/constructRow.js.map +0 -1
- package/dist/esm/core/rows/coreRowsFeature.d.ts +0 -10
- package/dist/esm/core/rows/coreRowsFeature.js +0 -52
- package/dist/esm/core/rows/coreRowsFeature.js.map +0 -1
- package/dist/esm/core/rows/coreRowsFeature.types.d.ts +0 -91
- package/dist/esm/core/rows/coreRowsFeature.utils.d.ts +0 -15
- package/dist/esm/core/rows/coreRowsFeature.utils.js +0 -94
- package/dist/esm/core/rows/coreRowsFeature.utils.js.map +0 -1
- package/dist/esm/core/table/constructTable.d.ts +0 -9
- package/dist/esm/core/table/constructTable.js +0 -68
- package/dist/esm/core/table/constructTable.js.map +0 -1
- package/dist/esm/core/table/coreTablesFeature.d.ts +0 -10
- package/dist/esm/core/table/coreTablesFeature.js +0 -22
- package/dist/esm/core/table/coreTablesFeature.js.map +0 -1
- package/dist/esm/core/table/coreTablesFeature.types.d.ts +0 -109
- package/dist/esm/core/table/coreTablesFeature.utils.d.ts +0 -7
- package/dist/esm/core/table/coreTablesFeature.utils.js +0 -24
- package/dist/esm/core/table/coreTablesFeature.utils.js.map +0 -1
- package/dist/esm/features/column-faceting/columnFacetingFeature.d.ts +0 -10
- package/dist/esm/features/column-faceting/columnFacetingFeature.js +0 -80
- package/dist/esm/features/column-faceting/columnFacetingFeature.js.map +0 -1
- package/dist/esm/features/column-faceting/columnFacetingFeature.types.d.ts +0 -68
- package/dist/esm/features/column-faceting/columnFacetingFeature.utils.d.ts +0 -11
- package/dist/esm/features/column-faceting/columnFacetingFeature.utils.js +0 -33
- package/dist/esm/features/column-faceting/columnFacetingFeature.utils.js.map +0 -1
- package/dist/esm/features/column-faceting/createFacetedMinMaxValues.d.ts +0 -4
- package/dist/esm/features/column-faceting/createFacetedMinMaxValues.js +0 -41
- package/dist/esm/features/column-faceting/createFacetedMinMaxValues.js.map +0 -1
- package/dist/esm/features/column-faceting/createFacetedRowModel.d.ts +0 -5
- package/dist/esm/features/column-faceting/createFacetedRowModel.js +0 -47
- package/dist/esm/features/column-faceting/createFacetedRowModel.js.map +0 -1
- package/dist/esm/features/column-faceting/createFacetedUniqueValues.d.ts +0 -4
- package/dist/esm/features/column-faceting/createFacetedUniqueValues.js +0 -46
- package/dist/esm/features/column-faceting/createFacetedUniqueValues.js.map +0 -1
- package/dist/esm/features/column-filtering/columnFilteringFeature.d.ts +0 -11
- package/dist/esm/features/column-filtering/columnFilteringFeature.js +0 -69
- package/dist/esm/features/column-filtering/columnFilteringFeature.js.map +0 -1
- package/dist/esm/features/column-filtering/columnFilteringFeature.types.d.ts +0 -145
- package/dist/esm/features/column-filtering/columnFilteringFeature.utils.d.ts +0 -16
- package/dist/esm/features/column-filtering/columnFilteringFeature.utils.js +0 -118
- package/dist/esm/features/column-filtering/columnFilteringFeature.utils.js.map +0 -1
- package/dist/esm/features/column-filtering/createFilteredRowModel.d.ts +0 -6
- package/dist/esm/features/column-filtering/createFilteredRowModel.js +0 -110
- package/dist/esm/features/column-filtering/createFilteredRowModel.js.map +0 -1
- package/dist/esm/features/column-filtering/filterRowsUtils.d.ts +0 -6
- package/dist/esm/features/column-filtering/filterRowsUtils.js +0 -95
- package/dist/esm/features/column-filtering/filterRowsUtils.js.map +0 -1
- package/dist/esm/features/column-grouping/columnGroupingFeature.d.ts +0 -10
- package/dist/esm/features/column-grouping/columnGroupingFeature.js +0 -91
- package/dist/esm/features/column-grouping/columnGroupingFeature.js.map +0 -1
- package/dist/esm/features/column-grouping/columnGroupingFeature.types.d.ts +0 -153
- package/dist/esm/features/column-grouping/columnGroupingFeature.utils.d.ts +0 -22
- package/dist/esm/features/column-grouping/columnGroupingFeature.utils.js +0 -99
- package/dist/esm/features/column-grouping/columnGroupingFeature.utils.js.map +0 -1
- package/dist/esm/features/column-grouping/createGroupedRowModel.d.ts +0 -6
- package/dist/esm/features/column-grouping/createGroupedRowModel.js +0 -144
- package/dist/esm/features/column-grouping/createGroupedRowModel.js.map +0 -1
- package/dist/esm/features/column-ordering/columnOrderingFeature.d.ts +0 -10
- package/dist/esm/features/column-ordering/columnOrderingFeature.js +0 -60
- package/dist/esm/features/column-ordering/columnOrderingFeature.js.map +0 -1
- package/dist/esm/features/column-ordering/columnOrderingFeature.types.d.ts +0 -40
- package/dist/esm/features/column-ordering/columnOrderingFeature.utils.d.ts +0 -14
- package/dist/esm/features/column-ordering/columnOrderingFeature.utils.js +0 -72
- package/dist/esm/features/column-ordering/columnOrderingFeature.utils.js.map +0 -1
- package/dist/esm/features/column-pinning/columnPinningFeature.d.ts +0 -10
- package/dist/esm/features/column-pinning/columnPinningFeature.js +0 -260
- package/dist/esm/features/column-pinning/columnPinningFeature.js.map +0 -1
- package/dist/esm/features/column-pinning/columnPinningFeature.types.d.ts +0 -157
- package/dist/esm/features/column-pinning/columnPinningFeature.utils.d.ts +0 -39
- package/dist/esm/features/column-pinning/columnPinningFeature.utils.js +0 -325
- package/dist/esm/features/column-pinning/columnPinningFeature.utils.js.map +0 -1
- package/dist/esm/features/column-resizing/columnResizingFeature.d.ts +0 -11
- package/dist/esm/features/column-resizing/columnResizingFeature.js +0 -52
- package/dist/esm/features/column-resizing/columnResizingFeature.js.map +0 -1
- package/dist/esm/features/column-resizing/columnResizingFeature.types.d.ts +0 -68
- package/dist/esm/features/column-resizing/columnResizingFeature.utils.d.ts +0 -14
- package/dist/esm/features/column-resizing/columnResizingFeature.utils.js +0 -193
- package/dist/esm/features/column-resizing/columnResizingFeature.utils.js.map +0 -1
- package/dist/esm/features/column-sizing/columnSizingFeature.d.ts +0 -11
- package/dist/esm/features/column-sizing/columnSizingFeature.js +0 -95
- package/dist/esm/features/column-sizing/columnSizingFeature.js.map +0 -1
- package/dist/esm/features/column-sizing/columnSizingFeature.types.d.ts +0 -81
- package/dist/esm/features/column-sizing/columnSizingFeature.utils.d.ts +0 -25
- package/dist/esm/features/column-sizing/columnSizingFeature.utils.js +0 -128
- package/dist/esm/features/column-sizing/columnSizingFeature.utils.js.map +0 -1
- package/dist/esm/features/column-visibility/columnVisibilityFeature.d.ts +0 -10
- package/dist/esm/features/column-visibility/columnVisibilityFeature.js +0 -100
- package/dist/esm/features/column-visibility/columnVisibilityFeature.js.map +0 -1
- package/dist/esm/features/column-visibility/columnVisibilityFeature.types.d.ts +0 -84
- package/dist/esm/features/column-visibility/columnVisibilityFeature.utils.d.ts +0 -22
- package/dist/esm/features/column-visibility/columnVisibilityFeature.utils.js +0 -105
- package/dist/esm/features/column-visibility/columnVisibilityFeature.utils.js.map +0 -1
- package/dist/esm/features/global-filtering/globalFilteringFeature.d.ts +0 -11
- package/dist/esm/features/global-filtering/globalFilteringFeature.js +0 -51
- package/dist/esm/features/global-filtering/globalFilteringFeature.js.map +0 -1
- package/dist/esm/features/global-filtering/globalFilteringFeature.types.d.ts +0 -59
- package/dist/esm/features/global-filtering/globalFilteringFeature.utils.d.ts +0 -10
- package/dist/esm/features/global-filtering/globalFilteringFeature.utils.js +0 -30
- package/dist/esm/features/global-filtering/globalFilteringFeature.utils.js.map +0 -1
- package/dist/esm/features/row-expanding/createExpandedRowModel.d.ts +0 -6
- package/dist/esm/features/row-expanding/createExpandedRowModel.js +0 -49
- package/dist/esm/features/row-expanding/createExpandedRowModel.js.map +0 -1
- package/dist/esm/features/row-expanding/rowExpandingFeature.d.ts +0 -10
- package/dist/esm/features/row-expanding/rowExpandingFeature.js +0 -74
- package/dist/esm/features/row-expanding/rowExpandingFeature.js.map +0 -1
- package/dist/esm/features/row-expanding/rowExpandingFeature.types.d.ts +0 -116
- package/dist/esm/features/row-expanding/rowExpandingFeature.utils.d.ts +0 -20
- package/dist/esm/features/row-expanding/rowExpandingFeature.utils.js +0 -125
- package/dist/esm/features/row-expanding/rowExpandingFeature.utils.js.map +0 -1
- package/dist/esm/features/row-pagination/createPaginatedRowModel.d.ts +0 -5
- package/dist/esm/features/row-pagination/createPaginatedRowModel.js +0 -58
- package/dist/esm/features/row-pagination/createPaginatedRowModel.js.map +0 -1
- package/dist/esm/features/row-pagination/rowPaginationFeature.d.ts +0 -10
- package/dist/esm/features/row-pagination/rowPaginationFeature.js +0 -78
- package/dist/esm/features/row-pagination/rowPaginationFeature.js.map +0 -1
- package/dist/esm/features/row-pagination/rowPaginationFeature.types.d.ts +0 -119
- package/dist/esm/features/row-pagination/rowPaginationFeature.utils.d.ts +0 -21
- package/dist/esm/features/row-pagination/rowPaginationFeature.utils.js +0 -126
- package/dist/esm/features/row-pagination/rowPaginationFeature.utils.js.map +0 -1
- package/dist/esm/features/row-pinning/rowPinningFeature.d.ts +0 -10
- package/dist/esm/features/row-pinning/rowPinningFeature.js +0 -80
- package/dist/esm/features/row-pinning/rowPinningFeature.js.map +0 -1
- package/dist/esm/features/row-pinning/rowPinningFeature.types.d.ts +0 -72
- package/dist/esm/features/row-pinning/rowPinningFeature.utils.d.ts +0 -16
- package/dist/esm/features/row-pinning/rowPinningFeature.utils.js +0 -115
- package/dist/esm/features/row-pinning/rowPinningFeature.utils.js.map +0 -1
- package/dist/esm/features/row-selection/rowSelectionFeature.d.ts +0 -10
- package/dist/esm/features/row-selection/rowSelectionFeature.js +0 -112
- package/dist/esm/features/row-selection/rowSelectionFeature.js.map +0 -1
- package/dist/esm/features/row-selection/rowSelectionFeature.types.d.ts +0 -123
- package/dist/esm/features/row-selection/rowSelectionFeature.utils.d.ts +0 -34
- package/dist/esm/features/row-selection/rowSelectionFeature.utils.js +0 -290
- package/dist/esm/features/row-selection/rowSelectionFeature.utils.js.map +0 -1
- package/dist/esm/features/row-sorting/createSortedRowModel.d.ts +0 -6
- package/dist/esm/features/row-sorting/createSortedRowModel.js +0 -94
- package/dist/esm/features/row-sorting/createSortedRowModel.js.map +0 -1
- package/dist/esm/features/row-sorting/rowSortingFeature.d.ts +0 -10
- package/dist/esm/features/row-sorting/rowSortingFeature.js +0 -82
- package/dist/esm/features/row-sorting/rowSortingFeature.js.map +0 -1
- package/dist/esm/features/row-sorting/rowSortingFeature.types.d.ts +0 -178
- package/dist/esm/features/row-sorting/rowSortingFeature.utils.d.ts +0 -20
- package/dist/esm/features/row-sorting/rowSortingFeature.utils.js +0 -181
- package/dist/esm/features/row-sorting/rowSortingFeature.utils.js.map +0 -1
- package/dist/esm/features/stockFeatures.d.ts +0 -31
- package/dist/esm/features/stockFeatures.js.map +0 -1
- package/dist/esm/features/table-reactivity/tableReactivityFeature.d.ts +0 -9
- package/dist/esm/features/table-reactivity/tableReactivityFeature.js +0 -30
- package/dist/esm/features/table-reactivity/tableReactivityFeature.js.map +0 -1
- package/dist/esm/fns/aggregationFns.d.ts +0 -49
- package/dist/esm/fns/aggregationFns.js +0 -110
- package/dist/esm/fns/aggregationFns.js.map +0 -1
- package/dist/esm/fns/filterFns.d.ts +0 -76
- package/dist/esm/fns/filterFns.js +0 -134
- package/dist/esm/fns/filterFns.js.map +0 -1
- package/dist/esm/fns/sortFns.d.ts +0 -17
- package/dist/esm/fns/sortFns.js +0 -97
- package/dist/esm/fns/sortFns.js.map +0 -1
- package/dist/esm/helpers/columnHelper.d.ts +0 -61
- package/dist/esm/helpers/columnHelper.js +0 -20
- package/dist/esm/helpers/columnHelper.js.map +0 -1
- package/dist/esm/helpers/tableFeatures.js +0 -7
- package/dist/esm/helpers/tableFeatures.js.map +0 -1
- package/dist/esm/helpers/tableHelper.d.ts +0 -25
- package/dist/esm/helpers/tableHelper.js +0 -13
- package/dist/esm/helpers/tableHelper.js.map +0 -1
- package/dist/esm/helpers/tableOptions.d.ts +0 -23
- package/dist/esm/helpers/tableOptions.js +0 -7
- package/dist/esm/helpers/tableOptions.js.map +0 -1
- package/dist/esm/index.d.ts +0 -111
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/Cell.d.ts +0 -13
- package/dist/esm/types/Column.d.ts +0 -26
- package/dist/esm/types/ColumnDef.d.ts +0 -64
- package/dist/esm/types/Header.d.ts +0 -14
- package/dist/esm/types/HeaderGroup.d.ts +0 -12
- package/dist/esm/types/Row.d.ts +0 -19
- package/dist/esm/types/RowModel.d.ts +0 -23
- package/dist/esm/types/RowModelFns.d.ts +0 -15
- package/dist/esm/types/Table.d.ts +0 -53
- package/dist/esm/types/TableFeatures.d.ts +0 -77
- package/dist/esm/types/TableOptions.d.ts +0 -39
- package/dist/esm/types/TableState.d.ts +0 -23
- package/dist/esm/types/type-utils.d.ts +0 -22
- package/dist/esm/utils.d.ts +0 -72
- package/dist/esm/utils.js +0 -231
- package/dist/esm/utils.js.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { tableMemo } from "../../utils.js";
|
|
2
|
+
import { getDefaultPaginationState } from "./rowPaginationFeature.utils.js";
|
|
3
|
+
import { expandRows } from "../row-expanding/createExpandedRowModel.js";
|
|
4
|
+
|
|
5
|
+
//#region src/features/row-pagination/createPaginatedRowModel.ts
|
|
6
|
+
function createPaginatedRowModel() {
|
|
7
|
+
return (_table) => {
|
|
8
|
+
const table = _table;
|
|
9
|
+
return tableMemo({
|
|
10
|
+
feature: "rowPaginationFeature",
|
|
11
|
+
table,
|
|
12
|
+
fnName: "table.getPaginatedRowModel",
|
|
13
|
+
memoDeps: () => [
|
|
14
|
+
table.getPrePaginatedRowModel(),
|
|
15
|
+
table.store.state.pagination,
|
|
16
|
+
table.options.paginateExpandedRows ? table.store.state.expanded : void 0
|
|
17
|
+
],
|
|
18
|
+
fn: () => _createPaginatedRowModel(table)
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function _createPaginatedRowModel(table) {
|
|
23
|
+
const prePaginatedRowModel = table.getPrePaginatedRowModel();
|
|
24
|
+
const pagination = table.store.state.pagination;
|
|
25
|
+
if (!prePaginatedRowModel.rows.length) return prePaginatedRowModel;
|
|
26
|
+
const { pageSize, pageIndex } = pagination ?? getDefaultPaginationState();
|
|
27
|
+
const { rows, flatRows, rowsById } = prePaginatedRowModel;
|
|
28
|
+
const pageStart = pageSize * pageIndex;
|
|
29
|
+
const pageEnd = pageStart + pageSize;
|
|
30
|
+
const paginatedRows = rows.slice(pageStart, pageEnd);
|
|
31
|
+
let paginatedRowModel;
|
|
32
|
+
if (!table.options.paginateExpandedRows) paginatedRowModel = expandRows({
|
|
33
|
+
rows: paginatedRows,
|
|
34
|
+
flatRows,
|
|
35
|
+
rowsById
|
|
36
|
+
});
|
|
37
|
+
else paginatedRowModel = {
|
|
38
|
+
rows: paginatedRows,
|
|
39
|
+
flatRows,
|
|
40
|
+
rowsById
|
|
41
|
+
};
|
|
42
|
+
paginatedRowModel.flatRows = [];
|
|
43
|
+
const handleRow = (row) => {
|
|
44
|
+
paginatedRowModel.flatRows.push(row);
|
|
45
|
+
if (row.subRows.length) row.subRows.forEach(handleRow);
|
|
46
|
+
};
|
|
47
|
+
paginatedRowModel.rows.forEach(handleRow);
|
|
48
|
+
return paginatedRowModel;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { createPaginatedRowModel };
|
|
53
|
+
//# sourceMappingURL=createPaginatedRowModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPaginatedRowModel.js","names":[],"sources":["../../../src/features/row-pagination/createPaginatedRowModel.ts"],"sourcesContent":["import { tableMemo } from '../../utils'\nimport { expandRows } from '../row-expanding/createExpandedRowModel'\nimport { getDefaultPaginationState } from './rowPaginationFeature.utils'\nimport type { TableFeatures } from '../../types/TableFeatures'\nimport type { RowModel } from '../../core/row-models/coreRowModelsFeature.types'\nimport type { Table, Table_Internal } from '../../types/Table'\nimport type { Row } from '../../types/Row'\nimport type { RowData } from '../../types/type-utils'\n\nexport function createPaginatedRowModel<\n TFeatures extends TableFeatures,\n TData extends RowData = any,\n>(): (table: Table<TFeatures, TData>) => () => RowModel<TFeatures, TData> {\n return (_table) => {\n const table = _table as Table_Internal<TFeatures, TData>\n return tableMemo({\n feature: 'rowPaginationFeature',\n table,\n fnName: 'table.getPaginatedRowModel',\n memoDeps: () => [\n table.getPrePaginatedRowModel(),\n table.store.state.pagination,\n table.options.paginateExpandedRows\n ? table.store.state.expanded\n : undefined,\n ],\n fn: () => _createPaginatedRowModel(table),\n })\n }\n}\n\nfunction _createPaginatedRowModel<\n TFeatures extends TableFeatures,\n TData extends RowData = any,\n>(table: Table_Internal<TFeatures, TData>): RowModel<TFeatures, TData> {\n const prePaginatedRowModel = table.getPrePaginatedRowModel()\n const pagination = table.store.state.pagination\n\n if (!prePaginatedRowModel.rows.length) {\n return prePaginatedRowModel\n }\n\n const { pageSize, pageIndex } = pagination ?? getDefaultPaginationState()\n const { rows, flatRows, rowsById } = prePaginatedRowModel\n const pageStart = pageSize * pageIndex\n const pageEnd = pageStart + pageSize\n\n const paginatedRows = rows.slice(pageStart, pageEnd)\n\n let paginatedRowModel: RowModel<TFeatures, TData>\n\n if (!table.options.paginateExpandedRows) {\n paginatedRowModel = expandRows({\n rows: paginatedRows,\n flatRows,\n rowsById,\n })\n } else {\n paginatedRowModel = {\n rows: paginatedRows,\n flatRows,\n rowsById,\n }\n }\n\n paginatedRowModel.flatRows = []\n\n const handleRow = (row: Row<TFeatures, TData>) => {\n paginatedRowModel.flatRows.push(row)\n if (row.subRows.length) {\n row.subRows.forEach(handleRow)\n }\n }\n\n paginatedRowModel.rows.forEach(handleRow)\n\n return paginatedRowModel\n}\n"],"mappings":";;;;;AASA,SAAgB,0BAG0D;AACxE,SAAQ,WAAW;EACjB,MAAM,QAAQ;AACd,SAAO,UAAU;GACf,SAAS;GACT;GACA,QAAQ;GACR,gBAAgB;IACd,MAAM,yBAAyB;IAC/B,MAAM,MAAM,MAAM;IAClB,MAAM,QAAQ,uBACV,MAAM,MAAM,MAAM,WAClB;IACL;GACD,UAAU,yBAAyB,MAAM;GAC1C,CAAC;;;AAIN,SAAS,yBAGP,OAAqE;CACrE,MAAM,uBAAuB,MAAM,yBAAyB;CAC5D,MAAM,aAAa,MAAM,MAAM,MAAM;AAErC,KAAI,CAAC,qBAAqB,KAAK,OAC7B,QAAO;CAGT,MAAM,EAAE,UAAU,cAAc,cAAc,2BAA2B;CACzE,MAAM,EAAE,MAAM,UAAU,aAAa;CACrC,MAAM,YAAY,WAAW;CAC7B,MAAM,UAAU,YAAY;CAE5B,MAAM,gBAAgB,KAAK,MAAM,WAAW,QAAQ;CAEpD,IAAI;AAEJ,KAAI,CAAC,MAAM,QAAQ,qBACjB,qBAAoB,WAAW;EAC7B,MAAM;EACN;EACA;EACD,CAAC;KAEF,qBAAoB;EAClB,MAAM;EACN;EACA;EACD;AAGH,mBAAkB,WAAW,EAAE;CAE/B,MAAM,aAAa,QAA+B;AAChD,oBAAkB,SAAS,KAAK,IAAI;AACpC,MAAI,IAAI,QAAQ,OACd,KAAI,QAAQ,QAAQ,UAAU;;AAIlC,mBAAkB,KAAK,QAAQ,UAAU;AAEzC,QAAO"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_utils = require('../../utils.cjs');
|
|
2
|
+
const require_rowPaginationFeature_utils = require('./rowPaginationFeature.utils.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/features/row-pagination/rowPaginationFeature.ts
|
|
5
|
+
function constructRowPaginationFeature() {
|
|
6
|
+
return {
|
|
7
|
+
getInitialState: (initialState) => {
|
|
8
|
+
return {
|
|
9
|
+
...initialState,
|
|
10
|
+
pagination: {
|
|
11
|
+
...require_rowPaginationFeature_utils.getDefaultPaginationState(),
|
|
12
|
+
...initialState.pagination
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
getDefaultTableOptions: (table) => {
|
|
17
|
+
return { onPaginationChange: require_utils.makeStateUpdater("pagination", table) };
|
|
18
|
+
},
|
|
19
|
+
constructTableAPIs: (table) => {
|
|
20
|
+
require_utils.assignTableAPIs("rowPaginationFeature", table, {
|
|
21
|
+
table_autoResetPageIndex: { fn: () => require_rowPaginationFeature_utils.table_autoResetPageIndex(table) },
|
|
22
|
+
table_setPagination: { fn: (updater) => require_rowPaginationFeature_utils.table_setPagination(table, updater) },
|
|
23
|
+
table_resetPagination: { fn: (defaultState) => require_rowPaginationFeature_utils.table_resetPagination(table, defaultState) },
|
|
24
|
+
table_setPageIndex: { fn: (updater) => require_rowPaginationFeature_utils.table_setPageIndex(table, updater) },
|
|
25
|
+
table_resetPageIndex: { fn: (defaultState) => require_rowPaginationFeature_utils.table_resetPageIndex(table, defaultState) },
|
|
26
|
+
table_setPageSize: { fn: (updater) => require_rowPaginationFeature_utils.table_setPageSize(table, updater) },
|
|
27
|
+
table_getPageCount: { fn: () => require_rowPaginationFeature_utils.table_getPageCount(table) },
|
|
28
|
+
table_resetPageSize: { fn: (defaultState) => require_rowPaginationFeature_utils.table_resetPageSize(table, defaultState) },
|
|
29
|
+
table_getPageOptions: { fn: () => require_rowPaginationFeature_utils.table_getPageOptions(table) },
|
|
30
|
+
table_getCanPreviousPage: { fn: () => require_rowPaginationFeature_utils.table_getCanPreviousPage(table) },
|
|
31
|
+
table_getCanNextPage: { fn: () => require_rowPaginationFeature_utils.table_getCanNextPage(table) },
|
|
32
|
+
table_previousPage: { fn: () => require_rowPaginationFeature_utils.table_previousPage(table) },
|
|
33
|
+
table_nextPage: { fn: () => require_rowPaginationFeature_utils.table_nextPage(table) },
|
|
34
|
+
table_firstPage: { fn: () => require_rowPaginationFeature_utils.table_firstPage(table) },
|
|
35
|
+
table_lastPage: { fn: () => require_rowPaginationFeature_utils.table_lastPage(table) },
|
|
36
|
+
table_getRowCount: { fn: () => require_rowPaginationFeature_utils.table_getRowCount(table) }
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The (Row) Pagination feature adds pagination state and APIs to the table object.
|
|
43
|
+
*/
|
|
44
|
+
const rowPaginationFeature = constructRowPaginationFeature();
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.constructRowPaginationFeature = constructRowPaginationFeature;
|
|
48
|
+
exports.rowPaginationFeature = rowPaginationFeature;
|
|
49
|
+
//# sourceMappingURL=rowPaginationFeature.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowPaginationFeature.cjs","names":["getDefaultPaginationState","makeStateUpdater","table_autoResetPageIndex","table_setPagination","table_resetPagination","table_setPageIndex","table_resetPageIndex","table_setPageSize","table_getPageCount","table_resetPageSize","table_getPageOptions","table_getCanPreviousPage","table_getCanNextPage","table_previousPage","table_nextPage","table_firstPage","table_lastPage","table_getRowCount"],"sources":["../../../src/features/row-pagination/rowPaginationFeature.ts"],"sourcesContent":["import { assignTableAPIs, makeStateUpdater } from '../../utils'\nimport {\n getDefaultPaginationState,\n table_autoResetPageIndex,\n table_firstPage,\n table_getCanNextPage,\n table_getCanPreviousPage,\n table_getPageCount,\n table_getPageOptions,\n table_getRowCount,\n table_lastPage,\n table_nextPage,\n table_previousPage,\n table_resetPageIndex,\n table_resetPageSize,\n table_resetPagination,\n table_setPageIndex,\n table_setPageSize,\n table_setPagination,\n} from './rowPaginationFeature.utils'\nimport type { RowData } from '../../types/type-utils'\nimport type { TableFeature, TableFeatures } from '../../types/TableFeatures'\n// import type {\n// CachedRowModel_Paginated,\n// CreateRowModel_Paginated,\n// TableOptions_RowPagination,\n// TableState_RowPagination,\n// Table_RowPagination,\n// } from './rowPaginationFeature.types'\n\ninterface RowPaginationFeatureConstructors<\n TFeatures extends TableFeatures,\n TData extends RowData,\n> {\n // CachedRowModel: CachedRowModel_Paginated<TFeatures, TData>\n // CreateRowModels: CreateRowModel_Paginated<TFeatures, TData>\n // Table: Table_RowPagination<TFeatures, TData>\n // TableOptions: TableOptions_RowPagination<TFeatures, TData>\n // TableState: TableState_RowPagination\n}\n\nexport function constructRowPaginationFeature<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(): TableFeature<RowPaginationFeatureConstructors<TFeatures, TData>> {\n return {\n getInitialState: (initialState) => {\n return {\n ...initialState,\n pagination: {\n ...getDefaultPaginationState(),\n ...initialState.pagination,\n },\n }\n },\n\n getDefaultTableOptions: (table) => {\n return {\n onPaginationChange: makeStateUpdater('pagination', table),\n }\n },\n\n constructTableAPIs: (table) => {\n assignTableAPIs('rowPaginationFeature', table, {\n table_autoResetPageIndex: {\n fn: () => table_autoResetPageIndex(table),\n },\n table_setPagination: {\n fn: (updater) => table_setPagination(table, updater),\n },\n table_resetPagination: {\n fn: (defaultState) => table_resetPagination(table, defaultState),\n },\n table_setPageIndex: {\n fn: (updater) => table_setPageIndex(table, updater),\n },\n table_resetPageIndex: {\n fn: (defaultState) => table_resetPageIndex(table, defaultState),\n },\n table_setPageSize: {\n fn: (updater) => table_setPageSize(table, updater),\n },\n table_getPageCount: {\n fn: () => table_getPageCount(table),\n },\n table_resetPageSize: {\n fn: (defaultState) => table_resetPageSize(table, defaultState),\n },\n table_getPageOptions: {\n fn: () => table_getPageOptions(table),\n },\n table_getCanPreviousPage: {\n fn: () => table_getCanPreviousPage(table),\n },\n table_getCanNextPage: {\n fn: () => table_getCanNextPage(table),\n },\n table_previousPage: {\n fn: () => table_previousPage(table),\n },\n table_nextPage: {\n fn: () => table_nextPage(table),\n },\n table_firstPage: {\n fn: () => table_firstPage(table),\n },\n table_lastPage: {\n fn: () => table_lastPage(table),\n },\n table_getRowCount: {\n fn: () => table_getRowCount(table),\n },\n })\n },\n }\n}\n\n/**\n * The (Row) Pagination feature adds pagination state and APIs to the table object.\n */\nexport const rowPaginationFeature = constructRowPaginationFeature()\n"],"mappings":";;;;AAyCA,SAAgB,gCAGsD;AACpE,QAAO;EACL,kBAAkB,iBAAiB;AACjC,UAAO;IACL,GAAG;IACH,YAAY;KACV,GAAGA,8DAA2B;KAC9B,GAAG,aAAa;KACjB;IACF;;EAGH,yBAAyB,UAAU;AACjC,UAAO,EACL,oBAAoBC,+BAAiB,cAAc,MAAM,EAC1D;;EAGH,qBAAqB,UAAU;AAC7B,iCAAgB,wBAAwB,OAAO;IAC7C,0BAA0B,EACxB,UAAUC,4DAAyB,MAAM,EAC1C;IACD,qBAAqB,EACnB,KAAK,YAAYC,uDAAoB,OAAO,QAAQ,EACrD;IACD,uBAAuB,EACrB,KAAK,iBAAiBC,yDAAsB,OAAO,aAAa,EACjE;IACD,oBAAoB,EAClB,KAAK,YAAYC,sDAAmB,OAAO,QAAQ,EACpD;IACD,sBAAsB,EACpB,KAAK,iBAAiBC,wDAAqB,OAAO,aAAa,EAChE;IACD,mBAAmB,EACjB,KAAK,YAAYC,qDAAkB,OAAO,QAAQ,EACnD;IACD,oBAAoB,EAClB,UAAUC,sDAAmB,MAAM,EACpC;IACD,qBAAqB,EACnB,KAAK,iBAAiBC,uDAAoB,OAAO,aAAa,EAC/D;IACD,sBAAsB,EACpB,UAAUC,wDAAqB,MAAM,EACtC;IACD,0BAA0B,EACxB,UAAUC,4DAAyB,MAAM,EAC1C;IACD,sBAAsB,EACpB,UAAUC,wDAAqB,MAAM,EACtC;IACD,oBAAoB,EAClB,UAAUC,sDAAmB,MAAM,EACpC;IACD,gBAAgB,EACd,UAAUC,kDAAe,MAAM,EAChC;IACD,iBAAiB,EACf,UAAUC,mDAAgB,MAAM,EACjC;IACD,gBAAgB,EACd,UAAUC,kDAAe,MAAM,EAChC;IACD,mBAAmB,EACjB,UAAUC,qDAAkB,MAAM,EACnC;IACF,CAAC;;EAEL;;;;;AAMH,MAAa,uBAAuB,+BAA+B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RowData } from "../../types/type-utils.cjs";
|
|
2
|
+
import { TableFeature, TableFeatures } from "../../types/TableFeatures.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/features/row-pagination/rowPaginationFeature.d.ts
|
|
5
|
+
interface RowPaginationFeatureConstructors<TFeatures extends TableFeatures, TData extends RowData> {}
|
|
6
|
+
declare function constructRowPaginationFeature<TFeatures extends TableFeatures, TData extends RowData>(): TableFeature<RowPaginationFeatureConstructors<TFeatures, TData>>;
|
|
7
|
+
/**
|
|
8
|
+
* The (Row) Pagination feature adds pagination state and APIs to the table object.
|
|
9
|
+
*/
|
|
10
|
+
declare const rowPaginationFeature: TableFeature<RowPaginationFeatureConstructors<TableFeatures, RowData>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { constructRowPaginationFeature, rowPaginationFeature };
|
|
13
|
+
//# sourceMappingURL=rowPaginationFeature.d.cts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RowData } from "../../types/type-utils.js";
|
|
2
|
+
import { TableFeature, TableFeatures } from "../../types/TableFeatures.js";
|
|
3
|
+
|
|
4
|
+
//#region src/features/row-pagination/rowPaginationFeature.d.ts
|
|
5
|
+
interface RowPaginationFeatureConstructors<TFeatures extends TableFeatures, TData extends RowData> {}
|
|
6
|
+
declare function constructRowPaginationFeature<TFeatures extends TableFeatures, TData extends RowData>(): TableFeature<RowPaginationFeatureConstructors<TFeatures, TData>>;
|
|
7
|
+
/**
|
|
8
|
+
* The (Row) Pagination feature adds pagination state and APIs to the table object.
|
|
9
|
+
*/
|
|
10
|
+
declare const rowPaginationFeature: TableFeature<RowPaginationFeatureConstructors<TableFeatures, RowData>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { constructRowPaginationFeature, rowPaginationFeature };
|
|
13
|
+
//# sourceMappingURL=rowPaginationFeature.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { assignTableAPIs, makeStateUpdater } from "../../utils.js";
|
|
2
|
+
import { getDefaultPaginationState, table_autoResetPageIndex, table_firstPage, table_getCanNextPage, table_getCanPreviousPage, table_getPageCount, table_getPageOptions, table_getRowCount, table_lastPage, table_nextPage, table_previousPage, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_setPageIndex, table_setPageSize, table_setPagination } from "./rowPaginationFeature.utils.js";
|
|
3
|
+
|
|
4
|
+
//#region src/features/row-pagination/rowPaginationFeature.ts
|
|
5
|
+
function constructRowPaginationFeature() {
|
|
6
|
+
return {
|
|
7
|
+
getInitialState: (initialState) => {
|
|
8
|
+
return {
|
|
9
|
+
...initialState,
|
|
10
|
+
pagination: {
|
|
11
|
+
...getDefaultPaginationState(),
|
|
12
|
+
...initialState.pagination
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
getDefaultTableOptions: (table) => {
|
|
17
|
+
return { onPaginationChange: makeStateUpdater("pagination", table) };
|
|
18
|
+
},
|
|
19
|
+
constructTableAPIs: (table) => {
|
|
20
|
+
assignTableAPIs("rowPaginationFeature", table, {
|
|
21
|
+
table_autoResetPageIndex: { fn: () => table_autoResetPageIndex(table) },
|
|
22
|
+
table_setPagination: { fn: (updater) => table_setPagination(table, updater) },
|
|
23
|
+
table_resetPagination: { fn: (defaultState) => table_resetPagination(table, defaultState) },
|
|
24
|
+
table_setPageIndex: { fn: (updater) => table_setPageIndex(table, updater) },
|
|
25
|
+
table_resetPageIndex: { fn: (defaultState) => table_resetPageIndex(table, defaultState) },
|
|
26
|
+
table_setPageSize: { fn: (updater) => table_setPageSize(table, updater) },
|
|
27
|
+
table_getPageCount: { fn: () => table_getPageCount(table) },
|
|
28
|
+
table_resetPageSize: { fn: (defaultState) => table_resetPageSize(table, defaultState) },
|
|
29
|
+
table_getPageOptions: { fn: () => table_getPageOptions(table) },
|
|
30
|
+
table_getCanPreviousPage: { fn: () => table_getCanPreviousPage(table) },
|
|
31
|
+
table_getCanNextPage: { fn: () => table_getCanNextPage(table) },
|
|
32
|
+
table_previousPage: { fn: () => table_previousPage(table) },
|
|
33
|
+
table_nextPage: { fn: () => table_nextPage(table) },
|
|
34
|
+
table_firstPage: { fn: () => table_firstPage(table) },
|
|
35
|
+
table_lastPage: { fn: () => table_lastPage(table) },
|
|
36
|
+
table_getRowCount: { fn: () => table_getRowCount(table) }
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The (Row) Pagination feature adds pagination state and APIs to the table object.
|
|
43
|
+
*/
|
|
44
|
+
const rowPaginationFeature = constructRowPaginationFeature();
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { constructRowPaginationFeature, rowPaginationFeature };
|
|
48
|
+
//# sourceMappingURL=rowPaginationFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowPaginationFeature.js","names":[],"sources":["../../../src/features/row-pagination/rowPaginationFeature.ts"],"sourcesContent":["import { assignTableAPIs, makeStateUpdater } from '../../utils'\nimport {\n getDefaultPaginationState,\n table_autoResetPageIndex,\n table_firstPage,\n table_getCanNextPage,\n table_getCanPreviousPage,\n table_getPageCount,\n table_getPageOptions,\n table_getRowCount,\n table_lastPage,\n table_nextPage,\n table_previousPage,\n table_resetPageIndex,\n table_resetPageSize,\n table_resetPagination,\n table_setPageIndex,\n table_setPageSize,\n table_setPagination,\n} from './rowPaginationFeature.utils'\nimport type { RowData } from '../../types/type-utils'\nimport type { TableFeature, TableFeatures } from '../../types/TableFeatures'\n// import type {\n// CachedRowModel_Paginated,\n// CreateRowModel_Paginated,\n// TableOptions_RowPagination,\n// TableState_RowPagination,\n// Table_RowPagination,\n// } from './rowPaginationFeature.types'\n\ninterface RowPaginationFeatureConstructors<\n TFeatures extends TableFeatures,\n TData extends RowData,\n> {\n // CachedRowModel: CachedRowModel_Paginated<TFeatures, TData>\n // CreateRowModels: CreateRowModel_Paginated<TFeatures, TData>\n // Table: Table_RowPagination<TFeatures, TData>\n // TableOptions: TableOptions_RowPagination<TFeatures, TData>\n // TableState: TableState_RowPagination\n}\n\nexport function constructRowPaginationFeature<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(): TableFeature<RowPaginationFeatureConstructors<TFeatures, TData>> {\n return {\n getInitialState: (initialState) => {\n return {\n ...initialState,\n pagination: {\n ...getDefaultPaginationState(),\n ...initialState.pagination,\n },\n }\n },\n\n getDefaultTableOptions: (table) => {\n return {\n onPaginationChange: makeStateUpdater('pagination', table),\n }\n },\n\n constructTableAPIs: (table) => {\n assignTableAPIs('rowPaginationFeature', table, {\n table_autoResetPageIndex: {\n fn: () => table_autoResetPageIndex(table),\n },\n table_setPagination: {\n fn: (updater) => table_setPagination(table, updater),\n },\n table_resetPagination: {\n fn: (defaultState) => table_resetPagination(table, defaultState),\n },\n table_setPageIndex: {\n fn: (updater) => table_setPageIndex(table, updater),\n },\n table_resetPageIndex: {\n fn: (defaultState) => table_resetPageIndex(table, defaultState),\n },\n table_setPageSize: {\n fn: (updater) => table_setPageSize(table, updater),\n },\n table_getPageCount: {\n fn: () => table_getPageCount(table),\n },\n table_resetPageSize: {\n fn: (defaultState) => table_resetPageSize(table, defaultState),\n },\n table_getPageOptions: {\n fn: () => table_getPageOptions(table),\n },\n table_getCanPreviousPage: {\n fn: () => table_getCanPreviousPage(table),\n },\n table_getCanNextPage: {\n fn: () => table_getCanNextPage(table),\n },\n table_previousPage: {\n fn: () => table_previousPage(table),\n },\n table_nextPage: {\n fn: () => table_nextPage(table),\n },\n table_firstPage: {\n fn: () => table_firstPage(table),\n },\n table_lastPage: {\n fn: () => table_lastPage(table),\n },\n table_getRowCount: {\n fn: () => table_getRowCount(table),\n },\n })\n },\n }\n}\n\n/**\n * The (Row) Pagination feature adds pagination state and APIs to the table object.\n */\nexport const rowPaginationFeature = constructRowPaginationFeature()\n"],"mappings":";;;;AAyCA,SAAgB,gCAGsD;AACpE,QAAO;EACL,kBAAkB,iBAAiB;AACjC,UAAO;IACL,GAAG;IACH,YAAY;KACV,GAAG,2BAA2B;KAC9B,GAAG,aAAa;KACjB;IACF;;EAGH,yBAAyB,UAAU;AACjC,UAAO,EACL,oBAAoB,iBAAiB,cAAc,MAAM,EAC1D;;EAGH,qBAAqB,UAAU;AAC7B,mBAAgB,wBAAwB,OAAO;IAC7C,0BAA0B,EACxB,UAAU,yBAAyB,MAAM,EAC1C;IACD,qBAAqB,EACnB,KAAK,YAAY,oBAAoB,OAAO,QAAQ,EACrD;IACD,uBAAuB,EACrB,KAAK,iBAAiB,sBAAsB,OAAO,aAAa,EACjE;IACD,oBAAoB,EAClB,KAAK,YAAY,mBAAmB,OAAO,QAAQ,EACpD;IACD,sBAAsB,EACpB,KAAK,iBAAiB,qBAAqB,OAAO,aAAa,EAChE;IACD,mBAAmB,EACjB,KAAK,YAAY,kBAAkB,OAAO,QAAQ,EACnD;IACD,oBAAoB,EAClB,UAAU,mBAAmB,MAAM,EACpC;IACD,qBAAqB,EACnB,KAAK,iBAAiB,oBAAoB,OAAO,aAAa,EAC/D;IACD,sBAAsB,EACpB,UAAU,qBAAqB,MAAM,EACtC;IACD,0BAA0B,EACxB,UAAU,yBAAyB,MAAM,EAC1C;IACD,sBAAsB,EACpB,UAAU,qBAAqB,MAAM,EACtC;IACD,oBAAoB,EAClB,UAAU,mBAAmB,MAAM,EACpC;IACD,gBAAgB,EACd,UAAU,eAAe,MAAM,EAChC;IACD,iBAAiB,EACf,UAAU,gBAAgB,MAAM,EACjC;IACD,gBAAgB,EACd,UAAU,eAAe,MAAM,EAChC;IACD,mBAAmB,EACjB,UAAU,kBAAkB,MAAM,EACnC;IACF,CAAC;;EAEL;;;;;AAMH,MAAa,uBAAuB,+BAA+B"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { OnChangeFn, RowData, Updater } from "../../types/type-utils.cjs";
|
|
2
|
+
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
3
|
+
import { Table } from "../../types/Table.cjs";
|
|
4
|
+
import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.cjs";
|
|
5
|
+
|
|
6
|
+
//#region src/features/row-pagination/rowPaginationFeature.types.d.ts
|
|
7
|
+
interface PaginationState {
|
|
8
|
+
pageIndex: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
}
|
|
11
|
+
interface TableState_RowPagination {
|
|
12
|
+
pagination: PaginationState;
|
|
13
|
+
}
|
|
14
|
+
interface TableOptions_RowPagination {
|
|
15
|
+
/**
|
|
16
|
+
* If set to `true`, pagination will be reset to the first page when page-altering state changes eg. `data` is updated, filters change, grouping changes, etc.
|
|
17
|
+
*/
|
|
18
|
+
autoResetPageIndex?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Enables manual pagination. If this option is set to `true`, the table will not automatically paginate rows using `getPaginatedRowModel()` and instead will expect you to manually paginate the rows before passing them to the table. This is useful if you are doing server-side pagination and aggregation.
|
|
21
|
+
*/
|
|
22
|
+
manualPagination?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If this function is provided, it will be called when the pagination state changes and you will be expected to manage the state yourself. You can pass the managed state back to the table via the `tableOptions.state.pagination` option.
|
|
25
|
+
*/
|
|
26
|
+
onPaginationChange?: OnChangeFn<PaginationState>;
|
|
27
|
+
/**
|
|
28
|
+
* When manually controlling pagination, you can supply a total `pageCount` value to the table if you know it (Or supply a `rowCount` and `pageCount` will be calculated). If you do not know how many pages there are, you can set this to `-1`.
|
|
29
|
+
*/
|
|
30
|
+
pageCount?: number;
|
|
31
|
+
/**
|
|
32
|
+
* When manually controlling pagination, you can supply a total `rowCount` value to the table if you know it. The `pageCount` can be calculated from this value and the `pageSize`.
|
|
33
|
+
*/
|
|
34
|
+
rowCount?: number;
|
|
35
|
+
}
|
|
36
|
+
interface PaginationDefaultOptions {
|
|
37
|
+
onPaginationChange: OnChangeFn<PaginationState>;
|
|
38
|
+
}
|
|
39
|
+
interface Table_RowPagination<TFeatures extends TableFeatures, TData extends RowData> {
|
|
40
|
+
_autoResetPageIndex: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Returns whether the table can go to the next page.
|
|
43
|
+
*/
|
|
44
|
+
getCanNextPage: () => boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Returns whether the table can go to the previous page.
|
|
47
|
+
*/
|
|
48
|
+
getCanPreviousPage: () => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the page count. If manually paginating or controlling the pagination state, this will come directly from the `options.pageCount` table option, otherwise it will be calculated from the table data using the total row count and current page size.
|
|
51
|
+
*/
|
|
52
|
+
getPageCount: () => number;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the row count. If manually paginating or controlling the pagination state, this will come directly from the `options.rowCount` table option, otherwise it will be calculated from the table data.
|
|
55
|
+
*/
|
|
56
|
+
getRowCount: () => number;
|
|
57
|
+
/**
|
|
58
|
+
* Returns an array of page options (zero-index-based) for the current page size.
|
|
59
|
+
*/
|
|
60
|
+
getPageOptions: () => Array<number>;
|
|
61
|
+
/**
|
|
62
|
+
* Increments the page index by one, if possible.
|
|
63
|
+
*/
|
|
64
|
+
nextPage: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Decrements the page index by one, if possible.
|
|
67
|
+
*/
|
|
68
|
+
previousPage: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the page index to `0`.
|
|
71
|
+
*/
|
|
72
|
+
firstPage: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the page index to the last page.
|
|
75
|
+
*/
|
|
76
|
+
lastPage: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Resets the page index to its initial state. If `defaultState` is `true`, the page index will be reset to `0` regardless of initial state.
|
|
79
|
+
*/
|
|
80
|
+
resetPageIndex: (defaultState?: boolean) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Resets the page size to its initial state. If `defaultState` is `true`, the page size will be reset to `10` regardless of initial state.
|
|
83
|
+
*/
|
|
84
|
+
resetPageSize: (defaultState?: boolean) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Resets the **pagination** state to `initialState.pagination`, or `true` can be passed to force a default blank state reset to `[]`.
|
|
87
|
+
*/
|
|
88
|
+
resetPagination: (defaultState?: boolean) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Updates the page index using the provided function or value in the `state.pagination.pageIndex` state.
|
|
91
|
+
*/
|
|
92
|
+
setPageIndex: (updater: Updater<number>) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Updates the page size using the provided function or value in the `state.pagination.pageSize` state.
|
|
95
|
+
*/
|
|
96
|
+
setPageSize: (updater: Updater<number>) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Sets or updates the `state.pagination` state.
|
|
99
|
+
*/
|
|
100
|
+
setPagination: (updater: Updater<PaginationState>) => void;
|
|
101
|
+
}
|
|
102
|
+
interface Table_RowModels_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
|
|
103
|
+
/**
|
|
104
|
+
* Returns the row model for the table after pagination has been applied.
|
|
105
|
+
*/
|
|
106
|
+
getPaginatedRowModel: () => RowModel<TFeatures, TData>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the row model for the table before any pagination has been applied.
|
|
109
|
+
*/
|
|
110
|
+
getPrePaginatedRowModel: () => RowModel<TFeatures, TData>;
|
|
111
|
+
}
|
|
112
|
+
interface CreateRowModel_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
|
|
113
|
+
/**
|
|
114
|
+
* Returns the row model after pagination has taken place, but no further.
|
|
115
|
+
* Pagination columns are automatically reordered by default to the start of the columns list. If you would rather remove them or leave them as-is, set the appropriate mode here.
|
|
116
|
+
*/
|
|
117
|
+
paginatedRowModel?: (table: Table<TFeatures, TData>) => () => RowModel<TFeatures, TData>;
|
|
118
|
+
}
|
|
119
|
+
interface CachedRowModel_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
|
|
120
|
+
paginatedRowModel: () => RowModel<TFeatures, TData>;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { CachedRowModel_Paginated, CreateRowModel_Paginated, PaginationDefaultOptions, PaginationState, TableOptions_RowPagination, TableState_RowPagination, Table_RowModels_Paginated, Table_RowPagination };
|
|
124
|
+
//# sourceMappingURL=rowPaginationFeature.types.d.cts.map
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { OnChangeFn, RowData, Updater } from "../../types/type-utils.js";
|
|
2
|
+
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
3
|
+
import { Table } from "../../types/Table.js";
|
|
4
|
+
import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.js";
|
|
5
|
+
|
|
6
|
+
//#region src/features/row-pagination/rowPaginationFeature.types.d.ts
|
|
7
|
+
interface PaginationState {
|
|
8
|
+
pageIndex: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
}
|
|
11
|
+
interface TableState_RowPagination {
|
|
12
|
+
pagination: PaginationState;
|
|
13
|
+
}
|
|
14
|
+
interface TableOptions_RowPagination {
|
|
15
|
+
/**
|
|
16
|
+
* If set to `true`, pagination will be reset to the first page when page-altering state changes eg. `data` is updated, filters change, grouping changes, etc.
|
|
17
|
+
*/
|
|
18
|
+
autoResetPageIndex?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Enables manual pagination. If this option is set to `true`, the table will not automatically paginate rows using `getPaginatedRowModel()` and instead will expect you to manually paginate the rows before passing them to the table. This is useful if you are doing server-side pagination and aggregation.
|
|
21
|
+
*/
|
|
22
|
+
manualPagination?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If this function is provided, it will be called when the pagination state changes and you will be expected to manage the state yourself. You can pass the managed state back to the table via the `tableOptions.state.pagination` option.
|
|
25
|
+
*/
|
|
26
|
+
onPaginationChange?: OnChangeFn<PaginationState>;
|
|
27
|
+
/**
|
|
28
|
+
* When manually controlling pagination, you can supply a total `pageCount` value to the table if you know it (Or supply a `rowCount` and `pageCount` will be calculated). If you do not know how many pages there are, you can set this to `-1`.
|
|
29
|
+
*/
|
|
30
|
+
pageCount?: number;
|
|
31
|
+
/**
|
|
32
|
+
* When manually controlling pagination, you can supply a total `rowCount` value to the table if you know it. The `pageCount` can be calculated from this value and the `pageSize`.
|
|
33
|
+
*/
|
|
34
|
+
rowCount?: number;
|
|
35
|
+
}
|
|
36
|
+
interface PaginationDefaultOptions {
|
|
37
|
+
onPaginationChange: OnChangeFn<PaginationState>;
|
|
38
|
+
}
|
|
39
|
+
interface Table_RowPagination<TFeatures extends TableFeatures, TData extends RowData> {
|
|
40
|
+
_autoResetPageIndex: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Returns whether the table can go to the next page.
|
|
43
|
+
*/
|
|
44
|
+
getCanNextPage: () => boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Returns whether the table can go to the previous page.
|
|
47
|
+
*/
|
|
48
|
+
getCanPreviousPage: () => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the page count. If manually paginating or controlling the pagination state, this will come directly from the `options.pageCount` table option, otherwise it will be calculated from the table data using the total row count and current page size.
|
|
51
|
+
*/
|
|
52
|
+
getPageCount: () => number;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the row count. If manually paginating or controlling the pagination state, this will come directly from the `options.rowCount` table option, otherwise it will be calculated from the table data.
|
|
55
|
+
*/
|
|
56
|
+
getRowCount: () => number;
|
|
57
|
+
/**
|
|
58
|
+
* Returns an array of page options (zero-index-based) for the current page size.
|
|
59
|
+
*/
|
|
60
|
+
getPageOptions: () => Array<number>;
|
|
61
|
+
/**
|
|
62
|
+
* Increments the page index by one, if possible.
|
|
63
|
+
*/
|
|
64
|
+
nextPage: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Decrements the page index by one, if possible.
|
|
67
|
+
*/
|
|
68
|
+
previousPage: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the page index to `0`.
|
|
71
|
+
*/
|
|
72
|
+
firstPage: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the page index to the last page.
|
|
75
|
+
*/
|
|
76
|
+
lastPage: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Resets the page index to its initial state. If `defaultState` is `true`, the page index will be reset to `0` regardless of initial state.
|
|
79
|
+
*/
|
|
80
|
+
resetPageIndex: (defaultState?: boolean) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Resets the page size to its initial state. If `defaultState` is `true`, the page size will be reset to `10` regardless of initial state.
|
|
83
|
+
*/
|
|
84
|
+
resetPageSize: (defaultState?: boolean) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Resets the **pagination** state to `initialState.pagination`, or `true` can be passed to force a default blank state reset to `[]`.
|
|
87
|
+
*/
|
|
88
|
+
resetPagination: (defaultState?: boolean) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Updates the page index using the provided function or value in the `state.pagination.pageIndex` state.
|
|
91
|
+
*/
|
|
92
|
+
setPageIndex: (updater: Updater<number>) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Updates the page size using the provided function or value in the `state.pagination.pageSize` state.
|
|
95
|
+
*/
|
|
96
|
+
setPageSize: (updater: Updater<number>) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Sets or updates the `state.pagination` state.
|
|
99
|
+
*/
|
|
100
|
+
setPagination: (updater: Updater<PaginationState>) => void;
|
|
101
|
+
}
|
|
102
|
+
interface Table_RowModels_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
|
|
103
|
+
/**
|
|
104
|
+
* Returns the row model for the table after pagination has been applied.
|
|
105
|
+
*/
|
|
106
|
+
getPaginatedRowModel: () => RowModel<TFeatures, TData>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the row model for the table before any pagination has been applied.
|
|
109
|
+
*/
|
|
110
|
+
getPrePaginatedRowModel: () => RowModel<TFeatures, TData>;
|
|
111
|
+
}
|
|
112
|
+
interface CreateRowModel_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
|
|
113
|
+
/**
|
|
114
|
+
* Returns the row model after pagination has taken place, but no further.
|
|
115
|
+
* Pagination columns are automatically reordered by default to the start of the columns list. If you would rather remove them or leave them as-is, set the appropriate mode here.
|
|
116
|
+
*/
|
|
117
|
+
paginatedRowModel?: (table: Table<TFeatures, TData>) => () => RowModel<TFeatures, TData>;
|
|
118
|
+
}
|
|
119
|
+
interface CachedRowModel_Paginated<TFeatures extends TableFeatures, TData extends RowData> {
|
|
120
|
+
paginatedRowModel: () => RowModel<TFeatures, TData>;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { CachedRowModel_Paginated, CreateRowModel_Paginated, PaginationDefaultOptions, PaginationState, TableOptions_RowPagination, TableState_RowPagination, Table_RowModels_Paginated, Table_RowPagination };
|
|
124
|
+
//# sourceMappingURL=rowPaginationFeature.types.d.ts.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
const require_utils = require('../../utils.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/features/row-pagination/rowPaginationFeature.utils.ts
|
|
4
|
+
const defaultPageIndex = 0;
|
|
5
|
+
const defaultPageSize = 10;
|
|
6
|
+
function getDefaultPaginationState() {
|
|
7
|
+
return structuredClone({
|
|
8
|
+
pageIndex: defaultPageIndex,
|
|
9
|
+
pageSize: defaultPageSize
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function table_autoResetPageIndex(table) {
|
|
13
|
+
if (table.options.autoResetAll ?? table.options.autoResetPageIndex ?? !table.options.manualPagination) table_resetPageIndex(table);
|
|
14
|
+
}
|
|
15
|
+
function table_setPagination(table, updater) {
|
|
16
|
+
var _table$options$onPagi, _table$options;
|
|
17
|
+
const safeUpdater = (old) => {
|
|
18
|
+
return require_utils.functionalUpdate(updater, old);
|
|
19
|
+
};
|
|
20
|
+
return (_table$options$onPagi = (_table$options = table.options).onPaginationChange) === null || _table$options$onPagi === void 0 ? void 0 : _table$options$onPagi.call(_table$options, safeUpdater);
|
|
21
|
+
}
|
|
22
|
+
function table_resetPagination(table, defaultState) {
|
|
23
|
+
table_setPagination(table, defaultState ? getDefaultPaginationState() : table.initialState.pagination ?? getDefaultPaginationState());
|
|
24
|
+
}
|
|
25
|
+
function table_setPageIndex(table, updater) {
|
|
26
|
+
table_setPagination(table, (old) => {
|
|
27
|
+
let pageIndex = require_utils.functionalUpdate(updater, old.pageIndex);
|
|
28
|
+
const maxPageIndex = typeof table.options.pageCount === "undefined" || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
|
|
29
|
+
pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
|
|
30
|
+
return {
|
|
31
|
+
...old,
|
|
32
|
+
pageIndex
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function table_resetPageIndex(table, defaultState) {
|
|
37
|
+
var _table$initialState$p;
|
|
38
|
+
table_setPageIndex(table, defaultState ? defaultPageIndex : ((_table$initialState$p = table.initialState.pagination) === null || _table$initialState$p === void 0 ? void 0 : _table$initialState$p.pageIndex) ?? defaultPageIndex);
|
|
39
|
+
}
|
|
40
|
+
function table_resetPageSize(table, defaultState) {
|
|
41
|
+
var _table$initialState$p2;
|
|
42
|
+
table_setPageSize(table, defaultState ? defaultPageSize : ((_table$initialState$p2 = table.initialState.pagination) === null || _table$initialState$p2 === void 0 ? void 0 : _table$initialState$p2.pageSize) ?? defaultPageSize);
|
|
43
|
+
}
|
|
44
|
+
function table_setPageSize(table, updater) {
|
|
45
|
+
table_setPagination(table, (old) => {
|
|
46
|
+
const pageSize = Math.max(1, require_utils.functionalUpdate(updater, old.pageSize));
|
|
47
|
+
const topRowIndex = old.pageSize * old.pageIndex;
|
|
48
|
+
const pageIndex = Math.floor(topRowIndex / pageSize);
|
|
49
|
+
return {
|
|
50
|
+
...old,
|
|
51
|
+
pageIndex,
|
|
52
|
+
pageSize
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function table_getPageOptions(table) {
|
|
57
|
+
const pageCount = table_getPageCount(table);
|
|
58
|
+
let pageOptions = [];
|
|
59
|
+
if (pageCount && pageCount > 0) pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i);
|
|
60
|
+
return pageOptions;
|
|
61
|
+
}
|
|
62
|
+
function table_getCanPreviousPage(table) {
|
|
63
|
+
var _table$store$state$pa;
|
|
64
|
+
return (((_table$store$state$pa = table.store.state.pagination) === null || _table$store$state$pa === void 0 ? void 0 : _table$store$state$pa.pageIndex) ?? 0) > 0;
|
|
65
|
+
}
|
|
66
|
+
function table_getCanNextPage(table) {
|
|
67
|
+
var _table$store$state$pa2;
|
|
68
|
+
const pageIndex = ((_table$store$state$pa2 = table.store.state.pagination) === null || _table$store$state$pa2 === void 0 ? void 0 : _table$store$state$pa2.pageIndex) ?? defaultPageIndex;
|
|
69
|
+
const pageCount = table_getPageCount(table);
|
|
70
|
+
if (pageCount === -1) return true;
|
|
71
|
+
if (pageCount === 0) return false;
|
|
72
|
+
return pageIndex < pageCount - 1;
|
|
73
|
+
}
|
|
74
|
+
function table_previousPage(table) {
|
|
75
|
+
return table_setPageIndex(table, (old) => old - 1);
|
|
76
|
+
}
|
|
77
|
+
function table_nextPage(table) {
|
|
78
|
+
return table_setPageIndex(table, (old) => {
|
|
79
|
+
return old + 1;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function table_firstPage(table) {
|
|
83
|
+
return table_setPageIndex(table, 0);
|
|
84
|
+
}
|
|
85
|
+
function table_lastPage(table) {
|
|
86
|
+
return table_setPageIndex(table, table_getPageCount(table) - 1);
|
|
87
|
+
}
|
|
88
|
+
function table_getPageCount(table) {
|
|
89
|
+
var _table$store$state$pa3;
|
|
90
|
+
return table.options.pageCount ?? Math.ceil(table_getRowCount(table) / (((_table$store$state$pa3 = table.store.state.pagination) === null || _table$store$state$pa3 === void 0 ? void 0 : _table$store$state$pa3.pageSize) ?? defaultPageSize));
|
|
91
|
+
}
|
|
92
|
+
function table_getRowCount(table) {
|
|
93
|
+
return table.options.rowCount ?? table.getPrePaginatedRowModel().rows.length;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
exports.getDefaultPaginationState = getDefaultPaginationState;
|
|
98
|
+
exports.table_autoResetPageIndex = table_autoResetPageIndex;
|
|
99
|
+
exports.table_firstPage = table_firstPage;
|
|
100
|
+
exports.table_getCanNextPage = table_getCanNextPage;
|
|
101
|
+
exports.table_getCanPreviousPage = table_getCanPreviousPage;
|
|
102
|
+
exports.table_getPageCount = table_getPageCount;
|
|
103
|
+
exports.table_getPageOptions = table_getPageOptions;
|
|
104
|
+
exports.table_getRowCount = table_getRowCount;
|
|
105
|
+
exports.table_lastPage = table_lastPage;
|
|
106
|
+
exports.table_nextPage = table_nextPage;
|
|
107
|
+
exports.table_previousPage = table_previousPage;
|
|
108
|
+
exports.table_resetPageIndex = table_resetPageIndex;
|
|
109
|
+
exports.table_resetPageSize = table_resetPageSize;
|
|
110
|
+
exports.table_resetPagination = table_resetPagination;
|
|
111
|
+
exports.table_setPageIndex = table_setPageIndex;
|
|
112
|
+
exports.table_setPageSize = table_setPageSize;
|
|
113
|
+
exports.table_setPagination = table_setPagination;
|
|
114
|
+
//# sourceMappingURL=rowPaginationFeature.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowPaginationFeature.utils.cjs","names":["functionalUpdate"],"sources":["../../../src/features/row-pagination/rowPaginationFeature.utils.ts"],"sourcesContent":["import { functionalUpdate } 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 { PaginationState } from './rowPaginationFeature.types'\n\nconst defaultPageIndex = 0\nconst defaultPageSize = 10\n\nexport function getDefaultPaginationState(): PaginationState {\n return structuredClone({\n pageIndex: defaultPageIndex,\n pageSize: defaultPageSize,\n })\n}\n\nexport function table_autoResetPageIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n if (\n table.options.autoResetAll ??\n table.options.autoResetPageIndex ??\n !table.options.manualPagination\n ) {\n table_resetPageIndex(table)\n }\n}\n\nexport function table_setPagination<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: Updater<PaginationState>) {\n const safeUpdater: Updater<PaginationState> = (old) => {\n const newState = functionalUpdate(updater, old)\n\n return newState\n }\n\n return table.options.onPaginationChange?.(safeUpdater)\n}\n\nexport function table_resetPagination<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setPagination(\n table,\n defaultState\n ? getDefaultPaginationState()\n : (table.initialState.pagination ?? getDefaultPaginationState()),\n )\n}\n\nexport function table_setPageIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: Updater<number>) {\n table_setPagination(table, (old) => {\n let pageIndex = functionalUpdate(updater, old.pageIndex)\n\n const maxPageIndex =\n typeof table.options.pageCount === 'undefined' ||\n table.options.pageCount === -1\n ? Number.MAX_SAFE_INTEGER\n : table.options.pageCount - 1\n\n pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex))\n\n return {\n ...old,\n pageIndex,\n }\n })\n}\n\nexport function table_resetPageIndex<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setPageIndex(\n table,\n defaultState\n ? defaultPageIndex\n : (table.initialState.pagination?.pageIndex ?? defaultPageIndex),\n )\n}\n\nexport function table_resetPageSize<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {\n table_setPageSize(\n table,\n defaultState\n ? defaultPageSize\n : (table.initialState.pagination?.pageSize ?? defaultPageSize),\n )\n}\n\nexport function table_setPageSize<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>, updater: Updater<number>) {\n table_setPagination(table, (old) => {\n const pageSize = Math.max(1, functionalUpdate(updater, old.pageSize))\n const topRowIndex = old.pageSize * old.pageIndex\n const pageIndex = Math.floor(topRowIndex / pageSize)\n\n return {\n ...old,\n pageIndex,\n pageSize,\n }\n })\n}\n\nexport function table_getPageOptions<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n const pageCount = table_getPageCount(table)\n let pageOptions: Array<number> = []\n if (pageCount && pageCount > 0) {\n pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i)\n }\n return pageOptions\n}\n\nexport function table_getCanPreviousPage<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return (table.store.state.pagination?.pageIndex ?? 0) > 0\n}\n\nexport function table_getCanNextPage<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n const pageIndex = table.store.state.pagination?.pageIndex ?? defaultPageIndex\n\n const pageCount = table_getPageCount(table)\n\n if (pageCount === -1) {\n return true\n }\n\n if (pageCount === 0) {\n return false\n }\n\n return pageIndex < pageCount - 1\n}\n\nexport function table_previousPage<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return table_setPageIndex(table, (old) => old - 1)\n}\n\nexport function table_nextPage<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return table_setPageIndex(table, (old) => {\n return old + 1\n })\n}\n\nexport function table_firstPage<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return table_setPageIndex(table, 0)\n}\n\nexport function table_lastPage<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return table_setPageIndex(table, table_getPageCount(table) - 1)\n}\n\nexport function table_getPageCount<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return (\n table.options.pageCount ??\n Math.ceil(\n table_getRowCount(table) /\n (table.store.state.pagination?.pageSize ?? defaultPageSize),\n )\n )\n}\n\nexport function table_getRowCount<\n TFeatures extends TableFeatures,\n TData extends RowData,\n>(table: Table_Internal<TFeatures, TData>) {\n return table.options.rowCount ?? table.getPrePaginatedRowModel().rows.length\n}\n"],"mappings":";;;AAMA,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAExB,SAAgB,4BAA6C;AAC3D,QAAO,gBAAgB;EACrB,WAAW;EACX,UAAU;EACX,CAAC;;AAGJ,SAAgB,yBAGd,OAAyC;AACzC,KACE,MAAM,QAAQ,gBACd,MAAM,QAAQ,sBACd,CAAC,MAAM,QAAQ,iBAEf,sBAAqB,MAAM;;AAI/B,SAAgB,oBAGd,OAAyC,SAAmC;;CAC5E,MAAM,eAAyC,QAAQ;AAGrD,SAFiBA,+BAAiB,SAAS,IAAI;;AAKjD,mDAAO,MAAM,SAAQ,uHAAqB,YAAY;;AAGxD,SAAgB,sBAGd,OAAyC,cAAwB;AACjE,qBACE,OACA,eACI,2BAA2B,GAC1B,MAAM,aAAa,cAAc,2BAA2B,CAClE;;AAGH,SAAgB,mBAGd,OAAyC,SAA0B;AACnE,qBAAoB,QAAQ,QAAQ;EAClC,IAAI,YAAYA,+BAAiB,SAAS,IAAI,UAAU;EAExD,MAAM,eACJ,OAAO,MAAM,QAAQ,cAAc,eACnC,MAAM,QAAQ,cAAc,KACxB,OAAO,mBACP,MAAM,QAAQ,YAAY;AAEhC,cAAY,KAAK,IAAI,GAAG,KAAK,IAAI,WAAW,aAAa,CAAC;AAE1D,SAAO;GACL,GAAG;GACH;GACD;GACD;;AAGJ,SAAgB,qBAGd,OAAyC,cAAwB;;AACjE,oBACE,OACA,eACI,6CACC,MAAM,aAAa,0FAAY,cAAa,iBAClD;;AAGH,SAAgB,oBAGd,OAAyC,cAAwB;;AACjE,mBACE,OACA,eACI,6CACC,MAAM,aAAa,4FAAY,aAAY,gBACjD;;AAGH,SAAgB,kBAGd,OAAyC,SAA0B;AACnE,qBAAoB,QAAQ,QAAQ;EAClC,MAAM,WAAW,KAAK,IAAI,GAAGA,+BAAiB,SAAS,IAAI,SAAS,CAAC;EACrE,MAAM,cAAc,IAAI,WAAW,IAAI;EACvC,MAAM,YAAY,KAAK,MAAM,cAAc,SAAS;AAEpD,SAAO;GACL,GAAG;GACH;GACA;GACD;GACD;;AAGJ,SAAgB,qBAGd,OAAyC;CACzC,MAAM,YAAY,mBAAmB,MAAM;CAC3C,IAAI,cAA6B,EAAE;AACnC,KAAI,aAAa,YAAY,EAC3B,eAAc,CAAC,GAAG,IAAI,MAAM,UAAU,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,GAAG,MAAM,EAAE;AAErE,QAAO;;AAGT,SAAgB,yBAGd,OAAyC;;AACzC,mCAAQ,MAAM,MAAM,MAAM,0FAAY,cAAa,KAAK;;AAG1D,SAAgB,qBAGd,OAAyC;;CACzC,MAAM,uCAAY,MAAM,MAAM,MAAM,4FAAY,cAAa;CAE7D,MAAM,YAAY,mBAAmB,MAAM;AAE3C,KAAI,cAAc,GAChB,QAAO;AAGT,KAAI,cAAc,EAChB,QAAO;AAGT,QAAO,YAAY,YAAY;;AAGjC,SAAgB,mBAGd,OAAyC;AACzC,QAAO,mBAAmB,QAAQ,QAAQ,MAAM,EAAE;;AAGpD,SAAgB,eAGd,OAAyC;AACzC,QAAO,mBAAmB,QAAQ,QAAQ;AACxC,SAAO,MAAM;GACb;;AAGJ,SAAgB,gBAGd,OAAyC;AACzC,QAAO,mBAAmB,OAAO,EAAE;;AAGrC,SAAgB,eAGd,OAAyC;AACzC,QAAO,mBAAmB,OAAO,mBAAmB,MAAM,GAAG,EAAE;;AAGjE,SAAgB,mBAGd,OAAyC;;AACzC,QACE,MAAM,QAAQ,aACd,KAAK,KACH,kBAAkB,MAAM,+BACrB,MAAM,MAAM,MAAM,4FAAY,aAAY,iBAC9C;;AAIL,SAAgB,kBAGd,OAAyC;AACzC,QAAO,MAAM,QAAQ,YAAY,MAAM,yBAAyB,CAAC,KAAK"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RowData, Updater } from "../../types/type-utils.cjs";
|
|
2
|
+
import { PaginationState } from "./rowPaginationFeature.types.cjs";
|
|
3
|
+
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
4
|
+
import { Table_Internal } from "../../types/Table.cjs";
|
|
5
|
+
|
|
6
|
+
//#region src/features/row-pagination/rowPaginationFeature.utils.d.ts
|
|
7
|
+
declare function getDefaultPaginationState(): PaginationState;
|
|
8
|
+
declare function table_autoResetPageIndex<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): void;
|
|
9
|
+
declare function table_setPagination<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<PaginationState>): void | undefined;
|
|
10
|
+
declare function table_resetPagination<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
|
|
11
|
+
declare function table_setPageIndex<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<number>): void;
|
|
12
|
+
declare function table_resetPageIndex<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
|
|
13
|
+
declare function table_resetPageSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
|
|
14
|
+
declare function table_setPageSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<number>): void;
|
|
15
|
+
declare function table_getPageOptions<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): number[];
|
|
16
|
+
declare function table_getCanPreviousPage<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): boolean;
|
|
17
|
+
declare function table_getCanNextPage<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): boolean;
|
|
18
|
+
declare function table_previousPage<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): void;
|
|
19
|
+
declare function table_nextPage<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): void;
|
|
20
|
+
declare function table_firstPage<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): void;
|
|
21
|
+
declare function table_lastPage<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): void;
|
|
22
|
+
declare function table_getPageCount<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): number;
|
|
23
|
+
declare function table_getRowCount<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): number;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { getDefaultPaginationState, table_autoResetPageIndex, table_firstPage, table_getCanNextPage, table_getCanPreviousPage, table_getPageCount, table_getPageOptions, table_getRowCount, table_lastPage, table_nextPage, table_previousPage, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_setPageIndex, table_setPageSize, table_setPagination };
|
|
26
|
+
//# sourceMappingURL=rowPaginationFeature.utils.d.cts.map
|