@sheetxl/react 0.8.0-beta.1 → 0.8.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/1-LEUre9ZLG0OYYB.mjs +197 -0
- package/browser/esm/94dxo1A-z8lgiiGw.mjs +128 -0
- package/browser/esm/B26QVfjer2oY2ewK.mjs +32 -0
- package/browser/esm/B93LSmhnvkxNXTq-.mjs +42 -0
- package/browser/esm/BQYS2Yf-EAV_tBLr.mjs +20 -0
- package/{node/esm/DAE_NG8D9uT50zUH.mjs → browser/esm/BegvsXeRs7e-9t8k.mjs} +3 -4
- package/browser/esm/Bl2BFCQ00fotauKB.mjs +36 -0
- package/browser/esm/Bos4Rkp8UTF7QXUB.mjs +31 -0
- package/browser/esm/C1pc9F4Rt2C5FKUo.mjs +45 -0
- package/browser/esm/CPnnESfZz2jjJd82.mjs +134 -0
- package/browser/esm/CRi6DQ3UXmPEv-w_.mjs +729 -0
- package/browser/esm/ClAtIfYbsUPA073B.mjs +2706 -0
- package/browser/esm/CzRIbc-Lk__VMLKM.mjs +60 -0
- package/browser/esm/D2u6THGErqw64KQI.mjs +63 -0
- package/browser/esm/DMdsMPT0fWBbTkNn.mjs +67 -0
- package/browser/esm/DS66lAIM-9M-YoZQ.mjs +315 -0
- package/browser/esm/DgL7Dy-Lqcr1TvW6.mjs +23528 -0
- package/browser/esm/Dnh1kpz3v1JKtRD_.mjs +79 -0
- package/browser/esm/cQ6xdPFkEcuDlNTN.mjs +75 -0
- package/browser/esm/chart.mjs +40 -0
- package/browser/esm/control.mjs +216 -0
- package/browser/esm/group.mjs +123 -0
- package/browser/esm/index.mjs +15460 -8762
- package/browser/esm/note.mjs +112 -0
- package/browser/esm/picture.mjs +86 -0
- package/browser/esm/shape.mjs +7 -0
- package/browser/esm/slicer.mjs +276 -0
- package/browser/esm/ugfE7YeZALQURDKF.mjs +241 -0
- package/licenses/dependencies.txt +319 -600
- package/node/esm/6zApGj9DozhFy-bx.mjs +35 -0
- package/node/esm/BMVK5plvmBOAIlxP.mjs +80 -0
- package/node/esm/BaRfst1euuhquupX.mjs +66 -0
- package/node/esm/Be9c1GwQkPo8Piuh.mjs +134 -0
- package/node/esm/BiaDWnN3tT7neoRL.mjs +68 -0
- package/node/esm/BlxXufqBBg1PtsXd.mjs +8 -0
- package/node/esm/C_SNx7TlFEcwbYjx.mjs +2706 -0
- package/node/esm/DJPgbB1X22YmhbaR.mjs +242 -0
- package/node/esm/DTMTIrYIK1eZswsM.mjs +37 -0
- package/node/esm/D_pCpfdQowV_4Aje.mjs +198 -0
- package/node/esm/DgGEHydEjD7nfsDB.mjs +76 -0
- package/node/esm/Dj5FM7_-YWhCtCCt.mjs +45 -0
- package/node/esm/DxQZmb-j4NLUO9Af.mjs +63 -0
- package/node/esm/JiQGhLkoL8CJpVvA.mjs +20 -0
- package/node/esm/b-XRVRI1fYQQMkTC.mjs +1664 -0
- package/node/esm/chart.mjs +40 -0
- package/node/esm/control.mjs +216 -0
- package/node/esm/gpD-9LDW92phhoma.mjs +32 -0
- package/node/esm/group.mjs +123 -0
- package/node/esm/index.mjs +15830 -8966
- package/node/esm/note.mjs +113 -0
- package/node/esm/picture.mjs +86 -0
- package/node/esm/shape.mjs +735 -0
- package/node/esm/sigD1UFqvPlWUw_9.mjs +128 -0
- package/node/esm/slicer.mjs +278 -0
- package/node/esm/umljAT66yb3_rURh.mjs +320 -0
- package/package.json +55 -14
- package/resources/contents.json +24 -0
- package/resources/locales/contents.json +56 -0
- package/resources/locales/de/chart.cmd.json +82 -0
- package/resources/locales/de/movable.cmd.json +154 -0
- package/resources/locales/de/picture.cmd.json +31 -0
- package/resources/locales/de/selection.cmd.json +8 -0
- package/resources/locales/de/shape.cmd.json +17 -0
- package/resources/locales/de/sheet.cmd.json +339 -21
- package/resources/locales/de/slicer.cmd.json +17 -0
- package/resources/locales/de/table.cmd.json +9 -1
- package/resources/locales/de/ui.msg.json +321 -3
- package/resources/locales/de/workbook.cmd.json +15 -6
- package/resources/locales/en/chart.cmd.json +82 -0
- package/resources/locales/en/movable.cmd.json +154 -0
- package/resources/locales/en/picture.cmd.json +31 -0
- package/resources/locales/en/selection.cmd.json +8 -0
- package/resources/locales/en/shape.cmd.json +17 -0
- package/resources/locales/en/sheet.cmd.json +353 -22
- package/resources/locales/en/slicer.cmd.json +17 -0
- package/resources/locales/en/table.cmd.json +9 -1
- package/resources/locales/en/ui.msg.json +321 -3
- package/resources/locales/en/workbook.cmd.json +16 -7
- package/types/chart.d.ts +2 -0
- package/types/control.d.ts +2 -0
- package/types/group.d.ts +2 -0
- package/types/note.d.ts +2 -0
- package/types/picture.d.ts +2 -0
- package/types/shape.d.ts +2 -0
- package/types/slicer.d.ts +2 -0
- package/types/src/annotation/RangeAnnotations.d.ts +119 -0
- package/types/src/annotation/index.d.ts +2 -0
- package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
- package/types/src/autoFill/FillMenu.d.ts +36 -0
- package/types/src/autoFill/FillSeries.d.ts +38 -0
- package/types/src/autoFill/index.d.ts +4 -0
- package/types/src/border/StaticBorderRenderer.d.ts +19 -2
- package/types/src/border/useBorders.d.ts +81 -8
- package/types/src/cell/CornerTriangle.d.ts +6 -0
- package/types/src/cell/FormulaCellRenderer.d.ts +6 -3
- package/types/src/cell/OutlineButton.d.ts +123 -0
- package/types/src/cell/SheetCellRenderer.d.ts +2 -2
- package/types/src/cell/SheetHeaderRenderer.d.ts +5 -0
- package/types/src/cell/StaticCellRenderer.d.ts +57 -0
- package/types/src/cell/index.d.ts +2 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
- package/types/src/chart/ChartCommands.d.ts +15 -0
- package/types/src/chart/ChartEditor.d.ts +10 -2
- package/types/src/chart/ChartElement.d.ts +111 -0
- package/types/src/chart/ChartKind.d.ts +7 -0
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
- package/types/src/chart/index.d.ts +2 -1
- package/types/src/chart/paint/_fills.d.ts +24 -0
- package/types/src/chart/paint/_graphics.d.ts +46 -0
- package/types/src/chart/paint/echarts.d.ts +30 -0
- package/types/src/chart/paint/index.d.ts +12 -0
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +132 -0
- package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
- package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
- package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
- package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
- package/types/src/chart/paint/kinds/_builtIns.d.ts +12 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +31 -0
- package/types/src/checklist/ValueChecklist.d.ts +112 -0
- package/types/src/checklist/index.d.ts +2 -0
- package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
- package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
- package/types/src/commands/ContextualToolbar.d.ts +19 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
- package/types/src/commands/index.d.ts +1 -0
- package/types/src/comment/CommentCardRequest.d.ts +94 -0
- package/types/src/comment/CommentUtils.d.ts +43 -0
- package/types/src/comment/NoteEditor.d.ts +20 -0
- package/types/src/comment/index.d.ts +5 -0
- package/types/src/comment/useCommentThread.d.ts +37 -0
- package/types/src/comment/useSheetComments.d.ts +28 -0
- package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +6 -6
- package/types/src/conditionalFormat/index.d.ts +1 -0
- package/types/src/context/WorksheetContext.d.ts +18 -0
- package/types/src/context/index.d.ts +1 -1
- package/types/src/control/FormControlRenderers.d.ts +22 -0
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/editor/FunctionPreviewPanel.d.ts +15 -1
- package/types/src/editor/NamedItemLabel.d.ts +29 -0
- package/types/src/editor/NamedItemsPanel.d.ts +13 -2
- package/types/src/editor/SheetCellEditorLayer.d.ts +5 -9
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +61 -0
- package/types/src/editor/SheetCellInput.d.ts +26 -2
- package/types/src/editor/SheetEditable.d.ts +14 -8
- package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
- package/types/src/editor/VirtualKeyboardLayer.d.ts +49 -0
- package/types/src/editor/formulaAnchor.d.ts +12 -0
- package/types/src/editor/formulaCaret.d.ts +39 -10
- package/types/src/editor/formulaEval.d.ts +9 -5
- package/types/src/editor/formulaLint.d.ts +36 -0
- package/types/src/editor/formulaPresentation.d.ts +7 -0
- package/types/src/editor/formulaText.d.ts +17 -5
- package/types/src/editor/functionArgs.d.ts +20 -0
- package/types/src/editor/index.d.ts +5 -1
- package/types/src/editor/pickedReference.d.ts +76 -0
- package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
- package/types/src/editor/useFormulaHints.d.ts +95 -5
- package/types/src/editor/useFormulaInput.d.ts +30 -4
- package/types/src/editor/useReferenceMode.d.ts +12 -0
- package/types/src/editor/validationAlert.d.ts +24 -0
- package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
- package/types/src/externalLink/index.d.ts +2 -0
- package/types/src/form/FormulaInput.d.ts +18 -2
- package/types/src/form/FormulaInputParts.d.ts +10 -1
- package/types/src/form/useEditCommit.d.ts +23 -3
- package/types/src/form/useInputField.d.ts +2 -3
- package/types/src/frame/CommandContext.d.ts +189 -7
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +14 -2
- package/types/src/io/WorkbookIO.d.ts +2 -0
- package/types/src/layer/BorderLayer.d.ts +2 -2
- package/types/src/layer/CellErrorLayer.d.ts +26 -9
- package/types/src/layer/CellFillLayer.d.ts +2 -2
- package/types/src/layer/CellInsertLayer.d.ts +71 -0
- package/types/src/layer/CircularIndicatorLayer.d.ts +2 -2
- package/types/src/layer/CommentCardLayer.d.ts +43 -0
- package/types/src/layer/CommentsLayer.d.ts +35 -0
- package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
- package/types/src/layer/ConditionalIcons.d.ts +4 -4
- package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
- package/types/src/layer/ContextMenuLayer.d.ts +2 -2
- package/types/src/layer/FreezeDragLines.d.ts +17 -0
- package/types/src/layer/GridFreezeLayer.d.ts +11 -0
- package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
- package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
- package/types/src/layer/HyperlinkLayer.d.ts +109 -0
- package/types/src/layer/MovableKindScope.d.ts +17 -0
- package/types/src/layer/ProtectionLayer.d.ts +52 -0
- package/types/src/layer/RangeAnnotationLayer.d.ts +71 -0
- package/types/src/layer/ResizeIndicator.d.ts +11 -10
- package/types/src/layer/ResizeTooltip.d.ts +13 -0
- package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
- package/types/src/layer/SheetCellLayer.d.ts +4 -4
- package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
- package/types/src/layer/SheetGridLineLayer.d.ts +11 -13
- package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
- package/types/src/layer/SheetLayers.d.ts +115 -0
- package/types/src/layer/SheetMovableLayer.d.ts +2 -2
- package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
- package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
- package/types/src/layer/SpillLayer.d.ts +2 -2
- package/types/src/layer/TableLayer.d.ts +6 -5
- package/types/src/layer/TableToolbar.d.ts +42 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +17 -7
- package/types/src/layer/ValidationIndicatorLayer.d.ts +11 -5
- package/types/src/layer/ValidationPromptLayer.d.ts +65 -0
- package/types/src/layer/_tableColor.d.ts +4 -0
- package/types/src/layer/cellTip.d.ts +13 -0
- package/types/src/layer/freezeDragState.d.ts +21 -0
- package/types/src/layer/index.d.ts +14 -1
- package/types/src/layer/resizeIndicatorState.d.ts +3 -1
- package/types/src/layer/useFreezeDrag.d.ts +22 -0
- package/types/src/layer/useNormalBorderLines.d.ts +15 -0
- package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
- package/types/src/layer/useSheetVisibleCells.d.ts +2 -2
- package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
- package/types/src/layer/useTableHeaderCells.d.ts +2 -2
- package/types/src/layer/useValidationPicker.d.ts +37 -37
- package/types/src/layer/useVisibleTables.d.ts +2 -2
- package/types/src/layer/validationMark.d.ts +63 -0
- package/types/src/listener/index.d.ts +5 -0
- package/types/src/listener/useCell.d.ts +29 -0
- package/types/src/listener/useCellRange.d.ts +23 -0
- package/types/src/listener/useCellValue.d.ts +26 -0
- package/types/src/listener/useModelListener.d.ts +8 -8
- package/types/src/listener/useRangeSnapshot.d.ts +35 -0
- package/types/src/listener/useTable.d.ts +26 -0
- package/types/src/movable/ConnectionSites.d.ts +18 -0
- package/types/src/movable/DefaultMovable.d.ts +8 -0
- package/types/src/movable/IMovableArea.d.ts +56 -0
- package/types/src/movable/MovableAdornment.d.ts +26 -0
- package/types/src/movable/MovableCommandGroups.d.ts +40 -0
- package/types/src/movable/MovableCommands.d.ts +8 -3
- package/types/src/movable/MovableControl.d.ts +78 -0
- package/types/src/movable/MovableEdit.d.ts +22 -0
- package/types/src/movable/MovableFrame.d.ts +16 -13
- package/types/src/movable/MovableLayer.d.ts +25 -7
- package/types/src/movable/MovableRenderers.d.ts +210 -0
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +37 -0
- package/types/src/movable/TextBox.d.ts +34 -0
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +72 -0
- package/types/src/movable/geometry.d.ts +61 -0
- package/types/src/movable/index.d.ts +11 -0
- package/types/src/movable/pressTarget.d.ts +20 -0
- package/types/src/picker/PickerPanel.d.ts +52 -0
- package/types/src/picker/cellPickerOpen.d.ts +6 -0
- package/types/src/picker/index.d.ts +4 -0
- package/types/src/picker/useCellPicker.d.ts +95 -0
- package/types/src/picture/PictureCommands.d.ts +12 -0
- package/types/src/picture/PictureKind.d.ts +7 -0
- package/types/src/picture/index.d.ts +0 -1
- package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
- package/types/src/richText/RichTextEditor.d.ts +41 -0
- package/types/src/richText/index.d.ts +2 -0
- package/types/src/selection/SelectionCommands.d.ts +2 -2
- package/types/src/selection/SheetSelectionLayer.d.ts +16 -12
- package/types/src/shape/ConnectorControl.d.ts +46 -0
- package/types/src/shape/ShapeCommands.d.ts +11 -0
- package/types/src/shape/ShapeControl.d.ts +8 -0
- package/types/src/shape/ShapeEditor.d.ts +15 -2
- package/types/src/shape/ShapeGallery.d.ts +31 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +22 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -1
- package/types/src/shape/shapeFrame.d.ts +50 -0
- package/types/src/shape/shapeStyle.d.ts +82 -0
- package/types/src/sheet/ISheetHeaderElement.d.ts +1 -1
- package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +107 -77
- package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +11 -6
- package/types/src/sheet/SheetCommands.d.ts +22 -7
- package/types/src/sheet/SheetKindIcon.d.ts +14 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
- package/types/src/sheet/SheetPanels.d.ts +11 -0
- package/types/src/sheet/SheetScrollbar.d.ts +4 -13
- package/types/src/sheet/TopLeftCorner.d.ts +2 -2
- package/types/src/sheet/WorksheetElement.d.ts +12 -0
- package/types/src/sheet/_freezeAt.d.ts +10 -0
- package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
- package/types/src/sheet/circularReferences.d.ts +12 -4
- package/types/src/sheet/index.d.ts +6 -3
- package/types/src/sheet/useCycleHighlight.d.ts +21 -0
- package/types/src/slicer/SlicerCommands.d.ts +10 -0
- package/types/src/slicer/SlicerEditor.d.ts +8 -2
- package/types/src/slicer/SlicerKind.d.ts +7 -0
- package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
- package/types/src/slicer/index.d.ts +2 -1
- package/types/src/slicer/slicerStyles.d.ts +32 -0
- package/types/src/tabStrip/SheetTab.d.ts +1 -1
- package/types/src/tabStrip/TabStrip.d.ts +7 -0
- package/types/src/table/TableCommands.d.ts +2 -2
- package/types/src/taskPane/ITaskPane.d.ts +12 -1
- package/types/src/taskPane/MovablePane.d.ts +17 -0
- package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/theme/ThemeState.d.ts +14 -1
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
- package/types/src/theme/useGridColorScheme.d.ts +2 -2
- package/types/src/theme/useSystemColors.d.ts +2 -2
- package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
- package/types/src/workbook/DefaultRenderers.d.ts +3 -2
- package/types/src/workbook/IWorkbookElement.d.ts +51 -5
- package/types/src/workbook/WorkbookCommands.d.ts +2 -4
- package/types/src/workbook/WorkbookStrip.d.ts +9 -0
- package/types/src/workbook/_followOrigin.d.ts +9 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/cjs/index.cjs +0 -35
- package/browser/esm/SJMJzBwlXTJ9QIO5.mjs +0 -6286
- package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-template.json.d.ts +0 -9
- package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-template.json.d.ts +0 -9
- package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-template.json.d.ts +0 -9
- package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-template.json.d.ts +0 -9
- package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
- package/types/src/chart/templates/pie-template.json.d.ts +0 -9
- package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
- package/types/src/context/SheetContext.d.ts +0 -18
- package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
- package/types/src/layer/validationList.d.ts +0 -84
- package/types/src/list/SheetValueList.d.ts +0 -93
- package/types/src/list/index.d.ts +0 -2
- package/types/src/movable/MoveableBundle.d.ts +0 -4
- package/types/src/sheet/SheetElement.d.ts +0 -15
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
var t, e = /* @__PURE__ */ new Map(), n = !1;
|
|
8
|
+
function r(t) {
|
|
9
|
+
for (const n of t.types) e.set(n, t);
|
|
10
|
+
return () => {
|
|
11
|
+
for (const n of t.types) e.get(n) === t && e.delete(n);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
(function(t) {
|
|
15
|
+
function o(t) {
|
|
16
|
+
return "custom" === t.type ? `custom:${t.kind}` : t.type;
|
|
17
|
+
}
|
|
18
|
+
t.register = function(t) {
|
|
19
|
+
return r(t);
|
|
20
|
+
}, t.get = function(t) {
|
|
21
|
+
return e.get(t);
|
|
22
|
+
}, t.has = function(t) {
|
|
23
|
+
return e.has(t);
|
|
24
|
+
}, t.getTypes = function() {
|
|
25
|
+
return [...e.keys()];
|
|
26
|
+
}, t.typeOf = o, t.of = function(t) {
|
|
27
|
+
return e.get(o(t));
|
|
28
|
+
}, t.registerBuiltIns = function(t) {
|
|
29
|
+
n || (n = !0, t((t) => r({
|
|
30
|
+
...t,
|
|
31
|
+
types: t.types.filter((t) => !e.has(t))
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
})(t || (t = {}));
|
|
35
|
+
export { t };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { forwardRef as t, memo as e, useMemo as n, useRef as o } from "react";
|
|
8
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
9
|
+
import { useMergeRefs as i } from "react-merge-refs";
|
|
10
|
+
var l = "data-run", s = (t) => "string" == typeof t ? t ? [{ text: t }] : [] : t.runs ?? [], a = (t) => {
|
|
11
|
+
if (3 === t.nodeType) return t.nodeValue ?? "";
|
|
12
|
+
if (1 !== t.nodeType) return "";
|
|
13
|
+
if ("br" === t.localName) return "\n";
|
|
14
|
+
let e = "";
|
|
15
|
+
const n = t.childNodes;
|
|
16
|
+
for (let t = 0; t < n.length; t++) e += a(n[t]);
|
|
17
|
+
return e;
|
|
18
|
+
}, u = e(t((t, e) => {
|
|
19
|
+
const { value: u, onChange: p, onDone: c, readOnly: d = !1, runStyle: f, style: y, onKeyDown: g, onBlur: h, ...x } = t, m = o(null), v = n(() => s(u), [u]), b = n(() => JSON.stringify(u), [u]), w = () => {
|
|
20
|
+
const t = m.current;
|
|
21
|
+
if (!t || d) return;
|
|
22
|
+
const e = ((t, e) => {
|
|
23
|
+
const n = [], o = t.childNodes;
|
|
24
|
+
for (let t = 0; t < o.length; t++) {
|
|
25
|
+
const r = o[t], i = a(r);
|
|
26
|
+
if (!i) continue;
|
|
27
|
+
const s = 1 === r.nodeType ? r.getAttribute(l) : null;
|
|
28
|
+
if (null !== s) {
|
|
29
|
+
const t = e[parseInt(s, 10)]?.font;
|
|
30
|
+
n.push(t ? {
|
|
31
|
+
text: i,
|
|
32
|
+
font: t
|
|
33
|
+
} : { text: i });
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const u = n[n.length - 1];
|
|
37
|
+
u ? u.text += i : n.push({ text: i });
|
|
38
|
+
}
|
|
39
|
+
return n.every((t) => !t.font) ? n.map((t) => t.text).join("") : { runs: n };
|
|
40
|
+
})(t, v);
|
|
41
|
+
JSON.stringify(s(e)) !== JSON.stringify(v) && p?.(e);
|
|
42
|
+
}, N = (t) => {
|
|
43
|
+
t.stopPropagation();
|
|
44
|
+
}, S = i([m, e]);
|
|
45
|
+
return r("div", {
|
|
46
|
+
ref: S,
|
|
47
|
+
contentEditable: !d && "plaintext-only",
|
|
48
|
+
suppressContentEditableWarning: !0,
|
|
49
|
+
spellCheck: !1,
|
|
50
|
+
...x,
|
|
51
|
+
style: {
|
|
52
|
+
width: "100%",
|
|
53
|
+
minHeight: "100%",
|
|
54
|
+
boxSizing: "border-box",
|
|
55
|
+
outline: "none",
|
|
56
|
+
whiteSpace: "pre-wrap",
|
|
57
|
+
overflowWrap: "break-word",
|
|
58
|
+
userSelect: "text",
|
|
59
|
+
cursor: d ? void 0 : "text",
|
|
60
|
+
...y
|
|
61
|
+
},
|
|
62
|
+
onKeyDown: (t) => {
|
|
63
|
+
g?.(t), d || (t.stopPropagation(), "Escape" === t.key && (t.preventDefault(), t.currentTarget.blur(), c?.()));
|
|
64
|
+
},
|
|
65
|
+
onKeyUp: d ? void 0 : N,
|
|
66
|
+
onCopy: d ? void 0 : N,
|
|
67
|
+
onCut: d ? void 0 : N,
|
|
68
|
+
onPaste: d ? void 0 : N,
|
|
69
|
+
onBlur: (t) => {
|
|
70
|
+
w(), h?.(t);
|
|
71
|
+
},
|
|
72
|
+
children: v.map((t, e) => r("span", {
|
|
73
|
+
[l]: e,
|
|
74
|
+
style: t.font ? f?.(t.font) : void 0,
|
|
75
|
+
children: t.text
|
|
76
|
+
}, e))
|
|
77
|
+
}, b);
|
|
78
|
+
}));
|
|
79
|
+
u.displayName = "RichTextEditor";
|
|
80
|
+
export { u as t };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { forwardRef as e, memo as r, useEffect as o } from "react";
|
|
8
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
9
|
+
import { useImperativeElement as n, useMeasure as a, useTranslator as i } from "@sheetxl/utils-react";
|
|
10
|
+
import { useMergeRefs as s } from "react-merge-refs";
|
|
11
|
+
var l = Object.defineProperty, d = (e, r) => {
|
|
12
|
+
let o = {};
|
|
13
|
+
for (var t in e) l(o, t, {
|
|
14
|
+
get: e[t],
|
|
15
|
+
enumerable: !0
|
|
16
|
+
});
|
|
17
|
+
return r || l(o, Symbol.toStringTag, { value: "Module" }), o;
|
|
18
|
+
}, m = r(e((e, r) => {
|
|
19
|
+
const { children: i, disabled: l, style: d, movable: m, zoom: g = 1, description: p, isDragging: c, onHide: b, onShow: u, onDragZone: v, adornmentHost: x, flip: y, gesture: f, ...h } = e;
|
|
20
|
+
o(() => {}, [p]);
|
|
21
|
+
const w = n(r, () => ({ isEmptyFrame: () => !0 }), []), [k, { height: C, width: S }] = a(), j = s([w, k]);
|
|
22
|
+
return t("div", {
|
|
23
|
+
className: "unknown-editor",
|
|
24
|
+
...h,
|
|
25
|
+
ref: j,
|
|
26
|
+
style: {
|
|
27
|
+
width: "100%",
|
|
28
|
+
height: "100%",
|
|
29
|
+
border: "var(--sxl-color-neutral, grey) solid 1px",
|
|
30
|
+
backgroundColor: "var(--sxl-color-base-100, white)",
|
|
31
|
+
backgroundImage: "var(--sxl-image-background)",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
zoom: g,
|
|
35
|
+
display: "flex",
|
|
36
|
+
position: "relative",
|
|
37
|
+
filter: l ? "blur(1px)" : void 0,
|
|
38
|
+
boxShadow: c ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
|
|
39
|
+
overflow: "hidden",
|
|
40
|
+
wordBreak: "break-word",
|
|
41
|
+
...d
|
|
42
|
+
},
|
|
43
|
+
children: p
|
|
44
|
+
});
|
|
45
|
+
})), g = d({
|
|
46
|
+
ErrorContentFrame: () => c,
|
|
47
|
+
UnsupportedContentFrame: () => b
|
|
48
|
+
}), p = Object.freeze({ border: "var(--sxl-color-error, red) solid 2px" }), c = r((e) => {
|
|
49
|
+
const r = i(), o = e.movable.getContent(), n = o.getError(), a = n?.message ?? String(n);
|
|
50
|
+
return t(m, {
|
|
51
|
+
...e,
|
|
52
|
+
style: p,
|
|
53
|
+
description: r("movable.contentError", {
|
|
54
|
+
type: o.getOriginalType(),
|
|
55
|
+
message: a
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
}), b = r((e) => {
|
|
59
|
+
const r = i();
|
|
60
|
+
return t(m, {
|
|
61
|
+
...e,
|
|
62
|
+
style: p,
|
|
63
|
+
description: r("movable.unsupportedType", { type: e.movable.getContent().getType() })
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
export { d as i, b as n, m as r, g as t };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { Color as e, IFill as t, IFont as i, ITextFrame as r, ShapeStyleUtils as n } from "@sheetxl/sdk";
|
|
8
|
+
import { memo as l, useMemo as o } from "react";
|
|
9
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
10
|
+
var p = (i, r) => {
|
|
11
|
+
let n = r;
|
|
12
|
+
if (r && "object" == typeof r) {
|
|
13
|
+
const e = r;
|
|
14
|
+
if (e.type === t.Type.None) return "transparent";
|
|
15
|
+
if (e.type === t.Type.Solid) n = e.color;
|
|
16
|
+
else if (e.type === t.Type.Pattern) n = e.foreground;
|
|
17
|
+
else if (e.type === t.Type.Gradient) {
|
|
18
|
+
const t = e.stops?.[0];
|
|
19
|
+
n = "string" == typeof t ? t : t?.color;
|
|
20
|
+
} else n = void 0;
|
|
21
|
+
}
|
|
22
|
+
if ("string" == typeof n && n) try {
|
|
23
|
+
return (i ? i.parseColor(n) : new e(n))?.toCSS("adaptive") ?? void 0;
|
|
24
|
+
} catch {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
}, c = {
|
|
28
|
+
top: "flex-start",
|
|
29
|
+
center: "center",
|
|
30
|
+
bottom: "flex-end",
|
|
31
|
+
justify: "space-between",
|
|
32
|
+
distributed: "space-around"
|
|
33
|
+
}, d = {
|
|
34
|
+
left: "left",
|
|
35
|
+
center: "center",
|
|
36
|
+
right: "right",
|
|
37
|
+
justify: "justify",
|
|
38
|
+
justifyLow: "justify",
|
|
39
|
+
distributed: "justify",
|
|
40
|
+
thaiDistributed: "justify"
|
|
41
|
+
}, f = {
|
|
42
|
+
left: 9.6,
|
|
43
|
+
top: 4.8,
|
|
44
|
+
right: 9.6,
|
|
45
|
+
bottom: 4.8
|
|
46
|
+
}, g = (e, t) => e ? "percent" in e ? e.percent / 100 * 1.2 : `${e.points}pt` : t, h = (e, t, r) => {
|
|
47
|
+
const n = [];
|
|
48
|
+
t.underline && "none" !== t.underline && n.push("underline"), t.strike && "none" !== t.strike && n.push("line-through");
|
|
49
|
+
const l = t.font?.family ?? t.font?.fallbacks?.[0];
|
|
50
|
+
return {
|
|
51
|
+
fontSize: "number" == typeof t.size ? `${t.size}pt` : void 0,
|
|
52
|
+
fontWeight: t.weight,
|
|
53
|
+
fontStyle: t.style === i.Style.Italic ? "italic" : void 0,
|
|
54
|
+
textDecoration: n.length ? n.join(" ") : void 0,
|
|
55
|
+
fontFamily: l,
|
|
56
|
+
color: p(e, t.color) ?? r ?? void 0,
|
|
57
|
+
letterSpacing: "number" == typeof t.letterSpacing ? `${t.letterSpacing}pt` : void 0,
|
|
58
|
+
verticalAlign: "number" == typeof t.baseline && 0 !== t.baseline ? `${t.baseline}%` : void 0,
|
|
59
|
+
fontVariant: "small" === t.capitals ? "small-caps" : void 0,
|
|
60
|
+
textTransform: "all" === t.capitals ? "uppercase" : void 0,
|
|
61
|
+
backgroundColor: t.highlight ? p(e, t.highlight) : void 0
|
|
62
|
+
};
|
|
63
|
+
}, u = l(({ text: e, styles: t, color: i }) => {
|
|
64
|
+
const l = e.body, p = {
|
|
65
|
+
...f,
|
|
66
|
+
...l?.insets
|
|
67
|
+
}, u = e.listStyle?.levels?.[0] ?? e.listStyle?.default, v = o(() => ({
|
|
68
|
+
display: "flex",
|
|
69
|
+
flexDirection: "column",
|
|
70
|
+
justifyContent: c[l?.anchor ?? "top"],
|
|
71
|
+
alignItems: l?.anchorCenter ? "center" : "stretch",
|
|
72
|
+
boxSizing: "border-box",
|
|
73
|
+
width: "100%",
|
|
74
|
+
height: "100%",
|
|
75
|
+
padding: `${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,
|
|
76
|
+
whiteSpace: "none" === l?.wrap ? "pre" : "pre-wrap",
|
|
77
|
+
overflowX: (l?.horizontalOverflow ?? n.TEXT_DEFAULTS.horizontalOverflow) === r.Overflow.Visible ? "visible" : "hidden",
|
|
78
|
+
overflowY: (l?.verticalOverflow ?? n.TEXT_DEFAULTS.verticalOverflow) === r.Overflow.Visible ? "visible" : "hidden",
|
|
79
|
+
fontSize: `${n.TEXT_DEFAULTS.size}pt`,
|
|
80
|
+
writingMode: l?.vertical === r.WritingMode.Vertical || l?.vertical === r.WritingMode.EastAsianVertical ? "vertical-rl" : l?.vertical === r.WritingMode.Vertical270 ? "vertical-lr" : void 0,
|
|
81
|
+
color: i ?? void 0
|
|
82
|
+
}), [
|
|
83
|
+
l,
|
|
84
|
+
p.top,
|
|
85
|
+
p.right,
|
|
86
|
+
p.bottom,
|
|
87
|
+
p.left,
|
|
88
|
+
i
|
|
89
|
+
]);
|
|
90
|
+
return a("div", {
|
|
91
|
+
className: "shape-text",
|
|
92
|
+
style: v,
|
|
93
|
+
children: e.paragraphs.map((r, n) => {
|
|
94
|
+
const l = r.level ? e.listStyle?.levels?.[r.level] : u, o = {
|
|
95
|
+
...l?.defaultRun,
|
|
96
|
+
...r.defaultRun
|
|
97
|
+
}, p = r.bullet ?? l?.bullet, c = {
|
|
98
|
+
textAlign: d[r.align ?? l?.align ?? "left"],
|
|
99
|
+
marginLeft: r.marginLeft ?? l?.marginLeft,
|
|
100
|
+
marginRight: r.marginRight ?? l?.marginRight,
|
|
101
|
+
textIndent: r.indent ?? l?.indent,
|
|
102
|
+
marginTop: g(r.spaceBefore, void 0),
|
|
103
|
+
marginBottom: g(r.spaceAfter, void 0),
|
|
104
|
+
lineHeight: g(r.lineSpacing, 1.2),
|
|
105
|
+
minHeight: "1.2em",
|
|
106
|
+
direction: r.rightToLeft ? "rtl" : void 0,
|
|
107
|
+
...h(t, o, void 0)
|
|
108
|
+
}, f = r.runs.length ? r.runs : r.endRun ? [{
|
|
109
|
+
text: "",
|
|
110
|
+
...r.endRun
|
|
111
|
+
}] : [];
|
|
112
|
+
return s("div", {
|
|
113
|
+
className: "shape-paragraph",
|
|
114
|
+
style: c,
|
|
115
|
+
children: ["char" === p?.type && p.char ? a("span", {
|
|
116
|
+
style: { marginRight: "0.4em" },
|
|
117
|
+
children: p.char
|
|
118
|
+
}) : null, f.map((e, r) => {
|
|
119
|
+
if ("\n" === e.text) return a("br", {}, r);
|
|
120
|
+
const { text: n, field: l, ...s } = e;
|
|
121
|
+
return a("span", {
|
|
122
|
+
style: h(t, {
|
|
123
|
+
...o,
|
|
124
|
+
...s
|
|
125
|
+
}, i),
|
|
126
|
+
children: n
|
|
127
|
+
}, r);
|
|
128
|
+
})]
|
|
129
|
+
}, n);
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
u.displayName = "ShapeText";
|
|
134
|
+
export { u as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
var t = (t) => {
|
|
8
|
+
const e = t?.getSlicerStyles();
|
|
9
|
+
if (!e) return {
|
|
10
|
+
custom: [],
|
|
11
|
+
light: [],
|
|
12
|
+
other: [],
|
|
13
|
+
dark: []
|
|
14
|
+
};
|
|
15
|
+
const o = e.getItems({ type: "builtIn" }).map((t) => t.getName()), r = new Set(o.map((t) => t.toLowerCase()));
|
|
16
|
+
return {
|
|
17
|
+
custom: e.getItems({ type: "custom" }).map((t) => t.getName()).filter((t) => !r.has(t.toLowerCase())),
|
|
18
|
+
light: o.filter((t) => t.startsWith("SlicerStyleLight")),
|
|
19
|
+
other: o.filter((t) => t.startsWith("SlicerStyleOther")),
|
|
20
|
+
dark: o.filter((t) => t.startsWith("SlicerStyleDark"))
|
|
21
|
+
};
|
|
22
|
+
}, e = (t, e) => {
|
|
23
|
+
const o = e?.getSlicerStyles();
|
|
24
|
+
return o ? (o.getByName(t) ?? o.getByName("SlicerStyleLight1"))?.getProperties() ?? null : null;
|
|
25
|
+
}, o = (t, e, o) => {
|
|
26
|
+
const r = `${t ? "Selected" : "Unselected"}ItemWith${e ? "Data" : "NoData"}`;
|
|
27
|
+
return o ? `hovered${r}` : r.charAt(0).toLowerCase() + r.slice(1);
|
|
28
|
+
}, r = (t, e) => {
|
|
29
|
+
const o = {};
|
|
30
|
+
if (!t || !e) return o;
|
|
31
|
+
const r = (t) => {
|
|
32
|
+
if (t) return e.parseColor(t)?.toCSS("adaptive") ?? void 0;
|
|
33
|
+
}, s = t.font;
|
|
34
|
+
if (s) {
|
|
35
|
+
(s.weight ?? 400) >= 700 && (o.fontWeight = "bold");
|
|
36
|
+
const t = r(s.color);
|
|
37
|
+
t && (o.color = t);
|
|
38
|
+
}
|
|
39
|
+
const n = t.fill;
|
|
40
|
+
if ("gradient" === n?.type && n.stops?.length) {
|
|
41
|
+
const t = n.stops.length, e = n.stops.map((e, o) => {
|
|
42
|
+
const s = e && "object" == typeof e && "color" in e ? e : { color: e }, n = s.offset ?? (t > 1 ? o / (t - 1) : 0);
|
|
43
|
+
return `${r(s.color) ?? "transparent"} ${100 * n}%`;
|
|
44
|
+
});
|
|
45
|
+
o.background = `linear-gradient(${n.angle ?? 0}deg, ${e.join(", ")})`;
|
|
46
|
+
} else if ("pattern" === n?.type && "none" !== n.patternType) {
|
|
47
|
+
const t = r(n.foreground);
|
|
48
|
+
t && (o.background = t);
|
|
49
|
+
} else if ("solid" === n?.type) {
|
|
50
|
+
const t = r(n.color);
|
|
51
|
+
t && (o.background = t);
|
|
52
|
+
}
|
|
53
|
+
const i = t.borders;
|
|
54
|
+
if (i) for (const t of [
|
|
55
|
+
"left",
|
|
56
|
+
"right",
|
|
57
|
+
"top",
|
|
58
|
+
"bottom"
|
|
59
|
+
]) {
|
|
60
|
+
const e = i[t];
|
|
61
|
+
if (!e || "none" === e.style) continue;
|
|
62
|
+
const s = r(e.color);
|
|
63
|
+
if (!s) continue;
|
|
64
|
+
o[`border${t.charAt(0).toUpperCase()}${t.slice(1)}`] = `1px solid ${s}`;
|
|
65
|
+
}
|
|
66
|
+
return o;
|
|
67
|
+
};
|
|
68
|
+
export { o as i, t as n, r, e as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
var a = "movable-connect";
|
|
8
|
+
export { a as t };
|