@sheetxl/react 0.8.0-beta.1 → 0.8.0-beta.11
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/esm/1-LEUre9ZLG0OYYB.mjs +197 -0
- package/browser/esm/94dxo1A-z8lgiiGw.mjs +128 -0
- package/browser/esm/B26QVfjer2oY2ewK.mjs +32 -0
- package/browser/esm/B93LSmhnvkxNXTq-.mjs +42 -0
- package/browser/esm/BQYS2Yf-EAV_tBLr.mjs +20 -0
- package/{node/esm/DAE_NG8D9uT50zUH.mjs → browser/esm/BegvsXeRs7e-9t8k.mjs} +3 -4
- package/browser/esm/Bl2BFCQ00fotauKB.mjs +36 -0
- package/browser/esm/Bos4Rkp8UTF7QXUB.mjs +31 -0
- package/browser/esm/C1pc9F4Rt2C5FKUo.mjs +45 -0
- package/browser/esm/CPnnESfZz2jjJd82.mjs +134 -0
- package/browser/esm/CRi6DQ3UXmPEv-w_.mjs +729 -0
- package/browser/esm/ClAtIfYbsUPA073B.mjs +2706 -0
- package/browser/esm/CzRIbc-Lk__VMLKM.mjs +60 -0
- package/browser/esm/D2u6THGErqw64KQI.mjs +63 -0
- package/browser/esm/DMdsMPT0fWBbTkNn.mjs +67 -0
- package/browser/esm/DS66lAIM-9M-YoZQ.mjs +315 -0
- package/browser/esm/DgL7Dy-Lqcr1TvW6.mjs +23528 -0
- package/browser/esm/Dnh1kpz3v1JKtRD_.mjs +79 -0
- package/browser/esm/cQ6xdPFkEcuDlNTN.mjs +75 -0
- package/browser/esm/chart.mjs +40 -0
- package/browser/esm/control.mjs +216 -0
- package/browser/esm/group.mjs +123 -0
- package/browser/esm/index.mjs +15460 -8762
- package/browser/esm/note.mjs +112 -0
- package/browser/esm/picture.mjs +86 -0
- package/browser/esm/shape.mjs +7 -0
- package/browser/esm/slicer.mjs +276 -0
- package/browser/esm/ugfE7YeZALQURDKF.mjs +241 -0
- package/licenses/dependencies.txt +319 -600
- package/node/esm/6zApGj9DozhFy-bx.mjs +35 -0
- package/node/esm/BMVK5plvmBOAIlxP.mjs +80 -0
- package/node/esm/BaRfst1euuhquupX.mjs +66 -0
- package/node/esm/Be9c1GwQkPo8Piuh.mjs +134 -0
- package/node/esm/BiaDWnN3tT7neoRL.mjs +68 -0
- package/node/esm/BlxXufqBBg1PtsXd.mjs +8 -0
- package/node/esm/C_SNx7TlFEcwbYjx.mjs +2706 -0
- package/node/esm/DJPgbB1X22YmhbaR.mjs +242 -0
- package/node/esm/DTMTIrYIK1eZswsM.mjs +37 -0
- package/node/esm/D_pCpfdQowV_4Aje.mjs +198 -0
- package/node/esm/DgGEHydEjD7nfsDB.mjs +76 -0
- package/node/esm/Dj5FM7_-YWhCtCCt.mjs +45 -0
- package/node/esm/DxQZmb-j4NLUO9Af.mjs +63 -0
- package/node/esm/JiQGhLkoL8CJpVvA.mjs +20 -0
- package/node/esm/b-XRVRI1fYQQMkTC.mjs +1664 -0
- package/node/esm/chart.mjs +40 -0
- package/node/esm/control.mjs +216 -0
- package/node/esm/gpD-9LDW92phhoma.mjs +32 -0
- package/node/esm/group.mjs +123 -0
- package/node/esm/index.mjs +15830 -8966
- package/node/esm/note.mjs +113 -0
- package/node/esm/picture.mjs +86 -0
- package/node/esm/shape.mjs +735 -0
- package/node/esm/sigD1UFqvPlWUw_9.mjs +128 -0
- package/node/esm/slicer.mjs +278 -0
- package/node/esm/umljAT66yb3_rURh.mjs +320 -0
- package/package.json +55 -14
- package/resources/contents.json +24 -0
- package/resources/locales/contents.json +56 -0
- package/resources/locales/de/chart.cmd.json +82 -0
- package/resources/locales/de/movable.cmd.json +154 -0
- package/resources/locales/de/picture.cmd.json +31 -0
- package/resources/locales/de/selection.cmd.json +8 -0
- package/resources/locales/de/shape.cmd.json +17 -0
- package/resources/locales/de/sheet.cmd.json +339 -21
- package/resources/locales/de/slicer.cmd.json +17 -0
- package/resources/locales/de/table.cmd.json +9 -1
- package/resources/locales/de/ui.msg.json +321 -3
- package/resources/locales/de/workbook.cmd.json +15 -6
- package/resources/locales/en/chart.cmd.json +82 -0
- package/resources/locales/en/movable.cmd.json +154 -0
- package/resources/locales/en/picture.cmd.json +31 -0
- package/resources/locales/en/selection.cmd.json +8 -0
- package/resources/locales/en/shape.cmd.json +17 -0
- package/resources/locales/en/sheet.cmd.json +353 -22
- package/resources/locales/en/slicer.cmd.json +17 -0
- package/resources/locales/en/table.cmd.json +9 -1
- package/resources/locales/en/ui.msg.json +321 -3
- package/resources/locales/en/workbook.cmd.json +16 -7
- package/types/chart.d.ts +2 -0
- package/types/control.d.ts +2 -0
- package/types/group.d.ts +2 -0
- package/types/note.d.ts +2 -0
- package/types/picture.d.ts +2 -0
- package/types/shape.d.ts +2 -0
- package/types/slicer.d.ts +2 -0
- package/types/src/annotation/RangeAnnotations.d.ts +119 -0
- package/types/src/annotation/index.d.ts +2 -0
- package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
- package/types/src/autoFill/FillMenu.d.ts +36 -0
- package/types/src/autoFill/FillSeries.d.ts +38 -0
- package/types/src/autoFill/index.d.ts +4 -0
- package/types/src/border/StaticBorderRenderer.d.ts +19 -2
- package/types/src/border/useBorders.d.ts +81 -8
- package/types/src/cell/CornerTriangle.d.ts +6 -0
- package/types/src/cell/FormulaCellRenderer.d.ts +6 -3
- package/types/src/cell/OutlineButton.d.ts +123 -0
- package/types/src/cell/SheetCellRenderer.d.ts +2 -2
- package/types/src/cell/SheetHeaderRenderer.d.ts +5 -0
- package/types/src/cell/StaticCellRenderer.d.ts +57 -0
- package/types/src/cell/index.d.ts +2 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
- package/types/src/chart/ChartCommands.d.ts +15 -0
- package/types/src/chart/ChartEditor.d.ts +10 -2
- package/types/src/chart/ChartElement.d.ts +111 -0
- package/types/src/chart/ChartKind.d.ts +7 -0
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
- package/types/src/chart/index.d.ts +2 -1
- package/types/src/chart/paint/_fills.d.ts +24 -0
- package/types/src/chart/paint/_graphics.d.ts +46 -0
- package/types/src/chart/paint/echarts.d.ts +30 -0
- package/types/src/chart/paint/index.d.ts +12 -0
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +132 -0
- package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
- package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
- package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
- package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
- package/types/src/chart/paint/kinds/_builtIns.d.ts +12 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +31 -0
- package/types/src/checklist/ValueChecklist.d.ts +112 -0
- package/types/src/checklist/index.d.ts +2 -0
- package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
- package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
- package/types/src/commands/ContextualToolbar.d.ts +19 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
- package/types/src/commands/index.d.ts +1 -0
- package/types/src/comment/CommentCardRequest.d.ts +94 -0
- package/types/src/comment/CommentUtils.d.ts +43 -0
- package/types/src/comment/NoteEditor.d.ts +20 -0
- package/types/src/comment/index.d.ts +5 -0
- package/types/src/comment/useCommentThread.d.ts +37 -0
- package/types/src/comment/useSheetComments.d.ts +28 -0
- package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +6 -6
- package/types/src/conditionalFormat/index.d.ts +1 -0
- package/types/src/context/WorksheetContext.d.ts +18 -0
- package/types/src/context/index.d.ts +1 -1
- package/types/src/control/FormControlRenderers.d.ts +22 -0
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/editor/FunctionPreviewPanel.d.ts +15 -1
- package/types/src/editor/NamedItemLabel.d.ts +29 -0
- package/types/src/editor/NamedItemsPanel.d.ts +13 -2
- package/types/src/editor/SheetCellEditorLayer.d.ts +5 -9
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +61 -0
- package/types/src/editor/SheetCellInput.d.ts +26 -2
- package/types/src/editor/SheetEditable.d.ts +14 -8
- package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
- package/types/src/editor/VirtualKeyboardLayer.d.ts +49 -0
- package/types/src/editor/formulaAnchor.d.ts +12 -0
- package/types/src/editor/formulaCaret.d.ts +39 -10
- package/types/src/editor/formulaEval.d.ts +9 -5
- package/types/src/editor/formulaLint.d.ts +36 -0
- package/types/src/editor/formulaPresentation.d.ts +7 -0
- package/types/src/editor/formulaText.d.ts +17 -5
- package/types/src/editor/functionArgs.d.ts +20 -0
- package/types/src/editor/index.d.ts +5 -1
- package/types/src/editor/pickedReference.d.ts +76 -0
- package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
- package/types/src/editor/useFormulaHints.d.ts +95 -5
- package/types/src/editor/useFormulaInput.d.ts +30 -4
- package/types/src/editor/useReferenceMode.d.ts +12 -0
- package/types/src/editor/validationAlert.d.ts +24 -0
- package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
- package/types/src/externalLink/index.d.ts +2 -0
- package/types/src/form/FormulaInput.d.ts +18 -2
- package/types/src/form/FormulaInputParts.d.ts +10 -1
- package/types/src/form/useEditCommit.d.ts +23 -3
- package/types/src/form/useInputField.d.ts +2 -3
- package/types/src/frame/CommandContext.d.ts +189 -7
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +14 -2
- package/types/src/io/WorkbookIO.d.ts +2 -0
- package/types/src/layer/BorderLayer.d.ts +2 -2
- package/types/src/layer/CellErrorLayer.d.ts +26 -9
- package/types/src/layer/CellFillLayer.d.ts +2 -2
- package/types/src/layer/CellInsertLayer.d.ts +71 -0
- package/types/src/layer/CircularIndicatorLayer.d.ts +2 -2
- package/types/src/layer/CommentCardLayer.d.ts +43 -0
- package/types/src/layer/CommentsLayer.d.ts +35 -0
- package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
- package/types/src/layer/ConditionalIcons.d.ts +4 -4
- package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
- package/types/src/layer/ContextMenuLayer.d.ts +2 -2
- package/types/src/layer/FreezeDragLines.d.ts +17 -0
- package/types/src/layer/GridFreezeLayer.d.ts +11 -0
- package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
- package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
- package/types/src/layer/HyperlinkLayer.d.ts +109 -0
- package/types/src/layer/MovableKindScope.d.ts +17 -0
- package/types/src/layer/ProtectionLayer.d.ts +52 -0
- package/types/src/layer/RangeAnnotationLayer.d.ts +71 -0
- package/types/src/layer/ResizeIndicator.d.ts +11 -10
- package/types/src/layer/ResizeTooltip.d.ts +13 -0
- package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
- package/types/src/layer/SheetCellLayer.d.ts +4 -4
- package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
- package/types/src/layer/SheetGridLineLayer.d.ts +11 -13
- package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
- package/types/src/layer/SheetLayers.d.ts +115 -0
- package/types/src/layer/SheetMovableLayer.d.ts +2 -2
- package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
- package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
- package/types/src/layer/SpillLayer.d.ts +2 -2
- package/types/src/layer/TableLayer.d.ts +6 -5
- package/types/src/layer/TableToolbar.d.ts +42 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +17 -7
- package/types/src/layer/ValidationIndicatorLayer.d.ts +11 -5
- package/types/src/layer/ValidationPromptLayer.d.ts +65 -0
- package/types/src/layer/_tableColor.d.ts +4 -0
- package/types/src/layer/cellTip.d.ts +13 -0
- package/types/src/layer/freezeDragState.d.ts +21 -0
- package/types/src/layer/index.d.ts +14 -1
- package/types/src/layer/resizeIndicatorState.d.ts +3 -1
- package/types/src/layer/useFreezeDrag.d.ts +22 -0
- package/types/src/layer/useNormalBorderLines.d.ts +15 -0
- package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
- package/types/src/layer/useSheetVisibleCells.d.ts +2 -2
- package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
- package/types/src/layer/useTableHeaderCells.d.ts +2 -2
- package/types/src/layer/useValidationPicker.d.ts +37 -37
- package/types/src/layer/useVisibleTables.d.ts +2 -2
- package/types/src/layer/validationMark.d.ts +63 -0
- package/types/src/listener/index.d.ts +5 -0
- package/types/src/listener/useCell.d.ts +29 -0
- package/types/src/listener/useCellRange.d.ts +23 -0
- package/types/src/listener/useCellValue.d.ts +26 -0
- package/types/src/listener/useModelListener.d.ts +8 -8
- package/types/src/listener/useRangeSnapshot.d.ts +35 -0
- package/types/src/listener/useTable.d.ts +26 -0
- package/types/src/movable/ConnectionSites.d.ts +18 -0
- package/types/src/movable/DefaultMovable.d.ts +8 -0
- package/types/src/movable/IMovableArea.d.ts +56 -0
- package/types/src/movable/MovableAdornment.d.ts +26 -0
- package/types/src/movable/MovableCommandGroups.d.ts +40 -0
- package/types/src/movable/MovableCommands.d.ts +8 -3
- package/types/src/movable/MovableControl.d.ts +78 -0
- package/types/src/movable/MovableEdit.d.ts +22 -0
- package/types/src/movable/MovableFrame.d.ts +16 -13
- package/types/src/movable/MovableLayer.d.ts +25 -7
- package/types/src/movable/MovableRenderers.d.ts +210 -0
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +37 -0
- package/types/src/movable/TextBox.d.ts +34 -0
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +72 -0
- package/types/src/movable/geometry.d.ts +61 -0
- package/types/src/movable/index.d.ts +11 -0
- package/types/src/movable/pressTarget.d.ts +20 -0
- package/types/src/picker/PickerPanel.d.ts +52 -0
- package/types/src/picker/cellPickerOpen.d.ts +6 -0
- package/types/src/picker/index.d.ts +4 -0
- package/types/src/picker/useCellPicker.d.ts +95 -0
- package/types/src/picture/PictureCommands.d.ts +12 -0
- package/types/src/picture/PictureKind.d.ts +7 -0
- package/types/src/picture/index.d.ts +0 -1
- package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
- package/types/src/richText/RichTextEditor.d.ts +41 -0
- package/types/src/richText/index.d.ts +2 -0
- package/types/src/selection/SelectionCommands.d.ts +2 -2
- package/types/src/selection/SheetSelectionLayer.d.ts +16 -12
- package/types/src/shape/ConnectorControl.d.ts +46 -0
- package/types/src/shape/ShapeCommands.d.ts +11 -0
- package/types/src/shape/ShapeControl.d.ts +8 -0
- package/types/src/shape/ShapeEditor.d.ts +15 -2
- package/types/src/shape/ShapeGallery.d.ts +31 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +22 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -1
- package/types/src/shape/shapeFrame.d.ts +50 -0
- package/types/src/shape/shapeStyle.d.ts +82 -0
- package/types/src/sheet/ISheetHeaderElement.d.ts +1 -1
- package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +107 -77
- package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +11 -6
- package/types/src/sheet/SheetCommands.d.ts +22 -7
- package/types/src/sheet/SheetKindIcon.d.ts +14 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
- package/types/src/sheet/SheetPanels.d.ts +11 -0
- package/types/src/sheet/SheetScrollbar.d.ts +4 -13
- package/types/src/sheet/TopLeftCorner.d.ts +2 -2
- package/types/src/sheet/WorksheetElement.d.ts +12 -0
- package/types/src/sheet/_freezeAt.d.ts +10 -0
- package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
- package/types/src/sheet/circularReferences.d.ts +12 -4
- package/types/src/sheet/index.d.ts +6 -3
- package/types/src/sheet/useCycleHighlight.d.ts +21 -0
- package/types/src/slicer/SlicerCommands.d.ts +10 -0
- package/types/src/slicer/SlicerEditor.d.ts +8 -2
- package/types/src/slicer/SlicerKind.d.ts +7 -0
- package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
- package/types/src/slicer/index.d.ts +2 -1
- package/types/src/slicer/slicerStyles.d.ts +32 -0
- package/types/src/tabStrip/SheetTab.d.ts +1 -1
- package/types/src/tabStrip/TabStrip.d.ts +7 -0
- package/types/src/table/TableCommands.d.ts +2 -2
- package/types/src/taskPane/ITaskPane.d.ts +12 -1
- package/types/src/taskPane/MovablePane.d.ts +17 -0
- package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/theme/ThemeState.d.ts +14 -1
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
- package/types/src/theme/useGridColorScheme.d.ts +2 -2
- package/types/src/theme/useSystemColors.d.ts +2 -2
- package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
- package/types/src/workbook/DefaultRenderers.d.ts +3 -2
- package/types/src/workbook/IWorkbookElement.d.ts +51 -5
- package/types/src/workbook/WorkbookCommands.d.ts +2 -4
- package/types/src/workbook/WorkbookStrip.d.ts +9 -0
- package/types/src/workbook/_followOrigin.d.ts +9 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/cjs/index.cjs +0 -35
- package/browser/esm/SJMJzBwlXTJ9QIO5.mjs +0 -6286
- package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-template.json.d.ts +0 -9
- package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-template.json.d.ts +0 -9
- package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-template.json.d.ts +0 -9
- package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-template.json.d.ts +0 -9
- package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
- package/types/src/chart/templates/pie-template.json.d.ts +0 -9
- package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
- package/types/src/context/SheetContext.d.ts +0 -18
- package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
- package/types/src/layer/validationList.d.ts +0 -84
- package/types/src/list/SheetValueList.d.ts +0 -93
- package/types/src/list/index.d.ts +0 -2
- package/types/src/movable/MoveableBundle.d.ts +0 -4
- package/types/src/sheet/SheetElement.d.ts +0 -15
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FreezeDragLinesProps {
|
|
3
|
+
/**
|
|
4
|
+
* Also draw the line at the grid's start while a grip is active (hovered, pressed or dragged) with
|
|
5
|
+
* nothing frozen on its axis — where the grid has no freeze line of its own to highlight. For the main
|
|
6
|
+
* grid; a header has the grip's bar there instead.
|
|
7
|
+
*/
|
|
8
|
+
showStart?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The lines of an in-progress freeze drag: solid at the boundary the drop would freeze at, dashed at the
|
|
12
|
+
* pointer while it is over the grid. Reads the drag from `useSurfaceState` (published by
|
|
13
|
+
* {@link useFreezeDrag}) and draws this pane's clipped slice, so it mounts in the headers and the main
|
|
14
|
+
* grid alike.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FreezeDragLines: React.MemoExoticComponent<(props: FreezeDragLinesProps) => React.JSX.Element>;
|
|
17
|
+
//# sourceMappingURL=FreezeDragLines.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
2
|
+
import { LayerProps } from '@sheetxl/grid-react';
|
|
3
|
+
export interface GridFreezeLayerProps extends Omit<LayerProps, 'children'> {
|
|
4
|
+
sheet: IWorksheet;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The main grid's freeze grips (one per frozen axis, on its freeze line) and its slice of the drag lines.
|
|
8
|
+
* The mirror of {@link HeaderFreezeLayer}; both share one drag.
|
|
9
|
+
*/
|
|
10
|
+
export declare const GridFreezeLayer: import('react').MemoExoticComponent<(props: GridFreezeLayerProps) => import("react").JSX.Element>;
|
|
11
|
+
//# sourceMappingURL=GridFreezeLayer.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISheetHeader } from '@sheetxl/sdk';
|
|
2
|
+
import { LayerProps } from '@sheetxl/grid-react';
|
|
3
|
+
export interface HeaderFreezeLayerProps extends Omit<LayerProps, 'children'> {
|
|
4
|
+
sheetHeader: ISheetHeader;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The freeze grip in a header, and the header's slice of the drag lines. Dragging the grip moves the
|
|
8
|
+
* freeze to the nearest header boundary on screen; the main grid draws its slice of the lines from the
|
|
9
|
+
* same shared state.
|
|
10
|
+
*/
|
|
11
|
+
export declare const HeaderFreezeLayer: import('react').MemoExoticComponent<(props: HeaderFreezeLayerProps) => import("react").JSX.Element>;
|
|
12
|
+
//# sourceMappingURL=HeaderFreezeLayer.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ISheetHeader } from '@sheetxl/sdk';
|
|
3
|
-
|
|
3
|
+
import { LayerProps } from '@sheetxl/grid-react';
|
|
4
|
+
export interface HeaderResizerLayerProps extends Omit<LayerProps, 'children'> {
|
|
4
5
|
sheetHeader: ISheetHeader;
|
|
5
6
|
isColumn: boolean;
|
|
6
7
|
oppositeSize?: number;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CellCoords } from '@sheetxl/utils';
|
|
3
|
+
import { IHyperlink, IWorksheet } from '@sheetxl/sdk';
|
|
4
|
+
import { StickyState, GridPlacement, HoverTipProps, LayerProps } from '@sheetxl/grid-react';
|
|
5
|
+
/** What a link preview service found for a page. Every field is optional; an empty one shows nothing. */
|
|
6
|
+
export interface LinkPreview {
|
|
7
|
+
/** The page's picture: its social card (`og:image`) or a screenshot. */
|
|
8
|
+
image?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The width the picture was asked for. A screenshot service answers with a placeholder while it
|
|
11
|
+
* renders; a loaded picture of another width IS that placeholder, and the card asks again.
|
|
12
|
+
*/
|
|
13
|
+
imageWidth?: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Finds a {@link LinkPreview} for an address, or `null` for none. Synchronous when the preview is only
|
|
19
|
+
* a URL (a screenshot service), a promise when it has to be looked up (a social card).
|
|
20
|
+
*/
|
|
21
|
+
export type LinkPreviewLookup = (address: string) => LinkPreview | Promise<LinkPreview | null> | null;
|
|
22
|
+
/** What a hyperlink card is handed. The actions are bound to the hovered cell. */
|
|
23
|
+
export interface HyperlinkCardRenderProps {
|
|
24
|
+
sheet: IWorksheet;
|
|
25
|
+
/** The hovered cell (the card anchors to its range, a merge included). */
|
|
26
|
+
coords: CellCoords;
|
|
27
|
+
hyperlink: IHyperlink;
|
|
28
|
+
/** Follow the link. */
|
|
29
|
+
open: () => Promise<void>;
|
|
30
|
+
/** Copy the address to the clipboard. */
|
|
31
|
+
copy: () => Promise<void>;
|
|
32
|
+
/** Select the cell and open the hyperlink editor. */
|
|
33
|
+
edit: () => void;
|
|
34
|
+
/** Remove the link; the cell's text stays. */
|
|
35
|
+
remove: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* The linked page's preview once the lookup resolved, or `null` — see
|
|
38
|
+
* {@link HyperlinkLayerProps.preview}. Draw its picture with {@link LinkPreviewImage}, which shows it
|
|
39
|
+
* only once it exists.
|
|
40
|
+
*/
|
|
41
|
+
preview: LinkPreview | null;
|
|
42
|
+
/** Spread onto the card root (keeps the card open while hovered; registers it with the tooltip group). */
|
|
43
|
+
tipProps: HoverTipProps;
|
|
44
|
+
state: StickyState;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Props for {@link HyperlinkLayer}.
|
|
48
|
+
*/
|
|
49
|
+
export interface HyperlinkLayerProps extends Omit<LayerProps, 'children'> {
|
|
50
|
+
sheet: IWorksheet;
|
|
51
|
+
/** The card. @defaultValue the plain card: address · copy · edit · remove */
|
|
52
|
+
renderCard?: (props: HyperlinkCardRenderProps) => React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Looks up a preview of the linked page to show under the actions. Off by default: it is a request to
|
|
55
|
+
* a third party per hovered web link. {@link linkPreviewMicrolink} (the page's social card) and
|
|
56
|
+
* {@link linkPreviewMShots} (a screenshot) are two free ones; results are kept per address for the
|
|
57
|
+
* session.
|
|
58
|
+
*/
|
|
59
|
+
preview?: LinkPreviewLookup;
|
|
60
|
+
/** Where the card attaches. @defaultValue `{ side: 'b', align: 'start' }` */
|
|
61
|
+
placement?: GridPlacement;
|
|
62
|
+
/** Gap (px) between the cell and the card. @defaultValue 4 */
|
|
63
|
+
offset?: number;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A page's **social card** through [microlink](https://microlink.io): the `og:image`, title and
|
|
68
|
+
* description the page declares — what a chat app unfurls. Free without a key, rate limited (25 requests
|
|
69
|
+
* a window, so hovering many distinct links in a burst runs dry until it resets); allows browser calls.
|
|
70
|
+
* Web addresses only.
|
|
71
|
+
*/
|
|
72
|
+
export declare const linkPreviewMicrolink: (address: string) => Promise<LinkPreview | null>;
|
|
73
|
+
/**
|
|
74
|
+
* A **screenshot** of the page through WordPress's free mShots service. No key, no quota stated. The
|
|
75
|
+
* address goes in the path as is (percent-encoding it is refused). While the shot is being taken the
|
|
76
|
+
* service redirects to a 400×300 placeholder, so `width` must not be 400 — {@link LinkPreviewImage}
|
|
77
|
+
* tells the placeholder from the shot by its width and asks again. Web addresses only.
|
|
78
|
+
*/
|
|
79
|
+
export declare const linkPreviewMShots: (address: string, width?: number) => LinkPreview | null;
|
|
80
|
+
/**
|
|
81
|
+
* The **hyperlink card** — hover a cell carrying a link and a card offers its address (click to follow),
|
|
82
|
+
* copy, edit and remove, as Excel Online does. A {@link RangeTooltipLayer} whose probe asks the cell for
|
|
83
|
+
* its hyperlink; the card is the tooltip group's one open tip, interactive, and closes on any press
|
|
84
|
+
* outside it. What the card looks like is the host's (`renderCard`); the plain default draws with the
|
|
85
|
+
* grid's tokens.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Edit goes through the sheet's `updateHyperlink` command, which acts on the selection — so it selects
|
|
89
|
+
* the hovered cell first, as Excel Online does. Remove is the link's own `delete()`.
|
|
90
|
+
*/
|
|
91
|
+
export declare const HyperlinkLayer: React.MemoExoticComponent<(props: HyperlinkLayerProps) => React.JSX.Element>;
|
|
92
|
+
/**
|
|
93
|
+
* The preview picture, shown only once it exists and has loaded — a missing card or a failed request
|
|
94
|
+
* draws nothing, so the card never shows a broken image.
|
|
95
|
+
*
|
|
96
|
+
* A screenshot service answers while it is still rendering with a **placeholder picture** (mShots
|
|
97
|
+
* does). The caller says what width it asked for (`expectedWidth`); a loaded picture of another width
|
|
98
|
+
* is the placeholder, so it stays hidden and the request repeats every {@link PREVIEW_POLL_MS} until the
|
|
99
|
+
* shot arrives. The polling stops with the card.
|
|
100
|
+
*/
|
|
101
|
+
export declare const LinkPreviewImage: React.FC<{
|
|
102
|
+
src: string;
|
|
103
|
+
/** The width the service was asked for; a loaded picture of another width is its placeholder. */
|
|
104
|
+
expectedWidth?: number;
|
|
105
|
+
/** The width to draw at. @defaultValue the container's */
|
|
106
|
+
width?: number | string;
|
|
107
|
+
style?: React.CSSProperties;
|
|
108
|
+
}>;
|
|
109
|
+
//# sourceMappingURL=HyperlinkLayer.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
export interface MovableKindScopeProps {
|
|
4
|
+
sheet: IWorksheet;
|
|
5
|
+
/** The movable layer's z. The kind's scope joins the pane's chain just above it. */
|
|
6
|
+
order: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The scope and contextual tab of the active movable's kind. While a movable is the active selection,
|
|
10
|
+
* its kind's `commands` run in a scope named for the content type, stacked just above the `movable`
|
|
11
|
+
* scope so they out-resolve it, and its `toolbar` is shown in the main toolbar strip; a kind that
|
|
12
|
+
* brings no tab gets the default one ({@link createDefaultMovableToolbar}). Both follow the active
|
|
13
|
+
* movable and go when the selection clears; another movable of the same kind becoming active re-runs
|
|
14
|
+
* the commands with it. A kind whose module is still loading gets them when the load settles.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MovableKindScope: import('react').MemoExoticComponent<(props: MovableKindScopeProps) => ReactElement | null>;
|
|
17
|
+
//# sourceMappingURL=MovableKindScope.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RangeCoordValue } from '@sheetxl/utils';
|
|
3
|
+
import { ICellRegion, IWorksheet, IWorksheetView } from '@sheetxl/sdk';
|
|
4
|
+
import { LayerProps } from '@sheetxl/grid-react';
|
|
5
|
+
/**
|
|
6
|
+
* The regions to punch out of the hatch, coalesced by appearance.
|
|
7
|
+
*
|
|
8
|
+
* @internal Exported for its unit test; not part of the package's API.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* What the engine hands over is already a partition of the QUERIED range — clipped to it, with
|
|
12
|
+
* same-identity fragments merged into maximal rectangles. Two things it deliberately does NOT do,
|
|
13
|
+
* because they are questions about rendering rather than about the model:
|
|
14
|
+
*
|
|
15
|
+
* - **Adjacent blocks with different identities stay apart.** Two unlocked ranges side by side are
|
|
16
|
+
* two regions; so are the three strips an overlapping pair partitions into (A-only, A∩B, B-only).
|
|
17
|
+
* Placed as-is that draws outlines on seams that are not boundaries of anything a user drew.
|
|
18
|
+
* - So they are merged **by appearance**, not by identity — see {@link appearanceOf}.
|
|
19
|
+
*
|
|
20
|
+
* There is nothing to clip here: `getRegions` bounds its result to the range it was asked about,
|
|
21
|
+
* which is this pane's visible range. (Pinned by `sdk/__tests__/anchored/protectedRange.regions.test.ts`,
|
|
22
|
+
* because this layer would otherwise place a rect as tall as the sheet.)
|
|
23
|
+
*/
|
|
24
|
+
export declare const visibleHoles: (regions: readonly ICellRegion[]) => RangeCoordValue[];
|
|
25
|
+
export interface ProtectionLayerProps extends LayerProps {
|
|
26
|
+
/** Class for the layer (devtools identification). */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** The sheet whose locked area is hatched. */
|
|
29
|
+
sheet: IWorksheet;
|
|
30
|
+
/** The view carrying `isShowLockedShading()` — the toggle this layer draws for. */
|
|
31
|
+
sheetView: IWorksheetView;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The **locked-cell hatch** — the sheet's protected area, with the unlocked ranges cut out of it.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Not an Excel feature; Google Sheets' *View › Show › Protected ranges* is the precedent.
|
|
38
|
+
*
|
|
39
|
+
* Drawn only on a sheet that is actually ENFORCING — not one that is unprotected, and not one that
|
|
40
|
+
* is paused. The hatch answers "what can't I edit right now?", and on both of those the answer is
|
|
41
|
+
* nothing; a paused sheet that kept its hatch would look locked while every cell takes an edit.
|
|
42
|
+
* (The pane's paused banner, not this layer, is what says the lock is still configured.)
|
|
43
|
+
*
|
|
44
|
+
* One `<pattern>` fill over the whole pane with a `<mask>` punching out the unlocked regions from
|
|
45
|
+
* {@link ICellRange.Feature.Unlock}, plus a thin outline on each hole — NOT a rect per cell. One
|
|
46
|
+
* pattern over one box is also what keeps the hatch CONTINUOUS: tiling it per region would restart
|
|
47
|
+
* the pattern's origin at every rect, and the diagonals would step at each boundary.
|
|
48
|
+
*
|
|
49
|
+
* Passive paint (`pointerEvents: none`), below the selection.
|
|
50
|
+
*/
|
|
51
|
+
export declare const ProtectionLayer: React.MemoExoticComponent<(props: ProtectionLayerProps) => React.JSX.Element | null>;
|
|
52
|
+
//# sourceMappingURL=ProtectionLayer.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorksheet, IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { LayerProps, StickyState } from '@sheetxl/grid-react';
|
|
4
|
+
import { RangeAnnotation } from '../annotation';
|
|
5
|
+
/** How an intent is drawn: its box, and the chip's frame. */
|
|
6
|
+
export interface RangeAnnotationStyle {
|
|
7
|
+
/** The box border (and the chip's frame). */
|
|
8
|
+
border: string;
|
|
9
|
+
/** The box fill — translucent, the cells show through. */
|
|
10
|
+
fill: string;
|
|
11
|
+
/** The chip's frame — opaque; a chip reads by z-order, never by letting what is under it show through. */
|
|
12
|
+
chip: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The default look per intent. Deliberately flatter than the selection (no thick, handled border,
|
|
16
|
+
* which reads as "draggable"): a soft fill and a thin border.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DEFAULT_ANNOTATION_STYLES: Readonly<Record<string, RangeAnnotationStyle>>;
|
|
19
|
+
/** What a chip (or its out-of-view marker) is rendered from. */
|
|
20
|
+
export interface RangeAnnotationChipProps {
|
|
21
|
+
workbook: IWorkbook;
|
|
22
|
+
/** The annotation the chip stands for — the current one of its group when it is among them. */
|
|
23
|
+
annotation: RangeAnnotation;
|
|
24
|
+
/** Others sharing this chip's anchor cell. */
|
|
25
|
+
more: number;
|
|
26
|
+
/** 1-based position in the walked list; `0` for a `working` annotation. */
|
|
27
|
+
position: number;
|
|
28
|
+
/** How many are walked. */
|
|
29
|
+
total: number;
|
|
30
|
+
isCurrent: boolean;
|
|
31
|
+
style: RangeAnnotationStyle;
|
|
32
|
+
/** The float's resolved state (`slid`, `outOfView`, `scrollIntoView`, …). */
|
|
33
|
+
state: StickyState;
|
|
34
|
+
}
|
|
35
|
+
export interface RangeAnnotationLayerProps extends Omit<LayerProps, 'children'> {
|
|
36
|
+
/** The sheet whose annotations are drawn. @defaultValue the sheet in context (an injected layer needs none) */
|
|
37
|
+
sheet?: IWorksheet;
|
|
38
|
+
/** Per-intent look. Merged over {@link DEFAULT_ANNOTATION_STYLES}. */
|
|
39
|
+
styles?: Readonly<Record<string, RangeAnnotationStyle>>;
|
|
40
|
+
/** Render the chip beside an annotation that is in view. Omit for the default. */
|
|
41
|
+
renderChip?: (props: RangeAnnotationChipProps) => React.ReactNode;
|
|
42
|
+
/** Render the marker that stands in for a chip whose range is scrolled out of view. Omit for the default. */
|
|
43
|
+
renderMarker?: (props: RangeAnnotationChipProps) => React.ReactNode;
|
|
44
|
+
/** How much a box that is not the navigator's current one fades. Boxes only — never chips. @defaultValue 0.45 */
|
|
45
|
+
dimOpacity?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Whether an annotation gets a chip (and, scrolled off, a marker) or is drawn as its box alone —
|
|
48
|
+
* for a host that shows some annotations elsewhere (an agent's cursor, in its own status control).
|
|
49
|
+
* @defaultValue every walked annotation, and a `working` one only when it has a label
|
|
50
|
+
*/
|
|
51
|
+
showChip?: (annotation: RangeAnnotation) => boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The workbook's range annotations on this sheet: a soft box per annotation, and a chip per anchor
|
|
55
|
+
* cell. The chip rides a {@link StickyPortal} with `whenOff: 'clamp'`, so when its range scrolls out
|
|
56
|
+
* of view it stays at the edge as a small marker (the position, an arrow toward the range; click
|
|
57
|
+
* reveals it) instead of vanishing.
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* The navigator's current annotation draws last (on top) at full strength; the others dim. That is
|
|
61
|
+
* what keeps overlapping annotations legible. Hovering a chip lifts it — and its boxes — above the
|
|
62
|
+
* current one while the pointer stays, so a chip hidden under another can be read and reached. Annotations that share a top-left cell share one chip —
|
|
63
|
+
* the current one's if it is among them — with a `+N` for the rest, so chips never stack.
|
|
64
|
+
*
|
|
65
|
+
* A prebuilt layer, not part of the sheet's default stack: a host that shows annotations injects it
|
|
66
|
+
* through the sheet's `layers` (`propsSheet={{ layers: [<RangeAnnotationLayer key="annotations" />] }}`
|
|
67
|
+
* on a workbook element). It reads the sheet from context and draws nothing while the workbook has no
|
|
68
|
+
* annotations. Fed through {@link addRangeAnnotations}.
|
|
69
|
+
*/
|
|
70
|
+
export declare const RangeAnnotationLayer: React.MemoExoticComponent<(props: RangeAnnotationLayerProps) => React.JSX.Element>;
|
|
71
|
+
//# sourceMappingURL=RangeAnnotationLayer.d.ts.map
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
import { LayerProps } from '@sheetxl/grid-react';
|
|
3
4
|
/**
|
|
4
5
|
* Props for {@link ResizeIndicator}.
|
|
5
6
|
*/
|
|
6
|
-
export interface ResizeIndicatorProps {
|
|
7
|
-
/** The sheet — for the
|
|
8
|
-
sheet:
|
|
7
|
+
export interface ResizeIndicatorProps extends Omit<LayerProps, 'children'> {
|
|
8
|
+
/** The sheet — for the entire-range extent. */
|
|
9
|
+
sheet: IWorksheet;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* The **main-grid overlay** for an in-progress header resize: the before/after guide-lines that span the
|
|
12
|
-
* body
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* body. It's a self-contained grid layer — it reads the gesture from `useSurfaceState` (published by
|
|
14
|
+
* {@link HeaderResizerLayer} in the header surface, shared via the sheet's `SurfaceStateProvider`) and the
|
|
15
|
+
* pane from context, so it mounts as a plain child of the grid with no render-prop bridge. Rendered once
|
|
16
|
+
* per pane; each pane draws its own clipped slice of the lines. The size tooltip belongs to the header
|
|
17
|
+
* ({@link ResizeTooltip}).
|
|
17
18
|
*/
|
|
18
|
-
export declare const ResizeIndicator: React.MemoExoticComponent<(props: ResizeIndicatorProps) => React.JSX.Element
|
|
19
|
+
export declare const ResizeIndicator: React.MemoExoticComponent<(props: ResizeIndicatorProps) => React.JSX.Element>;
|
|
19
20
|
//# sourceMappingURL=ResizeIndicator.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISheetHeader } from '@sheetxl/sdk';
|
|
2
|
+
export interface ResizeTooltipProps {
|
|
3
|
+
/** The header being resized. */
|
|
4
|
+
sheetHeader: ISheetHeader;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The size tooltip of an in-progress header resize, anchored to the header being resized. Renders inside a
|
|
8
|
+
* header's layer: the header lays out every move of the drag, so the tooltip stays centered on the size
|
|
9
|
+
* being dragged. Reads the gesture published by {@link HeaderResizerLayer}. A {@link GestureTip}: it holds
|
|
10
|
+
* the tooltip group for the drag and self-gates to one owner pane.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ResizeTooltip: import('react').MemoExoticComponent<(props: ResizeTooltipProps) => import("react").JSX.Element>;
|
|
13
|
+
//# sourceMappingURL=ResizeTooltip.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
import { LayerProps } from '@sheetxl/grid-react';
|
|
3
3
|
export interface SheetBackgroundLayerProps extends LayerProps {
|
|
4
4
|
/** Class for the background box (devtools identification). */
|
|
@@ -6,7 +6,7 @@ export interface SheetBackgroundLayerProps extends LayerProps {
|
|
|
6
6
|
/** Style for the background box. */
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
8
|
/** The sheet whose background picture (a tiled fill rendered behind the cells) is rendered. */
|
|
9
|
-
sheet:
|
|
9
|
+
sheet: IWorksheet;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Renders the sheet's background.
|
|
@@ -16,7 +16,7 @@ export interface SheetBackgroundLayerProps extends LayerProps {
|
|
|
16
16
|
* through to the cells. The tile pattern is anchored to the sheet's A1 origin — the pane's screen
|
|
17
17
|
* position for cell `0,0` encodes the current scroll offset — so it scrolls with the content (one
|
|
18
18
|
* instance per pane). The caller adds this layer only when a picture is present (see
|
|
19
|
-
* `
|
|
19
|
+
* `IWorksheet.getPicture`) and places it FIRST, so it sits at the bottom of the z-stack.
|
|
20
20
|
*/
|
|
21
21
|
export declare const SheetBackgroundLayer: import('react').NamedExoticComponent<SheetBackgroundLayerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
22
|
//# sourceMappingURL=SheetBackgroundLayer.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet, IWorksheetView } from '@sheetxl/sdk';
|
|
3
3
|
import { CellRendererProps, IEditable, LayerProps } from '@sheetxl/grid-react';
|
|
4
4
|
import { SheetCellRendererProps, ColumnButtonConfigProps } from '../cell';
|
|
5
5
|
export interface SheetCellLayerProps extends LayerProps {
|
|
6
6
|
/** Class for the layer (devtools identification). */
|
|
7
7
|
className?: string;
|
|
8
8
|
/** The sheet whose cells are rendered. */
|
|
9
|
-
sheet:
|
|
9
|
+
sheet: IWorksheet;
|
|
10
10
|
/** The sheet view — drives show-zeros / show-formulas (which cells are worth rendering). */
|
|
11
|
-
sheetView:
|
|
11
|
+
sheetView: IWorksheetView;
|
|
12
12
|
/**
|
|
13
13
|
* Custom per-cell renderer. Default: {@link SheetCellRenderer} wired to the sheet (doc theme,
|
|
14
14
|
* hyperlink taps, formula-view flags) — the layer owns cell styling, so most hosts never pass this.
|
|
@@ -39,7 +39,7 @@ export interface SheetCellLayerProps extends LayerProps {
|
|
|
39
39
|
* Beside the immutable tile snapshots ({@link CellTileDiv}) the layer owns the two LIVE per-cell
|
|
40
40
|
* concerns that must never touch a tile:
|
|
41
41
|
* - the edited cell is suppressed while its editor is open (live CSS `suppressCell` channel);
|
|
42
|
-
* - **formula view** ({@link
|
|
42
|
+
* - **formula view** ({@link IWorksheetView.isShowFormulas}): when the selection anchor sits on a
|
|
43
43
|
* formula cell, that cell's plain snapshot is suppressed through the SAME channel and a
|
|
44
44
|
* tokenized, syntax-colored {@link FormulaCellRenderer} overlay is drawn in its place — the
|
|
45
45
|
* references themselves are outlined by `SheetReferenceLayer`, both keyed off
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
import { LayerProps } from '@sheetxl/grid-react';
|
|
4
4
|
import { ColumnButtonConfigProps } from '../cell/ColumnButton';
|
|
5
5
|
export interface SheetColumnButtonLayerProps extends LayerProps, ColumnButtonConfigProps {
|
|
6
6
|
/** The sheet whose table column (filter/sort) buttons are rendered. */
|
|
7
|
-
sheet:
|
|
7
|
+
sheet: IWorksheet;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* The sheet's column (filter/sort) button layer — a {@link CellLayer} (which roots the {@link Layer})
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ISheet, ISheetView } from '@sheetxl/sdk';
|
|
1
|
+
import { IWorksheet, IWorksheetView } from '@sheetxl/sdk';
|
|
3
2
|
import { LayerProps } from '@sheetxl/grid-react';
|
|
4
3
|
export interface SheetGridLineLayerProps extends LayerProps {
|
|
5
4
|
/** The sheet whose gridlines are rendered. */
|
|
6
|
-
sheet:
|
|
5
|
+
sheet: IWorksheet;
|
|
7
6
|
/** The sheet view — drives styling, per-axis visibility, and which cells are scanned (for merges). */
|
|
8
|
-
sheetView:
|
|
7
|
+
sheetView: IWorksheetView;
|
|
9
8
|
}
|
|
10
9
|
/**
|
|
11
|
-
* The sheet's gridline layer
|
|
10
|
+
* The sheet's gridline layer: the view's gridline wherever no cell border owns the edge, so a
|
|
11
|
+
* dashed or double border never has a gridline under it. Sits below the fills, so a filled cell
|
|
12
|
+
* hides it. An axis whose Normal style has a border draws that border instead, in the
|
|
13
|
+
* {@link BorderLayer} (it is a border on every cell, and draws above the fills).
|
|
12
14
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* (view) and derives them from the sheet's normal style and the view's gridline color / zoom / show flags —
|
|
17
|
-
* decoupled from the grid above it. The *merges* the lines break around are data, so it also self-subscribes
|
|
18
|
-
* to its pane's visible range via {@link useSheetVisibleCells} and re-renders itself on a data change (busting
|
|
19
|
-
* the underlying grid-react {@link GridlineLayer} with its own token). One per pane.
|
|
15
|
+
* Self-subscribes to `onStyleChange` (sheet) and `onZoomScaleChange` (view) for the styling and
|
|
16
|
+
* per-axis visibility, and to its pane's visible range via {@link useSheetVisibleCells} for the
|
|
17
|
+
* merges and borders the lines break around. One per pane.
|
|
20
18
|
*/
|
|
21
|
-
export declare const SheetGridLineLayer:
|
|
19
|
+
export declare const SheetGridLineLayer: import('react').MemoExoticComponent<(props: SheetGridLineLayerProps) => import("react").JSX.Element | null>;
|
|
22
20
|
//# sourceMappingURL=SheetGridLineLayer.d.ts.map
|
|
@@ -8,6 +8,12 @@ export interface SheetHeaderCellLayerProps extends LayerProps {
|
|
|
8
8
|
header: ISheetHeader;
|
|
9
9
|
/** Per-header renderer (the sheet's `SheetHeaderRenderer` wrapping). */
|
|
10
10
|
renderCell: (props: CellRendererProps) => React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* A styling input the layer cannot watch itself: a new value busts the label cache. The header
|
|
13
|
+
* element passes its filtered runs' revision (a filter set or cleared may hide no row, so no
|
|
14
|
+
* size change repaints for it).
|
|
15
|
+
*/
|
|
16
|
+
invalidateToken?: unknown;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
19
|
* The header's cell layer.
|
|
@@ -17,9 +23,12 @@ export interface SheetHeaderCellLayerProps extends LayerProps {
|
|
|
17
23
|
* busting the underlying grid-react {@link CellLayer} with its own token — so it re-renders only itself,
|
|
18
24
|
* not the header grid. Two triggers bump the token:
|
|
19
25
|
*
|
|
20
|
-
* - **
|
|
26
|
+
* - **metrics change** (`onMetricsChange`) — alters what is visible/labeled;
|
|
21
27
|
* - **selection change** — header labels are styled by selection (fill / weight / color), but the tiled
|
|
22
28
|
* `CellLayer` cache survives scroll, so it must be dropped when *this header's* selected runs change.
|
|
29
|
+
*
|
|
30
|
+
* A third comes from the owner as `invalidateToken`: the rows a filter holds a condition over (the blue
|
|
31
|
+
* row numbers), which the header element reads and the layer cannot.
|
|
23
32
|
* Gated on the runs {@link selectedRunsSignature} so it busts only when the styling would differ (not
|
|
24
33
|
* on every active-cell move, and never on scroll — there is no per-frame range work).
|
|
25
34
|
*
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* A grid surface of a sheet: the cells, or one of the header strips. Each is its own grid, with its own
|
|
5
|
+
* layer stack.
|
|
6
|
+
*/
|
|
7
|
+
export type SheetSurface = 'cells' | 'rowHeaders' | 'columnHeaders';
|
|
8
|
+
/**
|
|
9
|
+
* Provides the {@link SheetSurface} a surface's layers are rendered on.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const SheetSurfaceProvider: React.Provider<SheetSurface | null>;
|
|
14
|
+
/**
|
|
15
|
+
* The {@link SheetSurface} the calling layer is rendered on, or `null` outside a sheet's surfaces.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Only a layer declared on more than one surface needs it, to render the part that belongs on each:
|
|
19
|
+
*
|
|
20
|
+
* ```tsx
|
|
21
|
+
* const surface = useGridSurface();
|
|
22
|
+
* if (surface === 'rowHeaders') return <MyButtons />;
|
|
23
|
+
* if (surface === 'cells') return <MyPreview />;
|
|
24
|
+
* return null;
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const useGridSurface: () => SheetSurface | null;
|
|
28
|
+
/**
|
|
29
|
+
* Which sheets a {@link SheetLayers} applies to: a sheet, sheets, or a test. Not names: a sheet can be
|
|
30
|
+
* renamed, and a name can be reused by another sheet.
|
|
31
|
+
*/
|
|
32
|
+
export type SheetLayersFilter = IWorksheet | readonly IWorksheet[] | ((sheet: IWorksheet) => boolean);
|
|
33
|
+
export interface SheetLayersProps {
|
|
34
|
+
/**
|
|
35
|
+
* The sheets whose surfaces get the layers. Omitted, every sheet's do.
|
|
36
|
+
*/
|
|
37
|
+
sheets?: SheetLayersFilter;
|
|
38
|
+
/**
|
|
39
|
+
* The surfaces the layers are rendered on. A layer on more than one reads which it is on with
|
|
40
|
+
* {@link useGridSurface}.
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue 'cells'
|
|
43
|
+
*/
|
|
44
|
+
surface?: SheetSurface | readonly SheetSurface[] | 'all';
|
|
45
|
+
/**
|
|
46
|
+
* The layers: each a grid child rooted in a `Layer`, as in a sheet's `layers`.
|
|
47
|
+
*/
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
interface Entry {
|
|
51
|
+
sheets?: SheetLayersFilter;
|
|
52
|
+
surfaces: readonly SheetSurface[];
|
|
53
|
+
children: React.ReactNode;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The {@link SheetLayers} declared under one scope, in declaration order.
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
export declare class SheetLayersRegistry {
|
|
61
|
+
private _entries;
|
|
62
|
+
private _listeners;
|
|
63
|
+
private _version;
|
|
64
|
+
set(id: string, entry: Entry): void;
|
|
65
|
+
delete(id: string): void;
|
|
66
|
+
subscribe: (listener: () => void) => (() => void);
|
|
67
|
+
getVersion: () => number;
|
|
68
|
+
entries(): IterableIterator<[string, Entry]>;
|
|
69
|
+
private _changed;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The registry the {@link SheetLayers} under an element register with: the one of a scope above it, or
|
|
73
|
+
* its own. A workbook element resolves one around both its children and its sheet, and the sheet
|
|
74
|
+
* element inherits it; a standalone sheet element has its own. Provide it with
|
|
75
|
+
* {@link SheetLayersScope}.
|
|
76
|
+
*
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export declare const useSheetLayersRegistry: () => SheetLayersRegistry;
|
|
80
|
+
/**
|
|
81
|
+
* Provides a {@link SheetLayersRegistry} to the {@link SheetLayers} and surfaces under it.
|
|
82
|
+
*
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
export declare const SheetLayersScope: React.Provider<SheetLayersRegistry | null>;
|
|
86
|
+
/**
|
|
87
|
+
* Declares layers for a sheet's surfaces, as children of a sheet (or workbook) element:
|
|
88
|
+
*
|
|
89
|
+
* ```tsx
|
|
90
|
+
* <WorksheetElement sheet={sheet}>
|
|
91
|
+
* <SheetLayers surface={['rowHeaders', 'cells']}>
|
|
92
|
+
* <CellInsertLayer />
|
|
93
|
+
* </SheetLayers>
|
|
94
|
+
* </WorksheetElement>
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
* It renders nothing where it is declared: each matching surface renders the layers as its own, on top
|
|
99
|
+
* of its built-in ones, so they read that surface's pane, sheet and state. A layer declared on several
|
|
100
|
+
* surfaces is mounted on each (and on each pane of a frozen sheet); its copies share state through
|
|
101
|
+
* `useSurfaceState`, which spans all of a sheet's surfaces.
|
|
102
|
+
*
|
|
103
|
+
* Layers of separate `SheetLayers` stack in declaration order, unless a layer sets `zIndex`.
|
|
104
|
+
*/
|
|
105
|
+
export declare const SheetLayers: React.FC<SheetLayersProps>;
|
|
106
|
+
/**
|
|
107
|
+
* The layers declared for one surface of a sheet, flattened into one list of grid children.
|
|
108
|
+
*
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
export declare const useSheetLayers: (sheet: IWorksheet | null | undefined, surface: SheetSurface,
|
|
112
|
+
/** The registry, when the caller provides it rather than sits under it. */
|
|
113
|
+
propRegistry?: SheetLayersRegistry) => React.ReactNode[];
|
|
114
|
+
export {};
|
|
115
|
+
//# sourceMappingURL=SheetLayers.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
import { LayerProps } from '@sheetxl/grid-react';
|
|
4
4
|
import { IMovableLayerElement, MovableLayerProps, MovableElementProps } from '../movable';
|
|
5
5
|
export interface SheetMovableLayerProps extends LayerProps {
|
|
6
6
|
/** Class forwarded to the inner layer's host box (devtools identification). */
|
|
7
7
|
className?: string;
|
|
8
|
-
sheet:
|
|
8
|
+
sheet: IWorksheet;
|
|
9
9
|
/**
|
|
10
10
|
* Render a movable element
|
|
11
11
|
*
|