@simple-table/solid 3.0.0-beta.12 → 3.0.0-beta.14
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/{cjs → types}/core/src/utils/headerWidthUtils.d.ts +2 -2
- package/package.json +4 -4
- package/dist/core/src/consts/column-constraints.d.ts +0 -58
- package/dist/core/src/consts/general-consts.d.ts +0 -13
- package/dist/core/src/core/SimpleTableVanilla.d.ts +0 -71
- package/dist/core/src/core/api/TableAPIImpl.d.ts +0 -44
- package/dist/core/src/core/dom/DOMManager.d.ts +0 -50
- package/dist/core/src/core/initialization/TableInitializer.d.ts +0 -30
- package/dist/core/src/core/rendering/RenderOrchestrator.d.ts +0 -123
- package/dist/core/src/core/rendering/SectionRenderer.d.ts +0 -61
- package/dist/core/src/core/rendering/TableRenderer.d.ts +0 -89
- package/dist/core/src/hooks/ariaAnnouncements.d.ts +0 -37
- package/dist/core/src/hooks/contentHeight.d.ts +0 -23
- package/dist/core/src/hooks/expandedDepths.d.ts +0 -65
- package/dist/core/src/hooks/handleOutsideClick.d.ts +0 -50
- package/dist/core/src/hooks/previousValue.d.ts +0 -30
- package/dist/core/src/hooks/scrollbarVisibility.d.ts +0 -65
- package/dist/core/src/hooks/scrollbarWidth.d.ts +0 -52
- package/dist/core/src/hooks/useAggregatedRows.d.ts +0 -14
- package/dist/core/src/hooks/useQuickFilter.d.ts +0 -14
- package/dist/core/src/hooks/windowResize.d.ts +0 -31
- package/dist/core/src/icons/AngleDownIcon.d.ts +0 -1
- package/dist/core/src/icons/AngleLeftIcon.d.ts +0 -1
- package/dist/core/src/icons/AngleRightIcon.d.ts +0 -1
- package/dist/core/src/icons/AngleUpIcon.d.ts +0 -1
- package/dist/core/src/icons/AscIcon.d.ts +0 -1
- package/dist/core/src/icons/CheckIcon.d.ts +0 -1
- package/dist/core/src/icons/DescIcon.d.ts +0 -1
- package/dist/core/src/icons/DragIcon.d.ts +0 -1
- package/dist/core/src/icons/FilterIcon.d.ts +0 -1
- package/dist/core/src/icons/SelectIcon.d.ts +0 -1
- package/dist/core/src/icons/index.d.ts +0 -14
- package/dist/core/src/index.d.ts +0 -48
- package/dist/core/src/managers/AutoScaleManager.d.ts +0 -26
- package/dist/core/src/managers/DimensionManager.d.ts +0 -42
- package/dist/core/src/managers/DragHandlerManager.d.ts +0 -44
- package/dist/core/src/managers/FilterManager.d.ts +0 -36
- package/dist/core/src/managers/RowManager.d.ts +0 -56
- package/dist/core/src/managers/RowSelectionManager.d.ts +0 -36
- package/dist/core/src/managers/ScrollManager.d.ts +0 -35
- package/dist/core/src/managers/SectionScrollController.d.ts +0 -50
- package/dist/core/src/managers/SelectionManager/SelectionManager.d.ts +0 -246
- package/dist/core/src/managers/SelectionManager/index.d.ts +0 -2
- package/dist/core/src/managers/SelectionManager/keyboardUtils.d.ts +0 -7
- package/dist/core/src/managers/SelectionManager/mouseUtils.d.ts +0 -15
- package/dist/core/src/managers/SelectionManager/selectionRangeUtils.d.ts +0 -7
- package/dist/core/src/managers/SelectionManager/types.d.ts +0 -22
- package/dist/core/src/managers/SortManager.d.ts +0 -42
- package/dist/core/src/types/AggregationTypes.d.ts +0 -8
- package/dist/core/src/types/BoundingBox.d.ts +0 -11
- package/dist/core/src/types/Cell.d.ts +0 -7
- package/dist/core/src/types/CellChangeProps.d.ts +0 -9
- package/dist/core/src/types/CellClickProps.d.ts +0 -11
- package/dist/core/src/types/CellRendererProps.d.ts +0 -32
- package/dist/core/src/types/CellValue.d.ts +0 -2
- package/dist/core/src/types/ColumnEditorConfig.d.ts +0 -32
- package/dist/core/src/types/ColumnEditorRowRendererProps.d.ts +0 -39
- package/dist/core/src/types/ColumnVisibilityTypes.d.ts +0 -4
- package/dist/core/src/types/CustomTheme.d.ts +0 -26
- package/dist/core/src/types/DragHandlerProps.d.ts +0 -14
- package/dist/core/src/types/EnumOption.d.ts +0 -5
- package/dist/core/src/types/FilterTypes.d.ts +0 -22
- package/dist/core/src/types/FlattenedHeader.d.ts +0 -10
- package/dist/core/src/types/FooterRendererProps.d.ts +0 -17
- package/dist/core/src/types/GenerateRowIdParams.d.ts +0 -11
- package/dist/core/src/types/GetRowId.d.ts +0 -10
- package/dist/core/src/types/HandleResizeStartProps.d.ts +0 -21
- package/dist/core/src/types/HeaderDropdownProps.d.ts +0 -14
- package/dist/core/src/types/HeaderObject.d.ts +0 -98
- package/dist/core/src/types/HeaderRendererProps.d.ts +0 -17
- package/dist/core/src/types/IconsConfig.d.ts +0 -19
- package/dist/core/src/types/OnNextPage.d.ts +0 -2
- package/dist/core/src/types/OnRowGroupExpandProps.d.ts +0 -16
- package/dist/core/src/types/OnSortProps.d.ts +0 -3
- package/dist/core/src/types/PanelSection.d.ts +0 -1
- package/dist/core/src/types/Pinned.d.ts +0 -1
- package/dist/core/src/types/PinnedSectionsState.d.ts +0 -6
- package/dist/core/src/types/QuickFilterTypes.d.ts +0 -21
- package/dist/core/src/types/Row.d.ts +0 -3
- package/dist/core/src/types/RowButton.d.ts +0 -6
- package/dist/core/src/types/RowId.d.ts +0 -1
- package/dist/core/src/types/RowSelectionChangeProps.d.ts +0 -7
- package/dist/core/src/types/RowState.d.ts +0 -12
- package/dist/core/src/types/RowStateRendererProps.d.ts +0 -18
- package/dist/core/src/types/SharedTableProps.d.ts +0 -24
- package/dist/core/src/types/SimpleTableConfig.d.ts +0 -88
- package/dist/core/src/types/SimpleTableProps.d.ts +0 -99
- package/dist/core/src/types/SortColumn.d.ts +0 -8
- package/dist/core/src/types/TableAPI.d.ts +0 -57
- package/dist/core/src/types/TableHeaderProps.d.ts +0 -17
- package/dist/core/src/types/TableRefType.d.ts +0 -78
- package/dist/core/src/types/TableRow.d.ts +0 -29
- package/dist/core/src/types/TableRowProps.d.ts +0 -29
- package/dist/core/src/types/Theme.d.ts +0 -2
- package/dist/core/src/types/UpdateCellProps.d.ts +0 -8
- package/dist/core/src/utils/bodyCell/content.d.ts +0 -5
- package/dist/core/src/utils/bodyCell/editing.d.ts +0 -4
- package/dist/core/src/utils/bodyCell/editors/booleanDropdown.d.ts +0 -2
- package/dist/core/src/utils/bodyCell/editors/datePicker.d.ts +0 -2
- package/dist/core/src/utils/bodyCell/editors/dropdown.d.ts +0 -18
- package/dist/core/src/utils/bodyCell/editors/enumDropdown.d.ts +0 -2
- package/dist/core/src/utils/bodyCell/eventTracking.d.ts +0 -3
- package/dist/core/src/utils/bodyCell/expansion.d.ts +0 -4
- package/dist/core/src/utils/bodyCell/selection.d.ts +0 -7
- package/dist/core/src/utils/bodyCell/styling.d.ts +0 -5
- package/dist/core/src/utils/bodyCell/types.d.ts +0 -103
- package/dist/core/src/utils/bodyCellRenderer.d.ts +0 -5
- package/dist/core/src/utils/cellClipboardUtils.d.ts +0 -25
- package/dist/core/src/utils/cellScrollUtils.d.ts +0 -10
- package/dist/core/src/utils/cellUtils.d.ts +0 -18
- package/dist/core/src/utils/charts/createBarChart.d.ts +0 -15
- package/dist/core/src/utils/charts/createLineAreaChart.d.ts +0 -17
- package/dist/core/src/utils/collapseUtils.d.ts +0 -24
- package/dist/core/src/utils/columnEditor/columnEditorUtils.d.ts +0 -14
- package/dist/core/src/utils/columnEditor/createCheckbox.d.ts +0 -21
- package/dist/core/src/utils/columnEditor/createColumnEditor.d.ts +0 -25
- package/dist/core/src/utils/columnEditor/createColumnEditorPopout.d.ts +0 -22
- package/dist/core/src/utils/columnEditor/createColumnEditorRow.d.ts +0 -31
- package/dist/core/src/utils/csvExportUtils.d.ts +0 -14
- package/dist/core/src/utils/dateUtils.d.ts +0 -18
- package/dist/core/src/utils/deprecatedPropsWarnings.d.ts +0 -10
- package/dist/core/src/utils/filterUtils.d.ts +0 -5
- package/dist/core/src/utils/filters/createBooleanFilter.d.ts +0 -15
- package/dist/core/src/utils/filters/createCustomSelect.d.ts +0 -20
- package/dist/core/src/utils/filters/createDateFilter.d.ts +0 -15
- package/dist/core/src/utils/filters/createDatePicker.d.ts +0 -10
- package/dist/core/src/utils/filters/createDropdown.d.ts +0 -16
- package/dist/core/src/utils/filters/createEnumFilter.d.ts +0 -15
- package/dist/core/src/utils/filters/createFilterActions.d.ts +0 -11
- package/dist/core/src/utils/filters/createFilterDropdown.d.ts +0 -15
- package/dist/core/src/utils/filters/createFilterInput.d.ts +0 -16
- package/dist/core/src/utils/filters/createNumberFilter.d.ts +0 -15
- package/dist/core/src/utils/filters/createStringFilter.d.ts +0 -15
- package/dist/core/src/utils/footer/createTableFooter.d.ts +0 -21
- package/dist/core/src/utils/formatters.d.ts +0 -3
- package/dist/core/src/utils/generalUtils.d.ts +0 -4
- package/dist/core/src/utils/headerCell/collapsing.d.ts +0 -6
- package/dist/core/src/utils/headerCell/dragging.d.ts +0 -5
- package/dist/core/src/utils/headerCell/editing.d.ts +0 -4
- package/dist/core/src/utils/headerCell/eventTracking.d.ts +0 -25
- package/dist/core/src/utils/headerCell/filtering.d.ts +0 -3
- package/dist/core/src/utils/headerCell/resizing.d.ts +0 -3
- package/dist/core/src/utils/headerCell/selection.d.ts +0 -10
- package/dist/core/src/utils/headerCell/sorting.d.ts +0 -3
- package/dist/core/src/utils/headerCell/styling.d.ts +0 -5
- package/dist/core/src/utils/headerCell/types.d.ts +0 -75
- package/dist/core/src/utils/headerCellRenderer.d.ts +0 -4
- package/dist/core/src/utils/headerUtils.d.ts +0 -41
- package/dist/core/src/utils/headerWidthUtils.d.ts +0 -56
- package/dist/core/src/utils/horizontalScrollbarRenderer.d.ts +0 -14
- package/dist/core/src/utils/infiniteScrollUtils.d.ts +0 -145
- package/dist/core/src/utils/nestedGridRowRenderer.d.ts +0 -34
- package/dist/core/src/utils/pinnedColumnUtils.d.ts +0 -25
- package/dist/core/src/utils/quickFilterUtils.d.ts +0 -14
- package/dist/core/src/utils/resizeUtils/autoExpandResize.d.ts +0 -21
- package/dist/core/src/utils/resizeUtils/compensation.d.ts +0 -11
- package/dist/core/src/utils/resizeUtils/domUpdates.d.ts +0 -15
- package/dist/core/src/utils/resizeUtils/index.d.ts +0 -5
- package/dist/core/src/utils/resizeUtils/maxWidth.d.ts +0 -9
- package/dist/core/src/utils/resizeUtils/parentHeaderResize.d.ts +0 -11
- package/dist/core/src/utils/resizeUtils/sectionWidths.d.ts +0 -16
- package/dist/core/src/utils/rowFlattening.d.ts +0 -30
- package/dist/core/src/utils/rowProcessing.d.ts +0 -36
- package/dist/core/src/utils/rowSelectionUtils.d.ts +0 -39
- package/dist/core/src/utils/rowSeparatorRenderer.d.ts +0 -12
- package/dist/core/src/utils/rowUtils.d.ts +0 -136
- package/dist/core/src/utils/sortUtils.d.ts +0 -8
- package/dist/core/src/utils/stateRowRenderer.d.ts +0 -15
- package/dist/core/src/utils/stickyParentsRenderer.d.ts +0 -30
- package/dist/solid/src/SimpleTable.d.ts +0 -19
- package/dist/solid/src/buildVanillaConfig.d.ts +0 -3
- package/dist/solid/src/index.d.ts +0 -3
- package/dist/solid/src/types.d.ts +0 -53
- package/dist/solid/src/utils/wrapSolidRenderer.d.ts +0 -20
- /package/dist/{cjs → types}/core/src/consts/column-constraints.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/consts/general-consts.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/SimpleTableVanilla.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/api/TableAPIImpl.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/dom/DOMManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/initialization/TableInitializer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/rendering/RenderOrchestrator.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/rendering/SectionRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/rendering/TableRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/ariaAnnouncements.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/contentHeight.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/expandedDepths.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/handleOutsideClick.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/previousValue.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/scrollbarVisibility.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/scrollbarWidth.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/useAggregatedRows.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/useQuickFilter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/hooks/windowResize.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/AngleDownIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/AngleLeftIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/AngleRightIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/AngleUpIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/AscIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/CheckIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/DescIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/DragIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/FilterIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/SelectIcon.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/icons/index.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/index.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/AutoScaleManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/DimensionManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/DragHandlerManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/FilterManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/RowManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/RowSelectionManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/ScrollManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SectionScrollController.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SelectionManager/SelectionManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SelectionManager/index.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SelectionManager/keyboardUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SelectionManager/mouseUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SelectionManager/selectionRangeUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SelectionManager/types.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/managers/SortManager.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/AggregationTypes.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/BoundingBox.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/Cell.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/CellChangeProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/CellClickProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/CellRendererProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/CellValue.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/ColumnEditorConfig.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/ColumnEditorRowRendererProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/ColumnVisibilityTypes.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/CustomTheme.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/DragHandlerProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/EnumOption.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/FilterTypes.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/FlattenedHeader.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/FooterRendererProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/GenerateRowIdParams.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/GetRowId.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/HandleResizeStartProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/HeaderDropdownProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/HeaderObject.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/HeaderRendererProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/IconsConfig.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/OnNextPage.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/OnRowGroupExpandProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/OnSortProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/PanelSection.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/Pinned.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/PinnedSectionsState.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/QuickFilterTypes.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/Row.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/RowButton.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/RowId.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/RowSelectionChangeProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/RowState.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/RowStateRendererProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/SharedTableProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/SimpleTableConfig.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/SimpleTableProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/SortColumn.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/TableAPI.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/TableHeaderProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/TableRefType.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/TableRow.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/TableRowProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/Theme.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/UpdateCellProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/content.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/editing.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/editors/booleanDropdown.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/editors/datePicker.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/editors/dropdown.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/editors/enumDropdown.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/eventTracking.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/expansion.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/selection.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/styling.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCell/types.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/bodyCellRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/cellClipboardUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/cellScrollUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/cellUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/charts/createBarChart.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/charts/createLineAreaChart.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/collapseUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/columnEditor/columnEditorUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/columnEditor/createCheckbox.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/columnEditor/createColumnEditor.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/columnEditor/createColumnEditorPopout.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/columnEditor/createColumnEditorRow.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/csvExportUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/dateUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/deprecatedPropsWarnings.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filterUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createBooleanFilter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createCustomSelect.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createDateFilter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createDatePicker.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createDropdown.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createEnumFilter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createFilterActions.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createFilterDropdown.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createFilterInput.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createNumberFilter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/filters/createStringFilter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/footer/createTableFooter.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/formatters.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/generalUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/collapsing.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/dragging.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/editing.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/eventTracking.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/filtering.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/resizing.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/selection.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/sorting.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/styling.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCell/types.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerCellRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/headerUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/horizontalScrollbarRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/infiniteScrollUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/nestedGridRowRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/pinnedColumnUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/quickFilterUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/autoExpandResize.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/compensation.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/domUpdates.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/index.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/maxWidth.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/parentHeaderResize.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/resizeUtils/sectionWidths.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/rowFlattening.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/rowProcessing.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/rowSelectionUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/rowSeparatorRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/rowUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/sortUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/stateRowRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/stickyParentsRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/SimpleTable.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/buildVanillaConfig.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/index.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/types.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/utils/wrapSolidRenderer.d.ts +0 -0
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import TableRow from "../types/TableRow";
|
|
2
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
3
|
-
import { Accessor } from "../types/HeaderObject";
|
|
4
|
-
/**
|
|
5
|
-
* Sorted array of [position, extraHeight] tuples for nested grids
|
|
6
|
-
* Position: the row index in flattened array
|
|
7
|
-
* ExtraHeight: additional height beyond standard rowHeight (in pixels)
|
|
8
|
-
* Array is kept sorted by position for efficient binary search
|
|
9
|
-
*/
|
|
10
|
-
export type HeightOffsets = Array<[number, number]>;
|
|
11
|
-
/**
|
|
12
|
-
* Precomputed cumulative height data structure for O(1) row position lookups
|
|
13
|
-
* and O(log n) viewport calculations
|
|
14
|
-
*/
|
|
15
|
-
export interface CumulativeHeightMap {
|
|
16
|
-
/** Array where index i contains the top pixel position of row i */
|
|
17
|
-
rowTopPositions: number[];
|
|
18
|
-
/** Total height of all rows combined */
|
|
19
|
-
totalHeight: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Build a cumulative height map for efficient viewport calculations
|
|
23
|
-
* This precomputes the top position of every row, enabling:
|
|
24
|
-
* - O(1) lookup of row top position
|
|
25
|
-
* - O(log n) binary search to find rows in viewport
|
|
26
|
-
*
|
|
27
|
-
* @param rowCount - Total number of rows
|
|
28
|
-
* @param rowHeight - Standard height of each row
|
|
29
|
-
* @param heightOffsets - Array of [position, extraHeight] for variable-height rows
|
|
30
|
-
* @param customTheme - Theme configuration for separator width
|
|
31
|
-
* @returns Cumulative height map with row positions
|
|
32
|
-
*/
|
|
33
|
-
export declare const buildCumulativeHeightMap: (rowCount: number, rowHeight: number, heightOffsets: HeightOffsets | undefined, customTheme: CustomTheme) => CumulativeHeightMap;
|
|
34
|
-
/**
|
|
35
|
-
* Find the row index at a given scroll position using binary search
|
|
36
|
-
* Returns the index of the row that contains or is closest to the scroll position
|
|
37
|
-
*
|
|
38
|
-
* @param scrollTop - The scroll position in pixels
|
|
39
|
-
* @param heightMap - Precomputed cumulative height map
|
|
40
|
-
* @returns Row index at the scroll position
|
|
41
|
-
*/
|
|
42
|
-
export declare const findRowAtScrollPosition: (scrollTop: number, heightMap: CumulativeHeightMap) => number;
|
|
43
|
-
/**
|
|
44
|
-
* Calculate cumulative extra height from nested grids above a given position
|
|
45
|
-
* Uses binary search for O(log n) performance
|
|
46
|
-
* @param position - The row position to calculate height for
|
|
47
|
-
* @param heightOffsets - Sorted array of [position, extraHeight] tuples
|
|
48
|
-
* @returns Total extra height from all nested grids above this position
|
|
49
|
-
*/
|
|
50
|
-
export declare const getCumulativeExtraHeight: (position: number, heightOffsets?: HeightOffsets) => number;
|
|
51
|
-
export declare const getTotalRowCount: (tableRows: TableRow[]) => number;
|
|
52
|
-
/**
|
|
53
|
-
* Calculate the total height of all rows including nested grids with extra heights
|
|
54
|
-
* @param totalRowCount - Total number of rows
|
|
55
|
-
* @param rowHeight - Standard height of each row
|
|
56
|
-
* @param heightOffsets - Array of [position, extraHeight] tuples for rows with non-standard heights
|
|
57
|
-
* @param customTheme - Custom theme configuration for separator width
|
|
58
|
-
* @returns Total height in pixels
|
|
59
|
-
*/
|
|
60
|
-
export declare const calculateTotalHeight: (totalRowCount: number, rowHeight: number, heightOffsets: HeightOffsets | undefined, customTheme: CustomTheme) => number;
|
|
61
|
-
/**
|
|
62
|
-
* Viewport range calculation result containing start/end indices and the actual rows
|
|
63
|
-
*/
|
|
64
|
-
export interface ViewportRange {
|
|
65
|
-
startIndex: number;
|
|
66
|
-
endIndex: number;
|
|
67
|
-
rows: TableRow[];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Complete viewport calculations with multiple strategies
|
|
71
|
-
* Provides three different ways to calculate visible rows for different use cases
|
|
72
|
-
*/
|
|
73
|
-
export interface ViewportCalculations {
|
|
74
|
-
/** Rows to render in the DOM (includes overscan buffer for smooth scrolling) */
|
|
75
|
-
rendered: ViewportRange;
|
|
76
|
-
/** Rows that are completely visible within the viewport boundaries */
|
|
77
|
-
fullyVisible: ViewportRange;
|
|
78
|
-
/** Rows that are at least partially visible in the viewport */
|
|
79
|
-
partiallyVisible: ViewportRange;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Calculate all viewport ranges for virtual scrolling with variable-height row support
|
|
83
|
-
* Returns three different viewport calculations:
|
|
84
|
-
* - rendered: What should be in the DOM (includes overscan buffer)
|
|
85
|
-
* - fullyVisible: Rows completely visible (useful for scroll-to-view logic)
|
|
86
|
-
* - partiallyVisible: Rows at least partially visible (useful for scroll boundaries)
|
|
87
|
-
*
|
|
88
|
-
* This function now supports variable-height rows by using a cumulative height map
|
|
89
|
-
* for O(log n) viewport calculations instead of assuming fixed row heights.
|
|
90
|
-
*/
|
|
91
|
-
export declare const getViewportCalculations: ({ bufferRowCount, contentHeight, rowHeight, scrollTop, tableRows, scrollDirection, heightMap, }: {
|
|
92
|
-
bufferRowCount: number;
|
|
93
|
-
contentHeight: number;
|
|
94
|
-
rowHeight: number;
|
|
95
|
-
scrollTop: number;
|
|
96
|
-
tableRows: TableRow[];
|
|
97
|
-
scrollDirection?: "up" | "down" | "none" | undefined;
|
|
98
|
-
heightMap?: CumulativeHeightMap | undefined;
|
|
99
|
-
}) => {
|
|
100
|
-
rendered: {
|
|
101
|
-
startIndex: number;
|
|
102
|
-
endIndex: number;
|
|
103
|
-
rows: TableRow[];
|
|
104
|
-
};
|
|
105
|
-
fullyVisible: {
|
|
106
|
-
startIndex: number;
|
|
107
|
-
endIndex: number;
|
|
108
|
-
rows: TableRow[];
|
|
109
|
-
};
|
|
110
|
-
partiallyVisible: {
|
|
111
|
-
startIndex: number;
|
|
112
|
-
endIndex: number;
|
|
113
|
-
rows: TableRow[];
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Get visible rows with pixel-based overscan
|
|
118
|
-
* Uses the viewport calculations internally and returns the rendered rows
|
|
119
|
-
* Maintains backward compatibility with existing code
|
|
120
|
-
*/
|
|
121
|
-
export declare const getVisibleRows: ({ bufferRowCount, contentHeight, rowHeight, scrollTop, tableRows, scrollDirection, heightMap, }: {
|
|
122
|
-
bufferRowCount: number;
|
|
123
|
-
contentHeight: number;
|
|
124
|
-
rowHeight: number;
|
|
125
|
-
scrollTop: number;
|
|
126
|
-
tableRows: TableRow[];
|
|
127
|
-
scrollDirection?: "up" | "down" | "none" | undefined;
|
|
128
|
-
heightMap?: CumulativeHeightMap | undefined;
|
|
129
|
-
}) => TableRow[];
|
|
130
|
-
export declare const calculateSeparatorTopPosition: ({ position, rowHeight, heightOffsets, customTheme, }: {
|
|
131
|
-
position: number;
|
|
132
|
-
rowHeight: number;
|
|
133
|
-
heightOffsets?: HeightOffsets | undefined;
|
|
134
|
-
customTheme: CustomTheme;
|
|
135
|
-
}) => number;
|
|
136
|
-
export declare const calculateRowTopPosition: ({ position, rowHeight, heightOffsets, customTheme, }: {
|
|
137
|
-
position: number;
|
|
138
|
-
rowHeight: number;
|
|
139
|
-
heightOffsets?: HeightOffsets | undefined;
|
|
140
|
-
customTheme: CustomTheme;
|
|
141
|
-
}) => number;
|
|
142
|
-
export declare const getStickyParents: (allTableRows: TableRow[], renderedRows: TableRow[], fullyVisibleRows: TableRow[], partiallyVisibleRows: TableRow[], rowGrouping: Accessor[]) => {
|
|
143
|
-
stickyParents: TableRow[];
|
|
144
|
-
regularRows: TableRow[];
|
|
145
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vanilla equivalent of React NestedGridRow: renders a full-width row that contains
|
|
3
|
-
* a nested SimpleTable when a row has nestedTable config (expandable + nestedTable headers).
|
|
4
|
-
*/
|
|
5
|
-
import type TableRow from "../types/TableRow";
|
|
6
|
-
import type { CustomTheme } from "../types/CustomTheme";
|
|
7
|
-
import type { SimpleTableConfig } from "../types/SimpleTableConfig";
|
|
8
|
-
import { type HeightOffsets } from "./infiniteScrollUtils";
|
|
9
|
-
export interface NestedGridRowRenderContext {
|
|
10
|
-
rowHeight: number;
|
|
11
|
-
heightOffsets: HeightOffsets | undefined;
|
|
12
|
-
customTheme: CustomTheme;
|
|
13
|
-
theme?: string;
|
|
14
|
-
rowGrouping?: (string | number)[];
|
|
15
|
-
depth: number;
|
|
16
|
-
loadingStateRenderer?: SimpleTableConfig["loadingStateRenderer"];
|
|
17
|
-
errorStateRenderer?: SimpleTableConfig["errorStateRenderer"];
|
|
18
|
-
emptyStateRenderer?: SimpleTableConfig["emptyStateRenderer"];
|
|
19
|
-
icons?: SimpleTableConfig["icons"];
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Creates a nested grid row element: a div with class "st-row st-nested-grid-row"
|
|
23
|
-
* that contains a nested SimpleTableVanilla instance.
|
|
24
|
-
* Returns the row element and a cleanup function to destroy the nested table.
|
|
25
|
-
*/
|
|
26
|
-
export declare function createNestedGridRow(tableRow: TableRow, context: NestedGridRowRenderContext): {
|
|
27
|
-
element: HTMLElement;
|
|
28
|
-
cleanup: () => void;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Creates a spacer row for pinned sections: same position/height as a nested grid row
|
|
32
|
-
* but no inner table (keeps scroll height in sync).
|
|
33
|
-
*/
|
|
34
|
-
export declare function createNestedGridSpacer(tableRow: TableRow, context: Pick<NestedGridRowRenderContext, "rowHeight" | "heightOffsets" | "customTheme">): HTMLElement;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import HeaderObject, { Accessor } from "../types/HeaderObject";
|
|
2
|
-
import { PinnedSectionsState } from "../types/PinnedSectionsState";
|
|
3
|
-
import { PanelSection } from "../types/PanelSection";
|
|
4
|
-
export type { PinnedSectionsState, PanelSection };
|
|
5
|
-
/** Root-level columns only, preserving order within each pin group. */
|
|
6
|
-
export declare function partitionRootHeadersByPin(headers: HeaderObject[]): {
|
|
7
|
-
pinnedLeft: HeaderObject[];
|
|
8
|
-
unpinned: HeaderObject[];
|
|
9
|
-
pinnedRight: HeaderObject[];
|
|
10
|
-
};
|
|
11
|
-
export declare function isHeaderEssential(header: HeaderObject, essentialAccessors: ReadonlySet<string>): boolean;
|
|
12
|
-
/** Accessors for every header with `isEssential` in the tree (including nested). */
|
|
13
|
-
export declare function collectEssentialAccessors(headers: HeaderObject[]): Set<string>;
|
|
14
|
-
/** Within one sibling list: all essential columns must form a left prefix. */
|
|
15
|
-
export declare function hasEssentialPrefixOrder(siblings: HeaderObject[], essentialAccessors: ReadonlySet<string>): boolean;
|
|
16
|
-
/** Root array mixes pin sections; validate each pin group separately, then recurse into children. */
|
|
17
|
-
export declare function validateFullHeaderTreeEssentialOrder(headers: HeaderObject[], essentialAccessors: ReadonlySet<string>): boolean;
|
|
18
|
-
export declare function getPinnedSectionsState(headers: HeaderObject[]): PinnedSectionsState;
|
|
19
|
-
/**
|
|
20
|
-
* Rebuilds root `headers` order and `pinned` flags from section accessor lists.
|
|
21
|
-
* Clamps essential columns to the left within each section. Returns null if accessors don't match roots.
|
|
22
|
-
*/
|
|
23
|
-
export declare function rebuildHeadersFromPinnedState(headers: HeaderObject[], state: PinnedSectionsState, essentialAccessors: ReadonlySet<string>): HeaderObject[] | null;
|
|
24
|
-
/** Move a root column to another pin section (append within target section). */
|
|
25
|
-
export declare function moveRootColumnPinSide(headers: HeaderObject[], accessor: Accessor, target: Exclude<PanelSection, "main"> | "main", essentialAccessors: ReadonlySet<string>): HeaderObject[] | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SmartFilterToken } from "../types/QuickFilterTypes";
|
|
2
|
-
/**
|
|
3
|
-
* Parses a smart filter query into tokens
|
|
4
|
-
* Supports:
|
|
5
|
-
* - Multi-word: "john engineer" → matches rows containing both "john" AND "engineer"
|
|
6
|
-
* - Phrase: "john doe" → matches exact phrase
|
|
7
|
-
* - Negation: -inactive → excludes rows containing "inactive"
|
|
8
|
-
* - Column-specific: name:john → searches only in name column
|
|
9
|
-
*/
|
|
10
|
-
export declare const parseSmartFilter: (query: string) => SmartFilterToken[];
|
|
11
|
-
/**
|
|
12
|
-
* Checks if a value matches a simple filter (case-insensitive contains)
|
|
13
|
-
*/
|
|
14
|
-
export declare const matchesSimpleFilter: (value: string, filterText: string, caseSensitive: boolean) => boolean;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
import type { Pinned } from "../../types/Pinned";
|
|
3
|
-
/**
|
|
4
|
-
* Handle resize with autoExpandColumns enabled
|
|
5
|
-
* Columns to the right (or left for right-pinned) shrink proportionally
|
|
6
|
-
*/
|
|
7
|
-
export declare const handleResizeWithAutoExpand: ({ childrenToResize, collapsedHeaders, containerWidth, delta, headers, initialWidthsMap, isParentResize, resizedHeader, reverse, rootPinned, sectionHeaders, sectionWidth, startWidth, }: {
|
|
8
|
-
childrenToResize?: HeaderObject[] | undefined;
|
|
9
|
-
collapsedHeaders?: Set<string> | undefined;
|
|
10
|
-
containerWidth: number;
|
|
11
|
-
delta: number;
|
|
12
|
-
headers: HeaderObject[];
|
|
13
|
-
initialWidthsMap: Map<string, number>;
|
|
14
|
-
isParentResize?: boolean | undefined;
|
|
15
|
-
resizedHeader: HeaderObject;
|
|
16
|
-
reverse: boolean;
|
|
17
|
-
rootPinned: Pinned | undefined;
|
|
18
|
-
sectionHeaders: HeaderObject[];
|
|
19
|
-
sectionWidth: number;
|
|
20
|
-
startWidth: number;
|
|
21
|
-
}) => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
/**
|
|
3
|
-
* Distribute compensation among columns proportionally based on available headroom
|
|
4
|
-
* Used in autoExpandColumns mode
|
|
5
|
-
* Positive compensation = shrink columns, Negative compensation = grow columns
|
|
6
|
-
*/
|
|
7
|
-
export declare const distributeCompensationProportionally: ({ columnsToShrink, totalCompensation, initialWidthsMap, }: {
|
|
8
|
-
columnsToShrink: HeaderObject[];
|
|
9
|
-
totalCompensation: number;
|
|
10
|
-
initialWidthsMap: Map<string, number>;
|
|
11
|
-
}) => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
import type { Pinned } from "../../types/Pinned";
|
|
3
|
-
/**
|
|
4
|
-
* Get the pinned value from the root header (for nested headers, children inherit from parent)
|
|
5
|
-
*/
|
|
6
|
-
export declare const getRootPinned: (header: HeaderObject, headers: HeaderObject[]) => Pinned | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Update column widths and positions directly in the DOM without triggering React re-renders
|
|
9
|
-
* This is used during resize drag for better performance
|
|
10
|
-
*
|
|
11
|
-
* IMPORTANT: Positions are calculated per pinned section (left/main/right each start at 0)
|
|
12
|
-
* @param collapsedHeaders - Set of collapsed header accessors; only visible children are laid out (matches findLeafHeaders / SectionRenderer).
|
|
13
|
-
* @param overrideWidths - Optional map of accessor -> width to use for position calculation (e.g. after resize so DOM reflects just-set value)
|
|
14
|
-
*/
|
|
15
|
-
export declare const updateColumnWidthsInDOM: (headers: HeaderObject[], collapsedHeaders?: Set<string>, overrideWidths?: Map<string, number>) => void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HandleResizeStartProps } from "../../types/HandleResizeStartProps";
|
|
2
|
-
/**
|
|
3
|
-
* Handler for when resize dragging starts
|
|
4
|
-
*/
|
|
5
|
-
export declare const handleResizeStart: ({ autoExpandColumns, collapsedHeaders, containerWidth, event, header, headers, onColumnWidthChange, reverse, setHeaders, setIsResizing, startWidth, }: HandleResizeStartProps) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
/**
|
|
3
|
-
* Calculate the maximum allowable width for a header based on container constraints
|
|
4
|
-
*/
|
|
5
|
-
export declare const calculateMaxHeaderWidth: ({ header, headers, collapsedHeaders, }: {
|
|
6
|
-
header: HeaderObject;
|
|
7
|
-
headers: HeaderObject[];
|
|
8
|
-
collapsedHeaders?: Set<string> | undefined;
|
|
9
|
-
}) => number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
/**
|
|
3
|
-
* Handle resizing of parent headers with multiple children
|
|
4
|
-
*/
|
|
5
|
-
export declare const handleParentHeaderResize: ({ delta, leafHeaders, minWidth, startWidth, maxWidth, }: {
|
|
6
|
-
delta: number;
|
|
7
|
-
leafHeaders: HeaderObject[];
|
|
8
|
-
minWidth: number;
|
|
9
|
-
startWidth: number;
|
|
10
|
-
maxWidth: number;
|
|
11
|
-
}) => void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
/**
|
|
3
|
-
* Recalculate widths for all sections (left, right, main)
|
|
4
|
-
* Returns both constrained widths (for display) and raw content widths (for scrolling)
|
|
5
|
-
*/
|
|
6
|
-
export declare const recalculateAllSectionWidths: ({ headers, containerWidth, collapsedHeaders, }: {
|
|
7
|
-
headers: HeaderObject[];
|
|
8
|
-
containerWidth?: number | undefined;
|
|
9
|
-
collapsedHeaders?: Set<string> | undefined;
|
|
10
|
-
}) => {
|
|
11
|
-
leftWidth: number;
|
|
12
|
-
rightWidth: number;
|
|
13
|
-
mainWidth: number;
|
|
14
|
-
leftContentWidth: number;
|
|
15
|
-
rightContentWidth: number;
|
|
16
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import HeaderObject, { Accessor } from "../types/HeaderObject";
|
|
2
|
-
import Row from "../types/Row";
|
|
3
|
-
import RowState from "../types/RowState";
|
|
4
|
-
import TableRow from "../types/TableRow";
|
|
5
|
-
import { HeightOffsets } from "./infiniteScrollUtils";
|
|
6
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
7
|
-
import { GetRowId } from "../types/GetRowId";
|
|
8
|
-
export interface FlattenRowsConfig {
|
|
9
|
-
rows: Row[];
|
|
10
|
-
rowGrouping?: Accessor[];
|
|
11
|
-
getRowId?: GetRowId;
|
|
12
|
-
expandedRows?: Map<string, number>;
|
|
13
|
-
collapsedRows?: Map<string, number>;
|
|
14
|
-
expandedDepths?: Set<number>;
|
|
15
|
-
rowStateMap?: Map<string | number, RowState>;
|
|
16
|
-
hasLoadingRenderer?: boolean;
|
|
17
|
-
hasErrorRenderer?: boolean;
|
|
18
|
-
hasEmptyRenderer?: boolean;
|
|
19
|
-
headers?: HeaderObject[];
|
|
20
|
-
rowHeight?: number;
|
|
21
|
-
headerHeight?: number;
|
|
22
|
-
customTheme?: CustomTheme;
|
|
23
|
-
}
|
|
24
|
-
export interface FlattenRowsResult {
|
|
25
|
-
flattenedRows: TableRow[];
|
|
26
|
-
heightOffsets: HeightOffsets;
|
|
27
|
-
paginatableRows: TableRow[];
|
|
28
|
-
parentEndPositions: number[];
|
|
29
|
-
}
|
|
30
|
-
export declare function flattenRows(config: FlattenRowsConfig): FlattenRowsResult;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { CumulativeHeightMap } from "./infiniteScrollUtils";
|
|
2
|
-
import { Accessor } from "../types/HeaderObject";
|
|
3
|
-
import TableRow from "../types/TableRow";
|
|
4
|
-
import { HeightOffsets } from "./infiniteScrollUtils";
|
|
5
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
6
|
-
export interface ProcessRowsConfig {
|
|
7
|
-
flattenedRows: TableRow[];
|
|
8
|
-
paginatableRows: TableRow[];
|
|
9
|
-
parentEndPositions: number[];
|
|
10
|
-
currentPage: number;
|
|
11
|
-
rowsPerPage: number;
|
|
12
|
-
shouldPaginate: boolean;
|
|
13
|
-
serverSidePagination: boolean;
|
|
14
|
-
contentHeight: number | undefined;
|
|
15
|
-
rowHeight: number;
|
|
16
|
-
scrollTop: number;
|
|
17
|
-
scrollDirection?: "up" | "down" | "none";
|
|
18
|
-
heightOffsets?: HeightOffsets;
|
|
19
|
-
customTheme: CustomTheme;
|
|
20
|
-
enableStickyParents: boolean;
|
|
21
|
-
rowGrouping?: Accessor[];
|
|
22
|
-
}
|
|
23
|
-
export interface ProcessRowsResult {
|
|
24
|
-
currentTableRows: TableRow[];
|
|
25
|
-
rowsToRender: TableRow[];
|
|
26
|
-
/** Visible range start index into currentTableRows (when virtualized). */
|
|
27
|
-
renderedStartIndex: number;
|
|
28
|
-
/** Visible range end index into currentTableRows (when virtualized). */
|
|
29
|
-
renderedEndIndex: number;
|
|
30
|
-
stickyParents: TableRow[];
|
|
31
|
-
regularRows: TableRow[];
|
|
32
|
-
partiallyVisibleRows: TableRow[];
|
|
33
|
-
paginatedHeightOffsets: HeightOffsets | undefined;
|
|
34
|
-
heightMap: CumulativeHeightMap | undefined;
|
|
35
|
-
}
|
|
36
|
-
export declare function processRows(config: ProcessRowsConfig): ProcessRowsResult;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import Row from "../types/Row";
|
|
2
|
-
import TableRow from "../types/TableRow";
|
|
3
|
-
import HeaderObject from "../types/HeaderObject";
|
|
4
|
-
/**
|
|
5
|
-
* Get the set of selected row IDs from an array of table rows
|
|
6
|
-
*/
|
|
7
|
-
export declare const getSelectedRowIds: (tableRows: TableRow[]) => string[];
|
|
8
|
-
/**
|
|
9
|
-
* Check if a specific row is selected
|
|
10
|
-
*/
|
|
11
|
-
export declare const isRowSelected: (rowId: string, selectedRows: Set<string>) => boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Check if all rows are selected
|
|
14
|
-
*/
|
|
15
|
-
export declare const areAllRowsSelected: (tableRows: TableRow[], selectedRows: Set<string>) => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Toggle selection of a single row
|
|
18
|
-
*/
|
|
19
|
-
export declare const toggleRowSelection: (rowId: string, selectedRows: Set<string>) => Set<string>;
|
|
20
|
-
/**
|
|
21
|
-
* Select all rows
|
|
22
|
-
*/
|
|
23
|
-
export declare const selectAllRows: (tableRows: TableRow[]) => Set<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Deselect all rows
|
|
26
|
-
*/
|
|
27
|
-
export declare const deselectAllRows: () => Set<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Get the selected rows from the table rows array
|
|
30
|
-
*/
|
|
31
|
-
export declare const getSelectedRows: (tableRows: TableRow[], selectedRows: Set<string>) => Row[];
|
|
32
|
-
/**
|
|
33
|
-
* Get the count of selected rows
|
|
34
|
-
*/
|
|
35
|
-
export declare const getSelectedRowCount: (selectedRows: Set<string>) => number;
|
|
36
|
-
/**
|
|
37
|
-
* Create a selection header for the checkbox column
|
|
38
|
-
*/
|
|
39
|
-
export declare const createSelectionHeader: (width: number) => HeaderObject;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HeightOffsets } from "./infiniteScrollUtils";
|
|
2
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
3
|
-
export interface CreateRowSeparatorOptions {
|
|
4
|
-
position: number;
|
|
5
|
-
rowHeight: number;
|
|
6
|
-
displayStrongBorder: boolean;
|
|
7
|
-
heightOffsets?: HeightOffsets;
|
|
8
|
-
customTheme?: CustomTheme;
|
|
9
|
-
isSticky?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const createRowSeparator: (options: CreateRowSeparatorOptions) => HTMLElement;
|
|
12
|
-
export declare const createSpacerRow: (position: number, rowHeight: number, heightOffsets: HeightOffsets | undefined, customTheme: CustomTheme, className: string, height?: number) => HTMLElement;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import TableRow from "../types/TableRow";
|
|
2
|
-
import Row from "../types/Row";
|
|
3
|
-
import HeaderObject, { Accessor } from "../types/HeaderObject";
|
|
4
|
-
import CellValue from "../types/CellValue";
|
|
5
|
-
import RowState from "../types/RowState";
|
|
6
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
7
|
-
import { GetRowId } from "../types/GetRowId";
|
|
8
|
-
import { GenerateRowIdParams } from "../types/GenerateRowIdParams";
|
|
9
|
-
/**
|
|
10
|
-
* Calculate the height of a nested grid based on the number of child rows
|
|
11
|
-
* @param childRowCount - Number of rows in the nested grid
|
|
12
|
-
* @param rowHeight - Height of each row
|
|
13
|
-
* @param headerHeight - Height of the header
|
|
14
|
-
* @param customTheme - Custom theme configuration
|
|
15
|
-
* @returns Calculated height in pixels (includes padding, borders, row separators, and header border)
|
|
16
|
-
*/
|
|
17
|
-
export declare const calculateNestedGridHeight: ({ childRowCount, rowHeight, headerHeight, customTheme, }: {
|
|
18
|
-
childRowCount: number;
|
|
19
|
-
rowHeight: number;
|
|
20
|
-
headerHeight: number;
|
|
21
|
-
customTheme: CustomTheme;
|
|
22
|
-
}) => number;
|
|
23
|
-
/**
|
|
24
|
-
* Calculate the final wrapper height for a nested grid, accounting for custom heights
|
|
25
|
-
*
|
|
26
|
-
* @param calculatedHeight - The default calculated height based on child rows
|
|
27
|
-
* @param customHeight - Optional custom height from nestedTable config (e.g., "200px" or 200)
|
|
28
|
-
* @param customTheme - Custom theme configuration for padding
|
|
29
|
-
* @returns Final height in pixels for the wrapper (includes padding)
|
|
30
|
-
*/
|
|
31
|
-
export declare const calculateFinalNestedGridHeight: ({ calculatedHeight, customHeight, customTheme, }: {
|
|
32
|
-
calculatedHeight: number;
|
|
33
|
-
customHeight?: string | number | undefined;
|
|
34
|
-
customTheme: CustomTheme;
|
|
35
|
-
}) => number;
|
|
36
|
-
/**
|
|
37
|
-
* Calculate the inner height for a nested SimpleTable component
|
|
38
|
-
* This accounts for the padding that's applied to the wrapper
|
|
39
|
-
*
|
|
40
|
-
* @param calculatedHeight - The total height of the nested grid row (from calculateNestedGridHeight)
|
|
41
|
-
* @param customHeight - Optional custom height from nestedTable config (e.g., "200px")
|
|
42
|
-
* @param customTheme - Custom theme configuration for padding
|
|
43
|
-
* @returns Height value to pass to the nested SimpleTable (string with units)
|
|
44
|
-
*/
|
|
45
|
-
export declare const calculateNestedTableHeight: ({ calculatedHeight, customHeight, customTheme, }: {
|
|
46
|
-
calculatedHeight: number;
|
|
47
|
-
customHeight?: string | number | undefined;
|
|
48
|
-
customTheme: CustomTheme;
|
|
49
|
-
}) => string;
|
|
50
|
-
/**
|
|
51
|
-
* Get a nested property value from an object using dot notation and array bracket notation
|
|
52
|
-
* Examples:
|
|
53
|
-
* getNestedValue(row, "latest.rank") returns row.latest.rank
|
|
54
|
-
* getNestedValue(row, "albums[0].title") returns row.albums[0].title
|
|
55
|
-
* getNestedValue(row, "releaseDate[0]") returns row.releaseDate[0]
|
|
56
|
-
*/
|
|
57
|
-
export declare const getNestedValue: (obj: Row, path: Accessor) => CellValue;
|
|
58
|
-
/**
|
|
59
|
-
* Set a nested property value in an object using dot notation and array bracket notation
|
|
60
|
-
* Examples:
|
|
61
|
-
* setNestedValue(row, "latest.rank", 5) sets row.latest.rank = 5
|
|
62
|
-
* setNestedValue(row, "albums[0].title", "New Album") sets row.albums[0].title = "New Album"
|
|
63
|
-
* setNestedValue(row, "releaseDate[0]", "2024") sets row.releaseDate[0] = "2024"
|
|
64
|
-
*/
|
|
65
|
-
export declare const setNestedValue: (obj: Row, path: Accessor, value: CellValue) => void;
|
|
66
|
-
/**
|
|
67
|
-
* Check if an array contains Row objects (vs primitive arrays like string[] or number[])
|
|
68
|
-
*/
|
|
69
|
-
export declare const isRowArray: (data: any) => data is Row[];
|
|
70
|
-
/**
|
|
71
|
-
* Generate the row ID array from index path and optional custom identifier.
|
|
72
|
-
*
|
|
73
|
-
* The row ID is always an array that includes:
|
|
74
|
-
* - The index at each level of nesting
|
|
75
|
-
* - The grouping key between levels (for readability)
|
|
76
|
-
* - An optional custom identifier from getRowId (appended at the end)
|
|
77
|
-
*
|
|
78
|
-
* Examples:
|
|
79
|
-
* - Root row (index 1): [1]
|
|
80
|
-
* - Nested store (parent index 1, store index 5): [1, "stores", 5]
|
|
81
|
-
* - With custom ID: [1, "stores", 5, "STORE-101"]
|
|
82
|
-
* - Deep nesting: [1, "stores", 5, "products", 2, "PROD-24"]
|
|
83
|
-
*
|
|
84
|
-
* @param params - Object containing row data, getRowId function, and metadata
|
|
85
|
-
* @returns An array representing the unique row ID path
|
|
86
|
-
*/
|
|
87
|
-
export declare const generateRowId: (params: GenerateRowIdParams) => (string | number)[];
|
|
88
|
-
/**
|
|
89
|
-
* Convert a row ID array to a string for use as Map keys, Set members, etc.
|
|
90
|
-
*
|
|
91
|
-
* @param rowId - Array of strings/numbers representing the row ID path
|
|
92
|
-
* @returns A string representation of the row ID
|
|
93
|
-
*/
|
|
94
|
-
export declare const rowIdToString: (rowId: (string | number)[]) => string;
|
|
95
|
-
/**
|
|
96
|
-
* Get nested rows from a row based on the grouping path
|
|
97
|
-
*/
|
|
98
|
-
export declare const getNestedRows: (row: Row, groupingKey: string) => Row[];
|
|
99
|
-
/**
|
|
100
|
-
* Check if a row has nested rows for a given grouping key
|
|
101
|
-
*/
|
|
102
|
-
export declare const hasNestedRows: (row: Row, groupingKey?: string) => boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Determine if a row is expanded based on expandedDepths and manual row overrides
|
|
105
|
-
* @param rowId - The ID of the row to check
|
|
106
|
-
* @param depth - The depth level of the row (0-indexed)
|
|
107
|
-
* @param expandedDepths - Set of depth levels that are expanded
|
|
108
|
-
* @param expandedRows - Map of row IDs to their depths for rows that user wants expanded
|
|
109
|
-
* @param collapsedRows - Map of row IDs to their depths for rows that user wants collapsed
|
|
110
|
-
* @returns true if the row is expanded, false otherwise
|
|
111
|
-
*/
|
|
112
|
-
export declare const isRowExpanded: (rowId: string | number, depth: number, expandedDepths: Set<number>, expandedRows: Map<string, number>, collapsedRows: Map<string, number>) => boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Flatten rows recursively based on row grouping configuration
|
|
115
|
-
* Now calculates ALL properties including position and isLastGroupRow
|
|
116
|
-
* Also injects special state rows for loading/error/empty states (only if renderers are available)
|
|
117
|
-
* Also injects nested grid rows when a header has nestedTable configuration
|
|
118
|
-
*/
|
|
119
|
-
export declare const flattenRowsWithGrouping: ({ depth, expandedDepths, expandedRows, collapsedRows, rowGrouping, getRowId, rows, displayPositionOffset, rowStateMap, hasLoadingRenderer, hasErrorRenderer, hasEmptyRenderer, headers, rowHeight, headerHeight, customTheme, }: {
|
|
120
|
-
depth?: number | undefined;
|
|
121
|
-
expandedDepths: Set<number>;
|
|
122
|
-
expandedRows: Map<string, number>;
|
|
123
|
-
collapsedRows: Map<string, number>;
|
|
124
|
-
rowGrouping?: string[] | undefined;
|
|
125
|
-
getRowId?: GetRowId | undefined;
|
|
126
|
-
rows: Row[];
|
|
127
|
-
displayPositionOffset?: number | undefined;
|
|
128
|
-
rowStateMap?: Map<string | number, RowState> | undefined;
|
|
129
|
-
hasLoadingRenderer?: boolean | undefined;
|
|
130
|
-
hasErrorRenderer?: boolean | undefined;
|
|
131
|
-
hasEmptyRenderer?: boolean | undefined;
|
|
132
|
-
headers?: HeaderObject[] | undefined;
|
|
133
|
-
rowHeight: number;
|
|
134
|
-
headerHeight: number;
|
|
135
|
-
customTheme: CustomTheme;
|
|
136
|
-
}) => TableRow[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import HeaderObject from "../types/HeaderObject";
|
|
2
|
-
import Row from "../types/Row";
|
|
3
|
-
import SortColumn from "../types/SortColumn";
|
|
4
|
-
export declare const handleSort: ({ headers, rows, sortColumn, }: {
|
|
5
|
-
headers: HeaderObject[];
|
|
6
|
-
rows: Row[];
|
|
7
|
-
sortColumn: SortColumn;
|
|
8
|
-
}) => Row[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type TableRowType from "../types/TableRow";
|
|
2
|
-
import { HeightOffsets } from "./infiniteScrollUtils";
|
|
3
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
4
|
-
import { LoadingStateRenderer, ErrorStateRenderer, EmptyStateRenderer } from "../types/RowStateRendererProps";
|
|
5
|
-
export interface StateRowRenderContext {
|
|
6
|
-
index: number;
|
|
7
|
-
rowHeight: number;
|
|
8
|
-
heightOffsets: HeightOffsets | undefined;
|
|
9
|
-
customTheme: CustomTheme;
|
|
10
|
-
loadingStateRenderer?: LoadingStateRenderer;
|
|
11
|
-
errorStateRenderer?: ErrorStateRenderer;
|
|
12
|
-
emptyStateRenderer?: EmptyStateRenderer;
|
|
13
|
-
}
|
|
14
|
-
export declare const createStateRow: (tableRow: TableRowType, context: StateRowRenderContext) => HTMLElement;
|
|
15
|
-
export declare const cleanupStateRow: (rowElement: HTMLElement) => void;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import TableRow from "../types/TableRow";
|
|
2
|
-
import HeaderObject from "../types/HeaderObject";
|
|
3
|
-
import { CumulativeHeightMap, HeightOffsets } from "./infiniteScrollUtils";
|
|
4
|
-
import type { SectionScrollController } from "../managers/SectionScrollController";
|
|
5
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
6
|
-
import { CellRenderContext } from "./bodyCell/types";
|
|
7
|
-
export interface StickyParentsContainerProps {
|
|
8
|
-
calculatedHeaderHeight: number;
|
|
9
|
-
heightMap?: CumulativeHeightMap;
|
|
10
|
-
partiallyVisibleRows: TableRow[];
|
|
11
|
-
pinnedLeftColumns: HeaderObject[];
|
|
12
|
-
pinnedLeftWidth: number;
|
|
13
|
-
pinnedRightColumns: HeaderObject[];
|
|
14
|
-
pinnedRightWidth: number;
|
|
15
|
-
scrollTop: number;
|
|
16
|
-
scrollbarWidth: number;
|
|
17
|
-
stickyParents: TableRow[];
|
|
18
|
-
}
|
|
19
|
-
export interface StickyParentsRenderContext {
|
|
20
|
-
collapsedHeaders: Set<string>;
|
|
21
|
-
customTheme: CustomTheme;
|
|
22
|
-
editColumns: boolean;
|
|
23
|
-
headers: HeaderObject[];
|
|
24
|
-
rowHeight: number;
|
|
25
|
-
heightOffsets: HeightOffsets | undefined;
|
|
26
|
-
cellRenderContext: CellRenderContext;
|
|
27
|
-
sectionScrollController?: SectionScrollController | null;
|
|
28
|
-
}
|
|
29
|
-
export declare const createStickyParentsContainer: (props: StickyParentsContainerProps, context: StickyParentsRenderContext) => HTMLElement | null;
|
|
30
|
-
export declare const cleanupStickyParentsContainer: (container: HTMLElement, sectionScrollController?: SectionScrollController | null) => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { SimpleTableSolidProps } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* SimpleTable — Solid.js adapter for simple-table-core.
|
|
4
|
-
*
|
|
5
|
-
* Accepts the same props as SimpleTableProps (the vanilla user-facing API) but
|
|
6
|
-
* with Solid component types for all renderer props.
|
|
7
|
-
*
|
|
8
|
-
* Pass a callback `ref` prop to receive the full TableAPI imperative interface:
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* let tableApi: TableAPI | undefined;
|
|
12
|
-
*
|
|
13
|
-
* <SimpleTable
|
|
14
|
-
* ref={(api) => (tableApi = api)}
|
|
15
|
-
* rows={rows()}
|
|
16
|
-
* defaultHeaders={headers}
|
|
17
|
-
* />
|
|
18
|
-
*/
|
|
19
|
-
export declare function SimpleTable(props: SimpleTableSolidProps): import("solid-js").JSX.Element;
|