@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,7 @@
|
|
|
1
|
+
import { MovableRendererModule } from '../movable/MovableRenderers';
|
|
2
|
+
/**
|
|
3
|
+
* The chart kind, as the renderer registry loads it: one module, so a failed fetch can be
|
|
4
|
+
* imported again whole.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ChartKind: MovableRendererModule;
|
|
7
|
+
//# sourceMappingURL=ChartKind.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IChart } from '@sheetxl/sdk';
|
|
2
3
|
export declare const PresetChartType: {
|
|
3
4
|
readonly Column: "column";
|
|
4
5
|
readonly ColumnStacked: "columnStacked";
|
|
@@ -29,7 +30,8 @@ export type PresetChartType = typeof PresetChartType[keyof typeof PresetChartTyp
|
|
|
29
30
|
export interface ChartTypeDescriptor {
|
|
30
31
|
Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
31
32
|
description: string;
|
|
32
|
-
|
|
33
|
+
/** The chart type the gallery entry inserts. */
|
|
34
|
+
type: IChart.Type;
|
|
33
35
|
}
|
|
34
36
|
export declare const presetChartTypeDescriptor: (presetType: PresetChartType) => ChartTypeDescriptor;
|
|
35
37
|
//# sourceMappingURL=PresetChartTypeDescriptors.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from './ChartEditor';
|
|
2
1
|
export * from './PresetChartTypeDescriptors';
|
|
2
|
+
export { ChartPaintKinds, type ChartPaintKind } from './paint/kinds/ChartPaintKind';
|
|
3
|
+
export { ChartElement, nextSelected, type ChartElementProps, type ChartElementAttributes, type ChartElementPress, type IChartElement } from './ChartElement';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IFill, IStroke, IText } from '@sheetxl/sdk';
|
|
2
|
+
/** A pattern preset's tile, row by row; `null` for a name that is not one of Excel's. */
|
|
3
|
+
export declare const patternTile: (preset: string | undefined) => boolean[][] | null;
|
|
4
|
+
/**
|
|
5
|
+
* What ECharts colors a shape with for `fill`: a CSS color, a gradient, or a repeated tile.
|
|
6
|
+
*
|
|
7
|
+
* @param none What draws no fill: `'transparent'` for a series, `'none'` for a `graphic` element.
|
|
8
|
+
*/
|
|
9
|
+
export declare const paintOf: (fill: IFill.JSON | null | undefined, none?: string) => any;
|
|
10
|
+
/** One color for `fill`, where ECharts takes no more (a tooltip's swatch): a gradient's first stop, a pattern's foreground. */
|
|
11
|
+
export declare const colorOf: (fill: IFill.JSON | null | undefined) => string | null;
|
|
12
|
+
/** A line's width in px. */
|
|
13
|
+
export declare const widthOf: (stroke: IStroke.JSON | null | undefined) => number;
|
|
14
|
+
/** A line's dash in px; `undefined` for a solid line. */
|
|
15
|
+
export declare const dashOf: (stroke: IStroke.JSON) => number[] | undefined;
|
|
16
|
+
/** A run's typeface. */
|
|
17
|
+
export declare const familyOf: (run: IText.RunPropertiesJSON) => string;
|
|
18
|
+
export declare const isBold: (run: IText.RunPropertiesJSON) => boolean;
|
|
19
|
+
export declare const isItalic: (run: IText.RunPropertiesJSON) => boolean;
|
|
20
|
+
/** A run's size in px. */
|
|
21
|
+
export declare const sizeOf: (run: IText.RunPropertiesJSON) => number;
|
|
22
|
+
/** What a run's text is filled with, as ECharts colors text. */
|
|
23
|
+
export declare const textPaintOf: (run: IText.RunPropertiesJSON) => any;
|
|
24
|
+
//# sourceMappingURL=_fills.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChartLayout, IFill, IStroke, IText } from '@sheetxl/sdk';
|
|
2
|
+
type Font = IText.RunPropertiesJSON;
|
|
3
|
+
type MarkerLayout = ChartLayout.MarkerLayout;
|
|
4
|
+
type Stroke = IStroke.JSON;
|
|
5
|
+
/**
|
|
6
|
+
* What every painter of a layout shares: fonts, strokes and markers as ECharts states them, and
|
|
7
|
+
* the `graphic` elements for text boxes, lines and up/down bars. Echarts is never imported here:
|
|
8
|
+
* these are plain objects an option carries.
|
|
9
|
+
*/
|
|
10
|
+
export declare const fontStyle: (font: Font) => Record<string, unknown>;
|
|
11
|
+
/** A run as a canvas font: `italic bold 13.33px Calibri`. */
|
|
12
|
+
export declare const fontOf: (font: Font, size?: number) => string;
|
|
13
|
+
/** A stroke as a `graphic` element's style states it. */
|
|
14
|
+
export declare const strokeStyle: (stroke: Stroke | null | undefined) => Record<string, unknown>;
|
|
15
|
+
/** A stroke as a series' `lineStyle` states it. */
|
|
16
|
+
export declare const lineStyle: (stroke: Stroke | null | undefined) => Record<string, unknown>;
|
|
17
|
+
/** Lines across a unit square: Excel's x, star and plus, drawn in the marker's outline color. */
|
|
18
|
+
export declare const MARKER_LINES: Readonly<Record<string, readonly [number, number, number, number][]>>;
|
|
19
|
+
export declare const markerSymbol: (marker: MarkerLayout) => {
|
|
20
|
+
symbol: string;
|
|
21
|
+
symbolSize: number | [number, number];
|
|
22
|
+
symbolOffset?: [number, number];
|
|
23
|
+
};
|
|
24
|
+
/** The square under a filled x, star or plus, as Excel draws it; `null` for any other marker. */
|
|
25
|
+
export declare const markerFill: (marker: MarkerLayout | null) => IFill.JSON | null;
|
|
26
|
+
/** A marker of the layout's centered on (`cx`, `cy`), as `graphic` elements (a legend key's). */
|
|
27
|
+
export declare const markerGraphic: (marker: MarkerLayout, cx: number, cy: number, z: number) => any[];
|
|
28
|
+
/**
|
|
29
|
+
* A text box of the layout (an axis title, a data label) as `graphic` elements: its box, where it
|
|
30
|
+
* has a fill or a line, and its text centered in it, turned about the box's center.
|
|
31
|
+
*/
|
|
32
|
+
export declare const textGraphic: (text: ChartLayout.TextLayout, fill: IFill.JSON | null, border: Stroke | null, lineHeight?: number) => any[];
|
|
33
|
+
/** A group's lines (high-low, drop, series lines) as `graphic` lines over its series (z 3). */
|
|
34
|
+
export declare const linesGraphic: (lines: ChartLayout.LinesLayout | undefined) => any[];
|
|
35
|
+
/** A group's up/down bars as `graphic` rects over its series (z 3), as Excel draws them. */
|
|
36
|
+
export declare const upDownBarsGraphic: (upDown: ChartLayout.UpDownBarsLayout | undefined) => any[];
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=_graphics.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChartLayout } from '@sheetxl/sdk';
|
|
2
|
+
/** A concrete CSS color as a dark grid draws it; one that cannot be read as it is. */
|
|
3
|
+
export declare const darkColor: (css: string) => string;
|
|
4
|
+
/** The layout with each of its colors as a dark grid draws it; the layout itself when light. */
|
|
5
|
+
export declare const layoutInMode: (layout: ChartLayout, darkMode: boolean) => ChartLayout;
|
|
6
|
+
//# sourceMappingURL=_mode.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChartLayout } from '@sheetxl/sdk';
|
|
2
|
+
import { TranslateOptions } from './toEChartsOption';
|
|
3
|
+
import * as echarts from 'echarts/core';
|
|
4
|
+
/** Registers the renderer and the components, once. The series types come with the kinds. */
|
|
5
|
+
export declare function ensureRegistered(): void;
|
|
6
|
+
export type EChartsInstance = echarts.ECharts;
|
|
7
|
+
/**
|
|
8
|
+
* An ECharts instance with no DOM, sized at the layout, with the layout set. The caller
|
|
9
|
+
* disposes it. For tests that read ECharts' geometry; `renderChartToSVG` is the product.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createHeadlessChart(layout: ChartLayout, options?: TranslateOptions): EChartsInstance;
|
|
12
|
+
/**
|
|
13
|
+
* Paints the layout headless, as an SVG document string of the layout's size.
|
|
14
|
+
*/
|
|
15
|
+
export declare function renderChartToSVG(layout: ChartLayout, options?: TranslateOptions): string;
|
|
16
|
+
/**
|
|
17
|
+
* A chart painted into an element. What is drawn is the layout's alone: a host that wants to know
|
|
18
|
+
* what is under the pointer asks the chart (`IChart.getElementAt`) with the layout it painted.
|
|
19
|
+
*/
|
|
20
|
+
export interface MountedChart {
|
|
21
|
+
/**
|
|
22
|
+
* Paints a new layout; a new size resizes the instance first.
|
|
23
|
+
* @param options How it is translated now; by default as it was mounted.
|
|
24
|
+
*/
|
|
25
|
+
update(layout: ChartLayout, options?: TranslateOptions): void;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Paints the layout into `host`, sized at the layout's px. The host is not measured: the frame
|
|
30
|
+
* scales it.
|
|
31
|
+
*/
|
|
32
|
+
export declare function mountChart(host: HTMLElement, layout: ChartLayout, options?: TranslateOptions): MountedChart;
|
|
33
|
+
//# sourceMappingURL=echarts.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { toEChartsOption, type TranslateOptions } from './toEChartsOption';
|
|
2
|
+
export { ChartPaintKinds, type ChartPaintKind } from './kinds/ChartPaintKind';
|
|
3
|
+
export type { MountedChart, EChartsInstance } from './echarts';
|
|
4
|
+
/** What the painter module exports. */
|
|
5
|
+
export type ChartPaintModule = typeof import('./echarts');
|
|
6
|
+
/**
|
|
7
|
+
* The painter. It carries ECharts, so nothing imports it statically: it loads the first time a
|
|
8
|
+
* chart is painted or rendered to SVG, or earlier when `LazyModules.prefetch` warms the lazy
|
|
9
|
+
* modules.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ChartPaint: import('@sheetxl/utils').LazyModule<typeof import("./echarts")>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { ChartLayout, IFill, IStroke } from '@sheetxl/sdk';
|
|
2
|
+
import { Bounds } from '@sheetxl/utils';
|
|
3
|
+
/**
|
|
4
|
+
* How a kind of chart group is painted: the ECharts series and `graphic` elements for a group of
|
|
5
|
+
* the kind's layout, and the key its series show in the legend. The built-in kinds register
|
|
6
|
+
* through {@link ChartPaintKinds} the way a host's kind does; a custom group
|
|
7
|
+
* (`ChartLayout.CustomGroupLayout`) is painted by the kind registered under `custom:<its kind>`.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The painter translates the layout and decides nothing: a kind reads where the
|
|
11
|
+
* layout put things, in px, and says how ECharts draws them. It is given the shared vocabulary as
|
|
12
|
+
* a {@link ChartPaintKind.Context}: fills and strokes as ECharts states them, markers, text boxes,
|
|
13
|
+
* and for a group on axes the grid indexes and how a series' data is placed on them.
|
|
14
|
+
*
|
|
15
|
+
* @beta
|
|
16
|
+
*/
|
|
17
|
+
export interface ChartPaintKind {
|
|
18
|
+
/** The layout group types the kind paints: `'bar'`, `'line'`..., or `custom:<kind>` for a custom group. */
|
|
19
|
+
readonly types: readonly string[];
|
|
20
|
+
/**
|
|
21
|
+
* The ECharts pieces the kind's series need (`echarts/charts`, `echarts/components`), registered
|
|
22
|
+
* with `echarts.use` before a chart with a group of the kind is first painted. A kind drawn as
|
|
23
|
+
* `graphic` elements alone needs none.
|
|
24
|
+
*/
|
|
25
|
+
modules?(): readonly unknown[];
|
|
26
|
+
/**
|
|
27
|
+
* Whether the kind's series sit on the grid's axes.
|
|
28
|
+
* @defaultValue the group names two axes
|
|
29
|
+
*/
|
|
30
|
+
readonly grid?: boolean;
|
|
31
|
+
/** Whether the group's categories run up a vertical axis (horizontal bars), which the grid is told. */
|
|
32
|
+
horizontal?(group: ChartLayout.GroupLayout): boolean;
|
|
33
|
+
/** The ECharts series for a group. */
|
|
34
|
+
series?(group: ChartLayout.GroupLayout, context: ChartPaintKind.Context): any[];
|
|
35
|
+
/** The `graphic` elements for a group, drawn with its series: a radar's spokes, an of-pie's bar. */
|
|
36
|
+
graphic?(group: ChartLayout.GroupLayout, context: ChartPaintKind.Context): any[];
|
|
37
|
+
/**
|
|
38
|
+
* The key a legend entry for one of the group's series shows, as `graphic` elements in `key`:
|
|
39
|
+
* a line's line and marker, a slice's colors. `undefined` for the default, a swatch of the
|
|
40
|
+
* series' fill and line.
|
|
41
|
+
*/
|
|
42
|
+
legendKey?(entry: ChartLayout.LegendEntryLayout, series: ChartLayout.SeriesLayout, group: ChartLayout.GroupLayout, key: Bounds, context: ChartPaintKind.Context): any[] | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace ChartPaintKind {
|
|
45
|
+
/** A group on the grid's axes: where its series go and how their data is placed. */
|
|
46
|
+
interface Cartesian {
|
|
47
|
+
xAxisIndex: number;
|
|
48
|
+
yAxisIndex: number;
|
|
49
|
+
/** Whether the value axis is logarithmic: nothing is drawn at zero or below. */
|
|
50
|
+
isLog: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* A series' data as ECharts places it: by category index, or on a date axis as `[slot, value]`
|
|
53
|
+
* pairs; a log axis's zero and negative values dropped.
|
|
54
|
+
*/
|
|
55
|
+
placed(series: ChartLayout.SeriesLayout, data: any[]): any[];
|
|
56
|
+
/** What every ECharts series of the group states: its id and name, axes, data and no emphasis. */
|
|
57
|
+
base(series: ChartLayout.SeriesLayout): Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
/** What a kind is given to paint a group. */
|
|
60
|
+
interface Context {
|
|
61
|
+
/** The layout to paint, its colors already in the mode painted. */
|
|
62
|
+
readonly layout: ChartLayout;
|
|
63
|
+
/** Whether the chart is drawn as a dark grid draws its cells. */
|
|
64
|
+
readonly darkMode: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* A concrete CSS color of the kind's own (not the layout's, which are in the mode already) as
|
|
67
|
+
* the chart is drawn: as a dark grid draws it when {@link darkMode}.
|
|
68
|
+
*/
|
|
69
|
+
color(css: string): string;
|
|
70
|
+
axisOf(id: number): ChartLayout.AxisLayout | undefined;
|
|
71
|
+
/** The grid a group's axes are on. */
|
|
72
|
+
cartesian(group: {
|
|
73
|
+
axisIds: number[];
|
|
74
|
+
}): Cartesian;
|
|
75
|
+
/** A fill as ECharts paints it; `none` for no fill. */
|
|
76
|
+
paint(fill: IFill.JSON | null | undefined, none?: string): any;
|
|
77
|
+
/** A stroke as a `graphic` element's style states it. */
|
|
78
|
+
stroke(stroke: IStroke.JSON | null | undefined): Record<string, unknown>;
|
|
79
|
+
/** A stroke as a series' `lineStyle` states it. */
|
|
80
|
+
line(stroke: IStroke.JSON | null | undefined): Record<string, unknown>;
|
|
81
|
+
/** A stroke's width in px, 0 for none. */
|
|
82
|
+
width(stroke: IStroke.JSON | null | undefined): number;
|
|
83
|
+
/** A series drawn as a line with its markers, straight or smooth, broken or not at a blank. */
|
|
84
|
+
lineSeries(series: ChartLayout.SeriesLayout, smooth: boolean, spanBlanks?: boolean): Record<string, any>;
|
|
85
|
+
/** `drawn` with, beneath it, the squares under the series' filled x, star or plus markers. */
|
|
86
|
+
withMarkerFills(series: ChartLayout.SeriesLayout, drawn: any): any[];
|
|
87
|
+
readonly marker: {
|
|
88
|
+
/** How ECharts draws a marker: its symbol, box and offset. */
|
|
89
|
+
symbol(marker: ChartLayout.MarkerLayout): {
|
|
90
|
+
symbol: string;
|
|
91
|
+
symbolSize: number | [number, number];
|
|
92
|
+
symbolOffset?: [number, number];
|
|
93
|
+
};
|
|
94
|
+
/** The square under a filled x, star or plus; `null` for any other marker. */
|
|
95
|
+
fill(marker: ChartLayout.MarkerLayout | null): IFill.JSON | null;
|
|
96
|
+
/** A marker centered on a point, as `graphic` elements. */
|
|
97
|
+
graphic(marker: ChartLayout.MarkerLayout, cx: number, cy: number, z: number): any[];
|
|
98
|
+
};
|
|
99
|
+
/** A text box of the layout as `graphic` elements. */
|
|
100
|
+
text(text: ChartLayout.TextLayout, fill: IFill.JSON | null, border: IStroke.JSON | null, lineHeight?: number): any[];
|
|
101
|
+
/** A group's lines (high-low, drop, series lines) as `graphic` lines. */
|
|
102
|
+
lines(lines: ChartLayout.LinesLayout | undefined): any[];
|
|
103
|
+
/** A group's up/down bars as `graphic` rects. */
|
|
104
|
+
upDownBars(bars: ChartLayout.UpDownBarsLayout | undefined): any[];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The painters of chart groups, by layout group type: the built-ins, and any a host registers.
|
|
109
|
+
*
|
|
110
|
+
* @remarks
|
|
111
|
+
* The built-ins register when a layout is first translated, so before that {@link get} answers
|
|
112
|
+
* `undefined` for `'bar'`; a host's kind registered under a built-in type keeps its place when they
|
|
113
|
+
* do. A registration is a call, never a side effect of an import.
|
|
114
|
+
*
|
|
115
|
+
* @beta
|
|
116
|
+
*/
|
|
117
|
+
export declare namespace ChartPaintKinds {
|
|
118
|
+
/**
|
|
119
|
+
* Registers a kind under each of its types, replacing any earlier registration of them.
|
|
120
|
+
*
|
|
121
|
+
* @returns A function that removes the registration.
|
|
122
|
+
*/
|
|
123
|
+
function register(kind: ChartPaintKind): () => void;
|
|
124
|
+
/** The kind registered under a layout group type, or `undefined`. */
|
|
125
|
+
function get(type: string): ChartPaintKind | undefined;
|
|
126
|
+
function has(type: string): boolean;
|
|
127
|
+
/** The registered types. */
|
|
128
|
+
function getTypes(): string[];
|
|
129
|
+
/** The type a layout group is registered under: its type, or `custom:<kind>` for a custom group. */
|
|
130
|
+
function typeOf(group: ChartLayout.GroupLayout): string;
|
|
131
|
+
/** The kind that paints `group`, or `undefined` when none is registered for it. */
|
|
132
|
+
function of(group: ChartLayout.GroupLayout): ChartPaintKind | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Registers the painter's own kinds, once, under the types no host has taken. The translation
|
|
135
|
+
* calls it before its first use.
|
|
136
|
+
* @hidden
|
|
137
|
+
*/
|
|
138
|
+
function registerBuiltIns(builtInKinds: (register: (kind: ChartPaintKind) => () => void) => void): void;
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=ChartPaintKind.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartLayout } from '@sheetxl/sdk';
|
|
2
|
+
import { Bounds } from '@sheetxl/utils';
|
|
3
|
+
import { ChartPaintKind } from './ChartPaintKind';
|
|
4
|
+
/**
|
|
5
|
+
* A line key: the series' line across the key, with its marker on the middle when it has one
|
|
6
|
+
* (Excel's picture of a scatter's legend; a marker-only series shows the marker alone).
|
|
7
|
+
*/
|
|
8
|
+
export declare const lineLegendKey: (series: ChartLayout.SeriesLayout, key: Bounds, context: ChartPaintKind.Context) => any[];
|
|
9
|
+
export declare const LinePaint: ChartPaintKind;
|
|
10
|
+
//# sourceMappingURL=_Line.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChartLayout } from '@sheetxl/sdk';
|
|
2
|
+
import { Bounds, Point } from '@sheetxl/utils';
|
|
3
|
+
import { ChartPaintKind } from './ChartPaintKind';
|
|
4
|
+
type SliceLayout = ChartLayout.SliceLayout;
|
|
5
|
+
/** A slice and the name its tooltip gives it. */
|
|
6
|
+
export interface NamedSlice {
|
|
7
|
+
slice: SliceLayout;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Slices that go round a pie at `center` as ECharts pies, its ring from `inner` to `outer`. Each
|
|
12
|
+
* slice's value is its span in degrees, so ECharts' share of 360 puts every edge where the layout
|
|
13
|
+
* did. An exploded slice has a center of its own, which a pie series cannot give one slice, so it
|
|
14
|
+
* is drawn by a pie of its own at that center, the rest of that pie's ring left transparent.
|
|
15
|
+
*/
|
|
16
|
+
export declare const piesOf: (id: string, name: string, center: Point, inner: number, outer: number, slices: NamedSlice[], context: ChartPaintKind.Context) => any[];
|
|
17
|
+
/** A swatch of a fill and a line in the key, as a legend entry for one point shows its colors. */
|
|
18
|
+
export declare const swatchKey: (fill: ChartLayout.SliceLayout["fill"] | undefined, stroke: ChartLayout.SliceLayout["stroke"] | null | undefined, key: Bounds, context: ChartPaintKind.Context) => any[];
|
|
19
|
+
export declare const PiePaint: ChartPaintKind;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=_Pie.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartPaintKind } from './ChartPaintKind';
|
|
2
|
+
/**
|
|
3
|
+
* A region map, painted as its layout's placeholder: the label in the plot saying the type is not
|
|
4
|
+
* drawn, and nothing else of the group. A host may register a painter of its own under the type.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PlaceholderPaint: ChartPaintKind;
|
|
7
|
+
//# sourceMappingURL=_Placeholder.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EChartsCoreOption } from 'echarts/core';
|
|
2
|
+
import { ChartLayout } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* How the layout is translated.
|
|
5
|
+
*/
|
|
6
|
+
export interface TranslateOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the chart answers the pointer: tooltips. Off when rendering headless.
|
|
9
|
+
* @defaultValue true
|
|
10
|
+
*/
|
|
11
|
+
interactive?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* How the legend is drawn: by ECharts' `legend` component placed at the layout's rect, which
|
|
14
|
+
* flows the entries itself, or as `graphic` elements at exactly the layout's entry rects.
|
|
15
|
+
* @defaultValue 'graphic'
|
|
16
|
+
*/
|
|
17
|
+
legend?: 'native' | 'graphic';
|
|
18
|
+
/**
|
|
19
|
+
* Whether the chart is drawn as a dark grid draws its cells: each color through `IColor.toRGBA(true)`.
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
darkMode?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* What a chart area that states no fill is filled with, light: the background of where it is
|
|
25
|
+
* drawn. `'transparent'` leaves it to what is behind the chart.
|
|
26
|
+
* @defaultValue '#FFFFFF'
|
|
27
|
+
*/
|
|
28
|
+
background?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Translates a {@link ChartLayout} to an ECharts option.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* A translation table and nothing else: the grid is the plot rect in px with
|
|
35
|
+
* `containLabel:false`; value axes get `min`, `max` and `interval` and a formatter that answers
|
|
36
|
+
* the layout's strings; bars get `barWidth` in px and `barGap` from the overlap; every DrawingML
|
|
37
|
+
* axis is an ECharts axis, a deleted one with `show:false`. Nothing is left for ECharts to decide.
|
|
38
|
+
*/
|
|
39
|
+
export declare function toEChartsOption(layout: ChartLayout, options?: TranslateOptions): EChartsCoreOption;
|
|
40
|
+
/** A concrete color for ECharts: it parses colors, so a CSS variable would not do. */
|
|
41
|
+
export declare const isConcreteColor: (color: string) => boolean;
|
|
42
|
+
//# sourceMappingURL=toEChartsOption.d.ts.map
|
|
@@ -3,12 +3,19 @@ import { Scalar, IFilter } from '@sheetxl/sdk';
|
|
|
3
3
|
import { CheckboxListProps } from '@sheetxl/grid-react';
|
|
4
4
|
/** One value the checklist offers. */
|
|
5
5
|
export interface ValueChecklistItem {
|
|
6
|
-
/** The value as shown, and the identity a check is kept by. */
|
|
6
|
+
/** The value as shown, and the identity a check is kept by unless `key` says otherwise. */
|
|
7
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;
|
|
8
13
|
/** The value the text stands for, when a host needs it back (a filter writes it). */
|
|
9
14
|
value?: Scalar;
|
|
10
15
|
/** How many cells hold it, when the host knows. */
|
|
11
16
|
count?: number;
|
|
17
|
+
/** The `(Blank)` row: a blank is a value, listed last, and shown apart from the texts. */
|
|
18
|
+
blank?: boolean;
|
|
12
19
|
}
|
|
13
20
|
/**
|
|
14
21
|
* Props for {@link ValueChecklist}.
|
|
@@ -23,7 +30,7 @@ export interface ValueChecklistProps {
|
|
|
23
30
|
* it. While a search is typed the dates list flat by their text.
|
|
24
31
|
*/
|
|
25
32
|
dates?: readonly IFilter.DateLevel[];
|
|
26
|
-
/** The checked values, by `text
|
|
33
|
+
/** The checked values, by their key (`text` unless an item gives a `key`). */
|
|
27
34
|
checked: ReadonlySet<string>;
|
|
28
35
|
/**
|
|
29
36
|
* `texts` were set to `checked` — one on a click, the highlighted rows on Space, every row in
|
|
@@ -31,22 +38,37 @@ export interface ValueChecklistProps {
|
|
|
31
38
|
* the search) are never named, so they keep their state.
|
|
32
39
|
*/
|
|
33
40
|
onCheckedChange: (texts: readonly string[], checked: boolean) => void;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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;
|
|
40
55
|
/** The host stopped listing values at its cap: the count says so, the reason in its tooltip. */
|
|
41
56
|
truncated?: boolean;
|
|
42
57
|
/** A search field above the list. @defaultValue true */
|
|
43
58
|
search?: boolean;
|
|
44
|
-
/** Enter in the search field: the host applies. */
|
|
59
|
+
/** Enter in the search field, with nothing to add: the host applies. */
|
|
45
60
|
onApply?: () => void;
|
|
46
61
|
/** Escape with no search text to clear: the host closes. */
|
|
47
62
|
onClose?: () => void;
|
|
48
|
-
/** Take the focus on mount
|
|
63
|
+
/** Take the focus on mount. @defaultValue true */
|
|
49
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';
|
|
50
72
|
/** See `CheckboxListProps.renderCheckbox`: a styled control (MUI) in place of the native one. */
|
|
51
73
|
renderCheckbox?: CheckboxListProps['renderCheckbox'];
|
|
52
74
|
/** Render a value row's label. @defaultValue the text */
|
|
@@ -61,15 +83,22 @@ export interface ValueChecklistProps {
|
|
|
61
83
|
viewport?: CheckboxListProps['viewport'];
|
|
62
84
|
}
|
|
63
85
|
/**
|
|
64
|
-
* A searchable **checklist of values**
|
|
65
|
-
*
|
|
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.
|
|
66
88
|
*
|
|
67
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
|
+
*
|
|
68
96
|
* Reads no cells: the host supplies the items and owns the checked set (by text). The search
|
|
69
|
-
* narrows the VIEW only:
|
|
97
|
+
* narrows the VIEW only: the root acts on the rows in view, rows narrowed away keep their state,
|
|
70
98
|
* and what the host applies is the whole set (Sheets' rule, not Excel's replace-with-results).
|
|
71
|
-
* The
|
|
72
|
-
*
|
|
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.
|
|
73
102
|
*
|
|
74
103
|
* With `dates`, the leading items are listed as a tree (Excel's year › month › day): a node's
|
|
75
104
|
* checkbox is the state of its items, its row toggles them all, and its disclosure (or Left and
|
|
@@ -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
|