@sheetxl/react 0.8.0-beta.11 → 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.
Files changed (116) hide show
  1. package/browser/esm/{94dxo1A-z8lgiiGw.mjs → B4mT3G7GHwgDYFGP.mjs} +2 -2
  2. package/browser/esm/{B26QVfjer2oY2ewK.mjs → BDlpRkuBok0Uu4Hn.mjs} +1 -1
  3. package/browser/esm/{CRi6DQ3UXmPEv-w_.mjs → BR-AiOwuQlYh5-tr.mjs} +147 -146
  4. package/browser/esm/{ClAtIfYbsUPA073B.mjs → BapujiblfiXDlu67.mjs} +1 -1
  5. package/browser/esm/{D2u6THGErqw64KQI.mjs → CSFORKZ8zrVL_Y0w.mjs} +1 -1
  6. package/browser/esm/{Bl2BFCQ00fotauKB.mjs → CUekkfE6uwwsdQpc.mjs} +1 -1
  7. package/browser/esm/{DgL7Dy-Lqcr1TvW6.mjs → C_LUq-BnguetvGZz.mjs} +4851 -4818
  8. package/browser/esm/{BQYS2Yf-EAV_tBLr.mjs → Ck1LbcsdSfKNi6xq.mjs} +1 -1
  9. package/browser/esm/{1-LEUre9ZLG0OYYB.mjs → Cslk_qRdBSuJIi1O.mjs} +6 -6
  10. package/browser/esm/CtGhA0kS2MCfEsHN.mjs +262 -0
  11. package/browser/esm/{BegvsXeRs7e-9t8k.mjs → D22NJmTiky4NL8tM.mjs} +1 -1
  12. package/browser/esm/{B93LSmhnvkxNXTq-.mjs → D2GydDzPuvIjdpok.mjs} +1 -1
  13. package/browser/esm/{CzRIbc-Lk__VMLKM.mjs → DGG1auUKsjFbAazu.mjs} +3 -3
  14. package/browser/esm/{Bos4Rkp8UTF7QXUB.mjs → DN3lqq95KY0K6f1x.mjs} +1 -1
  15. package/browser/esm/{Dnh1kpz3v1JKtRD_.mjs → D_usN3pWuCJU2GN-.mjs} +2 -2
  16. package/browser/esm/{cQ6xdPFkEcuDlNTN.mjs → DhYQRc8L2kALmFNz.mjs} +1 -1
  17. package/browser/esm/{DS66lAIM-9M-YoZQ.mjs → DxEczXCHTerDemDP.mjs} +112 -104
  18. package/browser/esm/{C1pc9F4Rt2C5FKUo.mjs → LBQDhVhz7S7i6a8i.mjs} +1 -1
  19. package/browser/esm/{CPnnESfZz2jjJd82.mjs → ZoS0cpNEBcv6p-Z1.mjs} +1 -1
  20. package/browser/esm/{DMdsMPT0fWBbTkNn.mjs → _6Sb6ElRcZftxMNh.mjs} +1 -1
  21. package/browser/esm/chart.mjs +28 -27
  22. package/browser/esm/control.mjs +2 -2
  23. package/browser/esm/group.mjs +3 -3
  24. package/browser/esm/index.mjs +5750 -5089
  25. package/browser/esm/note.mjs +4 -4
  26. package/browser/esm/picture.mjs +41 -41
  27. package/browser/esm/shape.mjs +2 -2
  28. package/browser/esm/slicer.mjs +4 -4
  29. package/node/esm/{BaRfst1euuhquupX.mjs → Apcuz4_QtBHt7G47.mjs} +1 -1
  30. package/node/esm/{b-XRVRI1fYQQMkTC.mjs → Bi2Jwc0zpweaNzKc.mjs} +525 -492
  31. package/node/esm/{D_pCpfdQowV_4Aje.mjs → C0KLMCRb3sbd5Q20.mjs} +5 -5
  32. package/node/esm/{sigD1UFqvPlWUw_9.mjs → CH1DVfFhjdd_3pw1.mjs} +2 -2
  33. package/node/esm/{Be9c1GwQkPo8Piuh.mjs → CNOLkUDURBElaaIf.mjs} +1 -1
  34. package/node/esm/{BiaDWnN3tT7neoRL.mjs → CalVk3o4-kX79s3v.mjs} +1 -1
  35. package/node/esm/{DgGEHydEjD7nfsDB.mjs → Cp1DuCae46eQKzWy.mjs} +1 -1
  36. package/node/esm/{BlxXufqBBg1PtsXd.mjs → CzN6c6KyxVmNvayz.mjs} +1 -1
  37. package/node/esm/{6zApGj9DozhFy-bx.mjs → DKqdv5JubgVaq-g9.mjs} +1 -1
  38. package/node/esm/{umljAT66yb3_rURh.mjs → DWkPWuf5ZrLRMixG.mjs} +118 -110
  39. package/node/esm/{JiQGhLkoL8CJpVvA.mjs → DXiNwr6ZnXBe7TlG.mjs} +1 -1
  40. package/node/esm/{DTMTIrYIK1eZswsM.mjs → DayGI0Bt57FDNbVF.mjs} +1 -1
  41. package/node/esm/{C_SNx7TlFEcwbYjx.mjs → DyetXBW7vFLJWB22.mjs} +1 -1
  42. package/node/esm/{Dj5FM7_-YWhCtCCt.mjs → MWges5ywL3aEdChp.mjs} +1 -1
  43. package/node/esm/{BMVK5plvmBOAIlxP.mjs → T5lfCrudsUnOTxEn.mjs} +1 -1
  44. package/node/esm/YB_qExw23Ci4nMYy.mjs +263 -0
  45. package/node/esm/{DxQZmb-j4NLUO9Af.mjs → bRD1KCpSpAYTEs50.mjs} +1 -1
  46. package/node/esm/chart.mjs +26 -25
  47. package/node/esm/control.mjs +2 -2
  48. package/node/esm/group.mjs +3 -3
  49. package/node/esm/{gpD-9LDW92phhoma.mjs → iL9jKJcnED6oi0B4.mjs} +1 -1
  50. package/node/esm/index.mjs +7658 -6996
  51. package/node/esm/note.mjs +4 -4
  52. package/node/esm/picture.mjs +41 -41
  53. package/node/esm/shape.mjs +50 -49
  54. package/node/esm/slicer.mjs +4 -4
  55. package/package.json +7 -7
  56. package/resources/locales/de/sheet.cmd.json +21 -0
  57. package/resources/locales/de/workbook.cmd.json +6 -0
  58. package/resources/locales/en/sheet.cmd.json +21 -0
  59. package/resources/locales/en/ui.msg.json +2 -0
  60. package/resources/locales/en/workbook.cmd.json +6 -0
  61. package/types/src/border/useBorders.d.ts +2 -2
  62. package/types/src/cell/CellCheckboxRenderer.d.ts +20 -0
  63. package/types/src/cell/CellContent.d.ts +68 -0
  64. package/types/src/cell/CellControlContext.d.ts +37 -0
  65. package/types/src/cell/{FormulaCellRenderer.d.ts → CellFormulaRenderer.d.ts} +5 -5
  66. package/types/src/cell/CellImageRenderer.d.ts +11 -0
  67. package/types/src/cell/CellRenderers.d.ts +190 -0
  68. package/types/src/cell/{SheetCellRenderer.d.ts → CellTextRenderer.d.ts} +9 -6
  69. package/types/src/cell/ColumnButton.d.ts +3 -3
  70. package/types/src/cell/OutlineButton.d.ts +4 -4
  71. package/types/src/cell/SheetHeaderRenderer.d.ts +1 -1
  72. package/types/src/cell/index.d.ts +8 -2
  73. package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
  74. package/types/src/cell/useInsertableCellControls.d.ts +25 -0
  75. package/types/src/chart/ChartEditor.d.ts +2 -0
  76. package/types/src/chart/ChartElement.d.ts +14 -3
  77. package/types/src/chart/paint/_mode.d.ts +6 -0
  78. package/types/src/chart/paint/echarts.d.ts +5 -2
  79. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +8 -0
  80. package/types/src/chart/paint/toEChartsOption.d.ts +11 -0
  81. package/types/src/editableLabel/EditableLabel.d.ts +3 -1
  82. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +1 -1
  83. package/types/src/editor/useFormulaHints.d.ts +1 -1
  84. package/types/src/layer/CellErrorLayer.d.ts +3 -2
  85. package/types/src/layer/CellIndicatorLayer.d.ts +31 -0
  86. package/types/src/layer/HeaderSelectionLayer.d.ts +4 -4
  87. package/types/src/layer/HyperlinkLayer.d.ts +8 -5
  88. package/types/src/layer/ProtectionLayer.d.ts +1 -2
  89. package/types/src/layer/SheetCellLayer.d.ts +11 -4
  90. package/types/src/layer/SheetMovableLayer.d.ts +2 -1
  91. package/types/src/layer/SheetOutlineLayer.d.ts +1 -1
  92. package/types/src/layer/TableLayer.d.ts +1 -1
  93. package/types/src/layer/TableToolbar.d.ts +1 -1
  94. package/types/src/layer/ValidationPromptLayer.d.ts +16 -4
  95. package/types/src/layer/index.d.ts +1 -0
  96. package/types/src/listener/useRangeListener.d.ts +13 -7
  97. package/types/src/movable/DefaultMovable.d.ts +1 -1
  98. package/types/src/movable/MovableControl.d.ts +3 -1
  99. package/types/src/movable/MovableFrame.d.ts +2 -1
  100. package/types/src/movable/MovableLayer.d.ts +6 -3
  101. package/types/src/sheet/ISheetHeaderElement.d.ts +2 -2
  102. package/types/src/sheet/IWorksheetElement.d.ts +21 -22
  103. package/types/src/sheet/SheetCommandProvider.d.ts +3 -0
  104. package/types/src/sheet/SheetOutlineElement.d.ts +2 -2
  105. package/types/src/sheet/SheetPanels.d.ts +2 -2
  106. package/types/src/tabStrip/Sortable.d.ts +5 -5
  107. package/types/src/tabStrip/TabStrip.d.ts +6 -6
  108. package/types/src/tabStrip/TabStripItem.d.ts +15 -13
  109. package/types/src/taskPane/CellControlPane.d.ts +17 -0
  110. package/types/src/taskPane/index.d.ts +1 -0
  111. package/types/src/taskPane/useTaskPane.d.ts +6 -3
  112. package/types/src/workbook/DefaultRenderers.d.ts +4 -4
  113. package/types/src/workbook/IWorkbookElement.d.ts +52 -20
  114. package/types/src/workbook/WorkbookStrip.d.ts +5 -5
  115. package/browser/esm/ugfE7YeZALQURDKF.mjs +0 -241
  116. package/node/esm/DJPgbB1X22YmhbaR.mjs +0 -242
