@sheetxl/react 0.7.22 → 0.7.23-beta.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/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +156 -0
- package/browser/cjs/index.cjs +24 -24
- package/browser/esm/B5ln1NAKVNy0DKUy.mjs +6286 -0
- package/browser/esm/index.mjs +19258 -4911
- package/licenses/dependencies.txt +42 -214
- package/node/esm/h7d3ckrxRK_JlmsZ.mjs +9 -0
- package/node/esm/index.mjs +17035 -3691
- package/package.json +10 -11
- package/resources/contents.json +60 -0
- package/resources/locales/contents.json +114 -0
- package/resources/locales/de/clipboard.cmd.json +36 -0
- package/resources/locales/de/editor.cmd.json +128 -0
- package/resources/locales/de/movable.cmd.json +123 -0
- package/resources/locales/de/selection.cmd.json +373 -0
- package/resources/locales/de/sheet.cmd.json +1563 -0
- package/resources/locales/de/table.cmd.json +83 -0
- package/resources/locales/de/ui.msg.json +166 -0
- package/resources/locales/de/workbook.cmd.json +282 -0
- package/resources/locales/en/clipboard.cmd.json +36 -0
- package/resources/locales/en/editor.cmd.json +128 -0
- package/resources/locales/en/movable.cmd.json +123 -0
- package/resources/locales/en/selection.cmd.json +373 -0
- package/resources/locales/en/sheet.cmd.json +1563 -0
- package/resources/locales/en/table.cmd.json +83 -0
- package/resources/locales/en/ui.msg.json +166 -0
- package/resources/locales/en/workbook.cmd.json +282 -0
- package/types/index.d.ts +2 -1767
- package/types/src/border/StaticBorderRenderer.d.ts +32 -0
- package/types/src/border/StaticBorderRenderer.d.ts.map +1 -0
- package/types/src/border/StyledStrokePath.d.ts +14 -0
- package/types/src/border/StyledStrokePath.d.ts.map +1 -0
- package/types/src/border/index.d.ts +4 -0
- package/types/src/border/index.d.ts.map +1 -0
- package/types/src/border/useBorders.d.ts +87 -0
- package/types/src/border/useBorders.d.ts.map +1 -0
- package/types/src/cell/ColumnButton.d.ts +45 -0
- package/types/src/cell/ColumnButton.d.ts.map +1 -0
- package/types/src/cell/CornerTriangle.d.ts +27 -0
- package/types/src/cell/CornerTriangle.d.ts.map +1 -0
- package/types/src/cell/FormulaCellRenderer.d.ts +34 -0
- package/types/src/cell/FormulaCellRenderer.d.ts.map +1 -0
- package/types/src/cell/SheetCellRenderer.d.ts +52 -0
- package/types/src/cell/SheetCellRenderer.d.ts.map +1 -0
- package/types/src/cell/SheetHeaderRenderer.d.ts +37 -0
- package/types/src/cell/SheetHeaderRenderer.d.ts.map +1 -0
- package/types/src/cell/index.d.ts +7 -0
- package/types/src/cell/index.d.ts.map +1 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +42 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts.map +1 -0
- package/types/src/chart/ChartEditor.d.ts +17 -0
- package/types/src/chart/ChartEditor.d.ts.map +1 -0
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +35 -0
- package/types/src/chart/PresetChartTypeDescriptors.d.ts.map +1 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/chart/index.d.ts.map +1 -0
- package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +10 -0
- package/types/src/chart/templates/area-stacked-template.json.d.ts +10 -0
- package/types/src/chart/templates/area-template.json.d.ts +9 -0
- package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +10 -0
- package/types/src/chart/templates/bar-stacked-template.json.d.ts +10 -0
- package/types/src/chart/templates/bar-template.json.d.ts +9 -0
- package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +10 -0
- package/types/src/chart/templates/column-stacked-template.json.d.ts +10 -0
- package/types/src/chart/templates/column-template.json.d.ts +9 -0
- package/types/src/chart/templates/line-markers-template.json.d.ts +10 -0
- package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +11 -0
- package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +11 -0
- package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +10 -0
- package/types/src/chart/templates/line-stacked-template.json.d.ts +10 -0
- package/types/src/chart/templates/line-template.json.d.ts +9 -0
- package/types/src/chart/templates/pie-doughnut-template.json.d.ts +10 -0
- package/types/src/chart/templates/pie-template.json.d.ts +9 -0
- package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +10 -0
- package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +10 -0
- package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +10 -0
- package/types/src/chart/templates/scatter-lines-template.json.d.ts +10 -0
- package/types/src/chart/templates/scatter-markers-template.json.d.ts +10 -0
- package/types/src/clipboard/ClipboardCommands.d.ts +68 -0
- package/types/src/clipboard/ClipboardCommands.d.ts.map +1 -0
- package/types/src/clipboard/SheetClipboardLayer.d.ts +22 -0
- package/types/src/clipboard/SheetClipboardLayer.d.ts.map +1 -0
- package/types/src/clipboard/index.d.ts +3 -0
- package/types/src/clipboard/index.d.ts.map +1 -0
- package/types/src/commands/Catalog.d.ts +8 -0
- package/types/src/commands/Catalog.d.ts.map +1 -0
- package/types/src/commands/CommandRootProvider.d.ts +36 -0
- package/types/src/commands/CommandRootProvider.d.ts.map +1 -0
- package/types/src/commands/InputClipboardCommands.d.ts +41 -0
- package/types/src/commands/InputClipboardCommands.d.ts.map +1 -0
- package/types/src/commands/InputClipboardInjector.d.ts +16 -0
- package/types/src/commands/InputClipboardInjector.d.ts.map +1 -0
- package/types/src/commands/MainFocusContext.d.ts +13 -0
- package/types/src/commands/MainFocusContext.d.ts.map +1 -0
- package/types/src/commands/PaneScopeProvider.d.ts +40 -0
- package/types/src/commands/PaneScopeProvider.d.ts.map +1 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts +49 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts.map +1 -0
- package/types/src/commands/index.d.ts +7 -0
- package/types/src/commands/index.d.ts.map +1 -0
- package/types/src/context/SheetContext.d.ts +18 -0
- package/types/src/context/SheetContext.d.ts.map +1 -0
- package/types/src/context/WorkbookContext.d.ts +20 -0
- package/types/src/context/WorkbookContext.d.ts.map +1 -0
- package/types/src/context/index.d.ts +3 -0
- package/types/src/context/index.d.ts.map +1 -0
- package/types/src/editableLabel/EditableLabel.d.ts +28 -0
- package/types/src/editableLabel/EditableLabel.d.ts.map +1 -0
- package/types/src/editableLabel/index.d.ts +2 -0
- package/types/src/editableLabel/index.d.ts.map +1 -0
- package/types/src/editor/EditorCommands.d.ts +98 -0
- package/types/src/editor/EditorCommands.d.ts.map +1 -0
- package/types/src/editor/FunctionPreviewPanel.d.ts +166 -0
- package/types/src/editor/FunctionPreviewPanel.d.ts.map +1 -0
- package/types/src/editor/NamedHintPanel.d.ts +38 -0
- package/types/src/editor/NamedHintPanel.d.ts.map +1 -0
- package/types/src/editor/NamedItemsPanel.d.ts +59 -0
- package/types/src/editor/NamedItemsPanel.d.ts.map +1 -0
- package/types/src/editor/SheetCellEditorLayer.d.ts +40 -0
- package/types/src/editor/SheetCellEditorLayer.d.ts.map +1 -0
- package/types/src/editor/SheetCellInput.d.ts +99 -0
- package/types/src/editor/SheetCellInput.d.ts.map +1 -0
- package/types/src/editor/SheetEditable.d.ts +53 -0
- package/types/src/editor/SheetEditable.d.ts.map +1 -0
- package/types/src/editor/SheetReferenceHeaderLayer.d.ts +46 -0
- package/types/src/editor/SheetReferenceHeaderLayer.d.ts.map +1 -0
- package/types/src/editor/SheetReferenceLayer.d.ts +55 -0
- package/types/src/editor/SheetReferenceLayer.d.ts.map +1 -0
- package/types/src/editor/formulaCaret.d.ts +84 -0
- package/types/src/editor/formulaCaret.d.ts.map +1 -0
- package/types/src/editor/formulaEval.d.ts +202 -0
- package/types/src/editor/formulaEval.d.ts.map +1 -0
- package/types/src/editor/formulaPresentation.d.ts +136 -0
- package/types/src/editor/formulaPresentation.d.ts.map +1 -0
- package/types/src/editor/formulaText.d.ts +80 -0
- package/types/src/editor/formulaText.d.ts.map +1 -0
- package/types/src/editor/functionArgs.d.ts +111 -0
- package/types/src/editor/functionArgs.d.ts.map +1 -0
- package/types/src/editor/functionHint.d.ts +37 -0
- package/types/src/editor/functionHint.d.ts.map +1 -0
- package/types/src/editor/index.d.ts +18 -0
- package/types/src/editor/index.d.ts.map +1 -0
- package/types/src/editor/referencePointNav.d.ts +39 -0
- package/types/src/editor/referencePointNav.d.ts.map +1 -0
- package/types/src/editor/useFormulaHints.d.ts +126 -0
- package/types/src/editor/useFormulaHints.d.ts.map +1 -0
- package/types/src/editor/useFormulaInput.d.ts +326 -0
- package/types/src/editor/useFormulaInput.d.ts.map +1 -0
- package/types/src/editor/useProtectedEditNotice.d.ts +14 -0
- package/types/src/editor/useProtectedEditNotice.d.ts.map +1 -0
- package/types/src/editor/useReferenceMode.d.ts +177 -0
- package/types/src/editor/useReferenceMode.d.ts.map +1 -0
- package/types/src/form/FormulaInput.d.ts +86 -0
- package/types/src/form/FormulaInput.d.ts.map +1 -0
- package/types/src/form/FormulaInputParts.d.ts +94 -0
- package/types/src/form/FormulaInputParts.d.ts.map +1 -0
- package/types/src/form/index.d.ts +5 -0
- package/types/src/form/index.d.ts.map +1 -0
- package/types/src/form/useEditCommit.d.ts +174 -0
- package/types/src/form/useEditCommit.d.ts.map +1 -0
- package/types/src/form/useInputField.d.ts +86 -0
- package/types/src/form/useInputField.d.ts.map +1 -0
- package/types/src/frame/CommandContext.d.ts +179 -0
- package/types/src/frame/CommandContext.d.ts.map +1 -0
- package/types/src/frame/IFrame.d.ts +17 -0
- package/types/src/frame/IFrame.d.ts.map +1 -0
- package/types/src/frame/index.d.ts +3 -0
- package/types/src/frame/index.d.ts.map +1 -0
- package/types/src/icons/LogoNoPaddingIcon.d.ts +3 -0
- package/types/src/icons/LogoNoPaddingIcon.d.ts.map +1 -0
- package/types/src/icons/LogoTextNoPaddingIcon.d.ts +4 -0
- package/types/src/icons/LogoTextNoPaddingIcon.d.ts.map +1 -0
- package/types/src/icons/WaterMark.d.ts +12 -0
- package/types/src/icons/WaterMark.d.ts.map +1 -0
- package/types/src/icons/chart/ChartAreaIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartAreaIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartAreaStackedIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartBarIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartBarIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartBarStackedIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartBarStackedIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartBubble3DIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartBubble3DIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartBubbleIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartBubbleIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartColumnIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartColumnIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartColumnStackedIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartLineIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartLineIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartLineMarkersIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartLineStackedIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartLineStackedIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartPieIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartPieIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartScatterLinesIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ChartWaterfallIcon.d.ts +5 -0
- package/types/src/icons/chart/ChartWaterfallIcon.d.ts.map +1 -0
- package/types/src/icons/chart/ThemedChartIcon.d.ts +20 -0
- package/types/src/icons/chart/ThemedChartIcon.d.ts.map +1 -0
- package/types/src/icons/chart/index.d.ts +50 -0
- package/types/src/icons/chart/index.d.ts.map +1 -0
- package/types/src/icons/index.d.ts +4 -0
- package/types/src/icons/index.d.ts.map +1 -0
- package/types/src/index.d.ts +27 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/io/WorkbookIO.d.ts +50 -0
- package/types/src/io/WorkbookIO.d.ts.map +1 -0
- package/types/src/io/index.d.ts +2 -0
- package/types/src/io/index.d.ts.map +1 -0
- package/types/src/layer/BorderLayer.d.ts +14 -0
- package/types/src/layer/BorderLayer.d.ts.map +1 -0
- package/types/src/layer/CellErrorLayer.d.ts +49 -0
- package/types/src/layer/CellErrorLayer.d.ts.map +1 -0
- package/types/src/layer/CellFillLayer.d.ts +15 -0
- package/types/src/layer/CellFillLayer.d.ts.map +1 -0
- package/types/src/layer/ConditionalBarLayer.d.ts +41 -0
- package/types/src/layer/ConditionalBarLayer.d.ts.map +1 -0
- package/types/src/layer/ConditionalIcons.d.ts +34 -0
- package/types/src/layer/ConditionalIcons.d.ts.map +1 -0
- package/types/src/layer/ConditionalIconsLayer.d.ts +31 -0
- package/types/src/layer/ConditionalIconsLayer.d.ts.map +1 -0
- package/types/src/layer/ContextMenuLayer.d.ts +27 -0
- package/types/src/layer/ContextMenuLayer.d.ts.map +1 -0
- package/types/src/layer/HeaderResizerLayer.d.ts +28 -0
- package/types/src/layer/HeaderResizerLayer.d.ts.map +1 -0
- package/types/src/layer/HeaderSelectionLayer.d.ts +89 -0
- package/types/src/layer/HeaderSelectionLayer.d.ts.map +1 -0
- package/types/src/layer/ResizeIndicator.d.ts +19 -0
- package/types/src/layer/ResizeIndicator.d.ts.map +1 -0
- package/types/src/layer/SheetBackgroundLayer.d.ts +22 -0
- package/types/src/layer/SheetBackgroundLayer.d.ts.map +1 -0
- package/types/src/layer/SheetCellLayer.d.ts +49 -0
- package/types/src/layer/SheetCellLayer.d.ts.map +1 -0
- package/types/src/layer/SheetColumnButtonLayer.d.ts +23 -0
- package/types/src/layer/SheetColumnButtonLayer.d.ts.map +1 -0
- package/types/src/layer/SheetGridLineLayer.d.ts +22 -0
- package/types/src/layer/SheetGridLineLayer.d.ts.map +1 -0
- package/types/src/layer/SheetHeaderCellLayer.d.ts +30 -0
- package/types/src/layer/SheetHeaderCellLayer.d.ts.map +1 -0
- package/types/src/layer/SheetMovableLayer.d.ts +26 -0
- package/types/src/layer/SheetMovableLayer.d.ts.map +1 -0
- package/types/src/layer/SheetTableCommandLayer.d.ts +16 -0
- package/types/src/layer/SheetTableCommandLayer.d.ts.map +1 -0
- package/types/src/layer/SpillLayer.d.ts +22 -0
- package/types/src/layer/SpillLayer.d.ts.map +1 -0
- package/types/src/layer/TableLayer.d.ts +22 -0
- package/types/src/layer/TableLayer.d.ts.map +1 -0
- package/types/src/layer/ValidationIndicatorLayer.d.ts +41 -0
- package/types/src/layer/ValidationIndicatorLayer.d.ts.map +1 -0
- package/types/src/layer/index.d.ts +25 -0
- package/types/src/layer/index.d.ts.map +1 -0
- package/types/src/layer/resizeIndicatorState.d.ts +26 -0
- package/types/src/layer/resizeIndicatorState.d.ts.map +1 -0
- package/types/src/layer/useSheetFeatureRegions.d.ts +21 -0
- package/types/src/layer/useSheetFeatureRegions.d.ts.map +1 -0
- package/types/src/layer/useSheetVisibleCells.d.ts +60 -0
- package/types/src/layer/useSheetVisibleCells.d.ts.map +1 -0
- package/types/src/layer/useSheetVisibleDecorations.d.ts +42 -0
- package/types/src/layer/useSheetVisibleDecorations.d.ts.map +1 -0
- package/types/src/layer/useTableHeaderCells.d.ts +22 -0
- package/types/src/layer/useTableHeaderCells.d.ts.map +1 -0
- package/types/src/layer/useVisibleTables.d.ts +27 -0
- package/types/src/layer/useVisibleTables.d.ts.map +1 -0
- package/types/src/listener/index.d.ts +3 -0
- package/types/src/listener/index.d.ts.map +1 -0
- package/types/src/listener/useModelListener.d.ts +67 -0
- package/types/src/listener/useModelListener.d.ts.map +1 -0
- package/types/src/listener/useRangeListener.d.ts +15 -0
- package/types/src/listener/useRangeListener.d.ts.map +1 -0
- package/types/src/movable/EmptyFrame.d.ts +16 -0
- package/types/src/movable/EmptyFrame.d.ts.map +1 -0
- package/types/src/movable/IMovableArea.d.ts +34 -0
- package/types/src/movable/IMovableArea.d.ts.map +1 -0
- package/types/src/movable/MovableCommands.d.ts +22 -0
- package/types/src/movable/MovableCommands.d.ts.map +1 -0
- package/types/src/movable/MovableFrame.d.ts +48 -0
- package/types/src/movable/MovableFrame.d.ts.map +1 -0
- package/types/src/movable/MovableLayer.d.ts +77 -0
- package/types/src/movable/MovableLayer.d.ts.map +1 -0
- package/types/src/movable/MoveableBundle.d.ts +4 -0
- package/types/src/movable/MoveableBundle.d.ts.map +1 -0
- package/types/src/movable/index.d.ts +4 -0
- package/types/src/movable/index.d.ts.map +1 -0
- package/types/src/picture/IPictureEditor.d.ts +39 -0
- package/types/src/picture/IPictureEditor.d.ts.map +1 -0
- package/types/src/picture/PictureEditor.d.ts +4 -0
- package/types/src/picture/PictureEditor.d.ts.map +1 -0
- package/types/src/picture/index.d.ts +3 -0
- package/types/src/picture/index.d.ts.map +1 -0
- package/types/src/selection/SelectionCommands.d.ts +23 -0
- package/types/src/selection/SelectionCommands.d.ts.map +1 -0
- package/types/src/selection/SheetSelection.d.ts +53 -0
- package/types/src/selection/SheetSelection.d.ts.map +1 -0
- package/types/src/selection/SheetSelectionLayer.d.ts +30 -0
- package/types/src/selection/SheetSelectionLayer.d.ts.map +1 -0
- package/types/src/selection/index.d.ts +4 -0
- package/types/src/selection/index.d.ts.map +1 -0
- package/types/src/shape/ShapeEditor.d.ts +16 -0
- package/types/src/shape/ShapeEditor.d.ts.map +1 -0
- package/types/src/shape/index.d.ts +2 -0
- package/types/src/shape/index.d.ts.map +1 -0
- package/types/src/sheet/ConditionalFormatPresets.d.ts +56 -0
- package/types/src/sheet/ConditionalFormatPresets.d.ts.map +1 -0
- package/types/src/sheet/ISheetElement.d.ts +233 -0
- package/types/src/sheet/ISheetElement.d.ts.map +1 -0
- package/types/src/sheet/ISheetHeaderElement.d.ts +138 -0
- package/types/src/sheet/ISheetHeaderElement.d.ts.map +1 -0
- package/types/src/sheet/NotImplemented.d.ts +3 -0
- package/types/src/sheet/NotImplemented.d.ts.map +1 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +57 -0
- package/types/src/sheet/SheetCommandProvider.d.ts.map +1 -0
- package/types/src/sheet/SheetCommands.d.ts +75 -0
- package/types/src/sheet/SheetCommands.d.ts.map +1 -0
- package/types/src/sheet/SheetElement.d.ts +15 -0
- package/types/src/sheet/SheetElement.d.ts.map +1 -0
- package/types/src/sheet/SheetHeaderElement.d.ts +4 -0
- package/types/src/sheet/SheetHeaderElement.d.ts.map +1 -0
- package/types/src/sheet/SheetScrollbar.d.ts +28 -0
- package/types/src/sheet/SheetScrollbar.d.ts.map +1 -0
- package/types/src/sheet/TopLeftCorner.d.ts +17 -0
- package/types/src/sheet/TopLeftCorner.d.ts.map +1 -0
- package/types/src/sheet/index.d.ts +7 -0
- package/types/src/sheet/index.d.ts.map +1 -0
- package/types/src/slicer/SlicerEditor.d.ts +16 -0
- package/types/src/slicer/SlicerEditor.d.ts.map +1 -0
- package/types/src/slicer/index.d.ts +2 -0
- package/types/src/slicer/index.d.ts.map +1 -0
- package/types/src/tabStrip/SheetTab.d.ts +41 -0
- package/types/src/tabStrip/SheetTab.d.ts.map +1 -0
- package/types/src/tabStrip/Sortable.d.ts +66 -0
- package/types/src/tabStrip/Sortable.d.ts.map +1 -0
- package/types/src/tabStrip/Tab.d.ts +19 -0
- package/types/src/tabStrip/Tab.d.ts.map +1 -0
- package/types/src/tabStrip/TabStrip.d.ts +41 -0
- package/types/src/tabStrip/TabStrip.d.ts.map +1 -0
- package/types/src/tabStrip/TabStripItem.d.ts +36 -0
- package/types/src/tabStrip/TabStripItem.d.ts.map +1 -0
- package/types/src/tabStrip/TabStripRow.d.ts +9 -0
- package/types/src/tabStrip/TabStripRow.d.ts.map +1 -0
- package/types/src/tabStrip/index.d.ts +7 -0
- package/types/src/tabStrip/index.d.ts.map +1 -0
- package/types/src/table/TableCommands.d.ts +16 -0
- package/types/src/table/TableCommands.d.ts.map +1 -0
- package/types/src/taskPane/ITaskPane.d.ts +72 -0
- package/types/src/taskPane/ITaskPane.d.ts.map +1 -0
- package/types/src/taskPane/TaskPaneArea.d.ts +144 -0
- package/types/src/taskPane/TaskPaneArea.d.ts.map +1 -0
- package/types/src/taskPane/TaskPaneFrame.d.ts +48 -0
- package/types/src/taskPane/TaskPaneFrame.d.ts.map +1 -0
- package/types/src/taskPane/TaskPaneRegistry.d.ts +108 -0
- package/types/src/taskPane/TaskPaneRegistry.d.ts.map +1 -0
- package/types/src/taskPane/TaskPaneStrip.d.ts +33 -0
- package/types/src/taskPane/TaskPaneStrip.d.ts.map +1 -0
- package/types/src/taskPane/TaskPaneTitle.d.ts +24 -0
- package/types/src/taskPane/TaskPaneTitle.d.ts.map +1 -0
- package/types/src/taskPane/index.d.ts +7 -0
- package/types/src/taskPane/index.d.ts.map +1 -0
- package/types/src/taskPane/useTaskPane.d.ts +29 -0
- package/types/src/taskPane/useTaskPane.d.ts.map +1 -0
- package/types/src/theme/DocThemesContext.d.ts +3 -0
- package/types/src/theme/DocThemesContext.d.ts.map +1 -0
- package/types/src/theme/DocThemesProvider.d.ts +15 -0
- package/types/src/theme/DocThemesProvider.d.ts.map +1 -0
- package/types/src/theme/ThemeState.d.ts +19 -0
- package/types/src/theme/ThemeState.d.ts.map +1 -0
- package/types/src/theme/buildDocThemeCSS.d.ts +16 -0
- package/types/src/theme/buildDocThemeCSS.d.ts.map +1 -0
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +13 -0
- package/types/src/theme/buildOOXMLThemeCSS.d.ts.map +1 -0
- package/types/src/theme/createCSSSystemLookup.d.ts +51 -0
- package/types/src/theme/createCSSSystemLookup.d.ts.map +1 -0
- package/types/src/theme/index.d.ts +11 -0
- package/types/src/theme/index.d.ts.map +1 -0
- package/types/src/theme/useAppColorScheme.d.ts +15 -0
- package/types/src/theme/useAppColorScheme.d.ts.map +1 -0
- package/types/src/theme/useDocThemes.d.ts +3 -0
- package/types/src/theme/useDocThemes.d.ts.map +1 -0
- package/types/src/theme/useGridColorScheme.d.ts +20 -0
- package/types/src/theme/useGridColorScheme.d.ts.map +1 -0
- package/types/src/theme/useSystemColors.d.ts +44 -0
- package/types/src/theme/useSystemColors.d.ts.map +1 -0
- package/types/src/undo/UndoCommands.d.ts +28 -0
- package/types/src/undo/UndoCommands.d.ts.map +1 -0
- package/types/src/undo/UndoManagerContext.d.ts +14 -0
- package/types/src/undo/UndoManagerContext.d.ts.map +1 -0
- package/types/src/undo/index.d.ts +3 -0
- package/types/src/undo/index.d.ts.map +1 -0
- package/types/src/workbook/DefaultRenderers.d.ts +14 -0
- package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
- package/types/src/workbook/GlobalWorkbookElement.d.ts +10 -0
- package/types/src/workbook/GlobalWorkbookElement.d.ts.map +1 -0
- package/types/src/workbook/IWorkbookElement.d.ts +178 -0
- package/types/src/workbook/IWorkbookElement.d.ts.map +1 -0
- package/types/src/workbook/WindowChrome.d.ts +61 -0
- package/types/src/workbook/WindowChrome.d.ts.map +1 -0
- package/types/src/workbook/WorkbookCommandContributor.d.ts +24 -0
- package/types/src/workbook/WorkbookCommandContributor.d.ts.map +1 -0
- package/types/src/workbook/WorkbookCommands.d.ts +97 -0
- package/types/src/workbook/WorkbookCommands.d.ts.map +1 -0
- package/types/src/workbook/WorkbookElement.d.ts +9 -0
- package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
- package/types/src/workbook/WorkbookStrip.d.ts +73 -0
- package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
- package/types/src/workbook/index.d.ts +17 -0
- package/types/src/workbook/index.d.ts.map +1 -0
- package/types/src/workbook/resolveWorkbookInput.d.ts +27 -0
- package/types/src/workbook/resolveWorkbookInput.d.ts.map +1 -0
- package/types/src/workbook/useResolvedWorkbook.d.ts +31 -0
- package/types/src/workbook/useResolvedWorkbook.d.ts.map +1 -0
- package/types/src/workbook/useWindowChrome.d.ts +24 -0
- package/types/src/workbook/useWindowChrome.d.ts.map +1 -0
- package/types/src/workbook/useWorkbookApp.d.ts +47 -0
- package/types/src/workbook/useWorkbookApp.d.ts.map +1 -0
- package/types/src/workbook/useWorkbookEncrypted.d.ts +15 -0
- package/types/src/workbook/useWorkbookEncrypted.d.ts.map +1 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +18 -0
- package/types/src/workbook/useWorkbookFormat.d.ts.map +1 -0
- package/types/src/workbook/useWorkbookName.d.ts +13 -0
- package/types/src/workbook/useWorkbookName.d.ts.map +1 -0
- package/types/src/workbook/useWorkbookSaveState.d.ts +29 -0
- package/types/src/workbook/useWorkbookSaveState.d.ts.map +1 -0
- package/browser/cjs/DE4tB6-rHLjtcP1D.cjs +0 -16
- package/browser/cjs/DfFvH5gp0fyrdVBe.cjs +0 -7
- package/browser/cjs/IsZqO9D9KfIS8rJK.cjs +0 -161
- package/browser/esm/B-FEg36883DAwV11.mjs +0 -1377
- package/browser/esm/C07OMiF-GZT09DE8.mjs +0 -394
- package/browser/esm/DpetxHCqcdvCcpAe.mjs +0 -3905
- package/node/assets/style.css +0 -1
- package/node/esm/BzmGjDsMnAeW7Hwa.mjs +0 -11
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* The transient state of an in-progress header resize, published by the producer
|
|
4
|
+
* ({@link HeaderResizerLayer}, which owns the gesture) and read by the consumer
|
|
5
|
+
* ({@link ResizeIndicator}, which draws the guide-lines across the main grid and the size tooltip).
|
|
6
|
+
*
|
|
7
|
+
* It rides `useSurfaceState` under {@link resizeIndicatorKey}, so the header surface that owns the drag
|
|
8
|
+
* and the main-grid overlay — different {@link GridSurface} subtrees — read one shared cell. `null` means
|
|
9
|
+
* no resize is active for that axis.
|
|
10
|
+
*/
|
|
11
|
+
export interface ResizeIndicatorState {
|
|
12
|
+
/** The index of the header (column or row) being resized. */
|
|
13
|
+
index: number;
|
|
14
|
+
/**
|
|
15
|
+
* Live size (px) of the header during the gesture — `prevSize` at start, the dragged size while moving.
|
|
16
|
+
* `0` ⇒ the header is (being) hidden (draw a single collapsed line, tooltip reads "Hidden").
|
|
17
|
+
* `null` ⇒ draw the guide-lines only, with no size tooltip (e.g. a press-and-hold before any drag).
|
|
18
|
+
*/
|
|
19
|
+
sizePX: number | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The `useSurfaceState` key for the resize indicator, namespaced by axis. Column and row are distinct
|
|
23
|
+
* cells (the producer renders in both header surfaces), and the overlay reads whichever is active.
|
|
24
|
+
*/
|
|
25
|
+
export declare const resizeIndicatorKey: (axis: IRange.Axis) => string;
|
|
26
|
+
//# sourceMappingURL=resizeIndicatorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizeIndicatorState.d.ts","sourceRoot":"","sources":["../../../../src/layer/resizeIndicatorState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,CAAC,IAAI,KAAG,MACY,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ICellRange, ICellRegion, IRange, ISheet } from '@sheetxl/sdk';
|
|
2
|
+
import { IGridPane } from '@sheetxl/grid-react';
|
|
3
|
+
export interface SheetFeatureRegions {
|
|
4
|
+
/** The viewport's regions for the feature — engine-merged blocks, ready to place. */
|
|
5
|
+
getRegions: (pane: IGridPane, range?: IRange.Coords) => ICellRegion[];
|
|
6
|
+
/** Cache-bust token — new identity when the regions may have changed (NOT on scroll). */
|
|
7
|
+
cacheToken: unknown;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Viewport-scoped feature regions for a single pane — `ICellRange.getRegions` with a per-range
|
|
11
|
+
* cache and self-invalidation.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* This replaces the scan-every-cell-then-re-merge pattern in the decoration layers: the engine
|
|
15
|
+
* already stores features as blocks, so the layer receives the merged regions directly and the
|
|
16
|
+
* anchor read is the payload (a region is uniform in its feature by construction). Mirrors
|
|
17
|
+
* {@link useSheetVisibleCells}'s shape — per-pane, cached by range key, token-invalidated — so
|
|
18
|
+
* layers can swap sources without changing their contract.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useSheetFeatureRegions: (sheet: ISheet, feature: ICellRange.Feature) => SheetFeatureRegions;
|
|
21
|
+
//# sourceMappingURL=useSheetFeatureRegions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSheetFeatureRegions.d.ts","sourceRoot":"","sources":["../../../../src/layer/useSheetFeatureRegions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAI3F,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIlE,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;IACtE,yFAAyF;IACzF,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,MAAM,EAAE,SAAS,UAAU,CAAC,OAAO,KACzC,mBAgDF,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ISheet, ICell, IRange } from '@sheetxl/sdk';
|
|
2
|
+
import { IGridPane } from '@sheetxl/grid-react';
|
|
3
|
+
export type SheetVisibleCell = {
|
|
4
|
+
cell: ICell.Coords;
|
|
5
|
+
value?: ICell;
|
|
6
|
+
range?: IRange.Coords;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* What the scan should treat as "worth rendering". Each layer passes ONLY the flags its own output
|
|
10
|
+
* depends on — a flag change busts this hook's scan cache + token, so an unused flag would rebuild
|
|
11
|
+
* the caller for nothing (e.g. gridlines must not rebuild on a show-zeros toggle).
|
|
12
|
+
*/
|
|
13
|
+
export interface SheetVisibleCellsOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Formula view: formula-only cells render (even valueless), and text-overflow extrusions are
|
|
16
|
+
* disabled (formulas never overflow-paint). Affects cells AND gridlines (extrusions break lines).
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
showFormulas?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Render zero-valued number cells. Affects only the cells layer.
|
|
22
|
+
* @defaultValue true
|
|
23
|
+
*/
|
|
24
|
+
showZeros?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Only cells the CONTENT renderer has something to paint for: values, formulas (when shown)
|
|
27
|
+
* and merge anchors. Style-only cells (a fill or border with no content) are skipped — they
|
|
28
|
+
* paint in the fill/border layers, so here they would be empty divs.
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* This is a PREDICATE change only — the iteration still resolves the full intersection, so
|
|
34
|
+
* per-cell style resolution (table styles, named styles) is untouched. (A features-filtered
|
|
35
|
+
* iteration was tried and reverted: partial resolution breaks style composition.)
|
|
36
|
+
*/
|
|
37
|
+
contentOnly?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface SheetVisibleCells {
|
|
40
|
+
/** The visible-cell source to hand a grid-react `CellLayer` / `GridlineLayer`. */
|
|
41
|
+
getVisibleCells: (pane: IGridPane, range?: IRange.Coords) => SheetVisibleCell[];
|
|
42
|
+
/** Cache-bust token — a new identity each time the visible-range data OR the options change (NOT on scroll). */
|
|
43
|
+
cacheToken: unknown;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The shared "what cells are worth rendering" source for a single pane, plus self-invalidation.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Reads the pane from context and subscribes (via {@link useRangeListener}) to data changes WITHIN that
|
|
50
|
+
* pane's visible range; on a real data change it drops its scan cache and bumps {@link
|
|
51
|
+
* SheetVisibleCells.cacheToken}. The scan {@link SheetVisibleCellsOptions | options} are ARGUMENTS, not
|
|
52
|
+
* internal view reads: the hook busts on an option change, and the caller owns re-rendering when its
|
|
53
|
+
* source flags change (e.g. `useModelSync(sheetView, ['onZoomScaleChange'])` — the view's setters all
|
|
54
|
+
* funnel through `_notifyAll`, which fires that event). Each caller (one per layer per pane) gets its
|
|
55
|
+
* OWN cache + subscription — the layers are deliberately decoupled, so a value edit re-renders only the
|
|
56
|
+
* layer(s) that asked, never the grid above them. Used by {@link SheetCellLayer} and
|
|
57
|
+
* {@link SheetGridLineLayer}.
|
|
58
|
+
*/
|
|
59
|
+
export declare const useSheetVisibleCells: (sheet: ISheet, options?: SheetVisibleCellsOptions) => SheetVisibleCells;
|
|
60
|
+
//# sourceMappingURL=useSheetVisibleCells.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSheetVisibleCells.d.ts","sourceRoot":"","sources":["../../../../src/layer/useSheetVisibleCells.ts"],"names":[],"mappings":"AAEA,OAAO,EACO,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EACjD,MAAM,cAAc,CAAC;AAItB,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAUlE,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAE5F;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,kFAAkF;IAClF,eAAe,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,KAAK,gBAAgB,EAAE,CAAC;IAChF,gHAAgH;IAChH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,UAAU,wBAAwB,KAAG,iBAiGxF,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ISheet, ICell, IRange, IConditionalFormat } from '@sheetxl/sdk';
|
|
2
|
+
import { IGridPane } from '@sheetxl/grid-react';
|
|
3
|
+
/** One visible cell a conditional-format rule DRAWS in. */
|
|
4
|
+
export interface SheetDecoratedCell {
|
|
5
|
+
/** Where the cell is. */
|
|
6
|
+
cell: ICell.Coords;
|
|
7
|
+
/** The cell itself — the layer reads its style (font size, alignment) to place the mark. */
|
|
8
|
+
value: ICell;
|
|
9
|
+
/** The merge the cell anchors, when it anchors one. A bar fills the merge, not the corner cell. */
|
|
10
|
+
range?: IRange.Coords;
|
|
11
|
+
/** What is drawn there. At least one slot is set, or the cell would not be in the list. */
|
|
12
|
+
decorations: Readonly<IConditionalFormat.Decorations>;
|
|
13
|
+
}
|
|
14
|
+
/** Which decoration a caller is scanning for — a layer draws one kind, so it asks for one kind. */
|
|
15
|
+
export type SheetDecorationKind = 'dataBar' | 'iconSet';
|
|
16
|
+
export interface SheetVisibleDecorations {
|
|
17
|
+
/** The decorated cells within a pane's visible range. Empty when nothing is decorated. */
|
|
18
|
+
getVisibleDecorations: (pane: IGridPane, range?: IRange.Coords) => SheetDecoratedCell[];
|
|
19
|
+
/** Cache-bust token — a new identity when the decorations can have changed (NOT on scroll). */
|
|
20
|
+
cacheToken: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The "what does conditional formatting draw in this pane" source for a single pane, plus
|
|
24
|
+
* self-invalidation.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* The sibling of `useSheetVisibleCells`, and it follows the same contract: reads its pane from
|
|
28
|
+
* context, keeps its OWN cache and subscriptions, and re-renders only its caller — so a value edit
|
|
29
|
+
* that moves a data bar never touches the cells above it.
|
|
30
|
+
*
|
|
31
|
+
* It is two-stage on purpose. The first question is whether the visible range intersects **any**
|
|
32
|
+
* rule at all, which the SDK answers from its spatial index without touching a cell; only if it
|
|
33
|
+
* does is there a per-cell scan. On the overwhelmingly common sheet — one with no conditional
|
|
34
|
+
* formatting, or none in view — the whole hook costs one index lookup per frame and its layer
|
|
35
|
+
* never mounts.
|
|
36
|
+
*
|
|
37
|
+
* Decorations move for two unrelated reasons and both are subscribed: the rules themselves change
|
|
38
|
+
* (`onConditionalFormatsChange`), or a value moves within a rule's range — which can restripe every
|
|
39
|
+
* cell the rule covers, not just the edited one, because the domain is range-wide.
|
|
40
|
+
*/
|
|
41
|
+
export declare const useSheetVisibleDecorations: (sheet: ISheet, kind: SheetDecorationKind) => SheetVisibleDecorations;
|
|
42
|
+
//# sourceMappingURL=useSheetVisibleDecorations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSheetVisibleDecorations.d.ts","sourceRoot":"","sources":["../../../../src/layer/useSheetVisibleDecorations.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EAAmB,KAAK,kBAAkB,EAC/E,MAAM,cAAc,CAAC;AAItB,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAQlE,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB;IACjC,yBAAyB;IACzB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;IACnB,4FAA4F;IAC5F,KAAK,EAAE,KAAK,CAAC;IACb,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,2FAA2F;IAC3F,WAAW,EAAE,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;CACvD;AAED,mGAAmG;AACnG,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,MAAM,WAAW,uBAAuB;IACtC,0FAA0F;IAC1F,qBAAqB,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,KAAK,kBAAkB,EAAE,CAAC;IACxF,+FAA+F;IAC/F,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,EAAE,MAAM,mBAAmB,KAAG,uBAmErF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ISheet } from '@sheetxl/sdk';
|
|
2
|
+
import { SheetVisibleCells } from './useSheetVisibleCells';
|
|
3
|
+
/**
|
|
4
|
+
* The "which cells host a column (filter/sort) button" source for a single pane, plus
|
|
5
|
+
* self-invalidation — the table-aware analogue of {@link useSheetVisibleCells}.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Fed to a {@link CellLayer} so the buttons render as their OWN layer (above the selection layer, so a
|
|
9
|
+
* click hits the button instead of moving the selection) while still reusing the tiled cell engine.
|
|
10
|
+
*
|
|
11
|
+
* The fast path is the whole point: {@link SheetVisibleCells.getVisibleCells} does ONE
|
|
12
|
+
* `getTables({ address })` lookup and returns `[]` when no table intersects the pane — so the common
|
|
13
|
+
* (table-free) sheet costs nothing, and a sheet WITH tables only ever emits the handful of header-row
|
|
14
|
+
* cells whose button isn't hidden, never the full visible grid.
|
|
15
|
+
*
|
|
16
|
+
* A button's own icon (filter/sort state) is NOT a concern here — {@link ColumnButton} subscribes to its
|
|
17
|
+
* table and repaints itself. This hook only invalidates when the SET / POSITION of buttons changes:
|
|
18
|
+
* table add/remove/auto-table/layout/undo (sheet events) and hidden-button / show-headers / column
|
|
19
|
+
* add-remove / resize (which fire `onAnyChange` on the TABLE, so we subscribe to each table too).
|
|
20
|
+
*/
|
|
21
|
+
export declare const useTableHeaderCells: (sheet: ISheet) => SheetVisibleCells;
|
|
22
|
+
//# sourceMappingURL=useTableHeaderCells.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableHeaderCells.d.ts","sourceRoot":"","sources":["../../../../src/layer/useTableHeaderCells.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAA2B,MAAM,cAAc,CAAC;AAQpE,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEvF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,iBAsDnD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ISheet, ITable } from '@sheetxl/sdk';
|
|
2
|
+
export interface VisibleTables {
|
|
3
|
+
/** The tables intersecting this pane's visible range (empty array — stable identity — when none). */
|
|
4
|
+
visibleTables: readonly ITable[];
|
|
5
|
+
/**
|
|
6
|
+
* Cache-bust token: a new identity whenever the SET / geometry / state of tables changes — table
|
|
7
|
+
* add/remove/auto-table/layout/undo (sheet events) and per-table `onAnyChange` (hidden-button,
|
|
8
|
+
* show-headers, column add/remove, resize). Does NOT change on plain scroll. Hand to a
|
|
9
|
+
* {@link CellLayer} `cacheToken` (or any table-derived memo) so it invalidates in lockstep.
|
|
10
|
+
*/
|
|
11
|
+
cacheToken: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The shared "which tables are in view + when to invalidate" source for a single pane.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Consolidates the table-tracking that both the in-grid column-button layer
|
|
18
|
+
* ({@link SheetColumnButtonLayer}) and the table chrome ({@link TableLayer}) need: one address-scoped
|
|
19
|
+
* `getTables` lookup plus the invalidation subscription. A table-free sheet costs one lookup and a
|
|
20
|
+
* stable-identity empty array.
|
|
21
|
+
*
|
|
22
|
+
* Invalidation: sheet-level `onTablesChange` / `onAutoTableChange` / `onLayoutChange` / `onInvalidated`,
|
|
23
|
+
* PLUS each visible table's `onAnyChange` — table mutations (hidden-button toggle, show-headers, column
|
|
24
|
+
* add/remove, resize) fire on the TABLE, not the sheet.
|
|
25
|
+
*/
|
|
26
|
+
export declare const useVisibleTables: (sheet: ISheet) => VisibleTables;
|
|
27
|
+
//# sourceMappingURL=useVisibleTables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVisibleTables.d.ts","sourceRoot":"","sources":["../../../../src/layer/useVisibleTables.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAMxD,MAAM,WAAW,aAAa;IAC5B,qGAAqG;IACrG,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC;;;;;OAKG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAID;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,KAAG,aAiChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/listener/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IListener } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Options for `ModelListenerOptions` hook.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This is extends IListener.Options but removes 'once' since hooks are
|
|
7
|
+
* evaluated on render and adds a `ignoreModelChange` option.
|
|
8
|
+
*/
|
|
9
|
+
export interface ModelListenerOptions extends Omit<IListener.Options, 'once'> {
|
|
10
|
+
/**
|
|
11
|
+
* If `true`, fires all listeners once immediately when the component mounts
|
|
12
|
+
* or when the source changes, allowing initialization based on current model state.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue `false`
|
|
15
|
+
*/
|
|
16
|
+
ignoreModelChange?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Optional log string to identify the listener in console logs.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Will add to console for testing.
|
|
22
|
+
*/
|
|
23
|
+
debugText?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* React hook for subscribing to model-level events (workbooks, sheets, etc.).
|
|
27
|
+
*
|
|
28
|
+
* @template SOURCE - The model type (e.g., IWorkbook, ISheet)
|
|
29
|
+
* @template EVENTS - The listener interface type (e.g., ISheet.IListeners)
|
|
30
|
+
*
|
|
31
|
+
* @param source - The model instance to listen to
|
|
32
|
+
* @param listeners - Object containing listener callbacks for various events
|
|
33
|
+
* @param options - Optional configuration
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This hook automatically manages the listener lifecycle:
|
|
37
|
+
* - Subscribes when the component mounts or `source` changes
|
|
38
|
+
* - Unsubscribes when the component unmounts or `source` changes
|
|
39
|
+
* - Prevents unnecessary re-subscriptions when the `listeners` object reference changes
|
|
40
|
+
* (as long as the shape/keys remain consistent)
|
|
41
|
+
*
|
|
42
|
+
* By default (`ignoreModelChange: false`), all listeners are called once immediately
|
|
43
|
+
* on mount with the current source state, allowing you to initialize component state
|
|
44
|
+
* based on the model's current values.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* function SheetComponent({ sheet }: { sheet: ISheet }) {
|
|
49
|
+
* useModelListener<ISheet, ISheet.IListeners>(sheet, {
|
|
50
|
+
* onSave(source, json) {
|
|
51
|
+
* console.log('Sheet saved:', json);
|
|
52
|
+
* },
|
|
53
|
+
* });
|
|
54
|
+
*
|
|
55
|
+
* return <div>Sheet: {sheet.getName()}</div>;
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const useModelListener: <SOURCE, EVENTS>(source: IListener.ISource<SOURCE>, listeners: IListener.Callbacks<SOURCE, EVENTS>, options?: ModelListenerOptions) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Used for syncing with model state that causes a rerenders.
|
|
62
|
+
*
|
|
63
|
+
* @param source The source of the model
|
|
64
|
+
* @param eventNames The name of the event or events to listen for.
|
|
65
|
+
*/
|
|
66
|
+
export declare function useModelSync<EVENTS>(source: IListener.ISource<any>, eventNames: keyof EVENTS | Array<keyof EVENTS>): void;
|
|
67
|
+
//# sourceMappingURL=useModelListener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModelListener.d.ts","sourceRoot":"","sources":["../../../../src/listener/useModelListener.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC3E;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,EAAE,MAAM,EAC7C,QAAQ,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EACjC,WAAW,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9C,UAAU,oBAAoB,KAC7B,IAgEF,CAAA;AAED;;;;;GAKG;AAEH,wBAAgB,YAAY,CAAC,MAAM,EACjC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EAC9B,UAAU,EAAE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,MAAM,CAAC,GAC7C,IAAI,CAgBN"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICellRange } from '@sheetxl/sdk';
|
|
2
|
+
export interface useRangeListenerOptions extends ICellRange.ListenerOptions {
|
|
3
|
+
fireOnAddressChange: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface RangeContainer {
|
|
6
|
+
getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* This hook delegates to the an model that contains a getRange(address) method.
|
|
10
|
+
*
|
|
11
|
+
* @param model
|
|
12
|
+
* @param listener
|
|
13
|
+
*/
|
|
14
|
+
export declare const useRangeListener: (model: RangeContainer, address: ICellRange.Address, listener: ICellRange.Listener, options?: useRangeListenerOptions) => void;
|
|
15
|
+
//# sourceMappingURL=useRangeListener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRangeListener.d.ts","sourceRoot":"","sources":["../../../../src/listener/useRangeListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,cAAc,CAAC;AAE/D,MAAM,WAAW,uBAAwB,SAAQ,UAAU,CAAC,eAAe;IACzE,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,UAAU,CAAC;CACzF;AACD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,cAAc,EACrB,SAAS,UAAU,CAAC,OAAO,EAC3B,UAAU,UAAU,CAAC,QAAQ,EAC7B,UAAU,uBAAuB,KAChC,IA+CF,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MovableElementProps } from './IMovableArea';
|
|
3
|
+
export interface EmptyFrameAttributes {
|
|
4
|
+
isEmptyFrame: () => true;
|
|
5
|
+
}
|
|
6
|
+
export interface IEmptyFrameElement extends HTMLDivElement, EmptyFrameAttributes {
|
|
7
|
+
}
|
|
8
|
+
export interface EmptyFrameProps extends MovableElementProps {
|
|
9
|
+
description: string;
|
|
10
|
+
ref?: React.Ref<IEmptyFrameElement>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Placeholder for movable frames.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EmptyFrame: React.NamedExoticComponent<Omit<EmptyFrameProps, "ref"> & React.RefAttributes<IEmptyFrameElement>>;
|
|
16
|
+
//# sourceMappingURL=EmptyFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyFrame.d.ts","sourceRoot":"","sources":["../../../../src/movable/EmptyFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,oBAAoB;CAAG;AACnF,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,oGA6DpB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IMovable } from '@sheetxl/sdk';
|
|
2
|
+
export interface MovableElementProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The movable associated with this element.
|
|
5
|
+
*/
|
|
6
|
+
movable?: IMovable;
|
|
7
|
+
/**
|
|
8
|
+
* Called when the movable is hidden from view.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* * If this returns a false the movable will not be unmounted but will
|
|
12
|
+
* still have a style opacity property of 0 (and pointerEvents of none).
|
|
13
|
+
* * Keeping a movable mounted is useful for elements that take a long of time to render but
|
|
14
|
+
* increase the memory footprint of the application.
|
|
15
|
+
*/
|
|
16
|
+
onHide?: (hide: (movable: IMovable) => boolean | Promise<boolean> | void) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Call when the movable is returned to the view.
|
|
19
|
+
*/
|
|
20
|
+
onShow?: (show: (movable: IMovable) => void) => void;
|
|
21
|
+
/**
|
|
22
|
+
* If true then the component is disabled.
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
* @remarks
|
|
25
|
+
* To see if an element is readonly check the IMovable.isProtected() method.
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Indicator for dragging.
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*/
|
|
32
|
+
isDragging?: boolean;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=IMovableArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMovableArea.d.ts","sourceRoot":"","sources":["../../../../src/movable/IMovableArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC5E;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAClF;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,KAAK,IAAI,CAAC;IACrD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RemoveListener, EditModeHandler } from '@sheetxl/utils';
|
|
2
|
+
import { ISheet } from '@sheetxl/sdk';
|
|
3
|
+
import { Command, IReactNotifier } from '@sheetxl/utils-react';
|
|
4
|
+
/** Options for {@link contributeMovableCommands}. */
|
|
5
|
+
export interface ContributeMovableCommandsOptions {
|
|
6
|
+
/** Error reporting. */
|
|
7
|
+
notifier?: IReactNotifier;
|
|
8
|
+
/** Cleared after a drawing op. From `useEditMode()`. */
|
|
9
|
+
editModeHandler?: EditModeHandler;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Contribute the movable **behavior** over `sheet`'s drawings. Each op runs `update` across the selected
|
|
13
|
+
* movables inside one `doBatch`; the anchor/lock `state` re-contributes on selection change. Contribute on
|
|
14
|
+
* the **movable scope** (re-run per active sheet); tagged `noTransaction` since we own the `doBatch`, and
|
|
15
|
+
* `noRepeat`. Returns a disposer.
|
|
16
|
+
*/
|
|
17
|
+
/** The single `data` bundle {@link contributeMovableCommands} takes (the `DynamicCommandContributor` shape). */
|
|
18
|
+
export interface MovableCommandData extends ContributeMovableCommandsOptions {
|
|
19
|
+
sheet: ISheet | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function contributeMovableCommands(contribution: Command.CommandContribution, data: MovableCommandData): RemoveListener;
|
|
22
|
+
//# sourceMappingURL=MovableCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovableCommands.d.ts","sourceRoot":"","sources":["../../../../src/movable/MovableCommands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAe,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEpG,OAAO,EAAa,KAAK,MAAM,EAAiB,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAmDzE,qDAAqD;AACrD,MAAM,WAAW,gCAAgC;IAC/C,uBAAuB;IACvB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED;;;;;GAKG;AACH,gHAAgH;AAChH,MAAM,WAAW,kBAAmB,SAAQ,gCAAgC;IAC1E,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AACD,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,OAAO,CAAC,mBAAmB,EAAE,IAAI,EAAE,kBAAkB,GAClE,cAAc,CAoFhB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Bounds } from '@sheetxl/utils';
|
|
3
|
+
import { IMovable } from '@sheetxl/sdk';
|
|
4
|
+
import { MovableElementProps } from './IMovableArea';
|
|
5
|
+
export interface MovableFrameProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
/**
|
|
7
|
+
* The underlying model for the chart.
|
|
8
|
+
*/
|
|
9
|
+
movable: IMovable;
|
|
10
|
+
/**
|
|
11
|
+
* Callback to render the movable.
|
|
12
|
+
*
|
|
13
|
+
* @param props - {@link MovableElementProps}
|
|
14
|
+
* @returns A React Element representing the IMovable.
|
|
15
|
+
*/
|
|
16
|
+
renderMovable: (props: MovableElementProps) => React.ReactElement;
|
|
17
|
+
onRefLoad: (ref: HTMLElement) => void;
|
|
18
|
+
onRefUnload: (ref: HTMLElement) => void;
|
|
19
|
+
onHide: (hide: (movable: IMovable) => boolean | Promise<boolean> | void) => void;
|
|
20
|
+
onShow: (show: (movable: IMovable) => void) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Live drag/resize preview bounds (absolute), or null/undefined when idle. When set, the frame
|
|
23
|
+
* renders HERE instead of at the model bounds (the model isn't touched until the gesture commits).
|
|
24
|
+
* Surface-scoped in the parent, so it's set in every pane — that's what makes a dragged shape appear,
|
|
25
|
+
* correctly clipped, on both sides of a freeze boundary.
|
|
26
|
+
*/
|
|
27
|
+
overrideBounds?: Bounds | null;
|
|
28
|
+
/**
|
|
29
|
+
* Called after the frame repositions (scroll, keyboard nudge, drag preview, resize). The parent uses
|
|
30
|
+
* it to re-sync the Moveable control box to the frame's new DOM rect — a nudge re-renders only this
|
|
31
|
+
* frame, not the parent, so the parent can't detect the move on its own.
|
|
32
|
+
*/
|
|
33
|
+
onReposition?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Called when the final movable is unselected.
|
|
36
|
+
*/
|
|
37
|
+
onUnFocus: () => void;
|
|
38
|
+
dragStart(e: MouseEvent | TouchEvent, target?: EventTarget | null): void;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if the frame is being dragged. Useful for styling.
|
|
42
|
+
*/
|
|
43
|
+
isDragging: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const MovableFrame: React.FC<MovableFrameProps & {
|
|
46
|
+
ref?: React.Ref<HTMLElement | SVGElement>;
|
|
47
|
+
}>;
|
|
48
|
+
//# sourceMappingURL=MovableFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovableFrame.d.ts","sourceRoot":"","sources":["../../../../src/movable/MovableFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAM7C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;;OAKG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,YAAY,CAAC;IAElE,SAAS,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IAExC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,KAAK,IAAI,CAAC;IAEpD;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAAC;IAEzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAKD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC,CAAC;CAC3C,CA2LE,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IMovableCollection, IMovableSelection, IMovable, ITransaction } from '@sheetxl/sdk';
|
|
3
|
+
import { MovableElementProps } from './IMovableArea';
|
|
4
|
+
export interface MovableLayerAttributes {
|
|
5
|
+
/**
|
|
6
|
+
* Will put focus on the the movable object.
|
|
7
|
+
* @remarks
|
|
8
|
+
* This does not handle scrolling. This must be done by the virtual container.
|
|
9
|
+
*/
|
|
10
|
+
focusMovable: (movable: IMovable) => Promise<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* For runtime introspection.
|
|
13
|
+
*/
|
|
14
|
+
isMovableLayer: () => true;
|
|
15
|
+
}
|
|
16
|
+
export interface IMovableLayerElement extends HTMLDivElement, MovableLayerAttributes {
|
|
17
|
+
}
|
|
18
|
+
export interface MovableLayerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
/**
|
|
20
|
+
* The container to retrieve movable objects
|
|
21
|
+
*/
|
|
22
|
+
movables: IMovableCollection;
|
|
23
|
+
/**
|
|
24
|
+
* The container view to retrieve selection information about the movables.
|
|
25
|
+
*/
|
|
26
|
+
movablesView: IMovableSelection;
|
|
27
|
+
/**
|
|
28
|
+
* Callback to render the movable.
|
|
29
|
+
*
|
|
30
|
+
* @param props MovableElementProps
|
|
31
|
+
* @returns A React Element representing the IMovable.
|
|
32
|
+
*/
|
|
33
|
+
renderMovable: (props: MovableElementProps) => React.ReactElement;
|
|
34
|
+
/**
|
|
35
|
+
* If provided this will be used start and stop transactions on being/end move.
|
|
36
|
+
*/
|
|
37
|
+
transactional: ITransaction.ITransactional;
|
|
38
|
+
/**
|
|
39
|
+
* Called when the final movable is unselected.
|
|
40
|
+
*/
|
|
41
|
+
onUnFocus?: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Called when the final movable is unselected.
|
|
44
|
+
*/
|
|
45
|
+
onFocus?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* If disabled then movable selection will not be allowed and frames will be passed disabled.
|
|
48
|
+
* @defaultValue false
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* If disabled then unable to move.
|
|
53
|
+
*
|
|
54
|
+
* @defaultValue false
|
|
55
|
+
*/
|
|
56
|
+
disableDrag?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* If disabled then unable to resize.
|
|
59
|
+
*
|
|
60
|
+
* @defaultValue false
|
|
61
|
+
*/
|
|
62
|
+
disableResize?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Provider the anchor element to render.
|
|
65
|
+
*/
|
|
66
|
+
renderDirections?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Called after the first render of a movable.
|
|
69
|
+
*/
|
|
70
|
+
onFirstRender?: () => void;
|
|
71
|
+
/**
|
|
72
|
+
* Forwards the ref to the underlying element.
|
|
73
|
+
*/
|
|
74
|
+
ref?: React.Ref<IMovableLayerElement>;
|
|
75
|
+
}
|
|
76
|
+
export declare const MovableLayer: React.NamedExoticComponent<Omit<MovableLayerProps, "ref"> & React.RefAttributes<IMovableLayerElement>>;
|
|
77
|
+
//# sourceMappingURL=MovableLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovableLayer.d.ts","sourceRoot":"","sources":["../../../../src/movable/MovableLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EACM,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAkB,KAAK,YAAY,EAC7G,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAM1D,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtD;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAqB,SAAQ,cAAc,EAAE,sBAAsB;CAAG;AAGvF,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAC7B;;OAEG;IACH,YAAY,EAAE,iBAAiB,CAAC;IAChC;;;;;OAKG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,YAAY,CAAC;IAClE;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC,cAAc,CAAC;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IAEH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;CACvC;AA0CD,eAAO,MAAM,YAAY,wGAq9BtB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DraggableProps, ResizableProps } from 'react-moveable';
|
|
2
|
+
declare const Moveable: typeof import('react-moveable').InitialMoveable & (new (...args: any[]) => import('react-moveable').InitialMoveable<DraggableProps & ResizableProps>);
|
|
3
|
+
export default Moveable;
|
|
4
|
+
//# sourceMappingURL=MoveableBundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoveableBundle.d.ts","sourceRoot":"","sources":["../../../../src/movable/MoveableBundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,QAAQ,uJAIZ,CAAC;AAEH,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/movable/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IPicture } from '@sheetxl/sdk';
|
|
3
|
+
import { MovableElementProps } from '../movable';
|
|
4
|
+
export interface IPictureEditorAttributes {
|
|
5
|
+
isPictureEditor: () => true;
|
|
6
|
+
}
|
|
7
|
+
export interface IPictureEditorElement extends HTMLDivElement, IPictureEditorAttributes {
|
|
8
|
+
}
|
|
9
|
+
export interface PictureEditorProps extends MovableElementProps {
|
|
10
|
+
/**
|
|
11
|
+
* The underlying model for the picture.
|
|
12
|
+
*/
|
|
13
|
+
picture: IPicture;
|
|
14
|
+
/**
|
|
15
|
+
* Usable for alt text or loading
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Provide an optional loading panel.
|
|
20
|
+
*/
|
|
21
|
+
loadingPanel?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* If true the picture will be tiled to fill the area.
|
|
24
|
+
*/
|
|
25
|
+
tile?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Optional style for the picture editor.
|
|
28
|
+
*/
|
|
29
|
+
offsetX?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Optional style for the picture editor.
|
|
32
|
+
*/
|
|
33
|
+
offsetY?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Ref for the Element.
|
|
36
|
+
*/
|
|
37
|
+
ref?: React.Ref<IPictureEditorElement>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=IPictureEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPictureEditor.d.ts","sourceRoot":"","sources":["../../../../src/picture/IPictureEditor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc,EAAE,wBAAwB;CAAG;AAC1F,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IPictureEditorElement, PictureEditorProps } from './IPictureEditor';
|
|
3
|
+
export declare const PictureEditor: React.NamedExoticComponent<Omit<PictureEditorProps, "ref"> & React.RefAttributes<IPictureEditorElement>>;
|
|
4
|
+
//# sourceMappingURL=PictureEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictureEditor.d.ts","sourceRoot":"","sources":["../../../../src/picture/PictureEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EACL,KAAK,qBAAqB,EAAiC,KAAK,kBAAkB,EACnF,MAAM,kBAAkB,CAAC;AAY1B,eAAO,MAAM,aAAa,0GA0KvB,CAAC"}
|