@simple-table/react 3.0.0-beta.11 → 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/README.md +36 -0
- package/dist/cjs/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{cjs → types}/core/src/utils/headerWidthUtils.d.ts +2 -2
- package/dist/{cjs → types}/react/src/SimpleTable.d.ts +4 -1
- package/dist/{cjs → types}/react/src/utils/wrapReactRenderer.d.ts +3 -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/react/src/SimpleTable.d.ts +0 -24
- package/dist/react/src/buildVanillaConfig.d.ts +0 -3
- package/dist/react/src/index.d.ts +0 -3
- package/dist/react/src/types.d.ts +0 -51
- package/dist/react/src/utils/wrapReactRenderer.d.ts +0 -24
- /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}/react/src/buildVanillaConfig.d.ts +0 -0
- /package/dist/{cjs → types}/react/src/index.d.ts +0 -0
- /package/dist/{cjs → types}/react/src/types.d.ts +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Simple Table for React
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@simple-table/react)
|
|
4
|
+
[](https://www.npmjs.com/package/@simple-table/react)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
|
|
7
|
+
React adapter for [Simple Table](https://www.simple-table.com/) — a lightweight, high-performance data grid with full React component support for all renderers.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @simple-table/react
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Peer dependencies:** `react >=18.0.0`, `react-dom >=18.0.0`
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- Use React components for cell renderers, header renderers, footer renderers, and more
|
|
20
|
+
- Access the full imperative `TableAPI` via a ref for sorting, filtering, pagination, export, and more
|
|
21
|
+
- All types exported directly — no need to install `simple-table-core` separately
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
- **Quick Start**: [simple-table.com/docs/quick-start](https://www.simple-table.com/docs/quick-start)
|
|
26
|
+
- **Full Documentation**: [simple-table.com/docs/installation](https://www.simple-table.com/docs/installation)
|
|
27
|
+
- **Examples**: [simple-table.com/examples/crm](https://www.simple-table.com/examples/crm)
|
|
28
|
+
|
|
29
|
+
## Community & Support
|
|
30
|
+
|
|
31
|
+
- **Discord**: [Join us on Discord](https://discord.gg/RvKHCfg3PC)
|
|
32
|
+
- **GitHub**: [Report bugs or suggest features](https://github.com/petera2c/simple-table/issues)
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
Dual licensed — MIT for individuals & startups, proprietary Pro tier for revenue-generating companies. See [LICENSE](LICENSE) and [EULA.txt](../../EULA.txt) for details.
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("simple-table-core"),n=require("react-dom/server");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}function d(r){return t=>{const o=document.createElement("div");return o.innerHTML=n.renderToStaticMarkup(e.jsx(r,Object.assign({},t))),o}}function a(r){const t=document.createElement("div");return t.innerHTML=n.renderToStaticMarkup(e.jsx(e.Fragment,{children:r})),t}function c(r){return n.renderToStaticMarkup(e.jsx(e.Fragment,{children:r}))}function u(e){return"function"==typeof e}function l(e){const{cellRenderer:r,headerRenderer:t,children:n,nestedTable:o}=e,a=i(e,["cellRenderer","headerRenderer","children","nestedTable"]),c=Object.assign({},a);if(r&&(c.cellRenderer=d(r)),t&&(c.headerRenderer=d(t)),n&&(c.children=n.map(l)),o){const e=Object.assign(Object.assign({},o),{rows:[]});c.nestedTable=s(e)}return c}function s(e){const{defaultHeaders:r,footerRenderer:t,emptyStateRenderer:n,errorStateRenderer:o,loadingStateRenderer:s,tableEmptyStateRenderer:f,headerDropdown:p,columnEditorConfig:m,icons:R}=e,b=i(e,["defaultHeaders","footerRenderer","emptyStateRenderer","errorStateRenderer","loadingStateRenderer","tableEmptyStateRenderer","headerDropdown","columnEditorConfig","icons"]),S=Object.assign(Object.assign({},b),{defaultHeaders:r.map(l)});if(void 0!==t&&(S.footerRenderer=d(t)),void 0!==n)if(u(n))S.emptyStateRenderer=d(n);else{const e=n;S.emptyStateRenderer=()=>a(e)}if(void 0!==o)if(u(o))S.errorStateRenderer=d(o);else{const e=o;S.errorStateRenderer=()=>a(e)}if(void 0!==s)if(u(s))S.loadingStateRenderer=d(s);else{const e=s;S.loadingStateRenderer=()=>a(e)}return void 0!==f&&(S.tableEmptyStateRenderer=null===f?null:a(f)),void 0!==p&&(S.headerDropdown=d(p)),void 0!==m&&(S.columnEditorConfig=function(e){const{rowRenderer:r}=e,t=i(e,["rowRenderer"]);return Object.assign(Object.assign({},t),r?{rowRenderer:d(r)}:{})}(m)),void 0!==R&&(S.icons=function(e){const r={};for(const[t,n]of Object.entries(e))null!=n&&(r[t]="string"==typeof n||n instanceof HTMLElement||n instanceof SVGElement?n:c(n));return r}(R)),S}"function"==typeof SuppressedError&&SuppressedError;const f=o(r).default.forwardRef(function(n,o){const i=r.useRef(null),d=r.useRef(null),a=n;return r.useEffect(()=>{if(!i.current)return;const e=new t.SimpleTableVanilla(i.current,s(a));if(e.mount(),d.current=e,o){const r=e.getAPI();"function"==typeof o?o(r):o.current=r}return()=>{e.destroy(),d.current=null,o&&"function"!=typeof o&&(o.current=null)}},[]),r.useEffect(()=>{var e;null===(e=d.current)||void 0===e||e.update(s(a))}),e.jsx("div",{ref:i})});f.displayName="SimpleTable",exports.SimpleTable=f;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";
|
|
1
|
+
import{jsx as e,Fragment as r}from"react/jsx-runtime";import n,{useRef as t,useEffect as o}from"react";import{SimpleTableVanilla as d}from"simple-table-core";import{renderToStaticMarkup as i}from"react-dom/server";function c(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(n[t[o]]=e[t[o]])}return n}function a(r){return n=>{const t=document.createElement("div");return t.innerHTML=i(e(r,Object.assign({},n))),t}}function l(n){const t=document.createElement("div");return t.innerHTML=i(e(r,{children:n})),t}function s(n){return i(e(r,{children:n}))}function u(e){return"function"==typeof e}function f(e){const{cellRenderer:r,headerRenderer:n,children:t,nestedTable:o}=e,d=c(e,["cellRenderer","headerRenderer","children","nestedTable"]),i=Object.assign({},d);if(r&&(i.cellRenderer=a(r)),n&&(i.headerRenderer=a(n)),t&&(i.children=t.map(f)),o){const e=Object.assign(Object.assign({},o),{rows:[]});i.nestedTable=p(e)}return i}function p(e){const{defaultHeaders:r,footerRenderer:n,emptyStateRenderer:t,errorStateRenderer:o,loadingStateRenderer:d,tableEmptyStateRenderer:i,headerDropdown:p,columnEditorConfig:m,icons:R}=e,b=c(e,["defaultHeaders","footerRenderer","emptyStateRenderer","errorStateRenderer","loadingStateRenderer","tableEmptyStateRenderer","headerDropdown","columnEditorConfig","icons"]),y=Object.assign(Object.assign({},b),{defaultHeaders:r.map(f)});if(void 0!==n&&(y.footerRenderer=a(n)),void 0!==t)if(u(t))y.emptyStateRenderer=a(t);else{const e=t;y.emptyStateRenderer=()=>l(e)}if(void 0!==o)if(u(o))y.errorStateRenderer=a(o);else{const e=o;y.errorStateRenderer=()=>l(e)}if(void 0!==d)if(u(d))y.loadingStateRenderer=a(d);else{const e=d;y.loadingStateRenderer=()=>l(e)}return void 0!==i&&(y.tableEmptyStateRenderer=null===i?null:l(i)),void 0!==p&&(y.headerDropdown=a(p)),void 0!==m&&(y.columnEditorConfig=function(e){const{rowRenderer:r}=e,n=c(e,["rowRenderer"]);return Object.assign(Object.assign({},n),r?{rowRenderer:a(r)}:{})}(m)),void 0!==R&&(y.icons=function(e){const r={};for(const[n,t]of Object.entries(e))null!=t&&(r[n]="string"==typeof t||t instanceof HTMLElement||t instanceof SVGElement?t:s(t));return r}(R)),y}"function"==typeof SuppressedError&&SuppressedError;const m=n.forwardRef(function(r,n){const i=t(null),c=t(null),a=r;return o(()=>{if(!i.current)return;const e=new d(i.current,p(a));if(e.mount(),c.current=e,n){const r=e.getAPI();"function"==typeof n?n(r):n.current=r}return()=>{e.destroy(),c.current=null,n&&"function"!=typeof n&&(n.current=null)}},[]),o(()=>{var e;null===(e=c.current)||void 0===e||e.update(p(a))}),e("div",{ref:i})});m.displayName="SimpleTable";export{m as SimpleTable};
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -13,8 +13,8 @@ export declare const DEFAULT_TABLE_WIDTH = 800;
|
|
|
13
13
|
* Normalize header widths so that fr and % are converted to pixels.
|
|
14
14
|
* Call this as soon as headers are received so the rest of the code can assume numeric widths.
|
|
15
15
|
* If totalWidth is not provided, a reasonable total is computed from fixed widths + default for fr columns.
|
|
16
|
-
* If options.containerWidth is provided,
|
|
17
|
-
*
|
|
16
|
+
* If options.containerWidth is provided, all fr/% columns are resolved against the full container width,
|
|
17
|
+
* so pinned and non-pinned fr columns share the same proportional pool.
|
|
18
18
|
*/
|
|
19
19
|
export declare function normalizeHeaderWidths(headers: HeaderObject[], totalWidthOrOptions?: number | {
|
|
20
20
|
containerWidth: number;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableAPI } from "simple-table-core";
|
|
3
|
+
import type { SimpleTableReactProps } from "./types";
|
|
1
4
|
/**
|
|
2
5
|
* SimpleTable — React adapter for simple-table-core.
|
|
3
6
|
*
|
|
@@ -20,5 +23,5 @@
|
|
|
20
23
|
* footerRenderer={MyFooter}
|
|
21
24
|
* />
|
|
22
25
|
*/
|
|
23
|
-
declare const SimpleTable:
|
|
26
|
+
declare const SimpleTable: React.ForwardRefExoticComponent<SimpleTableReactProps & React.RefAttributes<TableAPI>>;
|
|
24
27
|
export default SimpleTable;
|
|
@@ -3,8 +3,9 @@ import React from "react";
|
|
|
3
3
|
* Wraps a React component into a function that returns an HTMLElement, matching
|
|
4
4
|
* the vanilla renderer contract expected by simple-table-core.
|
|
5
5
|
*
|
|
6
|
-
* Uses
|
|
7
|
-
*
|
|
6
|
+
* Uses renderToStaticMarkup for synchronous rendering that is safe to call from
|
|
7
|
+
* any context (including inside useEffect) without triggering React 18's
|
|
8
|
+
* "flushSync was called from inside a lifecycle method" warning.
|
|
8
9
|
*/
|
|
9
10
|
export declare function wrapReactRenderer<P extends object>(Component: React.ComponentType<P>): (props: P) => HTMLElement;
|
|
10
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-table/react",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.14",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
6
|
+
"types": "dist/types/react/src/index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/index.es.js",
|
|
11
11
|
"require": "./dist/cjs/index.js",
|
|
12
|
-
"types": "./dist/types/index.d.ts"
|
|
12
|
+
"types": "./dist/types/react/src/index.d.ts"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react-dom": ">=18.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"simple-table-core": "3.0.0-beta.
|
|
28
|
+
"simple-table-core": "3.0.0-beta.14"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rollup/plugin-alias": "^4.0.4",
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Column width constraints for the table
|
|
3
|
-
* These values control minimum and maximum widths for columns and sections
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* MIN_COLUMN_WIDTH
|
|
7
|
-
* The minimum width in pixels that any column can have.
|
|
8
|
-
* This is used as:
|
|
9
|
-
* - The default minimum width when header.minWidth is undefined
|
|
10
|
-
* - The absolute minimum in autoExpandColumns mode to prevent columns from becoming too narrow
|
|
11
|
-
*/
|
|
12
|
-
export declare const MIN_COLUMN_WIDTH = 40;
|
|
13
|
-
/**
|
|
14
|
-
* MAX_SINGLE_PINNED_SECTION_PERCENT
|
|
15
|
-
* Maximum percentage of container width that a single pinned section can occupy.
|
|
16
|
-
* When only one section (left OR right) is pinned, it can take up to 60% of the width.
|
|
17
|
-
* This ensures the main section always has at least 40% of the space.
|
|
18
|
-
*/
|
|
19
|
-
export declare const MAX_SINGLE_PINNED_SECTION_PERCENT = 0.6;
|
|
20
|
-
/**
|
|
21
|
-
* MAX_DUAL_PINNED_SECTION_PERCENT
|
|
22
|
-
* Maximum percentage of container width that each pinned section can occupy
|
|
23
|
-
* when BOTH left and right sections are pinned.
|
|
24
|
-
* With both sections at 40%, the main section is guaranteed at least 20% of the space.
|
|
25
|
-
*/
|
|
26
|
-
export declare const MAX_DUAL_PINNED_SECTION_PERCENT = 0.4;
|
|
27
|
-
/**
|
|
28
|
-
* Mobile breakpoints for responsive pinned section constraints
|
|
29
|
-
*/
|
|
30
|
-
export declare const MOBILE_BREAKPOINT_SMALL = 480;
|
|
31
|
-
export declare const MOBILE_BREAKPOINT_MEDIUM = 768;
|
|
32
|
-
/**
|
|
33
|
-
* Get the maximum allowed width percentage for a single pinned section based on container width.
|
|
34
|
-
* This is used when only ONE section (left OR right) is pinned.
|
|
35
|
-
*
|
|
36
|
-
* @param containerWidth - The table container width in pixels (st-body-container)
|
|
37
|
-
* @returns The maximum percentage (0-1) of container width that the pinned section can occupy
|
|
38
|
-
*/
|
|
39
|
-
export declare const getMaxSinglePinnedPercent: (containerWidth: number) => number;
|
|
40
|
-
/**
|
|
41
|
-
* Get the maximum allowed width percentage for pinned sections based on container width
|
|
42
|
-
* and the number of pinned sections.
|
|
43
|
-
*
|
|
44
|
-
* @param containerWidth - The table container width in pixels (st-body-container)
|
|
45
|
-
* @param hasPinnedLeft - Whether there is a pinned left section
|
|
46
|
-
* @param hasPinnedRight - Whether there is a pinned right section
|
|
47
|
-
* @returns The maximum percentage (0-1) of container width that each pinned section can occupy
|
|
48
|
-
*/
|
|
49
|
-
export declare const getMaxPinnedSectionPercent: (containerWidth: number, hasPinnedLeft: boolean, hasPinnedRight: boolean) => number;
|
|
50
|
-
/**
|
|
51
|
-
* Calculate the maximum width in pixels for a pinned section
|
|
52
|
-
*
|
|
53
|
-
* @param containerWidth - The table container width in pixels (st-body-container)
|
|
54
|
-
* @param hasPinnedLeft - Whether there is a pinned left section
|
|
55
|
-
* @param hasPinnedRight - Whether there is a pinned right section
|
|
56
|
-
* @returns The maximum width in pixels for a pinned section
|
|
57
|
-
*/
|
|
58
|
-
export declare const getMaxPinnedSectionWidth: (containerWidth: number, hasPinnedLeft: boolean, hasPinnedRight: boolean) => number;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const DRAG_THROTTLE_LIMIT = 50;
|
|
2
|
-
export declare const ROW_SEPARATOR_WIDTH = 1;
|
|
3
|
-
export declare const PAGE_SIZE = 20;
|
|
4
|
-
export declare const CSS_VAR_BORDER_WIDTH = "--st-border-width";
|
|
5
|
-
export declare const DEFAULT_BORDER_WIDTH = 1;
|
|
6
|
-
export declare const VIRTUALIZATION_THRESHOLD = 20;
|
|
7
|
-
export declare const OVERSCAN_PIXELS = 800;
|
|
8
|
-
export declare const calculateBufferRowCount: (rowHeight: number) => number;
|
|
9
|
-
export declare const COLUMN_EDIT_WIDTH = 29.5;
|
|
10
|
-
export declare const TABLE_HEADER_CELL_WIDTH_DEFAULT = 150;
|
|
11
|
-
export declare const PINNED_BORDER_WIDTH = 1;
|
|
12
|
-
export declare const CHART_COLUMN_TYPES: string[];
|
|
13
|
-
export declare const OPTIMAL_CHART_COLUMN_WIDTH = 150;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { SimpleTableConfig } from "../types/SimpleTableConfig";
|
|
2
|
-
import { TableAPI } from "../types/TableAPI";
|
|
3
|
-
import "../styles/all-themes.css";
|
|
4
|
-
export declare class SimpleTableVanilla {
|
|
5
|
-
private container;
|
|
6
|
-
private config;
|
|
7
|
-
private customTheme;
|
|
8
|
-
private mergedColumnEditorConfig;
|
|
9
|
-
private resolvedIcons;
|
|
10
|
-
private domManager;
|
|
11
|
-
private renderOrchestrator;
|
|
12
|
-
private draggedHeaderRef;
|
|
13
|
-
private hoveredHeaderRef;
|
|
14
|
-
private localRows;
|
|
15
|
-
private headers;
|
|
16
|
-
private essentialAccessors;
|
|
17
|
-
private currentPage;
|
|
18
|
-
private scrollTop;
|
|
19
|
-
private scrollDirection;
|
|
20
|
-
private isResizing;
|
|
21
|
-
private isScrolling;
|
|
22
|
-
/** True when this render is scroll-driven so body can use position-only updates for existing cells. */
|
|
23
|
-
private _positionOnlyBody;
|
|
24
|
-
private firstRenderDone;
|
|
25
|
-
private internalIsLoading;
|
|
26
|
-
private scrollbarWidth;
|
|
27
|
-
private isMainSectionScrollable;
|
|
28
|
-
private columnEditorOpen;
|
|
29
|
-
private collapsedHeaders;
|
|
30
|
-
private expandedDepths;
|
|
31
|
-
private expandedRows;
|
|
32
|
-
private collapsedRows;
|
|
33
|
-
private rowStateMap;
|
|
34
|
-
private announcement;
|
|
35
|
-
private cellRegistry;
|
|
36
|
-
private headerRegistry;
|
|
37
|
-
private rowIndexMap;
|
|
38
|
-
private autoScaleManager;
|
|
39
|
-
private dimensionManager;
|
|
40
|
-
private scrollManager;
|
|
41
|
-
private sectionScrollController;
|
|
42
|
-
private sortManager;
|
|
43
|
-
private filterManager;
|
|
44
|
-
private selectionManager;
|
|
45
|
-
private rowSelectionManager;
|
|
46
|
-
private windowResizeManager;
|
|
47
|
-
private handleOutsideClickManager;
|
|
48
|
-
private scrollbarVisibilityManager;
|
|
49
|
-
private expandedDepthsManager;
|
|
50
|
-
private ariaAnnouncementManager;
|
|
51
|
-
private mounted;
|
|
52
|
-
private scrollRafId;
|
|
53
|
-
private scrollEndTimeoutId;
|
|
54
|
-
private lastScrollTop;
|
|
55
|
-
private isUpdating;
|
|
56
|
-
constructor(container: HTMLElement, config: SimpleTableConfig);
|
|
57
|
-
private rebuildRowIndexMap;
|
|
58
|
-
private initializeManagers;
|
|
59
|
-
mount(): void;
|
|
60
|
-
private setupManagers;
|
|
61
|
-
private setupEventListeners;
|
|
62
|
-
private handleScroll;
|
|
63
|
-
private clearHoveredRows;
|
|
64
|
-
private updateAriaLiveRegion;
|
|
65
|
-
private getRenderContext;
|
|
66
|
-
private getRenderState;
|
|
67
|
-
private render;
|
|
68
|
-
update(config: Partial<SimpleTableConfig>): void;
|
|
69
|
-
destroy(): void;
|
|
70
|
-
getAPI(): TableAPI;
|
|
71
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { TableAPI } from "../../types/TableAPI";
|
|
2
|
-
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
3
|
-
import HeaderObject from "../../types/HeaderObject";
|
|
4
|
-
import Row from "../../types/Row";
|
|
5
|
-
import { CustomTheme } from "../../types/CustomTheme";
|
|
6
|
-
import RowState from "../../types/RowState";
|
|
7
|
-
import { SelectionManager } from "../../managers/SelectionManager";
|
|
8
|
-
import { SortManager } from "../../managers/SortManager";
|
|
9
|
-
import { FilterManager } from "../../managers/FilterManager";
|
|
10
|
-
import { FlattenRowsResult } from "../../utils/rowFlattening";
|
|
11
|
-
import { ProcessRowsResult } from "../../utils/rowProcessing";
|
|
12
|
-
export interface TableAPIContext {
|
|
13
|
-
config: SimpleTableConfig;
|
|
14
|
-
localRows: Row[];
|
|
15
|
-
effectiveHeaders: HeaderObject[];
|
|
16
|
-
headers: HeaderObject[];
|
|
17
|
-
essentialAccessors: Set<string>;
|
|
18
|
-
customTheme: CustomTheme;
|
|
19
|
-
currentPage: number;
|
|
20
|
-
/** Returns current page from live state (use this in API getCurrentPage so it stays correct after setPage). */
|
|
21
|
-
getCurrentPage: () => number;
|
|
22
|
-
expandedRows: Map<string, number>;
|
|
23
|
-
collapsedRows: Map<string, number>;
|
|
24
|
-
expandedDepths: Set<number>;
|
|
25
|
-
rowStateMap: Map<string | number, RowState>;
|
|
26
|
-
headerRegistry: Map<string, any>;
|
|
27
|
-
cellRegistry?: Map<string, {
|
|
28
|
-
updateContent: (value: any) => void;
|
|
29
|
-
}>;
|
|
30
|
-
columnEditorOpen: boolean;
|
|
31
|
-
expandedDepthsManager: any;
|
|
32
|
-
selectionManager: SelectionManager | null;
|
|
33
|
-
sortManager: SortManager | null;
|
|
34
|
-
filterManager: FilterManager | null;
|
|
35
|
-
getCachedFlattenResult?: () => FlattenRowsResult | null;
|
|
36
|
-
getCachedProcessedResult?: () => ProcessRowsResult | null;
|
|
37
|
-
onRender: () => void;
|
|
38
|
-
setHeaders: (headers: HeaderObject[]) => void;
|
|
39
|
-
setCurrentPage: (page: number) => void;
|
|
40
|
-
setColumnEditorOpen: (open: boolean) => void;
|
|
41
|
-
}
|
|
42
|
-
export declare class TableAPIImpl {
|
|
43
|
-
static createAPI(context: TableAPIContext): TableAPI;
|
|
44
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
2
|
-
export interface DOMElements {
|
|
3
|
-
rootElement: HTMLElement;
|
|
4
|
-
wrapperContainer: HTMLElement;
|
|
5
|
-
contentWrapper: HTMLElement;
|
|
6
|
-
content: HTMLElement;
|
|
7
|
-
headerContainer: HTMLElement;
|
|
8
|
-
bodyContainer: HTMLElement;
|
|
9
|
-
footerContainer: HTMLElement;
|
|
10
|
-
ariaLiveRegion: HTMLElement;
|
|
11
|
-
}
|
|
12
|
-
export interface DOMRefs {
|
|
13
|
-
mainBodyRef: {
|
|
14
|
-
current: HTMLDivElement | null;
|
|
15
|
-
};
|
|
16
|
-
pinnedLeftRef: {
|
|
17
|
-
current: HTMLDivElement | null;
|
|
18
|
-
};
|
|
19
|
-
pinnedRightRef: {
|
|
20
|
-
current: HTMLDivElement | null;
|
|
21
|
-
};
|
|
22
|
-
mainHeaderRef: {
|
|
23
|
-
current: HTMLDivElement | null;
|
|
24
|
-
};
|
|
25
|
-
pinnedLeftHeaderRef: {
|
|
26
|
-
current: HTMLDivElement | null;
|
|
27
|
-
};
|
|
28
|
-
pinnedRightHeaderRef: {
|
|
29
|
-
current: HTMLDivElement | null;
|
|
30
|
-
};
|
|
31
|
-
headerContainerRef: {
|
|
32
|
-
current: HTMLDivElement | null;
|
|
33
|
-
};
|
|
34
|
-
tableBodyContainerRef: {
|
|
35
|
-
current: HTMLDivElement | null;
|
|
36
|
-
};
|
|
37
|
-
horizontalScrollbarRef: {
|
|
38
|
-
current: HTMLElement | null;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export declare class DOMManager {
|
|
42
|
-
private elements;
|
|
43
|
-
private refs;
|
|
44
|
-
constructor();
|
|
45
|
-
createDOMStructure(container: HTMLElement, config: SimpleTableConfig): DOMElements;
|
|
46
|
-
updateTheme(theme: string): void;
|
|
47
|
-
getElements(): DOMElements | null;
|
|
48
|
-
getRefs(): DOMRefs;
|
|
49
|
-
destroy(container: HTMLElement): void;
|
|
50
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
2
|
-
import { CustomTheme } from "../../types/CustomTheme";
|
|
3
|
-
import HeaderObject, { Accessor } from "../../types/HeaderObject";
|
|
4
|
-
export interface ResolvedIcons {
|
|
5
|
-
drag: string | HTMLElement | SVGSVGElement;
|
|
6
|
-
expand: string | HTMLElement | SVGSVGElement;
|
|
7
|
-
filter: string | HTMLElement | SVGSVGElement;
|
|
8
|
-
headerCollapse: string | HTMLElement | SVGSVGElement;
|
|
9
|
-
headerExpand: string | HTMLElement | SVGSVGElement;
|
|
10
|
-
next: string | HTMLElement | SVGSVGElement;
|
|
11
|
-
prev: string | HTMLElement | SVGSVGElement;
|
|
12
|
-
sortDown: string | HTMLElement | SVGSVGElement;
|
|
13
|
-
sortUp: string | HTMLElement | SVGSVGElement;
|
|
14
|
-
}
|
|
15
|
-
export interface MergedColumnEditorConfig {
|
|
16
|
-
text: string;
|
|
17
|
-
searchEnabled: boolean;
|
|
18
|
-
searchPlaceholder: string;
|
|
19
|
-
allowColumnPinning: boolean;
|
|
20
|
-
searchFunction?: (header: HeaderObject, searchText: string) => boolean;
|
|
21
|
-
rowRenderer?: any;
|
|
22
|
-
}
|
|
23
|
-
export declare class TableInitializer {
|
|
24
|
-
static resolveIcons(config: SimpleTableConfig): ResolvedIcons;
|
|
25
|
-
static mergeCustomTheme(config: SimpleTableConfig): CustomTheme;
|
|
26
|
-
static mergeColumnEditorConfig(config: SimpleTableConfig): MergedColumnEditorConfig;
|
|
27
|
-
static buildEssentialAccessors(headers: HeaderObject[]): Set<string>;
|
|
28
|
-
static getInitialCollapsedHeaders(headers: HeaderObject[]): Set<Accessor>;
|
|
29
|
-
static getInitialExpandedDepths(config: SimpleTableConfig): Set<number>;
|
|
30
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
2
|
-
import { CustomTheme } from "../../types/CustomTheme";
|
|
3
|
-
import HeaderObject, { Accessor } from "../../types/HeaderObject";
|
|
4
|
-
import Row from "../../types/Row";
|
|
5
|
-
import RowState from "../../types/RowState";
|
|
6
|
-
import { DimensionManager } from "../../managers/DimensionManager";
|
|
7
|
-
import { ScrollManager } from "../../managers/ScrollManager";
|
|
8
|
-
import type { SectionScrollController } from "../../managers/SectionScrollController";
|
|
9
|
-
import { SortManager } from "../../managers/SortManager";
|
|
10
|
-
import { FilterManager } from "../../managers/FilterManager";
|
|
11
|
-
import { SelectionManager } from "../../managers/SelectionManager";
|
|
12
|
-
import { RowSelectionManager } from "../../managers/RowSelectionManager";
|
|
13
|
-
import { FlattenRowsResult } from "../../utils/rowFlattening";
|
|
14
|
-
import { ProcessRowsResult } from "../../utils/rowProcessing";
|
|
15
|
-
import { MergedColumnEditorConfig, ResolvedIcons } from "../initialization/TableInitializer";
|
|
16
|
-
export interface RenderContext {
|
|
17
|
-
cellRegistry: Map<string, any>;
|
|
18
|
-
collapsedHeaders: Set<Accessor>;
|
|
19
|
-
collapsedRows: Map<string, number>;
|
|
20
|
-
config: SimpleTableConfig;
|
|
21
|
-
customTheme: CustomTheme;
|
|
22
|
-
dimensionManager: DimensionManager | null;
|
|
23
|
-
draggedHeaderRef: {
|
|
24
|
-
current: HeaderObject | null;
|
|
25
|
-
};
|
|
26
|
-
effectiveHeaders: HeaderObject[];
|
|
27
|
-
essentialAccessors: Set<string>;
|
|
28
|
-
expandedDepths: Set<number>;
|
|
29
|
-
expandedRows: Map<string, number>;
|
|
30
|
-
filterManager: FilterManager | null;
|
|
31
|
-
getCollapsedRows: () => Map<string, number>;
|
|
32
|
-
getCollapsedHeaders?: () => Set<Accessor>;
|
|
33
|
-
getExpandedRows: () => Map<string, number>;
|
|
34
|
-
getRowStateMap: () => Map<string | number, RowState>;
|
|
35
|
-
headerRegistry: Map<string, any>;
|
|
36
|
-
headers: HeaderObject[];
|
|
37
|
-
hoveredHeaderRef: {
|
|
38
|
-
current: HeaderObject | null;
|
|
39
|
-
};
|
|
40
|
-
internalIsLoading: boolean;
|
|
41
|
-
isResizing: boolean;
|
|
42
|
-
localRows: Row[];
|
|
43
|
-
mainBodyRef: {
|
|
44
|
-
current: HTMLDivElement | null;
|
|
45
|
-
};
|
|
46
|
-
mainHeaderRef: {
|
|
47
|
-
current: HTMLDivElement | null;
|
|
48
|
-
};
|
|
49
|
-
onRender: () => void;
|
|
50
|
-
pinnedLeftHeaderRef: {
|
|
51
|
-
current: HTMLDivElement | null;
|
|
52
|
-
};
|
|
53
|
-
pinnedLeftRef: {
|
|
54
|
-
current: HTMLDivElement | null;
|
|
55
|
-
};
|
|
56
|
-
pinnedRightHeaderRef: {
|
|
57
|
-
current: HTMLDivElement | null;
|
|
58
|
-
};
|
|
59
|
-
pinnedRightRef: {
|
|
60
|
-
current: HTMLDivElement | null;
|
|
61
|
-
};
|
|
62
|
-
resolvedIcons: ResolvedIcons;
|
|
63
|
-
rowSelectionManager: RowSelectionManager | null;
|
|
64
|
-
rowStateMap: Map<string | number, RowState>;
|
|
65
|
-
scrollManager: ScrollManager | null;
|
|
66
|
-
sectionScrollController: SectionScrollController | null;
|
|
67
|
-
selectionManager: SelectionManager | null;
|
|
68
|
-
setCollapsedHeaders: (headers: Set<Accessor>) => void;
|
|
69
|
-
setCollapsedRows: (rows: Map<string, number>) => void;
|
|
70
|
-
setColumnEditorOpen: (open: boolean) => void;
|
|
71
|
-
setCurrentPage: (page: number) => void;
|
|
72
|
-
setExpandedRows: (rows: Map<string, number>) => void;
|
|
73
|
-
setHeaders: (headers: HeaderObject[]) => void;
|
|
74
|
-
setIsResizing: (value: boolean) => void;
|
|
75
|
-
setRowStateMap: (map: Map<string | number, any>) => void;
|
|
76
|
-
sortManager: SortManager | null;
|
|
77
|
-
/** When true, body cells that stay visible get only position updates (no content/selection recalc). Used during vertical scroll for performance. */
|
|
78
|
-
positionOnlyBody?: boolean;
|
|
79
|
-
}
|
|
80
|
-
export interface RenderState {
|
|
81
|
-
currentPage: number;
|
|
82
|
-
scrollTop: number;
|
|
83
|
-
scrollDirection: "up" | "down" | "none";
|
|
84
|
-
scrollbarWidth: number;
|
|
85
|
-
isMainSectionScrollable: boolean;
|
|
86
|
-
columnEditorOpen: boolean;
|
|
87
|
-
}
|
|
88
|
-
export declare class RenderOrchestrator {
|
|
89
|
-
private tableRenderer;
|
|
90
|
-
private lastHeadersRef;
|
|
91
|
-
private lastRowsRef;
|
|
92
|
-
private flattenedRowsCache;
|
|
93
|
-
private lastProcessedResult;
|
|
94
|
-
constructor();
|
|
95
|
-
getCachedFlattenResult(): FlattenRowsResult | null;
|
|
96
|
-
getLastProcessedResult(): ProcessRowsResult | null;
|
|
97
|
-
invalidateCache(type?: "body" | "header" | "context" | "all"): void;
|
|
98
|
-
computeEffectiveHeaders(headers: HeaderObject[], config: SimpleTableConfig, customTheme: CustomTheme, containerWidth?: number): HeaderObject[];
|
|
99
|
-
render(elements: {
|
|
100
|
-
bodyContainer: HTMLElement;
|
|
101
|
-
content: HTMLElement;
|
|
102
|
-
contentWrapper: HTMLElement;
|
|
103
|
-
footerContainer: HTMLElement;
|
|
104
|
-
headerContainer: HTMLElement;
|
|
105
|
-
rootElement: HTMLElement;
|
|
106
|
-
wrapperContainer: HTMLElement;
|
|
107
|
-
}, refs: {
|
|
108
|
-
mainBodyRef: {
|
|
109
|
-
current: HTMLDivElement | null;
|
|
110
|
-
};
|
|
111
|
-
tableBodyContainerRef: {
|
|
112
|
-
current: HTMLDivElement | null;
|
|
113
|
-
};
|
|
114
|
-
}, context: RenderContext, state: RenderState, mergedColumnEditorConfig: MergedColumnEditorConfig): void;
|
|
115
|
-
private renderHeader;
|
|
116
|
-
private renderBody;
|
|
117
|
-
private renderFooter;
|
|
118
|
-
private renderColumnEditor;
|
|
119
|
-
private renderHorizontalScrollbar;
|
|
120
|
-
private registerSectionPanes;
|
|
121
|
-
private buildRendererDeps;
|
|
122
|
-
cleanup(): void;
|
|
123
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import HeaderObject, { Accessor } from "../../types/HeaderObject";
|
|
2
|
-
import { HeaderRenderContext } from "../../utils/headerCellRenderer";
|
|
3
|
-
import { CellRenderContext } from "../../utils/bodyCellRenderer";
|
|
4
|
-
import TableRow from "../../types/TableRow";
|
|
5
|
-
export interface HeaderSectionParams {
|
|
6
|
-
headers: HeaderObject[];
|
|
7
|
-
collapsedHeaders: Set<Accessor>;
|
|
8
|
-
pinned?: "left" | "right";
|
|
9
|
-
maxHeaderDepth: number;
|
|
10
|
-
headerHeight: number;
|
|
11
|
-
context: HeaderRenderContext;
|
|
12
|
-
sectionWidth?: number;
|
|
13
|
-
startColIndex?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface BodySectionParams {
|
|
16
|
-
headers: HeaderObject[];
|
|
17
|
-
rows: TableRow[];
|
|
18
|
-
collapsedHeaders: Set<Accessor>;
|
|
19
|
-
pinned?: "left" | "right";
|
|
20
|
-
context: CellRenderContext;
|
|
21
|
-
sectionWidth?: number;
|
|
22
|
-
rowHeight: number;
|
|
23
|
-
heightOffsets?: Array<[number, number]>;
|
|
24
|
-
totalRowCount?: number;
|
|
25
|
-
startColIndex?: number;
|
|
26
|
-
/** When true, only update cell positions for existing cells (scroll performance). */
|
|
27
|
-
positionOnly?: boolean;
|
|
28
|
-
/** Full table rows ref + range for range-based body cell cache (avoids cache miss on every scroll). */
|
|
29
|
-
fullTableRows?: TableRow[];
|
|
30
|
-
renderedStartIndex?: number;
|
|
31
|
-
renderedEndIndex?: number;
|
|
32
|
-
}
|
|
33
|
-
export declare class SectionRenderer {
|
|
34
|
-
private headerSections;
|
|
35
|
-
private bodySections;
|
|
36
|
-
private bodyCellsCache;
|
|
37
|
-
private headerCellsCache;
|
|
38
|
-
private contextCache;
|
|
39
|
-
private nextColIndexMap;
|
|
40
|
-
private stateRowsMap;
|
|
41
|
-
private nestedGridRowsMap;
|
|
42
|
-
renderHeaderSection(params: HeaderSectionParams): HTMLElement;
|
|
43
|
-
renderBodySection(params: BodySectionParams): HTMLElement;
|
|
44
|
-
private renderNestedGridRows;
|
|
45
|
-
private renderStateRows;
|
|
46
|
-
private calculateAbsoluteHeaderCells;
|
|
47
|
-
private calculateAbsoluteBodyCells;
|
|
48
|
-
private getLeafHeaders;
|
|
49
|
-
private createHeadersHash;
|
|
50
|
-
private createHeightOffsetsHash;
|
|
51
|
-
private createContextHash;
|
|
52
|
-
private getCachedBodyCells;
|
|
53
|
-
private getCachedHeaderCells;
|
|
54
|
-
private getCachedContext;
|
|
55
|
-
invalidateCache(type?: "body" | "header" | "context" | "all"): void;
|
|
56
|
-
/**
|
|
57
|
-
* Get the next colIndex after rendering a section
|
|
58
|
-
*/
|
|
59
|
-
getNextColIndex(sectionKey: string): number;
|
|
60
|
-
cleanup(): void;
|
|
61
|
-
}
|