@sheetxl/react 0.7.22 → 0.7.23-beta.1
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/E9rKWgbrtweBguqR.mjs +6286 -0
- package/browser/esm/index.mjs +19252 -4911
- package/licenses/dependencies.txt +42 -214
- package/node/esm/CmChqiPvaotX5mCV.mjs +9 -0
- package/node/esm/index.mjs +17028 -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,111 @@
|
|
|
1
|
+
import { IFunction } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Split a rest/repeating parameter's name into its base and starting number: the trailing digits (or
|
|
4
|
+
* `1` if none), so `number` → `{ base: 'number', n: 1 }` and `values2` → `{ base: 'values', n: 2 }`.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* The shared numbering convention — the signature (`toSlots` in `FunctionPreviewPanel`) and the
|
|
8
|
+
* argument form ({@link toArgRows}) MUST agree on it, or `SUM`'s second slot reads `number2` in the
|
|
9
|
+
* hint and `number1` in the form.
|
|
10
|
+
*/
|
|
11
|
+
export declare const restBase: (raw: string) => {
|
|
12
|
+
base: string;
|
|
13
|
+
n: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* One row of the argument FORM — a concrete, fillable argument position.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* The counterpart to `FunctionPreviewPanel`'s `ArgSlot`, and deliberately not the same thing: a slot
|
|
20
|
+
* is a *caret window* over the signature (two wide, sliding, with `…` markers), while a row is one
|
|
21
|
+
* materialized field. Both derive their label / `descKey` / optionality the same way, so a parameter
|
|
22
|
+
* reads identically in the hint and in the form.
|
|
23
|
+
*/
|
|
24
|
+
export interface ArgRow {
|
|
25
|
+
/** Stable React key. Rows only ever APPEND, so an index is stable too — this reads better. */
|
|
26
|
+
key: string;
|
|
27
|
+
/**
|
|
28
|
+
* The label as shown (`number1`, `criteriaRange2`).
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* UNBRACKETED, unlike the signature's `[number2]`: the brackets are how one line of text says
|
|
32
|
+
* "optional" when it has nowhere else to put it. A form row has {@link optional} and its own
|
|
33
|
+
* emphasis (Excel bolds the required ones), so repeating the brackets would only be noise.
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
/** The declared parameter this row fills (its type/enums drive the field). */
|
|
37
|
+
param: IFunction.IParameterType;
|
|
38
|
+
/**
|
|
39
|
+
* The key this row's description is filed under in the descriptor. Usually the parameter's name; a
|
|
40
|
+
* period-2+ repeating group documents its slots nested, as `group.slot`.
|
|
41
|
+
*/
|
|
42
|
+
descKey: string;
|
|
43
|
+
/** Whether this row may be left empty. A repeating group's FIRST repetition is required. */
|
|
44
|
+
optional: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether MORE of this argument may follow — set on the trailing (spare) repetition of a rest
|
|
47
|
+
* parameter or repeating group, the row whose filling grows the form. The same fact the signature
|
|
48
|
+
* marks with its trailing `…`.
|
|
49
|
+
*/
|
|
50
|
+
repeat?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Expand a function's declared parameters into the concrete rows of an argument form, GROWN to fit
|
|
54
|
+
* what has been filled in so far.
|
|
55
|
+
*
|
|
56
|
+
* A plain parameter is one row. A **rest** parameter or a **repeating group** (`SUMIFS`'s
|
|
57
|
+
* range/criteria pair) is emitted a whole repetition at a time, with one spare repetition always
|
|
58
|
+
* waiting past the last one the user has touched — Excel's behavior: `SUM` opens on `number1` +
|
|
59
|
+
* `number2`, and typing into `number2` is what makes `number3` appear.
|
|
60
|
+
*
|
|
61
|
+
* @param params The callee's declared parameters, in order.
|
|
62
|
+
* @param filled The per-row texts the form currently holds (index-aligned with the returned rows),
|
|
63
|
+
* shorter or absent when nothing has been typed.
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* Growth is driven by the LAST filled row rather than by a count of the non-empty ones: a blank in
|
|
67
|
+
* the middle is a legal argument (`=IF(A1,,B1)`), so `['A1', '', 'A3']` must keep three rows plus the
|
|
68
|
+
* spare, not shrink back to two and drop what the user typed.
|
|
69
|
+
*
|
|
70
|
+
* A declaration may also carry parameters AFTER the group (`SWITCH`'s `default`). Those rows follow
|
|
71
|
+
* the repetitions, and are excluded from the scan that grows them — otherwise filling the trailing
|
|
72
|
+
* one would keep adding repetitions in front of itself. The one case that stays ambiguous is a group
|
|
73
|
+
* whose final repetition AND suffix are both filled: a flat, positional text array cannot say which
|
|
74
|
+
* of the two a value belongs to once the rows in between move. No declaration in the catalog has that
|
|
75
|
+
* shape today (every repeating group is the last parameter).
|
|
76
|
+
*/
|
|
77
|
+
export declare const toArgRows: (params: readonly IFunction.IParameterType[], filled?: readonly string[]) => ArgRow[];
|
|
78
|
+
/** Options for {@link assembleCall}. */
|
|
79
|
+
export interface AssembleCallOptions {
|
|
80
|
+
/**
|
|
81
|
+
* The workbook locale's argument separator (`,` or `;`).
|
|
82
|
+
*
|
|
83
|
+
* @defaultValue `','`
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* `FunctionHint.argSeparator` is where a caller with a hint already has it.
|
|
87
|
+
*/
|
|
88
|
+
separator?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Prefix the call with `=`.
|
|
91
|
+
*
|
|
92
|
+
* @defaultValue `true` — the text is a formula (what a cell takes, and what
|
|
93
|
+
* `createFormula` evaluates).
|
|
94
|
+
*/
|
|
95
|
+
equals?: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Assemble the argument texts into the call to insert — `=SUM(A1:A5,B1)`.
|
|
99
|
+
*
|
|
100
|
+
* Trailing **optional** arguments that were left empty are dropped; nothing else is. A blank in the
|
|
101
|
+
* middle is meaningful — `=IF(A1,,B1)` is a legal formula and is NOT `=IF(A1,B1)` — and so is a blank
|
|
102
|
+
* required argument, which keeps the call's arity honest while the form is half-filled. An untouched
|
|
103
|
+
* form assembles to the bare `=NAME()`.
|
|
104
|
+
*
|
|
105
|
+
* @param name The function name to write — the LOCALIZED one where the user is typing in their own
|
|
106
|
+
* language (`hint.nameLocal`), since that is what the cell will hold.
|
|
107
|
+
* @param rows The form's rows, from {@link toArgRows} (their optionality is what may be trimmed).
|
|
108
|
+
* @param filled The per-row texts, index-aligned with `rows`.
|
|
109
|
+
*/
|
|
110
|
+
export declare const assembleCall: (name: string, rows: readonly ArgRow[], filled: readonly string[], options?: AssembleCallOptions) => string;
|
|
111
|
+
//# sourceMappingURL=functionArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functionArgs.d.ts","sourceRoot":"","sources":["../../../../src/editor/functionArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAG/D,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,WAAW,MAAM;IACrB,8FAA8F;IAC9F,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC;IAChC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,4FAA4F;IAC5F,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,SAAS,GACpB,QAAQ,SAAS,SAAS,CAAC,cAAc,EAAE,EAC3C,SAAQ,SAAS,MAAM,EAAO,KAC7B,MAAM,EAgDR,CAAC;AAEF,wCAAwC;AACxC,MAAM,WAAW,mBAAmB;IAClC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,MAAM,SAAS,MAAM,EAAE,EACvB,QAAQ,SAAS,MAAM,EAAE,EACzB,UAAU,mBAAmB,KAC5B,MAWF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IFunction } from '@sheetxl/sdk';
|
|
2
|
+
import { FunctionHint, FunctionDescriptor } from './FunctionPreviewPanel';
|
|
3
|
+
/** Options for {@link createFunctionHint}. */
|
|
4
|
+
export interface CreateFunctionHintOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Which argument to emphasize.
|
|
7
|
+
*
|
|
8
|
+
* @defaultValue `-1` — none, the BROWSING state (a function being read rather than filled in).
|
|
9
|
+
*/
|
|
10
|
+
argIndex?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The workbook locale, for the argument separator (`,` vs `;`).
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue `'en'`
|
|
15
|
+
*/
|
|
16
|
+
locale?: string | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Builds the {@link FunctionHint} that {@link FunctionSignature} / {@link FunctionPreviewContent}
|
|
20
|
+
* render, from a function the caller ALREADY has.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* The editor derives its hint from the caret (which function is open, which argument the caret sits
|
|
24
|
+
* in — see `useFormulaHints`); a picker derives it from a chosen function and no caret. Same hint,
|
|
25
|
+
* two sources, so the display conventions live here rather than in each: the localized display name
|
|
26
|
+
* read synchronously from the active pack (Plane 3, canonical name stays the identity), and the
|
|
27
|
+
* argument separator from the workbook locale (Plane 1) rather than a hard-coded comma.
|
|
28
|
+
*/
|
|
29
|
+
export declare const createFunctionHint: (fn: IFunction, options?: CreateFunctionHintOptions) => FunctionHint;
|
|
30
|
+
/**
|
|
31
|
+
* Adapts a resolved SDK descriptor to the {@link FunctionDescriptor} the preview renders.
|
|
32
|
+
*
|
|
33
|
+
* @param name The CANONICAL function name — what the preview matches against the hint to tell a
|
|
34
|
+
* current descriptor from one still arriving for the previous function.
|
|
35
|
+
*/
|
|
36
|
+
export declare const createFunctionDescriptor: (name: string, descriptor: IFunction.IDescriptor) => FunctionDescriptor;
|
|
37
|
+
//# sourceMappingURL=functionHint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functionHint.d.ts","sourceRoot":"","sources":["../../../../src/editor/functionHint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEjF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEpF,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,SAAS,EACb,UAAU,yBAAyB,KAClC,YASF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,EACZ,YAAY,SAAS,CAAC,WAAW,KAChC,kBAEF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './SheetEditable';
|
|
2
|
+
export * from './formulaText';
|
|
3
|
+
export * from './formulaEval';
|
|
4
|
+
export * from './useReferenceMode';
|
|
5
|
+
export * from './referencePointNav';
|
|
6
|
+
export * from './useFormulaInput';
|
|
7
|
+
export * from './SheetCellInput';
|
|
8
|
+
export * from './FunctionPreviewPanel';
|
|
9
|
+
export * from './functionHint';
|
|
10
|
+
export * from './functionArgs';
|
|
11
|
+
export * from './NamedItemsPanel';
|
|
12
|
+
export * from './NamedHintPanel';
|
|
13
|
+
export * from './EditorCommands';
|
|
14
|
+
export * from './useProtectedEditNotice';
|
|
15
|
+
export * from './SheetCellEditorLayer';
|
|
16
|
+
export * from './SheetReferenceLayer';
|
|
17
|
+
export * from './SheetReferenceHeaderLayer';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ReferenceModeState } from './useReferenceMode';
|
|
3
|
+
/** `true` while a point-nav seed / re-home write is in flight (see the fence note above). */
|
|
4
|
+
export declare const isReferencePointSeeding: () => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* The shared **point-mode navigation** keymap — the reference-picking keys every host routes the same
|
|
7
|
+
* way, so key routing "just works" wherever focus happens to be (the inline editor, the formula bar, a
|
|
8
|
+
* grid pane layer, a dialog range field):
|
|
9
|
+
*
|
|
10
|
+
* - Arrow → move the active reference (`navigate`)
|
|
11
|
+
* - Shift+Arrow → extend it (`navigate` select)
|
|
12
|
+
* - Ctrl/Cmd+Arrow → jump to the content edge (`navigate` contentful)
|
|
13
|
+
* - Ctrl+Space → select the whole column (`selectRegion` column)
|
|
14
|
+
* - Shift+Space → select the whole row (`selectRegion` row)
|
|
15
|
+
* - Ctrl+Shift+Space → select the whole region (`selectRegion` both)
|
|
16
|
+
*
|
|
17
|
+
* Only these are consumed (`preventDefault` + `stopPropagation`); anything else returns `false` and the
|
|
18
|
+
* host's own handling proceeds. **Done/leave keys (Enter / Tab / Escape and their variants) are
|
|
19
|
+
* deliberately NOT here** — they are host policy: a focused editor commits/cancels through its own
|
|
20
|
+
* keymap, the grid layer routes them to the bus's producer-supplied `onDone`, and a dialog picker wants
|
|
21
|
+
* them back in the dialog. A shared table for them would steal exactly the keys hosts must own.
|
|
22
|
+
*
|
|
23
|
+
* Operates purely on the bus state's {@link ReferenceModeState.selection} — no editor, no session. When
|
|
24
|
+
* the caret isn't on a reference yet (INSERT: `rangeIndex < 0`) the first key seeds an active range at
|
|
25
|
+
* the selection's anchor cell (fenced — see {@link isReferencePointSeeding}) and then navigates, so the
|
|
26
|
+
* write-back inserts the *navigated* range, even for the first keystroke.
|
|
27
|
+
*
|
|
28
|
+
* @param e The keydown, from whatever host captured it.
|
|
29
|
+
* @param state The current bus state (caller checks armedness policy; this checks `mode === 'point'`).
|
|
30
|
+
* @param pointScope The sheet the user is POINTING AT — always required, always stamped (the inverted
|
|
31
|
+
* reporting rule: a picker's report carries its scope unconditionally; the consumer localizes). A grid
|
|
32
|
+
* pane passes its own sheet; an input host passes the workbook's DISPLAYED sheet (Excel: keyboard
|
|
33
|
+
* pointing targets the sheet you are looking at). The seed — and, on a re-scope, the active
|
|
34
|
+
* reference — is re-homed here before the move, the same semantics as the mouse path's pane-side
|
|
35
|
+
* stamping (`scopeDrawnRanges`).
|
|
36
|
+
* @returns `true` when the key was consumed (a point-nav key while `'point'` is armed).
|
|
37
|
+
*/
|
|
38
|
+
export declare const handleReferencePointNav: (e: React.KeyboardEvent, state: ReferenceModeState | null, pointScope: string) => boolean;
|
|
39
|
+
//# sourceMappingURL=referencePointNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referencePointNav.d.ts","sourceRoot":"","sources":["../../../../src/editor/referencePointNav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAS7D,6FAA6F;AAC7F,eAAO,MAAM,uBAAuB,QAAO,OAAmB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,uBAAuB,GAClC,GAAG,KAAK,CAAC,aAAa,EACtB,OAAO,kBAAkB,GAAG,IAAI,EAChC,YAAY,MAAM,KACjB,OA2EF,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICalculation, INamedCollection } from '@sheetxl/sdk';
|
|
3
|
+
import { NamedItem } from './NamedItemsPanel';
|
|
4
|
+
/**
|
|
5
|
+
* The autocomplete rows for a typed `prefix` — the whole list, from all three sources, in the order
|
|
6
|
+
* they are shown.
|
|
7
|
+
*
|
|
8
|
+
* Excel's list is ONE alphabetical run rather than a run per kind: a user typing `SU` is reaching for
|
|
9
|
+
* a name, not for a category, so functions, defined names and tables interleave and the leading glyph
|
|
10
|
+
* carries the distinction.
|
|
11
|
+
*
|
|
12
|
+
* Sources and their asymmetries:
|
|
13
|
+
* - **Functions** — matched on the LOCALIZED name a user of the active language types and sees
|
|
14
|
+
* (`SUMME`) *or* its canonical English (English is always accepted; see I18N-DESIGN.md Plane 3). The
|
|
15
|
+
* localized name is what gets inserted, and that is correct: the editing compiler binds it back to
|
|
16
|
+
* canonical and storage stays canonical. Capped at {@link MAX_FUNCTION_RESULTS} *before* the merge.
|
|
17
|
+
* - **Names and tables** — one collection (a table is an `INamed` whose `getType()` is `'table'`).
|
|
18
|
+
* Pass the SHEET's (`ISheet.getNames()`), which already holds exactly what a formula written there
|
|
19
|
+
* can refer to, shadowing resolved — the workbook's would offer other sheets' private names.
|
|
20
|
+
* Deliberately NOT localized: a defined name is the user's own text, spelled the same in every
|
|
21
|
+
* language.
|
|
22
|
+
*
|
|
23
|
+
* A name colliding with a FUNCTION name is pathological but possible; the function wins, because that
|
|
24
|
+
* is what the compiler binds a bare identifier to — completing to the name would insert text that
|
|
25
|
+
* reads back as the function. Matching is case-insensitive throughout, as names are.
|
|
26
|
+
*
|
|
27
|
+
* Pure and total: either source failing costs only its own rows, never the list.
|
|
28
|
+
*/
|
|
29
|
+
export declare const buildMatches: (calc: ICalculation, prefix: string, names: INamedCollection | null) => NamedItem[];
|
|
30
|
+
/**
|
|
31
|
+
* Start offset (after the leading prefix — `base`) of the INNERMOST function call that is still OPEN at
|
|
32
|
+
* `caret` — the offset of that call's *name token* — or `null` when the caret isn't inside an open call.
|
|
33
|
+
* "Open" = the caret sits between the call's `(` and its matching `)` (which may not exist yet while the
|
|
34
|
+
* formula is being typed). This both anchors the hint popup to the function name (so it holds still as the
|
|
35
|
+
* caret moves through the arguments) and gates the preview (shown ⇔ non-null).
|
|
36
|
+
*
|
|
37
|
+
* A stack walk over the tokens BEFORE the caret: a `function` token arms a name-start that the next `(`
|
|
38
|
+
* pushes; `)` pops; a grouping `(` (no preceding `function`) pushes `-1` so a bare group `(A1+A2)` doesn't
|
|
39
|
+
* count. The innermost `function` entry still on the stack at the caret is the answer.
|
|
40
|
+
*
|
|
41
|
+
* Deliberately paren-balance, NOT the `evalIndex` climb the hover-eval tip uses. The tip is token-specific
|
|
42
|
+
* (hover a token → eval its subtree); the caret preview instead asks "which call am I INSIDE?", and that
|
|
43
|
+
* can't be read from `evalIndex`/`context`: `=sum(3)+` and `=sum(sum(3)+` end in the same `SUM#-1`,
|
|
44
|
+
* `evalIndex:undefined` trailing token yet want opposite results (none vs. the still-open outer). Only the
|
|
45
|
+
* paren balance separates a closed call from an open one.
|
|
46
|
+
*/
|
|
47
|
+
export declare const enclosingOpenFunctionStart: (tokens: readonly ICalculation.FormulaToken[], caret: number, base: number) => number | null;
|
|
48
|
+
export interface UseFormulaHintsOptions {
|
|
49
|
+
/** The live editor/field text. */
|
|
50
|
+
text: string;
|
|
51
|
+
/**
|
|
52
|
+
* The LIVE parse's tokens (a getter — some hosts declare their parse after this hook), or `null` —
|
|
53
|
+
* no hints derive without tokens. Offsets are text offsets past the leading prefix (the hook
|
|
54
|
+
* derives the prefix length from {@link text}).
|
|
55
|
+
*/
|
|
56
|
+
getTokens(): readonly ICalculation.FormulaToken[] | null;
|
|
57
|
+
/** Whether the host is actively editing (focused / engaged) — hints derive only while `true`. */
|
|
58
|
+
active: boolean;
|
|
59
|
+
/** The LIVE caret position (read at derivation time, not render time). */
|
|
60
|
+
getCaret(): number;
|
|
61
|
+
/** Resolution context — the calculation whose function registry backs the list + signatures. */
|
|
62
|
+
getCalculation(): ICalculation | null;
|
|
63
|
+
/**
|
|
64
|
+
* The named items — defined names AND tables — offered in the autocomplete list beside the
|
|
65
|
+
* functions, as Excel does. Omit (or return `null`) for a host with no workbook behind it; the list
|
|
66
|
+
* then holds functions only, exactly as before.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Must be the SHEET's collection (`ISheet.getNames()`), not the workbook's: that one holds exactly
|
|
70
|
+
* what a formula on that sheet can refer to, so no scoping is needed here. The workbook's would
|
|
71
|
+
* offer another sheet's private names, which complete to expressions that do not resolve.
|
|
72
|
+
*/
|
|
73
|
+
getNames?(): INamedCollection | null;
|
|
74
|
+
/** Workbook locale (drives the argument-separator shown in the signature). `null` → `'en'`. */
|
|
75
|
+
getLocale(): string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Apply an accepted completion: replace the WHOLE text and park the caret at `caret`. The editor
|
|
78
|
+
* routes this through its dirty-change; a field through its headless `replaceText`.
|
|
79
|
+
*/
|
|
80
|
+
applyText(next: string, caret: number): void;
|
|
81
|
+
/**
|
|
82
|
+
* The hovered token index (the eval tip's), or `null` — emphasizes the hovered ARGUMENT in the
|
|
83
|
+
* signature preview. Pass the live value (it participates in the panel identity).
|
|
84
|
+
*/
|
|
85
|
+
hoveredTokenIndex?: number | null;
|
|
86
|
+
}
|
|
87
|
+
/** What {@link useFormulaHints} hands the hosting chrome. */
|
|
88
|
+
export interface FormulaHintsApi {
|
|
89
|
+
/** Something to show — the autocomplete list has matches, or a signature preview resolved. */
|
|
90
|
+
active: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Re-derive the hint + matches from the current text/caret. Call whenever the text, caret, or
|
|
93
|
+
* active state changes (the same sync point that projects references).
|
|
94
|
+
*/
|
|
95
|
+
update(): void;
|
|
96
|
+
/**
|
|
97
|
+
* Autocomplete list keyboard nav (Up/Down move the highlight, Enter/Tab accept, Escape dismisses
|
|
98
|
+
* the LIST without cancelling the edit). Call FIRST in the host keymap; `true` = consumed.
|
|
99
|
+
*/
|
|
100
|
+
handleKeyDown(e: React.KeyboardEvent): boolean;
|
|
101
|
+
/** Drop the list + preview immediately (host-driven — e.g. leaving the edit). */
|
|
102
|
+
dismiss(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Anchor offset (a character index) for a caret-rect anchored host: the START of the caret-owning
|
|
105
|
+
* token (the name being typed / the innermost open call's name), falling back to the caret.
|
|
106
|
+
*/
|
|
107
|
+
getAnchorOffset(): number;
|
|
108
|
+
/**
|
|
109
|
+
* STABLE-identity panel renderer for `useFloatStack.createPopupPanel` — the autocomplete list when
|
|
110
|
+
* it has matches, else the signature preview. Returns `null` when there is nothing to show.
|
|
111
|
+
*/
|
|
112
|
+
renderPanel(): React.ReactNode;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The **formula hints** state machine — function autocomplete (`=SU` → SUM, SUMIF…) and the
|
|
116
|
+
* caret-context signature preview (current argument emphasized, self-describing summary/param text
|
|
117
|
+
* loaded lazily), extracted from the cell editor so every formula-hosting input shares ONE
|
|
118
|
+
* implementation: the session stack's `SheetCellInput` and the session-less field widgets
|
|
119
|
+
* (`useFormulaInputParts` → `FormulaInput` / the MUI `FormulaField`).
|
|
120
|
+
*
|
|
121
|
+
* Headless: derivation + keyboard + the panel's content only. The HOST owns the float (each chrome
|
|
122
|
+
* anchors a `useFloatStack` where it wants — the editor at the caret rect, a field under its input
|
|
123
|
+
* box), the open/close policy, and when {@link FormulaHintsApi.update} runs.
|
|
124
|
+
*/
|
|
125
|
+
export declare const useFormulaHints: (options: UseFormulaHintsOptions) => FormulaHintsApi;
|
|
126
|
+
//# sourceMappingURL=useFormulaHints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormulaHints.d.ts","sourceRoot":"","sources":["../../../../src/editor/useFormulaHints.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,EAEL,KAAK,YAAY,EAAe,KAAK,gBAAgB,EACtD,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAwCnD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,YAAY,EAClB,QAAQ,MAAM,EACd,OAAO,gBAAgB,GAAG,IAAI,KAC7B,SAAS,EA0BX,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,0BAA0B,GACrC,QAAQ,SAAS,YAAY,CAAC,YAAY,EAAE,EAC5C,OAAO,MAAM,EACb,MAAM,MAAM,KACX,MAAM,GAAG,IAeX,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,IAAI,SAAS,YAAY,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IACzD,iGAAiG;IACjG,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,QAAQ,IAAI,MAAM,CAAC;IACnB,gGAAgG;IAChG,cAAc,IAAI,YAAY,GAAG,IAAI,CAAC;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,gBAAgB,GAAG,IAAI,CAAC;IACrC,+FAA+F;IAC/F,SAAS,IAAI,MAAM,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,8FAA8F;IAC9F,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,MAAM,IAAI,IAAI,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC;IAC/C,iFAAiF;IACjF,OAAO,IAAI,IAAI,CAAC;IAChB;;;OAGG;IACH,eAAe,IAAI,MAAM,CAAC;IAC1B;;;OAGG;IACH,WAAW,IAAI,KAAK,CAAC,SAAS,CAAC;CAChC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,sBAAsB,KAAG,eA0SjE,CAAC"}
|