@simple-table/react 3.0.0-beta.12 → 3.0.0-beta.15
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/styles.css +1 -0
- package/dist/{cjs → types}/core/src/utils/headerWidthUtils.d.ts +2 -2
- package/package.json +10 -6
- 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 -27
- 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 -25
- /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/SimpleTable.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/dist/{cjs → types}/react/src/utils/wrapReactRenderer.d.ts +0 -0
|
@@ -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
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import HeaderObject, { Accessor } from "../../types/HeaderObject";
|
|
2
|
-
import { SimpleTableConfig } from "../../types/SimpleTableConfig";
|
|
3
|
-
import { CustomTheme } from "../../types/CustomTheme";
|
|
4
|
-
import { DimensionManager } from "../../managers/DimensionManager";
|
|
5
|
-
import type { SectionScrollController } from "../../managers/SectionScrollController";
|
|
6
|
-
import { SortManager } from "../../managers/SortManager";
|
|
7
|
-
import { FilterManager } from "../../managers/FilterManager";
|
|
8
|
-
import { SelectionManager } from "../../managers/SelectionManager";
|
|
9
|
-
import { RowSelectionManager } from "../../managers/RowSelectionManager";
|
|
10
|
-
export interface TableRendererDeps {
|
|
11
|
-
cellRegistry: Map<string, any>;
|
|
12
|
-
collapsedHeaders: Set<Accessor>;
|
|
13
|
-
collapsedRows: Map<string, number>;
|
|
14
|
-
config: SimpleTableConfig;
|
|
15
|
-
customTheme: CustomTheme;
|
|
16
|
-
dimensionManager: DimensionManager | null;
|
|
17
|
-
draggedHeaderRef: {
|
|
18
|
-
current: HeaderObject | null;
|
|
19
|
-
};
|
|
20
|
-
effectiveHeaders: HeaderObject[];
|
|
21
|
-
essentialAccessors: Set<string>;
|
|
22
|
-
expandedDepths: Set<number>;
|
|
23
|
-
expandedRows: Map<string, number>;
|
|
24
|
-
filterManager: FilterManager | null;
|
|
25
|
-
getCollapsedHeaders?: () => Set<Accessor>;
|
|
26
|
-
getCollapsedRows: () => Map<string, number>;
|
|
27
|
-
getExpandedRows: () => Map<string, number>;
|
|
28
|
-
getRowStateMap: () => Map<string | number, any>;
|
|
29
|
-
headerRegistry: Map<string, any>;
|
|
30
|
-
headers: HeaderObject[];
|
|
31
|
-
hoveredHeaderRef: {
|
|
32
|
-
current: HeaderObject | null;
|
|
33
|
-
};
|
|
34
|
-
internalIsLoading: boolean;
|
|
35
|
-
isResizing: boolean;
|
|
36
|
-
localRows: any[];
|
|
37
|
-
mainBodyRef: {
|
|
38
|
-
current: HTMLDivElement | null;
|
|
39
|
-
};
|
|
40
|
-
mainHeaderRef: {
|
|
41
|
-
current: HTMLDivElement | null;
|
|
42
|
-
};
|
|
43
|
-
onRender: () => void;
|
|
44
|
-
pinnedLeftHeaderRef: {
|
|
45
|
-
current: HTMLDivElement | null;
|
|
46
|
-
};
|
|
47
|
-
pinnedLeftRef: {
|
|
48
|
-
current: HTMLDivElement | null;
|
|
49
|
-
};
|
|
50
|
-
pinnedRightHeaderRef: {
|
|
51
|
-
current: HTMLDivElement | null;
|
|
52
|
-
};
|
|
53
|
-
pinnedRightRef: {
|
|
54
|
-
current: HTMLDivElement | null;
|
|
55
|
-
};
|
|
56
|
-
positionOnlyBody?: boolean; /** When true, body sections use position-only updates for existing cells (scroll performance). */
|
|
57
|
-
resolvedIcons: any;
|
|
58
|
-
rowSelectionManager: RowSelectionManager | null;
|
|
59
|
-
rowStateMap: Map<string | number, any>;
|
|
60
|
-
sectionScrollController: SectionScrollController | null;
|
|
61
|
-
selectionManager: SelectionManager | null;
|
|
62
|
-
setCollapsedHeaders: (headers: Set<Accessor>) => void;
|
|
63
|
-
setCollapsedRows: (rows: Map<string, number>) => void;
|
|
64
|
-
setExpandedRows: (rows: Map<string, number>) => void;
|
|
65
|
-
setHeaders: (headers: HeaderObject[]) => void;
|
|
66
|
-
setIsResizing: (value: boolean) => void;
|
|
67
|
-
setRowStateMap: (map: Map<string | number, any>) => void;
|
|
68
|
-
sortManager: SortManager | null;
|
|
69
|
-
}
|
|
70
|
-
export declare class TableRenderer {
|
|
71
|
-
private sectionRenderer;
|
|
72
|
-
private footerInstance;
|
|
73
|
-
private columnEditorInstance;
|
|
74
|
-
private horizontalScrollbarRef;
|
|
75
|
-
private scrollbarTimeoutId;
|
|
76
|
-
private stickyParentsContainer;
|
|
77
|
-
private sectionScrollController;
|
|
78
|
-
private renderScheduled;
|
|
79
|
-
private pendingRenderCallback;
|
|
80
|
-
constructor();
|
|
81
|
-
private scheduleRender;
|
|
82
|
-
invalidateCache(type?: "body" | "header" | "context" | "all"): void;
|
|
83
|
-
renderHeader(container: HTMLElement, calculatedHeaderHeight: number, maxHeaderDepth: number, deps: TableRendererDeps): void;
|
|
84
|
-
renderBody(container: HTMLElement, processedResult: any, deps: TableRendererDeps): void;
|
|
85
|
-
renderFooter(container: HTMLElement, totalRows: number, currentPage: number, onPageChange: (page: number) => void, deps: TableRendererDeps): void;
|
|
86
|
-
renderColumnEditor(contentWrapper: HTMLElement, columnEditorOpen: boolean, setColumnEditorOpen: (open: boolean) => void, mergedColumnEditorConfig: any, deps: TableRendererDeps): void;
|
|
87
|
-
renderHorizontalScrollbar(wrapperContainer: HTMLElement, mainBodyWidth: number, pinnedLeftWidth: number, pinnedRightWidth: number, pinnedLeftContentWidth: number, pinnedRightContentWidth: number, tableBodyContainerRef: HTMLDivElement, deps: TableRendererDeps): void;
|
|
88
|
-
cleanup(): void;
|
|
89
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manages aria-live announcements for screen readers.
|
|
3
|
-
* This is a vanilla JS alternative to the useAriaAnnouncements hook.
|
|
4
|
-
*
|
|
5
|
-
* Provides a way to announce dynamic content changes to assistive technologies.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AriaAnnouncementManager {
|
|
8
|
-
private announcement;
|
|
9
|
-
private timeoutId;
|
|
10
|
-
private observers;
|
|
11
|
-
/**
|
|
12
|
-
* Announces a message to screen readers
|
|
13
|
-
* The message will be cleared after 1 second to allow for new announcements
|
|
14
|
-
* @param message - The message to announce
|
|
15
|
-
*/
|
|
16
|
-
announce(message: string): void;
|
|
17
|
-
/**
|
|
18
|
-
* Gets the current announcement message
|
|
19
|
-
* @returns The current announcement string
|
|
20
|
-
*/
|
|
21
|
-
getAnnouncement(): string;
|
|
22
|
-
/**
|
|
23
|
-
* Subscribes to announcement changes
|
|
24
|
-
* @param callback - Function to call when announcement changes
|
|
25
|
-
* @returns Unsubscribe function
|
|
26
|
-
*/
|
|
27
|
-
subscribe(callback: (message: string) => void): () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Notifies all observers of announcement changes
|
|
30
|
-
*/
|
|
31
|
-
private notifyObservers;
|
|
32
|
-
/**
|
|
33
|
-
* Cleans up the manager and clears any pending timeouts
|
|
34
|
-
*/
|
|
35
|
-
destroy(): void;
|
|
36
|
-
}
|
|
37
|
-
export default AriaAnnouncementManager;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface ContentHeightConfig {
|
|
2
|
-
height?: string | number;
|
|
3
|
-
maxHeight?: string | number;
|
|
4
|
-
rowHeight: number;
|
|
5
|
-
shouldPaginate?: boolean;
|
|
6
|
-
rowsPerPage?: number;
|
|
7
|
-
totalRowCount: number;
|
|
8
|
-
headerHeight?: number;
|
|
9
|
-
footerHeight?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Converts a height value (string or number) to pixels
|
|
13
|
-
*/
|
|
14
|
-
export declare const convertHeightToPixels: (heightValue: string | number) => number;
|
|
15
|
-
/**
|
|
16
|
-
* Calculates the content height for the table.
|
|
17
|
-
* This is a pure function alternative to the useContentHeight hook.
|
|
18
|
-
*
|
|
19
|
-
* @param config - Configuration for content height calculation
|
|
20
|
-
* @returns The calculated content height in pixels, or undefined to disable virtualization
|
|
21
|
-
*/
|
|
22
|
-
export declare const calculateContentHeight: ({ height, maxHeight, rowHeight, shouldPaginate, rowsPerPage, totalRowCount, headerHeight, footerHeight, }: ContentHeightConfig) => number | undefined;
|
|
23
|
-
export default calculateContentHeight;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Accessor } from "../types/HeaderObject";
|
|
2
|
-
/**
|
|
3
|
-
* Initialize expandedDepths based on expandAll prop and rowGrouping
|
|
4
|
-
*/
|
|
5
|
-
export declare const initializeExpandedDepths: (expandAll: boolean, rowGrouping?: Accessor[]) => Set<number>;
|
|
6
|
-
/**
|
|
7
|
-
* Manages expanded depths state for row grouping.
|
|
8
|
-
* This is a vanilla JS alternative to the useExpandedDepths hook.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ExpandedDepthsManager {
|
|
11
|
-
private expandedDepths;
|
|
12
|
-
private observers;
|
|
13
|
-
constructor(expandAll: boolean, rowGrouping?: Accessor[]);
|
|
14
|
-
/**
|
|
15
|
-
* Updates the expanded depths when rowGrouping changes
|
|
16
|
-
* Filters out depths that are now out of range
|
|
17
|
-
* @param rowGrouping - The current row grouping configuration
|
|
18
|
-
*/
|
|
19
|
-
updateRowGrouping(rowGrouping?: Accessor[]): void;
|
|
20
|
-
/**
|
|
21
|
-
* Gets the current expanded depths
|
|
22
|
-
* @returns Set of expanded depth numbers
|
|
23
|
-
*/
|
|
24
|
-
getExpandedDepths(): Set<number>;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the expanded depths
|
|
27
|
-
* @param depths - New set of expanded depths
|
|
28
|
-
*/
|
|
29
|
-
setExpandedDepths(depths: Set<number>): void;
|
|
30
|
-
/**
|
|
31
|
-
* Subscribes to expanded depths changes
|
|
32
|
-
* @param callback - Function to call when depths change
|
|
33
|
-
* @returns Unsubscribe function
|
|
34
|
-
*/
|
|
35
|
-
subscribe(callback: (depths: Set<number>) => void): () => void;
|
|
36
|
-
/**
|
|
37
|
-
* Notifies all observers of depth changes
|
|
38
|
-
*/
|
|
39
|
-
private notifyObservers;
|
|
40
|
-
/**
|
|
41
|
-
* Expands all depths
|
|
42
|
-
*/
|
|
43
|
-
expandAll(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Collapses all depths
|
|
46
|
-
*/
|
|
47
|
-
collapseAll(): void;
|
|
48
|
-
/**
|
|
49
|
-
* Expands a specific depth
|
|
50
|
-
*/
|
|
51
|
-
expandDepth(depth: number): void;
|
|
52
|
-
/**
|
|
53
|
-
* Collapses a specific depth
|
|
54
|
-
*/
|
|
55
|
-
collapseDepth(depth: number): void;
|
|
56
|
-
/**
|
|
57
|
-
* Toggles a specific depth
|
|
58
|
-
*/
|
|
59
|
-
toggleDepth(depth: number): void;
|
|
60
|
-
/**
|
|
61
|
-
* Cleans up the manager
|
|
62
|
-
*/
|
|
63
|
-
destroy(): void;
|
|
64
|
-
}
|
|
65
|
-
export default ExpandedDepthsManager;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import HeaderObject from "../types/HeaderObject";
|
|
2
|
-
import Cell from "../types/Cell";
|
|
3
|
-
export interface HandleOutsideClickConfig {
|
|
4
|
-
selectableColumns: boolean;
|
|
5
|
-
selectedCells: Set<string>;
|
|
6
|
-
selectedColumns: Set<number>;
|
|
7
|
-
setSelectedCells: (cells: Set<string>) => void;
|
|
8
|
-
setSelectedColumns: (columns: Set<number>) => void;
|
|
9
|
-
activeHeaderDropdown?: HeaderObject | null;
|
|
10
|
-
setActiveHeaderDropdown?: (header: HeaderObject | null) => void;
|
|
11
|
-
startCell?: {
|
|
12
|
-
current: Cell | null;
|
|
13
|
-
};
|
|
14
|
-
/** When provided, used to read current selection (avoids stale refs). */
|
|
15
|
-
getSelectedCells?: () => Set<string>;
|
|
16
|
-
getSelectedColumns?: () => Set<number>;
|
|
17
|
-
/** When provided, called to clear both cell/column selection and startCell in one go. */
|
|
18
|
-
onClearSelection?: () => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Manages outside click detection for cells, columns, and header dropdowns.
|
|
22
|
-
* This is a vanilla JS alternative to the useHandleOutsideClick hook.
|
|
23
|
-
*/
|
|
24
|
-
export declare class HandleOutsideClickManager {
|
|
25
|
-
private config;
|
|
26
|
-
private isListening;
|
|
27
|
-
constructor(config: HandleOutsideClickConfig);
|
|
28
|
-
/**
|
|
29
|
-
* Updates the configuration
|
|
30
|
-
* @param config - New configuration
|
|
31
|
-
*/
|
|
32
|
-
updateConfig(config: Partial<HandleOutsideClickConfig>): void;
|
|
33
|
-
/**
|
|
34
|
-
* Handles the mousedown event
|
|
35
|
-
*/
|
|
36
|
-
private handleClickOutside;
|
|
37
|
-
/**
|
|
38
|
-
* Starts listening to mousedown events
|
|
39
|
-
*/
|
|
40
|
-
startListening(): void;
|
|
41
|
-
/**
|
|
42
|
-
* Stops listening to mousedown events
|
|
43
|
-
*/
|
|
44
|
-
stopListening(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Cleans up the manager and removes all event listeners
|
|
47
|
-
*/
|
|
48
|
-
destroy(): void;
|
|
49
|
-
}
|
|
50
|
-
export default HandleOutsideClickManager;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A class to track previous values of a variable.
|
|
3
|
-
* This replaces the usePrevious hook for non-React code.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* const tracker = new PreviousValueTracker(initialValue);
|
|
7
|
-
* const previous = tracker.get();
|
|
8
|
-
* tracker.update(newValue);
|
|
9
|
-
*/
|
|
10
|
-
export declare class PreviousValueTracker<T> {
|
|
11
|
-
private previousValue;
|
|
12
|
-
constructor(initialValue: T);
|
|
13
|
-
/**
|
|
14
|
-
* Updates the tracked value and returns the previous value
|
|
15
|
-
* @param newValue - The new value to track
|
|
16
|
-
* @returns The previous value before update
|
|
17
|
-
*/
|
|
18
|
-
update(newValue: T): T;
|
|
19
|
-
/**
|
|
20
|
-
* Gets the current previous value without updating
|
|
21
|
-
* @returns The currently stored previous value
|
|
22
|
-
*/
|
|
23
|
-
get(): T;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the previous value directly (useful for initialization)
|
|
26
|
-
* @param value - The value to set
|
|
27
|
-
*/
|
|
28
|
-
set(value: T): void;
|
|
29
|
-
}
|
|
30
|
-
export default PreviousValueTracker;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manages scrollbar visibility detection and header padding adjustments.
|
|
3
|
-
* This is a vanilla JS alternative to the useScrollbarVisibility hook.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ScrollbarVisibilityManager {
|
|
6
|
-
private isMainSectionScrollable;
|
|
7
|
-
private headerContainer;
|
|
8
|
-
private mainSection;
|
|
9
|
-
private scrollbarWidth;
|
|
10
|
-
private resizeObserver;
|
|
11
|
-
private observers;
|
|
12
|
-
private rafId;
|
|
13
|
-
constructor(config: {
|
|
14
|
-
headerContainer?: HTMLElement | null;
|
|
15
|
-
mainSection?: HTMLElement | null;
|
|
16
|
-
scrollbarWidth: number;
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* Initializes the scrollbar visibility detection
|
|
20
|
-
*/
|
|
21
|
-
private initialize;
|
|
22
|
-
/**
|
|
23
|
-
* Checks if the main section is scrollable
|
|
24
|
-
*/
|
|
25
|
-
private checkScrollability;
|
|
26
|
-
/**
|
|
27
|
-
* Updates the header padding based on scrollbar visibility
|
|
28
|
-
*/
|
|
29
|
-
private updateHeaderPadding;
|
|
30
|
-
/**
|
|
31
|
-
* Updates the scrollbar width and refreshes padding
|
|
32
|
-
* @param width - New scrollbar width in pixels
|
|
33
|
-
*/
|
|
34
|
-
setScrollbarWidth(width: number): void;
|
|
35
|
-
/**
|
|
36
|
-
* Updates the header container element
|
|
37
|
-
* @param container - New header container element
|
|
38
|
-
*/
|
|
39
|
-
setHeaderContainer(container: HTMLElement | null): void;
|
|
40
|
-
/**
|
|
41
|
-
* Updates the main section element
|
|
42
|
-
* @param section - New main section element
|
|
43
|
-
*/
|
|
44
|
-
setMainSection(section: HTMLElement | null): void;
|
|
45
|
-
/**
|
|
46
|
-
* Gets whether the main section is currently scrollable
|
|
47
|
-
* @returns True if the main section has vertical scroll
|
|
48
|
-
*/
|
|
49
|
-
getIsMainSectionScrollable(): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Subscribes to scrollability changes
|
|
52
|
-
* @param callback - Function to call when scrollability changes
|
|
53
|
-
* @returns Unsubscribe function
|
|
54
|
-
*/
|
|
55
|
-
subscribe(callback: (isScrollable: boolean) => void): () => void;
|
|
56
|
-
/**
|
|
57
|
-
* Notifies all observers of scrollability changes
|
|
58
|
-
*/
|
|
59
|
-
private notifyObservers;
|
|
60
|
-
/**
|
|
61
|
-
* Cleans up the manager and removes all observers
|
|
62
|
-
*/
|
|
63
|
-
destroy(): void;
|
|
64
|
-
}
|
|
65
|
-
export default ScrollbarVisibilityManager;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the scrollbar width of an element.
|
|
3
|
-
* This is a pure function that replaces the useScrollbarWidth hook.
|
|
4
|
-
*
|
|
5
|
-
* @param element - The HTML element to measure
|
|
6
|
-
* @returns The width of the scrollbar in pixels, or 0 if element is null
|
|
7
|
-
*/
|
|
8
|
-
export declare function calculateScrollbarWidth(element: HTMLElement | null): number;
|
|
9
|
-
/**
|
|
10
|
-
* A class to manage scrollbar width state and updates.
|
|
11
|
-
* This provides a stateful alternative to the useScrollbarWidth hook.
|
|
12
|
-
*/
|
|
13
|
-
export declare class ScrollbarWidthManager {
|
|
14
|
-
private width;
|
|
15
|
-
private element;
|
|
16
|
-
private observers;
|
|
17
|
-
constructor(element?: HTMLElement | null);
|
|
18
|
-
/**
|
|
19
|
-
* Sets the element to measure and calculates its scrollbar width
|
|
20
|
-
* @param element - The HTML element to measure
|
|
21
|
-
*/
|
|
22
|
-
setElement(element: HTMLElement | null): void;
|
|
23
|
-
/**
|
|
24
|
-
* Updates the scrollbar width measurement
|
|
25
|
-
*/
|
|
26
|
-
update(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Gets the current scrollbar width
|
|
29
|
-
* @returns The current scrollbar width in pixels
|
|
30
|
-
*/
|
|
31
|
-
getWidth(): number;
|
|
32
|
-
/**
|
|
33
|
-
* Manually sets the scrollbar width
|
|
34
|
-
* @param width - The width to set
|
|
35
|
-
*/
|
|
36
|
-
setWidth(width: number): void;
|
|
37
|
-
/**
|
|
38
|
-
* Subscribes to scrollbar width changes
|
|
39
|
-
* @param callback - Function to call when width changes
|
|
40
|
-
* @returns Unsubscribe function
|
|
41
|
-
*/
|
|
42
|
-
subscribe(callback: (width: number) => void): () => void;
|
|
43
|
-
/**
|
|
44
|
-
* Notifies all observers of width changes
|
|
45
|
-
*/
|
|
46
|
-
private notifyObservers;
|
|
47
|
-
/**
|
|
48
|
-
* Cleans up the manager
|
|
49
|
-
*/
|
|
50
|
-
destroy(): void;
|
|
51
|
-
}
|
|
52
|
-
export default calculateScrollbarWidth;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import HeaderObject from "../types/HeaderObject";
|
|
2
|
-
import Row from "../types/Row";
|
|
3
|
-
import { RowManager } from "../managers/RowManager";
|
|
4
|
-
interface CalculateAggregatedRowsProps {
|
|
5
|
-
rows?: Row[];
|
|
6
|
-
headers?: HeaderObject[];
|
|
7
|
-
rowGrouping?: string[];
|
|
8
|
-
rowManager?: RowManager;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Pure function to calculate aggregated rows based on row grouping and aggregation configuration
|
|
12
|
-
*/
|
|
13
|
-
export declare const calculateAggregatedRows: (props: CalculateAggregatedRowsProps) => Row[];
|
|
14
|
-
export default calculateAggregatedRows;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { QuickFilterConfig } from "../types/QuickFilterTypes";
|
|
2
|
-
import Row from "../types/Row";
|
|
3
|
-
import HeaderObject from "../types/HeaderObject";
|
|
4
|
-
interface FilterRowsWithQuickFilterProps {
|
|
5
|
-
rows: Row[];
|
|
6
|
-
headers: HeaderObject[];
|
|
7
|
-
quickFilter?: QuickFilterConfig;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Pure function to filter rows based on quick filter configuration
|
|
11
|
-
* Supports both simple (contains) and smart (multi-word, phrases, negation, column-specific) modes
|
|
12
|
-
*/
|
|
13
|
-
export declare const filterRowsWithQuickFilter: ({ rows, headers, quickFilter }: FilterRowsWithQuickFilterProps) => Row[];
|
|
14
|
-
export default filterRowsWithQuickFilter;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manages window resize event listeners.
|
|
3
|
-
* This is a vanilla JS alternative to the useWindowResize hook.
|
|
4
|
-
*/
|
|
5
|
-
export declare class WindowResizeManager {
|
|
6
|
-
private callbacks;
|
|
7
|
-
private isListening;
|
|
8
|
-
/**
|
|
9
|
-
* Handles the window resize event
|
|
10
|
-
*/
|
|
11
|
-
private handleResize;
|
|
12
|
-
/**
|
|
13
|
-
* Adds a callback to be called on window resize
|
|
14
|
-
* @param callback - Function to call when window resizes
|
|
15
|
-
* @returns Unsubscribe function
|
|
16
|
-
*/
|
|
17
|
-
addCallback(callback: () => void): () => void;
|
|
18
|
-
/**
|
|
19
|
-
* Starts listening to window resize events
|
|
20
|
-
*/
|
|
21
|
-
startListening(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Stops listening to window resize events
|
|
24
|
-
*/
|
|
25
|
-
stopListening(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Cleans up the manager and removes all event listeners
|
|
28
|
-
*/
|
|
29
|
-
destroy(): void;
|
|
30
|
-
}
|
|
31
|
-
export default WindowResizeManager;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createAngleDownIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createAngleLeftIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createAngleRightIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createAngleUpIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createAscIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createCheckIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createDescIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createDragIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createFilterIcon: (className?: string) => SVGSVGElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createSelectIcon: () => SVGSVGElement;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal icon factory functions
|
|
3
|
-
* These create vanilla JS SVG elements for use within the table component
|
|
4
|
-
*/
|
|
5
|
-
export { createAngleDownIcon } from "./AngleDownIcon";
|
|
6
|
-
export { createAngleLeftIcon } from "./AngleLeftIcon";
|
|
7
|
-
export { createAngleRightIcon } from "./AngleRightIcon";
|
|
8
|
-
export { createAngleUpIcon } from "./AngleUpIcon";
|
|
9
|
-
export { createAscIcon } from "./AscIcon";
|
|
10
|
-
export { createCheckIcon } from "./CheckIcon";
|
|
11
|
-
export { createDescIcon } from "./DescIcon";
|
|
12
|
-
export { createDragIcon } from "./DragIcon";
|
|
13
|
-
export { createFilterIcon } from "./FilterIcon";
|
|
14
|
-
export { createSelectIcon } from "./SelectIcon";
|
package/dist/core/src/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { SimpleTableVanilla } from "./core/SimpleTableVanilla";
|
|
2
|
-
import type BoundingBox from "./types/BoundingBox";
|
|
3
|
-
import type Cell from "./types/Cell";
|
|
4
|
-
import type CellChangeProps from "./types/CellChangeProps";
|
|
5
|
-
import type CellValue from "./types/CellValue";
|
|
6
|
-
import type DragHandlerProps from "./types/DragHandlerProps";
|
|
7
|
-
import type EnumOption from "./types/EnumOption";
|
|
8
|
-
import type HeaderObject from "./types/HeaderObject";
|
|
9
|
-
import type { Accessor, ChartOptions, ColumnType, Comparator, ComparatorProps, ExportValueGetter, ExportValueProps, ShowWhen, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps } from "./types/HeaderObject";
|
|
10
|
-
import type { AggregationConfig, AggregationType } from "./types/AggregationTypes";
|
|
11
|
-
import type OnSortProps from "./types/OnSortProps";
|
|
12
|
-
import type OnRowGroupExpandProps from "./types/OnRowGroupExpandProps";
|
|
13
|
-
import type Row from "./types/Row";
|
|
14
|
-
import type RowState from "./types/RowState";
|
|
15
|
-
import type SharedTableProps from "./types/SharedTableProps";
|
|
16
|
-
import type SortColumn from "./types/SortColumn";
|
|
17
|
-
import type TableHeaderProps from "./types/TableHeaderProps";
|
|
18
|
-
import type { TableAPI, SetHeaderRenameProps, ExportToCSVProps } from "./types/TableAPI";
|
|
19
|
-
import type TableRefType from "./types/TableRefType";
|
|
20
|
-
import type TableRowProps from "./types/TableRowProps";
|
|
21
|
-
import type Theme from "./types/Theme";
|
|
22
|
-
import type UpdateDataProps from "./types/UpdateCellProps";
|
|
23
|
-
import type { FilterCondition, TableFilterState } from "./types/FilterTypes";
|
|
24
|
-
import type { QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode } from "./types/QuickFilterTypes";
|
|
25
|
-
import type { ColumnVisibilityState } from "./types/ColumnVisibilityTypes";
|
|
26
|
-
import type RowSelectionChangeProps from "./types/RowSelectionChangeProps";
|
|
27
|
-
import type CellClickProps from "./types/CellClickProps";
|
|
28
|
-
import type CellRendererProps from "./types/CellRendererProps";
|
|
29
|
-
import type { CellRenderer } from "./types/CellRendererProps";
|
|
30
|
-
import type HeaderRendererProps from "./types/HeaderRendererProps";
|
|
31
|
-
import type { HeaderRenderer, HeaderRendererComponents } from "./types/HeaderRendererProps";
|
|
32
|
-
import type ColumnEditorRowRendererProps from "./types/ColumnEditorRowRendererProps";
|
|
33
|
-
import type { ColumnEditorRowRenderer, ColumnEditorRowRendererComponents } from "./types/ColumnEditorRowRendererProps";
|
|
34
|
-
import type HeaderDropdownProps from "./types/HeaderDropdownProps";
|
|
35
|
-
import type { HeaderDropdown } from "./types/HeaderDropdownProps";
|
|
36
|
-
import type { RowButtonProps } from "./types/RowButton";
|
|
37
|
-
import type FooterRendererProps from "./types/FooterRendererProps";
|
|
38
|
-
import type { LoadingStateRenderer, ErrorStateRenderer, EmptyStateRenderer, LoadingStateRendererProps, ErrorStateRendererProps, EmptyStateRendererProps } from "./types/RowStateRendererProps";
|
|
39
|
-
import type { CustomTheme, CustomThemeProps } from "./types/CustomTheme";
|
|
40
|
-
import type { ColumnEditorConfig, ColumnEditorSearchFunction } from "./types/ColumnEditorConfig";
|
|
41
|
-
import type { IconsConfig } from "./types/IconsConfig";
|
|
42
|
-
import type { GetRowId, GetRowIdParams } from "./types/GetRowId";
|
|
43
|
-
import type { SimpleTableConfig } from "./types/SimpleTableConfig";
|
|
44
|
-
import type { SimpleTableProps } from "./types/SimpleTableProps";
|
|
45
|
-
import type { RowId } from "./types/RowId";
|
|
46
|
-
import type { PinnedSectionsState } from "./types/PinnedSectionsState";
|
|
47
|
-
export { SimpleTableVanilla };
|
|
48
|
-
export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorRowRenderer, ColumnEditorRowRendererComponents, ColumnEditorRowRendererProps, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, CustomThemeProps, DragHandlerProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FooterRendererProps, GetRowId, GetRowIdParams, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, HeaderRendererComponents, OnRowGroupExpandProps, OnSortProps, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowId, RowSelectionChangeProps, RowState, SetHeaderRenameProps, SharedTableProps, ShowWhen, SimpleTableConfig, SimpleTableProps, SortColumn, TableAPI, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, PinnedSectionsState, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, };
|