simple-table-core 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/{cjs/src/consts → consts}/column-constraints.d.ts +58 -58
- package/dist/{cjs/src/consts → consts}/general-consts.d.ts +32 -32
- package/dist/{cjs/src/core → core}/SimpleTableVanilla.d.ts +370 -369
- package/dist/{src/core → core}/api/TableAPIImpl.d.ts +78 -78
- package/dist/{cjs/src/core → core}/dom/DOMManager.d.ts +52 -52
- package/dist/{cjs/src/core → core}/initialization/TableInitializer.d.ts +34 -34
- package/dist/{cjs/src/core → core}/rendering/RenderOrchestrator.d.ts +172 -172
- package/dist/{src/core → core}/rendering/SectionRenderer.d.ts +119 -119
- package/dist/{cjs/src/core → core}/rendering/TableRenderer.d.ts +120 -120
- package/dist/{src/hooks → hooks}/ariaAnnouncements.d.ts +37 -37
- package/dist/{src/hooks → hooks}/contentHeight.d.ts +29 -29
- package/dist/{cjs/src/hooks → hooks}/expandedDepths.d.ts +69 -69
- package/dist/{cjs/src/hooks → hooks}/handleOutsideClick.d.ts +50 -50
- package/dist/{cjs/src/hooks → hooks}/previousValue.d.ts +30 -30
- package/dist/{src/hooks → hooks}/scrollbarVisibility.d.ts +65 -65
- package/dist/{src/hooks → hooks}/scrollbarWidth.d.ts +52 -52
- package/dist/{src/hooks → hooks}/useAggregatedRows.d.ts +14 -14
- package/dist/{src/hooks → hooks}/useQuickFilter.d.ts +14 -14
- package/dist/{src/hooks → hooks}/windowResize.d.ts +31 -31
- package/dist/{cjs/src/icons → icons}/AngleDownIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/AngleLeftIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/AngleRightIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/AngleUpIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/AscIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/CheckIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/DescIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/DragIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/FilterIcon.d.ts +1 -1
- package/dist/{cjs/src/icons → icons}/SelectIcon.d.ts +1 -1
- package/dist/{src/icons → icons}/index.d.ts +14 -14
- package/dist/{cjs/src/index.d.ts → index.d.ts} +56 -58
- package/dist/index.es.js +1 -1
- package/dist/{cjs/src/managers → managers}/AnimationCoordinator.d.ts +356 -356
- package/dist/{cjs/src/managers → managers}/AutoScaleManager.d.ts +33 -33
- package/dist/{src/managers → managers}/ColumnManager.d.ts +42 -42
- package/dist/{cjs/src/managers → managers}/DimensionManager.d.ts +84 -84
- package/dist/{src/managers → managers}/DragHandlerManager.d.ts +44 -44
- package/dist/{src/managers → managers}/FilterManager.d.ts +36 -36
- package/dist/{src/managers → managers}/PivotManager.d.ts +35 -35
- package/dist/{cjs/src/managers → managers}/RowManager.d.ts +56 -56
- package/dist/{src/managers → managers}/RowSelectionManager.d.ts +72 -72
- package/dist/{cjs/src/managers → managers}/ScrollManager.d.ts +38 -38
- package/dist/{src/managers → managers}/SectionScrollController.d.ts +74 -74
- package/dist/{src/managers → managers}/SelectionManager/SelectionManager.d.ts +251 -251
- package/dist/{src/managers → managers}/SelectionManager/index.d.ts +2 -2
- package/dist/{src/managers → managers}/SelectionManager/keyboardUtils.d.ts +7 -7
- package/dist/{cjs/src/managers → managers}/SelectionManager/mouseUtils.d.ts +16 -16
- package/dist/{src/managers → managers}/SelectionManager/selectionRangeUtils.d.ts +7 -7
- package/dist/{src/managers → managers}/SelectionManager/types.d.ts +28 -28
- package/dist/{src/managers → managers}/SortManager.d.ts +42 -42
- package/dist/{cjs/src/managers → managers}/TableManager.d.ts +72 -72
- package/dist/{src/types → types}/AggregationTypes.d.ts +8 -8
- package/dist/{cjs/src/types → types}/AnimationsConfig.d.ts +16 -16
- package/dist/{src/types → types}/BoundingBox.d.ts +11 -11
- package/dist/{cjs/src/types → types}/Cell.d.ts +7 -7
- package/dist/{cjs/src/types → types}/CellChangeProps.d.ts +9 -9
- package/dist/{cjs/src/types → types}/CellClickProps.d.ts +11 -11
- package/dist/{src/types → types}/CellRendererProps.d.ts +32 -32
- package/dist/{cjs/src/types → types}/CellValue.d.ts +2 -2
- package/dist/{src/types → types}/ColumnEditorConfig.d.ts +42 -42
- package/dist/{src/types → types}/ColumnEditorCustomRendererProps.d.ts +14 -14
- package/dist/{src/types → types}/ColumnEditorRowRendererProps.d.ts +39 -39
- package/dist/{src/types → types}/ColumnVisibilityTypes.d.ts +4 -4
- package/dist/{src/types → types}/CustomTheme.d.ts +28 -28
- package/dist/{src/types → types}/DragHandlerProps.d.ts +14 -14
- package/dist/{src/types → types}/EnumOption.d.ts +5 -5
- package/dist/{cjs/src/types → types}/FilterTypes.d.ts +31 -31
- package/dist/{src/types → types}/FlattenedHeader.d.ts +10 -10
- package/dist/{cjs/src/types → types}/FooterPosition.d.ts +3 -3
- package/dist/{src/types → types}/FooterRendererProps.d.ts +17 -17
- package/dist/{cjs/src/types → types}/GenerateRowIdParams.d.ts +11 -11
- package/dist/{cjs/src/types → types}/GetRowId.d.ts +16 -16
- package/dist/{cjs/src/types → types}/HandleResizeStartProps.d.ts +25 -25
- package/dist/{cjs/src/types → types}/HeaderDropdownProps.d.ts +14 -14
- package/dist/{src/types → types}/HeaderObject.d.ts +152 -133
- package/dist/{cjs/src/types → types}/HeaderRendererProps.d.ts +17 -17
- package/dist/{src/types → types}/IconsConfig.d.ts +19 -19
- package/dist/{cjs/src/types → types}/OnNextPage.d.ts +2 -2
- package/dist/{cjs/src/types → types}/OnRowGroupExpandProps.d.ts +16 -16
- package/dist/{cjs/src/types → types}/OnSortProps.d.ts +3 -3
- package/dist/{cjs/src/types → types}/PanelSection.d.ts +1 -1
- package/dist/{cjs/src/types → types}/Pinned.d.ts +1 -1
- package/dist/{src/types → types}/PinnedSectionsState.d.ts +6 -6
- package/dist/{cjs/src/types → types}/PivotTypes.d.ts +37 -37
- package/dist/{cjs/src/types → types}/QuickFilterTypes.d.ts +21 -21
- package/dist/{cjs/src/types → types}/Row.d.ts +3 -3
- package/dist/{cjs/src/types → types}/RowButton.d.ts +6 -6
- package/dist/{cjs/src/types → types}/RowId.d.ts +1 -1
- package/dist/{cjs/src/types → types}/RowSelectionChangeProps.d.ts +7 -7
- package/dist/{src/types → types}/RowSelectionMode.d.ts +8 -8
- package/dist/{cjs/src/types → types}/RowState.d.ts +12 -12
- package/dist/{cjs/src/types → types}/RowStateRendererProps.d.ts +18 -18
- package/dist/{src/types → types}/SharedTableProps.d.ts +24 -24
- package/dist/{cjs/src/types → types}/SimpleTableConfig.d.ts +129 -124
- package/dist/{cjs/src/types → types}/SimpleTableProps.d.ts +173 -125
- package/dist/{cjs/src/types → types}/SortColumn.d.ts +8 -8
- package/dist/{cjs/src/types → types}/TableAPI.d.ts +85 -82
- package/dist/{cjs/src/types → types}/TableBodyProps.d.ts +20 -20
- package/dist/{cjs/src/types → types}/TableHeaderProps.d.ts +17 -17
- package/dist/{cjs/src/types → types}/TableHeaderSectionProps.d.ts +19 -19
- package/dist/{src/types → types}/TableRow.d.ts +39 -39
- package/dist/{src/types → types}/TableRowProps.d.ts +29 -29
- package/dist/{cjs/src/types → types}/Theme.d.ts +2 -2
- package/dist/{src/types → types}/UpdateCellProps.d.ts +8 -8
- package/dist/{cjs/src/utils → utils}/accordionAnimation.d.ts +25 -25
- package/dist/{src/utils → utils}/aggregationUtils.d.ts +7 -7
- package/dist/{src/utils → utils}/ariaRowOwnership.d.ts +37 -37
- package/dist/{src/utils → utils}/asRows.d.ts +7 -7
- package/dist/{src/utils → utils}/bodyCell/cellLiveRef.d.ts +9 -9
- package/dist/{cjs/src/utils → utils}/bodyCell/content.d.ts +5 -5
- package/dist/{cjs/src/utils → utils}/bodyCell/editing.d.ts +4 -4
- package/dist/{src/utils → utils}/bodyCell/editors/booleanDropdown.d.ts +2 -2
- package/dist/{src/utils → utils}/bodyCell/editors/datePicker.d.ts +2 -2
- package/dist/{src/utils → utils}/bodyCell/editors/dropdown.d.ts +18 -18
- package/dist/{cjs/src/utils → utils}/bodyCell/editors/enumDropdown.d.ts +2 -2
- package/dist/{cjs/src/utils → utils}/bodyCell/eventTracking.d.ts +3 -3
- package/dist/{cjs/src/utils → utils}/bodyCell/expansion.d.ts +12 -12
- package/dist/{src/utils → utils}/bodyCell/selection.d.ts +7 -7
- package/dist/{cjs/src/utils → utils}/bodyCell/styling.d.ts +11 -11
- package/dist/{src/utils → utils}/bodyCell/types.d.ts +170 -170
- package/dist/{src/utils → utils}/bodyCellRenderer.d.ts +6 -6
- package/dist/{src/utils → utils}/cellClipboardUtils.d.ts +25 -25
- package/dist/{cjs/src/utils → utils}/cellScrollUtils.d.ts +10 -10
- package/dist/{cjs/src/utils → utils}/cellUtils.d.ts +18 -18
- package/dist/{cjs/src/utils → utils}/charts/createBarChart.d.ts +20 -20
- package/dist/{cjs/src/utils → utils}/charts/createLineAreaChart.d.ts +25 -25
- package/dist/{src/utils → utils}/collapseUtils.d.ts +31 -31
- package/dist/{src/utils → utils}/columnEditor/columnEditorUtils.d.ts +27 -27
- package/dist/{src/utils → utils}/columnEditor/createCheckbox.d.ts +21 -21
- package/dist/{src/utils → utils}/columnEditor/createColumnEditor.d.ts +26 -26
- package/dist/{cjs/src/utils → utils}/columnEditor/createColumnEditorPopout.d.ts +23 -23
- package/dist/{src/utils → utils}/columnEditor/createColumnEditorRow.d.ts +41 -41
- package/dist/{cjs/src/utils → utils}/columnIndicesUtils.d.ts +15 -15
- package/dist/{src/utils → utils}/columnVirtualizationUtils.d.ts +128 -128
- package/dist/{cjs/src/utils → utils}/csvExportUtils.d.ts +14 -14
- package/dist/{cjs/src/utils → utils}/dateUtils.d.ts +18 -18
- package/dist/{src/utils → utils}/externalScroll.d.ts +58 -58
- package/dist/{cjs/src/utils → utils}/filterUtils.d.ts +5 -5
- package/dist/{cjs/src/utils → utils}/filters/createBooleanFilter.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/filters/createCustomSelect.d.ts +20 -20
- package/dist/{cjs/src/utils → utils}/filters/createDateFilter.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/filters/createDatePicker.d.ts +10 -10
- package/dist/{cjs/src/utils → utils}/filters/createDropdown.d.ts +33 -33
- package/dist/{cjs/src/utils → utils}/filters/createEnumFilter.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/filters/createFilterActions.d.ts +12 -12
- package/dist/{src/utils → utils}/filters/createFilterDropdown.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/filters/createFilterInput.d.ts +16 -16
- package/dist/{src/utils → utils}/filters/createNumberFilter.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/filters/createStringFilter.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/footer/createTableFooter.d.ts +21 -21
- package/dist/{cjs/src/utils → utils}/formatters.d.ts +3 -3
- package/dist/{cjs/src/utils → utils}/generalUtils.d.ts +4 -4
- package/dist/{src/utils → utils}/headerCell/collapsing.d.ts +6 -6
- package/dist/{cjs/src/utils → utils}/headerCell/dragging.d.ts +5 -5
- package/dist/{src/utils → utils}/headerCell/editing.d.ts +4 -4
- package/dist/{src/utils → utils}/headerCell/eventTracking.d.ts +28 -28
- package/dist/{src/utils → utils}/headerCell/filtering.d.ts +3 -3
- package/dist/{src/utils → utils}/headerCell/resizing.d.ts +3 -3
- package/dist/{src/utils → utils}/headerCell/selection.d.ts +10 -10
- package/dist/{src/utils → utils}/headerCell/sorting.d.ts +3 -3
- package/dist/{cjs/src/utils → utils}/headerCell/styling.d.ts +7 -7
- package/dist/{src/utils → utils}/headerCell/types.d.ts +110 -110
- package/dist/{cjs/src/utils → utils}/headerCellRenderer.d.ts +4 -4
- package/dist/{cjs/src/utils → utils}/headerUtils.d.ts +41 -41
- package/dist/{src/utils → utils}/headerWidthUtils.d.ts +121 -121
- package/dist/{src/utils → utils}/horizontalScrollbarRenderer.d.ts +27 -27
- package/dist/{cjs/src/utils → utils}/infiniteScrollUtils.d.ts +145 -145
- package/dist/{cjs/src/utils → utils}/loadingPlaceholderUtils.d.ts +11 -11
- package/dist/{src/utils → utils}/nestedGridRowRenderer.d.ts +50 -50
- package/dist/utils/normalizeConfig.d.ts +62 -0
- package/dist/{cjs/src/utils → utils}/pinnedColumnUtils.d.ts +29 -29
- package/dist/{cjs/src/utils → utils}/pivot/pivotRows.d.ts +16 -16
- package/dist/{src/utils → utils}/propSyncEqual.d.ts +60 -60
- package/dist/{cjs/src/utils → utils}/quickFilterUtils.d.ts +14 -14
- package/dist/{src/utils → utils}/resizeUtils/autoExpandResize.d.ts +32 -32
- package/dist/{cjs/src/utils → utils}/resizeUtils/compensation.d.ts +17 -17
- package/dist/{src/utils → utils}/resizeUtils/domUpdates.d.ts +15 -15
- package/dist/{cjs/src/utils → utils}/resizeUtils/index.d.ts +26 -26
- package/dist/{src/utils → utils}/resizeUtils/maxWidth.d.ts +9 -9
- package/dist/{cjs/src/utils → utils}/resizeUtils/parentHeaderResize.d.ts +11 -11
- package/dist/{cjs/src/utils → utils}/resizeUtils/sectionWidths.d.ts +36 -36
- package/dist/{src/utils → utils}/rowFlattening.d.ts +30 -30
- package/dist/{cjs/src/utils → utils}/rowProcessing.d.ts +65 -65
- package/dist/{cjs/src/utils → utils}/rowSelectionUtils.d.ts +62 -62
- package/dist/{src/utils → utils}/rowSeparatorRenderer.d.ts +16 -16
- package/dist/{cjs/src/utils → utils}/rowUtils.d.ts +187 -187
- package/dist/{cjs/src/utils → utils}/sortUtils.d.ts +8 -8
- package/dist/{cjs/src/utils → utils}/stateRowRenderer.d.ts +15 -15
- package/dist/{src/utils → utils}/stickyParentsRenderer.d.ts +53 -53
- package/package.json +12 -6
- package/styles.css.d.ts +1 -0
- package/dist/cjs/src/core/api/TableAPIImpl.d.ts +0 -78
- package/dist/cjs/src/core/rendering/SectionRenderer.d.ts +0 -119
- package/dist/cjs/src/hooks/ariaAnnouncements.d.ts +0 -37
- package/dist/cjs/src/hooks/contentHeight.d.ts +0 -29
- package/dist/cjs/src/hooks/scrollbarVisibility.d.ts +0 -65
- package/dist/cjs/src/hooks/scrollbarWidth.d.ts +0 -52
- package/dist/cjs/src/hooks/useAggregatedRows.d.ts +0 -14
- package/dist/cjs/src/hooks/useQuickFilter.d.ts +0 -14
- package/dist/cjs/src/hooks/windowResize.d.ts +0 -31
- package/dist/cjs/src/icons/index.d.ts +0 -14
- package/dist/cjs/src/managers/ColumnManager.d.ts +0 -42
- package/dist/cjs/src/managers/DragHandlerManager.d.ts +0 -44
- package/dist/cjs/src/managers/FilterManager.d.ts +0 -36
- package/dist/cjs/src/managers/PivotManager.d.ts +0 -35
- package/dist/cjs/src/managers/RowSelectionManager.d.ts +0 -72
- package/dist/cjs/src/managers/SectionScrollController.d.ts +0 -74
- package/dist/cjs/src/managers/SelectionManager/SelectionManager.d.ts +0 -251
- package/dist/cjs/src/managers/SelectionManager/index.d.ts +0 -2
- package/dist/cjs/src/managers/SelectionManager/keyboardUtils.d.ts +0 -7
- package/dist/cjs/src/managers/SelectionManager/selectionRangeUtils.d.ts +0 -7
- package/dist/cjs/src/managers/SelectionManager/types.d.ts +0 -28
- package/dist/cjs/src/managers/SortManager.d.ts +0 -42
- package/dist/cjs/src/types/AggregationTypes.d.ts +0 -8
- package/dist/cjs/src/types/BoundingBox.d.ts +0 -11
- package/dist/cjs/src/types/CellRendererProps.d.ts +0 -32
- package/dist/cjs/src/types/ColumnEditorConfig.d.ts +0 -42
- package/dist/cjs/src/types/ColumnEditorCustomRendererProps.d.ts +0 -14
- package/dist/cjs/src/types/ColumnEditorRowRendererProps.d.ts +0 -39
- package/dist/cjs/src/types/ColumnVisibilityTypes.d.ts +0 -4
- package/dist/cjs/src/types/CustomTheme.d.ts +0 -28
- package/dist/cjs/src/types/DragHandlerProps.d.ts +0 -14
- package/dist/cjs/src/types/EnumOption.d.ts +0 -5
- package/dist/cjs/src/types/FlattenedHeader.d.ts +0 -10
- package/dist/cjs/src/types/FooterRendererProps.d.ts +0 -17
- package/dist/cjs/src/types/HeaderObject.d.ts +0 -133
- package/dist/cjs/src/types/IconsConfig.d.ts +0 -19
- package/dist/cjs/src/types/PinnedSectionsState.d.ts +0 -6
- package/dist/cjs/src/types/RowSelectionMode.d.ts +0 -8
- package/dist/cjs/src/types/SelectionType.d.ts +0 -7
- package/dist/cjs/src/types/SharedTableProps.d.ts +0 -24
- package/dist/cjs/src/types/TableRow.d.ts +0 -39
- package/dist/cjs/src/types/TableRowProps.d.ts +0 -29
- package/dist/cjs/src/types/UpdateCellProps.d.ts +0 -8
- package/dist/cjs/src/utils/aggregationUtils.d.ts +0 -7
- package/dist/cjs/src/utils/ariaRowOwnership.d.ts +0 -37
- package/dist/cjs/src/utils/asRows.d.ts +0 -7
- package/dist/cjs/src/utils/bodyCell/cellLiveRef.d.ts +0 -9
- package/dist/cjs/src/utils/bodyCell/editors/booleanDropdown.d.ts +0 -2
- package/dist/cjs/src/utils/bodyCell/editors/datePicker.d.ts +0 -2
- package/dist/cjs/src/utils/bodyCell/editors/dropdown.d.ts +0 -18
- package/dist/cjs/src/utils/bodyCell/selection.d.ts +0 -7
- package/dist/cjs/src/utils/bodyCell/types.d.ts +0 -170
- package/dist/cjs/src/utils/bodyCellRenderer.d.ts +0 -6
- package/dist/cjs/src/utils/cellClipboardUtils.d.ts +0 -25
- package/dist/cjs/src/utils/collapseUtils.d.ts +0 -31
- package/dist/cjs/src/utils/columnEditor/columnEditorUtils.d.ts +0 -27
- package/dist/cjs/src/utils/columnEditor/createCheckbox.d.ts +0 -21
- package/dist/cjs/src/utils/columnEditor/createColumnEditor.d.ts +0 -26
- package/dist/cjs/src/utils/columnEditor/createColumnEditorRow.d.ts +0 -41
- package/dist/cjs/src/utils/columnVirtualizationUtils.d.ts +0 -128
- package/dist/cjs/src/utils/externalScroll.d.ts +0 -58
- package/dist/cjs/src/utils/filters/createFilterDropdown.d.ts +0 -15
- package/dist/cjs/src/utils/filters/createNumberFilter.d.ts +0 -15
- package/dist/cjs/src/utils/headerCell/collapsing.d.ts +0 -6
- package/dist/cjs/src/utils/headerCell/editing.d.ts +0 -4
- package/dist/cjs/src/utils/headerCell/eventTracking.d.ts +0 -28
- package/dist/cjs/src/utils/headerCell/filtering.d.ts +0 -3
- package/dist/cjs/src/utils/headerCell/resizing.d.ts +0 -3
- package/dist/cjs/src/utils/headerCell/selection.d.ts +0 -10
- package/dist/cjs/src/utils/headerCell/sorting.d.ts +0 -3
- package/dist/cjs/src/utils/headerCell/types.d.ts +0 -110
- package/dist/cjs/src/utils/headerWidthUtils.d.ts +0 -121
- package/dist/cjs/src/utils/horizontalScrollbarRenderer.d.ts +0 -27
- package/dist/cjs/src/utils/nestedGridRowRenderer.d.ts +0 -50
- package/dist/cjs/src/utils/propSyncEqual.d.ts +0 -60
- package/dist/cjs/src/utils/resizeUtils/autoExpandResize.d.ts +0 -32
- package/dist/cjs/src/utils/resizeUtils/domUpdates.d.ts +0 -15
- package/dist/cjs/src/utils/resizeUtils/maxWidth.d.ts +0 -9
- package/dist/cjs/src/utils/rowFlattening.d.ts +0 -30
- package/dist/cjs/src/utils/rowSeparatorRenderer.d.ts +0 -16
- package/dist/cjs/src/utils/stickyParentsRenderer.d.ts +0 -53
- package/dist/cjs/stories/data/aggregate-data.d.ts +0 -5
- package/dist/cjs/stories/data/athlete-data.d.ts +0 -3
- package/dist/cjs/stories/data/retail-data.d.ts +0 -3
- package/dist/cjs/stories/data/saas-data.d.ts +0 -6
- package/dist/cjs/stories/data/space-data.d.ts +0 -3
- package/dist/cjs/stories/docs/Examples.stories.d.ts +0 -18
- package/dist/cjs/stories/docs/Features.stories.d.ts +0 -54
- package/dist/cjs/stories/docs/GettingStarted.stories.d.ts +0 -7
- package/dist/cjs/stories/docs/storyArgs.d.ts +0 -155
- package/dist/cjs/stories/examples/AdvancedSortingExample.d.ts +0 -6
- package/dist/cjs/stories/examples/AggregateExample.d.ts +0 -7
- package/dist/cjs/stories/examples/AlignmentExample.d.ts +0 -10
- package/dist/cjs/stories/examples/AutoExpandColumnsExample.d.ts +0 -7
- package/dist/cjs/stories/examples/BasicExample.d.ts +0 -12
- package/dist/cjs/stories/examples/BasicRowGrouping.d.ts +0 -11
- package/dist/cjs/stories/examples/CSVExportFormattingExample.d.ts +0 -12
- package/dist/cjs/stories/examples/CSVExportSingleRowChildrenExample.d.ts +0 -6
- package/dist/cjs/stories/examples/CellHighlighting.d.ts +0 -7
- package/dist/cjs/stories/examples/CellRenderer.d.ts +0 -7
- package/dist/cjs/stories/examples/ChartsExample.d.ts +0 -13
- package/dist/cjs/stories/examples/ClayExample.d.ts +0 -14
- package/dist/cjs/stories/examples/ClipboardFormattingExample.d.ts +0 -12
- package/dist/cjs/stories/examples/CollapsibleColumnsExample.d.ts +0 -13
- package/dist/cjs/stories/examples/ColumnVisibilityAPIExample.d.ts +0 -7
- package/dist/cjs/stories/examples/ColumnWidthChangeExample.d.ts +0 -6
- package/dist/cjs/stories/examples/CustomHeaderRenderingExample.d.ts +0 -2
- package/dist/cjs/stories/examples/DynamicHeadersExample.d.ts +0 -5
- package/dist/cjs/stories/examples/DynamicNestedTableExample.d.ts +0 -7
- package/dist/cjs/stories/examples/DynamicRowLoadingExample.d.ts +0 -5
- package/dist/cjs/stories/examples/DynamicRowLoadingWithExternalSortExample.d.ts +0 -6
- package/dist/cjs/stories/examples/EditableCells.d.ts +0 -8
- package/dist/cjs/stories/examples/ExpansionControlExample.d.ts +0 -6
- package/dist/cjs/stories/examples/ExternalFilterExample.d.ts +0 -5
- package/dist/cjs/stories/examples/ExternalSortExample.d.ts +0 -6
- package/dist/cjs/stories/examples/HeaderInclusionExample.d.ts +0 -5
- package/dist/cjs/stories/examples/HiddenColumnsExample.d.ts +0 -9
- package/dist/cjs/stories/examples/InfiniteScroll.d.ts +0 -5
- package/dist/cjs/stories/examples/LiveUpdates.d.ts +0 -5
- package/dist/cjs/stories/examples/LoadingStateExample.d.ts +0 -2
- package/dist/cjs/stories/examples/NestedAccessorExample.d.ts +0 -8
- package/dist/cjs/stories/examples/NestedGridExample.d.ts +0 -5
- package/dist/cjs/stories/examples/Pagination.d.ts +0 -12
- package/dist/cjs/stories/examples/PaginationAPIExample.d.ts +0 -8
- package/dist/cjs/stories/examples/PivotExample.d.ts +0 -16
- package/dist/cjs/stories/examples/ProgrammaticFilterExample.d.ts +0 -5
- package/dist/cjs/stories/examples/ProgrammaticSortExample.d.ts +0 -5
- package/dist/cjs/stories/examples/QuickFilterExample.d.ts +0 -5
- package/dist/cjs/stories/examples/RadioStationsExample.d.ts +0 -3
- package/dist/cjs/stories/examples/RowButtonsExample.d.ts +0 -14
- package/dist/cjs/stories/examples/RowHeightExample.d.ts +0 -8
- package/dist/cjs/stories/examples/RowSelectionExample.d.ts +0 -11
- package/dist/cjs/stories/examples/SelectableCells.d.ts +0 -14
- package/dist/cjs/stories/examples/ServerSidePaginationExample.d.ts +0 -2
- package/dist/cjs/stories/examples/Theming.d.ts +0 -12
- package/dist/cjs/stories/examples/TooltipExample.d.ts +0 -8
- package/dist/cjs/stories/examples/WindowInfiniteScroll.d.ts +0 -3
- package/dist/cjs/stories/examples/billing-example/BillingExample.d.ts +0 -13
- package/dist/cjs/stories/examples/billing-example/billing-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/crypto/CryptoExample.d.ts +0 -14
- package/dist/cjs/stories/examples/crypto/crypto-data.d.ts +0 -30
- package/dist/cjs/stories/examples/crypto/crypto-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/custom-theme/CustomThemeDemo.d.ts +0 -2
- package/dist/cjs/stories/examples/filter-example/FilterExample.d.ts +0 -9
- package/dist/cjs/stories/examples/filter-example/filter-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/finance-example/FinancialExample.d.ts +0 -8
- package/dist/cjs/stories/examples/finance-example/finance-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/infrastructure/InfrastructureExample.d.ts +0 -9
- package/dist/cjs/stories/examples/infrastructure/infrastructure-data.d.ts +0 -5
- package/dist/cjs/stories/examples/infrastructure/infrastructure-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/leads/LeadsExample.d.ts +0 -8
- package/dist/cjs/stories/examples/leads/leads-data.d.ts +0 -5
- package/dist/cjs/stories/examples/leads/leads-headers.d.ts +0 -6
- package/dist/cjs/stories/examples/manufacturing/ManufacturingExample.d.ts +0 -10
- package/dist/cjs/stories/examples/manufacturing/manufacturing-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/music/MusicExample.d.ts +0 -13
- package/dist/cjs/stories/examples/music/MusicWindowScrollExample.d.ts +0 -5
- package/dist/cjs/stories/examples/music/music-headers.d.ts +0 -5
- package/dist/cjs/stories/examples/music/music-window.data.d.ts +0 -47
- package/dist/cjs/stories/examples/pinned-columns/PinnedColumns.d.ts +0 -13
- package/dist/cjs/stories/examples/row-grouping/RowGrouping.d.ts +0 -8
- package/dist/cjs/stories/examples/sales-example/SalesExample.d.ts +0 -14
- package/dist/cjs/stories/examples/sales-example/sales-headers.d.ts +0 -6
- package/dist/cjs/stories/tests/01-BasicStructureTests.stories.d.ts +0 -119
- package/dist/cjs/stories/tests/02-ColumnSortingTests.stories.d.ts +0 -114
- package/dist/cjs/stories/tests/03-ColumnFilteringTests.stories.d.ts +0 -86
- package/dist/cjs/stories/tests/04-PaginationTests.stories.d.ts +0 -94
- package/dist/cjs/stories/tests/05-RowGroupingTests.stories.d.ts +0 -204
- package/dist/cjs/stories/tests/06-CellEditingTests.stories.d.ts +0 -61
- package/dist/cjs/stories/tests/07-RowSelectionTests.stories.d.ts +0 -101
- package/dist/cjs/stories/tests/08-ColumnWidthTests.stories.d.ts +0 -99
- package/dist/cjs/stories/tests/09-ColumnAlignmentTests.stories.d.ts +0 -61
- package/dist/cjs/stories/tests/10-ColumnPinningTests.stories.d.ts +0 -115
- package/dist/cjs/stories/tests/11-ColumnReorderingTests.stories.d.ts +0 -122
- package/dist/cjs/stories/tests/12-CellSelectionTests.stories.d.ts +0 -212
- package/dist/cjs/stories/tests/13-ColumnResizeTests.stories.d.ts +0 -101
- package/dist/cjs/stories/tests/14-LiveUpdatesTests.stories.d.ts +0 -28
- package/dist/cjs/stories/tests/15-ColumnVisibilityTests.stories.d.ts +0 -143
- package/dist/cjs/stories/tests/16-CsvExportTests.stories.d.ts +0 -133
- package/dist/cjs/stories/tests/17-NestedTablesTests.stories.d.ts +0 -105
- package/dist/cjs/stories/tests/18-QuickFilterTests.stories.d.ts +0 -120
- package/dist/cjs/stories/tests/19-AccessibilityTests.stories.d.ts +0 -39
- package/dist/cjs/stories/tests/20-CollapsibleColumnsTests.stories.d.ts +0 -104
- package/dist/cjs/stories/tests/21-ColumnSelectionTests.stories.d.ts +0 -31
- package/dist/cjs/stories/tests/22-LoadingStateTests.stories.d.ts +0 -94
- package/dist/cjs/stories/tests/23-EmptyStateTests.stories.d.ts +0 -39
- package/dist/cjs/stories/tests/24-FooterRendererTests.stories.d.ts +0 -63
- package/dist/cjs/stories/tests/25-HeaderRendererTests.stories.d.ts +0 -58
- package/dist/cjs/stories/tests/26-CellRendererTests.stories.d.ts +0 -55
- package/dist/cjs/stories/tests/27-ValueFormatterTests.stories.d.ts +0 -53
- package/dist/cjs/stories/tests/28-CellClickTests.stories.d.ts +0 -23
- package/dist/cjs/stories/tests/29-TooltipsTests.stories.d.ts +0 -31
- package/dist/cjs/stories/tests/30-AggregateFunctionsTests.stories.d.ts +0 -63
- package/dist/cjs/stories/tests/31-ChartColumnsTests.stories.d.ts +0 -54
- package/dist/cjs/stories/tests/32-ThemesTests.stories.d.ts +0 -104
- package/dist/cjs/stories/tests/33-CustomThemeTests.stories.d.ts +0 -150
- package/dist/cjs/stories/tests/34-CustomIconsTests.stories.d.ts +0 -63
- package/dist/cjs/stories/tests/35-HideHeaderFooterTests.stories.d.ts +0 -31
- package/dist/cjs/stories/tests/36-InfiniteScrollTests.stories.d.ts +0 -23
- package/dist/cjs/stories/tests/37-TableRefMethodsTests.stories.d.ts +0 -160
- package/dist/cjs/stories/tests/38-NestedHeadersTests.stories.d.ts +0 -23
- package/dist/cjs/stories/tests/39-AutoExpandColumnsTests.stories.d.ts +0 -398
- package/dist/cjs/stories/tests/40-MaxHeightScrollTests.stories.d.ts +0 -37
- package/dist/cjs/stories/tests/41-CellAnimationsTests.stories.d.ts +0 -237
- package/dist/cjs/stories/tests/42-CellAnimationsVirtualizationTests.stories.d.ts +0 -251
- package/dist/cjs/stories/tests/43-CollapseExpandAnimationsTests.stories.d.ts +0 -63
- package/dist/cjs/stories/tests/44-ExternalScrollTests.stories.d.ts +0 -53
- package/dist/cjs/stories/tests/45-AriaSemanticsTests.stories.d.ts +0 -83
- package/dist/cjs/stories/tests/45-PivotTests.stories.d.ts +0 -8
- package/dist/cjs/stories/tests/46-AutoSizeColumnsTests.stories.d.ts +0 -370
- package/dist/cjs/stories/tests/47-DeferredHeadersTests.stories.d.ts +0 -23
- package/dist/cjs/stories/tests/48-ExternalScrollLateParentTests.stories.d.ts +0 -45
- package/dist/cjs/stories/tests/49-AutoWidthAutoExpandTests.stories.d.ts +0 -151
- package/dist/cjs/stories/tests/50-ContainerResizePerformanceTests.stories.d.ts +0 -56
- package/dist/cjs/stories/tests/51-RowGroupReExpandTests.stories.d.ts +0 -78
- package/dist/cjs/stories/tests/testUtils.d.ts +0 -38
- package/dist/cjs/stories/utils.d.ts +0 -42
- package/dist/cjs/stories/vanillaStoryConfig.d.ts +0 -156
- package/dist/src/consts/column-constraints.d.ts +0 -58
- package/dist/src/consts/general-consts.d.ts +0 -32
- package/dist/src/core/SimpleTableVanilla.d.ts +0 -369
- package/dist/src/core/dom/DOMManager.d.ts +0 -52
- package/dist/src/core/initialization/TableInitializer.d.ts +0 -34
- package/dist/src/core/rendering/RenderOrchestrator.d.ts +0 -172
- package/dist/src/core/rendering/TableRenderer.d.ts +0 -120
- package/dist/src/hooks/expandedDepths.d.ts +0 -69
- package/dist/src/hooks/handleOutsideClick.d.ts +0 -50
- package/dist/src/hooks/previousValue.d.ts +0 -30
- package/dist/src/icons/AngleDownIcon.d.ts +0 -1
- package/dist/src/icons/AngleLeftIcon.d.ts +0 -1
- package/dist/src/icons/AngleRightIcon.d.ts +0 -1
- package/dist/src/icons/AngleUpIcon.d.ts +0 -1
- package/dist/src/icons/AscIcon.d.ts +0 -1
- package/dist/src/icons/CheckIcon.d.ts +0 -1
- package/dist/src/icons/DescIcon.d.ts +0 -1
- package/dist/src/icons/DragIcon.d.ts +0 -1
- package/dist/src/icons/FilterIcon.d.ts +0 -1
- package/dist/src/icons/SelectIcon.d.ts +0 -1
- package/dist/src/index.d.ts +0 -58
- package/dist/src/managers/AnimationCoordinator.d.ts +0 -356
- package/dist/src/managers/AutoScaleManager.d.ts +0 -33
- package/dist/src/managers/DimensionManager.d.ts +0 -84
- package/dist/src/managers/RowManager.d.ts +0 -56
- package/dist/src/managers/ScrollManager.d.ts +0 -38
- package/dist/src/managers/SelectionManager/mouseUtils.d.ts +0 -16
- package/dist/src/managers/TableManager.d.ts +0 -72
- package/dist/src/types/AnimationsConfig.d.ts +0 -16
- package/dist/src/types/Cell.d.ts +0 -7
- package/dist/src/types/CellChangeProps.d.ts +0 -9
- package/dist/src/types/CellClickProps.d.ts +0 -11
- package/dist/src/types/CellValue.d.ts +0 -2
- package/dist/src/types/FilterTypes.d.ts +0 -31
- package/dist/src/types/FooterPosition.d.ts +0 -3
- package/dist/src/types/GenerateRowIdParams.d.ts +0 -11
- package/dist/src/types/GetRowId.d.ts +0 -16
- package/dist/src/types/HandleResizeStartProps.d.ts +0 -25
- package/dist/src/types/HeaderDropdownProps.d.ts +0 -14
- package/dist/src/types/HeaderRendererProps.d.ts +0 -17
- package/dist/src/types/OnNextPage.d.ts +0 -2
- package/dist/src/types/OnRowGroupExpandProps.d.ts +0 -16
- package/dist/src/types/OnSortProps.d.ts +0 -3
- package/dist/src/types/PanelSection.d.ts +0 -1
- package/dist/src/types/Pinned.d.ts +0 -1
- package/dist/src/types/PivotTypes.d.ts +0 -37
- package/dist/src/types/QuickFilterTypes.d.ts +0 -21
- package/dist/src/types/Row.d.ts +0 -3
- package/dist/src/types/RowButton.d.ts +0 -6
- package/dist/src/types/RowId.d.ts +0 -1
- package/dist/src/types/RowSelectionChangeProps.d.ts +0 -7
- package/dist/src/types/RowState.d.ts +0 -12
- package/dist/src/types/RowStateRendererProps.d.ts +0 -18
- package/dist/src/types/SelectionType.d.ts +0 -7
- package/dist/src/types/SimpleTableConfig.d.ts +0 -124
- package/dist/src/types/SimpleTableProps.d.ts +0 -125
- package/dist/src/types/SortColumn.d.ts +0 -8
- package/dist/src/types/TableAPI.d.ts +0 -82
- package/dist/src/types/TableBodyProps.d.ts +0 -20
- package/dist/src/types/TableHeaderProps.d.ts +0 -17
- package/dist/src/types/TableHeaderSectionProps.d.ts +0 -19
- package/dist/src/types/Theme.d.ts +0 -2
- package/dist/src/utils/accordionAnimation.d.ts +0 -25
- package/dist/src/utils/bodyCell/content.d.ts +0 -5
- package/dist/src/utils/bodyCell/editing.d.ts +0 -4
- package/dist/src/utils/bodyCell/editors/enumDropdown.d.ts +0 -2
- package/dist/src/utils/bodyCell/eventTracking.d.ts +0 -3
- package/dist/src/utils/bodyCell/expansion.d.ts +0 -12
- package/dist/src/utils/bodyCell/styling.d.ts +0 -11
- package/dist/src/utils/cellScrollUtils.d.ts +0 -10
- package/dist/src/utils/cellUtils.d.ts +0 -18
- package/dist/src/utils/charts/createBarChart.d.ts +0 -20
- package/dist/src/utils/charts/createLineAreaChart.d.ts +0 -25
- package/dist/src/utils/columnEditor/createColumnEditorPopout.d.ts +0 -23
- package/dist/src/utils/columnIndicesUtils.d.ts +0 -15
- package/dist/src/utils/csvExportUtils.d.ts +0 -14
- package/dist/src/utils/dateUtils.d.ts +0 -18
- package/dist/src/utils/filterUtils.d.ts +0 -5
- package/dist/src/utils/filters/createBooleanFilter.d.ts +0 -15
- package/dist/src/utils/filters/createCustomSelect.d.ts +0 -20
- package/dist/src/utils/filters/createDateFilter.d.ts +0 -15
- package/dist/src/utils/filters/createDatePicker.d.ts +0 -10
- package/dist/src/utils/filters/createDropdown.d.ts +0 -33
- package/dist/src/utils/filters/createEnumFilter.d.ts +0 -15
- package/dist/src/utils/filters/createFilterActions.d.ts +0 -12
- package/dist/src/utils/filters/createFilterInput.d.ts +0 -16
- package/dist/src/utils/filters/createStringFilter.d.ts +0 -15
- package/dist/src/utils/footer/createTableFooter.d.ts +0 -21
- package/dist/src/utils/formatters.d.ts +0 -3
- package/dist/src/utils/generalUtils.d.ts +0 -4
- package/dist/src/utils/headerCell/dragging.d.ts +0 -5
- package/dist/src/utils/headerCell/styling.d.ts +0 -7
- package/dist/src/utils/headerCellRenderer.d.ts +0 -4
- package/dist/src/utils/headerUtils.d.ts +0 -41
- package/dist/src/utils/infiniteScrollUtils.d.ts +0 -145
- package/dist/src/utils/loadingPlaceholderUtils.d.ts +0 -11
- package/dist/src/utils/pinnedColumnUtils.d.ts +0 -29
- package/dist/src/utils/pivot/pivotRows.d.ts +0 -16
- package/dist/src/utils/quickFilterUtils.d.ts +0 -14
- package/dist/src/utils/resizeUtils/compensation.d.ts +0 -17
- package/dist/src/utils/resizeUtils/index.d.ts +0 -26
- package/dist/src/utils/resizeUtils/parentHeaderResize.d.ts +0 -11
- package/dist/src/utils/resizeUtils/sectionWidths.d.ts +0 -36
- package/dist/src/utils/rowProcessing.d.ts +0 -65
- package/dist/src/utils/rowSelectionUtils.d.ts +0 -62
- package/dist/src/utils/rowUtils.d.ts +0 -187
- package/dist/src/utils/sortUtils.d.ts +0 -8
- package/dist/src/utils/stateRowRenderer.d.ts +0 -15
- package/dist/stories/data/aggregate-data.d.ts +0 -5
- package/dist/stories/data/athlete-data.d.ts +0 -3
- package/dist/stories/data/retail-data.d.ts +0 -3
- package/dist/stories/data/saas-data.d.ts +0 -6
- package/dist/stories/data/space-data.d.ts +0 -3
- package/dist/stories/docs/Examples.stories.d.ts +0 -18
- package/dist/stories/docs/Features.stories.d.ts +0 -54
- package/dist/stories/docs/GettingStarted.stories.d.ts +0 -7
- package/dist/stories/docs/storyArgs.d.ts +0 -155
- package/dist/stories/examples/AdvancedSortingExample.d.ts +0 -6
- package/dist/stories/examples/AggregateExample.d.ts +0 -7
- package/dist/stories/examples/AlignmentExample.d.ts +0 -10
- package/dist/stories/examples/AutoExpandColumnsExample.d.ts +0 -7
- package/dist/stories/examples/BasicExample.d.ts +0 -12
- package/dist/stories/examples/BasicRowGrouping.d.ts +0 -11
- package/dist/stories/examples/CSVExportFormattingExample.d.ts +0 -12
- package/dist/stories/examples/CSVExportSingleRowChildrenExample.d.ts +0 -6
- package/dist/stories/examples/CellHighlighting.d.ts +0 -7
- package/dist/stories/examples/CellRenderer.d.ts +0 -7
- package/dist/stories/examples/ChartsExample.d.ts +0 -13
- package/dist/stories/examples/ClayExample.d.ts +0 -14
- package/dist/stories/examples/ClipboardFormattingExample.d.ts +0 -12
- package/dist/stories/examples/CollapsibleColumnsExample.d.ts +0 -13
- package/dist/stories/examples/ColumnVisibilityAPIExample.d.ts +0 -7
- package/dist/stories/examples/ColumnWidthChangeExample.d.ts +0 -6
- package/dist/stories/examples/CustomHeaderRenderingExample.d.ts +0 -2
- package/dist/stories/examples/DynamicHeadersExample.d.ts +0 -5
- package/dist/stories/examples/DynamicNestedTableExample.d.ts +0 -7
- package/dist/stories/examples/DynamicRowLoadingExample.d.ts +0 -5
- package/dist/stories/examples/DynamicRowLoadingWithExternalSortExample.d.ts +0 -6
- package/dist/stories/examples/EditableCells.d.ts +0 -8
- package/dist/stories/examples/ExpansionControlExample.d.ts +0 -6
- package/dist/stories/examples/ExternalFilterExample.d.ts +0 -5
- package/dist/stories/examples/ExternalSortExample.d.ts +0 -6
- package/dist/stories/examples/HeaderInclusionExample.d.ts +0 -5
- package/dist/stories/examples/HiddenColumnsExample.d.ts +0 -9
- package/dist/stories/examples/InfiniteScroll.d.ts +0 -5
- package/dist/stories/examples/LiveUpdates.d.ts +0 -5
- package/dist/stories/examples/LoadingStateExample.d.ts +0 -2
- package/dist/stories/examples/NestedAccessorExample.d.ts +0 -8
- package/dist/stories/examples/NestedGridExample.d.ts +0 -5
- package/dist/stories/examples/Pagination.d.ts +0 -12
- package/dist/stories/examples/PaginationAPIExample.d.ts +0 -8
- package/dist/stories/examples/PivotExample.d.ts +0 -16
- package/dist/stories/examples/ProgrammaticFilterExample.d.ts +0 -5
- package/dist/stories/examples/ProgrammaticSortExample.d.ts +0 -5
- package/dist/stories/examples/QuickFilterExample.d.ts +0 -5
- package/dist/stories/examples/RadioStationsExample.d.ts +0 -3
- package/dist/stories/examples/RowButtonsExample.d.ts +0 -14
- package/dist/stories/examples/RowHeightExample.d.ts +0 -8
- package/dist/stories/examples/RowSelectionExample.d.ts +0 -11
- package/dist/stories/examples/SelectableCells.d.ts +0 -14
- package/dist/stories/examples/ServerSidePaginationExample.d.ts +0 -2
- package/dist/stories/examples/Theming.d.ts +0 -12
- package/dist/stories/examples/TooltipExample.d.ts +0 -8
- package/dist/stories/examples/WindowInfiniteScroll.d.ts +0 -3
- package/dist/stories/examples/billing-example/BillingExample.d.ts +0 -13
- package/dist/stories/examples/billing-example/billing-headers.d.ts +0 -5
- package/dist/stories/examples/crypto/CryptoExample.d.ts +0 -14
- package/dist/stories/examples/crypto/crypto-data.d.ts +0 -30
- package/dist/stories/examples/crypto/crypto-headers.d.ts +0 -5
- package/dist/stories/examples/custom-theme/CustomThemeDemo.d.ts +0 -2
- package/dist/stories/examples/filter-example/FilterExample.d.ts +0 -9
- package/dist/stories/examples/filter-example/filter-headers.d.ts +0 -5
- package/dist/stories/examples/finance-example/FinancialExample.d.ts +0 -8
- package/dist/stories/examples/finance-example/finance-headers.d.ts +0 -5
- package/dist/stories/examples/infrastructure/InfrastructureExample.d.ts +0 -9
- package/dist/stories/examples/infrastructure/infrastructure-data.d.ts +0 -5
- package/dist/stories/examples/infrastructure/infrastructure-headers.d.ts +0 -5
- package/dist/stories/examples/leads/LeadsExample.d.ts +0 -8
- package/dist/stories/examples/leads/leads-data.d.ts +0 -5
- package/dist/stories/examples/leads/leads-headers.d.ts +0 -6
- package/dist/stories/examples/manufacturing/ManufacturingExample.d.ts +0 -10
- package/dist/stories/examples/manufacturing/manufacturing-headers.d.ts +0 -5
- package/dist/stories/examples/music/MusicExample.d.ts +0 -13
- package/dist/stories/examples/music/MusicWindowScrollExample.d.ts +0 -5
- package/dist/stories/examples/music/music-headers.d.ts +0 -5
- package/dist/stories/examples/music/music-window.data.d.ts +0 -47
- package/dist/stories/examples/pinned-columns/PinnedColumns.d.ts +0 -13
- package/dist/stories/examples/row-grouping/RowGrouping.d.ts +0 -8
- package/dist/stories/examples/sales-example/SalesExample.d.ts +0 -14
- package/dist/stories/examples/sales-example/sales-headers.d.ts +0 -6
- package/dist/stories/tests/01-BasicStructureTests.stories.d.ts +0 -119
- package/dist/stories/tests/02-ColumnSortingTests.stories.d.ts +0 -114
- package/dist/stories/tests/03-ColumnFilteringTests.stories.d.ts +0 -86
- package/dist/stories/tests/04-PaginationTests.stories.d.ts +0 -94
- package/dist/stories/tests/05-RowGroupingTests.stories.d.ts +0 -204
- package/dist/stories/tests/06-CellEditingTests.stories.d.ts +0 -61
- package/dist/stories/tests/07-RowSelectionTests.stories.d.ts +0 -101
- package/dist/stories/tests/08-ColumnWidthTests.stories.d.ts +0 -99
- package/dist/stories/tests/09-ColumnAlignmentTests.stories.d.ts +0 -61
- package/dist/stories/tests/10-ColumnPinningTests.stories.d.ts +0 -115
- package/dist/stories/tests/11-ColumnReorderingTests.stories.d.ts +0 -122
- package/dist/stories/tests/12-CellSelectionTests.stories.d.ts +0 -212
- package/dist/stories/tests/13-ColumnResizeTests.stories.d.ts +0 -101
- package/dist/stories/tests/14-LiveUpdatesTests.stories.d.ts +0 -28
- package/dist/stories/tests/15-ColumnVisibilityTests.stories.d.ts +0 -143
- package/dist/stories/tests/16-CsvExportTests.stories.d.ts +0 -133
- package/dist/stories/tests/17-NestedTablesTests.stories.d.ts +0 -105
- package/dist/stories/tests/18-QuickFilterTests.stories.d.ts +0 -120
- package/dist/stories/tests/19-AccessibilityTests.stories.d.ts +0 -39
- package/dist/stories/tests/20-CollapsibleColumnsTests.stories.d.ts +0 -104
- package/dist/stories/tests/21-ColumnSelectionTests.stories.d.ts +0 -31
- package/dist/stories/tests/22-LoadingStateTests.stories.d.ts +0 -94
- package/dist/stories/tests/23-EmptyStateTests.stories.d.ts +0 -39
- package/dist/stories/tests/24-FooterRendererTests.stories.d.ts +0 -63
- package/dist/stories/tests/25-HeaderRendererTests.stories.d.ts +0 -58
- package/dist/stories/tests/26-CellRendererTests.stories.d.ts +0 -55
- package/dist/stories/tests/27-ValueFormatterTests.stories.d.ts +0 -53
- package/dist/stories/tests/28-CellClickTests.stories.d.ts +0 -23
- package/dist/stories/tests/29-TooltipsTests.stories.d.ts +0 -31
- package/dist/stories/tests/30-AggregateFunctionsTests.stories.d.ts +0 -63
- package/dist/stories/tests/31-ChartColumnsTests.stories.d.ts +0 -54
- package/dist/stories/tests/32-ThemesTests.stories.d.ts +0 -104
- package/dist/stories/tests/33-CustomThemeTests.stories.d.ts +0 -150
- package/dist/stories/tests/34-CustomIconsTests.stories.d.ts +0 -63
- package/dist/stories/tests/35-HideHeaderFooterTests.stories.d.ts +0 -31
- package/dist/stories/tests/36-InfiniteScrollTests.stories.d.ts +0 -23
- package/dist/stories/tests/37-TableRefMethodsTests.stories.d.ts +0 -160
- package/dist/stories/tests/38-NestedHeadersTests.stories.d.ts +0 -23
- package/dist/stories/tests/39-AutoExpandColumnsTests.stories.d.ts +0 -398
- package/dist/stories/tests/40-MaxHeightScrollTests.stories.d.ts +0 -37
- package/dist/stories/tests/41-CellAnimationsTests.stories.d.ts +0 -237
- package/dist/stories/tests/42-CellAnimationsVirtualizationTests.stories.d.ts +0 -251
- package/dist/stories/tests/43-CollapseExpandAnimationsTests.stories.d.ts +0 -63
- package/dist/stories/tests/44-ExternalScrollTests.stories.d.ts +0 -53
- package/dist/stories/tests/45-AriaSemanticsTests.stories.d.ts +0 -83
- package/dist/stories/tests/45-PivotTests.stories.d.ts +0 -8
- package/dist/stories/tests/46-AutoSizeColumnsTests.stories.d.ts +0 -370
- package/dist/stories/tests/47-DeferredHeadersTests.stories.d.ts +0 -23
- package/dist/stories/tests/48-ExternalScrollLateParentTests.stories.d.ts +0 -45
- package/dist/stories/tests/49-AutoWidthAutoExpandTests.stories.d.ts +0 -151
- package/dist/stories/tests/50-ContainerResizePerformanceTests.stories.d.ts +0 -56
- package/dist/stories/tests/51-RowGroupReExpandTests.stories.d.ts +0 -78
- package/dist/stories/tests/testUtils.d.ts +0 -38
- package/dist/stories/utils.d.ts +0 -42
- package/dist/stories/vanillaStoryConfig.d.ts +0 -156
|
@@ -1,356 +1,356 @@
|
|
|
1
|
-
export interface AnimationCoordinatorOptions {
|
|
2
|
-
duration?: number;
|
|
3
|
-
easing?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface CellPosition {
|
|
6
|
-
left: number;
|
|
7
|
-
top: number;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* FLIP-style animation coordinator for body cells with virtualization awareness.
|
|
13
|
-
*
|
|
14
|
-
* Triggered explicitly via {@link captureSnapshot} (before a layout-affecting
|
|
15
|
-
* change) and {@link play} (after the renderer has placed cells at their new
|
|
16
|
-
* positions).
|
|
17
|
-
*
|
|
18
|
-
* Three classes of cells participate in an animation:
|
|
19
|
-
* - Persistent cells (visible before AND after): the same DOM node moves to
|
|
20
|
-
* a new `top`/`left`; FLIP slides it from the old visual spot.
|
|
21
|
-
* - Incoming cells (off-screen before, in DOM after): the renderer creates
|
|
22
|
-
* them at their new position; if the snapshot has their pre-change
|
|
23
|
-
* position (computed for ALL rows, not just the band), FLIP slides them
|
|
24
|
-
* in from there. The portion that's outside the body's overflow clip is
|
|
25
|
-
* never painted, so cells appear to slide in from the viewport edge.
|
|
26
|
-
* - Outgoing cells (in DOM before, off-screen after): the renderer hands
|
|
27
|
-
* them to {@link retainCell} along with their post-change off-screen
|
|
28
|
-
* position; FLIP slides them out to that position, then removes them.
|
|
29
|
-
*/
|
|
30
|
-
export declare class AnimationCoordinator {
|
|
31
|
-
private enabled;
|
|
32
|
-
private duration;
|
|
33
|
-
private easing;
|
|
34
|
-
/** Pre-change positions for any cell we want to consider for animation. */
|
|
35
|
-
private snapshot;
|
|
36
|
-
/**
|
|
37
|
-
* One-shot synthetic origins for incoming cells that have no entry in the
|
|
38
|
-
* captured snapshot (e.g. rows/columns that did not exist in the pre-render
|
|
39
|
-
* state because they were inside a collapsed group). Used by accordion
|
|
40
|
-
* animations so a newly-visible cell unfolds from its parent's position
|
|
41
|
-
* rather than appearing in place. Cleared at the end of {@link play}.
|
|
42
|
-
*/
|
|
43
|
-
private incomingOrigins;
|
|
44
|
-
/**
|
|
45
|
-
* Accessors that were already renderable (visible leaf/group columns) in the
|
|
46
|
-
* pre-change layout for an in-flight accordion-horizontal toggle. Set once
|
|
47
|
-
* per collapse/expand render and consumed by the renderers' grow-from-zero
|
|
48
|
-
* gate so a column that merely re-enters the virtualization band (because the
|
|
49
|
-
* collapsed group shrank the content width and clamped scrollLeft) is NOT
|
|
50
|
-
* mistaken for a freshly-expanded column and animated from width 0.
|
|
51
|
-
*
|
|
52
|
-
* Header cells have no full pre-change conceptual layout the way body cells do
|
|
53
|
-
* (see SectionRenderer.getCurrentBodyLayouts), so `hasSnapshotEntry` alone
|
|
54
|
-
* can't tell "newly visible" apart from "scrolled back into view". This set
|
|
55
|
-
* supplies the missing pre-change visibility signal. Cleared at the end of
|
|
56
|
-
* {@link play}.
|
|
57
|
-
*/
|
|
58
|
-
private accordionPreVisibleAccessors;
|
|
59
|
-
private inFlight;
|
|
60
|
-
/** Outgoing cells the renderer handed off; keyed per container so play() finds them. */
|
|
61
|
-
private retainedCells;
|
|
62
|
-
private prefersReducedMotion;
|
|
63
|
-
/**
|
|
64
|
-
* Per-render cache of scroller layout metrics. Reading
|
|
65
|
-
* `scrollHeight`/`clientHeight`/etc. after a style mutation forces a sync
|
|
66
|
-
* layout flush; without this cache, scaleFlipDistance() forces a fresh
|
|
67
|
-
* flush for every cell in the retain/play loops, turning a single sort
|
|
68
|
-
* into hundreds of layout passes (observed: 513ms in `msRemove` for ~287
|
|
69
|
-
* cells, growing across consecutive sorts as DOM size grows). The cache
|
|
70
|
-
* is cleared at the boundaries of a render cycle (captureSnapshot start
|
|
71
|
-
* and play end / cancel) since column count and section heights are
|
|
72
|
-
* stable within a single sort.
|
|
73
|
-
*/
|
|
74
|
-
private scrollerMetricsCache;
|
|
75
|
-
/**
|
|
76
|
-
* Vertical scroller metrics override for external/page-scroll mode. When the
|
|
77
|
-
* table has no internal vertical overflow (it grows to its natural height and
|
|
78
|
-
* a parent element / the window scrolls), the body container's own
|
|
79
|
-
* clientHeight/scrollHeight no longer describe the visible viewport, so
|
|
80
|
-
* {@link scaleFlipDistance} can't bound the FLIP journey and sort cells slide
|
|
81
|
-
* the full conceptual distance. The vanilla table pushes the real visible
|
|
82
|
-
* viewport here (from the same `getExternalScrollMetrics` the virtualizer
|
|
83
|
-
* uses) so the y-axis FLIP scaling matches the on-screen viewport. `null`
|
|
84
|
-
* when external scroll is inactive — internal scroller metrics are used as-is.
|
|
85
|
-
*/
|
|
86
|
-
private externalVerticalScroll;
|
|
87
|
-
/**
|
|
88
|
-
* The currently-scheduled (not-yet-started) FLIP frame. play() defers the
|
|
89
|
-
* transition start by two animation frames so the inverted "First" frame
|
|
90
|
-
* gets painted before the transition fires. Spam-clicking sort triggers a
|
|
91
|
-
* full re-render + play() inside that two-frame window: without coalescing,
|
|
92
|
-
* the stale chain's startTransition zeroes the transforms the newer cycle
|
|
93
|
-
* just inverted (a frame early), so the final transition animates
|
|
94
|
-
* identity→identity and nothing visibly moves — and many captured nodes are
|
|
95
|
-
* detached by the intervening render before they ever transition. Tracking
|
|
96
|
-
* the pending frame lets a new play() cancel the prior cycle and reset the
|
|
97
|
-
* transforms it left behind, so only the latest sort animates.
|
|
98
|
-
*/
|
|
99
|
-
private scheduledFlip;
|
|
100
|
-
/**
|
|
101
|
-
* Invoked immediately BEFORE a retained/ghost element is permanently removed
|
|
102
|
-
* from the DOM (FLIP/shrink/cancel/destroy teardown). Lets framework adapters
|
|
103
|
-
* tear down renderer subtrees (React portals, etc.) mounted into the element
|
|
104
|
-
* before it's discarded. NOT called on reuse/reparent paths
|
|
105
|
-
* ({@link claimRetainedForReuse} success), so a reclaimed ghost keeps its
|
|
106
|
-
* content.
|
|
107
|
-
*/
|
|
108
|
-
private onHostDiscard?;
|
|
109
|
-
constructor(opts?: AnimationCoordinatorOptions);
|
|
110
|
-
/**
|
|
111
|
-
* Register the callback fired before a ghost/retained element is permanently
|
|
112
|
-
* removed (see {@link onHostDiscard}). Additive: passing `undefined` disables it.
|
|
113
|
-
*/
|
|
114
|
-
setOnHostDiscard(cb: ((host: HTMLElement) => void) | undefined): void;
|
|
115
|
-
setEnabled(enabled: boolean): void;
|
|
116
|
-
setDuration(duration: number): void;
|
|
117
|
-
setEasing(easing: string): void;
|
|
118
|
-
isEnabled(): boolean;
|
|
119
|
-
isInFlight(cellId: string): boolean;
|
|
120
|
-
/** True while any FLIP / retained-cell transition is still running. */
|
|
121
|
-
hasInFlight(): boolean;
|
|
122
|
-
getDuration(): number;
|
|
123
|
-
getEasing(): string;
|
|
124
|
-
/**
|
|
125
|
-
* Register synthetic pre-change origins for incoming cells that did not
|
|
126
|
-
* exist in the captured snapshot. {@link play} consults this map before
|
|
127
|
-
* giving up on a cell that has no `before` snapshot entry; matching cells
|
|
128
|
-
* FLIP from the override origin to their final position.
|
|
129
|
-
*
|
|
130
|
-
* The map is consumed by the next `play()` call and cleared, so callers
|
|
131
|
-
* must set it after `captureSnapshot` and before the render that creates
|
|
132
|
-
* the corresponding cells.
|
|
133
|
-
*/
|
|
134
|
-
setIncomingOrigins(origins: Map<string, CellPosition> | null): void;
|
|
135
|
-
/**
|
|
136
|
-
* Register the set of accessors that were renderable in the pre-change layout
|
|
137
|
-
* of an accordion-horizontal toggle. Must be set after `captureSnapshot` and
|
|
138
|
-
* before the render that creates cells. Consumed and cleared by the next
|
|
139
|
-
* {@link play}. Pass `null` (e.g. for vertical/row accordions) to disable the
|
|
140
|
-
* re-entry guard so behavior is unchanged.
|
|
141
|
-
*/
|
|
142
|
-
setAccordionPreVisibleAccessors(accessors: Set<string> | null): void;
|
|
143
|
-
/**
|
|
144
|
-
* True when `accessor` was already a renderable column before the current
|
|
145
|
-
* accordion-horizontal toggle. Renderers use this to skip the grow-from-zero
|
|
146
|
-
* animation for columns that only re-entered the virtualization band rather
|
|
147
|
-
* than genuinely becoming visible from an expand.
|
|
148
|
-
*/
|
|
149
|
-
wasRenderableBeforeAccordion(accessor: string): boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Read scroller layout metrics for `container`, caching the result for the
|
|
152
|
-
* remainder of the current render cycle. Subsequent calls in the same
|
|
153
|
-
* cycle (e.g. for every cell in a retain or play loop) skip the DOM read,
|
|
154
|
-
* which would otherwise force a synchronous layout flush after each style
|
|
155
|
-
* mutation in the loop.
|
|
156
|
-
*/
|
|
157
|
-
private getScrollerMetrics;
|
|
158
|
-
/**
|
|
159
|
-
* Supply (or clear) the vertical scroller metrics override used by
|
|
160
|
-
* {@link scaleFlipDistance} in external/page-scroll mode. Must be set before
|
|
161
|
-
* `captureSnapshot`/`retainCell`/`play` so the whole FLIP cycle scales
|
|
162
|
-
* against the real visible viewport. Pass `null` to fall back to the body
|
|
163
|
-
* container's own metrics (internal scroll).
|
|
164
|
-
*/
|
|
165
|
-
setExternalVerticalScroll(metrics: {
|
|
166
|
-
clientHeight: number;
|
|
167
|
-
scrollHeight: number;
|
|
168
|
-
scrollTop: number;
|
|
169
|
-
} | null): void;
|
|
170
|
-
private clearScrollerMetricsCache;
|
|
171
|
-
/**
|
|
172
|
-
* Capture pre-change positions for cells we may want to animate.
|
|
173
|
-
*
|
|
174
|
-
* @param args.containers Body containers; rendered cells are read from the DOM.
|
|
175
|
-
* @param args.preLayouts Optional per-container conceptual layout. Should
|
|
176
|
-
* include positions for ALL rows in the dataset (not just the visible
|
|
177
|
-
* band) so cells that newly enter the band can FLIP in from their actual
|
|
178
|
-
* pre-change location and cells that leave the band can FLIP out to it.
|
|
179
|
-
*/
|
|
180
|
-
captureSnapshot(args: {
|
|
181
|
-
containers: Array<HTMLElement | null | undefined>;
|
|
182
|
-
preLayouts?: Map<HTMLElement, Map<string, CellPosition>>;
|
|
183
|
-
}): void;
|
|
184
|
-
/**
|
|
185
|
-
* The renderer asks before removing a cell whether the coordinator wants to
|
|
186
|
-
* keep it for an out-animation.
|
|
187
|
-
*/
|
|
188
|
-
shouldRetain(cellId: string): boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Whether the captured snapshot has an entry for the given cellId. The
|
|
191
|
-
* accordion expand path uses this to detect "newly visible" cells (no
|
|
192
|
-
* pre-change layout) so it can initialize them at zero size and let the
|
|
193
|
-
* CSS transition grow them to full size.
|
|
194
|
-
*/
|
|
195
|
-
hasSnapshotEntry(cellId: string): boolean;
|
|
196
|
-
/**
|
|
197
|
-
* True when the snapshot has an entry for `cellId` AND the cell was
|
|
198
|
-
* rendered in `currentContainer` at snapshot time. Returns false when the
|
|
199
|
-
* cell came from a different container (cross-section pin/unpin) — its
|
|
200
|
-
* snapshot position is in another container's coordinate frame, so a
|
|
201
|
-
* FLIP applied locally would slide from a wrong visual origin and the
|
|
202
|
-
* destination renderer should treat the cell as fresh (accordion grow
|
|
203
|
-
* from 0 instead).
|
|
204
|
-
*
|
|
205
|
-
* Snapshot entries with `sourceContainer === null` (preLayouts /
|
|
206
|
-
* conceptual positions) are treated as same-container so the existing
|
|
207
|
-
* sort/reorder FLIP-from-off-screen behavior is preserved.
|
|
208
|
-
*/
|
|
209
|
-
hasSnapshotEntryInContainer(cellId: string, currentContainer: HTMLElement): boolean;
|
|
210
|
-
/**
|
|
211
|
-
* Whether a vertical position transition should be animated. Rows that live
|
|
212
|
-
* only in the virtualization padding band (above/below the visible viewport)
|
|
213
|
-
* should teleport rather than FLIP — otherwise a mid-scroll sort animates
|
|
214
|
-
* hundreds of off-screen rows through the viewport at once.
|
|
215
|
-
*/
|
|
216
|
-
shouldAnimateVerticalTransition(args: {
|
|
217
|
-
beforeTop: number;
|
|
218
|
-
afterTop: number;
|
|
219
|
-
cellHeight: number;
|
|
220
|
-
container: HTMLElement;
|
|
221
|
-
}): boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Whether a horizontal position transition should be animated. Same viewport
|
|
224
|
-
* gate as {@link shouldAnimateVerticalTransition} but for column slides.
|
|
225
|
-
*/
|
|
226
|
-
shouldAnimateHorizontalTransition(args: {
|
|
227
|
-
beforeLeft: number;
|
|
228
|
-
afterLeft: number;
|
|
229
|
-
cellWidth: number;
|
|
230
|
-
container: HTMLElement;
|
|
231
|
-
}): boolean;
|
|
232
|
-
/**
|
|
233
|
-
* Whether a cell's position change should participate in FLIP animation.
|
|
234
|
-
* Only axes that actually moved are checked against the viewport gate —
|
|
235
|
-
* a vertical sort must not inherit "visible" from an unchanged horizontal
|
|
236
|
-
* position (which would retain/mount every column in every padding-band row).
|
|
237
|
-
*/
|
|
238
|
-
shouldAnimateTransition(args: {
|
|
239
|
-
beforeTop: number;
|
|
240
|
-
afterTop: number;
|
|
241
|
-
beforeLeft: number;
|
|
242
|
-
afterLeft: number;
|
|
243
|
-
cellHeight: number;
|
|
244
|
-
cellWidth: number;
|
|
245
|
-
container: HTMLElement;
|
|
246
|
-
}): boolean;
|
|
247
|
-
/**
|
|
248
|
-
* Whether an incoming cell (in the snapshot but not previously in the DOM)
|
|
249
|
-
* should be mounted for this sort/reorder render. Padding-band rows that
|
|
250
|
-
* never intersect the visible viewport are deferred to the next scroll
|
|
251
|
-
* render so they do not pop into existence at animation start.
|
|
252
|
-
*/
|
|
253
|
-
shouldMountIncomingCell(args: {
|
|
254
|
-
cellId: string;
|
|
255
|
-
afterTop: number;
|
|
256
|
-
afterLeft: number;
|
|
257
|
-
cellHeight: number;
|
|
258
|
-
cellWidth: number;
|
|
259
|
-
container: HTMLElement;
|
|
260
|
-
}): boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Whether the cell currently paints inside the body scrollers' clip rects.
|
|
263
|
-
* Outgoing retain decisions use this as a fallback when {@link shouldAnimateTransition}
|
|
264
|
-
* rejects a cell based on `style.top`/`style.left` alone: virtualization padding
|
|
265
|
-
* rows can sit with their leading edge outside the scroll band while still being
|
|
266
|
-
* partially visible on screen (common at the bottom when scrolled to the end).
|
|
267
|
-
*/
|
|
268
|
-
isCellRenderedInScrollerViewport(element: HTMLElement, container: HTMLElement): boolean;
|
|
269
|
-
/**
|
|
270
|
-
* Whether an outgoing DOM cell at a vertical scroll extreme (top or bottom of
|
|
271
|
-
* the dataset) should be retained even when {@link shouldAnimateTransition}
|
|
272
|
-
* rejects it on leading-edge grounds. Virtualization keeps a few overscan
|
|
273
|
-
* rows mounted above/below the strict viewport at max scroll; those rows
|
|
274
|
-
* must still slide out as ghosts when a sort evicts them.
|
|
275
|
-
*/
|
|
276
|
-
shouldRetainDomCellAtScrollExtrema(cellId: string, container: HTMLElement): boolean;
|
|
277
|
-
/**
|
|
278
|
-
* Hand a cell that the renderer would otherwise remove to the coordinator.
|
|
279
|
-
* The coordinator updates its absolute positioning to the post-change layout
|
|
280
|
-
* and will animate it from the snapshotted pre-change visual position to
|
|
281
|
-
* that new position during {@link play}, then remove it from the DOM.
|
|
282
|
-
*
|
|
283
|
-
* The new position can be off-screen (e.g. the row sorted to a position
|
|
284
|
-
* outside the visible band) — the body container's `overflow: hidden`
|
|
285
|
-
* naturally clips the cell as it slides past the viewport edge.
|
|
286
|
-
*/
|
|
287
|
-
retainCell(args: {
|
|
288
|
-
cellId: string;
|
|
289
|
-
element: HTMLElement;
|
|
290
|
-
container: HTMLElement;
|
|
291
|
-
newPosition: CellPosition;
|
|
292
|
-
}): void;
|
|
293
|
-
/**
|
|
294
|
-
* Take ownership of a retained (outgoing) ghost element so the renderer can
|
|
295
|
-
* promote it back to a live cell — rather than tearing it down and creating
|
|
296
|
-
* a fresh node — when its row becomes visible again. Returns the element
|
|
297
|
-
* with its retained-only attributes/state stripped, or `null` if no ghost
|
|
298
|
-
* is currently retained for this id in the container.
|
|
299
|
-
*
|
|
300
|
-
* Reusing the ghost preserves DOM continuity: the next play() step reads
|
|
301
|
-
* the cell's mid-flight visual position from the snapshot (captured before
|
|
302
|
-
* the render) and FLIPs it from there to its new live destination, so the
|
|
303
|
-
* row glides instead of disappearing and a freshly created replacement
|
|
304
|
-
* doesn't pop into existence at a clipped FLIP entry point.
|
|
305
|
-
*/
|
|
306
|
-
claimRetainedForReuse(cellId: string, container: HTMLElement): HTMLElement | null;
|
|
307
|
-
/**
|
|
308
|
-
* Hand off a cell that the renderer would otherwise remove for an accordion
|
|
309
|
-
* shrink-out (column hide / pin-out from this section): the cell stays in
|
|
310
|
-
* place and its size in the named axis is animated to zero by the
|
|
311
|
-
* `.st-accordion-animating` CSS transition (width/height). Removed from the
|
|
312
|
-
* DOM after the transition completes.
|
|
313
|
-
*
|
|
314
|
-
* Used when there is no destination position for the cell in the current
|
|
315
|
-
* section's post-render layout — either because the column was hidden or
|
|
316
|
-
* because it moved to a different pinned section. In the moved-section
|
|
317
|
-
* case, the destination section creates a fresh cell that grows from zero
|
|
318
|
-
* width via the existing accordion incoming-cell path, so the visual
|
|
319
|
-
* effect is a synchronized shrink-here / grow-there pair rather than a
|
|
320
|
-
* cross-container slide (which would require translating coordinates
|
|
321
|
-
* between two different container coordinate frames).
|
|
322
|
-
*/
|
|
323
|
-
shrinkOutCell(args: {
|
|
324
|
-
cellId: string;
|
|
325
|
-
element: HTMLElement;
|
|
326
|
-
container: HTMLElement;
|
|
327
|
-
axis: "horizontal" | "vertical";
|
|
328
|
-
}): void;
|
|
329
|
-
/**
|
|
330
|
-
* Discard any retained cell with this id in the given container. Called by
|
|
331
|
-
* the renderer when it's about to create a fresh cell with the same id, so
|
|
332
|
-
* we don't have two DOM nodes claiming the same logical slot.
|
|
333
|
-
*/
|
|
334
|
-
discardRetainedIfPresent(cellId: string, container: HTMLElement): void;
|
|
335
|
-
/**
|
|
336
|
-
* Apply the FLIP invert + play step to every cell present in the snapshot
|
|
337
|
-
* that is now in the DOM (either as an actively rendered cell or as a
|
|
338
|
-
* retained cell). Clears the snapshot.
|
|
339
|
-
*/
|
|
340
|
-
play(args: {
|
|
341
|
-
containers: Array<HTMLElement | null | undefined>;
|
|
342
|
-
}): void;
|
|
343
|
-
/**
|
|
344
|
-
* Cancel every in-flight transition and clear any armed snapshot. Active
|
|
345
|
-
* cells snap to their final positions; retained cells are removed from the
|
|
346
|
-
* DOM so we don't leak nodes.
|
|
347
|
-
*/
|
|
348
|
-
cancel(): void;
|
|
349
|
-
destroy(): void;
|
|
350
|
-
private readPosition;
|
|
351
|
-
private startTransition;
|
|
352
|
-
private cancelInFlight;
|
|
353
|
-
private finalizeCell;
|
|
354
|
-
private finishElement;
|
|
355
|
-
private isCellRetained;
|
|
356
|
-
}
|
|
1
|
+
export interface AnimationCoordinatorOptions {
|
|
2
|
+
duration?: number;
|
|
3
|
+
easing?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CellPosition {
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* FLIP-style animation coordinator for body cells with virtualization awareness.
|
|
13
|
+
*
|
|
14
|
+
* Triggered explicitly via {@link captureSnapshot} (before a layout-affecting
|
|
15
|
+
* change) and {@link play} (after the renderer has placed cells at their new
|
|
16
|
+
* positions).
|
|
17
|
+
*
|
|
18
|
+
* Three classes of cells participate in an animation:
|
|
19
|
+
* - Persistent cells (visible before AND after): the same DOM node moves to
|
|
20
|
+
* a new `top`/`left`; FLIP slides it from the old visual spot.
|
|
21
|
+
* - Incoming cells (off-screen before, in DOM after): the renderer creates
|
|
22
|
+
* them at their new position; if the snapshot has their pre-change
|
|
23
|
+
* position (computed for ALL rows, not just the band), FLIP slides them
|
|
24
|
+
* in from there. The portion that's outside the body's overflow clip is
|
|
25
|
+
* never painted, so cells appear to slide in from the viewport edge.
|
|
26
|
+
* - Outgoing cells (in DOM before, off-screen after): the renderer hands
|
|
27
|
+
* them to {@link retainCell} along with their post-change off-screen
|
|
28
|
+
* position; FLIP slides them out to that position, then removes them.
|
|
29
|
+
*/
|
|
30
|
+
export declare class AnimationCoordinator {
|
|
31
|
+
private enabled;
|
|
32
|
+
private duration;
|
|
33
|
+
private easing;
|
|
34
|
+
/** Pre-change positions for any cell we want to consider for animation. */
|
|
35
|
+
private snapshot;
|
|
36
|
+
/**
|
|
37
|
+
* One-shot synthetic origins for incoming cells that have no entry in the
|
|
38
|
+
* captured snapshot (e.g. rows/columns that did not exist in the pre-render
|
|
39
|
+
* state because they were inside a collapsed group). Used by accordion
|
|
40
|
+
* animations so a newly-visible cell unfolds from its parent's position
|
|
41
|
+
* rather than appearing in place. Cleared at the end of {@link play}.
|
|
42
|
+
*/
|
|
43
|
+
private incomingOrigins;
|
|
44
|
+
/**
|
|
45
|
+
* Accessors that were already renderable (visible leaf/group columns) in the
|
|
46
|
+
* pre-change layout for an in-flight accordion-horizontal toggle. Set once
|
|
47
|
+
* per collapse/expand render and consumed by the renderers' grow-from-zero
|
|
48
|
+
* gate so a column that merely re-enters the virtualization band (because the
|
|
49
|
+
* collapsed group shrank the content width and clamped scrollLeft) is NOT
|
|
50
|
+
* mistaken for a freshly-expanded column and animated from width 0.
|
|
51
|
+
*
|
|
52
|
+
* Header cells have no full pre-change conceptual layout the way body cells do
|
|
53
|
+
* (see SectionRenderer.getCurrentBodyLayouts), so `hasSnapshotEntry` alone
|
|
54
|
+
* can't tell "newly visible" apart from "scrolled back into view". This set
|
|
55
|
+
* supplies the missing pre-change visibility signal. Cleared at the end of
|
|
56
|
+
* {@link play}.
|
|
57
|
+
*/
|
|
58
|
+
private accordionPreVisibleAccessors;
|
|
59
|
+
private inFlight;
|
|
60
|
+
/** Outgoing cells the renderer handed off; keyed per container so play() finds them. */
|
|
61
|
+
private retainedCells;
|
|
62
|
+
private prefersReducedMotion;
|
|
63
|
+
/**
|
|
64
|
+
* Per-render cache of scroller layout metrics. Reading
|
|
65
|
+
* `scrollHeight`/`clientHeight`/etc. after a style mutation forces a sync
|
|
66
|
+
* layout flush; without this cache, scaleFlipDistance() forces a fresh
|
|
67
|
+
* flush for every cell in the retain/play loops, turning a single sort
|
|
68
|
+
* into hundreds of layout passes (observed: 513ms in `msRemove` for ~287
|
|
69
|
+
* cells, growing across consecutive sorts as DOM size grows). The cache
|
|
70
|
+
* is cleared at the boundaries of a render cycle (captureSnapshot start
|
|
71
|
+
* and play end / cancel) since column count and section heights are
|
|
72
|
+
* stable within a single sort.
|
|
73
|
+
*/
|
|
74
|
+
private scrollerMetricsCache;
|
|
75
|
+
/**
|
|
76
|
+
* Vertical scroller metrics override for external/page-scroll mode. When the
|
|
77
|
+
* table has no internal vertical overflow (it grows to its natural height and
|
|
78
|
+
* a parent element / the window scrolls), the body container's own
|
|
79
|
+
* clientHeight/scrollHeight no longer describe the visible viewport, so
|
|
80
|
+
* {@link scaleFlipDistance} can't bound the FLIP journey and sort cells slide
|
|
81
|
+
* the full conceptual distance. The vanilla table pushes the real visible
|
|
82
|
+
* viewport here (from the same `getExternalScrollMetrics` the virtualizer
|
|
83
|
+
* uses) so the y-axis FLIP scaling matches the on-screen viewport. `null`
|
|
84
|
+
* when external scroll is inactive — internal scroller metrics are used as-is.
|
|
85
|
+
*/
|
|
86
|
+
private externalVerticalScroll;
|
|
87
|
+
/**
|
|
88
|
+
* The currently-scheduled (not-yet-started) FLIP frame. play() defers the
|
|
89
|
+
* transition start by two animation frames so the inverted "First" frame
|
|
90
|
+
* gets painted before the transition fires. Spam-clicking sort triggers a
|
|
91
|
+
* full re-render + play() inside that two-frame window: without coalescing,
|
|
92
|
+
* the stale chain's startTransition zeroes the transforms the newer cycle
|
|
93
|
+
* just inverted (a frame early), so the final transition animates
|
|
94
|
+
* identity→identity and nothing visibly moves — and many captured nodes are
|
|
95
|
+
* detached by the intervening render before they ever transition. Tracking
|
|
96
|
+
* the pending frame lets a new play() cancel the prior cycle and reset the
|
|
97
|
+
* transforms it left behind, so only the latest sort animates.
|
|
98
|
+
*/
|
|
99
|
+
private scheduledFlip;
|
|
100
|
+
/**
|
|
101
|
+
* Invoked immediately BEFORE a retained/ghost element is permanently removed
|
|
102
|
+
* from the DOM (FLIP/shrink/cancel/destroy teardown). Lets framework adapters
|
|
103
|
+
* tear down renderer subtrees (React portals, etc.) mounted into the element
|
|
104
|
+
* before it's discarded. NOT called on reuse/reparent paths
|
|
105
|
+
* ({@link claimRetainedForReuse} success), so a reclaimed ghost keeps its
|
|
106
|
+
* content.
|
|
107
|
+
*/
|
|
108
|
+
private onHostDiscard?;
|
|
109
|
+
constructor(opts?: AnimationCoordinatorOptions);
|
|
110
|
+
/**
|
|
111
|
+
* Register the callback fired before a ghost/retained element is permanently
|
|
112
|
+
* removed (see {@link onHostDiscard}). Additive: passing `undefined` disables it.
|
|
113
|
+
*/
|
|
114
|
+
setOnHostDiscard(cb: ((host: HTMLElement) => void) | undefined): void;
|
|
115
|
+
setEnabled(enabled: boolean): void;
|
|
116
|
+
setDuration(duration: number): void;
|
|
117
|
+
setEasing(easing: string): void;
|
|
118
|
+
isEnabled(): boolean;
|
|
119
|
+
isInFlight(cellId: string): boolean;
|
|
120
|
+
/** True while any FLIP / retained-cell transition is still running. */
|
|
121
|
+
hasInFlight(): boolean;
|
|
122
|
+
getDuration(): number;
|
|
123
|
+
getEasing(): string;
|
|
124
|
+
/**
|
|
125
|
+
* Register synthetic pre-change origins for incoming cells that did not
|
|
126
|
+
* exist in the captured snapshot. {@link play} consults this map before
|
|
127
|
+
* giving up on a cell that has no `before` snapshot entry; matching cells
|
|
128
|
+
* FLIP from the override origin to their final position.
|
|
129
|
+
*
|
|
130
|
+
* The map is consumed by the next `play()` call and cleared, so callers
|
|
131
|
+
* must set it after `captureSnapshot` and before the render that creates
|
|
132
|
+
* the corresponding cells.
|
|
133
|
+
*/
|
|
134
|
+
setIncomingOrigins(origins: Map<string, CellPosition> | null): void;
|
|
135
|
+
/**
|
|
136
|
+
* Register the set of accessors that were renderable in the pre-change layout
|
|
137
|
+
* of an accordion-horizontal toggle. Must be set after `captureSnapshot` and
|
|
138
|
+
* before the render that creates cells. Consumed and cleared by the next
|
|
139
|
+
* {@link play}. Pass `null` (e.g. for vertical/row accordions) to disable the
|
|
140
|
+
* re-entry guard so behavior is unchanged.
|
|
141
|
+
*/
|
|
142
|
+
setAccordionPreVisibleAccessors(accessors: Set<string> | null): void;
|
|
143
|
+
/**
|
|
144
|
+
* True when `accessor` was already a renderable column before the current
|
|
145
|
+
* accordion-horizontal toggle. Renderers use this to skip the grow-from-zero
|
|
146
|
+
* animation for columns that only re-entered the virtualization band rather
|
|
147
|
+
* than genuinely becoming visible from an expand.
|
|
148
|
+
*/
|
|
149
|
+
wasRenderableBeforeAccordion(accessor: string): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Read scroller layout metrics for `container`, caching the result for the
|
|
152
|
+
* remainder of the current render cycle. Subsequent calls in the same
|
|
153
|
+
* cycle (e.g. for every cell in a retain or play loop) skip the DOM read,
|
|
154
|
+
* which would otherwise force a synchronous layout flush after each style
|
|
155
|
+
* mutation in the loop.
|
|
156
|
+
*/
|
|
157
|
+
private getScrollerMetrics;
|
|
158
|
+
/**
|
|
159
|
+
* Supply (or clear) the vertical scroller metrics override used by
|
|
160
|
+
* {@link scaleFlipDistance} in external/page-scroll mode. Must be set before
|
|
161
|
+
* `captureSnapshot`/`retainCell`/`play` so the whole FLIP cycle scales
|
|
162
|
+
* against the real visible viewport. Pass `null` to fall back to the body
|
|
163
|
+
* container's own metrics (internal scroll).
|
|
164
|
+
*/
|
|
165
|
+
setExternalVerticalScroll(metrics: {
|
|
166
|
+
clientHeight: number;
|
|
167
|
+
scrollHeight: number;
|
|
168
|
+
scrollTop: number;
|
|
169
|
+
} | null): void;
|
|
170
|
+
private clearScrollerMetricsCache;
|
|
171
|
+
/**
|
|
172
|
+
* Capture pre-change positions for cells we may want to animate.
|
|
173
|
+
*
|
|
174
|
+
* @param args.containers Body containers; rendered cells are read from the DOM.
|
|
175
|
+
* @param args.preLayouts Optional per-container conceptual layout. Should
|
|
176
|
+
* include positions for ALL rows in the dataset (not just the visible
|
|
177
|
+
* band) so cells that newly enter the band can FLIP in from their actual
|
|
178
|
+
* pre-change location and cells that leave the band can FLIP out to it.
|
|
179
|
+
*/
|
|
180
|
+
captureSnapshot(args: {
|
|
181
|
+
containers: Array<HTMLElement | null | undefined>;
|
|
182
|
+
preLayouts?: Map<HTMLElement, Map<string, CellPosition>>;
|
|
183
|
+
}): void;
|
|
184
|
+
/**
|
|
185
|
+
* The renderer asks before removing a cell whether the coordinator wants to
|
|
186
|
+
* keep it for an out-animation.
|
|
187
|
+
*/
|
|
188
|
+
shouldRetain(cellId: string): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Whether the captured snapshot has an entry for the given cellId. The
|
|
191
|
+
* accordion expand path uses this to detect "newly visible" cells (no
|
|
192
|
+
* pre-change layout) so it can initialize them at zero size and let the
|
|
193
|
+
* CSS transition grow them to full size.
|
|
194
|
+
*/
|
|
195
|
+
hasSnapshotEntry(cellId: string): boolean;
|
|
196
|
+
/**
|
|
197
|
+
* True when the snapshot has an entry for `cellId` AND the cell was
|
|
198
|
+
* rendered in `currentContainer` at snapshot time. Returns false when the
|
|
199
|
+
* cell came from a different container (cross-section pin/unpin) — its
|
|
200
|
+
* snapshot position is in another container's coordinate frame, so a
|
|
201
|
+
* FLIP applied locally would slide from a wrong visual origin and the
|
|
202
|
+
* destination renderer should treat the cell as fresh (accordion grow
|
|
203
|
+
* from 0 instead).
|
|
204
|
+
*
|
|
205
|
+
* Snapshot entries with `sourceContainer === null` (preLayouts /
|
|
206
|
+
* conceptual positions) are treated as same-container so the existing
|
|
207
|
+
* sort/reorder FLIP-from-off-screen behavior is preserved.
|
|
208
|
+
*/
|
|
209
|
+
hasSnapshotEntryInContainer(cellId: string, currentContainer: HTMLElement): boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Whether a vertical position transition should be animated. Rows that live
|
|
212
|
+
* only in the virtualization padding band (above/below the visible viewport)
|
|
213
|
+
* should teleport rather than FLIP — otherwise a mid-scroll sort animates
|
|
214
|
+
* hundreds of off-screen rows through the viewport at once.
|
|
215
|
+
*/
|
|
216
|
+
shouldAnimateVerticalTransition(args: {
|
|
217
|
+
beforeTop: number;
|
|
218
|
+
afterTop: number;
|
|
219
|
+
cellHeight: number;
|
|
220
|
+
container: HTMLElement;
|
|
221
|
+
}): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Whether a horizontal position transition should be animated. Same viewport
|
|
224
|
+
* gate as {@link shouldAnimateVerticalTransition} but for column slides.
|
|
225
|
+
*/
|
|
226
|
+
shouldAnimateHorizontalTransition(args: {
|
|
227
|
+
beforeLeft: number;
|
|
228
|
+
afterLeft: number;
|
|
229
|
+
cellWidth: number;
|
|
230
|
+
container: HTMLElement;
|
|
231
|
+
}): boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Whether a cell's position change should participate in FLIP animation.
|
|
234
|
+
* Only axes that actually moved are checked against the viewport gate —
|
|
235
|
+
* a vertical sort must not inherit "visible" from an unchanged horizontal
|
|
236
|
+
* position (which would retain/mount every column in every padding-band row).
|
|
237
|
+
*/
|
|
238
|
+
shouldAnimateTransition(args: {
|
|
239
|
+
beforeTop: number;
|
|
240
|
+
afterTop: number;
|
|
241
|
+
beforeLeft: number;
|
|
242
|
+
afterLeft: number;
|
|
243
|
+
cellHeight: number;
|
|
244
|
+
cellWidth: number;
|
|
245
|
+
container: HTMLElement;
|
|
246
|
+
}): boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Whether an incoming cell (in the snapshot but not previously in the DOM)
|
|
249
|
+
* should be mounted for this sort/reorder render. Padding-band rows that
|
|
250
|
+
* never intersect the visible viewport are deferred to the next scroll
|
|
251
|
+
* render so they do not pop into existence at animation start.
|
|
252
|
+
*/
|
|
253
|
+
shouldMountIncomingCell(args: {
|
|
254
|
+
cellId: string;
|
|
255
|
+
afterTop: number;
|
|
256
|
+
afterLeft: number;
|
|
257
|
+
cellHeight: number;
|
|
258
|
+
cellWidth: number;
|
|
259
|
+
container: HTMLElement;
|
|
260
|
+
}): boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Whether the cell currently paints inside the body scrollers' clip rects.
|
|
263
|
+
* Outgoing retain decisions use this as a fallback when {@link shouldAnimateTransition}
|
|
264
|
+
* rejects a cell based on `style.top`/`style.left` alone: virtualization padding
|
|
265
|
+
* rows can sit with their leading edge outside the scroll band while still being
|
|
266
|
+
* partially visible on screen (common at the bottom when scrolled to the end).
|
|
267
|
+
*/
|
|
268
|
+
isCellRenderedInScrollerViewport(element: HTMLElement, container: HTMLElement): boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Whether an outgoing DOM cell at a vertical scroll extreme (top or bottom of
|
|
271
|
+
* the dataset) should be retained even when {@link shouldAnimateTransition}
|
|
272
|
+
* rejects it on leading-edge grounds. Virtualization keeps a few overscan
|
|
273
|
+
* rows mounted above/below the strict viewport at max scroll; those rows
|
|
274
|
+
* must still slide out as ghosts when a sort evicts them.
|
|
275
|
+
*/
|
|
276
|
+
shouldRetainDomCellAtScrollExtrema(cellId: string, container: HTMLElement): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Hand a cell that the renderer would otherwise remove to the coordinator.
|
|
279
|
+
* The coordinator updates its absolute positioning to the post-change layout
|
|
280
|
+
* and will animate it from the snapshotted pre-change visual position to
|
|
281
|
+
* that new position during {@link play}, then remove it from the DOM.
|
|
282
|
+
*
|
|
283
|
+
* The new position can be off-screen (e.g. the row sorted to a position
|
|
284
|
+
* outside the visible band) — the body container's `overflow: hidden`
|
|
285
|
+
* naturally clips the cell as it slides past the viewport edge.
|
|
286
|
+
*/
|
|
287
|
+
retainCell(args: {
|
|
288
|
+
cellId: string;
|
|
289
|
+
element: HTMLElement;
|
|
290
|
+
container: HTMLElement;
|
|
291
|
+
newPosition: CellPosition;
|
|
292
|
+
}): void;
|
|
293
|
+
/**
|
|
294
|
+
* Take ownership of a retained (outgoing) ghost element so the renderer can
|
|
295
|
+
* promote it back to a live cell — rather than tearing it down and creating
|
|
296
|
+
* a fresh node — when its row becomes visible again. Returns the element
|
|
297
|
+
* with its retained-only attributes/state stripped, or `null` if no ghost
|
|
298
|
+
* is currently retained for this id in the container.
|
|
299
|
+
*
|
|
300
|
+
* Reusing the ghost preserves DOM continuity: the next play() step reads
|
|
301
|
+
* the cell's mid-flight visual position from the snapshot (captured before
|
|
302
|
+
* the render) and FLIPs it from there to its new live destination, so the
|
|
303
|
+
* row glides instead of disappearing and a freshly created replacement
|
|
304
|
+
* doesn't pop into existence at a clipped FLIP entry point.
|
|
305
|
+
*/
|
|
306
|
+
claimRetainedForReuse(cellId: string, container: HTMLElement): HTMLElement | null;
|
|
307
|
+
/**
|
|
308
|
+
* Hand off a cell that the renderer would otherwise remove for an accordion
|
|
309
|
+
* shrink-out (column hide / pin-out from this section): the cell stays in
|
|
310
|
+
* place and its size in the named axis is animated to zero by the
|
|
311
|
+
* `.st-accordion-animating` CSS transition (width/height). Removed from the
|
|
312
|
+
* DOM after the transition completes.
|
|
313
|
+
*
|
|
314
|
+
* Used when there is no destination position for the cell in the current
|
|
315
|
+
* section's post-render layout — either because the column was hidden or
|
|
316
|
+
* because it moved to a different pinned section. In the moved-section
|
|
317
|
+
* case, the destination section creates a fresh cell that grows from zero
|
|
318
|
+
* width via the existing accordion incoming-cell path, so the visual
|
|
319
|
+
* effect is a synchronized shrink-here / grow-there pair rather than a
|
|
320
|
+
* cross-container slide (which would require translating coordinates
|
|
321
|
+
* between two different container coordinate frames).
|
|
322
|
+
*/
|
|
323
|
+
shrinkOutCell(args: {
|
|
324
|
+
cellId: string;
|
|
325
|
+
element: HTMLElement;
|
|
326
|
+
container: HTMLElement;
|
|
327
|
+
axis: "horizontal" | "vertical";
|
|
328
|
+
}): void;
|
|
329
|
+
/**
|
|
330
|
+
* Discard any retained cell with this id in the given container. Called by
|
|
331
|
+
* the renderer when it's about to create a fresh cell with the same id, so
|
|
332
|
+
* we don't have two DOM nodes claiming the same logical slot.
|
|
333
|
+
*/
|
|
334
|
+
discardRetainedIfPresent(cellId: string, container: HTMLElement): void;
|
|
335
|
+
/**
|
|
336
|
+
* Apply the FLIP invert + play step to every cell present in the snapshot
|
|
337
|
+
* that is now in the DOM (either as an actively rendered cell or as a
|
|
338
|
+
* retained cell). Clears the snapshot.
|
|
339
|
+
*/
|
|
340
|
+
play(args: {
|
|
341
|
+
containers: Array<HTMLElement | null | undefined>;
|
|
342
|
+
}): void;
|
|
343
|
+
/**
|
|
344
|
+
* Cancel every in-flight transition and clear any armed snapshot. Active
|
|
345
|
+
* cells snap to their final positions; retained cells are removed from the
|
|
346
|
+
* DOM so we don't leak nodes.
|
|
347
|
+
*/
|
|
348
|
+
cancel(): void;
|
|
349
|
+
destroy(): void;
|
|
350
|
+
private readPosition;
|
|
351
|
+
private startTransition;
|
|
352
|
+
private cancelInFlight;
|
|
353
|
+
private finalizeCell;
|
|
354
|
+
private finishElement;
|
|
355
|
+
private isCellRetained;
|
|
356
|
+
}
|