package/node/esm/note.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
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 "./Dj5FM7_-YWhCtCCt.mjs";
8
- import { t as o } from "./DxQZmb-j4NLUO9Af.mjs";
9
- import { t } from "./BMVK5plvmBOAIlxP.mjs";
7
+ import { t as e } from "./MWges5ywL3aEdChp.mjs";
8
+ import { t as o } from "./bRD1KCpSpAYTEs50.mjs";
9
+ import { t } from "./T5lfCrudsUnOTxEn.mjs";
10
10
  import { Color as r, IColor as n, IFont as i, IFontStyle as l, IStroke as a } from "@sheetxl/sdk";
11
11
  import { forwardRef as s, memo as d, useReducer as c } from "react";
12
12
  import { jsx as g } from "react/jsx-runtime";
@@ -1,26 +1,26 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
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 o } from "./Dj5FM7_-YWhCtCCt.mjs";
7
+ import { t as o } from "./MWges5ywL3aEdChp.mjs";
8
8
  import { forwardRef as r, memo as t, useEffect as e, useMemo as i, useReducer as n, useState as l } from "react";
9
9
  import { jsx as a, jsxs as f } from "react/jsx-runtime";
10
- import { useImperativeElement as x } from "@sheetxl/utils-react";
11
- var c = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1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aHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", d = t(r((r, t) => {
12
- const { children: d, disabled: u, style: s, picture: p, zoom: P, description: g, tile: h, offsetX: v = 0, offsetY: Z = 0, isDragging: O, onHide: m, onShow: b, onDragZone: w, adornmentHost: y, flip: C, onKeyDownCapture: F, onFocus: k, onBlur: z, loadingPanel: Q, ...S } = r, [Y, j] = l(!1), [X, W] = l(null), [A, R] = l(null), [q, D] = l(null), [G, H] = n((o) => o + 1, 0);
13
- o(p, { onAnyChange: H }), e(() => {
14
- R(null), p.getDetails().then((o) => {
15
- j(!1), R(o.asUrl()), D(o.asSVGText?.() || null);
10
+ import { useImperativeElement as x, usePendingRender as c } from "@sheetxl/utils-react";
11
+ var d = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtk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JxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", u = t(r((r, t) => {
12
+ const { children: u, disabled: s, style: p, picture: P, zoom: g, description: h, tile: v, offsetX: Z = 0, offsetY: O = 0, isDragging: m, onHide: b, onShow: w, onDragZone: y, adornmentHost: C, flip: F, onKeyDownCapture: k, onFocus: z, onBlur: Q, loadingPanel: S, ...Y } = r, [j, X] = l(!1), [W, A] = l(null), [R, q] = l(null), [D, G] = l(null), [H, V] = n((o) => o + 1, 0);
13
+ o(P, { onAnyChange: V }), c(!j && (v ? !R : !W)), e(() => {
14
+ q(null), P.getDetails().then((o) => {
15
+ X(!1), q(o.asUrl()), G(o.asSVGText?.() || null);
16
16
  }).catch((o) => {
17
- console.warn(o), j(!0), R(c), D(null);
17
+ console.warn(o), X(!0), q(d), G(null);
18
18
  });
19
- }, [p, G]);
20
- const V = x(t, () => ({ isPictureEditor: () => !0 }), []), J = i(() => {
21
- if (A || q) return h ? a("div", { style: {
22
- backgroundPosition: `${v}px ${Z}px`,
23
- backgroundImage: `url(${A})`,
19
+ }, [P, H]);
20
+ const J = x(t, () => ({ isPictureEditor: () => !0 }), []), M = i(() => {
21
+ if (R || D) return v ? a("div", { style: {
22
+ backgroundPosition: `${Z}px ${O}px`,
23
+ backgroundImage: `url(${R})`,
24
24
  backgroundRepeat: "repeat",
25
25
  backgroundSize: "auto",
26
26
  width: "100%",
@@ -31,56 +31,56 @@ var c = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh
31
31
  flex: "1",
32
32
  width: "100%",
33
33
  height: "100%",
34
- border: Y ? "var(--sxl-color-neutral, grey) solid 1px" : void 0,
35
- backgroundColor: Y ? "var(--sxl-color-base-100, white)" : void 0,
36
- boxShadow: Y ? "0px 0px 3px var(--sxl-color-error, red)" : void 0,
37
- objectFit: Y ? "contain" : void 0,
38
- opacity: X ? 1 : 0,
34
+ border: j ? "var(--sxl-color-neutral, grey) solid 1px" : void 0,
35
+ backgroundColor: j ? "var(--sxl-color-base-100, white)" : void 0,
36
+ boxShadow: j ? "0px 0px 3px var(--sxl-color-error, red)" : void 0,
37
+ objectFit: j ? "contain" : void 0,
38
+ opacity: W ? 1 : 0,
39
39
  filter: "var(--sxl-image-filter)"
40
40
  },
41
41
  draggable: !1,
42
- src: A ?? void 0,
42
+ src: R ?? void 0,
43
43
  onLoad: () => {
44
- W(!0);
44
+ A(!0);
45
45
  },
46
46
  onError: ({ currentTarget: o }) => {
47
- console.log("error"), o.onerror = null, R(c), j(!0);
47
+ console.log("error"), o.onerror = null, q(d), X(!0);
48
48
  },
49
- alt: g ?? `${p.getType()}`
49
+ alt: h ?? `${P.getType()}`
50
50
  });
51
51
  }, [
52
- X,
53
- p,
54
- A,
55
- q,
56
- O,
57
- h,
52
+ W,
53
+ P,
54
+ R,
55
+ D,
56
+ m,
58
57
  v,
59
- Z
58
+ Z,
59
+ O
60
60
  ]);
61
- if (p.isDeleted()) return;
62
- const M = C && (C.horizontal || C.vertical) ? `scale(${C.horizontal ? -1 : 1}, ${C.vertical ? -1 : 1})` : void 0;
61
+ if (P.isDeleted()) return;
62
+ const I = F && (F.horizontal || F.vertical) ? `scale(${F.horizontal ? -1 : 1}, ${F.vertical ? -1 : 1})` : void 0;
63
63
  return f("div", {
64
64
  className: "picture-editor",
65
65
  style: {
66
66
  position: "relative",
67
67
  display: "flex",
68
68
  flex: "1 1 100%",
69
- filter: O ? "drop-shadow(1px 1px 1.5px var(--sxl-color-shadow, rgba(0, 0, 0, .25)))" : void 0,
70
- transform: M,
69
+ filter: m ? "drop-shadow(1px 1px 1.5px var(--sxl-color-shadow, rgba(0, 0, 0, .25)))" : void 0,
70
+ transform: I,
71
71
  transformOrigin: "center",
72
- ...s,
72
+ ...p,
73
73
  width: "100%",
74
74
  height: "100%"
75
75
  },
76
76
  tabIndex: 0,
77
- ...S,
77
+ ...Y,
78
78
  onKeyDownCapture: (o) => {
79
- F?.(o);
79
+ k?.(o);
80
80
  },
81
- ref: V,
82
- children: [X || Y ? void 0 : Q, J]
81
+ ref: J,
82
+ children: [W || j ? void 0 : S, M]
83
83
  });
84
84
  }));
85
- d.displayName = "PictureEditor";
86
- export { d as PictureEditor };
85
+ u.displayName = "PictureEditor";
86
+ export { u as PictureEditor };
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
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 "./Dj5FM7_-YWhCtCCt.mjs";
8
- import { n as t } from "./JiQGhLkoL8CJpVvA.mjs";
9
- import { t as n } from "./DxQZmb-j4NLUO9Af.mjs";
10
- import { t as r } from "./Be9c1GwQkPo8Piuh.mjs";
7
+ import { t as e } from "./MWges5ywL3aEdChp.mjs";
8
+ import { n as t } from "./DXiNwr6ZnXBe7TlG.mjs";
9
+ import { t as n } from "./bRD1KCpSpAYTEs50.mjs";
10
+ import { t as r } from "./CNOLkUDURBElaaIf.mjs";
11
11
  import { Color as o, IFill as s, IGeometry as i, IStroke as l, PaintUtils as a, ShapeStyleUtils as c } from "@sheetxl/sdk";
12
12
  import { forwardRef as h, memo as u, useCallback as p, useEffect as d, useId as f, useMemo as m, useReducer as g, useRef as y, useState as x } from "react";
13
13
  import { Fragment as v, jsx as b, jsxs as k } from "react/jsx-runtime";
14
14
  import { BufferUtils as M, messageKey as w } from "@sheetxl/utils";
15
- import { ReactUtils as T, useImperativeElement as C } from "@sheetxl/utils-react";
16
- import { useSurfaceState as $ } from "@sheetxl/grid-react";
15
+ import { useSurfaceState as T } from "@sheetxl/grid-react";
16
+ import { ReactUtils as C, useImperativeElement as $ } from "@sheetxl/utils-react";
17
17
  import { createPortal as S } from "react-dom";
18
18
  var P = 96 / 72, j = (e, t) => {
19
19
  if ("string" != typeof e || !e) return null;
@@ -122,7 +122,7 @@ var P = 96 / 72, j = (e, t) => {
122
122
  }
123
123
  return t.join(" ");
124
124
  }, R = 1e-6, H = (e, t, n, r, o) => {
125
- const s = r ? (o - e) * t.zoom : e * t.zoom, i = T.snapLineCenter(s, n, t.dpr);
125
+ const s = r ? (o - e) * t.zoom : e * t.zoom, i = C.snapLineCenter(s, n, t.dpr);
126
126
  return r ? o - i / t.zoom : i / t.zoom;
127
127
  }, W = (e, t, n) => {
128
128
  const r = G(e), o = r.ends.map((e) => ({
@@ -171,7 +171,7 @@ var P = 96 / 72, j = (e, t) => {
171
171
  for (const t of e.pts) r.push(t);
172
172
  }
173
173
  return i(), D(n.cmds);
174
- }, O = /* @__PURE__ */ new WeakMap(), U = (e) => {
174
+ }, O = /* @__PURE__ */ new WeakMap(), U = { filter: "var(--sxl-image-filter)" }, Z = (e) => {
175
175
  const [t, n] = x(null);
176
176
  return d(() => {
177
177
  if (!e) return;
@@ -193,7 +193,7 @@ var P = 96 / 72, j = (e, t) => {
193
193
  t = !1;
194
194
  };
195
195
  }, [e]), e && t?.resource === e ? t.url : null;
196
- }, Z = (e, t, n, r) => {
196
+ }, J = (e, t, n, r) => {
197
197
  const o = t.stops.map((e, t) => b("stop", {
198
198
  offset: e.offset,
199
199
  stopColor: e.color
@@ -226,11 +226,11 @@ var P = 96 / 72, j = (e, t) => {
226
226
  gradientTransform: `scale(1 ${r / n})`,
227
227
  children: o
228
228
  }, e);
229
- }, J = u(({ paths: e, style: t, width: n, height: r, zoom: o, grid: s, hit: l }) => {
230
- const a = f().replace(/[^A-Za-z0-9_-]/g, ""), c = U(t.image?.resource ?? null), h = ((e, t, n = 1) => {
229
+ }, Q = u(({ paths: e, style: t, width: n, height: r, zoom: o, grid: s, hit: l }) => {
230
+ const a = f().replace(/[^A-Za-z0-9_-]/g, ""), c = Z(t.image?.resource ?? null), h = ((e, t, n = 1) => {
231
231
  const r = (t > 0 ? t : 1) * (n > 0 ? n : 1);
232
232
  return Math.max(1, Math.round(Math.max(0, e || 0) * r)) / r;
233
- })(t.strokeWidth, o, s?.dpr ?? T.getDevicePixelRatio()), u = n > 0 && r > 0, p = u ? t.gradient ?? null : null, d = u ? t.strokeGradient ?? null : null, g = t.image ? c ? `url(#${a}-image)` : null : p ? `url(#${a}-fill)` : t.fill, y = d ? `url(#${a}-stroke)` : t.stroke, x = null !== t.stroke && h > 0, M = x ? ((e, t, n) => {
233
+ })(t.strokeWidth, o, s?.dpr ?? C.getDevicePixelRatio()), u = n > 0 && r > 0, p = u ? t.gradient ?? null : null, d = u ? t.strokeGradient ?? null : null, g = t.image ? c ? `url(#${a}-image)` : null : p ? `url(#${a}-fill)` : t.fill, y = d ? `url(#${a}-stroke)` : t.stroke, x = null !== t.stroke && h > 0, M = x ? ((e, t, n) => {
234
234
  if (!(e && t > 0)) return;
235
235
  const r = "butt" !== n, o = e.map((e, n) => {
236
236
  const o = e * t;
@@ -260,13 +260,13 @@ var P = 96 / 72, j = (e, t) => {
260
260
  x,
261
261
  s,
262
262
  h
263
- ]), C = /* @__PURE__ */ new Set(), $ = [];
263
+ ]), T = /* @__PURE__ */ new Set(), $ = [];
264
264
  for (const n of e) {
265
265
  const e = `p${n.index}`, r = w.get(n.index) ?? n.d;
266
266
  switch (n.layer) {
267
267
  case i.PathLayer.Fill:
268
268
  if (null === g) break;
269
- "norm" !== n.fill && C.add(n.fill), $.push(b("path", {
269
+ "norm" !== n.fill && T.add(n.fill), $.push(b("path", {
270
270
  d: r,
271
271
  fill: g,
272
272
  filter: "norm" !== n.fill ? `url(#${a}-${n.fill})` : void 0,
@@ -308,7 +308,7 @@ var P = 96 / 72, j = (e, t) => {
308
308
  }
309
309
  }
310
310
  const S = [];
311
- for (const e of C) {
311
+ for (const e of T) {
312
312
  const [t, n] = i.FillTransfer[e];
313
313
  S.push(b("filter", {
314
314
  id: `${a}-${e}`,
@@ -332,7 +332,7 @@ var P = 96 / 72, j = (e, t) => {
332
332
  ] })
333
333
  }, e));
334
334
  }
335
- if (p && !t.image && S.push(Z(`${a}-fill`, p, n, r)), d && x && S.push(Z(`${a}-stroke`, d, n, r)), t.image && c) {
335
+ if (p && !t.image && S.push(J(`${a}-fill`, p, n, r)), d && x && S.push(J(`${a}-stroke`, d, n, r)), t.image && c) {
336
336
  const e = t.image.fill.stretch ?? {}, o = n * (e.left ?? 0) / 100, s = r * (e.top ?? 0) / 100, i = Math.max(0, n - o - n * (e.right ?? 0) / 100), l = Math.max(0, r - s - r * (e.bottom ?? 0) / 100);
337
337
  S.push(b("pattern", {
338
338
  id: `${a}-image`,
@@ -347,19 +347,20 @@ var P = 96 / 72, j = (e, t) => {
347
347
  y: s,
348
348
  width: i,
349
349
  height: l,
350
- preserveAspectRatio: "none"
350
+ preserveAspectRatio: "none",
351
+ style: U
351
352
  })
352
353
  }, "image"));
353
354
  }
354
355
  return k(v, { children: [S.length > 0 ? b("defs", { children: S }) : null, $] });
355
356
  });
356
- J.displayName = "PathRun";
357
- var Q = u(({ geometry: e, style: t, zoom: n, grid: r = null, hit: o }) => {
357
+ Q.displayName = "PathRun";
358
+ var V = u(({ geometry: e, style: t, zoom: n, grid: r = null, hit: o }) => {
358
359
  const s = m(() => {
359
360
  const t = [];
360
361
  return e.forEachPath((e) => t.push(e)), t;
361
362
  }, [e]);
362
- return b(J, {
363
+ return b(Q, {
363
364
  paths: s,
364
365
  style: t,
365
366
  width: e.getWidth(),
@@ -369,8 +370,8 @@ var Q = u(({ geometry: e, style: t, zoom: n, grid: r = null, hit: o }) => {
369
370
  hit: o
370
371
  });
371
372
  });
372
- Q.displayName = "ShapePaths";
373
- var V = u(({ handles: e, width: t, height: n, zoom: r, onDrag: o }) => {
373
+ V.displayName = "ShapePaths";
374
+ var X = u(({ handles: e, width: t, height: n, zoom: r, onDrag: o }) => {
374
375
  const s = y(null), i = y(null), [l, a] = x(!1), c = p((e) => {
375
376
  const t = s.current, n = t?.getScreenCTM();
376
377
  if (!t || !n) return null;
@@ -449,29 +450,29 @@ var V = u(({ handles: e, width: t, height: n, zoom: r, onDrag: o }) => {
449
450
  }, e.index))
450
451
  });
451
452
  });
452
- V.displayName = "ShapeHandles";
453
- var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e.getHeight() === n ? e : X(t, n) ? e.resize(t, n) : null, _ = (e) => {
453
+ X.displayName = "ShapeHandles";
454
+ var Y = (e, t) => e > 0 || t > 0, _ = (e, t, n) => !e || e.getWidth() === t && e.getHeight() === n ? e : Y(t, n) ? e.resize(t, n) : null, q = (e) => {
454
455
  const t = [];
455
456
  return e.forEachConnection((e) => t.push(e)), t;
456
- }, q = u(h((o, i) => {
457
+ }, K = u(h((o, i) => {
457
458
  const { children: h, disabled: u, style: f, shape: v, movable: M, zoom: N = 1, isDragging: A, onHide: I, onShow: F, onDragZone: G, adornmentHost: D, flip: R, gesture: H, debugGeometry: W = !1, ...B } = o, O = t()?.getStyles() ?? null, [U, Z] = g((e) => e + 1, 0);
458
459
  e(v, { onAnyChange: Z }), e(M ?? null, {
459
460
  onBoundsChange: Z,
460
461
  onSelectionChange: Z
461
462
  });
462
- const J = v.toJSON(), { width: q, height: K, rotation: ee, content: te } = ((e) => {
463
- const [t] = $("movable-drag", null), n = e ? t?.[e.getId()] : void 0, r = n?.bounds ?? e?.getBounds();
463
+ const J = v.toJSON(), { width: Q, height: K, rotation: ee, content: te } = ((e) => {
464
+ const [t] = T("movable-drag", null), n = e ? t?.[e.getId()] : void 0, r = n?.bounds ?? e?.getBounds();
464
465
  return {
465
466
  width: r?.width ?? 0,
466
467
  height: r?.height ?? 0,
467
468
  rotation: n?.rotation ?? (e?.getRotation() || 0),
468
469
  content: n?.content ?? null
469
470
  };
470
- })(M), ne = v.getShapeType(), re = v.getAdjustments(), oe = X(q, K), [se, ie] = x(null), le = y(0);
471
+ })(M), ne = v.getShapeType(), re = v.getAdjustments(), oe = Y(Q, K), [se, ie] = x(null), le = y(0);
471
472
  d(() => {
472
473
  if (!oe) return void ie(null);
473
474
  const e = ++le.current, t = v.getShapeType();
474
- v.getGeometry(q, K).then((n) => {
475
+ v.getGeometry(Q, K).then((n) => {
475
476
  le.current === e && ie(n ? {
476
477
  shapeType: t,
477
478
  geometry: n
@@ -481,7 +482,7 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
481
482
  });
482
483
  }, [
483
484
  v,
484
- q,
485
+ Q,
485
486
  K,
486
487
  U
487
488
  ]);
@@ -489,7 +490,7 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
489
490
  d(() => {
490
491
  if (!ae || !oe || ce?.shapeType === ae) return;
491
492
  let e = !0;
492
- return v.getGeometry(q, K, { shapeType: ae }).then((t) => {
493
+ return v.getGeometry(Q, K, { shapeType: ae }).then((t) => {
493
494
  e && t && he({
494
495
  shapeType: ae,
495
496
  geometry: t
@@ -504,13 +505,13 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
504
505
  ]);
505
506
  const ue = m(() => {
506
507
  const e = se?.shapeType === ne ? se : ce?.shapeType === ne ? ce : null;
507
- return e ? Y(e.geometry, q, K)?.withAdjustments(re) ?? null : Y(se?.geometry ?? null, q, K);
508
+ return e ? _(e.geometry, Q, K)?.withAdjustments(re) ?? null : _(se?.geometry ?? null, Q, K);
508
509
  }, [
509
510
  se,
510
511
  ce,
511
512
  ne,
512
513
  re,
513
- q,
514
+ Q,
514
515
  K
515
516
  ]), pe = p((e) => v.getResource(e), [v]);
516
517
  d(() => {
@@ -556,13 +557,13 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
556
557
  de
557
558
  ]), [me, ge] = x(null), ye = void 0 !== te?.adjustments ? te.adjustments : me ?? void 0, xe = m(() => {
558
559
  if (ae && ce?.shapeType !== ae) return ue;
559
- const e = ae ? Y(ce.geometry, q, K) : ue;
560
+ const e = ae ? _(ce.geometry, Q, K) : ue;
560
561
  return e && void 0 !== ye ? e.withAdjustments(ye) : e;
561
562
  }, [
562
563
  ue,
563
564
  ae,
564
565
  ce,
565
- q,
566
+ Q,
566
567
  K,
567
568
  ye
568
569
  ]), ve = y(null), [be, ke] = x(!1), Me = p((e, t, n, r) => {
@@ -596,17 +597,17 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
596
597
  ]), we = m(() => {
597
598
  const e = [];
598
599
  return xe?.forEachHandle((t) => e.push(t)), e;
599
- }, [xe]), Te = C(i, () => ({ isShapeEditor: () => !0 }), []), Ce = R ?? M?.getFlip(), $e = Ce?.horizontal ?? !1, Se = Ce?.vertical ?? !1, Pe = ee % 360 != 0, je = m(() => !Pe && X(q, K) ? {
600
- dpr: T.getDevicePixelRatio(),
600
+ }, [xe]), Te = $(i, () => ({ isShapeEditor: () => !0 }), []), Ce = R ?? M?.getFlip(), $e = Ce?.horizontal ?? !1, Se = Ce?.vertical ?? !1, Pe = ee % 360 != 0, je = m(() => !Pe && Y(Q, K) ? {
601
+ dpr: C.getDevicePixelRatio(),
601
602
  zoom: N,
602
- width: q,
603
+ width: Q,
603
604
  height: K,
604
605
  flipH: $e,
605
606
  flipV: Se
606
607
  } : null, [
607
608
  Pe,
608
609
  N,
609
- q,
610
+ Q,
610
611
  K,
611
612
  $e,
612
613
  Se
@@ -617,9 +618,9 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
617
618
  transformOrigin: "center"
618
619
  };
619
620
  let Ae = null;
620
- Ee && we.length > 0 && (Ae = b(V, {
621
+ Ee && we.length > 0 && (Ae = b(X, {
621
622
  handles: we,
622
- width: q,
623
+ width: Q,
623
624
  height: K,
624
625
  zoom: N,
625
626
  onDrag: Me
@@ -652,10 +653,10 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
652
653
  pointerEvents: "none"
653
654
  },
654
655
  children: [
655
- X(q, K) ? k("svg", {
656
+ Y(Q, K) ? k("svg", {
656
657
  className: "shape-geometry",
657
- viewBox: `0 0 ${q > 0 ? q : 1 / N} ${K > 0 ? K : 1 / N}`,
658
- width: q > 0 ? "100%" : "1px",
658
+ viewBox: `0 0 ${Q > 0 ? Q : 1 / N} ${K > 0 ? K : 1 / N}`,
659
+ width: Q > 0 ? "100%" : "1px",
659
660
  height: K > 0 ? "100%" : "1px",
660
661
  preserveAspectRatio: "none",
661
662
  overflow: "visible",
@@ -667,7 +668,7 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
667
668
  pointerEvents: "none",
668
669
  filter: Ee ? "drop-shadow(1px 1px 2px rgba(0,0,0,.15))" : void 0
669
670
  },
670
- children: [xe ? b(Q, {
671
+ children: [xe ? b(V, {
671
672
  geometry: xe,
672
673
  style: fe,
673
674
  zoom: N,
@@ -684,7 +685,7 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
684
685
  stroke: "#c00",
685
686
  strokeWidth: 1 / N,
686
687
  strokeDasharray: `${4 / N} ${2 / N}`
687
- }), _(xe).map((e) => b("rect", {
688
+ }), q(xe).map((e) => b("rect", {
688
689
  x: e.x - 3 / N,
689
690
  y: e.y - 3 / N,
690
691
  width: 6 / N,
@@ -731,5 +732,5 @@ var X = (e, t) => e > 0 || t > 0, Y = (e, t, n) => !e || e.getWidth() === t && e
731
732
  ]
732
733
  });
733
734
  }));
734
- q.displayName = "ShapeEditor";
735
- export { q as ShapeEditor };
735
+ K.displayName = "ShapeEditor";
736
+ export { K as ShapeEditor };
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.11
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 "./Dj5FM7_-YWhCtCCt.mjs";
8
- import { n as t } from "./JiQGhLkoL8CJpVvA.mjs";
9
- import { i as r, r as o, t as l } from "./BiaDWnN3tT7neoRL.mjs";
7
+ import { t as e } from "./MWges5ywL3aEdChp.mjs";
8
+ import { n as t } from "./DXiNwr6ZnXBe7TlG.mjs";
9
+ import { i as r, r as o, t as l } from "./CalVk3o4-kX79s3v.mjs";
10
10
  import { forwardRef as i, memo as n, useCallback as s, useEffect as a, useLayoutEffect as c, useMemo as d, useReducer as h, useRef as p, useState as u } from "react";
11
11
  import { jsx as g, jsxs as m } from "react/jsx-runtime";
12
12
  import { useImperativeElement as f, useNotifier as x, useTranslator as y } from "@sheetxl/utils-react";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/react",
3
3
  "description": "React - React components needed to build advanced grid and spreadsheet UIs.",
4
- "version": "0.8.0-beta.11",
4
+ "version": "0.8.0-beta.12",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -89,11 +89,11 @@
89
89
  "@dnd-kit/modifiers": "^9.0.0",
90
90
  "@dnd-kit/sortable": "^10.0.0",
91
91
  "@dnd-kit/utilities": "^3.2.2",
92
- "@sheetxl/grid-react": "^0.8.0-beta.11",
93
- "@sheetxl/io": "^0.8.0-beta.11",
94
- "@sheetxl/sdk": "^0.8.0-beta.11",
95
- "@sheetxl/utils": "^0.8.0-beta.11",
96
- "@sheetxl/utils-react": "^0.8.0-beta.11",
92
+ "@sheetxl/grid-react": "^0.8.0-beta.12",
93
+ "@sheetxl/io": "^0.8.0-beta.12",
94
+ "@sheetxl/sdk": "^0.8.0-beta.12",
95
+ "@sheetxl/utils": "^0.8.0-beta.12",
96
+ "@sheetxl/utils-react": "^0.8.0-beta.12",
97
97
  "clsx": "^2.1.1",
98
98
  "echarts": "~6.1.0",
99
99
  "react-merge-refs": "^3.0.2",
@@ -104,7 +104,7 @@
104
104
  "react-dom": "^19.0.0"
105
105
  },
106
106
  "devDependencies": {
107
- "@sheetxl/io-xlsx": "^0.8.0-beta.11",
107
+ "@sheetxl/io-xlsx": "^0.8.0-beta.12",
108
108
  "@types/react": "^19.3.0",
109
109
  "@types/react-dom": "^19.3.0"
110
110
  }
@@ -1395,6 +1395,27 @@
1395
1395
  "ctrl+L"
1396
1396
  ]
1397
1397
  },
1398
+ "insertCheckbox": {
1399
+ "label": "Kontrollkästchen",
1400
+ "description": "Kontrollkästchen in die markierten Zellen einfügen. Ein aktiviertes Kästchen ist WAHR, ein deaktiviertes FALSCH.",
1401
+ "icon": "CheckboxInsert",
1402
+ "tags": [
1403
+ "mutator"
1404
+ ]
1405
+ },
1406
+ "insertCellControl": {
1407
+ "label": "Zellsteuerelement",
1408
+ "description": "Ein Zellsteuerelement des angegebenen Typs in die markierten Zellen einfügen; vorhandene Steuerelemente werden ersetzt, die Werte bleiben. Ein Werttyp, etwa eine Schaltfläche, ersetzt stattdessen die Werte.",
1409
+ "icon": "CheckboxInsert",
1410
+ "tags": [
1411
+ "mutator"
1412
+ ]
1413
+ },
1414
+ "formatCellControl": {
1415
+ "label": "Steuerelement-Optionen",
1416
+ "description": "Die Optionen des Zellsteuerelements unter der aktiven Zelle anzeigen.",
1417
+ "icon": "CellsFormat"
1418
+ },
1398
1419
  "editTable": {
1399
1420
  "label": "Tabelle bearbeiten…",
1400
1421
  "groupLabels": {
@@ -232,6 +232,12 @@
232
232
  "icon": "Calculate",
233
233
  "shortcut": "ctrl+alt+F9"
234
234
  },
235
+ "refreshAll": {
236
+ "label": "Alle aktualisieren",
237
+ "description": "Die neuesten Daten aus allen Quellen der Arbeitsmappe abrufen: alle Formeln neu berechnen, was ihre Funktionen aus dem Web lesen erneut abrufen statt aus der Kopie in der Arbeitsmappe, und alle externen Verknüpfungen aktualisieren.",
238
+ "icon": "RefreshAll",
239
+ "shortcut": "ctrl+alt+F5"
240
+ },
235
241
  "calcModeAutomatic": {
236
242
  "label": "Automatisch",
237
243
  "description": "Formeln neu berechnen, sobald sich ihre Eingaben ändern."
@@ -1408,6 +1408,27 @@
1408
1408
  "ctrl+L"
1409
1409
  ]
1410
1410
  },
1411
+ "insertCheckbox": {
1412
+ "label": "Checkbox",
1413
+ "description": "Insert checkboxes in the selected cells. A checked box is TRUE and an unchecked box is FALSE.",
1414
+ "icon": "CheckboxInsert",
1415
+ "tags": [
1416
+ "mutator"
1417
+ ]
1418
+ },
1419
+ "insertCellControl": {
1420
+ "label": "Cell Control",
1421
+ "description": "Insert a cell control of the given type in the selected cells, replacing any control there and keeping the values. A value type, such as a button, replaces the values instead.",
1422
+ "icon": "CheckboxInsert",
1423
+ "tags": [
1424
+ "mutator"
1425
+ ]
1426
+ },
1427
+ "formatCellControl": {
1428
+ "label": "Control Options",
1429
+ "description": "Show the options of the cell control under the active cell.",
1430
+ "icon": "CellsFormat"
1431
+ },
1411
1432
  "editTable": {
1412
1433
  "label": "Edit Table…",
1413
1434
  "description": "Edit the table to adjust formatting, sorting, filtering, or other advanced features.",
@@ -10,6 +10,8 @@
10
10
  "autoFill.preset.linear": "Linear",
11
11
  "autoFill.preset.linearTrend": "Linear Trend",
12
12
  "autoFill.preset.series": "AutoFill",
13
+ "cellControl.pane.empty": "Select a cell with a control to see its options.",
14
+ "cellControl.pane.none": "This control has no options.",
13
15
  "cellError.description.blocked": "Access to the data was blocked",
14
16
  "cellError.description.busy": "The value is still being calculated",
15
17
  "cellError.description.calc": "The formula cannot be calculated, for example an empty array",
@@ -232,6 +232,12 @@
232
232
  "icon": "Calculate",
233
233
  "shortcut": "ctrl+alt+F9"
234
234
  },
235
+ "refreshAll": {
236
+ "label": "Refresh All",
237
+ "description": "Get the latest data from every source the workbook reads: recalculate every formula, fetch what its functions read from the web again rather than from the copy the workbook keeps, and update every external link.",
238
+ "icon": "RefreshAll",
239
+ "shortcut": "ctrl+alt+F5"
240
+ },
235
241
  "calcModeAutomatic": {
236
242
  "label": "Automatic",
237
243
  "description": "Recalculate formulas whenever their inputs change."
@@ -143,9 +143,9 @@ export interface UseBorderOptions {
143
143
  }
144
144
  export interface UseBorderResults {
145
145
  /**
146
- * Array of functions that return components to overlay
146
+ * Draws a pane's borders, or `null` when it has none.
147
147
  */
148
- renderLayer?: (props: React.HTMLProps<HTMLDivElement>, pane: IGridPane) => React.ReactNode;
148
+ renderLayer?: (pane: IGridPane) => React.ReactNode;
149
149
  }
150
150
  /**
151
151
  * useBorders
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { CellContentEntry, CellContentRendererProps } from './CellRenderers';
3
+ /**
4
+ * The checkbox cell control: `TRUE` draws checked, `FALSE` and blank draw unchecked, and a press on
5
+ * the box writes the other.
6
+ *
7
+ * @remarks
8
+ * The box takes the cell's font color and scales with its font size, and sits centered on the line
9
+ * the cell's text would paint in. Under General alignment it is centered, as Excel centers a
10
+ * boolean; an explicit left or right alignment moves it to that edge.
11
+ * A formula cell draws the box but takes no press: it is drawn disabled, and a press on it selects
12
+ * the cell as a press on any cell does.
13
+ */
14
+ export declare const CellCheckboxRenderer: (props: CellContentRendererProps) => React.ReactElement;
15
+ /**
16
+ * What the checkbox control contributes to the UI: the box, the press that writes the other value,
17
+ * and Space, which toggles every checkbox the selection touches.
18
+ */
19
+ export declare const CheckboxCellContent: CellContentEntry;
20
+ //# sourceMappingURL=CellCheckboxRenderer.d.ts.map