@sheetxl/react 0.8.0-beta.10 → 0.8.0-beta.12
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/B4mT3G7GHwgDYFGP.mjs +128 -0
- package/browser/esm/{BwRduT8FTrk5n72r.mjs → BDlpRkuBok0Uu4Hn.mjs} +1 -1
- package/browser/esm/BR-AiOwuQlYh5-tr.mjs +730 -0
- package/browser/esm/{BuvXl14hs-1CvjeA.mjs → BapujiblfiXDlu67.mjs} +1 -1
- package/browser/esm/{DyU9UInRnfkPYYlR.mjs → CSFORKZ8zrVL_Y0w.mjs} +1 -1
- package/browser/esm/CUekkfE6uwwsdQpc.mjs +36 -0
- package/browser/esm/C_LUq-BnguetvGZz.mjs +23561 -0
- package/browser/esm/{BZcQ-KYwS62Ut45c.mjs → Ck1LbcsdSfKNi6xq.mjs} +1 -1
- package/browser/esm/{CYoUd5KIl7W3AsxH.mjs → Cslk_qRdBSuJIi1O.mjs} +24 -23
- package/browser/esm/CtGhA0kS2MCfEsHN.mjs +262 -0
- package/browser/esm/D22NJmTiky4NL8tM.mjs +8 -0
- package/browser/esm/D2GydDzPuvIjdpok.mjs +42 -0
- package/browser/esm/DGG1auUKsjFbAazu.mjs +60 -0
- package/browser/esm/{Cfe0kofqVKGxLqO6.mjs → DN3lqq95KY0K6f1x.mjs} +1 -1
- package/browser/esm/{DjiBz4H74I6nPUY6.mjs → D_usN3pWuCJU2GN-.mjs} +2 -2
- package/browser/esm/{Sp6PJavGKpF8SJzA.mjs → DhYQRc8L2kALmFNz.mjs} +1 -1
- package/browser/esm/{Bow9CzRJrYxak2i5.mjs → DxEczXCHTerDemDP.mjs} +113 -108
- package/browser/esm/{Dd-ZybXAgoq9pgGv.mjs → LBQDhVhz7S7i6a8i.mjs} +1 -1
- package/browser/esm/{C6urN77szrYwODXF.mjs → ZoS0cpNEBcv6p-Z1.mjs} +1 -1
- package/browser/esm/{cYjYjqEsyd63x8t4.mjs → _6Sb6ElRcZftxMNh.mjs} +1 -1
- package/browser/esm/chart.mjs +33 -52
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +8074 -5647
- package/browser/esm/note.mjs +73 -47
- package/browser/esm/picture.mjs +41 -41
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +5 -5
- package/licenses/dependencies.txt +313 -1
- package/node/esm/{Dxbm6ryIDCEi26RO.mjs → Apcuz4_QtBHt7G47.mjs} +1 -1
- package/node/esm/Bi2Jwc0zpweaNzKc.mjs +1697 -0
- package/node/esm/{Buw-VKYJy3y5dbaJ.mjs → C0KLMCRb3sbd5Q20.mjs} +23 -22
- package/node/esm/CH1DVfFhjdd_3pw1.mjs +128 -0
- package/node/esm/{BJ7ZZm63j5O6cvrB.mjs → CNOLkUDURBElaaIf.mjs} +1 -1
- package/node/esm/{DhSq680c5tgMFFbj.mjs → CalVk3o4-kX79s3v.mjs} +1 -1
- package/node/esm/{DYosMUJKp-3MSO4q.mjs → Cp1DuCae46eQKzWy.mjs} +1 -1
- package/node/esm/CzN6c6KyxVmNvayz.mjs +8 -0
- package/node/esm/DKqdv5JubgVaq-g9.mjs +35 -0
- package/node/esm/DWkPWuf5ZrLRMixG.mjs +328 -0
- package/node/esm/{BfRn5S5V4X8xIAEa.mjs → DXiNwr6ZnXBe7TlG.mjs} +1 -1
- package/node/esm/DayGI0Bt57FDNbVF.mjs +37 -0
- package/node/esm/{CM5BT7h-hMtST2bE.mjs → DyetXBW7vFLJWB22.mjs} +1 -1
- package/node/esm/{CFFlJxNwgyInjEnh.mjs → MWges5ywL3aEdChp.mjs} +1 -1
- package/node/esm/{DPN0n6MGYQ9vZ2KO.mjs → T5lfCrudsUnOTxEn.mjs} +1 -1
- package/node/esm/YB_qExw23Ci4nMYy.mjs +263 -0
- package/node/esm/{GkmuxU7OwRZtm2Rf.mjs → bRD1KCpSpAYTEs50.mjs} +1 -1
- package/node/esm/chart.mjs +32 -51
- package/node/esm/control.mjs +2 -2
- package/node/esm/group.mjs +3 -3
- package/node/esm/{C_ANM4feA1xV-pri.mjs → iL9jKJcnED6oi0B4.mjs} +1 -1
- package/node/esm/index.mjs +10998 -8556
- package/node/esm/note.mjs +86 -60
- package/node/esm/picture.mjs +41 -41
- package/node/esm/shape.mjs +285 -332
- package/node/esm/slicer.mjs +15 -15
- package/package.json +8 -6
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/chart.cmd.json +82 -0
- package/resources/locales/de/sheet.cmd.json +32 -0
- package/resources/locales/de/table.cmd.json +1 -1
- package/resources/locales/de/ui.msg.json +12 -0
- package/resources/locales/de/workbook.cmd.json +11 -0
- package/resources/locales/en/chart.cmd.json +82 -0
- package/resources/locales/en/sheet.cmd.json +32 -0
- package/resources/locales/en/table.cmd.json +1 -1
- package/resources/locales/en/ui.msg.json +14 -0
- package/resources/locales/en/workbook.cmd.json +11 -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 +76 -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} +9 -6
- package/types/src/cell/ColumnButton.d.ts +3 -3
- package/types/src/cell/OutlineButton.d.ts +4 -4
- package/types/src/cell/SheetHeaderRenderer.d.ts +1 -1
- package/types/src/cell/index.d.ts +8 -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 -0
- 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/_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 +12 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +42 -0
- package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
- package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
- package/types/src/comment/CommentCardRequest.d.ts +9 -9
- package/types/src/comment/useSheetComments.d.ts +2 -2
- package/types/src/context/WorksheetContext.d.ts +18 -0
- package/types/src/context/index.d.ts +1 -1
- 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 -2
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +22 -5
- 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 +49 -0
- package/types/src/editor/formulaAnchor.d.ts +12 -0
- package/types/src/editor/index.d.ts +1 -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/validationAlert.d.ts +3 -3
- package/types/src/frame/CommandContext.d.ts +7 -7
- package/types/src/index.d.ts +2 -0
- package/types/src/layer/BorderLayer.d.ts +2 -2
- package/types/src/layer/CellErrorLayer.d.ts +5 -4
- 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 +2 -2
- package/types/src/layer/CommentCardLayer.d.ts +2 -2
- package/types/src/layer/CommentsLayer.d.ts +2 -2
- package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
- package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
- package/types/src/layer/ContextMenuLayer.d.ts +2 -2
- package/types/src/layer/GridFreezeLayer.d.ts +2 -2
- package/types/src/layer/HeaderSelectionLayer.d.ts +4 -4
- package/types/src/layer/HyperlinkLayer.d.ts +11 -8
- package/types/src/layer/MovableKindScope.d.ts +2 -2
- package/types/src/layer/ProtectionLayer.d.ts +4 -5
- package/types/src/layer/RangeAnnotationLayer.d.ts +2 -2
- package/types/src/layer/ResizeIndicator.d.ts +2 -2
- 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 +11 -13
- package/types/src/layer/SheetLayers.d.ts +115 -0
- package/types/src/layer/SheetMovableLayer.d.ts +4 -3
- package/types/src/layer/SheetOutlineLayer.d.ts +3 -3
- 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 +3 -3
- package/types/src/layer/TableToolbar.d.ts +4 -4
- 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 +21 -8
- package/types/src/layer/_tableColor.d.ts +2 -2
- package/types/src/layer/index.d.ts +3 -0
- package/types/src/layer/useFreezeDrag.d.ts +2 -2
- 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 +2 -2
- 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/DefaultMovable.d.ts +8 -0
- package/types/src/movable/MovableCommands.d.ts +2 -2
- package/types/src/movable/MovableControl.d.ts +3 -1
- package/types/src/movable/MovableFrame.d.ts +2 -1
- package/types/src/movable/MovableLayer.d.ts +6 -3
- package/types/src/movable/MovableRenderers.d.ts +3 -3
- package/types/src/movable/index.d.ts +1 -0
- package/types/src/picker/cellPickerOpen.d.ts +3 -3
- package/types/src/picker/useCellPicker.d.ts +2 -2
- 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 +2 -2
- package/types/src/sheet/ISheetHeaderElement.d.ts +3 -3
- package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +64 -32
- package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +5 -2
- package/types/src/sheet/SheetCommands.d.ts +2 -2
- package/types/src/sheet/SheetKindIcon.d.ts +14 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +6 -6
- package/types/src/sheet/SheetPanels.d.ts +11 -0
- package/types/src/sheet/SheetScrollbar.d.ts +3 -3
- 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 +2 -2
- package/types/src/sheet/circularReferences.d.ts +3 -3
- package/types/src/sheet/index.d.ts +5 -2
- package/types/src/sheet/useCycleHighlight.d.ts +2 -2
- 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 +6 -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 +17 -0
- package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/taskPane/useTaskPane.d.ts +6 -3
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
- package/types/src/theme/useGridColorScheme.d.ts +1 -1
- package/types/src/theme/useSystemColors.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +5 -4
- package/types/src/workbook/IWorkbookElement.d.ts +76 -22
- package/types/src/workbook/WorkbookStrip.d.ts +5 -5
- package/browser/esm/BHjeSMaycUkS5dVL.mjs +0 -66
- package/browser/esm/CYMRbtPIr6SklGpp.mjs +0 -775
- package/browser/esm/CiRN-woJZWYOgTn4.mjs +0 -36
- package/browser/esm/J8cPagZBeXz86Lnd.mjs +0 -777
- package/node/esm/BpwE3HqTnrLLzE3C.mjs +0 -775
- package/node/esm/CV3bT3Hql74GcHoU.mjs +0 -37
- package/node/esm/D3YXHeOyFp00Xk3m.mjs +0 -323
- 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/sheet/SheetElement.d.ts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { d as t } from "./
|
|
9
|
-
import { n
|
|
10
|
-
import {
|
|
7
|
+
import { t as e } from "./LBQDhVhz7S7i6a8i.mjs";
|
|
8
|
+
import { d as t } from "./DxEczXCHTerDemDP.mjs";
|
|
9
|
+
import { t as n } from "./D22NJmTiky4NL8tM.mjs";
|
|
10
|
+
import { n as r } from "./CUekkfE6uwwsdQpc.mjs";
|
|
11
|
+
import { t as i } from "./BR-AiOwuQlYh5-tr.mjs";
|
|
11
12
|
import { memo as a, useCallback as o, useReducer as s, useRef as c } from "react";
|
|
12
13
|
import { jsx as l } from "react/jsx-runtime";
|
|
13
14
|
import { messageKey as u } from "@sheetxl/utils";
|
|
@@ -26,7 +27,7 @@ var p = (e, t) => {
|
|
|
26
27
|
let { x: r, y: i, width: a, height: o } = e.bounds, s = -(e.rotation || 0) * Math.PI / 180, c = t.x - (r + a / 2), l = t.y - (i + o / 2), u = c * Math.cos(s) - l * Math.sin(s), d = c * Math.sin(s) + l * Math.cos(s);
|
|
27
28
|
return Math.abs(u) <= a / 2 + n && Math.abs(d) <= o / 2 + n;
|
|
28
29
|
}, g = a((t) => {
|
|
29
|
-
let { movable:
|
|
30
|
+
let { movable: r, flip: i, isDragging: a = !1, gesture: g } = t, _ = d(), v = f(n, null), [, y] = s((e) => e + 1, 0), b = r.getContent();
|
|
30
31
|
e(b, { onAnyChange: y });
|
|
31
32
|
let x = b.getConnectorFormat(), S = c(null), C = o((e) => {
|
|
32
33
|
let t = _?.getPanePointFromPointer(e.clientX, e.clientY);
|
|
@@ -44,12 +45,12 @@ var p = (e, t) => {
|
|
|
44
45
|
}, [_]), w = o((e) => {
|
|
45
46
|
if (e.button !== 0) return;
|
|
46
47
|
e.stopPropagation(), e.preventDefault();
|
|
47
|
-
let t = e.currentTarget.dataset.end,
|
|
48
|
-
if (!
|
|
48
|
+
let t = e.currentTarget.dataset.end, n = m(r);
|
|
49
|
+
if (!n || !_) return;
|
|
49
50
|
let i = {
|
|
50
51
|
pointerId: e.pointerId,
|
|
51
52
|
end: t,
|
|
52
|
-
placement:
|
|
53
|
+
placement: n,
|
|
53
54
|
candidates: [],
|
|
54
55
|
hit: null
|
|
55
56
|
};
|
|
@@ -59,7 +60,7 @@ var p = (e, t) => {
|
|
|
59
60
|
let r = i.hit, a = t === "start" ? n.getStartConnectedMovable() : n.getEndConnectedMovable(), o = t === "start" ? n.getStartConnectionSite() : n.getEndConnectionSite();
|
|
60
61
|
(r ? a !== r.target || o !== r.index : a !== null) && (r ? t === "start" ? n.startConnect(r.target, r.index) : n.endConnect(r.target, r.index) : t === "start" ? n.startDisconnect() : n.endDisconnect());
|
|
61
62
|
}) && (i.candidates = ((e) => {
|
|
62
|
-
let t = e.getRange().
|
|
63
|
+
let t = e.getRange().getWorksheet(), n = /* @__PURE__ */ new Set([e]);
|
|
63
64
|
for (let t = e.getParent(); t; t = t.getParent()) n.add(t);
|
|
64
65
|
let r = [];
|
|
65
66
|
for (let e of t.getMovables().getItems({ deep: !0 })) {
|
|
@@ -71,13 +72,13 @@ var p = (e, t) => {
|
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
return r;
|
|
74
|
-
})(
|
|
75
|
-
connector:
|
|
75
|
+
})(r), S.current = i, e.currentTarget.setPointerCapture(e.pointerId), v({
|
|
76
|
+
connector: r.getId(),
|
|
76
77
|
target: null,
|
|
77
78
|
index: null
|
|
78
79
|
}));
|
|
79
80
|
}, [
|
|
80
|
-
|
|
81
|
+
r,
|
|
81
82
|
_,
|
|
82
83
|
g,
|
|
83
84
|
v
|
|
@@ -85,8 +86,8 @@ var p = (e, t) => {
|
|
|
85
86
|
let t = S.current;
|
|
86
87
|
if (!t || t.pointerId !== e.pointerId) return;
|
|
87
88
|
e.stopPropagation();
|
|
88
|
-
let
|
|
89
|
-
if (!
|
|
89
|
+
let n = C(e);
|
|
90
|
+
if (!n) return;
|
|
90
91
|
let i = ((e, t, n) => {
|
|
91
92
|
let r = 8 / n, i = 10 / n, a = null, o = 1 / 0;
|
|
92
93
|
for (let { movable: n, placement: s } of t) {
|
|
@@ -104,9 +105,9 @@ var p = (e, t) => {
|
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
return a;
|
|
107
|
-
})(
|
|
108
|
+
})(n, t.candidates, _?.getZoom() || 1);
|
|
108
109
|
t.hit = i;
|
|
109
|
-
let a =
|
|
110
|
+
let a = r.getContent().getConnectorFormat(), o = a?.getEndPoints(t.placement);
|
|
110
111
|
if (!a || !o) return;
|
|
111
112
|
let s = o[t.end === "start" ? "end" : "start"];
|
|
112
113
|
o[t.end] = i ? {
|
|
@@ -120,10 +121,10 @@ var p = (e, t) => {
|
|
|
120
121
|
x: e.x + l * s,
|
|
121
122
|
y: e.y + l * c
|
|
122
123
|
};
|
|
123
|
-
})(s,
|
|
124
|
+
})(s, n) : n;
|
|
124
125
|
let c = a.placeEnds(o.start, o.end);
|
|
125
126
|
v({
|
|
126
|
-
connector:
|
|
127
|
+
connector: r.getId(),
|
|
127
128
|
target: i ? i.target.getId() : null,
|
|
128
129
|
index: i ? i.index : null
|
|
129
130
|
}), g.preview({
|
|
@@ -137,7 +138,7 @@ var p = (e, t) => {
|
|
|
137
138
|
}, [
|
|
138
139
|
C,
|
|
139
140
|
_,
|
|
140
|
-
|
|
141
|
+
r,
|
|
141
142
|
g,
|
|
142
143
|
v
|
|
143
144
|
]), E = o((e) => {
|
|
@@ -180,9 +181,9 @@ var v = {
|
|
|
180
181
|
}),
|
|
181
182
|
control: _,
|
|
182
183
|
commands: (e, t) => {
|
|
183
|
-
let { sheet:
|
|
184
|
-
e.use(
|
|
185
|
-
transaction:
|
|
184
|
+
let { sheet: n, movable: i, notifier: a } = t, o = i.getContent();
|
|
185
|
+
e.use(r({
|
|
186
|
+
transaction: n,
|
|
186
187
|
notifier: a
|
|
187
188
|
})), e.updateCommand("changeShape", {
|
|
188
189
|
disabledReasons: o.getConnectorFormat() ? [u("reason.connectorShape")] : [],
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
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 "./DN3lqq95KY0K6f1x.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 ee } from "@sheetxl/utils";
|
|
11
|
+
import { useImperativeElement as te, useMeasure as ne, usePendingRender as re, usePersistentState as d, useResolvedThemeMode as f } from "@sheetxl/utils-react";
|
|
12
|
+
var p = {
|
|
13
|
+
Mode: "themeMode",
|
|
14
|
+
DarkGrid: "enableDarkGrid",
|
|
15
|
+
DarkImages: "enableDarkImages"
|
|
16
|
+
}, m = {
|
|
17
|
+
[p.Mode]: null,
|
|
18
|
+
[p.DarkGrid]: !1,
|
|
19
|
+
[p.DarkImages]: !1
|
|
20
|
+
}, h = (e) => {
|
|
21
|
+
let [t] = d(p.Mode, m[p.Mode]), [n] = d(p.DarkGrid, m[p.DarkGrid]), { themeMode: r } = f({ mode: e ?? t ?? void 0 });
|
|
22
|
+
return e || (r === "dark" && n ? "dark" : "light");
|
|
23
|
+
}, g = () => {
|
|
24
|
+
let [e] = d(p.Mode, m[p.Mode]), { themeMode: t } = f({ mode: e ?? void 0 });
|
|
25
|
+
return t;
|
|
26
|
+
}, _ = ee("chart:paint", () => import("./C_LUq-BnguetvGZz.mjs")), v = (e, t) => {
|
|
27
|
+
let n = e.getElementType();
|
|
28
|
+
if (n === "point") {
|
|
29
|
+
let n = e.getParent();
|
|
30
|
+
return t === n || t?.getElementType() === "point" && t.getParent() === n ? e : n;
|
|
31
|
+
}
|
|
32
|
+
if (n === "legendEntry") {
|
|
33
|
+
let n = e.getParent();
|
|
34
|
+
return t === n || t?.getElementType() === "legendEntry" ? e : n;
|
|
35
|
+
}
|
|
36
|
+
if (n === "dataLabel") {
|
|
37
|
+
let n = e.getParent()?.getParent(), r = n?.getDataLabels();
|
|
38
|
+
return r ? t === r || t?.getElementType() === "dataLabel" && t.getParent()?.getParent() === n ? e : r : e;
|
|
39
|
+
}
|
|
40
|
+
return e;
|
|
41
|
+
}, y = {
|
|
42
|
+
boxes: [],
|
|
43
|
+
handles: []
|
|
44
|
+
}, b = n(t((t, n) => {
|
|
45
|
+
let { children: ee, style: d, chart: f, onChartChange: p, zoom: m = 1, width: h, height: b, selection: x = null, colorScheme: ie, onElementPress: S, onPointerDown: C, ...w } = t, [T, ae] = s(() => u.isPromiseLike(f) ? null : f), [E, oe] = s(null), D = o(p);
|
|
46
|
+
D.current = p;
|
|
47
|
+
let O = o(null);
|
|
48
|
+
i(() => {
|
|
49
|
+
let e = !0, t = (e, t) => {
|
|
50
|
+
oe(t), ae(e), O.current !== e && (O.current = e, D.current?.(e));
|
|
51
|
+
};
|
|
52
|
+
if (u.isPromiseLike(f)) return f.then((n) => {
|
|
53
|
+
e && t(n, null);
|
|
54
|
+
}, (n) => {
|
|
55
|
+
e && t(null, n);
|
|
56
|
+
}), () => {
|
|
57
|
+
e = !1;
|
|
58
|
+
};
|
|
59
|
+
t(f, null);
|
|
60
|
+
}, [f]);
|
|
61
|
+
let [k, A] = ne(), j = typeof h == "number" ? h : A.width, M = typeof b == "number" ? b : A.height, N = j ? Math.round(j / m) : 0, P = M ? Math.round(M / m) : 0, F = o({
|
|
62
|
+
width: N,
|
|
63
|
+
height: P
|
|
64
|
+
});
|
|
65
|
+
F.current = {
|
|
66
|
+
width: N,
|
|
67
|
+
height: P
|
|
68
|
+
};
|
|
69
|
+
let I = g(), L = (ie ?? I) === "dark", R = r(async (e) => {
|
|
70
|
+
let t = F.current;
|
|
71
|
+
if (!T || !t.width || !t.height) return null;
|
|
72
|
+
let n = T.getLayout(t);
|
|
73
|
+
return n ? (await _.load()).renderChartToSVG(n, { darkMode: e?.darkMode ?? !1 }) : null;
|
|
74
|
+
}, [T]), z = o(null), B = o(null), V = o(m);
|
|
75
|
+
V.current = m;
|
|
76
|
+
let H = r((e, t) => {
|
|
77
|
+
let n = z.current;
|
|
78
|
+
if (!n) return null;
|
|
79
|
+
let r = n.getBoundingClientRect(), i = V.current || 1;
|
|
80
|
+
return {
|
|
81
|
+
x: (e - r.left) / i,
|
|
82
|
+
y: (t - r.top) / i
|
|
83
|
+
};
|
|
84
|
+
}, []), U = r((e, t) => {
|
|
85
|
+
let n = B.current, r = H(e, t);
|
|
86
|
+
return T && n && r ? T.getElementAt(r, n) : null;
|
|
87
|
+
}, [T, H]), W = te(n, () => ({
|
|
88
|
+
isChartElement: () => !0,
|
|
89
|
+
getChart: () => T,
|
|
90
|
+
toSVG: R,
|
|
91
|
+
getElementAt: U
|
|
92
|
+
}), [
|
|
93
|
+
T,
|
|
94
|
+
R,
|
|
95
|
+
U
|
|
96
|
+
]), G = e([
|
|
97
|
+
W,
|
|
98
|
+
k,
|
|
99
|
+
z
|
|
100
|
+
]), K = o(null), q = o(null), [J, Y] = s(() => _.peek() ?? null), [X, se] = s(null), [ce, le] = s(0), [Z, ue] = s(y);
|
|
101
|
+
i(() => T?.addListeners({ onLayoutChange: () => le((e) => e + 1) }), [T]), re(!(X || E || J && T)), i(() => {
|
|
102
|
+
if (J) return;
|
|
103
|
+
let e = !0;
|
|
104
|
+
return _.load().then((t) => {
|
|
105
|
+
e && Y(t);
|
|
106
|
+
}, (t) => {
|
|
107
|
+
e && se(t);
|
|
108
|
+
}), () => {
|
|
109
|
+
e = !1;
|
|
110
|
+
};
|
|
111
|
+
}, [J]);
|
|
112
|
+
let Q = r(() => {
|
|
113
|
+
let e = B.current;
|
|
114
|
+
ue(T && e && x && !x.isEmpty() ? ((e, t, n) => {
|
|
115
|
+
let r = [], i = [];
|
|
116
|
+
for (let a of n.getItems()) {
|
|
117
|
+
if (a.getChart() !== e) continue;
|
|
118
|
+
let o = a.getElementType();
|
|
119
|
+
if (o === "series" || o === "dataLabels") {
|
|
120
|
+
let n = o === "series" ? a : a.getParent(), i = o === "series" ? n.getPoints() : n.getPoints().map((e) => e.getDataLabel());
|
|
121
|
+
for (let n of i) {
|
|
122
|
+
let i = e.getElementBounds(n, t);
|
|
123
|
+
i && r.push(i);
|
|
124
|
+
}
|
|
125
|
+
if (r.length > 0) continue;
|
|
126
|
+
}
|
|
127
|
+
let s = e.getElementBounds(a, t);
|
|
128
|
+
if (s && (r.push(s), n.getItems().length === 1)) {
|
|
129
|
+
let e = [
|
|
130
|
+
s.x,
|
|
131
|
+
s.x + s.width / 2,
|
|
132
|
+
s.x + s.width
|
|
133
|
+
], t = [
|
|
134
|
+
s.y,
|
|
135
|
+
s.y + s.height / 2,
|
|
136
|
+
s.y + s.height
|
|
137
|
+
];
|
|
138
|
+
for (let n of e) for (let r of t) n === e[1] && r === t[1] || i.push({
|
|
139
|
+
x: n,
|
|
140
|
+
y: r
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
boxes: r,
|
|
146
|
+
handles: i
|
|
147
|
+
};
|
|
148
|
+
})(T, e, x) : y);
|
|
149
|
+
}, [T, x]);
|
|
150
|
+
i(() => x?.addListeners({ onChange: Q }), [x, Q]), a(() => {
|
|
151
|
+
let e = K.current;
|
|
152
|
+
if (!(J && e && T && N && P)) return;
|
|
153
|
+
let t = T.getLayout({
|
|
154
|
+
width: N,
|
|
155
|
+
height: P
|
|
156
|
+
});
|
|
157
|
+
if (B.current = t, !t) return q.current?.dispose(), q.current = null, e.style.backgroundColor = "", void Q();
|
|
158
|
+
let n = t.chartArea.fill === void 0;
|
|
159
|
+
e.style.backgroundColor = n ? `var(--sxl-color-base-100, ${L ? "#121212" : "#FFFFFF"})` : "", e.style.borderRadius = n ? `${t.chartArea.cornerRadius}px` : "";
|
|
160
|
+
let r = {
|
|
161
|
+
darkMode: L,
|
|
162
|
+
background: "transparent"
|
|
163
|
+
};
|
|
164
|
+
q.current ? q.current.update(t, r) : q.current = J.mountChart(e, t, r), Q();
|
|
165
|
+
}, [
|
|
166
|
+
J,
|
|
167
|
+
T,
|
|
168
|
+
N,
|
|
169
|
+
P,
|
|
170
|
+
ce,
|
|
171
|
+
L,
|
|
172
|
+
Q
|
|
173
|
+
]), i(() => () => {
|
|
174
|
+
q.current?.dispose(), q.current = null, B.current = null;
|
|
175
|
+
}, [T]);
|
|
176
|
+
let de = r((e) => {
|
|
177
|
+
if (C?.(e), e.button !== 0 && e.button !== 2) return;
|
|
178
|
+
let t = B.current, n = H(e.clientX, e.clientY);
|
|
179
|
+
if (!T || !t || !n) return;
|
|
180
|
+
let r = T.getElementAt(n, t);
|
|
181
|
+
if (S?.({
|
|
182
|
+
element: r,
|
|
183
|
+
point: n,
|
|
184
|
+
event: e
|
|
185
|
+
}), !x) return;
|
|
186
|
+
if (!r || r.getElementType() === "chartArea") return void x.clear();
|
|
187
|
+
let i = v(r, x.getActive());
|
|
188
|
+
x.isSelected(i) && x.getItems().length === 1 || x.select([i]);
|
|
189
|
+
}, [
|
|
190
|
+
T,
|
|
191
|
+
x,
|
|
192
|
+
S,
|
|
193
|
+
C,
|
|
194
|
+
H
|
|
195
|
+
]);
|
|
196
|
+
if (T?.isDeleted()) return;
|
|
197
|
+
let $ = X ?? E;
|
|
198
|
+
return l("div", {
|
|
199
|
+
...w,
|
|
200
|
+
onPointerDown: de,
|
|
201
|
+
style: {
|
|
202
|
+
...h === void 0 ? {} : { width: h },
|
|
203
|
+
...b === void 0 ? {} : { height: b },
|
|
204
|
+
...d,
|
|
205
|
+
overflow: "hidden"
|
|
206
|
+
},
|
|
207
|
+
ref: G,
|
|
208
|
+
children: [
|
|
209
|
+
$ ? c("div", {
|
|
210
|
+
className: "chart-element-error",
|
|
211
|
+
style: {
|
|
212
|
+
padding: "8px",
|
|
213
|
+
fontSize: "12px",
|
|
214
|
+
color: "var(--sxl-color-error, #b00020)"
|
|
215
|
+
},
|
|
216
|
+
children: $.message
|
|
217
|
+
}) : null,
|
|
218
|
+
c("div", {
|
|
219
|
+
className: "chart-element",
|
|
220
|
+
ref: K,
|
|
221
|
+
style: {
|
|
222
|
+
width: N || "100%",
|
|
223
|
+
height: P || "100%",
|
|
224
|
+
zoom: m,
|
|
225
|
+
position: "relative"
|
|
226
|
+
}
|
|
227
|
+
}),
|
|
228
|
+
Z.boxes.length > 0 ? l("div", {
|
|
229
|
+
className: "chart-element-selection",
|
|
230
|
+
style: {
|
|
231
|
+
position: "absolute",
|
|
232
|
+
left: 0,
|
|
233
|
+
top: 0,
|
|
234
|
+
width: N,
|
|
235
|
+
height: P,
|
|
236
|
+
zoom: m,
|
|
237
|
+
pointerEvents: "none"
|
|
238
|
+
},
|
|
239
|
+
children: [Z.boxes.map((e, t) => c("div", { style: {
|
|
240
|
+
position: "absolute",
|
|
241
|
+
left: e.x - 1,
|
|
242
|
+
top: e.y - 1,
|
|
243
|
+
width: Math.max(0, e.width),
|
|
244
|
+
height: Math.max(0, e.height),
|
|
245
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
246
|
+
boxSizing: "content-box"
|
|
247
|
+
} }, `box-${t}`)), Z.handles.map((e, t) => c("div", { style: {
|
|
248
|
+
position: "absolute",
|
|
249
|
+
left: e.x - 3,
|
|
250
|
+
top: e.y - 3,
|
|
251
|
+
width: 6,
|
|
252
|
+
height: 6,
|
|
253
|
+
background: "var(--sxl-color-base-100, #fff)",
|
|
254
|
+
border: "1px solid var(--sxl-color-primary, #1a73e8)",
|
|
255
|
+
boxSizing: "border-box"
|
|
256
|
+
} }, `handle-${t}`))]
|
|
257
|
+
}) : null
|
|
258
|
+
]
|
|
259
|
+
});
|
|
260
|
+
}));
|
|
261
|
+
b.displayName = "ChartElement";
|
|
262
|
+
export { m as a, h as i, v as n, p as o, g as r, b 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.12
|
|
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 e = "movable-connect";
|
|
8
|
+
export { e as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
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 e, t = Object.defineProperty, n = (e, n) => {
|
|
8
|
+
let r = {};
|
|
9
|
+
for (var i in e) t(r, i, {
|
|
10
|
+
get: e[i],
|
|
11
|
+
enumerable: !0
|
|
12
|
+
});
|
|
13
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
14
|
+
}, r = /* @__PURE__ */ new Map(), i = !1;
|
|
15
|
+
function a(e) {
|
|
16
|
+
for (let t of e.types) r.set(t, e);
|
|
17
|
+
return () => {
|
|
18
|
+
for (let t of e.types) r.get(t) === e && r.delete(t);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
(function(e) {
|
|
22
|
+
function t(e) {
|
|
23
|
+
return e.type === "custom" ? `custom:${e.kind}` : e.type;
|
|
24
|
+
}
|
|
25
|
+
e.register = function(e) {
|
|
26
|
+
return a(e);
|
|
27
|
+
}, e.get = function(e) {
|
|
28
|
+
return r.get(e);
|
|
29
|
+
}, e.has = function(e) {
|
|
30
|
+
return r.has(e);
|
|
31
|
+
}, e.getTypes = function() {
|
|
32
|
+
return [...r.keys()];
|
|
33
|
+
}, e.typeOf = t, e.of = function(e) {
|
|
34
|
+
return r.get(t(e));
|
|
35
|
+
}, e.registerBuiltIns = function(e) {
|
|
36
|
+
i || (i = !0, e((e) => a({
|
|
37
|
+
...e,
|
|
38
|
+
types: e.types.filter((e) => !r.has(e))
|
|
39
|
+
})));
|
|
40
|
+
};
|
|
41
|
+
})(e ||= {});
|
|
42
|
+
export { n, e as t };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
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 { n as e } from "./D2GydDzPuvIjdpok.mjs";
|
|
8
|
+
import { t } from "./DN3lqq95KY0K6f1x.mjs";
|
|
9
|
+
import { forwardRef as n, memo as r, useEffect as i } from "react";
|
|
10
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
11
|
+
import { useImperativeElement as o, useMeasure as s, useTranslator as c } from "@sheetxl/utils-react";
|
|
12
|
+
var l = r(n((e, n) => {
|
|
13
|
+
let { children: r, disabled: c, style: l, movable: u, zoom: d = 1, description: f, isDragging: p, onHide: m, onShow: h, onDragZone: g, adornmentHost: _, flip: v, gesture: y, ...b } = e;
|
|
14
|
+
i(() => {}, [f]);
|
|
15
|
+
let x = o(n, () => ({ isEmptyFrame: () => !0 }), []), [S, { height: C, width: w }] = s(), T = t([x, S]);
|
|
16
|
+
return a("div", {
|
|
17
|
+
className: "unknown-editor",
|
|
18
|
+
...b,
|
|
19
|
+
ref: T,
|
|
20
|
+
style: {
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "100%",
|
|
23
|
+
border: "var(--sxl-color-neutral, grey) solid 1px",
|
|
24
|
+
backgroundColor: "var(--sxl-color-base-100, white)",
|
|
25
|
+
backgroundImage: "var(--sxl-image-background)",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
zoom: d,
|
|
29
|
+
display: "flex",
|
|
30
|
+
position: "relative",
|
|
31
|
+
filter: c ? "blur(1px)" : void 0,
|
|
32
|
+
boxShadow: p ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
|
|
33
|
+
overflow: "hidden",
|
|
34
|
+
wordBreak: "break-word",
|
|
35
|
+
...l
|
|
36
|
+
},
|
|
37
|
+
children: f
|
|
38
|
+
});
|
|
39
|
+
})), u = e({
|
|
40
|
+
ErrorContentFrame: () => f,
|
|
41
|
+
UnsupportedContentFrame: () => p
|
|
42
|
+
}), d = Object.freeze({ border: "var(--sxl-color-error, red) solid 2px" }), f = r((e) => {
|
|
43
|
+
let t = c(), n = e.movable.getContent(), r = n.getError(), i = r?.message ?? String(r);
|
|
44
|
+
return a(l, {
|
|
45
|
+
...e,
|
|
46
|
+
style: d,
|
|
47
|
+
description: t("movable.contentError", {
|
|
48
|
+
type: n.getOriginalType(),
|
|
49
|
+
message: i
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}), p = r((e) => {
|
|
53
|
+
let t = c();
|
|
54
|
+
return a(l, {
|
|
55
|
+
...e,
|
|
56
|
+
style: d,
|
|
57
|
+
description: t("movable.unsupportedType", { type: e.movable.getContent().getType() })
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
export { p as n, l as r, u as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./DN3lqq95KY0K6f1x.mjs";
|
|
8
8
|
import { forwardRef as t, memo as n, useMemo as r, useRef as i } from "react";
|
|
9
9
|
import { jsx as a } from "react/jsx-runtime";
|
|
10
10
|
var o = "data-run", s = (e) => typeof e == "string" ? e ? [{ text: e }] : [] : e.runs ?? [], c = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|