@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/picture/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RemoveListener } from '@sheetxl/utils';
|
|
2
|
+
import { ISheet } from '@sheetxl/sdk';
|
|
3
|
+
import { Command } from '@sheetxl/utils-react';
|
|
4
|
+
import { SelectionNavigation } from '@sheetxl/grid-react';
|
|
5
|
+
/** The single `data` bundle {@link contributeSelectionCommands} takes (the `DynamicCommandContributor` shape). */
|
|
6
|
+
export interface SelectionCommandData {
|
|
7
|
+
/** `null` on the first render — the layer's `SelectionNavigation` is produced by its child via a ref. */
|
|
8
|
+
navigation: SelectionNavigation | null;
|
|
9
|
+
sheet?: ISheet;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Contribute the selection **behavior** onto `contribution` (a per-pane layer scope's contribution), as thin
|
|
13
|
+
* delegates to the layer's {@link SelectionNavigation} handle. Mirrors {@link contributeClipboardCommands}
|
|
14
|
+
* — a plain fn the wiring component calls, so the contributor is separately injectable. Returns a remover for
|
|
15
|
+
* parity with the other dynamic contributors; selection has no model listeners (pure delegation), so the
|
|
16
|
+
* commands themselves are torn down by the caller's `contribution.remove()`.
|
|
17
|
+
*
|
|
18
|
+
* The key inventory is the navigation's own binding map — no parallel key list to drift from it. Command
|
|
19
|
+
* CHROME (label / description / shortcut / tags) comes from the catalog (`selection.cmd.json`, scope
|
|
20
|
+
* `selection`); catalog keys with no binding here (and no `sheet`) stay chrome-only ⇒ disabled.
|
|
21
|
+
*/
|
|
22
|
+
export declare function contributeSelectionCommands(contribution: Command.CommandContribution, data: SelectionCommandData): RemoveListener;
|
|
23
|
+
//# sourceMappingURL=SelectionCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionCommands.d.ts","sourceRoot":"","sources":["../../../../src/selection/SelectionCommands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,kHAAkH;AAClH,MAAM,WAAW,oBAAoB;IACnC,yGAAyG;IACzG,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,OAAO,CAAC,mBAAmB,EACzC,IAAI,EAAE,oBAAoB,GACzB,cAAc,CAehB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { RangeAxis, CellCoords, Direction, RangeCoords, SelectionCoords } from '@sheetxl/utils';
|
|
2
|
+
import { IRangeSelection } from '@sheetxl/sdk';
|
|
3
|
+
import { ISelection } from '@sheetxl/grid-react';
|
|
4
|
+
/**
|
|
5
|
+
* The sheet-backed {@link ISelection}: a thin adapter over the sdk {@link IRangeSelection} so the new
|
|
6
|
+
* selection layers (and the editor, via {@link ICellAnchor}) drive the real `sheet.getSelection()`
|
|
7
|
+
* instead of the dumb in-memory `DefaultSelection`.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The architecture deliberately pushes the *smart* selection logic (merge / hidden / contentful
|
|
11
|
+
* awareness, bounds clamping) into the model, so this adapter is almost pure delegation —
|
|
12
|
+
* `navigate` / `traverse` / `modify` / `append` map straight onto the sdk's implementations. The two
|
|
13
|
+
* non-trivial seams:
|
|
14
|
+
*
|
|
15
|
+
* - **Reads are stable.** `IRangeSelection.getCoords()` returns its internal `_coords` reference,
|
|
16
|
+
* replaced only on a real change (its `updateCoords` short-circuits on `isEqualSelectionCoords`), so
|
|
17
|
+
* `getSelection()` satisfies the `useSyncExternalStore` stable-snapshot invariant with no caching.
|
|
18
|
+
* - **Subscription is ref-counted.** A single sdk `onChange` listener is attached while *any* React
|
|
19
|
+
* subscriber is present and detached when the last leaves — no dangling sdk listener, no `dispose()`.
|
|
20
|
+
*
|
|
21
|
+
* `deselect` is the one intent the sdk has no native method for; it is computed here as a pure range
|
|
22
|
+
* split (mirroring `DefaultSelection.deselect`) and written back through `updateCoords`.
|
|
23
|
+
*
|
|
24
|
+
* The `Direction` / `RangeAxis` unions are the same `as const` string literals the sdk's `IRange.*`
|
|
25
|
+
* use, so they pass through without mapping.
|
|
26
|
+
*/
|
|
27
|
+
export declare class SheetSelection implements ISelection {
|
|
28
|
+
private readonly _sel;
|
|
29
|
+
private readonly _listeners;
|
|
30
|
+
private _removeSdkListener;
|
|
31
|
+
constructor(selection: IRangeSelection);
|
|
32
|
+
/** The wrapped sdk selection (for callers that need sheet-specific APIs the model doesn't expose). */
|
|
33
|
+
get selection(): IRangeSelection;
|
|
34
|
+
/** @inheritdoc ISelection.getSelection */
|
|
35
|
+
getSelection(): SelectionCoords;
|
|
36
|
+
/** @inheritdoc ISelection.setSelection */
|
|
37
|
+
setSelection(next: SelectionCoords): void;
|
|
38
|
+
/** @inheritdoc ISelection.navigate */
|
|
39
|
+
navigate(direction: Direction, select?: boolean, contentful?: boolean, increment?: number): void;
|
|
40
|
+
/** @inheritdoc ISelection.traverse */
|
|
41
|
+
traverse(axis?: RangeAxis, reverse?: boolean, region?: RangeCoords): void;
|
|
42
|
+
/** @inheritdoc ISelection.modify */
|
|
43
|
+
modify(cell: Partial<CellCoords>, pivot?: Partial<CellCoords>): void;
|
|
44
|
+
/** @inheritdoc ISelection.append */
|
|
45
|
+
append(start: CellCoords, end?: CellCoords): void;
|
|
46
|
+
/** @inheritdoc ISelection.deselect */
|
|
47
|
+
deselect(rangeToRemove: RangeCoords): void;
|
|
48
|
+
/** @inheritdoc ICellAnchor.getCoords */
|
|
49
|
+
getCoords(): CellCoords;
|
|
50
|
+
/** @inheritdoc ICellAnchor.subscribe */
|
|
51
|
+
subscribe(listener: () => void): (() => void);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=SheetSelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetSelection.d.ts","sourceRoot":"","sources":["../../../../src/selection/SheetSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EACoB,SAAS,EAClC,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EACxE,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAyB;IACpD,OAAO,CAAC,kBAAkB,CAA6B;gBAE3C,SAAS,EAAE,eAAe;IAItC,sGAAsG;IACtG,IAAI,SAAS,IAAI,eAAe,CAE/B;IAED,0CAA0C;IAC1C,YAAY,IAAI,eAAe;IAI/B,0CAA0C;IAC1C,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAIzC,sCAAsC;IACtC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,GAAE,OAAe,EAAE,UAAU,GAAE,OAAe,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAI9G,sCAAsC;IACtC,QAAQ,CAAC,IAAI,GAAE,SAAyB,EAAE,OAAO,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI;IAI/F,oCAAoC;IACpC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI;IAIpE,oCAAoC;IACpC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,GAAE,UAAkB,GAAG,IAAI;IAIxD,sCAAsC;IACtC,QAAQ,CAAC,aAAa,EAAE,WAAW,GAAG,IAAI;IAuC1C,wCAAwC;IACxC,SAAS,IAAI,UAAU;IAIvB,wCAAwC;IACxC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC;CAmB9C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ISheet } from '@sheetxl/sdk';
|
|
3
|
+
import { IShowToolTipProperties } from '@sheetxl/utils-react';
|
|
4
|
+
import { LayerProps } from '@sheetxl/grid-react';
|
|
5
|
+
export interface SheetSelectionLayerProps extends LayerProps {
|
|
6
|
+
/** The sheet whose `getSelection()` this layer drives. */
|
|
7
|
+
sheet: ISheet;
|
|
8
|
+
/** Whether this sheet/pane is the active one (gates move/fill interaction). */
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
/** Show a transient tooltip (the fill preview value). Threaded from `SheetElement`; no-op if omitted. */
|
|
11
|
+
onShowTooltip?: (properties: IShowToolTipProperties) => void;
|
|
12
|
+
/** Hide the tooltip. */
|
|
13
|
+
onCloseTooltip?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Renders the generic grid-react {@link SelectionLayer} wired with the
|
|
17
|
+
* sheet interaction config — a {@link SheetSelection} model, the **move grip** (`onMove`: move/copy/insert
|
|
18
|
+
* with an overwrite-confirm), the **fill handle** (`onFill`: auto-fill, with a **preview tooltip**), the
|
|
19
|
+
* drag **edit modes** (cursor/description while dragging the grip or fill), and the enable gating — and,
|
|
20
|
+
* when a command scope is present, contributes the selection nav onto it (yielding the layer's keyboard).
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* The *smart* selection logic (merge / hidden / contentful nav, bounds) lives in the model
|
|
24
|
+
* ({@link SheetSelection} → `IRangeSelection`); this layer only wires the view-side interactions the model
|
|
25
|
+
* doesn't own.
|
|
26
|
+
* The fill preview tooltip is threaded via `onShowTooltip`/`onCloseTooltip` — a float
|
|
27
|
+
* provider would eventually replace that prop-drilling.
|
|
28
|
+
*/
|
|
29
|
+
export declare const SheetSelectionLayer: React.FC<SheetSelectionLayerProps>;
|
|
30
|
+
//# sourceMappingURL=SheetSelectionLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetSelectionLayer.d.ts","sourceRoot":"","sources":["../../../../src/selection/SheetSelectionLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,cAAc,CAAC;AAEhF,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAE+C,KAAK,UAAU,EACpE,MAAM,qBAAqB,CAAC;AAO7B,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yGAAyG;IACzG,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC7D,wBAAwB;IACxB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0SlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/selection/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MovableElementProps } from '../movable';
|
|
3
|
+
export interface ShapeEditorAttributes {
|
|
4
|
+
isShapeEditor: () => true;
|
|
5
|
+
}
|
|
6
|
+
export interface IShapeEditorElement extends HTMLDivElement, ShapeEditorAttributes {
|
|
7
|
+
}
|
|
8
|
+
export interface ShapeEditorProps extends MovableElementProps {
|
|
9
|
+
shape: any;
|
|
10
|
+
ref?: React.Ref<IShapeEditorElement>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Placeholder for chart editors.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ShapeEditor: React.NamedExoticComponent<Omit<ShapeEditorProps, "ref"> & React.RefAttributes<IShapeEditorElement>>;
|
|
16
|
+
//# sourceMappingURL=ShapeEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeEditor.d.ts","sourceRoot":"","sources":["../../../../src/shape/ShapeEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,cAAc,EAAE,qBAAqB;CAAG;AACrF,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,KAAK,EAAE,GAAG,CAAC;IACX,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,sGAkErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shape/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IConditionalFormat, IStyle } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Shared authoring presets for the conditional-format editor.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The literal colors here are Excel's own — a rule authored from a preset in this editor and the
|
|
7
|
+
* same preset in Excel must be byte-equivalent on the wire, so these are lifted from files Excel
|
|
8
|
+
* writes, not approximated on screen.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Excel's six canned dxf presets, in its menu order.
|
|
12
|
+
*/
|
|
13
|
+
export interface StylePreset {
|
|
14
|
+
/** Stable identifier; UI layers key their localized tooltip off it. */
|
|
15
|
+
key: string;
|
|
16
|
+
style: IStyle.Properties;
|
|
17
|
+
}
|
|
18
|
+
export declare const STYLE_PRESETS: readonly StylePreset[];
|
|
19
|
+
/**
|
|
20
|
+
* Excel's 12 color-scale presets, in its gallery order (3-color scales first).
|
|
21
|
+
* The colors within each preset run min → max.
|
|
22
|
+
*/
|
|
23
|
+
export declare const COLOR_SCALE_PRESETS: readonly IConditionalFormat.ColorScale[];
|
|
24
|
+
/** Excel's default bar blue, and its data-bar gallery palette. */
|
|
25
|
+
export declare const DATA_BAR_COLORS: readonly string[];
|
|
26
|
+
/** Excel's default fill for bars of negative values. */
|
|
27
|
+
export declare const DATA_BAR_NEGATIVE_COLOR = "#FF0000";
|
|
28
|
+
/**
|
|
29
|
+
* Excel's 12 data-bar presets, in its gallery order: the palette in gradient fill, then the same
|
|
30
|
+
* six solid.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DATA_BAR_PRESETS: readonly IConditionalFormat.DataBar[];
|
|
33
|
+
export declare const defaultColorScale: () => IConditionalFormat.ColorScale;
|
|
34
|
+
export declare const defaultDataBar: () => IConditionalFormat.DataBar;
|
|
35
|
+
/** Evenly banded percent stops — Excel's default thresholds for an n-icon set. */
|
|
36
|
+
export declare const defaultIconStops: (count: number) => IConditionalFormat.Stop[];
|
|
37
|
+
export declare const defaultIconSet: () => IConditionalFormat.IconSet;
|
|
38
|
+
/**
|
|
39
|
+
* Excel's icon-set gallery groups. UI layers key their localized group headers off `key`.
|
|
40
|
+
*/
|
|
41
|
+
export interface IconSetGroup {
|
|
42
|
+
key: 'directional' | 'shapes' | 'indicators' | 'ratings';
|
|
43
|
+
sets: readonly IStyle.IconSet[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Every set the gallery offers, grouped and ordered the way Excel's own gallery is.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Includes the three Excel 2010 sets (`3Triangles`, `3Stars`, `5Boxes`) the legacy OOXML schema has
|
|
50
|
+
* no name for — a workbook that uses one is written with the rule in the x14 extension, which is
|
|
51
|
+
* what Excel itself does, so offering them here costs no fidelity.
|
|
52
|
+
*/
|
|
53
|
+
export declare const ICON_SET_GROUPS: readonly IconSetGroup[];
|
|
54
|
+
/** The number of icons (and stops) in a named set — the leading digit of every OOXML set name. */
|
|
55
|
+
export declare const iconSetSize: (set: string) => number;
|
|
56
|
+
//# sourceMappingURL=ConditionalFormatPresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalFormatPresets.d.ts","sourceRoot":"","sources":["../../../../src/sheet/ConditionalFormatPresets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAW,MAAM,EAAE,MAAM,cAAc,CAAC;AAEnE;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uEAAuE;IACvE,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAgC9C,CAAC;AAoBH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,kBAAkB,CAAC,UAAU,EAatE,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAE3C,CAAC;AAEH,wDAAwD;AACxD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAgBjD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,kBAAkB,CAAC,OAAO,EAGhE,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAAO,kBAAkB,CAAC,UACkB,CAAC;AAE3E,eAAO,MAAM,cAAc,QAAO,kBAAkB,CAAC,OACe,CAAC;AAErE,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,KAAG,kBAAkB,CAAC,IAAI,EASvE,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,kBAAkB,CAAC,OAInD,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC;IACzD,IAAI,EAAE,SAAS,MAAM,CAAC,OAAO,EAAE,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EA8BjD,CAAC;AAEH,kGAAkG;AAClG,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MAGzC,CAAC"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { ISheet, ICell, IMovable } from '@sheetxl/sdk';
|
|
2
|
+
import { CellCoords } from '@sheetxl/utils';
|
|
3
|
+
import { ViewportMetrics, IShowToolTipProperties, ScrollPaneProps, Viewport, ThemeMode } from '@sheetxl/utils-react';
|
|
4
|
+
import { GridSurfaceProps, IGridSurface, IEditable, LayerNode } from '@sheetxl/grid-react';
|
|
5
|
+
import { SheetCellRendererProps, ColumnButtonConfigProps } from '../cell';
|
|
6
|
+
import { MovableElementProps } from '../movable';
|
|
7
|
+
import { ISheetHeaderElement, SheetHeaderProps } from './ISheetHeaderElement';
|
|
8
|
+
/**
|
|
9
|
+
* Describes how to begin an edit — the imperative "start editing" request the sheet element exposes
|
|
10
|
+
* ({@link ISheetElement.startEdit}), e.g. from a command or the formula bar. The element maps it onto
|
|
11
|
+
* the shared editable's start options.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Lives here (the host that owns the request) — grid-react's editor API takes `StartEditOptions`
|
|
15
|
+
* directly and does not carry this shape.
|
|
16
|
+
*/
|
|
17
|
+
export interface StartEditEvent {
|
|
18
|
+
/**
|
|
19
|
+
* Edit text. If this is null or undefined then this will not replace the text.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue null
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* * A '' will clear the text.
|
|
25
|
+
*/
|
|
26
|
+
text?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Is editor starting in edit mode.
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*/
|
|
32
|
+
editMode?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Allows the initial selection position to be overridden. By default it's at the end
|
|
35
|
+
*/
|
|
36
|
+
initialSelection?: {
|
|
37
|
+
start: number;
|
|
38
|
+
end: number;
|
|
39
|
+
direction?: "forward" | "backward" | "none";
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Should the editor take focus when the edit starts.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue true
|
|
45
|
+
*/
|
|
46
|
+
autoFocus?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The cell that should be edited
|
|
49
|
+
*/
|
|
50
|
+
cell?: CellCoords;
|
|
51
|
+
}
|
|
52
|
+
export interface SheetLocation {
|
|
53
|
+
clientX: number;
|
|
54
|
+
clientY: number;
|
|
55
|
+
originalEvent?: React.MouseEvent<Element>;
|
|
56
|
+
clientWidth?: number;
|
|
57
|
+
clientHeight?: number;
|
|
58
|
+
rowIndex?: number;
|
|
59
|
+
colIndex?: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Props for the SheetElement component.
|
|
63
|
+
*/
|
|
64
|
+
export interface SheetElementProps extends React.HTMLAttributes<HTMLDivElement>, React.Attributes {
|
|
65
|
+
/**
|
|
66
|
+
* The `ISheet` to render.
|
|
67
|
+
*/
|
|
68
|
+
sheet: ISheet;
|
|
69
|
+
/**
|
|
70
|
+
* The app (chrome / header) color scheme — selects the header/app surface mode.
|
|
71
|
+
*/
|
|
72
|
+
colorScheme?: ThemeMode;
|
|
73
|
+
/**
|
|
74
|
+
* The grid-body color scheme (stays light in a dark app when *Enable Dark Grid* is off) — drives the grid
|
|
75
|
+
* `darkMode` rendering intent and the grid surface mode.
|
|
76
|
+
*/
|
|
77
|
+
gridColorScheme?: ThemeMode;
|
|
78
|
+
/**
|
|
79
|
+
* Show the column headers
|
|
80
|
+
*/
|
|
81
|
+
showColumnHeaders?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Show the row headers
|
|
84
|
+
*/
|
|
85
|
+
showRowHeaders?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Show the scrollbars
|
|
88
|
+
*/
|
|
89
|
+
showScrollbars?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Show hover tooltips on cells that carry calc errors / warnings.
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue true
|
|
94
|
+
*/
|
|
95
|
+
showCellErrors?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Properties for the column headers
|
|
98
|
+
*/
|
|
99
|
+
propsColumnHeader?: Partial<SheetHeaderProps>;
|
|
100
|
+
/**
|
|
101
|
+
* Properties for the row headers
|
|
102
|
+
*/
|
|
103
|
+
propsRowHeader?: Partial<SheetHeaderProps>;
|
|
104
|
+
/**
|
|
105
|
+
* Allow for customizations of scrollbar
|
|
106
|
+
*/
|
|
107
|
+
propsScrollPane?: ScrollPaneProps;
|
|
108
|
+
/**
|
|
109
|
+
* Share a scroll {@link Viewport}. Pass one to own/drive the sheet's scroll externally —
|
|
110
|
+
* e.g. WorkbookElement creates it and also hands it to its ScrollPane so they share one store (no
|
|
111
|
+
* `Viewport`-data round-trip). The sheet drives the main grid from it and hands it to its headers
|
|
112
|
+
* (each composes its own per-axis follower). When omitted, the sheet creates its own.
|
|
113
|
+
*/
|
|
114
|
+
viewport?: Viewport;
|
|
115
|
+
/**
|
|
116
|
+
* Fired when the view port changes.
|
|
117
|
+
* This is in pixel coordinates and slightly different then viewable cells because off screen location bounds could change
|
|
118
|
+
*/
|
|
119
|
+
onViewportChange?: (view: ViewportMetrics) => void;
|
|
120
|
+
/**
|
|
121
|
+
* Fire when a contentMenu is requested
|
|
122
|
+
*/
|
|
123
|
+
onSheetContextMenu?: (location: SheetLocation) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Called once when the sheet has been loaded but before it is rendered.
|
|
126
|
+
*/
|
|
127
|
+
onFirstRender?: () => void;
|
|
128
|
+
/**
|
|
129
|
+
* The app-created editor for the always-mounted cell editor. When provided, the grid edits through
|
|
130
|
+
* this shared {@link IEditable}; pass the SAME instance to the formula bar for free two-way sync. A
|
|
131
|
+
* stable reference. If omitted, a standalone SheetElement makes its own.
|
|
132
|
+
*/
|
|
133
|
+
editable?: IEditable<() => ICell, string>;
|
|
134
|
+
/**
|
|
135
|
+
* Fixed component that is layered within the viewport.
|
|
136
|
+
*
|
|
137
|
+
* @remarks Useful for dialogs and items that you want to place relative to the grid.
|
|
138
|
+
*/
|
|
139
|
+
viewportComponent?: React.ReactNode;
|
|
140
|
+
/**
|
|
141
|
+
* Render components for movable elements.
|
|
142
|
+
*
|
|
143
|
+
* @param props - {@link MovableElementProps}
|
|
144
|
+
* @returns A React Element representing the IMovable.
|
|
145
|
+
*/
|
|
146
|
+
renderMovable?: (props: MovableElementProps) => React.ReactElement;
|
|
147
|
+
/**
|
|
148
|
+
* Render element(s) directly onto the `GridSurface`, bottom → top — the same {@link LayerNode} the
|
|
149
|
+
* grid takes for its children (a node or an array of them). Each layer reads its pane from context
|
|
150
|
+
* ({@link useGridPane}); for a layer that must be built from the pane, call it in a small wrapper.
|
|
151
|
+
*/
|
|
152
|
+
layers?: LayerNode;
|
|
153
|
+
/**
|
|
154
|
+
* To show the tooltip
|
|
155
|
+
*
|
|
156
|
+
* @param props
|
|
157
|
+
*/
|
|
158
|
+
onShowTooltip?: (props: IShowToolTipProperties) => void;
|
|
159
|
+
onCloseTooltip?: () => void;
|
|
160
|
+
/**
|
|
161
|
+
* Customize the grid.
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
* Not all props are passed through.
|
|
165
|
+
*/
|
|
166
|
+
propsGrid?: GridSurfaceProps;
|
|
167
|
+
/**
|
|
168
|
+
* Allow for custom rendering of cell props.
|
|
169
|
+
*
|
|
170
|
+
* @remarks
|
|
171
|
+
* This is used to customize columnButton popup action and any other customizations desired.
|
|
172
|
+
* This does not invalidate the rendering
|
|
173
|
+
*/
|
|
174
|
+
propsCellRender?: Partial<SheetCellRendererProps> & ColumnButtonConfigProps;
|
|
175
|
+
/**
|
|
176
|
+
* Ref to the sheet element.
|
|
177
|
+
*/
|
|
178
|
+
ref?: React.Ref<ISheetElement>;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Attributes and methods available on the sheet element beyond the HTMLDivElement.
|
|
182
|
+
*/
|
|
183
|
+
export type ISheetAttributes = {
|
|
184
|
+
getGridSurface: () => IGridSurface;
|
|
185
|
+
getRowHeaderElement: () => ISheetHeaderElement;
|
|
186
|
+
getColumnHeaderElement: () => ISheetHeaderElement;
|
|
187
|
+
rowHeaderHeight: () => number;
|
|
188
|
+
colHeaderWidth: () => number;
|
|
189
|
+
startEdit(event?: StartEditEvent): void;
|
|
190
|
+
submitEdit(): void;
|
|
191
|
+
cancelEdit(): void;
|
|
192
|
+
isEditing: boolean;
|
|
193
|
+
contains(element: Node | null): boolean;
|
|
194
|
+
invalidate: (coords?: ICell.Coords | null) => void;
|
|
195
|
+
/**
|
|
196
|
+
* Focus the sheet or the movable based on last focus.
|
|
197
|
+
*
|
|
198
|
+
* @param options
|
|
199
|
+
*/
|
|
200
|
+
focus(options?: FocusOptions): void;
|
|
201
|
+
/**
|
|
202
|
+
* Focus the sheet.
|
|
203
|
+
*/
|
|
204
|
+
focusSheet(options?: FocusOptions): void;
|
|
205
|
+
/**
|
|
206
|
+
* Focus a specific float.
|
|
207
|
+
* If not provided will focus the first selected float.
|
|
208
|
+
*
|
|
209
|
+
* @remarks
|
|
210
|
+
* The focusMovable does not scroll.
|
|
211
|
+
* TODO - have this honor GridPanes scroll options.
|
|
212
|
+
*/
|
|
213
|
+
focusMovable(movable?: IMovable): Promise<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* Returns the attached `ISheet`.
|
|
216
|
+
*/
|
|
217
|
+
getSheet: () => ISheet;
|
|
218
|
+
/**
|
|
219
|
+
* Wheel intercept (ctrl/⌘+wheel ⇒ zoom). Return `false` to consume the event. Exposed so an outer
|
|
220
|
+
* scroll wrapper can route wheel through the sheet's zoom handling.
|
|
221
|
+
*/
|
|
222
|
+
onWheelScroll: (event: globalThis.WheelEvent) => boolean | void;
|
|
223
|
+
/**
|
|
224
|
+
* For runtime introspection.
|
|
225
|
+
*/
|
|
226
|
+
isSheetElement: () => true;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Type returned via ref property
|
|
230
|
+
*/
|
|
231
|
+
export interface ISheetElement extends HTMLDivElement, ISheetAttributes {
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=ISheetElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISheetElement.d.ts","sourceRoot":"","sources":["../../../../src/sheet/ISheetElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EACL,KAAK,eAAe,EAAE,KAAK,sBAAsB,EAAE,KAAK,eAAe,EACvE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAC9B,MAAM,sBAAsB,CAAC;AAE9B,OAAQ,EACN,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EACzE,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACJ,gBAAgB,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CA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OAAO,CAAC;IAEnB,QAAQ,CAAC,OAAO,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACxC,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC;;OAEG;IAEH,UAAU,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACzC;;;;;;;OAOG;IAEH,YAAY,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACnD;;OAEG;IACH,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB;;;OAGG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,KAAK,OAAO,GAAG,IAAI,CAAC;IAChE;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,EAAE,gBAAgB;CAAG"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FixedEdge } from '@sheetxl/utils';
|
|
3
|
+
import { ISheetHeader } from '@sheetxl/sdk';
|
|
4
|
+
import { Viewport, ThemeMode } from '@sheetxl/utils-react';
|
|
5
|
+
import { IGridSurface } from '@sheetxl/grid-react';
|
|
6
|
+
import { SheetCellRendererProps, ColumnButtonConfigProps } from '../cell';
|
|
7
|
+
import { SheetLocation } from './ISheetElement';
|
|
8
|
+
/**
|
|
9
|
+
* Props for the SheetHeaderElement component.
|
|
10
|
+
*/
|
|
11
|
+
export interface SheetHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
/**
|
|
13
|
+
* The underlying data model for the SheetHeader.
|
|
14
|
+
*/
|
|
15
|
+
sheetHeader: ISheetHeader;
|
|
16
|
+
/**
|
|
17
|
+
* The height or width in the opposite direction (for example a column headers height). This is the
|
|
18
|
+
* usable STAGE size (where labels draw); the separator edge ({@link edgeSize}) is added on top of it
|
|
19
|
+
* via a `border-box` border, so the rendered band is `oppositeSize + edgeSize`.
|
|
20
|
+
*/
|
|
21
|
+
oppositeSize: number;
|
|
22
|
+
/**
|
|
23
|
+
* The separator line drawn on the band's body-facing edge (the header's own `border-bottom` for a
|
|
24
|
+
* column header, `border-right` for a row header). Part of the `border-box`, so it lands between the
|
|
25
|
+
* stage and the body without stealing stage space. @defaultValue 1
|
|
26
|
+
*/
|
|
27
|
+
edgeSize?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Color of the separator {@link edgeSize} line. Typically the gridline token. @defaultValue `var(--sxl-color-base-300)`
|
|
30
|
+
*/
|
|
31
|
+
edgeColor?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Freeze start.
|
|
34
|
+
*/
|
|
35
|
+
freezeStart?: number | FixedEdge;
|
|
36
|
+
/**
|
|
37
|
+
* The app (header) color scheme — headers follow the app surface. Selects the header surface's mode; the
|
|
38
|
+
* surface's token VALUES come from the injected stylesheet.
|
|
39
|
+
*/
|
|
40
|
+
colorScheme?: ThemeMode;
|
|
41
|
+
/**
|
|
42
|
+
* @see
|
|
43
|
+
* {@link SheetHeaderRenderer#verticalPadding}
|
|
44
|
+
*/
|
|
45
|
+
verticalPadding?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @see
|
|
48
|
+
* {@link SheetHeaderRenderer#horizontalPadding}
|
|
49
|
+
*/
|
|
50
|
+
horizontalPadding?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Called when a contentMenu is requested.
|
|
53
|
+
*/
|
|
54
|
+
onSheetContextMenu?: (location: SheetLocation) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Called when resize of a header starts.
|
|
57
|
+
*/
|
|
58
|
+
onResizeHeadersStart?: (index: number, prevSize: number, description: string) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Called during resize of a header.
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* If there is a negative newSize then these headers will have been hidden
|
|
64
|
+
* This is for the specific header being resized.
|
|
65
|
+
* Note - Other headers may also have been resized if hiding
|
|
66
|
+
*/
|
|
67
|
+
onResizeHeaders?: (index: number, newSize: number, prevSize: number) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Called after resize of a header.
|
|
70
|
+
* If there is a positive newSize and a single selection then those
|
|
71
|
+
* headers will also have been resized.
|
|
72
|
+
*
|
|
73
|
+
* Note - Other colHeaderRuns may also have been resized if expanding
|
|
74
|
+
* Note - If this was autoFit then newSize and prevSize will be null.
|
|
75
|
+
*/
|
|
76
|
+
onResizeHeadersEnd?: (index: number, newSize: number, description: string) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Called when a header resize starts.
|
|
79
|
+
*/
|
|
80
|
+
onResizeHeadersDown?: (index: number, size: number) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Called when a header resize ends.
|
|
83
|
+
*/
|
|
84
|
+
onResizeHeadersUp?: (index: number) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Override the default headerText. If not provided then typical Sheet labeling is used.
|
|
87
|
+
*/
|
|
88
|
+
headerText?: (index: number) => string;
|
|
89
|
+
/**
|
|
90
|
+
* The sheet's MAIN scroll viewport. The header composes its own per-axis follower internally (it
|
|
91
|
+
* knows its axis): it follows this viewport on its scrolling axis (read-only) and owns a throwaway
|
|
92
|
+
* controller for the trivial cross axis. Sharing the main controller's rAF ticker keeps the header
|
|
93
|
+
* frame-locked, including momentum.
|
|
94
|
+
*/
|
|
95
|
+
viewport?: Viewport;
|
|
96
|
+
/**
|
|
97
|
+
* Callback when selection is manually started.
|
|
98
|
+
*/
|
|
99
|
+
onSelectionStart?: () => void;
|
|
100
|
+
/**
|
|
101
|
+
* Callback when selection is manually changed.
|
|
102
|
+
*/
|
|
103
|
+
onSelectionEnd?: () => void;
|
|
104
|
+
/**
|
|
105
|
+
* Allow for custom rendering of cell props.
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* This is used to customize columnButton popup action and any other customizations desired.
|
|
109
|
+
* This does not invalidate the rendering.
|
|
110
|
+
*/
|
|
111
|
+
propsCellRender?: Partial<SheetCellRendererProps> & ColumnButtonConfigProps;
|
|
112
|
+
/**
|
|
113
|
+
* Ref for the HTMLDivElement.
|
|
114
|
+
*/
|
|
115
|
+
ref?: React.Ref<ISheetHeaderElement>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Additional methods exposed via ref on the SheetHeaderElement.
|
|
119
|
+
*/
|
|
120
|
+
export type ISheetHeaderAttributes = {
|
|
121
|
+
/**
|
|
122
|
+
* Force the header to re-render.
|
|
123
|
+
*
|
|
124
|
+
* @returns
|
|
125
|
+
* This is useful when the underlying data model changes and the header needs to update to reflect those changes.
|
|
126
|
+
*/
|
|
127
|
+
forceRender: () => void;
|
|
128
|
+
/**
|
|
129
|
+
* Get the grid surface associated with this header.
|
|
130
|
+
*/
|
|
131
|
+
getGridSurface: () => IGridSurface;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Type returned via ref property.
|
|
135
|
+
*/
|
|
136
|
+
export interface ISheetHeaderElement extends HTMLDivElement, ISheetHeaderAttributes {
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=ISheetHeaderElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISheetHeaderElement.d.ts","sourceRoot":"","sources":["../../../../src/sheet/ISheetHeaderElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EACL,KAAK,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