@sheetxl/studio-mui 0.7.24 → 0.7.26

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 (38) hide show
  1. package/browser/cjs/{C0_g7bO3lUGazII8.cjs → 52tjAlO48FpZgfzG.cjs} +1 -1
  2. package/browser/cjs/{oVrXalh9vT6fpX2H.cjs → BGu2_YqVJMQjYx4D.cjs} +3 -3
  3. package/browser/cjs/{xvoy4qjjzqWAaBX0.cjs → C83Rzj_Jwq-o69wr.cjs} +2 -2
  4. package/browser/cjs/{Cw0XerZj1JrkNRF8.cjs → CldYLQnjFC_g8o3t.cjs} +2 -2
  5. package/browser/cjs/{CTnDycmxyC5xWQ8b.cjs → Cpv3j_Ra1h-axLRG.cjs} +1 -1
  6. package/browser/cjs/{D_HnLBdGSe_lvc88.cjs → D-5Cg1Y0zALF_JEs.cjs} +1 -1
  7. package/browser/cjs/{_uI6HywPcmE2pkcX.cjs → D58sOTRZwQ59CgOf.cjs} +1 -1
  8. package/browser/cjs/{BuQz9bBQ5UfV6Ip4.cjs → DEd-0xEuUoELRnQb.cjs} +1 -1
  9. package/browser/cjs/{E8e5MHnO-1bdpqSq.cjs → DahKlfm68zudpndW.cjs} +8 -8
  10. package/browser/cjs/{B0H57bnqTVJjpvhm.cjs → Dd7t0gfO3bzS0-B8.cjs} +1 -1
  11. package/browser/cjs/{FHoXNCBbggrFLDoS.cjs → DxAU6DV3UCUDVoSH.cjs} +2 -2
  12. package/browser/cjs/index.cjs +2 -2
  13. package/browser/cjs/{exsoDEXEA_T17JQ2.cjs → uj7GSwDaUyTKEjrN.cjs} +2 -2
  14. package/browser/esm/{DLwJyk5zuVyRJ8Y_.mjs → BLuR1D2n--9QSJL9.mjs} +1 -1
  15. package/browser/esm/{fv_6W0h7kCackKQH.mjs → BSOhdb74viwmCi54.mjs} +3 -3
  16. package/browser/esm/{I6t3w77JwlDm6InL.mjs → BTAhrEfV-DH0-Ldk.mjs} +1 -1
  17. package/browser/esm/{Bt82WYyOXeYPeP0S.mjs → BgsyX5QL9OLy0DN3.mjs} +335 -335
  18. package/browser/esm/{DogG8I38ejHAQfCO.mjs → CFPGs5_tLGrpkW8L.mjs} +2 -2
  19. package/browser/esm/{mYNkPr4cbnyk7BA1.mjs → CbCX3t0hx-h6pV7Q.mjs} +2 -2
  20. package/browser/esm/{TrEBD0P-9QKc3fUp.mjs → D3dDP89ml0258MGb.mjs} +1 -1
  21. package/browser/esm/{i-WfodsB4JfJcn02.mjs → DYk55y6IEOCytW3g.mjs} +1 -1
  22. package/browser/esm/{DZtJHUVztFr4lnC8.mjs → DfUqOxFfhJcaq847.mjs} +2 -2
  23. package/browser/esm/{C_ao7GFfP3Zoxr14.mjs → DhWeeZyxUc-LbP8E.mjs} +1 -1
  24. package/browser/esm/{BfpYf7__GbBwa59l.mjs → DqLDLUCqiFovdBf0.mjs} +2 -2
  25. package/browser/esm/{CCX0mfhczHykCB-q.mjs → Dvo0k3olgFuAso_O.mjs} +1 -1
  26. package/browser/esm/index.mjs +2 -2
  27. package/node/esm/{nldd9Neo7E90KQAv.mjs → BM_pvbGlgXydGNT3.mjs} +1 -1
  28. package/node/esm/{B1BgsEptOI00I5pk.mjs → CFBcwLP2q2_EUXvE.mjs} +1 -1
  29. package/node/esm/{3jy0xPC6poRuFlUZ.mjs → Cg9JFB8nOnVfR0Uo.mjs} +1 -1
  30. package/node/esm/{DZig6hKohig9Byxi.mjs → D3kxA1LpG-PpZvCb.mjs} +1 -1
  31. package/node/esm/{DwOA3xOc1Zri3Q2s.mjs → D_s6w_GWb8l7uGW3.mjs} +1 -1
  32. package/node/esm/{CeLVpEYlz5l-F6Uu.mjs → XI3nj4zD7mXOyxSm.mjs} +1 -1
  33. package/node/esm/{DcfoFM2y1Iki--d-.mjs → YXQgUYqP1qsi_MPX.mjs} +1 -1
  34. package/node/esm/index.mjs +13 -12
  35. package/node/esm/{5Pf4a_UBUUYB0GOP.mjs → m2lejeU-ViEhFj_N.mjs} +1 -1
  36. package/node/esm/{DlHI-sO3WLoFODrD.mjs → sevERUPIPJCb-jYL.mjs} +1 -1
  37. package/node/esm/{XCWsJV859i0H7CZS.mjs → zdjaq7yEfEvgHrDi.mjs} +1 -1
  38. package/package.json +8 -8
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
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,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("react"),d=require("@mui/material/styles"),r=require("@mui/material"),a=require("@sheetxl/sdk"),X=require("@sheetxl/react"),s=require("@sheetxl/utils-react"),g=require("@sheetxl/utils-mui"),le=require("./E8e5MHnO-1bdpqSq.cjs"),D={width:"1.5rem",height:"1.5rem"},A=l.memo(I=>{const{label:f,value:O,options:c,onSelect:y,tabIndex:S=0,...M}=I,[k,C]=l.useState(()=>Z(O,c));l.useEffect(()=>{C(Z(O,c))},[O,c]);const b=s.useCallbackRef(x=>{C(x.target.value),y?.(c[x.target.value])},[y,c]),R=l.useMemo(()=>Object.keys(c).map(x=>i.jsx(r.MenuItem,{value:x,children:x},x)),[c]);return i.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[i.jsx(r.InputLabel,{children:f}),i.jsx(r.Select,{inputProps:{tabIndex:S},value:k,label:f,onChange:b,sx:{backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},...M,children:R})]})}),Y={enter:140,exit:140},ee={Formulas:a.ICell.Content.Formulas,Values:a.ICell.Content.Values,Notes:a.ICell.Content.Notes,Comments:a.ICell.Content.Comments},ne={...ee};delete ne.Values;const se={"By Rows":!0,"By Columns":!1},Z=(I,f)=>{const O=Object.keys(f);for(let c=0;c<O.length;c++){const y=O[c];if(f[y]===I)return y}},_=l.memo(I=>{const{initialValue:f,context:O,onInput:c,title:y,onHide:S,autoFocus:M,...k}=I,C=f?.replace??!1,b=f?.findOptions,R=b.text??null,x=f?.replaceOptions,E=f?.replaceText??null,K=O?.(),p=l.useRef(null),q=l.useRef(null),L=l.useRef(null),P=l.useRef(null),W=l.useRef(null),$=l.useRef(null),V=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[z,F]=l.useState(!1),[T,te]=l.useState(!1),[m,w]=l.useState(C),[N,B]=l.useState(!1),[H,U]=l.useState(!1),[o,u]=l.useState({replaceText:null,replace:C,replaceOptions:null,findOptions:{text:null,matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:a.IRange.Orientation.Row,fields:[a.ICell.Content.Formulas]},scope:X.CommandContext.FindScopeOptions.Sheet}),j=s.useCallbackRef(async(e,n,t,v)=>{if(!K)return;const h={...o};h.replaceOptions={...h.replaceOptions},h.findOptions={...h.findOptions},h.replaceOptions.maxCount=t?void 0:1,h.replace=n,n&&o.findOptions.fields?.[0]===a.ICell.Content.Values&&(h.findOptions.fields=[a.ICell.Content.Formulas]),h.findOptions.reverse=!e;const oe=await K({autoFocus:v,...h});B(oe===0)},[o,K]);l.useEffect(()=>{B(!1)},[o,T,m]);const G=s.useCallbackRef((e,n)=>{if(e.keyCode===s.KeyCodes.Enter){if(!o.findOptions.text)return;let t=!0,v=!1;e.shiftKey&&(t=!1),n?(e.ctrlKey&&e.altKey&&(v=!0),V(e,v?$.current:W.current)):V(e,t?P.current:L.current),j(t,n,v,!1)}},[o]),J=l.useRef(null);l.useLayoutEffect(()=>{u(e=>{const n={...e};n.findOptions.text=R&&R.length>0?R:e.findOptions.text??"",F(!0),E!==null&&(n.replaceText=E??""),b&&(n.findOptions={...n.findOptions,...b}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),x&&(n.replaceOptions={...n.replaceOptions,...x}),o.findOptions.fields?.[0]||(o.findOptions.fields=[a.ICell.Content.Formulas]);const t=!(!C&&!x&&E===null);return t&&w(t),n}),H||J.current?.focus()},[f,C,R,E,b,x]),l.useEffect(()=>{m?(o.findOptions.fields[0],a.ICell.Content.Values):F(!0)},[m]),l.useEffect(()=>{if(z&&p.current&&o.findOptions.text===p.current.value)return p.current===document.activeElement||p.current.contains(document.activeElement)?(p.current?.select(),void F(!1)):void p.current.addEventListener("focus",()=>{p.current?.select(),F(!1)},{once:!0})},[z,o]);const[ie,{width:Q}]=le.useMeasure();return i.jsx(g.InternalWindow,{ref:J,title:y??(m?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:S,onFocus:()=>U(!0),onBlur:()=>{U(!1),B(!1)},slotProps:{paper:{elevation:H?3:1}},...k,children:i.jsxs(r.DialogContent,{dividers:!0,ref:ie,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)w(!0),p.current?.contains(document.activeElement)&&q.current?.focus();else if(e.key==="f"&&e.ctrlKey)p.current?.focus();else if(e.key==="c"&&e.altKey)u(n=>{const t={...n};return t.findOptions.matchCase=!n.findOptions.matchCase,t});else if(e.key==="e"&&e.altKey)u(n=>{const t={...n};return t.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,t});else{if(e.key!=="r"||!e.altKey)return;u(n=>{const t={...n};return t.findOptions.useRegex=!n.findOptions.useRegex,t})}e.preventDefault()},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[i.jsx(g.ExhibitOptionButton,{selected:T,onSelectToggle:e=>{te(e)},preventFocus:!0,label:"Toggle Additional Options",icon:i.jsx(s.DynamicIcon,{iconKey:"FindOptions"})}),i.jsx(g.ExhibitOptionButton,{selected:m,onSelectToggle:e=>{w(e)},preventFocus:!0,label:"Toggle Replace",icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceToggle"}),shortcut:{key:m?"F":"H",modifiers:[s.KeyModifiers.Ctrl]}})]}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[i.jsx(r.TextField,{label:"Find",slotProps:{input:{sx:{paddingRight:e=>e.spacing(1),minWidth:Q>460?"20em":void 0,backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},endAdornment:i.jsx(r.InputAdornment,{position:"end",children:i.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2px"},children:[i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.matchCase,onBlur:()=>{},onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.matchCase=e,t})},label:"Match Case",shortcut:{key:"C",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindCaseSensitive",size:"1rem"})}),i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.matchEntireCell,onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.matchEntireCell=e,t})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindWholeWord",size:"1rem"})}),i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.useRegex,onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.useRegex=e,t})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindRegEx",size:"1rem"})})]})})},inputLabel:{shrink:!0},htmlInput:{draggable:!1,ref:p,className:"input",autoFocus:!0,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),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>N?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>N?`${e.palette.error.main} !important`:void 0}},value:o.findOptions.text??"",onChange:e=>{u(n=>{const t={...n};return t.findOptions.text=e.target.value,t})},onKeyDown:e=>G(e,!1),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(g.ExhibitOptionButton,{selected:o.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:L,label:"",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Shift]},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowBack":"ArrowUpward"}),disabled:!o.findOptions.text}),i.jsx(g.ExhibitOptionButton,{selected:!o.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:P,label:"Next Match",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowForward":"ArrowDownward"}),disabled:!o.findOptions.text})]}),i.jsx(r.Collapse,{in:m,timeout:Y,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[i.jsx(r.TextField,{label:"Replace",slotProps:{input:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`}},inputLabel:{shrink:!0},htmlInput:{ref:q,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:o.replaceText??"",onChange:e=>{u(n=>{const t={...n};return t.replaceText=e.target.value,t})},onKeyDown:e=>G(e,!0),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(g.ExhibitOptionButton,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:W,label:"Replace",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplace"}),disabled:!o.findOptions.text}),i.jsx(g.ExhibitOptionButton,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:$,label:"Replace All",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Ctrl,s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceAll"}),disabled:!o.findOptions.text})]})})]})]}),i.jsx(r.Collapse,{in:T,timeout:Y,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(1.5),marginTop:e=>e.spacing(1)},children:[i.jsx(g.ExhibitDivider,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:Q>=383?"row":"column",justifyContent:"space-evenly",alignItems:"center",gap:e=>e.spacing(1),rowGap:e=>e.spacing(2)},tabIndex:-1,children:[i.jsx(A,{label:"Within",value:o.scope,options:X.CommandContext.FindScopeOptions,onSelect:e=>{u(n=>{const t={...n};return t.scope=e,t})}}),i.jsx(A,{label:"Search",value:o.findOptions.orientation!==a.IRange.Orientation.Column,options:se,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.orientation=e?a.IRange.Orientation.Row:a.IRange.Orientation.Column,t})}}),i.jsx(A,{label:"Look in",value:m&&o.findOptions.fields?.[0]===a.ICell.Content.Values?a.ICell.Content.Formulas:o.findOptions.fields?.[0],options:m?ne:ee,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.fields=[e],t})}})]})]})})]})})});exports.FindReplaceWindow=_,exports.default=_;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("react"),d=require("@mui/material/styles"),r=require("@mui/material"),a=require("@sheetxl/sdk"),X=require("@sheetxl/react"),s=require("@sheetxl/utils-react"),g=require("@sheetxl/utils-mui"),le=require("./DahKlfm68zudpndW.cjs"),D={width:"1.5rem",height:"1.5rem"},A=l.memo(I=>{const{label:f,value:O,options:c,onSelect:y,tabIndex:S=0,...M}=I,[k,C]=l.useState(()=>Z(O,c));l.useEffect(()=>{C(Z(O,c))},[O,c]);const b=s.useCallbackRef(x=>{C(x.target.value),y?.(c[x.target.value])},[y,c]),R=l.useMemo(()=>Object.keys(c).map(x=>i.jsx(r.MenuItem,{value:x,children:x},x)),[c]);return i.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[i.jsx(r.InputLabel,{children:f}),i.jsx(r.Select,{inputProps:{tabIndex:S},value:k,label:f,onChange:b,sx:{backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},...M,children:R})]})}),Y={enter:140,exit:140},ee={Formulas:a.ICell.Content.Formulas,Values:a.ICell.Content.Values,Notes:a.ICell.Content.Notes,Comments:a.ICell.Content.Comments},ne={...ee};delete ne.Values;const se={"By Rows":!0,"By Columns":!1},Z=(I,f)=>{const O=Object.keys(f);for(let c=0;c<O.length;c++){const y=O[c];if(f[y]===I)return y}},_=l.memo(I=>{const{initialValue:f,context:O,onInput:c,title:y,onHide:S,autoFocus:M,...k}=I,C=f?.replace??!1,b=f?.findOptions,R=b.text??null,x=f?.replaceOptions,E=f?.replaceText??null,K=O?.(),p=l.useRef(null),q=l.useRef(null),L=l.useRef(null),P=l.useRef(null),W=l.useRef(null),$=l.useRef(null),V=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[z,F]=l.useState(!1),[T,te]=l.useState(!1),[m,w]=l.useState(C),[N,B]=l.useState(!1),[H,U]=l.useState(!1),[o,u]=l.useState({replaceText:null,replace:C,replaceOptions:null,findOptions:{text:null,matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:a.IRange.Orientation.Row,fields:[a.ICell.Content.Formulas]},scope:X.CommandContext.FindScopeOptions.Sheet}),j=s.useCallbackRef(async(e,n,t,v)=>{if(!K)return;const h={...o};h.replaceOptions={...h.replaceOptions},h.findOptions={...h.findOptions},h.replaceOptions.maxCount=t?void 0:1,h.replace=n,n&&o.findOptions.fields?.[0]===a.ICell.Content.Values&&(h.findOptions.fields=[a.ICell.Content.Formulas]),h.findOptions.reverse=!e;const oe=await K({autoFocus:v,...h});B(oe===0)},[o,K]);l.useEffect(()=>{B(!1)},[o,T,m]);const G=s.useCallbackRef((e,n)=>{if(e.keyCode===s.KeyCodes.Enter){if(!o.findOptions.text)return;let t=!0,v=!1;e.shiftKey&&(t=!1),n?(e.ctrlKey&&e.altKey&&(v=!0),V(e,v?$.current:W.current)):V(e,t?P.current:L.current),j(t,n,v,!1)}},[o]),J=l.useRef(null);l.useLayoutEffect(()=>{u(e=>{const n={...e};n.findOptions.text=R&&R.length>0?R:e.findOptions.text??"",F(!0),E!==null&&(n.replaceText=E??""),b&&(n.findOptions={...n.findOptions,...b}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),x&&(n.replaceOptions={...n.replaceOptions,...x}),o.findOptions.fields?.[0]||(o.findOptions.fields=[a.ICell.Content.Formulas]);const t=!(!C&&!x&&E===null);return t&&w(t),n}),H||J.current?.focus()},[f,C,R,E,b,x]),l.useEffect(()=>{m?(o.findOptions.fields[0],a.ICell.Content.Values):F(!0)},[m]),l.useEffect(()=>{if(z&&p.current&&o.findOptions.text===p.current.value)return p.current===document.activeElement||p.current.contains(document.activeElement)?(p.current?.select(),void F(!1)):void p.current.addEventListener("focus",()=>{p.current?.select(),F(!1)},{once:!0})},[z,o]);const[ie,{width:Q}]=le.useMeasure();return i.jsx(g.InternalWindow,{ref:J,title:y??(m?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:S,onFocus:()=>U(!0),onBlur:()=>{U(!1),B(!1)},slotProps:{paper:{elevation:H?3:1}},...k,children:i.jsxs(r.DialogContent,{dividers:!0,ref:ie,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)w(!0),p.current?.contains(document.activeElement)&&q.current?.focus();else if(e.key==="f"&&e.ctrlKey)p.current?.focus();else if(e.key==="c"&&e.altKey)u(n=>{const t={...n};return t.findOptions.matchCase=!n.findOptions.matchCase,t});else if(e.key==="e"&&e.altKey)u(n=>{const t={...n};return t.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,t});else{if(e.key!=="r"||!e.altKey)return;u(n=>{const t={...n};return t.findOptions.useRegex=!n.findOptions.useRegex,t})}e.preventDefault()},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[i.jsx(g.ExhibitOptionButton,{selected:T,onSelectToggle:e=>{te(e)},preventFocus:!0,label:"Toggle Additional Options",icon:i.jsx(s.DynamicIcon,{iconKey:"FindOptions"})}),i.jsx(g.ExhibitOptionButton,{selected:m,onSelectToggle:e=>{w(e)},preventFocus:!0,label:"Toggle Replace",icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceToggle"}),shortcut:{key:m?"F":"H",modifiers:[s.KeyModifiers.Ctrl]}})]}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[i.jsx(r.TextField,{label:"Find",slotProps:{input:{sx:{paddingRight:e=>e.spacing(1),minWidth:Q>460?"20em":void 0,backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},endAdornment:i.jsx(r.InputAdornment,{position:"end",children:i.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2px"},children:[i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.matchCase,onBlur:()=>{},onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.matchCase=e,t})},label:"Match Case",shortcut:{key:"C",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindCaseSensitive",size:"1rem"})}),i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.matchEntireCell,onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.matchEntireCell=e,t})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindWholeWord",size:"1rem"})}),i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.useRegex,onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.useRegex=e,t})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindRegEx",size:"1rem"})})]})})},inputLabel:{shrink:!0},htmlInput:{draggable:!1,ref:p,className:"input",autoFocus:!0,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),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>N?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>N?`${e.palette.error.main} !important`:void 0}},value:o.findOptions.text??"",onChange:e=>{u(n=>{const t={...n};return t.findOptions.text=e.target.value,t})},onKeyDown:e=>G(e,!1),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(g.ExhibitOptionButton,{selected:o.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:L,label:"",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Shift]},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowBack":"ArrowUpward"}),disabled:!o.findOptions.text}),i.jsx(g.ExhibitOptionButton,{selected:!o.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:P,label:"Next Match",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowForward":"ArrowDownward"}),disabled:!o.findOptions.text})]}),i.jsx(r.Collapse,{in:m,timeout:Y,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[i.jsx(r.TextField,{label:"Replace",slotProps:{input:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`}},inputLabel:{shrink:!0},htmlInput:{ref:q,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:o.replaceText??"",onChange:e=>{u(n=>{const t={...n};return t.replaceText=e.target.value,t})},onKeyDown:e=>G(e,!0),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(g.ExhibitOptionButton,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:W,label:"Replace",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplace"}),disabled:!o.findOptions.text}),i.jsx(g.ExhibitOptionButton,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:$,label:"Replace All",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Ctrl,s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceAll"}),disabled:!o.findOptions.text})]})})]})]}),i.jsx(r.Collapse,{in:T,timeout:Y,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(1.5),marginTop:e=>e.spacing(1)},children:[i.jsx(g.ExhibitDivider,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:Q>=383?"row":"column",justifyContent:"space-evenly",alignItems:"center",gap:e=>e.spacing(1),rowGap:e=>e.spacing(2)},tabIndex:-1,children:[i.jsx(A,{label:"Within",value:o.scope,options:X.CommandContext.FindScopeOptions,onSelect:e=>{u(n=>{const t={...n};return t.scope=e,t})}}),i.jsx(A,{label:"Search",value:o.findOptions.orientation!==a.IRange.Orientation.Column,options:se,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.orientation=e?a.IRange.Orientation.Row:a.IRange.Orientation.Column,t})}}),i.jsx(A,{label:"Look in",value:m&&o.findOptions.fields?.[0]===a.ICell.Content.Values?a.ICell.Content.Formulas:o.findOptions.fields?.[0],options:m?ne:ee,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.fields=[e],t})}})]})]})})]})})});exports.FindReplaceWindow=_,exports.default=_;
@@ -1,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_11z3j_1{display:block;margin:0;padding:0;line-height:1}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{display:grid;grid-template-columns:1fr;user-select:none}@container (width > 600px){._table-style-options_1kfn2_1{grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}}._range-row_akhf4_1{display:flex;flex-direction:column;flex:1 1 100%;width:100%;align-items:center}@container (width > 600px){._range-row_akhf4_1{flex-direction:row;gap:12px;justify-content:space-between}}._action-row_akhf4_15{display:flex;align-items:start;flex-direction:column;width:100%;gap:4px}@container (width > 600px){._action-row_akhf4_15{align-items:center;flex-direction:row;justify-content:space-evenly}}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_g5t6x_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;outline:none}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_g5t6x_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  "use strict";/**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@sheetxl/sdk"),t=require("@sheetxl/react"),o=require("./E8e5MHnO-1bdpqSq.cjs");Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>e.LicenseManager}),Object.defineProperty(exports,"DefaultTaskPaneRegistry",{enumerable:!0,get:()=>t.DefaultTaskPaneRegistry}),Object.defineProperty(exports,"useModelListener",{enumerable:!0,get:()=>t.useModelListener}),Object.defineProperty(exports,"useRangeListener",{enumerable:!0,get:()=>t.useRangeListener}),exports.AppearanceCommandButton=o.AppearanceCommandButton,exports.AutoColorPosition=o.AutoColorPosition,exports.BorderCommandButton=o.BorderCommandButton,exports.BorderPopupButton=o.BorderPopupButton,exports.BorderStylePopupButton=o.BorderStylePopupButton,exports.CellsDeleteCommandButton=o.CellsDeleteCommandButton,exports.CellsFormatCommandButton=o.CellsFormatCommandButton,exports.CellsInsertCommandButton=o.CellsInsertCommandButton,exports.ClearCommandButton=o.ClearCommandButton,exports.ColorButton=o.ColorButton,exports.ColorButtonList=o.ColorButtonList,exports.ColorCommandButton=o.ColorCommandButton,exports.ColorPanel=o.ColorPanel,exports.ColorPanelType=o.ColorPanelType,exports.ColorPopupButton=o.ColorPopupButton,exports.DocThemeCommandButton=o.DocThemeCommandButton,exports.EagerStudio=o.EagerStudio,exports.FillCommandButton=o.FillCommandButton,exports.FilterColumnMenu=o.FilterColumnMenu,exports.FilterCommandButton=o.FilterCommandButton,exports.Filters=o.Filters,exports.FindCommandButton=o.FindCommandButton,exports.FontFamilyCommandButton=o.FontFamilyCommandButton,exports.FontSizeCommandButton=o.FontSizeCommandButton,exports.FormulaBar=o.FormulaBar,exports.FreezeCommandButton=o.FreezeCommandButton,exports.HelpCommandButton=o.HelpCommandButton,exports.HorizontalAlignCommandButton=o.HorizontalAlignCommandButton,exports.InsertFunctionCommandPopupButton=o.InsertFunctionCommandPopupButton,exports.InsertFunctionSumCommandPopupButton=o.InsertFunctionSumCommandPopupButton,exports.InsertImageCommandButton=o.InsertImageCommandButton,exports.MergeCommandButton=o.MergeCommandButton,exports.NamedCollectionEditor=o.NamedCollectionEditor,exports.NamedInput=o.NamedInput,exports.NumberFormatCommandButton=o.NumberFormatCommandButton,exports.PasteCommandButton=o.PasteCommandButton,exports.PresetCellStylesCommandButton=o.PresetCellStylesCommandButton,exports.PresetTableStylesCommandButton=o.PresetTableStylesCommandButton,exports.RangeInput=o.RangeInput,exports.SheetTab=o.SheetTab,exports.SheetTabMenu=o.SheetTabMenu,exports.SheetZoomScale=o.SheetZoomScale,exports.SheetsAllMenu=o.SheetsAllMenu,exports.SortFilterCommandButton=o.SortFilterCommandButton,exports.StatusBar=o.StatusBar,exports.Studio=o.Studio,exports.StyledStrokeIcon=o.StyledStrokeIcon,exports.TableDetailsPanel=o.TableDetailsPanel,exports.TableDetailsTaskPane=o.TableDetailsTaskPane,exports.TablePlugin=o.TablePlugin,exports.TableStyleCanvasPreview=o.TableStyleCanvasPreview,exports.TableStyleOptionsPanel=o.TableStyleOptionsPanel,exports.TableStylePreview=o.TableStylePreview,exports.TextEffectsCommandButton=o.TextEffectsCommandButton,exports.TextOverflowCommandButton=o.TextOverflowCommandButton,exports.TextRotateCommandButton=o.TextRotateCommandButton,exports.ThemeSelectButton=o.ThemeSelectButton,exports.ThemeSelectPanel=o.ThemeSelectPanel,exports.ThemeSelectPopupButton=o.ThemeSelectPopupButton,exports.UnderlineCommandButton=o.UnderlineCommandButton,exports.UndoRedoCommandButton=o.UndoRedoCommandButton,exports.VerticalAlignCommandButton=o.VerticalAlignCommandButton,exports.ViewGridLinesCommandButton=o.ViewGridLinesCommandButton,exports.ViewHeadingsCommandButton=o.ViewHeadingsCommandButton,exports.WalkingCopyCommandButton=o.WalkingCopyCommandButton,exports.WorkbookContextMenu=o.WorkbookContextMenu,exports.WorkbookElement=o.WorkbookElement,exports.WorkbookIO=o.WorkbookIO,exports.WorkbookStrip=o.WorkbookStrip,exports.WorkbookTitle=o.WorkbookTitle,exports.WorkbookViewCommandButton=o.WorkbookViewCommandButton,exports._WorkbookIO=o._WorkbookIO,exports.createGridStyleFromMUITheme=o.createGridStyleFromMUITheme,exports.default=o.Studio,exports.setPrintExamplesOnLoad=o.setPrintExamplesOnLoad,exports.useWorkbookCommands=o.useWorkbookCommands;
7
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@sheetxl/sdk"),t=require("@sheetxl/react"),o=require("./DahKlfm68zudpndW.cjs");Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>e.LicenseManager}),Object.defineProperty(exports,"DefaultTaskPaneRegistry",{enumerable:!0,get:()=>t.DefaultTaskPaneRegistry}),Object.defineProperty(exports,"useModelListener",{enumerable:!0,get:()=>t.useModelListener}),Object.defineProperty(exports,"useRangeListener",{enumerable:!0,get:()=>t.useRangeListener}),exports.AppearanceCommandButton=o.AppearanceCommandButton,exports.AutoColorPosition=o.AutoColorPosition,exports.BorderCommandButton=o.BorderCommandButton,exports.BorderPopupButton=o.BorderPopupButton,exports.BorderStylePopupButton=o.BorderStylePopupButton,exports.CellsDeleteCommandButton=o.CellsDeleteCommandButton,exports.CellsFormatCommandButton=o.CellsFormatCommandButton,exports.CellsInsertCommandButton=o.CellsInsertCommandButton,exports.ClearCommandButton=o.ClearCommandButton,exports.ColorButton=o.ColorButton,exports.ColorButtonList=o.ColorButtonList,exports.ColorCommandButton=o.ColorCommandButton,exports.ColorPanel=o.ColorPanel,exports.ColorPanelType=o.ColorPanelType,exports.ColorPopupButton=o.ColorPopupButton,exports.DocThemeCommandButton=o.DocThemeCommandButton,exports.EagerStudio=o.EagerStudio,exports.FillCommandButton=o.FillCommandButton,exports.FilterColumnMenu=o.FilterColumnMenu,exports.FilterCommandButton=o.FilterCommandButton,exports.Filters=o.Filters,exports.FindCommandButton=o.FindCommandButton,exports.FontFamilyCommandButton=o.FontFamilyCommandButton,exports.FontSizeCommandButton=o.FontSizeCommandButton,exports.FormulaBar=o.FormulaBar,exports.FreezeCommandButton=o.FreezeCommandButton,exports.HelpCommandButton=o.HelpCommandButton,exports.HorizontalAlignCommandButton=o.HorizontalAlignCommandButton,exports.InsertFunctionCommandPopupButton=o.InsertFunctionCommandPopupButton,exports.InsertFunctionSumCommandPopupButton=o.InsertFunctionSumCommandPopupButton,exports.InsertImageCommandButton=o.InsertImageCommandButton,exports.MergeCommandButton=o.MergeCommandButton,exports.NamedCollectionEditor=o.NamedCollectionEditor,exports.NamedInput=o.NamedInput,exports.NumberFormatCommandButton=o.NumberFormatCommandButton,exports.PasteCommandButton=o.PasteCommandButton,exports.PresetCellStylesCommandButton=o.PresetCellStylesCommandButton,exports.PresetTableStylesCommandButton=o.PresetTableStylesCommandButton,exports.RangeInput=o.RangeInput,exports.SheetTab=o.SheetTab,exports.SheetTabMenu=o.SheetTabMenu,exports.SheetZoomScale=o.SheetZoomScale,exports.SheetsAllMenu=o.SheetsAllMenu,exports.SortFilterCommandButton=o.SortFilterCommandButton,exports.StatusBar=o.StatusBar,exports.Studio=o.Studio,exports.StyledStrokeIcon=o.StyledStrokeIcon,exports.TableDetailsPanel=o.TableDetailsPanel,exports.TableDetailsTaskPane=o.TableDetailsTaskPane,exports.TablePlugin=o.TablePlugin,exports.TableStyleCanvasPreview=o.TableStyleCanvasPreview,exports.TableStyleOptionsPanel=o.TableStyleOptionsPanel,exports.TableStylePreview=o.TableStylePreview,exports.TextEffectsCommandButton=o.TextEffectsCommandButton,exports.TextOverflowCommandButton=o.TextOverflowCommandButton,exports.TextRotateCommandButton=o.TextRotateCommandButton,exports.ThemeSelectButton=o.ThemeSelectButton,exports.ThemeSelectPanel=o.ThemeSelectPanel,exports.ThemeSelectPopupButton=o.ThemeSelectPopupButton,exports.UnderlineCommandButton=o.UnderlineCommandButton,exports.UndoRedoCommandButton=o.UndoRedoCommandButton,exports.VerticalAlignCommandButton=o.VerticalAlignCommandButton,exports.ViewGridLinesCommandButton=o.ViewGridLinesCommandButton,exports.ViewHeadingsCommandButton=o.ViewHeadingsCommandButton,exports.WalkingCopyCommandButton=o.WalkingCopyCommandButton,exports.WorkbookContextMenu=o.WorkbookContextMenu,exports.WorkbookElement=o.WorkbookElement,exports.WorkbookIO=o.WorkbookIO,exports.WorkbookStrip=o.WorkbookStrip,exports.WorkbookTitle=o.WorkbookTitle,exports.WorkbookViewCommandButton=o.WorkbookViewCommandButton,exports._WorkbookIO=o._WorkbookIO,exports.createGridStyleFromMUITheme=o.createGridStyleFromMUITheme,exports.default=o.Studio,exports.setPrintExamplesOnLoad=o.setPrintExamplesOnLoad,exports.useWorkbookCommands=o.useWorkbookCommands;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("react"),w=require("@mui/material"),d=require("@sheetxl/utils-react"),F=require("@sheetxl/utils-mui"),O=require("./E8e5MHnO-1bdpqSq.cjs"),B=["Ok","Cancel"],R=l.memo(V=>{const{initialValue:a=null,context:t,onOption:c,onValidateOption:M,onDone:p,onInput:g,options:m=B,defaultOption:x=m?.[0],cancelOption:f="Cancel",sx:b,...h}=V,N=l.useMemo(()=>t?.().getNames().findValidName("Range1"),[]),y=l.useMemo(()=>{if(!a)return!0},[]),[n,v]=l.useState({displayText:a?.getName()??N,errorText:null}),[o,k]=l.useState({displayValue:a?.getRanges()??t?.().selection()??null,errorText:null}),[T,C]=l.useState(!1),q=l.useCallback(async e=>!n.errorText&&!o.errorText,[]),I=d.useCallbackRef((e,s,u)=>{if(!s){let i=null;y?i=t?.().getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),i=a),i&&(i.select(),g(i))}c?.(e,s,u),p?.()},[t,n,o,p,c,x,f,g]),S=d.useCallbackRef(e=>{let s=null;try{t?.().getNames().validateName(e)}catch(u){s=u.message}v({displayText:e,errorText:s})},[]),j=d.useCallbackRef(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.().getNames().validateName(e)},[t,a]),D=l.useCallback(e=>{k({displayValue:e??null,errorText:null})},[]);return r.jsx(F.OptionsDialog,{title:(y?"Define":"Edit")+" Range",options:m,onOption:I,onValidateOption:q,defaultOption:x,cancelOption:f,autoFocusSel:".autoFocus",sx:{width:"460px",...b},...h,children:r.jsxs(w.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[r.jsx(O.NamedInput,{formName:"name",defaultInput:N,value:n.displayText,onChangeInput:S,onValidate:j,onFocus:e=>{T||e.target?.select(),C(!0)}}),r.jsx(O.RangeInput,{formName:"range",value:o.displayValue,onChangeInput:D,resolvedAddress:t?t().getNames().getRanges.bind(t().getNames()):void 0,onFocus:e=>{T||e.target?.select(),C(!0)}})]})})});exports.NamedReferenceDialog=R,exports.default=R;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("react"),w=require("@mui/material"),d=require("@sheetxl/utils-react"),F=require("@sheetxl/utils-mui"),O=require("./DahKlfm68zudpndW.cjs"),B=["Ok","Cancel"],R=l.memo(V=>{const{initialValue:a=null,context:t,onOption:c,onValidateOption:M,onDone:p,onInput:g,options:m=B,defaultOption:x=m?.[0],cancelOption:f="Cancel",sx:b,...h}=V,N=l.useMemo(()=>t?.().getNames().findValidName("Range1"),[]),y=l.useMemo(()=>{if(!a)return!0},[]),[n,v]=l.useState({displayText:a?.getName()??N,errorText:null}),[o,k]=l.useState({displayValue:a?.getRanges()??t?.().selection()??null,errorText:null}),[T,C]=l.useState(!1),q=l.useCallback(async e=>!n.errorText&&!o.errorText,[]),I=d.useCallbackRef((e,s,u)=>{if(!s){let i=null;y?i=t?.().getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),i=a),i&&(i.select(),g(i))}c?.(e,s,u),p?.()},[t,n,o,p,c,x,f,g]),S=d.useCallbackRef(e=>{let s=null;try{t?.().getNames().validateName(e)}catch(u){s=u.message}v({displayText:e,errorText:s})},[]),j=d.useCallbackRef(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.().getNames().validateName(e)},[t,a]),D=l.useCallback(e=>{k({displayValue:e??null,errorText:null})},[]);return r.jsx(F.OptionsDialog,{title:(y?"Define":"Edit")+" Range",options:m,onOption:I,onValidateOption:q,defaultOption:x,cancelOption:f,autoFocusSel:".autoFocus",sx:{width:"460px",...b},...h,children:r.jsxs(w.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[r.jsx(O.NamedInput,{formName:"name",defaultInput:N,value:n.displayText,onChangeInput:S,onValidate:j,onFocus:e=>{T||e.target?.select(),C(!0)}}),r.jsx(O.RangeInput,{formName:"range",value:o.displayValue,onChangeInput:D,resolvedAddress:t?t().getNames().getRanges.bind(t().getNames()):void 0,onFocus:e=>{T||e.target?.select(),C(!0)}})]})})});exports.NamedReferenceDialog=R,exports.default=R;
@@ -5,7 +5,7 @@ import { Sort as s, IRange as r } from "@sheetxl/sdk";
5
5
  import { useCallbackRef as H } from "@sheetxl/utils-react";
6
6
  import { OptionsDialog as x } from "@sheetxl/utils-mui";
7
7
  /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -4,11 +4,11 @@ import { KeyCodes as pt, DynamicIcon as mt } from "@sheetxl/utils-react";
4
4
  import { toShortcutElements as to, InternalWindow as oo } from "@sheetxl/utils-mui";
5
5
  import * as C from "react";
6
6
  import gt, { cloneElement as no, useState as ae, useMemo as ro, useEffect as Ge } from "react";
7
- import { _ as io, a as N, b as U, d as lo, e as ge } from "./Bt82WYyOXeYPeP0S.mjs";
7
+ import { _ as io, a as N, b as U, d as lo, e as ge } from "./BgsyX5QL9OLy0DN3.mjs";
8
8
  import { alpha as ce, getOverlayAlpha as de, styled as so } from "@mui/material/styles";
9
9
  import { CommonUtils as ao } from "@sheetxl/utils";
10
10
  /**
11
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
11
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
12
12
  *
13
13
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
14
14
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -2128,7 +2128,7 @@ function Ao(n) {
2128
2128
  return v;
2129
2129
  }, [o, e]), [s, c] = ae(null);
2130
2130
  Ge(() => {
2131
- import("./I6t3w77JwlDm6InL.mjs").then((h) => {
2131
+ import("./BTAhrEfV-DH0-Ldk.mjs").then((h) => {
2132
2132
  c(new h.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
2133
2133
  });
2134
2134
  }, [a]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.24
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.26
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.