@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,38 +1,38 @@
|
|
|
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 { createContext as t, memo as n, useCallback as r, useEffect as i, useReducer as a, useRef as o } from "react";
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { LazyModules as
|
|
11
|
-
import { ReactUtils as f } from "@sheetxl/utils-react";
|
|
7
|
+
import { t as e } from "./LBQDhVhz7S7i6a8i.mjs";
|
|
8
|
+
import { createContext as t, memo as n, useCallback as r, useEffect as i, useReducer as a, useRef as o, useState as s } from "react";
|
|
9
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { LazyModules as d, defineLazyModule as f } from "@sheetxl/utils";
|
|
12
11
|
import { useGridPane as p } from "@sheetxl/grid-react";
|
|
13
|
-
|
|
12
|
+
import { ReactUtils as m, usePendingRender as h } from "@sheetxl/utils-react";
|
|
13
|
+
var g = Object.freeze({
|
|
14
14
|
x: 0,
|
|
15
15
|
y: 0,
|
|
16
16
|
width: 0,
|
|
17
17
|
height: 0
|
|
18
|
-
}),
|
|
19
|
-
let r = n?.bounds ?? e.getBounds(), i = r ? t.toPaneBounds(r) :
|
|
18
|
+
}), _ = (e, t, n) => {
|
|
19
|
+
let r = n?.bounds ?? e.getBounds(), i = r ? t.toPaneBounds(r) : g, a = m.getDevicePixelRatio();
|
|
20
20
|
return {
|
|
21
|
-
left:
|
|
22
|
-
top:
|
|
21
|
+
left: m.snapDeviceEdge(i.x, a),
|
|
22
|
+
top: m.snapDeviceEdge(i.y, a),
|
|
23
23
|
width: i.width,
|
|
24
24
|
height: i.height,
|
|
25
25
|
rotation: n?.rotation ?? (e.getRotation() || 0),
|
|
26
26
|
flip: n?.flip ?? e.getFlip()
|
|
27
27
|
};
|
|
28
|
-
},
|
|
28
|
+
}, v = "data-movable-id", y = (e) => {
|
|
29
29
|
let t = e;
|
|
30
30
|
for (let e = t.getParent(); e; e = t.getParent()) t = e;
|
|
31
31
|
return t;
|
|
32
|
-
},
|
|
32
|
+
}, b = (e, t, n) => {
|
|
33
33
|
let r = [], i = t;
|
|
34
34
|
for (; i && i !== n;) {
|
|
35
|
-
let e = i.getAttribute?.(
|
|
35
|
+
let e = i.getAttribute?.(v);
|
|
36
36
|
e && r.unshift(e), i = i.parentElement;
|
|
37
37
|
}
|
|
38
38
|
if (r.length === 0) return e;
|
|
@@ -44,22 +44,22 @@ var m = Object.freeze({
|
|
|
44
44
|
}
|
|
45
45
|
let o = a.length - 1;
|
|
46
46
|
for (let e = o; e >= 0; e--) if (a[e].isSelected()) return a[Math.min(e + 1, o)];
|
|
47
|
-
let s = e.getRange().
|
|
48
|
-
return s &&
|
|
49
|
-
},
|
|
47
|
+
let s = e.getRange().getWorksheet().getView().getMovableSelection().getContainer();
|
|
48
|
+
return s && y(s) === e ? a[Math.min(x(s) + 1, o)] : e;
|
|
49
|
+
}, x = (e) => {
|
|
50
50
|
let t = 0;
|
|
51
51
|
for (let n = e.getParent(); n; n = n.getParent()) t++;
|
|
52
52
|
return t;
|
|
53
|
-
},
|
|
54
|
-
let s = p(), [,
|
|
53
|
+
}, S = t(/* @__PURE__ */ new Map()), C = n(({ movable: t, preview: n, onHost: i, children: o }) => {
|
|
54
|
+
let s = p(), [, c] = a((e) => e + 1, 0);
|
|
55
55
|
e(t, {
|
|
56
|
-
onBoundsChange: () =>
|
|
57
|
-
onAnyChange: () =>
|
|
56
|
+
onBoundsChange: () => c(),
|
|
57
|
+
onAnyChange: () => c()
|
|
58
58
|
});
|
|
59
59
|
let u = r((e) => {
|
|
60
60
|
i(t, e);
|
|
61
|
-
}, [t, i]), d =
|
|
62
|
-
return
|
|
61
|
+
}, [t, i]), d = _(t, s, n);
|
|
62
|
+
return l("div", {
|
|
63
63
|
className: "movable-adornment",
|
|
64
64
|
ref: u,
|
|
65
65
|
style: {
|
|
@@ -76,8 +76,8 @@ var m = Object.freeze({
|
|
|
76
76
|
children: o
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
|
-
|
|
80
|
-
var
|
|
79
|
+
C.displayName = "MovableAdornment";
|
|
80
|
+
var w = {
|
|
81
81
|
nw: [-1, -1],
|
|
82
82
|
n: [0, -1],
|
|
83
83
|
ne: [1, -1],
|
|
@@ -86,19 +86,19 @@ var S = {
|
|
|
86
86
|
sw: [-1, 1],
|
|
87
87
|
s: [0, 1],
|
|
88
88
|
se: [1, 1]
|
|
89
|
-
},
|
|
89
|
+
}, T = [
|
|
90
90
|
"ew-resize",
|
|
91
91
|
"nwse-resize",
|
|
92
92
|
"ns-resize",
|
|
93
93
|
"nesw-resize"
|
|
94
|
-
],
|
|
94
|
+
], E = (e, t) => {
|
|
95
95
|
let n = 180 * Math.atan2(e[1], e[0]) / Math.PI + t;
|
|
96
|
-
return
|
|
97
|
-
},
|
|
98
|
-
let { directions: t, rotation: n, isDragging: i = !1, onResizeStart: a, onResize: s, onResizeEnd:
|
|
96
|
+
return T[(Math.round(n / 45) % 4 + 4) % 4];
|
|
97
|
+
}, D = n((e) => {
|
|
98
|
+
let { directions: t, rotation: n, isDragging: i = !1, onResizeStart: a, onResize: s, onResizeEnd: c, onResizeCancel: d, context: f = !1, onMoveStart: p, children: m } = e, h = o(null), g = r((e) => {
|
|
99
99
|
if (e.button !== 0) return;
|
|
100
100
|
e.stopPropagation(), e.preventDefault();
|
|
101
|
-
let t =
|
|
101
|
+
let t = w[e.currentTarget.dataset.direction ?? ""];
|
|
102
102
|
t && a() && (h.current = {
|
|
103
103
|
pointerId: e.pointerId,
|
|
104
104
|
direction: t,
|
|
@@ -112,14 +112,14 @@ var S = {
|
|
|
112
112
|
t && t.pointerId === e.pointerId && (e.stopPropagation(), s(t.direction, [e.clientX - t.press.x, e.clientY - t.press.y], e.shiftKey));
|
|
113
113
|
}, [s]), v = r((e) => {
|
|
114
114
|
let t = h.current;
|
|
115
|
-
t && t.pointerId === e.pointerId && (e.stopPropagation(), h.current = null,
|
|
116
|
-
}, [
|
|
115
|
+
t && t.pointerId === e.pointerId && (e.stopPropagation(), h.current = null, c());
|
|
116
|
+
}, [c]), y = r((e) => {
|
|
117
117
|
let t = h.current;
|
|
118
118
|
t && t.pointerId === e.pointerId && (h.current = null, d());
|
|
119
119
|
}, [d]), b = r((e) => {
|
|
120
120
|
e.button === 0 && (e.stopPropagation(), e.preventDefault(), p?.(e.nativeEvent));
|
|
121
121
|
}, [p]);
|
|
122
|
-
return
|
|
122
|
+
return u("div", {
|
|
123
123
|
className: [
|
|
124
124
|
"movable-control",
|
|
125
125
|
i ? "dragging" : null,
|
|
@@ -127,16 +127,16 @@ var S = {
|
|
|
127
127
|
].filter(Boolean).join(" "),
|
|
128
128
|
children: [
|
|
129
129
|
m,
|
|
130
|
-
|
|
130
|
+
l("div", { className: "movable-control-outline" }),
|
|
131
131
|
t.map((e) => {
|
|
132
|
-
let t =
|
|
133
|
-
return t ?
|
|
132
|
+
let t = w[e];
|
|
133
|
+
return t ? l("div", {
|
|
134
134
|
className: "movable-control-handle",
|
|
135
135
|
"data-direction": e,
|
|
136
136
|
style: {
|
|
137
137
|
left: 50 * (t[0] + 1) + "%",
|
|
138
138
|
top: 50 * (t[1] + 1) + "%",
|
|
139
|
-
cursor:
|
|
139
|
+
cursor: E(t, n)
|
|
140
140
|
},
|
|
141
141
|
onPointerDown: g,
|
|
142
142
|
onPointerMove: _,
|
|
@@ -144,89 +144,94 @@ var S = {
|
|
|
144
144
|
onPointerCancel: y
|
|
145
145
|
}, e) : null;
|
|
146
146
|
}),
|
|
147
|
-
p ?
|
|
147
|
+
p ? l("div", {
|
|
148
148
|
className: "movable-move-handle",
|
|
149
149
|
onPointerDown: b,
|
|
150
|
-
children:
|
|
150
|
+
children: l("svg", {
|
|
151
151
|
viewBox: "0 0 24 24",
|
|
152
152
|
"aria-hidden": "true",
|
|
153
|
-
children:
|
|
153
|
+
children: l("path", { d: "M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z" })
|
|
154
154
|
})
|
|
155
155
|
}) : null
|
|
156
156
|
]
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
|
-
|
|
160
|
-
var
|
|
161
|
-
for (let e of [...
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
e("picture", () => import("./
|
|
165
|
-
...t,
|
|
166
|
-
chart: t.movable.getContent()
|
|
167
|
-
}) }), e("slicer", () => import("./BwRduT8FTrk5n72r.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./CYoUd5KIl7W3AsxH.mjs"), {
|
|
159
|
+
D.displayName = "MovableControl";
|
|
160
|
+
var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Set(), M = () => {
|
|
161
|
+
for (let e of [...j]) e();
|
|
162
|
+
}, N = !1, P = () => {
|
|
163
|
+
N || (N = !0, function(e) {
|
|
164
|
+
e("picture", () => import("./DhYQRc8L2kALmFNz.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./B4mT3G7GHwgDYFGP.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./BDlpRkuBok0Uu4Hn.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./Cslk_qRdBSuJIi1O.mjs"), {
|
|
168
165
|
select: (e) => e.ShapeKind,
|
|
169
166
|
selectionShadow: !1
|
|
170
|
-
}), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) =>
|
|
167
|
+
}), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => l(e, {
|
|
171
168
|
...t,
|
|
172
169
|
container: t.movable.getContent()
|
|
173
170
|
}) }), e("note", () => import("./note.mjs"), { select: ({ NoteEditor: e }) => (t) => {
|
|
174
171
|
let { onContextMenuCapture: n, ...r } = t;
|
|
175
|
-
return
|
|
172
|
+
return l(e, {
|
|
176
173
|
...r,
|
|
177
174
|
note: t.movable.getContent()
|
|
178
175
|
});
|
|
179
|
-
} }), e("error", () => import("./
|
|
176
|
+
} }), e("error", () => import("./DGG1auUKsjFbAazu.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => l(e, { ...t }) });
|
|
180
177
|
let t = (t, n) => {
|
|
181
178
|
e(t, () => import("./control.mjs"), { select: n });
|
|
182
179
|
};
|
|
183
180
|
t("button", (e) => e.ButtonRenderer), t("checkBox", (e) => e.CheckBoxRenderer), t("optionButton", (e) => e.OptionButtonRenderer), t("listBox", (e) => e.ListBoxRenderer), t("dropDown", (e) => e.DropDownRenderer), t("scrollBar", (e) => e.ScrollBarRenderer), t("spinner", (e) => e.SpinnerRenderer), t("groupBox", (e) => e.GroupBoxRenderer), t("label", (e) => e.LabelRenderer), t("editBox", (e) => e.UnmodeledControlRenderer), t("dialog", (e) => e.UnmodeledControlRenderer), t("formControl", (e) => e.UnmodeledControlRenderer);
|
|
184
|
-
}(
|
|
185
|
-
},
|
|
186
|
-
let { movable: t, fallback: n, children: r } = e, [, o] = a((e) => e + 1, 0),
|
|
187
|
-
return i(() => {
|
|
188
|
-
if (
|
|
181
|
+
}(Y));
|
|
182
|
+
}, F = (e) => (P(), k.get(e) ?? O.get(e)), I = (e) => {
|
|
183
|
+
let { movable: t, fallback: n, children: r } = e, [, o] = a((e) => e + 1, 0), s = t.isContentLoaded();
|
|
184
|
+
return h(!s), i(() => {
|
|
185
|
+
if (s) return;
|
|
189
186
|
let e = !0;
|
|
190
187
|
return t.whenContentLoaded().then(() => {
|
|
191
188
|
e && o();
|
|
192
189
|
}), () => {
|
|
193
190
|
e = !1;
|
|
194
191
|
};
|
|
195
|
-
}, [t,
|
|
196
|
-
},
|
|
192
|
+
}, [t, s]), l(c, { children: s ? r : n });
|
|
193
|
+
}, L = (e) => {
|
|
197
194
|
let [, t] = a((e) => e + 1, 0), n = e.module;
|
|
198
195
|
return i(() => {
|
|
199
196
|
if (n) return;
|
|
200
|
-
let r = !0, i =
|
|
197
|
+
let r = !0, i = W(() => {
|
|
201
198
|
r && e.module && t();
|
|
202
199
|
});
|
|
203
200
|
return e.loadModule().catch(() => {}), () => {
|
|
204
201
|
r = !1, i();
|
|
205
202
|
};
|
|
206
203
|
}, [e, n]), n;
|
|
207
|
-
},
|
|
208
|
-
let t =
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
}, R = (e) => {
|
|
205
|
+
let t = L(e.kind), [n, r] = s(!1);
|
|
206
|
+
if (i(() => {
|
|
207
|
+
if (t) return;
|
|
208
|
+
let n = !0;
|
|
209
|
+
return e.kind.loadModule().catch(() => {
|
|
210
|
+
n && r(!0);
|
|
211
|
+
}), () => {
|
|
212
|
+
n = !1;
|
|
213
|
+
};
|
|
214
|
+
}, [e.kind, t]), h(!t && !n), !t) return l(c, { children: e.fallback });
|
|
215
|
+
let a = t.renderer;
|
|
216
|
+
return l(a, { ...e.props });
|
|
217
|
+
}, z = (e, t, n, r) => {
|
|
218
|
+
let i = f(e, t, {
|
|
214
219
|
select: (e) => {
|
|
215
220
|
let t = n?.select ? n.select(e) : e, r = typeof (i = t) == "object" && i !== null && "renderer" in i ? t : { renderer: t };
|
|
216
221
|
var i;
|
|
217
|
-
return
|
|
222
|
+
return c.module = r, c.control = r.control, c.loaded = !0, M(), r;
|
|
218
223
|
},
|
|
219
224
|
prefetch: !1 !== n?.prefetch && (r ?? !0)
|
|
220
|
-
}), a = null, o = n?.fallback ?? null, s = (e) =>
|
|
225
|
+
}), a = null, o = n?.fallback ?? null, s = (e) => l(I, {
|
|
221
226
|
movable: e.movable,
|
|
222
227
|
fallback: o,
|
|
223
|
-
children:
|
|
224
|
-
kind:
|
|
228
|
+
children: l(R, {
|
|
229
|
+
kind: c,
|
|
225
230
|
fallback: o,
|
|
226
231
|
props: e
|
|
227
232
|
})
|
|
228
|
-
}),
|
|
229
|
-
Renderer: n?.hitArea === "content" ? s : (e) =>
|
|
233
|
+
}), c = {
|
|
234
|
+
Renderer: n?.hitArea === "content" ? s : (e) => l("div", {
|
|
230
235
|
className: "movable-content",
|
|
231
236
|
style: e.style,
|
|
232
237
|
children: s(e)
|
|
@@ -234,8 +239,8 @@ var E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE
|
|
|
234
239
|
loaded: !1,
|
|
235
240
|
control: void 0,
|
|
236
241
|
LazyControl: (e) => {
|
|
237
|
-
let t =
|
|
238
|
-
return
|
|
242
|
+
let t = L(c)?.control ?? D;
|
|
243
|
+
return l(t, { ...e });
|
|
239
244
|
},
|
|
240
245
|
ownShadow: !1 === n?.selectionShadow,
|
|
241
246
|
loadModule: () => (a ??= i.load().then((e) => (a = null, e), (t) => {
|
|
@@ -244,32 +249,32 @@ var E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE
|
|
|
244
249
|
module: void 0,
|
|
245
250
|
lazyModule: i
|
|
246
251
|
};
|
|
247
|
-
return
|
|
252
|
+
return c;
|
|
248
253
|
};
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
let r =
|
|
252
|
-
return
|
|
253
|
-
|
|
254
|
+
function B(e, t, n) {
|
|
255
|
+
P();
|
|
256
|
+
let r = z(`movable-renderer:${e}`, t, n);
|
|
257
|
+
return k.set(e, r), M(), () => {
|
|
258
|
+
k.get(e) === r && (k.delete(e), d.remove(r.lazyModule), M());
|
|
254
259
|
};
|
|
255
260
|
}
|
|
256
|
-
function
|
|
261
|
+
function V(e, t) {
|
|
257
262
|
let n = null, r = {
|
|
258
263
|
load: () => (n ??= t().then((t) => {
|
|
259
|
-
r.pane = t,
|
|
264
|
+
r.pane = t, A.get(e) === r && M();
|
|
260
265
|
}, (e) => {
|
|
261
266
|
throw n = null, e;
|
|
262
267
|
}), n),
|
|
263
268
|
pane: void 0
|
|
264
269
|
};
|
|
265
|
-
return
|
|
266
|
-
|
|
270
|
+
return A.set(e, r), M(), () => {
|
|
271
|
+
A.get(e) === r && (A.delete(e), M());
|
|
267
272
|
};
|
|
268
273
|
}
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
274
|
+
function H(e) {
|
|
275
|
+
let t = F(e);
|
|
271
276
|
if (!t?.module) return;
|
|
272
|
-
let n =
|
|
277
|
+
let n = A.get(e);
|
|
273
278
|
n && !n.pane && n.load().catch(() => {});
|
|
274
279
|
let { control: r, commands: i, toolbar: a, pane: o } = t.module;
|
|
275
280
|
return {
|
|
@@ -280,39 +285,39 @@ function B(e) {
|
|
|
280
285
|
pane: n ? n.pane : o
|
|
281
286
|
};
|
|
282
287
|
}
|
|
283
|
-
async function
|
|
284
|
-
let t =
|
|
288
|
+
async function U(e) {
|
|
289
|
+
let t = F(e);
|
|
285
290
|
if (t) {
|
|
286
291
|
try {
|
|
287
|
-
await t.loadModule(), await
|
|
292
|
+
await t.loadModule(), await A.get(e)?.load();
|
|
288
293
|
} catch {
|
|
289
294
|
return;
|
|
290
295
|
}
|
|
291
|
-
return
|
|
296
|
+
return H(e);
|
|
292
297
|
}
|
|
293
298
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
296
|
-
|
|
299
|
+
function W(e) {
|
|
300
|
+
return j.add(e), () => {
|
|
301
|
+
j.delete(e);
|
|
297
302
|
};
|
|
298
303
|
}
|
|
299
|
-
function
|
|
300
|
-
return !
|
|
304
|
+
function G(e) {
|
|
305
|
+
return !F(e)?.ownShadow;
|
|
301
306
|
}
|
|
302
|
-
function
|
|
303
|
-
let t =
|
|
307
|
+
function K(e) {
|
|
308
|
+
let t = F(e);
|
|
304
309
|
if (t) return t.loaded ? t.control : t.LazyControl;
|
|
305
310
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
311
|
+
function q(e) {
|
|
312
|
+
return F(e)?.Renderer;
|
|
308
313
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
314
|
+
function J() {
|
|
315
|
+
return P(), [.../* @__PURE__ */ new Set([...O.keys(), ...k.keys()])];
|
|
311
316
|
}
|
|
312
|
-
function
|
|
313
|
-
|
|
317
|
+
function Y(e, t, n) {
|
|
318
|
+
O.set(e, z(`movable-renderer:built-in:${e}`, t, {
|
|
314
319
|
hitArea: "content",
|
|
315
320
|
...n
|
|
316
|
-
}, () => !
|
|
321
|
+
}, () => !k.has(e)));
|
|
317
322
|
}
|
|
318
|
-
export { _,
|
|
323
|
+
export { y as _, J as a, V as c, D as d, E as f, b as g, v as h, q as i, B as l, C as m, K as n, G as o, S as p, H as r, Y as s, W as t, U as u, _ as v };
|
|
@@ -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,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,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.
|
package/browser/esm/chart.mjs
CHANGED
|
@@ -1,60 +1,41 @@
|
|
|
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 {
|
|
8
|
-
import {
|
|
9
|
-
import { forwardRef as
|
|
10
|
-
import { jsx as
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
rowGap: "8px",
|
|
39
|
-
position: "relative",
|
|
40
|
-
border: "var(--sxl-color-neutral, grey) solid 1px",
|
|
41
|
-
filter: f ? "blur(1px)" : void 0,
|
|
42
|
-
boxShadow: h ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0
|
|
43
|
-
},
|
|
44
|
-
children: [
|
|
45
|
-
p.getChartTitle(),
|
|
46
|
-
o(k, { style: {
|
|
47
|
-
maxWidth: "260px",
|
|
48
|
-
fill: "grey",
|
|
49
|
-
opacity: .4
|
|
50
|
-
} }),
|
|
51
|
-
o("div", {
|
|
52
|
-
style: { textAlign: "center" },
|
|
53
|
-
children: c.camelToPrettyCase(p.getChartType())
|
|
54
|
-
})
|
|
55
|
-
]
|
|
56
|
-
})
|
|
7
|
+
import { i as e, n as t, t as n } from "./CtGhA0kS2MCfEsHN.mjs";
|
|
8
|
+
import { t as r } from "./DN3lqq95KY0K6f1x.mjs";
|
|
9
|
+
import { forwardRef as i, memo as a, useCallback as o, useLayoutEffect as s, useRef as c } from "react";
|
|
10
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
11
|
+
import { useImperativeElement as u } from "@sheetxl/utils-react";
|
|
12
|
+
var d = a(i((t, i) => {
|
|
13
|
+
let { children: a, disabled: d, style: f, chart: p, zoom: m = 1, isDragging: h, movable: g, onHide: _, onShow: v, onDragZone: y, adornmentHost: b, flip: x, gesture: S, ...C } = t, w = u(i, () => ({ isChartEditor: () => !0 }), []), T = c(null), E = r([w, T]), D = e(), O = g?.getRange()?.getWorksheet()?.getView()?.getChartElementSelection() ?? null;
|
|
14
|
+
s(() => {
|
|
15
|
+
y?.((e) => {
|
|
16
|
+
let t = "touches" in e ? e.touches[0] : e;
|
|
17
|
+
if (!t) return !0;
|
|
18
|
+
let n = T.current?.getElementAt(t.clientX, t.clientY) ?? null;
|
|
19
|
+
return !n || n.getElementType() === "chartArea";
|
|
20
|
+
});
|
|
21
|
+
}, [y]);
|
|
22
|
+
let k = o((e) => {
|
|
23
|
+
!d && e.element && e.element.getElementType() !== "chartArea" && (e.event.stopPropagation(), g && !g.isSelected() && g.select());
|
|
24
|
+
}, [g, d]);
|
|
25
|
+
if (!p.isDeleted()) return l(n, {
|
|
26
|
+
...C,
|
|
27
|
+
chart: p,
|
|
28
|
+
zoom: m,
|
|
29
|
+
colorScheme: D,
|
|
30
|
+
selection: d ? null : O,
|
|
31
|
+
onElementPress: k,
|
|
32
|
+
style: {
|
|
33
|
+
...f,
|
|
34
|
+
filter: d ? "blur(1px)" : void 0,
|
|
35
|
+
boxShadow: h ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0
|
|
36
|
+
},
|
|
37
|
+
ref: E
|
|
57
38
|
});
|
|
58
39
|
}));
|
|
59
40
|
d.displayName = "ChartEditor";
|
|
60
|
-
export { d as ChartEditor };
|
|
41
|
+
export { d as ChartEditor, n as ChartElement, t as nextSelected };
|
package/browser/esm/control.mjs
CHANGED
|
@@ -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 "./LBQDhVhz7S7i6a8i.mjs";
|
|
8
8
|
import { memo as t, useEffect as n, useReducer as r, useRef as i } from "react";
|
|
9
9
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
10
10
|
var s = (e) => {
|
package/browser/esm/group.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { h as t, i as n, p as r } from "./
|
|
7
|
+
import { t as e } from "./LBQDhVhz7S7i6a8i.mjs";
|
|
8
|
+
import { h as t, i as n, p as r } from "./DxEczXCHTerDemDP.mjs";
|
|
9
9
|
import { forwardRef as i, memo as a, useContext as o, useEffect as s, useReducer as c } from "react";
|
|
10
10
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
11
|
import { useSurfaceState as d } from "@sheetxl/grid-react";
|