@simple-table/solid 3.0.0-beta.9 → 3.0.0
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/styles.css +1 -0
- package/dist/{cjs → types}/core/src/core/SimpleTableVanilla.d.ts +2 -0
- package/dist/{core → types/core}/src/core/initialization/TableInitializer.d.ts +4 -1
- package/dist/{cjs → types}/core/src/core/rendering/RenderOrchestrator.d.ts +1 -0
- package/dist/{cjs → types}/core/src/core/rendering/TableRenderer.d.ts +1 -0
- package/dist/{core → types/core}/src/index.d.ts +3 -2
- package/dist/{core → types/core}/src/managers/DimensionManager.d.ts +3 -0
- package/dist/{core → types/core}/src/managers/SelectionManager/SelectionManager.d.ts +7 -0
- package/dist/{cjs → types}/core/src/managers/SelectionManager/mouseUtils.d.ts +2 -1
- package/dist/{core → types/core}/src/managers/SelectionManager/types.d.ts +6 -0
- package/dist/{cjs → types}/core/src/types/ColumnEditorConfig.d.ts +5 -2
- package/dist/types/core/src/types/ColumnEditorCustomRendererProps.d.ts +14 -0
- package/dist/{core → types/core}/src/types/CustomTheme.d.ts +2 -0
- package/dist/{cjs → types}/core/src/types/HeaderObject.d.ts +1 -1
- package/dist/{cjs → types}/core/src/types/SimpleTableConfig.d.ts +0 -2
- package/dist/{cjs → types}/core/src/types/SimpleTableProps.d.ts +0 -13
- package/dist/types/core/src/utils/asRows.d.ts +7 -0
- package/dist/types/core/src/utils/bodyCell/expansion.d.ts +12 -0
- package/dist/{cjs → types}/core/src/utils/columnEditor/createColumnEditor.d.ts +0 -1
- package/dist/{cjs → types}/core/src/utils/columnEditor/createColumnEditorPopout.d.ts +0 -1
- package/dist/{cjs → types}/core/src/utils/columnEditor/createColumnEditorRow.d.ts +8 -1
- package/dist/types/core/src/utils/filters/createDropdown.d.ts +33 -0
- package/dist/{cjs → types}/core/src/utils/filters/createFilterActions.d.ts +1 -0
- package/dist/{core → types/core}/src/utils/headerCell/collapsing.d.ts +1 -1
- package/dist/{core → types/core}/src/utils/headerCell/eventTracking.d.ts +3 -0
- package/dist/{core → types/core}/src/utils/headerCell/resizing.d.ts +1 -1
- package/dist/{cjs → types}/core/src/utils/headerCell/styling.d.ts +3 -3
- package/dist/{cjs → types}/core/src/utils/headerCell/types.d.ts +2 -0
- package/dist/{core → types/core}/src/utils/headerWidthUtils.d.ts +4 -2
- package/dist/{cjs → types}/core/src/utils/pinnedColumnUtils.d.ts +5 -1
- package/dist/types/core/src/utils/resizeUtils/index.d.ts +22 -0
- package/dist/{core → types/core}/src/utils/rowSeparatorRenderer.d.ts +4 -0
- package/dist/types/solid/src/defaultHeadersFromCore.d.ts +5 -0
- package/dist/types/solid/src/index.d.ts +5 -0
- package/dist/{cjs → types}/solid/src/types.d.ts +14 -5
- package/package.json +10 -7
- package/dist/cjs/core/src/core/initialization/TableInitializer.d.ts +0 -30
- package/dist/cjs/core/src/index.d.ts +0 -48
- package/dist/cjs/core/src/managers/DimensionManager.d.ts +0 -42
- package/dist/cjs/core/src/managers/SelectionManager/SelectionManager.d.ts +0 -246
- package/dist/cjs/core/src/managers/SelectionManager/types.d.ts +0 -22
- package/dist/cjs/core/src/types/CustomTheme.d.ts +0 -26
- package/dist/cjs/core/src/types/TableRefType.d.ts +0 -78
- package/dist/cjs/core/src/utils/bodyCell/expansion.d.ts +0 -4
- package/dist/cjs/core/src/utils/deprecatedPropsWarnings.d.ts +0 -10
- package/dist/cjs/core/src/utils/filters/createDropdown.d.ts +0 -16
- package/dist/cjs/core/src/utils/headerCell/collapsing.d.ts +0 -6
- package/dist/cjs/core/src/utils/headerCell/eventTracking.d.ts +0 -25
- package/dist/cjs/core/src/utils/headerCell/resizing.d.ts +0 -3
- package/dist/cjs/core/src/utils/headerWidthUtils.d.ts +0 -56
- package/dist/cjs/core/src/utils/resizeUtils/index.d.ts +0 -5
- package/dist/cjs/core/src/utils/rowSeparatorRenderer.d.ts +0 -12
- package/dist/cjs/solid/src/index.d.ts +0 -3
- 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/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/managers/AutoScaleManager.d.ts +0 -26
- 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/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/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/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/dragging.d.ts +0 -5
- package/dist/core/src/utils/headerCell/editing.d.ts +0 -4
- package/dist/core/src/utils/headerCell/filtering.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/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/rowUtils.d.ts +0 -136
- package/dist/core/src/utils/sortUtils.d.ts +0 -8
- package/dist/core/src/utils/stateRowRenderer.d.ts +0 -15
- package/dist/core/src/utils/stickyParentsRenderer.d.ts +0 -30
- package/dist/solid/src/SimpleTable.d.ts +0 -19
- package/dist/solid/src/buildVanillaConfig.d.ts +0 -3
- package/dist/solid/src/index.d.ts +0 -3
- package/dist/solid/src/types.d.ts +0 -53
- package/dist/solid/src/utils/wrapSolidRenderer.d.ts +0 -20
- /package/dist/{cjs → types}/core/src/consts/column-constraints.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/consts/general-consts.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/core/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/rendering/SectionRenderer.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/managers/AutoScaleManager.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/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/selectionRangeUtils.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/ColumnEditorRowRendererProps.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/types/ColumnVisibilityTypes.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/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/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/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/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/csvExportUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/dateUtils.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/createEnumFilter.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/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/filtering.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/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/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/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/rowUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/sortUtils.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/stateRowRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/core/src/utils/stickyParentsRenderer.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/SimpleTable.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/buildVanillaConfig.d.ts +0 -0
- /package/dist/{cjs → types}/solid/src/utils/wrapSolidRenderer.d.ts +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom theme configuration for SimpleTable
|
|
3
|
-
* Contains all customizable dimensions and spacing values used in calculations and styling
|
|
4
|
-
* All properties are optional - missing values will be filled with defaults
|
|
5
|
-
*/
|
|
6
|
-
export interface CustomThemeProps {
|
|
7
|
-
rowHeight?: number;
|
|
8
|
-
headerHeight?: number;
|
|
9
|
-
footerHeight?: number;
|
|
10
|
-
rowSeparatorWidth?: number;
|
|
11
|
-
borderWidth?: number;
|
|
12
|
-
pinnedBorderWidth?: number;
|
|
13
|
-
nestedGridBorderWidth?: number;
|
|
14
|
-
nestedGridPaddingTop?: number;
|
|
15
|
-
nestedGridPaddingBottom?: number;
|
|
16
|
-
nestedGridPaddingLeft?: number;
|
|
17
|
-
nestedGridPaddingRight?: number;
|
|
18
|
-
nestedGridMaxHeight?: number;
|
|
19
|
-
selectionColumnWidth?: number;
|
|
20
|
-
}
|
|
21
|
-
export type CustomTheme = Required<CustomThemeProps>;
|
|
22
|
-
/**
|
|
23
|
-
* Default theme values
|
|
24
|
-
* These match the original hardcoded constants throughout the codebase
|
|
25
|
-
*/
|
|
26
|
-
export declare const DEFAULT_CUSTOM_THEME: CustomTheme;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import UpdateDataProps from "./UpdateCellProps";
|
|
2
|
-
import HeaderObject, { Accessor } from "./HeaderObject";
|
|
3
|
-
import TableRow from "./TableRow";
|
|
4
|
-
import SortColumn, { SortDirection } from "./SortColumn";
|
|
5
|
-
import { TableFilterState, FilterCondition } from "./FilterTypes";
|
|
6
|
-
import type { PinnedSectionsState } from "./PinnedSectionsState";
|
|
7
|
-
interface SetHeaderRenameProps {
|
|
8
|
-
accessor: Accessor;
|
|
9
|
-
}
|
|
10
|
-
interface ExportToCSVProps {
|
|
11
|
-
filename?: string;
|
|
12
|
-
}
|
|
13
|
-
type TableRefType = {
|
|
14
|
-
updateData: (props: UpdateDataProps) => void;
|
|
15
|
-
setHeaderRename: (props: SetHeaderRenameProps) => void;
|
|
16
|
-
/** Returns the currently visible rows (e.g., current page when paginated) */
|
|
17
|
-
getVisibleRows: () => TableRow[];
|
|
18
|
-
/** Returns all rows (flattened, including nested/grouped rows) */
|
|
19
|
-
getAllRows: () => TableRow[];
|
|
20
|
-
/** Returns the table's header/column definitions */
|
|
21
|
-
getHeaders: () => HeaderObject[];
|
|
22
|
-
exportToCSV: (props?: ExportToCSVProps) => void;
|
|
23
|
-
/** Returns the current sort state */
|
|
24
|
-
getSortState: () => SortColumn | null;
|
|
25
|
-
/** Applies a new sort state to the table. Pass null to clear sort. Direction defaults to cycling through asc -> desc -> null */
|
|
26
|
-
applySortState: (props?: {
|
|
27
|
-
accessor: Accessor;
|
|
28
|
-
direction?: SortDirection;
|
|
29
|
-
}) => Promise<void>;
|
|
30
|
-
/** Ordered root accessors per pin section (left, main/unpinned, right) */
|
|
31
|
-
getPinnedState: () => PinnedSectionsState;
|
|
32
|
-
/** Reorder root columns and set pinned flags; lists must include every root accessor exactly once. Essential order is clamped per section. */
|
|
33
|
-
applyPinnedState: (state: PinnedSectionsState) => Promise<void>;
|
|
34
|
-
/** Returns the current filter state */
|
|
35
|
-
getFilterState: () => TableFilterState;
|
|
36
|
-
/** Applies a filter to a specific column */
|
|
37
|
-
applyFilter: (filter: FilterCondition) => Promise<void>;
|
|
38
|
-
/** Clears a filter for a specific column */
|
|
39
|
-
clearFilter: (accessor: Accessor) => Promise<void>;
|
|
40
|
-
/** Clears all filters */
|
|
41
|
-
clearAllFilters: () => Promise<void>;
|
|
42
|
-
/** Returns the current page number (1-indexed) */
|
|
43
|
-
getCurrentPage: () => number;
|
|
44
|
-
/** Returns the total number of pages */
|
|
45
|
-
getTotalPages: () => number;
|
|
46
|
-
/** Sets the current page (1-indexed) and triggers onPageChange callback */
|
|
47
|
-
setPage: (page: number) => Promise<void>;
|
|
48
|
-
/** Expand all rows at all depths */
|
|
49
|
-
expandAll: () => void;
|
|
50
|
-
/** Collapse all rows at all depths */
|
|
51
|
-
collapseAll: () => void;
|
|
52
|
-
/** Expand all rows at a specific depth (0-indexed) */
|
|
53
|
-
expandDepth: (depth: number) => void;
|
|
54
|
-
/** Collapse all rows at a specific depth (0-indexed) */
|
|
55
|
-
collapseDepth: (depth: number) => void;
|
|
56
|
-
/** Toggle expansion for a specific depth */
|
|
57
|
-
toggleDepth: (depth: number) => void;
|
|
58
|
-
/** Set which depths are expanded (replaces current state) */
|
|
59
|
-
setExpandedDepths: (depths: Set<number>) => void;
|
|
60
|
-
/** Get currently expanded depths */
|
|
61
|
-
getExpandedDepths: () => Set<number>;
|
|
62
|
-
/** Get the grouping property name for a depth index */
|
|
63
|
-
getGroupingProperty: (depth: number) => Accessor | undefined;
|
|
64
|
-
/** Get the depth index for a grouping property name */
|
|
65
|
-
getGroupingDepth: (property: Accessor) => number;
|
|
66
|
-
/** Toggle the column editor menu. Pass true to open, false to close, or no argument to toggle. Only works if editColumns prop is enabled. */
|
|
67
|
-
toggleColumnEditor: (open?: boolean) => void;
|
|
68
|
-
/** Apply column visibility changes. Pass an object with column accessors as keys and boolean visibility as values. */
|
|
69
|
-
applyColumnVisibility: (visibility: {
|
|
70
|
-
[accessor: string]: boolean;
|
|
71
|
-
}) => Promise<void>;
|
|
72
|
-
/** Reset columns to default order and visibility (restores defaultHeaders state). */
|
|
73
|
-
resetColumns: () => void;
|
|
74
|
-
/** Set the quick filter text programmatically. Triggers the onChange callback if provided in quickFilter config. */
|
|
75
|
-
setQuickFilter: (text: string) => void;
|
|
76
|
-
};
|
|
77
|
-
export default TableRefType;
|
|
78
|
-
export type { SetHeaderRenameProps, ExportToCSVProps };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AbsoluteBodyCell, CellRenderContext } from "./types";
|
|
2
|
-
export declare const createExpandIcon: (cell: AbsoluteBodyCell, context: CellRenderContext, isExpanded: boolean) => HTMLElement;
|
|
3
|
-
/** Update expand/collapse icon direction on an existing cell (e.g. after expand state changes for nested grids). */
|
|
4
|
-
export declare const updateExpandIconState: (cellElement: HTMLElement, isExpanded: boolean) => void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SimpleTableConfig } from "../types/SimpleTableConfig";
|
|
2
|
-
/**
|
|
3
|
-
* Checks for deprecated props and logs console errors with helpful migration messages
|
|
4
|
-
* @param props - The SimpleTable props to check
|
|
5
|
-
*/
|
|
6
|
-
export declare const checkDeprecatedProps: (props: SimpleTableConfig) => void;
|
|
7
|
-
/**
|
|
8
|
-
* Export the list of deprecated props for testing or documentation purposes
|
|
9
|
-
*/
|
|
10
|
-
export declare const getDeprecatedPropNames: () => string[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface CreateDropdownOptions {
|
|
2
|
-
children: HTMLElement;
|
|
3
|
-
containerRef?: HTMLElement;
|
|
4
|
-
mainBodyRef?: HTMLElement;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
open: boolean;
|
|
7
|
-
overflow?: "auto" | "visible" | "hidden";
|
|
8
|
-
width?: number;
|
|
9
|
-
positioning?: "fixed" | "absolute";
|
|
10
|
-
}
|
|
11
|
-
export declare const createDropdown: (options: CreateDropdownOptions) => {
|
|
12
|
-
element: HTMLDivElement;
|
|
13
|
-
update: (newOptions: Partial<CreateDropdownOptions>) => void;
|
|
14
|
-
destroy: () => void;
|
|
15
|
-
setOpen: (newOpen: boolean) => void;
|
|
16
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
import { HeaderRenderContext } from "./types";
|
|
3
|
-
/** Use same icon and animation as body row expand/collapse (icons.expand + st-expand-icon-container). */
|
|
4
|
-
export declare const createCollapseIcon: (header: HeaderObject, context: HeaderRenderContext) => HTMLElement | null;
|
|
5
|
-
/** Update header collapse icon direction on an existing cell (same pattern as body updateExpandIconState). */
|
|
6
|
-
export declare const updateHeaderCollapseIconState: (cellElement: HTMLElement, isCollapsed: boolean, label?: string) => void;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import HeaderObject from "../../types/HeaderObject";
|
|
2
|
-
export declare let prevUpdateTime: number;
|
|
3
|
-
export declare let prevDraggingPosition: {
|
|
4
|
-
screenX: number;
|
|
5
|
-
screenY: number;
|
|
6
|
-
};
|
|
7
|
-
export declare let prevHeaders: HeaderObject[] | null;
|
|
8
|
-
export declare const setPrevUpdateTime: (time: number) => void;
|
|
9
|
-
export declare const setPrevDraggingPosition: (position: {
|
|
10
|
-
screenX: number;
|
|
11
|
-
screenY: number;
|
|
12
|
-
}) => void;
|
|
13
|
-
export declare const setPrevHeaders: (headers: HeaderObject[] | null) => void;
|
|
14
|
-
export declare const getRenderedCells: (container: HTMLElement) => Map<string, HTMLElement>;
|
|
15
|
-
export interface CachedHeaderPosition {
|
|
16
|
-
left: number;
|
|
17
|
-
top: number;
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
}
|
|
21
|
-
export declare const getHeaderPositionCache: (container: HTMLElement) => Map<string, CachedHeaderPosition>;
|
|
22
|
-
export declare const REVERT_TO_PREVIOUS_HEADERS_DELAY = 1500;
|
|
23
|
-
export declare const throttle: (callback: () => void, limit: number) => void;
|
|
24
|
-
export declare const addTrackedEventListener: (element: HTMLElement, event: string, handler: EventListener, options?: AddEventListenerOptions) => void;
|
|
25
|
-
export declare const cleanupHeaderCellRendering: (container?: HTMLElement) => void;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import HeaderObject, { Accessor } from "../types/HeaderObject";
|
|
2
|
-
/**
|
|
3
|
-
* Find all leaf headers (headers without children) in a header tree
|
|
4
|
-
* Takes collapsed state into account - when a header is collapsed, only returns
|
|
5
|
-
* children that are visible when parent is collapsed (showWhen is 'parentCollapsed' or 'always')
|
|
6
|
-
*/
|
|
7
|
-
export declare const findLeafHeaders: (header: HeaderObject, collapsedHeaders?: Set<Accessor>) => HeaderObject[];
|
|
8
|
-
/** Default pixel width for 1fr when converting before container width is known */
|
|
9
|
-
export declare const DEFAULT_FR_PX = 150;
|
|
10
|
-
/** Default total table width used when normalizing fr/% if container width unknown */
|
|
11
|
-
export declare const DEFAULT_TABLE_WIDTH = 800;
|
|
12
|
-
/**
|
|
13
|
-
* Normalize header widths so that fr and % are converted to pixels.
|
|
14
|
-
* Call this as soon as headers are received so the rest of the code can assume numeric widths.
|
|
15
|
-
* If totalWidth is not provided, a reasonable total is computed from fixed widths + default for fr columns.
|
|
16
|
-
* If options.containerWidth is provided, the main section's fr columns are given the remaining space
|
|
17
|
-
* (container width minus pinned left/right), so the flexible column fills available space.
|
|
18
|
-
*/
|
|
19
|
-
export declare function normalizeHeaderWidths(headers: HeaderObject[], totalWidthOrOptions?: number | {
|
|
20
|
-
containerWidth: number;
|
|
21
|
-
}): HeaderObject[];
|
|
22
|
-
/**
|
|
23
|
-
* Get actual width of a header in pixels
|
|
24
|
-
*/
|
|
25
|
-
export declare const getHeaderWidthInPixels: (header: HeaderObject) => number;
|
|
26
|
-
/**
|
|
27
|
-
* Convert fractional widths to pixel values
|
|
28
|
-
*/
|
|
29
|
-
export declare const removeAllFractionalWidths: (header: HeaderObject) => void;
|
|
30
|
-
/**
|
|
31
|
-
* Calculate the minimum width for a header
|
|
32
|
-
*/
|
|
33
|
-
export declare const getHeaderMinWidth: (header: HeaderObject) => number;
|
|
34
|
-
/**
|
|
35
|
-
* Get all visible leaf headers from an array of headers
|
|
36
|
-
*/
|
|
37
|
-
export declare const getAllVisibleLeafHeaders: (headers: HeaderObject[], collapsedHeaders?: Set<Accessor>) => HeaderObject[];
|
|
38
|
-
/**
|
|
39
|
-
* Convert pixel-based widths to proportional fr units
|
|
40
|
-
* This is used when autoExpandColumns is enabled
|
|
41
|
-
*/
|
|
42
|
-
export declare const convertPixelWidthsToFr: (headers: HeaderObject[], collapsedHeaders?: Set<Accessor>) => HeaderObject[];
|
|
43
|
-
/**
|
|
44
|
-
* Calculate the optimal width for a column by measuring both header and cell content
|
|
45
|
-
* This is used for auto-sizing columns to fit their content (like Excel/Google Sheets)
|
|
46
|
-
*
|
|
47
|
-
* @param accessor - The accessor of the header to measure
|
|
48
|
-
* @param options - Configuration options
|
|
49
|
-
* @returns The optimal width in pixels
|
|
50
|
-
*/
|
|
51
|
-
export declare const calculateHeaderContentWidth: (accessor: Accessor, options?: {
|
|
52
|
-
rows?: any[];
|
|
53
|
-
header?: HeaderObject;
|
|
54
|
-
maxWidth?: number;
|
|
55
|
-
sampleSize?: number;
|
|
56
|
-
}) => number;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HandleResizeStartProps } from "../../types/HandleResizeStartProps";
|
|
2
|
-
/**
|
|
3
|
-
* Handler for when resize dragging starts
|
|
4
|
-
*/
|
|
5
|
-
export declare const handleResizeStart: ({ autoExpandColumns, collapsedHeaders, containerWidth, event, header, headers, onColumnWidthChange, reverse, setHeaders, setIsResizing, startWidth, }: HandleResizeStartProps) => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HeightOffsets } from "./infiniteScrollUtils";
|
|
2
|
-
import { CustomTheme } from "../types/CustomTheme";
|
|
3
|
-
export interface CreateRowSeparatorOptions {
|
|
4
|
-
position: number;
|
|
5
|
-
rowHeight: number;
|
|
6
|
-
displayStrongBorder: boolean;
|
|
7
|
-
heightOffsets?: HeightOffsets;
|
|
8
|
-
customTheme?: CustomTheme;
|
|
9
|
-
isSticky?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const createRowSeparator: (options: CreateRowSeparatorOptions) => HTMLElement;
|
|
12
|
-
export declare const createSpacerRow: (position: number, rowHeight: number, heightOffsets: HeightOffsets | undefined, customTheme: CustomTheme, className: string, height?: number) => HTMLElement;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { SimpleTable } from "./SimpleTable";
|
|
2
|
-
export type { SimpleTableSolidProps, TableInstance, SolidHeaderObject, SolidColumnEditorConfig, SolidIconsConfig, SolidIconElement, SolidCellRenderer, SolidHeaderRenderer, SolidFooterRenderer, SolidHeaderDropdown, SolidColumnEditorRowRenderer, SolidLoadingStateRenderer, SolidErrorStateRenderer, SolidEmptyStateRenderer, } from "./types";
|
|
3
|
-
export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, 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, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererComponents, HeaderRendererProps, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, OnRowGroupExpandProps, OnSortProps, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowId, RowSelectionChangeProps, RowState, SetHeaderRenameProps, SharedTableProps, ShowWhen, SimpleTableConfig, SimpleTableProps, SortColumn, TableAPI, TableFilterState, TableHeaderProps, TableRowProps, Theme, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, } from "simple-table-core";
|
|
@@ -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,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
|
-
}
|