@sheetxl/react 0.8.0-beta.9 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -7
- package/browser/esm/5B9ljQwRo4GZv5e3.mjs +264 -0
- package/browser/esm/B7K16Rzv-QXeNhTf.mjs +197 -0
- package/browser/esm/BD3e6d1xxwWiZvhM.mjs +78 -0
- package/browser/esm/{Dk6274Lic6AOmEAq.mjs → BIlvSwHzLhtyrkCm.mjs} +84 -2
- package/browser/esm/BTkVpKUjjBXs7S4h.mjs +128 -0
- package/browser/esm/B_X-eExTurXNj2s6.mjs +134 -0
- package/browser/esm/BaXKIZ-EbNXalsn9.mjs +32 -0
- package/browser/esm/ByiwVTu3Ax65JzsV.mjs +36 -0
- package/browser/esm/CBwGe_8NQ_Zwkd9c.mjs +67 -0
- package/browser/esm/CLM5O7S-zDkLuyx4.mjs +323 -0
- package/browser/esm/CN3fS0Je4N_gmPLR.mjs +145 -0
- package/browser/esm/Cb3fQ74AG3ha3Lbb.mjs +31 -0
- package/browser/esm/CyK8M1od0A1rs3IZ.mjs +14092 -0
- package/browser/esm/D-wXCKrEuZsj9YPV.mjs +60 -0
- package/browser/esm/D3h177x5aS9wsvay.mjs +8 -0
- package/browser/esm/DIle1Uzx1TRzW_kQ.mjs +42 -0
- package/browser/esm/DLCK6iNnpw8XUOy8.mjs +79 -0
- package/browser/esm/DS_YUf92NUAjr5M9.mjs +9560 -0
- package/browser/esm/DYLAfjgirgwGJkJo.mjs +20 -0
- package/browser/esm/D_KHWbW4C9PQ7G8l.mjs +401 -0
- package/browser/esm/DclFKNTfrIjTUqZW.mjs +341 -0
- package/browser/esm/DeZNNHG8-BP0qop0.mjs +323 -0
- package/browser/esm/WUqAXqTxytEPWXNZ.mjs +63 -0
- package/browser/esm/Xab6qjmPHkjnBlcs.mjs +45 -0
- package/browser/esm/chart.mjs +41 -0
- package/browser/esm/control.mjs +217 -0
- package/browser/esm/group.mjs +123 -0
- package/browser/esm/index.mjs +21677 -15289
- package/browser/esm/note.mjs +112 -0
- package/browser/esm/picture.mjs +7 -0
- package/browser/esm/shape.mjs +7 -0
- package/browser/esm/slicer.mjs +282 -0
- package/browser/esm/xismu7oIPMRpfRZN.mjs +19 -0
- package/licenses/dependencies.txt +327 -53
- package/node/esm/3O4W5uO7Ei1RSamd.mjs +328 -0
- package/node/esm/BEmcxv9Cg5uinTCr.mjs +80 -0
- package/node/esm/BWuHuJ2nm8MKaUpL.mjs +1697 -0
- package/node/esm/Bb39ZMFsvPRb6_sU.mjs +20 -0
- package/node/esm/Btwf2pH6R5DrzLlO.mjs +32 -0
- package/node/esm/C3_B2QUtmUAAoAbQ.mjs +37 -0
- package/node/esm/CIHXrDGerZpH_kWI.mjs +19 -0
- package/node/esm/CbEtd-l94dqcicGz.mjs +66 -0
- package/node/esm/D06Yw2XsMkKhhpbZ.mjs +406 -0
- package/node/esm/D6pwBrfHwDwzCkt6.mjs +128 -0
- package/node/esm/DKBxWraRN4fQGsFy.mjs +63 -0
- package/node/esm/DPp00qgyktTqWeEp.mjs +68 -0
- package/node/esm/Ddz6TmyZPfCk-PXM.mjs +134 -0
- package/node/esm/Djwke9rsxOR1tTNb.mjs +8 -0
- package/node/esm/DmdPWNpf3d05AFgU.mjs +80 -0
- package/node/esm/DsUEK1CBM3dZfY2X.mjs +198 -0
- package/node/esm/{B-5p0wwNM6Y5jlI2.mjs → DsgT7qY3nHxDGSws.mjs} +84 -2
- package/node/esm/L7XZPzd6aXI7OzdI.mjs +146 -0
- package/node/esm/X9lgoicxH_z9hlaw.mjs +45 -0
- package/node/esm/chart.mjs +41 -0
- package/node/esm/control.mjs +217 -0
- package/node/esm/group.mjs +123 -0
- package/node/esm/index.mjs +16970 -10477
- package/node/esm/note.mjs +113 -0
- package/node/esm/oliuGGZGkPQdm6vE.mjs +35 -0
- package/node/esm/picture.mjs +326 -0
- package/node/esm/s7q4H_VlspTpP2kg.mjs +265 -0
- package/node/esm/shape.mjs +342 -0
- package/node/esm/slicer.mjs +284 -0
- package/package.json +56 -14
- package/resources/contents.json +36 -0
- package/resources/locales/contents.json +84 -0
- package/resources/locales/de/chart.cmd.json +82 -0
- package/resources/locales/de/movable.cmd.json +68 -0
- package/resources/locales/de/picture.cmd.json +188 -0
- package/resources/locales/de/pivot.cmd.json +79 -0
- package/resources/locales/de/shape.cmd.json +17 -0
- package/resources/locales/de/sheet.cmd.json +169 -16
- package/resources/locales/de/slicer.cmd.json +17 -0
- package/resources/locales/de/sparkline.cmd.json +301 -0
- package/resources/locales/de/table.cmd.json +13 -2
- package/resources/locales/de/ui.msg.json +353 -2
- package/resources/locales/de/workbook.cmd.json +8 -1
- package/resources/locales/en/chart.cmd.json +82 -0
- package/resources/locales/en/movable.cmd.json +68 -0
- package/resources/locales/en/picture.cmd.json +188 -0
- package/resources/locales/en/pivot.cmd.json +79 -0
- package/resources/locales/en/shape.cmd.json +17 -0
- package/resources/locales/en/sheet.cmd.json +170 -17
- package/resources/locales/en/slicer.cmd.json +17 -0
- package/resources/locales/en/sparkline.cmd.json +301 -0
- package/resources/locales/en/table.cmd.json +13 -2
- package/resources/locales/en/ui.msg.json +195 -3
- package/resources/locales/en/workbook.cmd.json +8 -1
- 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/RangeAnnotationLayer.d.ts +110 -0
- package/types/src/annotation/RangeAnnotationTag.d.ts +23 -0
- package/types/src/annotation/RangeAnnotations.d.ts +180 -0
- package/types/src/annotation/index.d.ts +4 -0
- package/types/src/autoFill/FillMenu.d.ts +2 -2
- package/types/src/autoFill/FillSeries.d.ts +2 -2
- package/types/src/border/StaticBorderRenderer.d.ts +18 -1
- package/types/src/border/useBorders.d.ts +95 -3
- package/types/src/cell/CellCheckboxRenderer.d.ts +20 -0
- package/types/src/cell/CellContent.d.ts +68 -0
- package/types/src/cell/CellControlContext.d.ts +37 -0
- package/types/src/cell/{FormulaCellRenderer.d.ts → CellFormulaRenderer.d.ts} +10 -7
- package/types/src/cell/CellImageRenderer.d.ts +11 -0
- package/types/src/cell/CellRenderers.d.ts +190 -0
- package/types/src/cell/{SheetCellRenderer.d.ts → CellTextRenderer.d.ts} +11 -8
- package/types/src/cell/ColumnButton.d.ts +3 -3
- package/types/src/cell/CornerTriangle.d.ts +2 -1
- package/types/src/cell/OutlineButton.d.ts +4 -4
- package/types/src/cell/PivotButton.d.ts +55 -0
- package/types/src/cell/SheetHeaderRenderer.d.ts +1 -1
- package/types/src/cell/StaticCellRenderer.d.ts +3 -3
- package/types/src/cell/_DropdownFace.d.ts +29 -0
- package/types/src/cell/index.d.ts +9 -2
- package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
- package/types/src/cell/useInsertableCellControls.d.ts +25 -0
- package/types/src/chart/ChartCommands.d.ts +15 -0
- package/types/src/chart/ChartEditor.d.ts +12 -2
- package/types/src/chart/ChartElement.d.ts +122 -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 +38 -0
- package/types/src/chart/paint/_mode.d.ts +6 -0
- package/types/src/chart/paint/echarts.d.ts +33 -0
- package/types/src/chart/paint/index.d.ts +12 -0
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +140 -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 +3 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +42 -0
- package/types/src/checklist/ValueChecklist.d.ts +44 -15
- 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 +9 -9
- package/types/src/comment/index.d.ts +0 -1
- package/types/src/comment/useSheetComments.d.ts +2 -2
- package/types/src/conditionalFormat/ConditionalFormatPresets.d.ts +6 -6
- 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 +8 -0
- package/types/src/editableLabel/EditableLabel.d.ts +3 -1
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/editor/SheetCellEditorLayer.d.ts +2 -7
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +22 -5
- package/types/src/editor/SheetCellInput.d.ts +14 -0
- package/types/src/editor/SheetEditable.d.ts +6 -6
- package/types/src/editor/SheetReferenceHeaderLayer.d.ts +1 -1
- package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
- package/types/src/editor/VirtualKeyboardLayer.d.ts +50 -0
- package/types/src/editor/formulaAnchor.d.ts +12 -0
- package/types/src/editor/formulaPresentation.d.ts +4 -3
- package/types/src/editor/index.d.ts +2 -0
- package/types/src/editor/pickedReference.d.ts +3 -3
- package/types/src/editor/useEditRejectedNotice.d.ts +3 -3
- package/types/src/editor/useFormulaHints.d.ts +3 -3
- package/types/src/editor/useFormulaInput.d.ts +6 -3
- package/types/src/editor/validationAlert.d.ts +24 -0
- package/types/src/form/FormulaInput.d.ts +5 -2
- 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 +74 -3
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +10 -2
- package/types/src/layer/BorderLayer.d.ts +5 -2
- package/types/src/layer/CellErrorLayer.d.ts +18 -7
- package/types/src/layer/CellFillLayer.d.ts +2 -2
- package/types/src/layer/CellIndicatorLayer.d.ts +31 -0
- package/types/src/layer/CellInsertLayer.d.ts +71 -0
- package/types/src/layer/CircularIndicatorLayer.d.ts +3 -3
- package/types/src/layer/CommentCardLayer.d.ts +7 -9
- package/types/src/layer/CommentsLayer.d.ts +2 -2
- 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/HeaderSelectionLayer.d.ts +4 -4
- package/types/src/layer/HyperlinkLayer.d.ts +116 -0
- package/types/src/layer/MovableKindScope.d.ts +17 -0
- package/types/src/layer/PivotLayer.d.ts +47 -0
- package/types/src/layer/PivotToolbar.d.ts +29 -0
- package/types/src/layer/ProtectionLayer.d.ts +4 -5
- package/types/src/layer/RangeToolbar.d.ts +75 -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 +15 -8
- package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
- package/types/src/layer/SheetGridLineLayer.d.ts +25 -15
- package/types/src/layer/SheetHeaderCellLayer.d.ts +1 -1
- package/types/src/layer/SheetLayers.d.ts +171 -0
- package/types/src/layer/SheetMovableLayer.d.ts +4 -3
- package/types/src/layer/SheetOutlineLayer.d.ts +3 -3
- package/types/src/layer/SheetPivotCommandLayer.d.ts +13 -0
- package/types/src/layer/SheetSparklineCommandLayer.d.ts +14 -0
- package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
- package/types/src/layer/SparklineLayer.d.ts +32 -0
- 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 +23 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +2 -2
- package/types/src/layer/ValidationIndicatorLayer.d.ts +2 -2
- package/types/src/layer/ValidationPromptLayer.d.ts +47 -16
- package/types/src/layer/_sheetBorders.d.ts +6 -0
- package/types/src/layer/_tableColor.d.ts +6 -0
- package/types/src/layer/_visibleCellFeatures.d.ts +11 -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 -0
- 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 +5 -6
- 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 +3 -3
- package/types/src/layer/useVisibleTables.d.ts +2 -2
- package/types/src/layer/validationMark.d.ts +3 -3
- 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 +4 -4
- package/types/src/listener/useRangeListener.d.ts +13 -7
- 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 +28 -0
- package/types/src/movable/MovableAdornment.d.ts +9 -3
- package/types/src/movable/MovableCommandGroups.d.ts +22 -0
- package/types/src/movable/MovableCommands.d.ts +8 -3
- package/types/src/movable/MovableControl.d.ts +49 -1
- package/types/src/movable/MovableFrame.d.ts +5 -1
- package/types/src/movable/MovableLayer.d.ts +30 -5
- package/types/src/movable/MovableRenderers.d.ts +166 -11
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +12 -4
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +44 -1
- package/types/src/movable/geometry.d.ts +13 -3
- package/types/src/movable/index.d.ts +8 -0
- package/types/src/movable/pressTarget.d.ts +20 -0
- package/types/src/movable/useFramePreview.d.ts +17 -0
- package/types/src/picker/cellPickerOpen.d.ts +3 -3
- package/types/src/picker/useCellPicker.d.ts +7 -5
- package/types/src/picture/PictureCommands.d.ts +20 -0
- package/types/src/picture/PictureKind.d.ts +7 -0
- package/types/src/picture/_pictureHyperlink.d.ts +13 -0
- package/types/src/picture/index.d.ts +0 -1
- package/types/src/picture/pictureCrop.d.ts +32 -0
- package/types/src/pivot/PivotAreas.d.ts +16 -0
- package/types/src/pivot/PivotChip.d.ts +33 -0
- package/types/src/pivot/PivotChipMenu.d.ts +74 -0
- package/types/src/pivot/PivotCommands.d.ts +24 -0
- package/types/src/pivot/PivotFieldList.d.ts +14 -0
- package/types/src/pivot/PivotFields.d.ts +47 -0
- package/types/src/pivot/PivotFieldsModel.d.ts +143 -0
- package/types/src/pivot/PivotTablePane.d.ts +47 -0
- package/types/src/pivot/_PivotFieldsContext.d.ts +41 -0
- package/types/src/pivot/_pivotNew.d.ts +12 -0
- package/types/src/pivot/_pivotRegion.d.ts +14 -0
- package/types/src/pivot/index.d.ts +9 -0
- package/types/src/pivot/usePivotFields.d.ts +17 -0
- package/types/src/presence/PresenceCommands.d.ts +35 -0
- package/types/src/presence/PresenceHost.d.ts +58 -0
- package/types/src/presence/PresenceMessages.d.ts +42 -0
- package/types/src/presence/PresenceStore.d.ts +165 -0
- package/types/src/presence/PresenceTypes.d.ts +78 -0
- package/types/src/presence/index.d.ts +7 -0
- package/types/src/presence/usePresence.d.ts +20 -0
- package/types/src/richText/RichTextEditor.d.ts +2 -2
- package/types/src/selection/SelectionCommands.d.ts +2 -2
- package/types/src/selection/SheetSelectionLayer.d.ts +6 -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 +2 -3
- package/types/src/shape/ShapeGallery.d.ts +21 -6
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +6 -8
- package/types/src/shape/index.d.ts +0 -1
- package/types/src/shape/shapeFrame.d.ts +46 -2
- package/types/src/shape/shapeStyle.d.ts +59 -8
- package/types/src/sheet/ISheetHeaderElement.d.ts +3 -3
- package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +110 -86
- package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +14 -6
- package/types/src/sheet/SheetCommands.d.ts +18 -3
- package/types/src/sheet/SheetKindIcon.d.ts +14 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +6 -6
- 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/_hyperlinkEdit.d.ts +7 -0
- package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
- package/types/src/sheet/circularReferences.d.ts +4 -4
- package/types/src/sheet/index.d.ts +5 -2
- package/types/src/sheet/useCycleHighlight.d.ts +2 -2
- 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/sparkline/PictureCache.d.ts +37 -0
- package/types/src/sparkline/SparklineCommands.d.ts +23 -0
- package/types/src/sparkline/SparklinePictures.d.ts +7 -0
- package/types/src/sparkline/paint/_drawing.d.ts +24 -0
- package/types/src/sparkline/paint/echarts.d.ts +8 -0
- package/types/src/sparkline/paint/index.d.ts +8 -0
- package/types/src/tabStrip/SheetTab.d.ts +1 -1
- package/types/src/tabStrip/Sortable.d.ts +5 -5
- package/types/src/tabStrip/TabStrip.d.ts +13 -6
- package/types/src/tabStrip/TabStripItem.d.ts +15 -13
- package/types/src/table/TableCommands.d.ts +2 -2
- package/types/src/taskPane/CellControlPane.d.ts +15 -0
- package/types/src/taskPane/MovablePane.d.ts +15 -0
- package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
- package/types/src/taskPane/TaskPaneFrame.d.ts +4 -4
- package/types/src/taskPane/TaskPaneKeys.d.ts +38 -0
- package/types/src/taskPane/TaskPaneRegistry.d.ts +32 -12
- package/types/src/taskPane/_paneReasons.d.ts +7 -0
- package/types/src/taskPane/index.d.ts +3 -0
- package/types/src/taskPane/useTaskPane.d.ts +6 -3
- package/types/src/theme/ExplicitTokens.d.ts +18 -0
- package/types/src/theme/GridColorSchemeContext.d.ts +8 -0
- package/types/src/theme/ThemeRootStyles.d.ts +31 -0
- package/types/src/theme/ThemeState.d.ts +2 -2
- package/types/src/theme/buildDocThemeCSS.d.ts +4 -1
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
- package/types/src/theme/buildTokensCSS.d.ts +15 -0
- package/types/src/theme/index.d.ts +2 -4
- package/types/src/theme/useAppColorScheme.d.ts +4 -1
- package/types/src/theme/useGridColorScheme.d.ts +9 -4
- package/types/src/theme/useSystemColors.d.ts +1 -15
- package/types/src/workbook/DefaultMovableRenderers.d.ts +19 -1
- package/types/src/workbook/DefaultRenderers.d.ts +5 -4
- package/types/src/workbook/IWorkbookElement.d.ts +176 -30
- package/types/src/workbook/WorkbookCommands.d.ts +6 -1
- package/types/src/workbook/WorkbookStrip.d.ts +14 -5
- package/browser/cjs/index.cjs +0 -43
- package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +0 -1
- 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/control/index.d.ts +0 -2
- package/types/src/sheet/SheetElement.d.ts +0 -15
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IWorksheetView, IRange } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Move one axis's freeze to `index` (`0` unfreezes that axis), leaving the other axis as it is.
|
|
4
|
+
*
|
|
5
|
+
* Each frozen area keeps the start it already has; an axis that becomes frozen starts at the scrolled
|
|
6
|
+
* position. Either way what is on screen stays put — provided the scrolling area starts exactly at the
|
|
7
|
+
* current freeze, which is when the freeze grip allows a drag.
|
|
8
|
+
*/
|
|
9
|
+
export declare const freezeAt: (view: IWorksheetView, axis: IRange.Axis, index: number) => void;
|
|
10
|
+
//# sourceMappingURL=_freezeAt.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the sheet's protection lets a hyperlink be added, changed or removed: the two options
|
|
4
|
+
* `ICellRange.setHyperlink` asks for.
|
|
5
|
+
*/
|
|
6
|
+
export declare const isHyperlinkEditAllowed: (sheet: IWorksheet) => boolean;
|
|
7
|
+
//# sourceMappingURL=_hyperlinkEdit.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ISheetHeader } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* The header's metrics as last announced: replaced on `onMetricsChange` (heard once the operation that
|
|
4
|
+
* changed them closes), not read fresh on every render. Everything that lays out from the returned
|
|
5
|
+
* metrics agrees, whatever re-renders in between.
|
|
6
|
+
*
|
|
7
|
+
* @returns The held metrics, and `refresh` to take the header's current metrics early — e.g. on each
|
|
8
|
+
* move of a resize drag, while its operation is still open.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useHeaderMetrics: (header: ISheetHeader) => [ISheetHeader.IMetrics, () => void];
|
|
11
|
+
//# sourceMappingURL=_useHeaderMetrics.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRange,
|
|
1
|
+
import { IRange, IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* The cell a sheet's status bar names for its UNRESOLVED circular references — Excel's
|
|
4
4
|
* `Worksheet.CircularReference`, one cell — or `null` when the sheet has none.
|
|
@@ -13,11 +13,11 @@ import { IRange, ISheet } from '@sheetxl/sdk';
|
|
|
13
13
|
* makes a cycle a computation rather than a mistake, and its result is what the user turned the
|
|
14
14
|
* setting on for. Excel is the same and this is the measurement it comes from — its
|
|
15
15
|
* `Worksheet.CircularReference` answers `(none)` while iterating and names the cell again the
|
|
16
|
-
* moment `Iteration` is turned off
|
|
16
|
+
* moment `Iteration` is turned off. The cell keeps its marker either
|
|
17
17
|
* way, so an iterated cycle stays discoverable where it is; what goes quiet is the workbook-level
|
|
18
18
|
* alarm, which is the same line `ICell.getErrors()` draws (§7.3).
|
|
19
19
|
*/
|
|
20
|
-
export declare const findSheetCircularReference: (sheet:
|
|
20
|
+
export declare const findSheetCircularReference: (sheet: IWorksheet) => IRange.CellCoords | null;
|
|
21
21
|
/**
|
|
22
22
|
* A cell address the way a formula on `sheetName` would write it: bare on its own sheet
|
|
23
23
|
* (`A1`), sheet-qualified elsewhere (`'Other Sheet'!A1`).
|
|
@@ -30,5 +30,5 @@ export declare const formatCellAddress: (coords: IRange.CellCoords, sheetName: s
|
|
|
30
30
|
* The "go to" behind a circular tooltip's link and the status bar's readout. A `scope` this
|
|
31
31
|
* workbook does not know (a cycle member in a named formula's body) selects nothing.
|
|
32
32
|
*/
|
|
33
|
-
export declare const selectCell: (sheet:
|
|
33
|
+
export declare const selectCell: (sheet: IWorksheet, target: IRange.CellCoords) => Promise<unknown> | null;
|
|
34
34
|
//# sourceMappingURL=circularReferences.d.ts.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export type * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export type * from './IWorksheetElement';
|
|
2
|
+
export * from './WorksheetElement';
|
|
3
|
+
export * from './OpaqueSheetElement';
|
|
4
|
+
export * from './SheetPanels';
|
|
5
|
+
export * from './SheetKindIcon';
|
|
3
6
|
export * from './SheetScrollbar';
|
|
4
7
|
export * from './SheetCommands';
|
|
5
8
|
export * from './SheetCommandProvider';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICalculation,
|
|
1
|
+
import { ICalculation, IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Outlines a reference cycle's MEMBERS on the grid for as long as the caller is mounted — the
|
|
4
4
|
* highlight behind a circular tooltip.
|
|
@@ -17,5 +17,5 @@ import { ICalculation, ISheet } from '@sheetxl/sdk';
|
|
|
17
17
|
* (the cleanup then finds someone else's state and leaves it alone, rather than clearing a live
|
|
18
18
|
* edit's references out from under it). A cycle with no live members publishes nothing.
|
|
19
19
|
*/
|
|
20
|
-
export declare const useCycleHighlight: (sheet:
|
|
20
|
+
export declare const useCycleHighlight: (sheet: IWorksheet | null, cycle: ICalculation.ICircularReference | null | undefined) => void;
|
|
21
21
|
//# sourceMappingURL=useCycleHighlight.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command } from '@sheetxl/utils-react';
|
|
2
|
+
import { MovableKindCommandData } from '../movable';
|
|
3
|
+
/**
|
|
4
|
+
* The slicer kind's commands, for the active slicer. Chrome is the `slicer` catalog.
|
|
5
|
+
*
|
|
6
|
+
* `formatSlicerStyle` takes a style name; its state is the slicer's style, and its context hands a
|
|
7
|
+
* gallery the slicer and the workbook's styles to draw previews with.
|
|
8
|
+
*/
|
|
9
|
+
export declare const contributeSlicerCommands: Command.DynamicCommandContributor<MovableKindCommandData>;
|
|
10
|
+
//# sourceMappingURL=SlicerCommands.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ISlicer } from '@sheetxl/sdk';
|
|
2
3
|
import { MovableElementProps } from '../movable';
|
|
3
4
|
export interface SlicerEditorAttributes {
|
|
4
5
|
isSlicerEditor: () => true;
|
|
@@ -6,11 +7,16 @@ export interface SlicerEditorAttributes {
|
|
|
6
7
|
export interface ISlicerEditorElement extends HTMLDivElement, SlicerEditorAttributes {
|
|
7
8
|
}
|
|
8
9
|
export interface SlicerEditorProps extends MovableElementProps {
|
|
9
|
-
slicer:
|
|
10
|
+
slicer: ISlicer;
|
|
10
11
|
ref?: React.Ref<ISlicerEditorElement>;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Draws a slicer: its caption, and a button for each item that filters the column.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* A press on an item filters and never drags; the caption bar and the frame's edge drag, as in
|
|
18
|
+
* Excel. A click selects the item alone, Ctrl+click toggles it, Shift+click selects a run of
|
|
19
|
+
* items, and with multi-select on a plain click toggles.
|
|
14
20
|
*/
|
|
15
21
|
export declare const SlicerEditor: React.NamedExoticComponent<Omit<SlicerEditorProps, "ref"> & React.RefAttributes<ISlicerEditorElement>>;
|
|
16
22
|
//# sourceMappingURL=SlicerEditor.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MovableRendererModule } from '../movable/MovableRenderers';
|
|
2
|
+
/**
|
|
3
|
+
* The slicer kind, as the renderer registry loads it: one module, so a failed fetch can be
|
|
4
|
+
* imported again whole.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SlicerKind: MovableRendererModule;
|
|
7
|
+
//# sourceMappingURL=SlicerKind.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IStyleCollection } from '@sheetxl/sdk';
|
|
3
|
+
export interface SlicerStylePreviewProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** The slicer style's name. */
|
|
5
|
+
styleName: string;
|
|
6
|
+
/** The workbook's styles: they hold the style, and their theme resolves its colors. */
|
|
7
|
+
styles: IStyleCollection | null;
|
|
8
|
+
/** @defaultValue 56 */
|
|
9
|
+
width?: number;
|
|
10
|
+
/** @defaultValue 60 */
|
|
11
|
+
height?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A small picture of a slicer in a style: its frame, a header and four items in their states.
|
|
15
|
+
* What a style gallery shows for each style.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SlicerStylePreview: React.MemoExoticComponent<(props: SlicerStylePreviewProps) => React.ReactElement>;
|
|
18
|
+
//# sourceMappingURL=SlicerStylePreview.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IStyleCollection, ISlicerStyle, ICellStyle } from '@sheetxl/sdk';
|
|
3
|
+
/** The slicer styles' names, grouped as a style gallery lists them. */
|
|
4
|
+
export interface SlicerStyleNames {
|
|
5
|
+
/** The document's own styles, by name. A customized built-in stays in its built-in group. */
|
|
6
|
+
custom: string[];
|
|
7
|
+
light: string[];
|
|
8
|
+
other: string[];
|
|
9
|
+
dark: string[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns the workbook's slicer styles' names, grouped as a style gallery lists them.
|
|
13
|
+
*
|
|
14
|
+
* @param styles The workbook's styles; without them every group is empty.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getSlicerStyleNames: (styles: IStyleCollection | null) => SlicerStyleNames;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a slicer style's elements by name, or the default style's for a name that is not one.
|
|
19
|
+
*
|
|
20
|
+
* @param styles The workbook's styles; without them there is no style, and `null` is returned.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getSlicerStyle: (name: string, styles: IStyleCollection | null) => Readonly<ISlicerStyle.Properties> | null;
|
|
23
|
+
/** The style element an item is drawn with. */
|
|
24
|
+
export declare const slicerItemElement: (selected: boolean, hasData: boolean, hovered: boolean) => ISlicerStyle.ElementType;
|
|
25
|
+
/**
|
|
26
|
+
* Resolves a style element, a differential cell format, to CSS against the workbook's theme:
|
|
27
|
+
* its text color and weight, its fill and its border.
|
|
28
|
+
*
|
|
29
|
+
* @param styles The workbook's styles, whose theme resolves theme colors.
|
|
30
|
+
*/
|
|
31
|
+
export declare const slicerElementCSS: (element: ICellStyle.Properties | undefined, styles: IStyleCollection | null) => React.CSSProperties;
|
|
32
|
+
//# sourceMappingURL=slicerStyles.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pictures by key, painted on a queue: one picture for every view that asks for the same key, and
|
|
3
|
+
* the painting spread over slices of time so a screen of new pictures never blocks a frame.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* A key states everything the picture depends on (DESIGN-SPARKLINES §3: the layout, so its size,
|
|
7
|
+
* values and concrete colors), so a hit is always right and nothing is invalidated: a view whose
|
|
8
|
+
* input changed asks for another key. The least recently asked are let go past `maxEntries`.
|
|
9
|
+
*
|
|
10
|
+
* The queue is the pool: only views on screen ask, so what is painted first is what is visible.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PictureCache<T> {
|
|
13
|
+
private readonly _paint;
|
|
14
|
+
private readonly _maxEntries;
|
|
15
|
+
private readonly _budgetMs;
|
|
16
|
+
private readonly _pictures;
|
|
17
|
+
private readonly _queue;
|
|
18
|
+
private _scheduled;
|
|
19
|
+
/**
|
|
20
|
+
* @param paint Turns an input into a picture (a URL an `<img>` can show).
|
|
21
|
+
* @param options `maxEntries` (default 2000) pictures kept; `budgetMs` (default 8) of painting
|
|
22
|
+
* per slice before yielding.
|
|
23
|
+
*/
|
|
24
|
+
constructor(paint: (input: T) => string | Promise<string>, options?: {
|
|
25
|
+
maxEntries?: number;
|
|
26
|
+
budgetMs?: number;
|
|
27
|
+
});
|
|
28
|
+
/** The picture for `key`, painted from `input` when it is not already painted or queued. */
|
|
29
|
+
get(key: string, input: T): Promise<string>;
|
|
30
|
+
/** The picture for `key` when it is already asked for, without painting. */
|
|
31
|
+
peek(key: string): Promise<string> | undefined;
|
|
32
|
+
/** Lets every picture go. */
|
|
33
|
+
clear(): void;
|
|
34
|
+
private _schedule;
|
|
35
|
+
private _drain;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=PictureCache.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RemoveListener, UndoManager } from '@sheetxl/utils';
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
import { Command, IReactNotifier } from '@sheetxl/utils-react';
|
|
4
|
+
/** Options for {@link contributeSparklineCommands}. */
|
|
5
|
+
export interface SparklineCommandData {
|
|
6
|
+
sheet: IWorksheet | null;
|
|
7
|
+
/** Busy + error UI for the transactional middleware. */
|
|
8
|
+
notifier?: IReactNotifier;
|
|
9
|
+
/** Undo manager the sheet records into: F4 / redo-as-repeat. */
|
|
10
|
+
manager?: UndoManager;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* **Sparkline command behavior**: Excel's Sparkline tab, for the sparklines the selection holds.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* The `sparkline` scope, contributed only while the active cell has a sparkline (Excel shows the
|
|
17
|
+
* tab then) and removed otherwise, as the `table` scope is. A command changes every group the
|
|
18
|
+
* selection touches, as Excel's tab does: a type, a marker or an axis is the group's, never one
|
|
19
|
+
* sparkline's. Each click is one undo entry (the transactional middleware). The toggles' `state`
|
|
20
|
+
* is the active cell's group's.
|
|
21
|
+
*/
|
|
22
|
+
export declare function contributeSparklineCommands(contribution: Command.CommandContribution, data: SparklineCommandData): RemoveListener;
|
|
23
|
+
//# sourceMappingURL=SparklineCommands.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SparklineDrawing } from './paint/_drawing';
|
|
2
|
+
export { toDrawing, isBlankDrawing, type SparklineDrawing } from './paint/_drawing';
|
|
3
|
+
/** The key a drawing's picture is cached under: the drawing, which states everything it shows. */
|
|
4
|
+
export declare const sparklinePictureKey: (drawing: SparklineDrawing) => string;
|
|
5
|
+
/** The picture of `drawing`, as a URL an `<img>` shows. */
|
|
6
|
+
export declare const getSparklinePicture: (drawing: SparklineDrawing, key?: string) => Promise<string>;
|
|
7
|
+
//# sourceMappingURL=SparklinePictures.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IColor, SparklineLayout } from '@sheetxl/sdk';
|
|
2
|
+
type Drawn<T extends {
|
|
3
|
+
color: IColor;
|
|
4
|
+
}> = Omit<T, 'color'> & {
|
|
5
|
+
color: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A layout with every color drawn for a mode: what the painter paints and what a picture is cached
|
|
9
|
+
* under, so a light and a dark picture are two pictures.
|
|
10
|
+
*/
|
|
11
|
+
export interface SparklineDrawing {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
axis: Drawn<SparklineLayout.Line> | null;
|
|
15
|
+
line: Drawn<SparklineLayout.Polyline> | null;
|
|
16
|
+
columns: Drawn<SparklineLayout.Column>[];
|
|
17
|
+
markers: Drawn<SparklineLayout.Marker>[];
|
|
18
|
+
}
|
|
19
|
+
/** `layout` as a light or a dark grid draws it: each color as the cells there draw theirs. */
|
|
20
|
+
export declare function toDrawing(layout: SparklineLayout, darkMode: boolean): SparklineDrawing;
|
|
21
|
+
/** Whether a drawing shows anything: a sparkline with no number draws nothing and needs no picture. */
|
|
22
|
+
export declare const isBlankDrawing: (drawing: SparklineDrawing) => boolean;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=_drawing.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SparklineDrawing } from './_drawing';
|
|
2
|
+
/** The drawing as ECharts graphic elements, in drawing order. */
|
|
3
|
+
export declare function toGraphicElements(drawing: SparklineDrawing): object[];
|
|
4
|
+
/**
|
|
5
|
+
* Paints the drawing headless, as an SVG document string of its size.
|
|
6
|
+
*/
|
|
7
|
+
export declare function renderSparklineToSVG(drawing: SparklineDrawing): string;
|
|
8
|
+
//# sourceMappingURL=echarts.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** What the painter module exports. */
|
|
2
|
+
export type SparklinePaintModule = typeof import('./echarts');
|
|
3
|
+
/**
|
|
4
|
+
* The sparkline painter. It carries ECharts, so nothing imports it statically: it loads the first
|
|
5
|
+
* time a sparkline is drawn, or earlier when `LazyModules.prefetch` warms the lazy modules.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SparklinePaint: import('@sheetxl/utils').LazyModule<typeof import("./echarts")>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CollisionDetection, DragStartEvent, DropAnimation, KeyboardCoordinateGetter, Modifiers, MeasuringConfiguration, PointerActivationConstraint, UniqueIdentifier } from '@dnd-kit/core';
|
|
3
3
|
import { arrayMove, SortingStrategy, AnimateLayoutChanges, NewIndexGetter } from '@dnd-kit/sortable';
|
|
4
|
+
import { RenderSlotFn } from '@sheetxl/utils-react';
|
|
5
|
+
import { TabStripItemRenderProps } from './TabStripItem';
|
|
4
6
|
export interface SortableProps {
|
|
5
7
|
className?: string;
|
|
6
8
|
activationConstraint?: PointerActivationConstraint;
|
|
@@ -15,11 +17,9 @@ export interface SortableProps {
|
|
|
15
17
|
onMove?: (indexFrom: number, indexTo: number) => void;
|
|
16
18
|
measuring?: MeasuringConfiguration;
|
|
17
19
|
modifiers?: Modifiers;
|
|
18
|
-
renderItem?:
|
|
20
|
+
renderItem?: (props: TabStripItemRenderProps) => React.ReactNode;
|
|
19
21
|
removable?: boolean;
|
|
20
|
-
renderDivider?:
|
|
21
|
-
key: string;
|
|
22
|
-
}) => React.ReactElement;
|
|
22
|
+
renderDivider?: RenderSlotFn<React.HTMLAttributes<HTMLElement>>;
|
|
23
23
|
reorderItems?: typeof arrayMove;
|
|
24
24
|
strategy?: SortingStrategy;
|
|
25
25
|
style?: React.CSSProperties;
|
|
@@ -54,7 +54,7 @@ interface SortableItemProps {
|
|
|
54
54
|
useDragOverlay?: boolean;
|
|
55
55
|
onRemove?(id: string): void;
|
|
56
56
|
style(values: any): React.CSSProperties;
|
|
57
|
-
renderItem?(
|
|
57
|
+
renderItem?(props: TabStripItemRenderProps): React.ReactNode;
|
|
58
58
|
wrapperStyle({ index, isDragging, id, }: {
|
|
59
59
|
index: number;
|
|
60
60
|
isDragging: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ScrollButtonProps } from '@sheetxl/utils-react';
|
|
2
|
+
import { RenderSlotFn, ScrollButtonProps } from '@sheetxl/utils-react';
|
|
3
3
|
import { EditableLabelProps } from '../editableLabel';
|
|
4
4
|
import { TabProps } from './Tab';
|
|
5
5
|
export interface TabStripRef extends HTMLDivElement {
|
|
@@ -12,11 +12,11 @@ export interface TabStripProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
12
12
|
onSelectedTabIndexChange?: (index: number) => void;
|
|
13
13
|
onTabNameChange?: (index: number, tabName: string) => void;
|
|
14
14
|
onTabMove?: (indexFrom: number, indexTo: number) => void;
|
|
15
|
-
renderScrollButtonStart?:
|
|
16
|
-
renderScrollButtonEnd?:
|
|
17
|
-
renderScrollButtonEdge?:
|
|
18
|
-
renderTabButton?:
|
|
19
|
-
renderTabDivider?:
|
|
15
|
+
renderScrollButtonStart?: RenderSlotFn<ScrollButtonProps> | null;
|
|
16
|
+
renderScrollButtonEnd?: RenderSlotFn<ScrollButtonProps> | null;
|
|
17
|
+
renderScrollButtonEdge?: RenderSlotFn<ScrollButtonProps> | null;
|
|
18
|
+
renderTabButton?: RenderSlotFn<TabProps>;
|
|
19
|
+
renderTabDivider?: RenderSlotFn<React.HTMLAttributes<HTMLElement>>;
|
|
20
20
|
propsEditLabel?: EditableLabelProps;
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
disableDrag?: boolean;
|
|
@@ -31,6 +31,13 @@ export interface TabStripProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
31
31
|
*/
|
|
32
32
|
borderWidth?: number;
|
|
33
33
|
borderColor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Draw the line along the strip's top edge (the one the selected tab notches). Off where the row
|
|
36
|
+
* above already separates the tabs from the grid.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue true
|
|
39
|
+
*/
|
|
40
|
+
seam?: boolean;
|
|
34
41
|
/** CSS color for the selected-tab accent. */
|
|
35
42
|
activeColor?: string;
|
|
36
43
|
}
|
|
@@ -18,19 +18,21 @@ export interface TabStripItemProps {
|
|
|
18
18
|
wrapperStyle?: React.CSSProperties;
|
|
19
19
|
value: React.ReactNode;
|
|
20
20
|
onRemove?(): void;
|
|
21
|
-
renderItem?(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
renderItem?(props: TabStripItemRenderProps): React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/** What a tab strip's item renderer is handed. */
|
|
24
|
+
export interface TabStripItemRenderProps {
|
|
25
|
+
dragOverlay: boolean;
|
|
26
|
+
dragging: boolean;
|
|
27
|
+
sorting: boolean;
|
|
28
|
+
index: number | undefined;
|
|
29
|
+
fadeIn: boolean;
|
|
30
|
+
listeners: DraggableSyntheticListeners;
|
|
31
|
+
ref: React.Ref<HTMLElement>;
|
|
32
|
+
style: React.CSSProperties | undefined;
|
|
33
|
+
transform: TabStripItemProps['transform'];
|
|
34
|
+
transition: TabStripItemProps['transition'];
|
|
35
|
+
value: TabStripItemProps['value'];
|
|
34
36
|
}
|
|
35
37
|
export declare const TabStripItem: React.NamedExoticComponent<TabStripItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
38
|
//# sourceMappingURL=TabStripItem.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoveListener, UndoManager } from '@sheetxl/utils';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
import { Command, IReactNotifier } from '@sheetxl/utils-react';
|
|
4
4
|
/** Options for {@link contributeTableCommands}. */
|
|
5
5
|
export interface ContributeTableCommandsOptions {
|
|
@@ -10,7 +10,7 @@ export interface ContributeTableCommandsOptions {
|
|
|
10
10
|
}
|
|
11
11
|
/** The single `data` bundle {@link contributeTableCommands} takes (the `DynamicCommandContributor` shape). */
|
|
12
12
|
export interface TableCommandData extends ContributeTableCommandsOptions {
|
|
13
|
-
sheet:
|
|
13
|
+
sheet: IWorksheet | null;
|
|
14
14
|
}
|
|
15
15
|
export declare function contributeTableCommands(contribution: Command.CommandContribution, data: TableCommandData): RemoveListener;
|
|
16
16
|
//# sourceMappingURL=TableCommands.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TaskPaneProps } from './ITaskPane';
|
|
3
|
+
/**
|
|
4
|
+
* The cell control pane: follows the selection's anchor and shows the body the anchor's content
|
|
5
|
+
* entry supplies ({@link CellContentEntry.pane}). With no control under the anchor, or for a type
|
|
6
|
+
* without a body, it says so.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CellControlPane: (props: TaskPaneProps) => React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* Registers the cell control pane ({@link CellControlPane}) with the default task pane registry,
|
|
11
|
+
* unless a pane is already registered under its key. The `formatCellControl` command calls it before
|
|
12
|
+
* opening the pane.
|
|
13
|
+
*/
|
|
14
|
+
export declare function registerCellControlPane(): void;
|
|
15
|
+
//# sourceMappingURL=CellControlPane.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TaskPaneProps } from './ITaskPane';
|
|
3
|
+
/**
|
|
4
|
+
* The format pane: follows the movable selection and shows the active movable's kind name above the
|
|
5
|
+
* body its kind supplies (`MovableRendererModule.pane`, or one given with `registerMovablePane`). With
|
|
6
|
+
* nothing selected, or for a kind without a body, it says so.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MovablePane: (props: TaskPaneProps) => React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* Registers the format pane ({@link MovablePane}) with the default task pane registry, unless a pane
|
|
11
|
+
* is already registered under its key. Its title and icon come from the `formatMovable` catalog
|
|
12
|
+
* entry. The `formatMovable` command calls it before opening the pane.
|
|
13
|
+
*/
|
|
14
|
+
export declare function registerFormatMovablePane(): void;
|
|
15
|
+
//# sourceMappingURL=MovablePane.d.ts.map
|
|
@@ -112,6 +112,13 @@ export interface ITaskPaneArea {
|
|
|
112
112
|
* @param key The task pane key.
|
|
113
113
|
*/
|
|
114
114
|
activate: <A = any>(key: string, options?: ActivateFrameOptions<A>) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Whether {@link activate} can show the task pane `key`: there is an area to show it in, and a
|
|
117
|
+
* pane registered under that key. A command that opens a pane is disabled when this is `false`.
|
|
118
|
+
*
|
|
119
|
+
* @param key The task pane key.
|
|
120
|
+
*/
|
|
121
|
+
canActivate: (key: string) => boolean;
|
|
115
122
|
/**
|
|
116
123
|
* Return the key for the currently active task pane.
|
|
117
124
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { RemoveListener } from '@sheetxl/utils';
|
|
3
3
|
import { IFrameContainerListener } from '../frame';
|
|
4
|
-
import {
|
|
4
|
+
import { ResolvedTaskPaneEntry } from './TaskPaneRegistry';
|
|
5
5
|
import { TaskPaneTitleProps } from './TaskPaneTitle';
|
|
6
6
|
export interface TaskPaneFrameProps extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
-
entry:
|
|
7
|
+
entry: ResolvedTaskPaneEntry;
|
|
8
8
|
model?: any;
|
|
9
9
|
/** The activating call's value bag — see {@link ActivateFrameOptions.args}. */
|
|
10
10
|
args?: any;
|
|
@@ -41,8 +41,8 @@ export interface TaskPaneFrameProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
41
41
|
* If the registry also provides a custom title component that will be used instead.
|
|
42
42
|
*/
|
|
43
43
|
componentTitle?: React.ComponentType<TaskPaneTitleProps>;
|
|
44
|
-
onMounted?: (entry:
|
|
45
|
-
onUnmounted?: (entry:
|
|
44
|
+
onMounted?: (entry: ResolvedTaskPaneEntry) => void;
|
|
45
|
+
onUnmounted?: (entry: ResolvedTaskPaneEntry) => void;
|
|
46
46
|
}
|
|
47
47
|
export declare const TaskPaneFrame: React.NamedExoticComponent<TaskPaneFrameProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
48
|
//# sourceMappingURL=TaskPaneFrame.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The keys of the task panes this package's commands open. Activate one with
|
|
3
|
+
* `taskPaneArea.activate(TaskPaneKey.Comments)`; register a pane under one to supply it or replace it.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Some of these panes this package supplies itself, registered the first time their command runs.
|
|
7
|
+
* The rest a host supplies (Studio does): until one is registered under the key, the commands that
|
|
8
|
+
* open it are disabled.
|
|
9
|
+
*
|
|
10
|
+
* Not every pane is here. A plugin registers its own panes under keys of its own, so a pane key is
|
|
11
|
+
* any string; these are the ones this package knows by name.
|
|
12
|
+
*/
|
|
13
|
+
export declare const TaskPaneKey: {
|
|
14
|
+
/** **Format Cells**: the selection's number format, font, alignment, fill and border. A host supplies it. */
|
|
15
|
+
readonly FormatCells: "formatCells";
|
|
16
|
+
/** The sheet's threaded comments. Opened on a thread with a `CommentsPaneArgs`. A host supplies it. */
|
|
17
|
+
readonly Comments: "comments";
|
|
18
|
+
/** The details of the table the active cell is in. A host supplies it. */
|
|
19
|
+
readonly TableDetails: "tableDetails";
|
|
20
|
+
/** The sheet's conditional formatting rules. Opened on a rule with `ItemsPaneArgs`. A host supplies it. */
|
|
21
|
+
readonly ConditionalFormat: "conditionalFormatDetails";
|
|
22
|
+
/** The sheet's data validation rules. Opened on a rule with `ItemsPaneArgs`. A host supplies it. */
|
|
23
|
+
readonly DataValidation: "dataValidationDetails";
|
|
24
|
+
/** Sheet and workbook protection, and the sheet's protected ranges. Opened with `ProtectionPaneArgs`. A host supplies it. */
|
|
25
|
+
readonly Protection: "manageProtection";
|
|
26
|
+
/** The workbook's defined names, every scope. Opened on a name with `ItemsPaneArgs`. A host supplies it. */
|
|
27
|
+
readonly Names: "managedNames";
|
|
28
|
+
/** The workbooks this one links to. Opened with `ExternalLinksPaneArgs`. A host supplies it. */
|
|
29
|
+
readonly ExternalLinks: "externalLinks";
|
|
30
|
+
/** The fields of the pivot table the active cell is in. Opened with `PivotTablePaneArgs`. Supplied here. */
|
|
31
|
+
readonly PivotTable: "pivotTableFields";
|
|
32
|
+
/** The cell control at the active cell. Supplied here. */
|
|
33
|
+
readonly CellControl: "formatCellControl";
|
|
34
|
+
/** The format of the selected drawing (shape, picture, chart). Supplied here. */
|
|
35
|
+
readonly FormatMovable: "formatMovable";
|
|
36
|
+
};
|
|
37
|
+
export type TaskPaneKey = typeof TaskPaneKey[keyof typeof TaskPaneKey];
|
|
38
|
+
//# sourceMappingURL=TaskPaneKeys.d.ts.map
|