@sheetxl/react 0.8.0-beta.12 → 0.8.0-beta.14

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 (87) hide show
  1. package/browser/esm/{DGG1auUKsjFbAazu.mjs → 3bA4ZNVK9px28j8g.mjs} +3 -3
  2. package/browser/esm/{CUekkfE6uwwsdQpc.mjs → B1mBZyt2eP2CpVwp.mjs} +1 -1
  3. package/browser/esm/{ZoS0cpNEBcv6p-Z1.mjs → B9bUlu6d3vrRZxS-.mjs} +3 -3
  4. package/browser/esm/BAhJx_sa3wR4i_0q.mjs +145 -0
  5. package/browser/esm/{BDlpRkuBok0Uu4Hn.mjs → BCZ5elyhp4P5oEuf.mjs} +1 -1
  6. package/browser/esm/BLYs69szBviI7Jjh.mjs +303 -0
  7. package/browser/esm/{D_usN3pWuCJU2GN-.mjs → BNyPX5tVpHU3d3Vj.mjs} +2 -2
  8. package/browser/esm/{_6Sb6ElRcZftxMNh.mjs → BSqY5OuRUNgKmwp8.mjs} +1 -1
  9. package/browser/esm/{D22NJmTiky4NL8tM.mjs → Bk4hW9MxdjC3CGlC.mjs} +1 -1
  10. package/browser/esm/{D2GydDzPuvIjdpok.mjs → BoJ5N_Kc7V9zyftG.mjs} +1 -1
  11. package/browser/esm/{C_LUq-BnguetvGZz.mjs → C1yjI8GDwCp8bC1Z.mjs} +2 -2
  12. package/browser/esm/{LBQDhVhz7S7i6a8i.mjs → C6TgQuQt88nz0-jL.mjs} +1 -1
  13. package/browser/esm/{CSFORKZ8zrVL_Y0w.mjs → CAT9L5BY3HAluoJf.mjs} +1 -1
  14. package/browser/esm/{DxEczXCHTerDemDP.mjs → CDf6czK5WuKJhq0y.mjs} +4 -4
  15. package/browser/esm/CoRairrEG42TjiZk.mjs +19 -0
  16. package/browser/esm/CuPu7ToiaqUerd85.mjs +401 -0
  17. package/browser/esm/{BapujiblfiXDlu67.mjs → D0Sg0TONmNBjIlEg.mjs} +1 -1
  18. package/browser/esm/{Cslk_qRdBSuJIi1O.mjs → DxwO-Y_gJ9IaBQ4B.mjs} +6 -6
  19. package/browser/esm/{DN3lqq95KY0K6f1x.mjs → K9YyKehkJlT3axZh.mjs} +1 -1
  20. package/browser/esm/NG_Q0Dq4JXnEWACp.mjs +341 -0
  21. package/browser/esm/{B4mT3G7GHwgDYFGP.mjs → PL83wgS5ferhptps.mjs} +2 -2
  22. package/browser/esm/chart.mjs +3 -3
  23. package/browser/esm/control.mjs +74 -73
  24. package/browser/esm/group.mjs +3 -3
  25. package/browser/esm/index.mjs +3971 -3744
  26. package/browser/esm/{CtGhA0kS2MCfEsHN.mjs → nm3DZw1nJMIh89Dx.mjs} +3 -3
  27. package/browser/esm/note.mjs +5 -5
  28. package/browser/esm/picture.mjs +2 -81
  29. package/browser/esm/shape.mjs +2 -2
  30. package/browser/esm/slicer.mjs +112 -111
  31. package/browser/esm/{Ck1LbcsdSfKNi6xq.mjs → wQh060x4Bo_NqUYk.mjs} +1 -1
  32. package/node/esm/6VFNx4NTcuHaXbnF.mjs +146 -0
  33. package/node/esm/{CzN6c6KyxVmNvayz.mjs → BBm7LjTGVud73kml.mjs} +1 -1
  34. package/node/esm/{CH1DVfFhjdd_3pw1.mjs → BayAQ4VhPgK40T5V.mjs} +2 -2
  35. package/node/esm/{T5lfCrudsUnOTxEn.mjs → BgH9YejvQpQrZeHl.mjs} +1 -1
  36. package/node/esm/{iL9jKJcnED6oi0B4.mjs → ByTkh2-kGcBTZn9j.mjs} +1 -1
  37. package/node/esm/{DayGI0Bt57FDNbVF.mjs → C0HgFe1pYpEl1EgM.mjs} +1 -1
  38. package/node/esm/{MWges5ywL3aEdChp.mjs → CEyXz1TulkCpAv0t.mjs} +1 -1
  39. package/node/esm/{C0KLMCRb3sbd5Q20.mjs → CMSfxUMv1tFyNlRJ.mjs} +5 -5
  40. package/node/esm/{DWkPWuf5ZrLRMixG.mjs → CZfiN5xD1_Zws8z-.mjs} +15 -15
  41. package/node/esm/{DXiNwr6ZnXBe7TlG.mjs → D-lQa7ydREp9WwxP.mjs} +1 -1
  42. package/node/esm/{Bi2Jwc0zpweaNzKc.mjs → D2dDGnBtilmmDxBJ.mjs} +2 -2
  43. package/node/esm/{CNOLkUDURBElaaIf.mjs → DA6UdPMREzxobL8H.mjs} +3 -3
  44. package/node/esm/{YB_qExw23Ci4nMYy.mjs → Duu2zmr8YkGTo-iP.mjs} +2 -2
  45. package/node/esm/{Apcuz4_QtBHt7G47.mjs → Dztz6JUUcE4NG6sn.mjs} +1 -1
  46. package/node/esm/ShpbUw8_QnOxZu2h.mjs +19 -0
  47. package/node/esm/{DyetXBW7vFLJWB22.mjs → _OzLYz_iliC3tcW2.mjs} +1 -1
  48. package/node/esm/chart.mjs +2 -2
  49. package/node/esm/control.mjs +79 -78
  50. package/node/esm/eG-mlQfoOvRwAwU1.mjs +406 -0
  51. package/node/esm/{DKqdv5JubgVaq-g9.mjs → fhOm7EkeM-0FAdDI.mjs} +1 -1
  52. package/node/esm/group.mjs +3 -3
  53. package/node/esm/index.mjs +6469 -6242
  54. package/node/esm/note.mjs +18 -18
  55. package/node/esm/picture.mjs +269 -50
  56. package/node/esm/{CalVk3o4-kX79s3v.mjs → r0Bg1Uwd5WHBFQyj.mjs} +1 -1
  57. package/node/esm/shape.mjs +186 -580
  58. package/node/esm/slicer.mjs +51 -50
  59. package/node/esm/{bRD1KCpSpAYTEs50.mjs → wtQ7d7f37N1tuJZB.mjs} +1 -1
  60. package/package.json +7 -7
  61. package/resources/locales/de/picture.cmd.json +157 -0
  62. package/resources/locales/de/sheet.cmd.json +24 -2
  63. package/resources/locales/de/ui.msg.json +3 -0
  64. package/resources/locales/en/picture.cmd.json +157 -0
  65. package/resources/locales/en/sheet.cmd.json +24 -2
  66. package/resources/locales/en/ui.msg.json +3 -0
  67. package/types/src/chart/ChartCommands.d.ts +1 -1
  68. package/types/src/chart/paint/_graphics.d.ts +0 -8
  69. package/types/src/chart/paint/echarts.d.ts +1 -1
  70. package/types/src/chart/paint/index.d.ts +1 -1
  71. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +1 -1
  72. package/types/src/chart/paint/kinds/_builtIns.d.ts +0 -9
  73. package/types/src/chart/paint/toEChartsOption.d.ts +1 -1
  74. package/types/src/layer/CircularIndicatorLayer.d.ts +1 -1
  75. package/types/src/layer/HyperlinkLayer.d.ts +13 -9
  76. package/types/src/layer/_visibleCellFeatures.d.ts +11 -0
  77. package/types/src/layer/useValidationPicker.d.ts +1 -1
  78. package/types/src/movable/useFramePreview.d.ts +17 -0
  79. package/types/src/picture/PictureCommands.d.ts +8 -0
  80. package/types/src/picture/_pictureHyperlink.d.ts +13 -0
  81. package/types/src/picture/pictureCrop.d.ts +32 -0
  82. package/types/src/sheet/_hyperlinkEdit.d.ts +7 -0
  83. package/types/src/sheet/circularReferences.d.ts +1 -1
  84. package/types/src/theme/buildDocThemeCSS.d.ts +4 -1
  85. package/browser/esm/BR-AiOwuQlYh5-tr.mjs +0 -730
  86. package/browser/esm/DhYQRc8L2kALmFNz.mjs +0 -75
  87. package/node/esm/Cp1DuCae46eQKzWy.mjs +0 -76
