@sheetxl/studio-vanilla 0.4.11 → 0.4.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 (96) hide show
  1. package/browser/cjs/{BlSFY6zLlebuejdV.cjs → B35OZ0mE8aINQPP9.cjs} +2 -2
  2. package/browser/cjs/{DiBy6-IxLscyMW2y.cjs → BPzEQNENF-gEBkg9.cjs} +2 -2
  3. package/browser/cjs/{C7EZCTczsC-gkRcq.cjs → BUokV6yuzE-_8MyK.cjs} +2 -2
  4. package/browser/cjs/{T4SHYo66xDT3l9JN.cjs → BeZHmOKfa37mFNAu.cjs} +2 -2
  5. package/browser/cjs/{BplA5pDzOJpfTZuA.cjs → BflJ_0gT9lQtDvY_.cjs} +2 -2
  6. package/browser/cjs/{DFspSkki779xN-Ey.cjs → BwN8vKi5o3-PbIMo.cjs} +2 -2
  7. package/browser/cjs/{D3iOk-Q2tRdUeTcn.cjs → C3OizZPVuxO2fjSG.cjs} +1 -1
  8. package/browser/cjs/{BshvMtUxTJHj3JQN.cjs → CBL6KkiWI2RPflEN.cjs} +2 -2
  9. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +7 -0
  10. package/browser/cjs/{vfUix5Di0Ro8tEID.cjs → CTrEV_UpxC0W6cZZ.cjs} +2 -2
  11. package/browser/cjs/{CFcjX5-nVsgzdZ4F.cjs → CU30GVjjFXl44vEU.cjs} +1 -1
  12. package/browser/cjs/{DgBn3aW39yjgm0X_.cjs → CZWBxvUXzfpn_zmc.cjs} +2 -2
  13. package/browser/cjs/{DrlS1oz9Nea8Pm3j.cjs → Ccs2ouvlLekaLGH0.cjs} +2 -2
  14. package/browser/cjs/{B0rdyyttE2Aibsag.cjs → Ce-8L4Viq3I_6j0i.cjs} +2 -2
  15. package/browser/cjs/{SzxJv7OUs5ojl8gx.cjs → CtNjLzIHB8WX63Bl.cjs} +2 -2
  16. package/browser/cjs/{Dx-jp_LJxWbAScyA.cjs → DAHpsyykuPBkoh-Z.cjs} +1 -1
  17. package/browser/cjs/{B2e7dDI-zKoqXpIW.cjs → DJbKKxeeTEHHA1gR.cjs} +20 -20
  18. package/browser/cjs/{CjZbhk41S1qO_74G.cjs → D_VQzwC1zzTJyKtG.cjs} +1 -1
  19. package/browser/cjs/{Db_Ew1r6yOMYylvA.cjs → GrsZZ_mEdsM5dEMA.cjs} +2 -2
  20. package/browser/cjs/{BPTHTRDvNOVkUJGa.cjs → JKEGlXjMwGnXk_Gv.cjs} +2 -2
  21. package/browser/cjs/{C5FXOMLhAu_KTjVe.cjs → L1iE_VcelYZIy0wI.cjs} +1 -1
  22. package/browser/cjs/{DFtyXc7YFh9dIp74.cjs → Q_VvA-yUQx3xFKiJ.cjs} +1 -1
  23. package/browser/cjs/{BAyEOOtO-9sHQQRW.cjs → fTGpiXzFm3K_u2Fm.cjs} +2 -2
  24. package/browser/cjs/{CuTW2Pt-L5n-hNxV.cjs → hwDUzorB6aCvH1eL.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{BuWtGFX0HiBezGjw.cjs → no5c2H18QD2qmOH6.cjs} +2 -2
  27. package/browser/esm/{BALnKy2Fp7fyk-lc.mjs → B4Mm5gczpI_k2zzN.mjs} +2 -2
  28. package/browser/esm/{BXUGsC1Mo3FP8vnW.mjs → B8ISUdOxsJMYWzNN.mjs} +2 -2
  29. package/browser/esm/{BGpv6Kq7eBlJy43T.mjs → BnJiF38TGudjoHzT.mjs} +1 -1
  30. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +7 -0
  31. package/browser/esm/{DtmE60AvstK9u0Ta.mjs → C3cyAbIH8Qc8MIFN.mjs} +20 -20
  32. package/browser/esm/C4jlaVv8bELgiHyE.mjs +7 -0
  33. package/browser/esm/{CFFC0SNc24a0Dxnh.mjs → CYIhGb86r-kKOrP5.mjs} +2 -2
  34. package/browser/esm/{B905wKzTtod-jbsD.mjs → CcpskguvlvemArQn.mjs} +2 -2
  35. package/browser/esm/CeRfALx1iU5fqOUg.mjs +7 -0
  36. package/browser/esm/CfYWmP_Hots5f0f6.mjs +7 -0
  37. package/browser/esm/CkarbqNx_lhlBnw7.mjs +7 -0
  38. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +7 -0
  39. package/browser/esm/{Cc_VWd0wF5-39LsI.mjs → D3KNxvnrwR6_fTJE.mjs} +1 -1
  40. package/browser/esm/{Bo_ZPRrOQrqOVHAF.mjs → DIJyH94oCzUnlcNZ.mjs} +2 -2
  41. package/browser/esm/{De6RPxc4p_jXLlT5.mjs → DVAG1NxFe3cMjLE1.mjs} +1 -1
  42. package/browser/esm/DVqga7g7j0FUiM6p.mjs +7 -0
  43. package/browser/esm/{PS0cqYnlMVEGOQpI.mjs → DcX8yGEBX6qi9RCe.mjs} +2 -2
  44. package/browser/esm/{BUSR_OK5Qi6hRPfw.mjs → DeXfOSxGE_Ez7DZq.mjs} +1 -1
  45. package/browser/esm/{Cq8D_M0jeHLcnRjg.mjs → DzgM_rkwyIHsCb6I.mjs} +1 -1
  46. package/browser/esm/{BDVJ7eOPpW5FnEAP.mjs → M4hZ25330e96seUM.mjs} +1 -1
  47. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +7 -0
  48. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +7 -0
  49. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +7 -0
  50. package/browser/esm/{BlGoi1_x9rUMpWMd.mjs → dpdy0BU4GGI5lZrX.mjs} +1 -1
  51. package/browser/esm/index.mjs +2 -2
  52. package/browser/esm/{tFhROdVSw9KLQfUN.mjs → oLCocGFRAwsVsOSE.mjs} +2 -2
  53. package/cdn/assets/7_O6nILzn1fSVvkO.js +13449 -0
  54. package/cdn/assets/B3kbBB6oxKBErwzn.js +27 -0
  55. package/cdn/assets/BB66NDz7S3ocEfRB.js +150 -0
  56. package/cdn/assets/BCK7yhx9JfzU2rF0.js +22 -0
  57. package/cdn/assets/BSAH88RG1oubICau.js +84 -0
  58. package/cdn/assets/BT5EcMEFBsphczwC.js +1469 -0
  59. package/cdn/assets/BcWoqhD_sX85c7Mh.js +1701 -0
  60. package/cdn/assets/BoOefjrM4kZ-YXxa.js +90 -0
  61. package/cdn/assets/BtweFYnoj_aEfydW.js +1371 -0
  62. package/cdn/assets/Bv0Xb6DdcQbPYJKo.js +24 -0
  63. package/cdn/assets/CC-S4NMYhLg3WgqO.js +3875 -0
  64. package/cdn/assets/CJhyHcQcrhbtC33r.js +50 -0
  65. package/cdn/assets/CUc6gRjjRGTFWSHD.js +50 -0
  66. package/cdn/assets/CfObTzh8pGdd8D23.js +2183 -0
  67. package/cdn/assets/CiY3HumGDc_5bMtR.js +58 -0
  68. package/cdn/assets/CpPLN0-hDsTIFHZV.js +46 -0
  69. package/cdn/assets/Cq94woVmlxhjWVRI.js +21 -0
  70. package/cdn/assets/CsjftXmSYQRHNKdq.js +41 -0
  71. package/cdn/assets/DBL4jY0AVc53RGNm.js +637 -0
  72. package/cdn/assets/DDW1WJ2IM_9ZUfKm.js +36 -0
  73. package/cdn/assets/DJQOS9qxVAlpgDMt.js +1704 -0
  74. package/cdn/assets/DWJE3K3jMKMTCi3o.js +393 -0
  75. package/cdn/assets/D_5RgqgwXsoqLJDR.js +241 -0
  76. package/cdn/assets/DfmaL8DmDaFAv8M_.js +6481 -0
  77. package/cdn/assets/DgLPO_EQ9DYoGgec.js +423 -0
  78. package/cdn/assets/DkS6quwH1okWaho6.js +46 -0
  79. package/cdn/assets/DxMu6URURFWj9aXM.js +2373 -0
  80. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +26490 -0
  81. package/cdn/assets/MRBi3juXAW0lA_mj.js +1358 -0
  82. package/cdn/assets/dk2teWHDODYNarJY.js +27 -0
  83. package/cdn/assets/phYz0vGgqIEQ2hco.js +12 -0
  84. package/cdn/assets/qA23x9VVBL9R4qxN.js +43 -0
  85. package/cdn/index.js +41 -37
  86. package/cdn/loader.js +1 -1
  87. package/package.json +3 -3
  88. package/browser/esm/B5kkStdEkTczERyM.mjs +0 -7
  89. package/browser/esm/BuURCm92KsyGHG9e.mjs +0 -7
  90. package/browser/esm/CGZ5MX7afzMxDkCe.mjs +0 -7
  91. package/browser/esm/CzmNwV9tfFYUp_gS.mjs +0 -7
  92. package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +0 -7
  93. package/browser/esm/DqXxZP6yKF4U1YfY.mjs +0 -7
  94. package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +0 -7
  95. package/browser/esm/QBGUD1XS5_pysBLL.mjs +0 -7
  96. package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +0 -7
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=require("@sheetxl/sdk"),n=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),s=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),o=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),i=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),r=e.reactExports.memo(t=>{const{label:n,value:s,options:o,onSelect:i,tabIndex:r=0,...l}=t,[a,c]=e.reactExports.useState(()=>u(s,o));e.reactExports.useEffect(()=>{c(u(s,o))},[s,o]);const p=e.go(e=>{c(e.target.value),i?.(o[e.target.value])},[i,o]),x=e.reactExports.useMemo(()=>Object.keys(o).map(t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t)),[o]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:n}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:r},value:a,label:n,onChange:p,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},...l,children:x})]})}),l={Workbook:"workbook",Sheet:"sheet"},a={enter:140,exit:140},c={Formulas:t.ICell.Content.Formulas,Values:t.ICell.Content.Values,Notes:t.ICell.Content.Notes,Comments:t.ICell.Content.Comments},p={...c};delete p.Values;const x={"By Rows":!0,"By Columns":!1},u=(e,t)=>{const n=Object.keys(t);for(let s=0;s<n.length;s++){const o=n[s];if(t[o]===e)return o}},d=e.reactExports.memo(u=>{const{replace:d=!1,findText:f,replaceText:m,findOptions:g,replaceOptions:j,title:h,onHide:E,onFindOrReplace:R,...C}=u,O=e.reactExports.useRef(null),y=e.reactExports.useRef(null),I=e.reactExports.useRef(null),b=e.reactExports.useRef(null),v=e.reactExports.useRef(null),k=e.reactExports.useRef(null),T=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[S,w]=e.reactExports.useState(!1),[F,B]=e.reactExports.useState(!1),[L,D]=e.reactExports.useState(d),[P,A]=e.reactExports.useState(!1),[M,K]=e.reactExports.useState(!1),[V,z]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:t.IRange.Orientation.Row,fields:[t.ICell.Content.Formulas]},scope:l.Sheet}),H=e.go(async(e,n,s,o)=>{if(!R)return;const i={...V};i.replaceOptions={...i.replaceOptions},i.findOptions={...i.findOptions},i.replaceOptions.maxCount=s?void 0:1,i.replace=n,n&&V.findOptions.fields?.[0]===t.ICell.Content.Values&&(i.findOptions.fields=[t.ICell.Content.Formulas]),i.findOptions.reverse=!e;const r=await R({autoFocus:o,...i});A(0===r)},[V,R]);e.reactExports.useEffect(()=>{A(!1)},[V,F,L]);const $=e.go((t,n)=>{if(t.keyCode===e.io.Enter){if(!V.findText)return;let e=!0,s=!1;t.shiftKey&&(e=!1),n?(t.ctrlKey&&t.altKey&&(s=!0),T(t,s?k.current:v.current)):T(t,e?b.current:I.current),H(e,n,s,!1)}},[V]),N=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{z(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",w(!0),void 0!==m&&(n.replaceText=m),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),j&&(n.replaceOptions={...n.replaceOptions,...j}),V.findOptions.fields?.[0]||(V.findOptions.fields=[t.ICell.Content.Formulas]);const s=!(!j&&void 0===m);return s&&D(s),n}),M||N.current?.focus()},[f,m,g,j]),e.reactExports.useEffect(()=>{L?(V.findOptions.fields[0],t.ICell.Content.Values):w(!0)},[L]),e.reactExports.useEffect(()=>{if(S&&O.current&&V.findText===O.current.value)return O.current===document.activeElement||O.current.contains(document.activeElement)?(O.current?.select(),void w(!1)):void O.current.addEventListener("focus",()=>{O.current?.select(),w(!1)},{once:!0})},[S,V]);const[W,{width:q}]=e._I();return e.jsxRuntimeExports.jsx(e.Vg,{ref:N,title:h??(L?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:E,onFocus:()=>K(!0),onBlur:()=>{K(!1),A(!1)},PaperProps:{elevation:M?3:1},...C,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:W,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)D(!0),O.current?.contains(document.activeElement)&&y.current?.focus();else if("f"===e.key&&e.ctrlKey)O.current?.focus();else if("c"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;z(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:F,onSelectToggle:e=>{B(e)},preventFocus:!0,label:"Toggle Additional Options",icon:e.kc(e.jsxRuntimeExports.jsx(e.zh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:L,onSelectToggle:e=>{D(e)},preventFocus:!0,label:"Toggle Replace",icon:e.kc(e.jsxRuntimeExports.jsx(e.Ph,{})),shortcut:{key:L?"F":"H",modifiers:[e.ro.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:q>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{draggable:!1,ref:O,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchCase,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Fh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchEntireCell,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Nh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.useRegex,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Bh,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>P?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>P?`${e.palette.error.main} !important`:void 0}},value:V.findText??"",onChange:e=>{z(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>$(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.reverse,onSelectToggle:e=>{H(!1,!1)},touchRippleRef:I,label:"",shortcut:{key:"Enter",modifiers:[e.ro.Shift]},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(n,{}):e.jsxRuntimeExports.jsx(i,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{selected:!V.findOptions.reverse,onSelectToggle:e=>{H(!0,!1)},touchRippleRef:b,label:"Next Match",shortcut:{key:"Enter"},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(o,{}):e.jsxRuntimeExports.jsx(s,{})),disabled:!V.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:L,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{ref:y,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:V.replaceText??"",onChange:e=>{z(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>$(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0)},touchRippleRef:v,label:"Replace",shortcut:{key:"Enter"},icon:e.kc(e.jsxRuntimeExports.jsx(e.Vh,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0,!0)},touchRippleRef:k,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.ro.Ctrl,e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Hh,{})),disabled:!V.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:F,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:q>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(r,{label:"Within",value:V.scope,options:l,onSelect:e=>{z(t=>{const n={...t};return n.scope=e,n})}}),e.jsxRuntimeExports.jsx(r,{label:"Search",value:V.findOptions.orientation!==t.IRange.Orientation.Column,options:x,onSelect:e=>{z(n=>{const s={...n};return s.findOptions.orientation=e?t.IRange.Orientation.Row:t.IRange.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(r,{label:"Look in",value:L&&V.findOptions.fields?.[0]===t.ICell.Content.Values?t.ICell.Content.Formulas:V.findOptions.fields?.[0],options:L?p:c,onSelect:e=>{z(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=d,exports.ScopeOptions=l,exports.default=d;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=require("@sheetxl/sdk"),n=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),s=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),o=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),i=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),r=e.reactExports.memo(t=>{const{label:n,value:s,options:o,onSelect:i,tabIndex:r=0,...l}=t,[a,c]=e.reactExports.useState(()=>u(s,o));e.reactExports.useEffect(()=>{c(u(s,o))},[s,o]);const p=e.go(e=>{c(e.target.value),i?.(o[e.target.value])},[i,o]),x=e.reactExports.useMemo(()=>Object.keys(o).map(t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t)),[o]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:n}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:r},value:a,label:n,onChange:p,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},...l,children:x})]})}),l={Workbook:"workbook",Sheet:"sheet"},a={enter:140,exit:140},c={Formulas:t.ICell.Content.Formulas,Values:t.ICell.Content.Values,Notes:t.ICell.Content.Notes,Comments:t.ICell.Content.Comments},p={...c};delete p.Values;const x={"By Rows":!0,"By Columns":!1},u=(e,t)=>{const n=Object.keys(t);for(let s=0;s<n.length;s++){const o=n[s];if(t[o]===e)return o}},d=e.reactExports.memo(u=>{const{replace:d=!1,findText:f,replaceText:m,findOptions:g,replaceOptions:j,title:h,onHide:E,onFindOrReplace:R,...C}=u,O=e.reactExports.useRef(null),y=e.reactExports.useRef(null),I=e.reactExports.useRef(null),b=e.reactExports.useRef(null),v=e.reactExports.useRef(null),k=e.reactExports.useRef(null),T=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[S,w]=e.reactExports.useState(!1),[F,B]=e.reactExports.useState(!1),[L,D]=e.reactExports.useState(d),[P,A]=e.reactExports.useState(!1),[M,K]=e.reactExports.useState(!1),[V,z]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:t.IRange.Orientation.Row,fields:[t.ICell.Content.Formulas]},scope:l.Sheet}),H=e.go(async(e,n,s,o)=>{if(!R)return;const i={...V};i.replaceOptions={...i.replaceOptions},i.findOptions={...i.findOptions},i.replaceOptions.maxCount=s?void 0:1,i.replace=n,n&&V.findOptions.fields?.[0]===t.ICell.Content.Values&&(i.findOptions.fields=[t.ICell.Content.Formulas]),i.findOptions.reverse=!e;const r=await R({autoFocus:o,...i});A(0===r)},[V,R]);e.reactExports.useEffect(()=>{A(!1)},[V,F,L]);const $=e.go((t,n)=>{if(t.keyCode===e.io.Enter){if(!V.findText)return;let e=!0,s=!1;t.shiftKey&&(e=!1),n?(t.ctrlKey&&t.altKey&&(s=!0),T(t,s?k.current:v.current)):T(t,e?b.current:I.current),H(e,n,s,!1)}},[V]),N=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{z(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",w(!0),void 0!==m&&(n.replaceText=m),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),j&&(n.replaceOptions={...n.replaceOptions,...j}),V.findOptions.fields?.[0]||(V.findOptions.fields=[t.ICell.Content.Formulas]);const s=!(!j&&void 0===m);return s&&D(s),n}),M||N.current?.focus()},[f,m,g,j]),e.reactExports.useEffect(()=>{L?(V.findOptions.fields[0],t.ICell.Content.Values):w(!0)},[L]),e.reactExports.useEffect(()=>{if(S&&O.current&&V.findText===O.current.value)return O.current===document.activeElement||O.current.contains(document.activeElement)?(O.current?.select(),void w(!1)):void O.current.addEventListener("focus",()=>{O.current?.select(),w(!1)},{once:!0})},[S,V]);const[W,{width:q}]=e._I();return e.jsxRuntimeExports.jsx(e.Vg,{ref:N,title:h??(L?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:E,onFocus:()=>K(!0),onBlur:()=>{K(!1),A(!1)},PaperProps:{elevation:M?3:1},...C,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:W,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)D(!0),O.current?.contains(document.activeElement)&&y.current?.focus();else if("f"===e.key&&e.ctrlKey)O.current?.focus();else if("c"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;z(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:F,onSelectToggle:e=>{B(e)},preventFocus:!0,label:"Toggle Additional Options",icon:e.kc(e.jsxRuntimeExports.jsx(e.zh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:L,onSelectToggle:e=>{D(e)},preventFocus:!0,label:"Toggle Replace",icon:e.kc(e.jsxRuntimeExports.jsx(e.Ph,{})),shortcut:{key:L?"F":"H",modifiers:[e.ro.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:q>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{draggable:!1,ref:O,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchCase,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Fh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchEntireCell,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Nh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.useRegex,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Bh,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>P?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>P?`${e.palette.error.main} !important`:void 0}},value:V.findText??"",onChange:e=>{z(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>$(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.reverse,onSelectToggle:e=>{H(!1,!1)},touchRippleRef:I,label:"",shortcut:{key:"Enter",modifiers:[e.ro.Shift]},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(n,{}):e.jsxRuntimeExports.jsx(i,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{selected:!V.findOptions.reverse,onSelectToggle:e=>{H(!0,!1)},touchRippleRef:b,label:"Next Match",shortcut:{key:"Enter"},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(o,{}):e.jsxRuntimeExports.jsx(s,{})),disabled:!V.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:L,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{ref:y,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:V.replaceText??"",onChange:e=>{z(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>$(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0)},touchRippleRef:v,label:"Replace",shortcut:{key:"Enter"},icon:e.kc(e.jsxRuntimeExports.jsx(e.Vh,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0,!0)},touchRippleRef:k,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.ro.Ctrl,e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Hh,{})),disabled:!V.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:F,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:q>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(r,{label:"Within",value:V.scope,options:l,onSelect:e=>{z(t=>{const n={...t};return n.scope=e,n})}}),e.jsxRuntimeExports.jsx(r,{label:"Search",value:V.findOptions.orientation!==t.IRange.Orientation.Column,options:x,onSelect:e=>{z(n=>{const s={...n};return s.findOptions.orientation=e?t.IRange.Orientation.Row:t.IRange.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(r,{label:"Look in",value:L&&V.findOptions.fields?.[0]===t.ICell.Content.Values?t.ICell.Content.Formulas:V.findOptions.fields?.[0],options:L?p:c,onSelect:e=>{z(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=d,exports.ScopeOptions=l,exports.default=d;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./B2e7dDI-zKoqXpIW.cjs"),e=["Ok","Cancel"],o=t.reactExports.memo(o=>{const{initialHyperlink:n=null,initialDisplay:a=null,onUpdateHyperlink:s,context:r,onOption:l,onValidateOption:i,onDone:p,options:c=e,defaultOption:u=c?.[0],cancelOption:x="Cancel",sx:d,...g}=o,m=t.reactExports.useMemo(()=>null!==(n??r?.()?.getHyperlink()),[]),h=t.reactExports.useMemo(()=>{let t=null,e=null;n&&("string"==typeof n?e=n:t=n);const o=t??r?.()?.getHyperlink();return{address:e??o?.getAddress()??"",textToDisplay:o?.getDisplayText()??""}},[n,r]),[f,y]=t.reactExports.useState(h.address),[E,T]=t.reactExports.useState(()=>{const t=r?.().toTextUnformatted()??a;return t===h.address?"":t}),[k,j]=t.reactExports.useState(!1),C=t.reactExports.useCallback(t=>{T(t.target.value)},[]),b=t.reactExports.useCallback(async(t,e)=>null,[]),F=t.go(async t=>{const e=""===f?null:{address:f};t!==x&&s?.(e,E),l?.(t,t===x,t===u),p?.()},[f,E,s,p,l,u,x]),O=t.go(t=>{y(t.target.value),b(t.target.value,null)},[i]),P=t.go(async t=>{let e=await Promise.resolve(i?.(t));try{!1!==e&&(e=await b(f,t))}catch(t){}return e??!0},[i]);return t.jsxRuntimeExports.jsx(t.sb,{title:(m?"Edit":"Insert")+" Link",options:c,onDone:p,onOption:t=>F(t),onValidateOption:P,defaultOption:u,cancelOption:x,autoFocusSel:".autoFocus",sx:{width:"480px",...d},...g,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{k||t.target?.select(),j(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:f,onChange:O,onContextMenu:t=>{t.stopPropagation()}})}),t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Display Text",placeholder:f?.startsWith("#")?f.substring(1):f,onFocus:()=>{j(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:E,onChange:C,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=o,exports.default=o;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DJbKKxeeTEHHA1gR.cjs"),e=["Ok","Cancel"],o=t.reactExports.memo(o=>{const{initialHyperlink:n=null,initialDisplay:a=null,onUpdateHyperlink:s,context:r,onOption:l,onValidateOption:i,onDone:p,options:c=e,defaultOption:u=c?.[0],cancelOption:x="Cancel",sx:d,...g}=o,m=t.reactExports.useMemo(()=>null!==(n??r?.()?.getHyperlink()),[]),h=t.reactExports.useMemo(()=>{let t=null,e=null;n&&("string"==typeof n?e=n:t=n);const o=t??r?.()?.getHyperlink();return{address:e??o?.getAddress()??"",textToDisplay:o?.getDisplayText()??""}},[n,r]),[f,y]=t.reactExports.useState(h.address),[E,T]=t.reactExports.useState(()=>{const t=r?.().toTextUnformatted()??a;return t===h.address?"":t}),[k,j]=t.reactExports.useState(!1),C=t.reactExports.useCallback(t=>{T(t.target.value)},[]),b=t.reactExports.useCallback(async(t,e)=>null,[]),F=t.go(async t=>{const e=""===f?null:{address:f};t!==x&&s?.(e,E),l?.(t,t===x,t===u),p?.()},[f,E,s,p,l,u,x]),O=t.go(t=>{y(t.target.value),b(t.target.value,null)},[i]),P=t.go(async t=>{let e=await Promise.resolve(i?.(t));try{!1!==e&&(e=await b(f,t))}catch(t){}return e??!0},[i]);return t.jsxRuntimeExports.jsx(t.sb,{title:(m?"Edit":"Insert")+" Link",options:c,onDone:p,onOption:t=>F(t),onValidateOption:P,defaultOption:u,cancelOption:x,autoFocusSel:".autoFocus",sx:{width:"480px",...d},...g,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{k||t.target?.select(),j(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:f,onChange:O,onContextMenu:t=>{t.stopPropagation()}})}),t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Display Text",placeholder:f?.startsWith("#")?f.substring(1):f,onFocus:()=>{j(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:E,onChange:C,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=o,exports.default=o;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-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/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./B2e7dDI-zKoqXpIW.cjs"),e=["Ok","Cancel"],o=t.reactExports.memo(o=>{const{initialComments:n=null,onUpdateComments:s,context:a,onOption:i,onValidateOption:r,onDone:l,options:p=e,defaultOption:c=p?.[0],cancelOption:u="Cancel",sx:x,...m}=o,d=t.reactExports.useMemo(()=>{const t=n??a?.()?.getComments();let e="";if(t&&t.content&&t.content.runs){const o=t.content.runs;for(let t=0;t<o.length;t++){const n=o[t];e+=n?.text}}return e},[]),[g,f]=t.reactExports.useState(d),[h,C]=t.reactExports.useState(!1),E=t.reactExports.useCallback(async(t,e)=>null,[]),j=t.go(async t=>{const e=""===g?[]:g.split("\n");if(t!==u){const t=[];for(let o=0;o<e.length;o++)t.push({text:e[o]});const o={content:{runs:t}};s?.(o)}i?.(t,t===u,t===c),l?.()},[g,s,l,i,c,u]),O=t.go(t=>{f(t.target.value),E(t.target.value,null)},[r]),b=t.go(async t=>{let e=await Promise.resolve(r?.(t));try{!1!==e&&(e=await E(g,t))}catch(t){}return e??!0},[r,g]);return t.jsxRuntimeExports.jsx(t.sb,{title:(d?"Edit":"Insert")+" Comments",options:p,onDone:l,onOption:t=>j(t),onValidateOption:b,defaultOption:c,cancelOption:u,autoFocusSel:".autoFocus",sx:{width:"480px",...x},...m,children:t.jsxRuntimeExports.jsx(t.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{h||t.target?.select(),C(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:g,onChange:O,onContextMenu:t=>{t.stopPropagation()}})})})})});exports.CommentsDialog=o,exports.default=o;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DJbKKxeeTEHHA1gR.cjs"),e=["Ok","Cancel"],o=t.reactExports.memo(o=>{const{initialComments:n=null,onUpdateComments:s,context:a,onOption:i,onValidateOption:r,onDone:l,options:p=e,defaultOption:c=p?.[0],cancelOption:u="Cancel",sx:x,...m}=o,d=t.reactExports.useMemo(()=>{const t=n??a?.()?.getComments();let e="";if(t&&t.content&&t.content.runs){const o=t.content.runs;for(let t=0;t<o.length;t++){const n=o[t];e+=n?.text}}return e},[]),[g,f]=t.reactExports.useState(d),[h,C]=t.reactExports.useState(!1),E=t.reactExports.useCallback(async(t,e)=>null,[]),j=t.go(async t=>{const e=""===g?[]:g.split("\n");if(t!==u){const t=[];for(let o=0;o<e.length;o++)t.push({text:e[o]});const o={content:{runs:t}};s?.(o)}i?.(t,t===u,t===c),l?.()},[g,s,l,i,c,u]),O=t.go(t=>{f(t.target.value),E(t.target.value,null)},[r]),b=t.go(async t=>{let e=await Promise.resolve(r?.(t));try{!1!==e&&(e=await E(g,t))}catch(t){}return e??!0},[r,g]);return t.jsxRuntimeExports.jsx(t.sb,{title:(d?"Edit":"Insert")+" Comments",options:p,onDone:l,onOption:t=>j(t),onValidateOption:b,defaultOption:c,cancelOption:u,autoFocusSel:".autoFocus",sx:{width:"480px",...x},...m,children:t.jsxRuntimeExports.jsx(t.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{h||t.target?.select(),C(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:g,onChange:O,onContextMenu:t=>{t.stopPropagation()}})})})})});exports.CommentsDialog=o,exports.default=o;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";const e=require("./B2e7dDI-zKoqXpIW.cjs");module.exports=e.SheetXL;
7
+ "use strict";const e=require("./DJbKKxeeTEHHA1gR.cjs");module.exports=e.SheetXL;