@sheetxl/react 0.8.0-beta.7 → 1.0.0
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/2YDUWXaXpl9cdsk7.mjs +8 -0
- package/browser/esm/64NfoZ1s7Oe3vdpX.mjs +60 -0
- package/browser/esm/BJDz5J4gFUEYi1Wz.mjs +36 -0
- package/browser/esm/B_CI6xMNropeWGgr.mjs +134 -0
- package/browser/esm/BgA4Cz8iMysciFOb.mjs +45 -0
- package/browser/esm/BkG6VuJDmu_hfIo6.mjs +31 -0
- package/browser/esm/BmO7yh4NjxeJylOD.mjs +14092 -0
- package/browser/esm/BwFFSeqtE3TIuvtc.mjs +341 -0
- package/browser/esm/CENTtj0PnF_tvpST.mjs +79 -0
- package/browser/esm/CVY0-_x6IgpdUVNp.mjs +264 -0
- package/browser/esm/CdyivRoMgPXvRiiE.mjs +197 -0
- package/browser/esm/CiylJlRA7mt8yjPD.mjs +128 -0
- package/browser/esm/D9CTIGFUbVGJkeVE.mjs +401 -0
- package/browser/esm/D9NgFucLwPgAQNgf.mjs +19 -0
- package/browser/esm/DdFOaG09eksHtKwT.mjs +145 -0
- package/browser/esm/DdHdNjRkzo1iShOo.mjs +78 -0
- package/browser/esm/DfIvpHB7HDdmIYNm.mjs +9560 -0
- package/browser/esm/DfNDtzixfTPjmoW_.mjs +32 -0
- package/browser/esm/Dtb9bOBjtPdUAr8x.mjs +20 -0
- package/browser/esm/Dz5pGpL4XWXVdntj.mjs +323 -0
- package/browser/esm/SJAlYSFKC-5yNZ-C.mjs +2706 -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 +22289 -13986
- package/browser/esm/jHqSboF5oFvzSM7a.mjs +63 -0
- package/browser/esm/note.mjs +112 -0
- package/browser/esm/oljQE8EpIzoxUjUz.mjs +323 -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/w8MsScJSe7QxP6jL.mjs +67 -0
- package/browser/esm/yRqWQRSVyiR1kYh8.mjs +42 -0
- package/licenses/dependencies.txt +284 -565
- package/node/esm/1XOgrNXKQF__O9SV.mjs +8 -0
- package/node/esm/Aw6aaKE_YOA1Vi_V.mjs +146 -0
- package/node/esm/B6Oqu2Gw1pwWPf_N.mjs +328 -0
- package/node/esm/BizlElAhqg_Bc624.mjs +198 -0
- package/node/esm/C06Y1xPsbxgn3YX7.mjs +128 -0
- package/node/esm/C2dHN_gvhBxlFFnJ.mjs +45 -0
- package/node/esm/C4_5UcCdys1hzt5E.mjs +68 -0
- package/node/esm/CIidiDtqyubz13ys.mjs +80 -0
- package/node/esm/CTFb8PjwC1q6yilw.mjs +80 -0
- package/node/esm/C_GJPG-BTFhta8GD.mjs +265 -0
- package/node/esm/CdTeYrDgGp-s-KNG.mjs +134 -0
- package/node/esm/CeMKhq6cSxfWzN5H.mjs +2706 -0
- package/node/esm/DJIBAu8bEDmlVjtD.mjs +20 -0
- package/node/esm/DUQ1PY9P63cTe_Es.mjs +37 -0
- package/node/esm/Db8NRp_kZ-FfkZaO.mjs +32 -0
- package/node/esm/Dl2kdvb4G_ddqeDN.mjs +19 -0
- package/node/esm/DlDr-o5nAZgPbn6R.mjs +1697 -0
- package/node/esm/DvRLP1lEBfwHBrEC.mjs +63 -0
- package/node/esm/JVlPlE1ys7DM3yCP.mjs +35 -0
- package/node/esm/NSddS40Vqf1xKdDd.mjs +406 -0
- package/node/esm/QqwCS9GFuDnQausz.mjs +66 -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 +18027 -9614
- package/node/esm/note.mjs +113 -0
- package/node/esm/picture.mjs +326 -0
- package/node/esm/shape.mjs +342 -0
- package/node/esm/slicer.mjs +284 -0
- package/package.json +56 -15
- 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 +270 -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 +358 -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 +283 -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 +360 -2
- 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 +123 -0
- 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 +10 -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 +59 -18
- 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 +22 -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 +101 -3
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +10 -1
- 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 +10 -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 +40 -0
- 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 +15 -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 +38 -0
- package/types/src/movable/MovableAdornment.d.ts +26 -0
- 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 +80 -0
- package/types/src/movable/MovableFrame.d.ts +18 -16
- package/types/src/movable/MovableLayer.d.ts +30 -5
- package/types/src/movable/MovableRenderers.d.ts +210 -0
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +37 -0
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +72 -0
- package/types/src/movable/geometry.d.ts +61 -0
- package/types/src/movable/index.d.ts +9 -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 +15 -2
- package/types/src/shape/ShapeGallery.d.ts +31 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +22 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -1
- package/types/src/shape/shapeFrame.d.ts +50 -0
- package/types/src/shape/shapeStyle.d.ts +82 -0
- package/types/src/sheet/ISheetHeaderElement.d.ts +3 -3
- package/types/src/sheet/IWorksheetElement.d.ts +289 -0
- 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 +70 -0
- package/types/src/sheet/SheetPanels.d.ts +11 -0
- package/types/src/sheet/SheetScrollbar.d.ts +4 -13
- package/types/src/sheet/TopLeftCorner.d.ts +2 -2
- package/types/src/sheet/WorksheetElement.d.ts +12 -0
- package/types/src/sheet/_freezeAt.d.ts +10 -0
- package/types/src/sheet/_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 +20 -0
- 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/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/cjs/index.cjs +0 -42
- package/browser/esm/CwXbsCWTrl3QB1t6.mjs +0 -6286
- package/node/esm/CZc8rKcLzArmqJz2.mjs +0 -9
- 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/movable/MoveableBundle.d.ts +0 -4
- package/types/src/sheet/ISheetElement.d.ts +0 -258
- package/types/src/sheet/SheetElement.d.ts +0 -15
|
@@ -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
|
|
@@ -19,16 +19,24 @@ export interface TaskPaneEntry {
|
|
|
19
19
|
*/
|
|
20
20
|
readonly contributionPoints?: string[];
|
|
21
21
|
/**
|
|
22
|
-
* The title to display to identify the task pane.
|
|
22
|
+
* The title to display to identify the task pane. Call `t()` here to translate it.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Omit it to use the label of the command catalog record that shares the pane's key, which is
|
|
26
|
+
* translated with the rest of the chrome. With neither, the title is the key.
|
|
27
|
+
*
|
|
28
|
+
* @param catalogTitle That record's label, if there is one, for a title that adjusts it.
|
|
23
29
|
*/
|
|
24
|
-
getTitle(): string;
|
|
30
|
+
getTitle?(catalogTitle: string | undefined): string;
|
|
25
31
|
/**
|
|
26
|
-
* The icon to display to identify the task pane.
|
|
32
|
+
* The icon to display to identify the task pane: an icon key or a React element.
|
|
27
33
|
*
|
|
28
34
|
* @remarks
|
|
29
|
-
*
|
|
35
|
+
* Omit it to use the icon of the command catalog record that shares the pane's key.
|
|
36
|
+
*
|
|
37
|
+
* @param catalogIcon That record's icon key, if there is one.
|
|
30
38
|
*/
|
|
31
|
-
getIcon?(): React.ReactElement | string | undefined;
|
|
39
|
+
getIcon?(catalogIcon: string | undefined): React.ReactElement | string | undefined;
|
|
32
40
|
/**
|
|
33
41
|
* The task pane component.
|
|
34
42
|
*
|
|
@@ -67,13 +75,25 @@ export interface TaskPaneEntry {
|
|
|
67
75
|
*/
|
|
68
76
|
componentCommandButton?: React.ComponentType<CommandButtonProps>;
|
|
69
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* A registered task pane, as {@link ITaskPaneRegistry} returns it: its title and icon resolved from
|
|
80
|
+
* the entry, else from the command catalog.
|
|
81
|
+
*/
|
|
82
|
+
export interface ResolvedTaskPaneEntry extends Omit<TaskPaneEntry, 'getTitle' | 'getIcon'> {
|
|
83
|
+
/** The title to show: the entry's, else its catalog record's label, else the key. */
|
|
84
|
+
getTitle(): string;
|
|
85
|
+
/** The icon to show: the entry's, else its catalog record's icon. */
|
|
86
|
+
getIcon(): React.ReactElement | string | undefined;
|
|
87
|
+
}
|
|
70
88
|
export interface ITaskPaneRegistry {
|
|
71
89
|
/**
|
|
72
90
|
* Registers a task pane container.
|
|
73
91
|
* @param entry The task pane entry.
|
|
74
92
|
* @param replace Whether to replace an existing task pane. Default is false.
|
|
93
|
+
* @returns A function that removes this registration. It does nothing once the key is unregistered
|
|
94
|
+
* or registered again by someone else.
|
|
75
95
|
*/
|
|
76
|
-
registerTaskPane(entry: TaskPaneEntry, replace?: boolean): void;
|
|
96
|
+
registerTaskPane(entry: TaskPaneEntry, replace?: boolean): () => void;
|
|
77
97
|
/**
|
|
78
98
|
* Unregister a task pane container.
|
|
79
99
|
*
|
|
@@ -86,22 +106,22 @@ export interface ITaskPaneRegistry {
|
|
|
86
106
|
* @param key The unique key for the task pane.
|
|
87
107
|
* @returns The registered task pane or null if not found.
|
|
88
108
|
*/
|
|
89
|
-
getRegisteredTaskPane(key: string):
|
|
109
|
+
getRegisteredTaskPane(key: string): ResolvedTaskPaneEntry | null;
|
|
90
110
|
/**
|
|
91
111
|
* Finds contributions for a specific entry.
|
|
92
112
|
* @param contributionKey
|
|
93
113
|
*/
|
|
94
|
-
findContributions(contributionKey: string):
|
|
114
|
+
findContributions(contributionKey: string): ResolvedTaskPaneEntry[];
|
|
95
115
|
}
|
|
96
116
|
declare class TaskPaneRegistry implements ITaskPaneRegistry {
|
|
97
|
-
protected _taskPanes: Map<string,
|
|
117
|
+
protected _taskPanes: Map<string, ResolvedTaskPaneEntry>;
|
|
98
118
|
/** @inheritdoc ITaskPaneRegistry.registerTaskPane */
|
|
99
|
-
registerTaskPane(entry: TaskPaneEntry, replace?: boolean): void;
|
|
119
|
+
registerTaskPane(entry: TaskPaneEntry, replace?: boolean): () => void;
|
|
100
120
|
/** @inheritdoc ITaskPaneRegistry.unregisterTaskPane */
|
|
101
121
|
unregisterTaskPane(key: string): void;
|
|
102
122
|
/** @inheritdoc ITaskPaneRegistry.getRegisteredTaskPane */
|
|
103
|
-
getRegisteredTaskPane(key: string):
|
|
104
|
-
findContributions(contributionKey: string):
|
|
123
|
+
getRegisteredTaskPane(key: string): ResolvedTaskPaneEntry | null;
|
|
124
|
+
findContributions(contributionKey: string): ResolvedTaskPaneEntry[];
|
|
105
125
|
}
|
|
106
126
|
export declare const DefaultTaskPaneRegistry: TaskPaneRegistry;
|
|
107
127
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ITaskPaneArea } from './TaskPaneArea';
|
|
2
|
+
/**
|
|
3
|
+
* The reason a command that opens the pane `key` is disabled: there is no task pane area, or no pane
|
|
4
|
+
* registered under `key`. Empty when the pane can be shown.
|
|
5
|
+
*/
|
|
6
|
+
export declare const noTaskPaneReasons: (taskPaneArea: ITaskPaneArea | undefined, key: string) => string[];
|
|
7
|
+
//# sourceMappingURL=_paneReasons.d.ts.map
|
|
@@ -4,4 +4,7 @@ export * from './TaskPaneArea';
|
|
|
4
4
|
export * from './TaskPaneTitle';
|
|
5
5
|
export * from './TaskPaneStrip';
|
|
6
6
|
export * from './TaskPaneRegistry';
|
|
7
|
+
export * from './TaskPaneKeys';
|
|
8
|
+
export * from './MovablePane';
|
|
9
|
+
export * from './CellControlPane';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { RenderSlotFn } from '@sheetxl/utils-react';
|
|
3
|
+
import { ITaskPaneArea, TaskPaneAreaProps } from './TaskPaneArea';
|
|
3
4
|
import { ITaskPaneRegistry } from './TaskPaneRegistry';
|
|
4
5
|
/**
|
|
5
6
|
* Context provider for task panes. Allows custom task pane manager
|
|
@@ -16,8 +17,10 @@ import { ITaskPaneRegistry } from './TaskPaneRegistry';
|
|
|
16
17
|
*/
|
|
17
18
|
export interface TaskPaneProviderProps {
|
|
18
19
|
children: React.ReactNode;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
/** Render the area. Pass `props.ref` on to the {@link ITaskPaneAreaElement}. */
|
|
21
|
+
renderArea: RenderSlotFn<TaskPaneAreaProps>;
|
|
22
|
+
/** The area to mount, or `null` once it closes. */
|
|
23
|
+
onUpdateArea: (area: React.ReactElement | null) => void;
|
|
21
24
|
registry?: ITaskPaneRegistry;
|
|
22
25
|
}
|
|
23
26
|
export declare const TaskPaneProvider: React.FC<TaskPaneProviderProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TokenTheme, ThemeMode } from '@sheetxl/utils-react';
|
|
2
|
+
/** The surfaces a host can address: the `data-sxl-theme-surface` values a workbook introduces. */
|
|
3
|
+
export type ExplicitSurface = 'app' | 'header' | 'grid';
|
|
4
|
+
/**
|
|
5
|
+
* Token values a host states, addressed by **cell**: a `(mode × surface)` pair, so a host can name the
|
|
6
|
+
* header paper without a new token existing.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* {
|
|
10
|
+
* dark: {
|
|
11
|
+
* app: { 'color-base-100': '#14102c', 'color-base-200': '#14102c', 'color-primary': '#6e9bff' },
|
|
12
|
+
* header: { 'color-base-100': '#1a1538', 'color-base-300': '#312b55' }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export type ExplicitTokens = Partial<Record<ThemeMode, Partial<Record<ExplicitSurface, Partial<TokenTheme>>>>>;
|
|
18
|
+
//# sourceMappingURL=ExplicitTokens.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ThemeMode } from '@sheetxl/utils-react';
|
|
2
|
+
/**
|
|
3
|
+
* The resolved grid scheme of the nearest enclosing workbook or worksheet element, so content drawn
|
|
4
|
+
* inside the grid (charts, cell renderers, sheet tabs) follows a host's `gridColorScheme` rather than
|
|
5
|
+
* the shared preference. `null` outside any grid.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GridColorSchemeContext: import('react').Context<ThemeMode | null>;
|
|
8
|
+
//# sourceMappingURL=GridColorSchemeContext.d.ts.map
|