@sheetxl/studio-vanilla 0.3.5 → 0.3.6

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 (90) hide show
  1. package/browser/cjs/{6e91IXsvk9_k3W5c.cjs → 3JKPVnbyR3hJBHBj.cjs} +2 -2
  2. package/browser/cjs/B1_gRcAH1cv26X_U.cjs +301 -0
  3. package/browser/cjs/{BwocMiKAPb8s__1Z.cjs → B2fgcYTdhA0facdy.cjs} +2 -2
  4. package/browser/cjs/B5cmz4f50xr5iF-S.cjs +19 -0
  5. package/browser/cjs/{-aNm3r-RpjcRRCbw.cjs → B7eLEpR9cmunfRfq.cjs} +2 -2
  6. package/browser/cjs/{CuY7mAREmYhHuYWx.cjs → BDUaerzhOJJZeQgS.cjs} +2 -2
  7. package/browser/cjs/{BN0MiwKQ8NjKXgue.cjs → BDcLV5_cJTh8yhJI.cjs} +3 -3
  8. package/browser/cjs/{Bg9KIoDuqtkhIYfN.cjs → BOSNEoFPpJAjkRsv.cjs} +1 -1
  9. package/browser/cjs/{DIawrhwQ7E_1l99b.cjs → BSfmlz8MvlIKFx_N.cjs} +6 -6
  10. package/browser/cjs/{DKsZXMMHWKP9IZ4E.cjs → Bdhft6pu1-bwMbfv.cjs} +1 -1
  11. package/browser/cjs/{Ya4f5p9go_UndgNy.cjs → BmbGW13BR2649OAV.cjs} +2 -2
  12. package/browser/cjs/{CdWBtYv7LuuDLPL2.cjs → Bu6q4vuUt_6LDbk_.cjs} +1 -1
  13. package/browser/cjs/{yvA5FY7oe6FILMqB.cjs → CXe_6K7OT1AVSgAV.cjs} +1 -1
  14. package/browser/cjs/ChqJwXboF-6-bjIC.cjs +6 -0
  15. package/browser/cjs/{DeAt9vyyaeB2vbxQ.cjs → CyA00uY0ivUSWJ17.cjs} +2 -2
  16. package/browser/cjs/{CvESC6HiL0-peppq.cjs → D1jsD18kKrFBRLo8.cjs} +4 -4
  17. package/browser/cjs/{BW_fZwvTtMLqteuJ.cjs → DC0sGYXEVcjL3fEu.cjs} +1 -1
  18. package/browser/cjs/{BLHbDre9R0bvyb9G.cjs → DQJ0sG5gEZSPPLGp.cjs} +2 -2
  19. package/browser/cjs/{Biyqj-Wu75uxLHv1.cjs → DUIyD1-nWzOytYDo.cjs} +2 -2
  20. package/browser/cjs/{DKit140jXAUUSf-_.cjs → D_RushRsBoa4Hd6w.cjs} +2 -2
  21. package/browser/cjs/{hSI9QVPgIxqt3pXc.cjs → D_gx4EJ1Z1jqCpC2.cjs} +1 -1
  22. package/browser/cjs/{qjPE6k7aYlu-R90s.cjs → Dgv9C5kP5-0zdZ_n.cjs} +2 -2
  23. package/browser/cjs/{DCWZ2ZkLp-Horeca.cjs → Dp_f-iB1lirYu5mz.cjs} +1 -1
  24. package/browser/cjs/{BNtn_2pcq6Dd-2HL.cjs → P2nQEqe-ae2Lk91E.cjs} +3 -3
  25. package/browser/cjs/{BiiW2FlRZHxGIWso.cjs → SvTvsTn26UgPTXmE.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{D7NgrO__M-IUmM8o.cjs → oIH2DXvUemx8KBZE.cjs} +1 -1
  28. package/{cdn/assets/mq5uPzTIc1x8unBP.js → browser/esm/BEdBgMB0JXu6qm1p.mjs} +1 -1
  29. package/browser/esm/{DFa_tXqv1VN1OZdv.mjs → BUVsXfFhbzBtVoTV.mjs} +17 -17
  30. package/browser/esm/{Q1yWEkJBu4cVEF33.mjs → BWoHBg8cjtJL9xBv.mjs} +6 -6
  31. package/browser/esm/Bc8I4T3hDcq3Tbe7.mjs +46 -0
  32. package/browser/esm/{ChMaIhqaEhF3SLLt.mjs → BpIA1_q9rYZhuE_V.mjs} +7 -7
  33. package/browser/esm/{D0-tgawYa4KXYT2c.mjs → BwpZ-CB67KJ8A2Pd.mjs} +2 -2
  34. package/{cdn/assets/BzptX9H_YCM2l0DE.js → browser/esm/CAUWxMHzGpG7-P5A.mjs} +5 -5
  35. package/browser/esm/{BLsIMzjofsOnRFrU.mjs → CFw_ZTxUHsgd5Pf5.mjs} +6 -6
  36. package/{cdn/assets/CvFAAktSd9TQK1h4.js → browser/esm/CIG-Y2tRBFYerBVK.mjs} +1 -1
  37. package/{cdn/assets/C60KakDbde-A4anI.js → browser/esm/CRLFplTpJUvecqqq.mjs} +1 -1
  38. package/browser/esm/{DJxioSY-hxyM7dmk.mjs → CanwhkFG9e2Ojys-.mjs} +3 -3
  39. package/browser/esm/{CLTP12OHGQ2k4_Kt.mjs → CcGOjkDDVya2Ff-b.mjs} +3 -3
  40. package/browser/esm/{CAm14rTtmPL5-rvQ.mjs → Ce53t5Ez6mDQoNNS.mjs} +126 -126
  41. package/browser/esm/{Btk74VwCVJ1T5LQD.mjs → Cmk4lwRc0QJqs2cT.mjs} +3 -3
  42. package/browser/esm/CnI4MLBb2ZtZInkh.mjs +22 -0
  43. package/{cdn/assets/DXMyzCcyP7039z13.js → browser/esm/CrZPGKZDaJ-22LSg.mjs} +799 -796
  44. package/{cdn/assets/DCuLWmzd9eLWgI03.js → browser/esm/D-GTj1DQOn_EIw_N.mjs} +1 -1
  45. package/browser/esm/{DdrICyX8Ead15N32.mjs → D0YFJdBci18KKVSS.mjs} +1 -1
  46. package/{cdn/assets/Bs-psXrTRw1jFety.js → browser/esm/D7__-CZBbVdVmNms.mjs} +8 -8
  47. package/{cdn/assets/CsVV_QnEl77BQM3V.js → browser/esm/DRX3PxyWmwYCO1oC.mjs} +1 -1
  48. package/{cdn/assets/F-RqJeKWiW4i5344.js → browser/esm/DtS8vZkP_9xxg-8G.mjs} +10475 -10290
  49. package/browser/esm/{D244UwY3qPC_LNc5.mjs → DuOzS4aDJybvfnas.mjs} +2 -2
  50. package/browser/esm/{DDD5zfwNNPKuc_zZ.mjs → ekyugPyyyBIdZgfX.mjs} +1 -1
  51. package/{cdn/assets/Did46-x6ZVwk_-r-.js → browser/esm/evOdu9Z-9G0PNrGI.mjs} +1 -1
  52. package/browser/esm/{CPWh2H15145LP-d5.mjs → goTiQtfGVEDiRLX3.mjs} +1 -1
  53. package/browser/esm/index.mjs +2 -2
  54. package/{cdn/assets/C8omEbSXHWI_wNjp.js → browser/esm/ius8cYWSRDNFx-QU.mjs} +8 -8
  55. package/cdn/assets/{DBgbBl_3O65WhfWN.js → 6GT7WcmdWYVxOobM.js} +7 -7
  56. package/{browser/esm/mq5uPzTIc1x8unBP.mjs → cdn/assets/BEdBgMB0JXu6qm1p.js} +1 -1
  57. package/cdn/assets/{Cz33L9W3cdQckAL5.js → BH-qA3U2gj7snkKJ.js} +3 -3
  58. package/cdn/assets/BPeDOIBYCZkjaWRD.js +46 -0
  59. package/cdn/assets/{DLYF-18qErpwF9Q-.js → BVIGf25ixd6wvJVI.js} +6 -6
  60. package/{browser/esm/Di2tNceI3NodSsgU.mjs → cdn/assets/BcGPdpUCizGdDlXm.js} +8 -8
  61. package/cdn/assets/{NHbXgEQMftGzY01r.js → Be-_CFU80fx1X1E9.js} +3 -3
  62. package/{browser/esm/CvFAAktSd9TQK1h4.mjs → cdn/assets/CIG-Y2tRBFYerBVK.js} +1 -1
  63. package/{browser/esm/C60KakDbde-A4anI.mjs → cdn/assets/CRLFplTpJUvecqqq.js} +1 -1
  64. package/cdn/assets/{ClFGbVy7cnhMW-dO.js → ChD-x-lrZKLslGbg.js} +2 -2
  65. package/{browser/esm/CntwHkPpskE88Ixu.mjs → cdn/assets/CkMou3XlV2mmYqmq.js} +5 -5
  66. package/cdn/assets/{BOl7blN8JotSzCHJ.js → Cx6czat4u0MrS9wL.js} +2 -2
  67. package/{browser/esm/DCuLWmzd9eLWgI03.mjs → cdn/assets/D-GTj1DQOn_EIw_N.js} +1 -1
  68. package/cdn/assets/{DdrICyX8Ead15N32.js → D0YFJdBci18KKVSS.js} +1 -1
  69. package/{browser/esm/CsVV_QnEl77BQM3V.mjs → cdn/assets/DRX3PxyWmwYCO1oC.js} +1 -1
  70. package/cdn/assets/{CEXK9SXjFf1dGHZe.js → DS9Og6WSj_kNksiq.js} +6 -6
  71. package/{browser/esm/CYXzmWJtZn5OJVBF.mjs → cdn/assets/De8HwbKM7sZJMZSq.js} +9723 -9844
  72. package/cdn/assets/DfoJr75R0GrjAv-i.js +22 -0
  73. package/cdn/assets/{Dj3GhNedlKE9TeTn.js → Dw1Rz_MNeT4QWFeY.js} +126 -126
  74. package/{browser/esm/BdLAPrmXIfjGFhhA.mjs → cdn/assets/FSFNUan5QfhjNqMt.js} +799 -796
  75. package/cdn/assets/{CoCIP7n4THmzOggq.js → Ijbe8IzzEjVScejo.js} +17 -17
  76. package/{browser/esm/BTQ-TGJnw7w1Y0CX.mjs → cdn/assets/YQRaiV0_mvhQsFVY.js} +8 -8
  77. package/cdn/assets/{B41q92oKD_VR31Dd.js → _W5FqhFhYviNTP8H.js} +3 -3
  78. package/cdn/assets/{DDD5zfwNNPKuc_zZ.js → ekyugPyyyBIdZgfX.js} +1 -1
  79. package/{browser/esm/Did46-x6ZVwk_-r-.mjs → cdn/assets/evOdu9Z-9G0PNrGI.js} +1 -1
  80. package/cdn/assets/{CPWh2H15145LP-d5.js → goTiQtfGVEDiRLX3.js} +1 -1
  81. package/cdn/index.js +8 -8
  82. package/cdn/loader.js +1 -1
  83. package/package.json +8 -8
  84. package/browser/cjs/Cxt39d6l0pu9k1vT.cjs +0 -19
  85. package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +0 -301
  86. package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +0 -6
  87. package/browser/esm/BsDYj6xix3mlXry2.mjs +0 -46
  88. package/browser/esm/wziCLl5xvHu6Guu_.mjs +0 -22
  89. package/cdn/assets/C_E1C68wCcRpC6XN.js +0 -46
  90. package/cdn/assets/lM5it-aJgI7DLNH9.js +0 -22
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),a=require("react"),n=require("./DDhq2nYMdw5b7wP6.cjs"),G=["Input"],H=a.memo(a.forwardRef((x,L)=>{const{initialValue:y="",onOption:O,onValidateOption:l,onInputOption:r,onValidateInputOption:s,onDone:u,inputProps:c,inputLabel:b,inputType:w,inputPlaceHolder:F,options:d=G,autoFocusSel:S=".autoFocus",cancelOption:g,defaultOption:m=d?.[0],...P}=x,[v,C]=a.useState(!1),[t,I]=a.useState(y),[j,k]=a.useState(""),[V,q]=a.useState(!0),i=n.Tn(async(e,o)=>{if(!s)return!0;const h=await s?.(e,o);k(h?.message??"");const T=h?.valid??!0;return q(T),T},[s]),f=n.Tn(async e=>{r?.(t,e)},[t,r,u,O,g,m]),B=n.Tn(async e=>{e.keyCode===n.sr.Enter&&await i?.(t,null)},[t,f]),D=n.Tn(e=>{I(e.target.value),i?.(e.target.value,null)},[l]),M=n.Tn(async e=>{let o=await i(t,e);try{o!==!1&&(o=await i(t,e))}catch{}return o??!0},[t,l]);return p.jsx(n.m4,{options:d,onDone:u,onOption:(e,o)=>{o||f(e)},onValidateOption:M,cancelOption:g,defaultOption:m,autoFocusSel:S,...P,children:p.jsx(n.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:p.jsx(n.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:p.jsx(n.TextField,{onFocus:e=>{v||e.target?.select(),C(!0)},type:w,label:b,helperText:j||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:F,spellCheck:!1,autoComplete:"off",...c,className:n.Xo("autoFocus",c?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",n.Gb(5))}, ${n.alpha("#fff",n.Gb(5))})`}}},value:t,onChange:D,onKeyDown:B,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=H;
@@ -1,46 +0,0 @@
1
- import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
- import { memo as E, useMemo as b, useState as g, useCallback as O } from "react";
3
- import { t as m, m as S, B as U, F as P, a as D, b as l, ay as p } from "./CYXzmWJtZn5OJVBF.mjs";
4
- /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
6
- *
7
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
- * License: The license can be found at https://www.sheetxl.com/license.
9
- */
10
- const V = ["Ok", "Cancel"], J = E((F) => {
11
- const { initialHyperlink: n = null, initialDisplay: H = null, onUpdateHyperlink: f, context: s, onOption: x, onValidateOption: r, onDone: d, options: h = V, defaultOption: c = h?.[0], cancelOption: i = "Cancel", sx: I, ...v } = F, w = b(() => (n ?? s?.()?.getHyperlink()) !== null, []), y = b(() => {
12
- let a = null, t = null;
13
- n && (typeof n == "string" ? t = n : a = n);
14
- const C = a ?? s?.()?.getHyperlink();
15
- return { address: t ?? C?.getAddress() ?? "", textToDisplay: C?.getDisplayText() ?? "" };
16
- }, [n, s]), [e, M] = g(y.address), [u, B] = g(() => {
17
- const a = s?.().toTextUnformatted() ?? H;
18
- return a === y.address ? "" : a;
19
- }), [$, k] = g(!1), L = O((a) => {
20
- B(a.target.value);
21
- }, []), T = O(async (a, t) => null, []), W = m(async (a) => {
22
- a !== i && f?.(e === "" ? null : { address: e }, u), x?.(a, a === i, a === c), d?.();
23
- }, [e, u, f, d, x, c, i]), j = m((a) => {
24
- M(a.target.value), T(a.target.value, null);
25
- }, [r]), z = m(async (a) => {
26
- let t = await Promise.resolve(r?.(a));
27
- try {
28
- t !== !1 && (t = await T(e, a));
29
- } catch {
30
- }
31
- return t ?? !0;
32
- }, [r]);
33
- return o(S, { title: (w ? "Edit" : "Insert") + " Link", options: h, onDone: d, onOption: (a) => W(a), onValidateOption: z, defaultOption: c, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...I }, ...v, children: A(U, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(P, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(D, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (a) => {
34
- $ || a.target?.select(), k(!0);
35
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", p(5))}, ${l("#fff", p(5))})` } } }, value: e, onChange: j, onContextMenu: (a) => {
36
- a.stopPropagation();
37
- } }) }), o(P, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(D, { label: "Display Text", placeholder: e?.startsWith("#") ? e.substring(1) : e, onFocus: () => {
38
- k(!0);
39
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", p(5))}, ${l("#fff", p(5))})` } } }, value: u, onChange: L, onContextMenu: (a) => {
40
- a.stopPropagation();
41
- } }) })] }) });
42
- });
43
- export {
44
- J as HyperlinkDialog,
45
- J as default
46
- };
@@ -1,22 +0,0 @@
1
- import { jsx as t, jsxs as N } from "react/jsx-runtime";
2
- import { memo as T, useState as i, useCallback as k } from "react";
3
- import { t as w, m as j, B as v, aP as y, at as B, au as F } from "./CYXzmWJtZn5OJVBF.mjs";
4
- /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
6
- *
7
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
- * License: The license can be found at https://www.sheetxl.com/license.
9
- */
10
- const H = ["Ok", "Cancel"], A = T((u) => {
11
- const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: o = d?.[0], cancelOption: s = "Cancel", sx: m, ...h } = u, [x, O] = i(!1), [n, b] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = w((a) => {
12
- const g = { ...e, hasHeader: n, ranges: l };
13
- c?.(a, a === s, a === o), r?.({ option: a, tableOptions: g });
14
- }, [r, c, o, s, n, l, e]), D = k(async (a, g) => null, []);
15
- return t(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: D, defaultOption: o, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...h, children: N(v, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [t(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
16
- x || a.target?.select(), O(!0);
17
- } }), t(B, { control: t(F, { checked: n, onChange: () => b(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
18
- });
19
- export {
20
- A as TableNewDialog,
21
- A as default
22
- };
@@ -1,46 +0,0 @@
1
- import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
- import { memo as E, useMemo as b, useState as g, useCallback as O } from "react";
3
- import { t as m, m as S, B as U, F as P, a as D, b as l, ay as p } from "./F-RqJeKWiW4i5344.js";
4
- /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
6
- *
7
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
- * License: The license can be found at https://www.sheetxl.com/license.
9
- */
10
- const V = ["Ok", "Cancel"], J = E((F) => {
11
- const { initialHyperlink: n = null, initialDisplay: H = null, onUpdateHyperlink: f, context: s, onOption: x, onValidateOption: r, onDone: d, options: h = V, defaultOption: c = h?.[0], cancelOption: i = "Cancel", sx: I, ...v } = F, w = b(() => (n ?? s?.()?.getHyperlink()) !== null, []), y = b(() => {
12
- let a = null, t = null;
13
- n && (typeof n == "string" ? t = n : a = n);
14
- const C = a ?? s?.()?.getHyperlink();
15
- return { address: t ?? C?.getAddress() ?? "", textToDisplay: C?.getDisplayText() ?? "" };
16
- }, [n, s]), [e, M] = g(y.address), [u, B] = g(() => {
17
- const a = s?.().toTextUnformatted() ?? H;
18
- return a === y.address ? "" : a;
19
- }), [$, k] = g(!1), L = O((a) => {
20
- B(a.target.value);
21
- }, []), T = O(async (a, t) => null, []), W = m(async (a) => {
22
- a !== i && f?.(e === "" ? null : { address: e }, u), x?.(a, a === i, a === c), d?.();
23
- }, [e, u, f, d, x, c, i]), j = m((a) => {
24
- M(a.target.value), T(a.target.value, null);
25
- }, [r]), z = m(async (a) => {
26
- let t = await Promise.resolve(r?.(a));
27
- try {
28
- t !== !1 && (t = await T(e, a));
29
- } catch {
30
- }
31
- return t ?? !0;
32
- }, [r]);
33
- return o(S, { title: (w ? "Edit" : "Insert") + " Link", options: h, onDone: d, onOption: (a) => W(a), onValidateOption: z, defaultOption: c, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...I }, ...v, children: A(U, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(P, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(D, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (a) => {
34
- $ || a.target?.select(), k(!0);
35
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", p(5))}, ${l("#fff", p(5))})` } } }, value: e, onChange: j, onContextMenu: (a) => {
36
- a.stopPropagation();
37
- } }) }), o(P, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(D, { label: "Display Text", placeholder: e?.startsWith("#") ? e.substring(1) : e, onFocus: () => {
38
- k(!0);
39
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", p(5))}, ${l("#fff", p(5))})` } } }, value: u, onChange: L, onContextMenu: (a) => {
40
- a.stopPropagation();
41
- } }) })] }) });
42
- });
43
- export {
44
- J as HyperlinkDialog,
45
- J as default
46
- };
@@ -1,22 +0,0 @@
1
- import { jsx as t, jsxs as N } from "react/jsx-runtime";
2
- import { memo as T, useState as i, useCallback as k } from "react";
3
- import { t as w, m as j, B as v, aP as y, at as B, au as F } from "./F-RqJeKWiW4i5344.js";
4
- /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
6
- *
7
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
- * License: The license can be found at https://www.sheetxl.com/license.
9
- */
10
- const H = ["Ok", "Cancel"], A = T((u) => {
11
- const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: o = d?.[0], cancelOption: s = "Cancel", sx: m, ...h } = u, [x, O] = i(!1), [n, b] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = w((a) => {
12
- const g = { ...e, hasHeader: n, ranges: l };
13
- c?.(a, a === s, a === o), r?.({ option: a, tableOptions: g });
14
- }, [r, c, o, s, n, l, e]), D = k(async (a, g) => null, []);
15
- return t(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: D, defaultOption: o, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...h, children: N(v, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [t(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
16
- x || a.target?.select(), O(!0);
17
- } }), t(B, { control: t(F, { checked: n, onChange: () => b(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
18
- });
19
- export {
20
- A as TableNewDialog,
21
- A as default
22
- };