@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,112 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Scalar, IFilter } from '@sheetxl/sdk';
|
|
3
|
+
import { CheckboxListProps } from '@sheetxl/grid-react';
|
|
4
|
+
/** One value the checklist offers. */
|
|
5
|
+
export interface ValueChecklistItem {
|
|
6
|
+
/** The value as shown, and the identity a check is kept by unless `key` says otherwise. */
|
|
7
|
+
text: string;
|
|
8
|
+
/**
|
|
9
|
+
* The identity a check is kept by, when two rows may show the same text (by value, the number
|
|
10
|
+
* `1` and the text `'1`). Defaults to `text`.
|
|
11
|
+
*/
|
|
12
|
+
key?: string;
|
|
13
|
+
/** The value the text stands for, when a host needs it back (a filter writes it). */
|
|
14
|
+
value?: Scalar;
|
|
15
|
+
/** How many cells hold it, when the host knows. */
|
|
16
|
+
count?: number;
|
|
17
|
+
/** The `(Blank)` row: a blank is a value, listed last, and shown apart from the texts. */
|
|
18
|
+
blank?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Props for {@link ValueChecklist}.
|
|
22
|
+
*/
|
|
23
|
+
export interface ValueChecklistProps {
|
|
24
|
+
/** The values, in the order shown. */
|
|
25
|
+
items: readonly ValueChecklistItem[];
|
|
26
|
+
/**
|
|
27
|
+
* The date tree over the leading items, as `IFilter.getItems` answers it: one level per entry,
|
|
28
|
+
* each the runs of items its nodes span. Listed as Excel's tree: a row per node with a
|
|
29
|
+
* disclosure, the deepest level's nodes as the leaves, and the items past the tree flat under
|
|
30
|
+
* it. While a search is typed the dates list flat by their text.
|
|
31
|
+
*/
|
|
32
|
+
dates?: readonly IFilter.DateLevel[];
|
|
33
|
+
/** The checked values, by their key (`text` unless an item gives a `key`). */
|
|
34
|
+
checked: ReadonlySet<string>;
|
|
35
|
+
/**
|
|
36
|
+
* `texts` were set to `checked` — one on a click, the highlighted rows on Space, every row in
|
|
37
|
+
* view on Select All, every item of a node on its row. Rows out of the view (narrowed away by
|
|
38
|
+
* the search) are never named, so they keep their state.
|
|
39
|
+
*/
|
|
40
|
+
onCheckedChange: (texts: readonly string[], checked: boolean) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the items are the texts cells show (a spreadsheet's list) or their values. In value
|
|
43
|
+
* mode rows align by type, numbers to the right, so `1` and the text `'1` read apart.
|
|
44
|
+
*
|
|
45
|
+
* @defaultValue `true`
|
|
46
|
+
*/
|
|
47
|
+
byDisplay?: boolean;
|
|
48
|
+
/** Offered as a "By value" option under the search field's glyph when given. */
|
|
49
|
+
onByDisplayChange?: (byDisplay: boolean) => void;
|
|
50
|
+
/**
|
|
51
|
+
* The typed text is to join the values. Given, the search line offers an Add while the text
|
|
52
|
+
* is not already a value, and Enter adds it.
|
|
53
|
+
*/
|
|
54
|
+
onAdd?: (text: string) => void;
|
|
55
|
+
/** The host stopped listing values at its cap: the count says so, the reason in its tooltip. */
|
|
56
|
+
truncated?: boolean;
|
|
57
|
+
/** A search field above the list. @defaultValue true */
|
|
58
|
+
search?: boolean;
|
|
59
|
+
/** Enter in the search field, with nothing to add: the host applies. */
|
|
60
|
+
onApply?: () => void;
|
|
61
|
+
/** Escape with no search text to clear: the host closes. */
|
|
62
|
+
onClose?: () => void;
|
|
63
|
+
/** Take the focus on mount. @defaultValue true */
|
|
64
|
+
autoFocus?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Where the focus lands on mount: the list, so the arrows, Space and Enter work at once and a
|
|
67
|
+
* typed character moves to the search field; or the search field.
|
|
68
|
+
*
|
|
69
|
+
* @defaultValue 'list'
|
|
70
|
+
*/
|
|
71
|
+
focusOn?: 'list' | 'search';
|
|
72
|
+
/** See `CheckboxListProps.renderCheckbox`: a styled control (MUI) in place of the native one. */
|
|
73
|
+
renderCheckbox?: CheckboxListProps['renderCheckbox'];
|
|
74
|
+
/** Render a value row's label. @defaultValue the text */
|
|
75
|
+
renderItem?: (item: ValueChecklistItem) => React.ReactNode;
|
|
76
|
+
/** Uniform row height in px. @defaultValue 24 */
|
|
77
|
+
itemHeight?: number;
|
|
78
|
+
/** Class for the root. */
|
|
79
|
+
className?: string;
|
|
80
|
+
/** Style for the root. */
|
|
81
|
+
style?: React.CSSProperties;
|
|
82
|
+
/** See `ListSurfaceProps.viewport`. */
|
|
83
|
+
viewport?: CheckboxListProps['viewport'];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A searchable **checklist of values** under a tri-state Select All — the filter dropdown's
|
|
87
|
+
* Values body, and any other "which of these" choice.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* The list holds values and nothing else. Over them, pinned above the scroll, is the root: one
|
|
91
|
+
* tri-state checkbox for every row in view, labeled by the count of checked values over the
|
|
92
|
+
* values in view. Add, for a host that takes typed values, sits after the search field. A blank
|
|
93
|
+
* is a value: a host that has one lists it last as its `blank` row, which the root and the count
|
|
94
|
+
* cover like any other.
|
|
95
|
+
*
|
|
96
|
+
* Reads no cells: the host supplies the items and owns the checked set (by text). The search
|
|
97
|
+
* narrows the VIEW only: the root acts on the rows in view, rows narrowed away keep their state,
|
|
98
|
+
* and what the host applies is the whole set (Sheets' rule, not Excel's replace-with-results).
|
|
99
|
+
* The list has the focus on open: Up/Down move its highlight, Space toggles the highlighted rows,
|
|
100
|
+
* Enter applies, Tab leaves it, and a typed character moves to the search field. From the field
|
|
101
|
+
* the same keys reach the list, Enter applies, and Escape clears the search and then closes.
|
|
102
|
+
*
|
|
103
|
+
* With `dates`, the leading items are listed as a tree (Excel's year › month › day): a node's
|
|
104
|
+
* checkbox is the state of its items, its row toggles them all, and its disclosure (or Left and
|
|
105
|
+
* Right on the highlighted row, with nothing typed) folds it. Collapsing hides the member rows
|
|
106
|
+
* from the view; they keep their state.
|
|
107
|
+
*
|
|
108
|
+
* The root wears the grid's surface and mode, so the list looks like the cells it stands for even
|
|
109
|
+
* inside chrome of another color.
|
|
110
|
+
*/
|
|
111
|
+
export declare const ValueChecklist: React.FC<ValueChecklistProps>;
|
|
112
|
+
//# sourceMappingURL=ValueChecklist.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditModeHandler, ReferenceableClipboard, RemoveListener } from '@sheetxl/utils';
|
|
2
|
-
import { ICellRange,
|
|
2
|
+
import { ICellRange, IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
import { Command, IReactNotifier } from '@sheetxl/utils-react';
|
|
4
4
|
export interface SheetPasteOptions extends ReferenceableClipboard.PasteOptions, ICellRange.CopyOptions {
|
|
5
5
|
}
|
|
@@ -57,11 +57,11 @@ export interface ContributeClipboardCommandsOptions {
|
|
|
57
57
|
*
|
|
58
58
|
* **Standalone:** this module owns *everything* about its commands — definitions, behavior, enablement
|
|
59
59
|
* (protection-disable), and the marquee view — with **no dependency on SheetCommands** (it reads only the
|
|
60
|
-
* generic `
|
|
60
|
+
* generic `IWorksheet` model). It's the shape a third-party clipboard would take: sheet knows nothing about it.
|
|
61
61
|
*/
|
|
62
62
|
/** The single `data` bundle {@link contributeClipboardCommands} takes (the `DynamicCommandContributor` shape). */
|
|
63
63
|
export interface ClipboardCommandData extends ContributeClipboardCommandsOptions {
|
|
64
|
-
sheet:
|
|
64
|
+
sheet: IWorksheet;
|
|
65
65
|
}
|
|
66
66
|
export declare function contributeClipboardCommands(contribution: Command.CommandContribution, data: ClipboardCommandData): RemoveListener;
|
|
67
67
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
export interface SheetClipboardLayerProps extends LayerProps {
|
|
5
|
-
sheet:
|
|
5
|
+
sheet: IWorksheet;
|
|
6
6
|
/** Class for the marquee visuals (devtools identification). */
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command } from '@sheetxl/utils-react';
|
|
2
|
+
/**
|
|
3
|
+
* Key of the **main toolbar strip**: the registered entry whose members are the ordered ribbon tabs.
|
|
4
|
+
* A contextual tab contributes into it (`contributions: { [WORKBOOK_TOOLBARS_KEY]: { order } }`) and
|
|
5
|
+
* is shown with {@link contributeContextualToolbar}.
|
|
6
|
+
*/
|
|
7
|
+
export declare const WORKBOOK_TOOLBARS_KEY = "workbookToolbars";
|
|
8
|
+
/**
|
|
9
|
+
* Registers `entry` in the default button registry for as long as at least one caller holds it, and
|
|
10
|
+
* returns the release. Several holders of the same key (several panes showing one table, a transient
|
|
11
|
+
* re-mount) share one registration; the last release unregisters it. Calling a release more than once
|
|
12
|
+
* is a no-op.
|
|
13
|
+
*
|
|
14
|
+
* Use this for a contextual tab and for any group only that tab references.
|
|
15
|
+
*/
|
|
16
|
+
export declare function contributeContextualToolbar(entry: Command.CommandButtonEntry & {
|
|
17
|
+
key: string;
|
|
18
|
+
}): () => void;
|
|
19
|
+
//# sourceMappingURL=ContextualToolbar.d.ts.map
|
|
@@ -23,12 +23,15 @@ export interface TransactionalMiddlewareOptions {
|
|
|
23
23
|
*/
|
|
24
24
|
isRepeatable?: (command: Command.ResolvedCommand<any, any, any>) => boolean;
|
|
25
25
|
}
|
|
26
|
+
/** The commit meta entry naming the command that made the commit. */
|
|
27
|
+
export declare const COMMAND_META_KEY = "command";
|
|
26
28
|
/**
|
|
27
29
|
* The **shared transactional command wrapper** — one `CommandMiddleware` every feature reuses via
|
|
28
30
|
* `contribution.use(...)` (sheet, movable, …) instead of re-implementing (or copying) it. Each
|
|
29
31
|
* wrapped callback stays **pure**; the middleware adds, uniformly:
|
|
30
32
|
*
|
|
31
|
-
* - **batch** — runs the work in `transaction.doBatch(..., label)` so it's one undo entry
|
|
33
|
+
* - **batch** — runs the work in `transaction.doBatch(..., label)` so it's one undo entry, recording
|
|
34
|
+
* the command's key in the commit's meta (`command`) so a view of the history can show its icon;
|
|
32
35
|
* - **busy** — `notifier.showBusy(label)` for the duration;
|
|
33
36
|
* - **error** — a thrown error is reported via `notifier.showError` (a *falsy* throw = user cancel ⇒ swallowed);
|
|
34
37
|
* - **repeatable** — after success, sets `manager.setRepeatableOperation` so F4 / redo-when-empty
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { CellCoords } from '@sheetxl/utils';
|
|
2
|
+
import { IComment, IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* What a comments task pane is asked to open on — `activateTaskPane('comments', { args })`.
|
|
5
|
+
*/
|
|
6
|
+
export interface CommentsPaneArgs {
|
|
7
|
+
/**
|
|
8
|
+
* Scroll to this thread and put the caret in its reply box.
|
|
9
|
+
*/
|
|
10
|
+
focus?: IComment;
|
|
11
|
+
/**
|
|
12
|
+
* Open a draft on the active cell. Nothing is written until it is posted.
|
|
13
|
+
*/
|
|
14
|
+
insert?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What a comment card is rendered from.
|
|
18
|
+
*/
|
|
19
|
+
export interface CommentCardRenderProps {
|
|
20
|
+
/** The sheet the card's cell is on. */
|
|
21
|
+
sheet: IWorksheet;
|
|
22
|
+
/** The cell the card belongs to. */
|
|
23
|
+
coords: CellCoords;
|
|
24
|
+
/** The thread on the cell, or `null` for a draft: a comment that has not been posted. */
|
|
25
|
+
comment: IComment | null;
|
|
26
|
+
/**
|
|
27
|
+
* A new value each time a command asks for the card, whose text then takes the caret; `0` when
|
|
28
|
+
* none has.
|
|
29
|
+
*/
|
|
30
|
+
focusRequest: number;
|
|
31
|
+
/** Dismisses the card; a draft that was not posted is dropped. */
|
|
32
|
+
onClose: () => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A cell whose comment card is asked to stay beside it with the caret in its text: a draft when the
|
|
36
|
+
* cell has no thread, the thread's reply box when it has one.
|
|
37
|
+
*/
|
|
38
|
+
export interface CommentCardRequest extends CellCoords {
|
|
39
|
+
/**
|
|
40
|
+
* A new value each time the card's text is asked to take the caret; `0` when the card is only
|
|
41
|
+
* asked to stay.
|
|
42
|
+
*/
|
|
43
|
+
focusRequest: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Options for {@link requestCommentCard}.
|
|
47
|
+
*/
|
|
48
|
+
export interface RequestCommentCardOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Whether the card's text takes the caret.
|
|
51
|
+
* @defaultValue true
|
|
52
|
+
*/
|
|
53
|
+
autoFocus?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Asks for the comment card of a cell: a draft when the cell has no thread, its thread otherwise.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This is how a command reaches a card it cannot see. The card floats beside the cell until the
|
|
60
|
+
* request is {@link clearCommentCard | cleared}, which the layer drawing it does when the selection
|
|
61
|
+
* leaves the cell. A draft writes nothing until it is posted.
|
|
62
|
+
*/
|
|
63
|
+
export declare const requestCommentCard: (sheet: IWorksheet, coords: CellCoords, options?: RequestCommentCardOptions) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Takes back a {@link requestCommentCard | request}; a draft that was not posted is dropped.
|
|
66
|
+
*/
|
|
67
|
+
export declare const clearCommentCard: (sheet: IWorksheet) => void;
|
|
68
|
+
/**
|
|
69
|
+
* The cell whose card is asked for on the sheet, or `null` for none.
|
|
70
|
+
*/
|
|
71
|
+
export declare const getCommentCardRequest: (sheet: IWorksheet) => CommentCardRequest | null;
|
|
72
|
+
/**
|
|
73
|
+
* Whether anything draws the sheet's comment cards. A command falls back to the comments task pane
|
|
74
|
+
* when nothing does.
|
|
75
|
+
*/
|
|
76
|
+
export declare const hasCommentCard: (sheet: IWorksheet) => boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Listens for the sheet's card request changing. Whatever draws the cards listens; the returned
|
|
79
|
+
* function stops listening.
|
|
80
|
+
*/
|
|
81
|
+
export declare const addCommentCardListener: (sheet: IWorksheet, listener: () => void) => (() => void);
|
|
82
|
+
/**
|
|
83
|
+
* The cell a draft is open on: a requested card whose cell has no comment yet. `null` for none.
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* For what marks the cell while its comment is being written. Following this does not count as
|
|
87
|
+
* drawing the cards, so {@link hasCommentCard} is unchanged by it.
|
|
88
|
+
*/
|
|
89
|
+
export declare const useCommentDraftCell: (sheet: IWorksheet) => CommentCardRequest | null;
|
|
90
|
+
/**
|
|
91
|
+
* {@link getCommentCardRequest}, kept current.
|
|
92
|
+
*/
|
|
93
|
+
export declare const useCommentCardRequest: (sheet: IWorksheet) => CommentCardRequest | null;
|
|
94
|
+
//# sourceMappingURL=CommentCardRequest.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CellCoords } from '@sheetxl/utils';
|
|
2
|
+
import { IComment } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* The cell a comment is on, as plain coordinates.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* A comment's own range is anchored (`$B$2`); selecting or comparing cells wants the plain cell.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getCommentCoords: (comment: IComment) => CellCoords;
|
|
10
|
+
/**
|
|
11
|
+
* Orders comments as they are read on the sheet: by row, then by column.
|
|
12
|
+
*/
|
|
13
|
+
export declare const compareComments: (a: IComment, b: IComment) => number;
|
|
14
|
+
/**
|
|
15
|
+
* The initials shown in a person's avatar: the first letter of the first and of the last word of
|
|
16
|
+
* their name, or of the one word it has.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getPersonInitials: (displayName: string | null | undefined) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Options for {@link formatCommentTime}.
|
|
21
|
+
*/
|
|
22
|
+
export interface FormatCommentTimeOptions {
|
|
23
|
+
/** The moment the time is relative to. Defaults to now. */
|
|
24
|
+
now?: Date;
|
|
25
|
+
/** A BCP 47 language tag. Defaults to the runtime's. */
|
|
26
|
+
locale?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* When a comment was written, as a card shows it.
|
|
30
|
+
*/
|
|
31
|
+
export interface CommentTime {
|
|
32
|
+
/** How long ago, in words: `2 hours ago`, `yesterday`. */
|
|
33
|
+
relative: string;
|
|
34
|
+
/** The full date and time, for a tooltip. */
|
|
35
|
+
absolute: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Formats when a comment was written: relative for the card, absolute for its tooltip.
|
|
39
|
+
*
|
|
40
|
+
* @returns `null` for no date, which is what a note converted to a comment has.
|
|
41
|
+
*/
|
|
42
|
+
export declare const formatCommentTime: (date: Date | null | undefined, options?: FormatCommentTimeOptions) => CommentTime | null;
|
|
43
|
+
//# sourceMappingURL=CommentUtils.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IComment } from '@sheetxl/sdk';
|
|
3
|
+
import { MovableElementProps } from '../movable';
|
|
4
|
+
export interface NoteEditorAttributes {
|
|
5
|
+
isNoteEditor: () => true;
|
|
6
|
+
}
|
|
7
|
+
export interface INoteEditorElement extends HTMLDivElement, NoteEditorAttributes {
|
|
8
|
+
}
|
|
9
|
+
export interface NoteEditorProps extends MovableElementProps {
|
|
10
|
+
/**
|
|
11
|
+
* The note whose box this draws.
|
|
12
|
+
*/
|
|
13
|
+
note: IComment;
|
|
14
|
+
ref?: React.Ref<INoteEditorElement>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Draws a note in its box: the text with its formatting runs, edited in place.
|
|
18
|
+
*/
|
|
19
|
+
export declare const NoteEditor: React.NamedExoticComponent<Omit<NoteEditorProps, "ref"> & React.RefAttributes<INoteEditorElement>>;
|
|
20
|
+
//# sourceMappingURL=NoteEditor.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IComment, IPerson } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* One thread as a card shows it: the comment's current values, read once per change.
|
|
4
|
+
*/
|
|
5
|
+
export interface CommentThread {
|
|
6
|
+
/** The comment's text. */
|
|
7
|
+
content: string;
|
|
8
|
+
/** Who wrote it, or `null` if the workbook does not know them. */
|
|
9
|
+
author: IPerson | null;
|
|
10
|
+
/** When it was written, or `null` if it carries no date. */
|
|
11
|
+
date: Date | null;
|
|
12
|
+
/** Whether the thread is resolved. */
|
|
13
|
+
resolved: boolean;
|
|
14
|
+
/** The replies, oldest first. */
|
|
15
|
+
replies: IComment.IReply[];
|
|
16
|
+
/** `true` once the comment has been deleted; the other values are then empty. */
|
|
17
|
+
deleted: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A comment's thread, kept current: its text, author, replies and resolved state.
|
|
21
|
+
*
|
|
22
|
+
* @param comment The comment, or `null` for none (a draft that has not been posted).
|
|
23
|
+
* @returns The thread, or `null` when there is no comment.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* The object keeps its identity until the comment's content, replies or resolved state changes,
|
|
27
|
+
* or the comment is deleted.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const thread = useCommentThread(comment);
|
|
32
|
+
* if (!thread || thread.deleted) return null;
|
|
33
|
+
* return <p>{thread.author?.getDisplayName()}: {thread.content} ({thread.replies.length} replies)</p>;
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const useCommentThread: (comment: IComment | null) => CommentThread | null;
|
|
37
|
+
//# sourceMappingURL=useCommentThread.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IComment, IWorksheet } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Options for {@link useSheetComments}.
|
|
4
|
+
*/
|
|
5
|
+
export interface UseSheetCommentsOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Only threads with this resolved state. Omit for every thread.
|
|
8
|
+
*/
|
|
9
|
+
resolved?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The threaded comments on a sheet, in reading order, kept current.
|
|
13
|
+
*
|
|
14
|
+
* @param sheet The sheet, or `null` for none.
|
|
15
|
+
* @param options {@link UseSheetCommentsOptions}
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Notes are not threads and are left out. The array keeps its identity until a comment on the
|
|
19
|
+
* sheet is added, removed, moved, edited, replied to or resolved.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const open = useSheetComments(sheet, { resolved: false });
|
|
24
|
+
* return <ul>{open.map((comment) => <li key={comment.getId()}>{comment.getContent()}</li>)}</ul>;
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const useSheetComments: (sheet: IWorksheet | null, options?: UseSheetCommentsOptions) => IComment[];
|
|
28
|
+
//# sourceMappingURL=useSheetComments.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConditionalFormat,
|
|
1
|
+
import { IConditionalFormat, ICellStyle } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Shared authoring presets for the conditional-format editor.
|
|
4
4
|
*
|
|
@@ -13,7 +13,7 @@ import { IConditionalFormat, IStyle } from '@sheetxl/sdk';
|
|
|
13
13
|
export interface StylePreset {
|
|
14
14
|
/** Stable identifier; UI layers key their localized tooltip off it. */
|
|
15
15
|
key: string;
|
|
16
|
-
style:
|
|
16
|
+
style: ICellStyle.Properties;
|
|
17
17
|
}
|
|
18
18
|
export declare const STYLE_PRESETS: readonly StylePreset[];
|
|
19
19
|
/**
|
|
@@ -42,7 +42,7 @@ export declare const defaultIconSet: () => IConditionalFormat.IconSet;
|
|
|
42
42
|
export interface IconSetGalleryBlock {
|
|
43
43
|
key: 'directional' | 'shapes' | 'indicators' | 'ratings';
|
|
44
44
|
/** Each row is a pair of sets; the right seat may be empty. */
|
|
45
|
-
rows: readonly (readonly [
|
|
45
|
+
rows: readonly (readonly [ICellStyle.IconSet, ICellStyle.IconSet | null])[];
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Every set the gallery offers, laid out the way Excel Online's own gallery is — two sets to a
|
|
@@ -64,13 +64,13 @@ export declare const ICON_SET_GALLERY_BLOCKS: readonly IconSetGalleryBlock[];
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const iconSetSize: (set: string) => number;
|
|
66
66
|
/** A ready-to-apply rule for a built-in set — the set at Excel's default even banding. */
|
|
67
|
-
export declare const iconSetPreset: (set:
|
|
67
|
+
export declare const iconSetPreset: (set: ICellStyle.IconSet) => IConditionalFormat.IconSet;
|
|
68
68
|
/**
|
|
69
69
|
* The per-band override that draws nothing — Excel's "No Cell Icon", spelled the way its x14
|
|
70
70
|
* writer spells it.
|
|
71
71
|
*/
|
|
72
72
|
export declare const NO_CELL_ICON: Readonly<{
|
|
73
|
-
set:
|
|
73
|
+
set: ICellStyle.IconSet;
|
|
74
74
|
id: number;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -87,7 +87,7 @@ export declare const NO_CELL_ICON: Readonly<{
|
|
|
87
87
|
* @param icon The icon to draw there, or `null` to restore the band's own.
|
|
88
88
|
*/
|
|
89
89
|
export declare const withIconOverride: (scale: IConditionalFormat.IconSet, band: number, icon: {
|
|
90
|
-
set:
|
|
90
|
+
set: ICellStyle.IconSet;
|
|
91
91
|
id: number;
|
|
92
92
|
} | null) => IConditionalFormat.IconSet;
|
|
93
93
|
//# sourceMappingURL=ConditionalFormatPresets.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
export type WorksheetProviderProps = {
|
|
4
|
+
sheet: IWorksheet | null;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Provides a sheet to descendants.
|
|
9
|
+
*
|
|
10
|
+
* Notes:
|
|
11
|
+
* - Prefer passing the sheet object as a stable reference from the host.
|
|
12
|
+
*/
|
|
13
|
+
export declare function WorksheetProvider(props: WorksheetProviderProps): React.JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Hook consumers call to access the current sheet.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useWorksheet(): IWorksheet | null;
|
|
18
|
+
//# sourceMappingURL=WorksheetContext.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MovableRendererProps } from '../movable';
|
|
3
|
+
export declare const ButtonRenderer: React.ComponentType<MovableRendererProps>;
|
|
4
|
+
export declare const CheckBoxRenderer: React.ComponentType<MovableRendererProps>;
|
|
5
|
+
export declare const OptionButtonRenderer: React.ComponentType<MovableRendererProps>;
|
|
6
|
+
/**
|
|
7
|
+
* The browser's own slider, lying the way the shape does. A vertical one runs downward, its
|
|
8
|
+
* minimum at the top, as Excel's scroll bar does.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ScrollBarRenderer: React.ComponentType<MovableRendererProps>;
|
|
11
|
+
/**
|
|
12
|
+
* A spinner is its two buttons and nothing else; the number it holds is in its linked cell. The
|
|
13
|
+
* browser's own buttons, as the button control's are.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SpinnerRenderer: React.ComponentType<MovableRendererProps>;
|
|
16
|
+
export declare const DropDownRenderer: React.ComponentType<MovableRendererProps>;
|
|
17
|
+
export declare const ListBoxRenderer: React.ComponentType<MovableRendererProps>;
|
|
18
|
+
export declare const GroupBoxRenderer: React.ComponentType<MovableRendererProps>;
|
|
19
|
+
export declare const LabelRenderer: React.ComponentType<MovableRendererProps>;
|
|
20
|
+
/** A kind with no look of its own: a neutral frame with its name. */
|
|
21
|
+
export declare const UnmodeledControlRenderer: React.ComponentType<MovableRendererProps>;
|
|
22
|
+
//# sourceMappingURL=FormControlRenderers.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoveListener } from '@sheetxl/utils';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
import { Command } from '@sheetxl/utils-react';
|
|
4
4
|
import { IEditable, EditorMode, EditorTextSelection } from '@sheetxl/grid-react';
|
|
5
5
|
/**
|
|
@@ -52,7 +52,7 @@ export declare function insertEditText(editable: IEditable<any, any, any>, text:
|
|
|
52
52
|
/** The single `data` bundle {@link contributeInsertCommands} takes (the `DynamicCommandContributor` shape). */
|
|
53
53
|
export interface InsertCommandData {
|
|
54
54
|
editable: IEditable<any, any, any>;
|
|
55
|
-
sheet:
|
|
55
|
+
sheet: IWorksheet;
|
|
56
56
|
/** `'startEdit'` begins an edit (the sheet's version when NOT editing); `'caret'` inserts at the focused editor's caret. */
|
|
57
57
|
flavor: InsertFlavor;
|
|
58
58
|
}
|
|
@@ -86,7 +86,7 @@ export declare function contributeWhileEditingCommands(contribution: Command.Com
|
|
|
86
86
|
/** The single `data` bundle {@link contributeEditorCommands} takes (the `DynamicCommandContributor` shape). */
|
|
87
87
|
export interface EditorCommandData {
|
|
88
88
|
editable: IEditable<any, any, any>;
|
|
89
|
-
sheet:
|
|
89
|
+
sheet: IWorksheet;
|
|
90
90
|
/**
|
|
91
91
|
* Contribute the edit-session commands only while an edit is **active** (a session exists). An idle editor
|
|
92
92
|
* owns no F4 / no caret overrides, so they cede to `redo` / the sheet's begin-edit flavor. The host passes
|
|
@@ -17,6 +17,18 @@ export interface FunctionHint {
|
|
|
17
17
|
argIndex: number;
|
|
18
18
|
/** The function's declared parameters, in order (name / optional / rest). */
|
|
19
19
|
params: readonly IFunction.IParameterType[];
|
|
20
|
+
/**
|
|
21
|
+
* The argument the caret is in holds a literal outside the values its parameter is limited to
|
|
22
|
+
* (`findEnumLints`). Shown under that argument's description while it is the one lit.
|
|
23
|
+
*/
|
|
24
|
+
warning?: {
|
|
25
|
+
/** The argument, as {@link argIndex} counts. */
|
|
26
|
+
argIndex: number;
|
|
27
|
+
/** The literal as written. */
|
|
28
|
+
value: string;
|
|
29
|
+
/** The values it could be, as literals, joined for display. */
|
|
30
|
+
values: string;
|
|
31
|
+
};
|
|
20
32
|
}
|
|
21
33
|
/**
|
|
22
34
|
* The function's self-describing text, loaded lazily (async) from `getDescriptor()`. Keyed by `name`
|
|
@@ -31,6 +43,8 @@ export interface FunctionDescriptor {
|
|
|
31
43
|
params: Readonly<Record<string, {
|
|
32
44
|
description?: string;
|
|
33
45
|
}>>;
|
|
46
|
+
/** The copy for each enum a parameter is limited to, keyed by enum id — see `IFunction.IDescriptor.getEnums`. */
|
|
47
|
+
enums?: Readonly<Record<string, IFunction.IEnumDescription>>;
|
|
34
48
|
}
|
|
35
49
|
export declare const argTypeKey: (param: IFunction.IParameterType) => string;
|
|
36
50
|
export interface FunctionArgIconsProps {
|
|
@@ -157,7 +171,7 @@ export interface FunctionPreviewPanelProps {
|
|
|
157
171
|
* @remarks
|
|
158
172
|
* This is the "B" half of the formula-editor hint UI (the autocomplete *list* is "A"). Presentational
|
|
159
173
|
* and props-driven — the editor owns the caret → hint derivation and passes it down. The expand/collapse
|
|
160
|
-
* state persists (via {@link
|
|
174
|
+
* state persists (via {@link usePersistentState}); close is delegated via
|
|
161
175
|
* {@link FunctionPreviewPanelProps.onClose}. No **Example** is shown: `IDescriptor` has no function-level
|
|
162
176
|
* example and we won't fabricate one. The active-argument emphasis is driven by `hint.argIndex`. Nothing
|
|
163
177
|
* here mutates the edit.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NamedItem } from './NamedItemsPanel';
|
|
3
|
+
export interface NamedItemLabelProps {
|
|
4
|
+
/** What the row shows: its name, its kind (the glyph) and an optional trailing category. */
|
|
5
|
+
item: NamedItem;
|
|
6
|
+
/** A dimmed line under the name, shown when given. */
|
|
7
|
+
summary?: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Let the summary wrap.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue `false` — one clipped line (with the full text as a tooltip), so a floating list
|
|
12
|
+
* does not change height as its selection moves.
|
|
13
|
+
*/
|
|
14
|
+
wrapSummary?: boolean;
|
|
15
|
+
/** Height of the name line, in px. @defaultValue `22` */
|
|
16
|
+
rowHeight?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The content of one row in a list of functions, names and tables — the kind glyph, the name, an
|
|
20
|
+
* optional trailing category and an optional summary under it.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Shared so an item reads the same wherever it is listed: the formula autocomplete
|
|
24
|
+
* ({@link NamedItemsPanel}) and the Insert Function dialog. Presentational only — the host owns the
|
|
25
|
+
* row element, its selection styling and its events. The name carries the class `named-item-name`,
|
|
26
|
+
* for a host that styles it (the dialog sets it in the monospace font).
|
|
27
|
+
*/
|
|
28
|
+
export declare const NamedItemLabel: React.FC<NamedItemLabelProps>;
|
|
29
|
+
//# sourceMappingURL=NamedItemLabel.d.ts.map
|
|
@@ -4,9 +4,16 @@
|
|
|
4
4
|
* @remarks
|
|
5
5
|
* `'named'` covers every non-table entry of the workbook's `INamedCollection` (a named range, a named
|
|
6
6
|
* constant, a named formula): they differ in what they resolve to, but not in how they are completed —
|
|
7
|
-
* the name goes in bare and stands on its own.
|
|
7
|
+
* the name goes in bare and stands on its own. `'parameter'` is a `LET`/`LAMBDA` name in scope at the
|
|
8
|
+
* caret — completed the same way, but it lives in the formula rather than the workbook. `'lambda'` is a
|
|
9
|
+
* name bound to a literal `LAMBDA(…)` — a defined name whose body is one, or a `LET` name whose value is
|
|
10
|
+
* one: a name, but completed like a function, with its paren.
|
|
11
|
+
* `'column'` and `'specifier'` (`#Data`, `@ - This Row`) are offered inside a table's brackets; the
|
|
12
|
+
* bracket is left for the user to close.
|
|
13
|
+
* `'enum'` is one value an argument is limited to, offered in an empty argument of that type; its
|
|
14
|
+
* name is the literal a formula spells (`1`, `"osversion"`), and it goes in as written.
|
|
8
15
|
*/
|
|
9
|
-
export type NamedItemKind = 'function' | 'named' | 'table';
|
|
16
|
+
export type NamedItemKind = 'function' | 'named' | 'lambda' | 'table' | 'parameter' | 'column' | 'specifier' | 'enum';
|
|
10
17
|
/**
|
|
11
18
|
* One row in the formula autocomplete list. Deliberately minimal — the presentational panel needs a
|
|
12
19
|
* display `name`, its {@link NamedItemKind}, and optionally a `category` / an `iconKey` override. The
|
|
@@ -17,6 +24,10 @@ export interface NamedItem {
|
|
|
17
24
|
name: string;
|
|
18
25
|
/** What the row is. Defaults to `'function'`, which is what an omitted kind meant before names joined the list. */
|
|
19
26
|
kind?: NamedItemKind;
|
|
27
|
+
/** Optional text shown right after the name, unemphasized — an `'enum'` label's value (`AVERAGE 1`). */
|
|
28
|
+
detail?: string;
|
|
29
|
+
/** What choosing the row inserts, when that is not `name` — an `'enum'` label inserts its value. */
|
|
30
|
+
insert?: string;
|
|
20
31
|
/** Optional category (e.g. `Math & Trig`), shown dimmed at the row's trailing edge. */
|
|
21
32
|
category?: string;
|
|
22
33
|
/** Optional icon-pack key for the leading glyph; overrides the {@link NamedItemKind} default. */
|