@@ -1,75 +0,0 @@
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 { PictureEditor as e } from "./picture.mjs";
8
- import { jsx as t } from "react/jsx-runtime";
9
- import { DOMUtils as n, messageKey as r, t as i } from "@sheetxl/utils";
10
- import { NotifierType as a } from "@sheetxl/utils-react";
11
- var o = {
12
- renderer: (n) => {
13
- let r = n.movable.getContent();
14
- return t(e, {
15
- loadingPanel: t("div", { style: {
16
- position: "absolute",
17
- width: "100%",
18
- height: "100%"
19
- } }),
20
- picture: r,
21
- description: r.getDescription() ?? r.getName?.() ?? void 0,
22
- ...n
23
- });
24
- },
25
- commands: (e, t) => {
26
- let { sheet: o, movable: s, notifier: c } = t, l = s.getContent(), u = async (e) => {
27
- let t = await (async (e) => {
28
- let t = await Promise.resolve(c?.showBusy?.(i(r("op.setPictureResource"))) ?? null);
29
- try {
30
- let t = o.getResources().add(e);
31
- return await t.toBuffer(), t;
32
- } catch (e) {
33
- let t = e;
34
- if (typeof t != "string") {
35
- console.warn(e);
36
- let n = typeof e?.cause == "string" ? e.cause : "", r = typeof e?.message == "string" ? e.message : "";
37
- n && (r = r ? `${r} (${n})` : n), t = i("error.insertImage.unresolved", { detail: r });
38
- }
39
- return c?.showMessage?.(t, { type: a.Error }), null;
40
- } finally {
41
- t?.();
42
- }
43
- })(e);
44
- t && l.setResource(t);
45
- };
46
- e.updateCommand("changePictureFromFile", {
47
- tags: ["noTransaction", "noRepeat"],
48
- callback: async (e) => {
49
- let t = null, r = null;
50
- typeof e == "string" ? r = e : t = e ?? null, (t || (t = await n.openFileDialog(r ?? "image/*"), t)) && await u({ source: { file: await Promise.resolve(t) } });
51
- }
52
- }), e.updateCommand("changePictureFromURL", {
53
- tags: ["noTransaction", "noRepeat"],
54
- callback: async (e) => {
55
- if (!e) {
56
- let t = await c?.showInput?.({
57
- title: i("dialog.changePicture.title"),
58
- description: i("dialog.changePicture.description"),
59
- inputLabel: i("dialog.insertImage.inputLabel"),
60
- initialValue: "https://picsum.photos/360",
61
- propsInput: { style: { minWidth: "440px" } },
62
- options: [{
63
- id: "Change",
64
- label: () => i("dialog.change")
65
- }]
66
- });
67
- if (!t || t.option !== "Change") return;
68
- e = t.input;
69
- }
70
- e && await u({ source: { fetch: e } });
71
- }
72
- });
73
- }
74
- };
75
- export { o as PictureKind };
@@ -1,76 +0,0 @@
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 { PictureEditor as e } from "./picture.mjs";
8
- import { jsx as t } from "react/jsx-runtime";
9
- import { DOMUtils as i, messageKey as o, t as a } from "@sheetxl/utils";
10
- import { NotifierType as n } from "@sheetxl/utils-react";
11
- var s = {
12
- renderer: (i) => {
13
- const o = i.movable.getContent();
14
- return t(e, {
15
- loadingPanel: t("div", { style: {
16
- position: "absolute",
17
- width: "100%",
18
- height: "100%"
19
- } }),
20
- picture: o,
21
- description: o.getDescription() ?? o.getName?.() ?? void 0,
22
- ...i
23
- });
24
- },
25
- commands: (e, t) => {
26
- const { sheet: s, movable: r, notifier: l } = t, c = r.getContent(), u = async (e) => {
27
- const t = await (async (e) => {
28
- const t = await Promise.resolve(l?.showBusy?.(a(o("op.setPictureResource"))) ?? null);
29
- try {
30
- const t = s.getResources().add(e);
31
- return await t.toBuffer(), t;
32
- } catch (e) {
33
- let t = e;
34
- if ("string" != typeof t) {
35
- console.warn(e);
36
- const i = "string" == typeof e?.cause ? e.cause : "";
37
- let o = "string" == typeof e?.message ? e.message : "";
38
- i && (o = o ? `${o} (${i})` : i), t = a("error.insertImage.unresolved", { detail: o });
39
- }
40
- return l?.showMessage?.(t, { type: n.Error }), null;
41
- } finally {
42
- t?.();
43
- }
44
- })(e);
45
- t && c.setResource(t);
46
- };
47
- e.updateCommand("changePictureFromFile", {
48
- tags: ["noTransaction", "noRepeat"],
49
- callback: async (e) => {
50
- let t = null, o = null;
51
- "string" == typeof e ? o = e : t = e ?? null, (t || (t = await i.openFileDialog(o ?? "image/*"), t)) && await u({ source: { file: await Promise.resolve(t) } });
52
- }
53
- }), e.updateCommand("changePictureFromURL", {
54
- tags: ["noTransaction", "noRepeat"],
55
- callback: async (e) => {
56
- if (!e) {
57
- const t = await l?.showInput?.({
58
- title: a("dialog.changePicture.title"),
59
- description: a("dialog.changePicture.description"),
60
- inputLabel: a("dialog.insertImage.inputLabel"),
61
- initialValue: "https://picsum.photos/360",
62
- propsInput: { style: { minWidth: "440px" } },
63
- options: [{
64
- id: "Change",
65
- label: () => a("dialog.change")
66
- }]
67
- });
68
- if (!t || "Change" !== t.option) return;
69
- e = t.input;
70
- }
71
- e && await u({ source: { fetch: e } });
72
- }
73
- });
74
- }
75
- };
76
- export { s as PictureKind };