@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,241 @@
|
|
|
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 { t as e } from "./Bos4Rkp8UTF7QXUB.mjs";
|
|
8
|
+
import { forwardRef as t, memo as n, useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { CommonUtils as u, defineLazyModule as d } from "@sheetxl/utils";
|
|
11
|
+
import { useImperativeElement as ee, useMeasure as f } from "@sheetxl/utils-react";
|
|
12
|
+
var p = d("chart:paint", () => import("./DgL7Dy-Lqcr1TvW6.mjs")), m = (e, t) => {
|
|
13
|
+
let n = e.getElementType();
|
|
14
|
+
if (n === "point") {
|
|
15
|
+
let n = e.getParent();
|
|
16
|
+
return t === n || t?.getElementType() === "point" && t.getParent() === n ? e : n;
|
|
17
|
+
}
|
|
18
|
+
if (n === "legendEntry") {
|
|
19
|
+
let n = e.getParent();
|
|
20
|
+
return t === n || t?.getElementType() === "legendEntry" ? e : n;
|
|
21
|
+
}
|
|
22
|
+
if (n === "dataLabel") {
|
|
23
|
+
let n = e.getParent()?.getParent(), r = n?.getDataLabels();
|
|
24
|
+
return r ? t === r || t?.getElementType() === "dataLabel" && t.getParent()?.getParent() === n ? e : r : e;
|
|
25
|
+
}
|
|
26
|
+
return e;
|
|
27
|
+
}, h = {
|
|
28
|
+
boxes: [],
|
|
29
|
+
handles: []
|
|
30
|
+
}, g = n(t((t, n) => {
|
|
31
|
+
let { children: d, style: g, chart: _, onChartChange: v, zoom: y = 1, width: b, height: x, selection: S = null, onElementPress: C, onPointerDown: w, ...te } = t, [T, E] = s(() => u.isPromiseLike(_) ? null : _), [D, ne] = s(null), O = o(v);
|
|
32
|
+
O.current = v;
|
|
33
|
+
let k = o(null);
|
|
34
|
+
i(() => {
|
|
35
|
+
let e = !0, t = (e, t) => {
|
|
36
|
+
ne(t), E(e), k.current !== e && (k.current = e, O.current?.(e));
|
|
37
|
+
};
|
|
38
|
+
if (u.isPromiseLike(_)) return _.then((n) => {
|
|
39
|
+
e && t(n, null);
|
|
40
|
+
}, (n) => {
|
|
41
|
+
e && t(null, n);
|
|
42
|
+
}), () => {
|
|
43
|
+
e = !1;
|
|
44
|
+
};
|
|
45
|
+
t(_, null);
|
|
46
|
+
}, [_]);
|
|
47
|
+
let [A, j] = f(), M = typeof b == "number" ? b : j.width, N = typeof x == "number" ? x : j.height, P = M ? Math.round(M / y) : 0, F = N ? Math.round(N / y) : 0, I = o({
|
|
48
|
+
width: P,
|
|
49
|
+
height: F
|
|
50
|
+
});
|
|
51
|
+
I.current = {
|
|
52
|
+
width: P,
|
|
53
|
+
height: F
|
|
54
|
+
};
|
|
55
|
+
let L = r(async () => {
|
|
56
|
+
let e = I.current;
|
|
57
|
+
if (!T || !e.width || !e.height) return null;
|
|
58
|
+
let t = T.getLayout(e);
|
|
59
|
+
return t ? (await p.load()).renderChartToSVG(t) : null;
|
|
60
|
+
}, [T]), R = o(null), z = o(null), B = o(y);
|
|
61
|
+
B.current = y;
|
|
62
|
+
let V = r((e, t) => {
|
|
63
|
+
let n = R.current;
|
|
64
|
+
if (!n) return null;
|
|
65
|
+
let r = n.getBoundingClientRect(), i = B.current || 1;
|
|
66
|
+
return {
|
|
67
|
+
x: (e - r.left) / i,
|
|
68
|
+
y: (t - r.top) / i
|
|
69
|
+
};
|
|
70
|
+
}, []), H = r((e, t) => {
|
|
71
|
+
let n = z.current, r = V(e, t);
|
|
72
|
+
return T && n && r ? T.getElementAt(r, n) : null;
|
|
73
|
+
}, [T, V]), U = ee(n, () => ({
|
|
74
|
+
isChartElement: () => !0,
|
|
75
|
+
getChart: () => T,
|
|
76
|
+
toSVG: L,
|
|
77
|
+
getElementAt: H
|
|
78
|
+
}), [
|
|
79
|
+
T,
|
|
80
|
+
L,
|
|
81
|
+
H
|
|
82
|
+
]), W = e([
|
|
83
|
+
U,
|
|
84
|
+
A,
|
|
85
|
+
R
|
|
86
|
+
]), G = o(null), K = o(null), [q, J] = s(() => p.peek() ?? null), [Y, X] = s(null), [re, ie] = s(0), [Z, ae] = s(h);
|
|
87
|
+
i(() => T?.addListeners({ onLayoutChange: () => ie((e) => e + 1) }), [T]), i(() => {
|
|
88
|
+
if (q) return;
|
|
89
|
+
let e = !0;
|
|
90
|
+
return p.load().then((t) => {
|
|
91
|
+
e && J(t);
|
|
92
|
+
}, (t) => {
|
|
93
|
+
e && X(t);
|
|
94
|
+
}), () => {
|
|
95
|
+
e = !1;
|
|
96
|
+
};
|
|
97
|
+
}, [q]);
|
|
98
|
+
let Q = r(() => {
|
|
99
|
+
let e = z.current;
|
|
100
|
+
ae(T && e && S && !S.isEmpty() ? ((e, t, n) => {
|
|
101
|
+
let r = [], i = [];
|
|
102
|
+
for (let a of n.getItems()) {
|
|
103
|
+
if (a.getChart() !== e) continue;
|
|
104
|
+
let o = a.getElementType();
|
|
105
|
+
if (o === "series" || o === "dataLabels") {
|
|
106
|
+
let n = o === "series" ? a : a.getParent(), i = o === "series" ? n.getPoints() : n.getPoints().map((e) => e.getDataLabel());
|
|
107
|
+
for (let n of i) {
|
|
108
|
+
let i = e.getElementBounds(n, t);
|
|
109
|
+
i && r.push(i);
|
|
110
|
+
}
|
|
111
|
+
if (r.length > 0) continue;
|
|
112
|
+
}
|
|
113
|
+
let s = e.getElementBounds(a, t);
|
|
114
|
+
if (s && (r.push(s), n.getItems().length === 1)) {
|
|
115
|
+
let e = [
|
|
116
|
+
s.x,
|
|
117
|
+
s.x + s.width / 2,
|
|
118
|
+
s.x + s.width
|
|
119
|
+
], t = [
|
|
120
|
+
s.y,
|
|
121
|
+
s.y + s.height / 2,
|
|
122
|
+
s.y + s.height
|
|
123
|
+
];
|
|
124
|
+
for (let n of e) for (let r of t) n === e[1] && r === t[1] || i.push({
|
|
125
|
+
x: n,
|
|
126
|
+
y: r
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
boxes: r,
|
|
132
|
+
handles: i
|
|
133
|
+
};
|
|
134
|
+
})(T, e, S) : h);
|
|
135
|
+
}, [T, S]);
|
|
136
|
+
i(() => S?.addListeners({ onChange: Q }), [S, Q]), a(() => {
|
|
137
|
+
let e = G.current;
|
|
138
|
+
if (!(q && e && T && P && F)) return;
|
|
139
|
+
let t = T.getLayout({
|
|
140
|
+
width: P,
|
|
141
|
+
height: F
|
|
142
|
+
});
|
|
143
|
+
if (z.current = t, !t) return K.current?.dispose(), K.current = null, void Q();
|
|
144
|
+
K.current ? K.current.update(t) : K.current = q.mountChart(e, t), Q();
|
|
145
|
+
}, [
|
|
146
|
+
q,
|
|
147
|
+
T,
|
|
148
|
+
P,
|
|
149
|
+
F,
|
|
150
|
+
re,
|
|
151
|
+
Q
|
|
152
|
+
]), i(() => () => {
|
|
153
|
+
K.current?.dispose(), K.current = null, z.current = null;
|
|
154
|
+
}, [T]);
|
|
155
|
+
let oe = r((e) => {
|
|
156
|
+
if (w?.(e), e.button !== 0 && e.button !== 2) return;
|
|
157
|
+
let t = z.current, n = V(e.clientX, e.clientY);
|
|
158
|
+
if (!T || !t || !n) return;
|
|
159
|
+
let r = T.getElementAt(n, t);
|
|
160
|
+
if (C?.({
|
|
161
|
+
element: r,
|
|
162
|
+
point: n,
|
|
163
|
+
event: e
|
|
164
|
+
}), !S) return;
|
|
165
|
+
if (!r || r.getElementType() === "chartArea") return void S.clear();
|
|
166
|
+
let i = m(r, S.getActive());
|
|
167
|
+
S.isSelected(i) && S.getItems().length === 1 || S.select([i]);
|
|
168
|
+
}, [
|
|
169
|
+
T,
|
|
170
|
+
S,
|
|
171
|
+
C,
|
|
172
|
+
w,
|
|
173
|
+
V
|
|
174
|
+
]);
|
|
175
|
+
if (T?.isDeleted()) return;
|
|
176
|
+
let $ = Y ?? D;
|
|
177
|
+
return l("div", {
|
|
178
|
+
...te,
|
|
179
|
+
onPointerDown: oe,
|
|
180
|
+
style: {
|
|
181
|
+
...b === void 0 ? {} : { width: b },
|
|
182
|
+
...x === void 0 ? {} : { height: x },
|
|
183
|
+
...g,
|
|
184
|
+
overflow: "hidden"
|
|
185
|
+
},
|
|
186
|
+
ref: W,
|
|
187
|
+
children: [
|
|
188
|
+
$ ? c("div", {
|
|
189
|
+
className: "chart-element-error",
|
|
190
|
+
style: {
|
|
191
|
+
padding: "8px",
|
|
192
|
+
fontSize: "12px",
|
|
193
|
+
color: "var(--sxl-color-error, #b00020)"
|
|
194
|
+
},
|
|
195
|
+
children: $.message
|
|
196
|
+
}) : null,
|
|
197
|
+
c("div", {
|
|
198
|
+
className: "chart-element",
|
|
199
|
+
ref: G,
|
|
200
|
+
style: {
|
|
201
|
+
width: P || "100%",
|
|
202
|
+
height: F || "100%",
|
|
203
|
+
zoom: y,
|
|
204
|
+
position: "relative"
|
|
205
|
+
}
|
|
206
|
+
}),
|
|
207
|
+
Z.boxes.length > 0 ? l("div", {
|
|
208
|
+
className: "chart-element-selection",
|
|
209
|
+
style: {
|
|
210
|
+
position: "absolute",
|
|
211
|
+
left: 0,
|
|
212
|
+
top: 0,
|
|
213
|
+
width: P,
|
|
214
|
+
height: F,
|
|
215
|
+
zoom: y,
|
|
216
|
+
pointerEvents: "none"
|
|
217
|
+
},
|
|
218
|
+
children: [Z.boxes.map((e, t) => c("div", { style: {
|
|
219
|
+
position: "absolute",
|
|
220
|
+
left: e.x - 1,
|
|
221
|
+
top: e.y - 1,
|
|
222
|
+
width: Math.max(0, e.width),
|
|
223
|
+
height: Math.max(0, e.height),
|
|
224
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
225
|
+
boxSizing: "content-box"
|
|
226
|
+
} }, `box-${t}`)), Z.handles.map((e, t) => c("div", { style: {
|
|
227
|
+
position: "absolute",
|
|
228
|
+
left: e.x - 3,
|
|
229
|
+
top: e.y - 3,
|
|
230
|
+
width: 6,
|
|
231
|
+
height: 6,
|
|
232
|
+
background: "var(--sxl-color-background, #fff)",
|
|
233
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
234
|
+
boxSizing: "border-box"
|
|
235
|
+
} }, `handle-${t}`))]
|
|
236
|
+
}) : null
|
|
237
|
+
]
|
|
238
|
+
});
|
|
239
|
+
}));
|
|
240
|
+
g.displayName = "ChartElement";
|
|
241
|
+
export { m as n, g as t };
|