@sheetxl/studio-mui 0.7.4 → 0.7.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 (47) hide show
  1. package/README.md +9 -5
  2. package/browser/cjs/{DwzNkpi_T8XJi3Cd.cjs → -u6vWH9DiYlO1rsa.cjs} +1 -1
  3. package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +20 -0
  4. package/browser/cjs/{B6o1iQp5wuulPhxo.cjs → 7MV1n9Y0yXU0hKpM.cjs} +1 -1
  5. package/browser/cjs/{BY3gQcuJkcK9yhlk.cjs → B8-dSgXI2XZKFvtp.cjs} +2 -2
  6. package/browser/cjs/BEmcHbiMOFhIa91S.cjs +6 -0
  7. package/browser/cjs/{CflDY3SthBCQg-9F.cjs → BdNRaXTgqRzPmg0L.cjs} +2 -2
  8. package/browser/cjs/{D5l5wPl8rDYzrVey.cjs → Ce6JLd3qejgMgM3r.cjs} +7 -7
  9. package/browser/cjs/{qd_yuub025U26HmN.cjs → D7AH724IJJvos02e.cjs} +1 -1
  10. package/browser/cjs/{yETr27p_AmaFufvo.cjs → DefYX_aeMZivbpEt.cjs} +2 -2
  11. package/browser/cjs/{HfdfBnRHde6LrsMc.cjs → KOj1qev47_vzzRFV.cjs} +1 -1
  12. package/browser/cjs/{BY1UZBLCxYes25sM.cjs → St8H4B5iT2fsqOb7.cjs} +1 -1
  13. package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +6 -0
  14. package/browser/cjs/index.cjs +2 -2
  15. package/browser/esm/BNxVvFkY3b2mERJf.mjs +64 -0
  16. package/browser/esm/{BqypjhYAei9BoIkg.mjs → BnVbG5kg41edf8oz.mjs} +2 -2
  17. package/browser/esm/{DUTXM-jsPX1poBAb.mjs → CJsYe8TqU6tqj4UH.mjs} +55 -56
  18. package/browser/esm/{CwE4P36bJkqx4fG2.mjs → CKLhWrNo1E4r3pG7.mjs} +1 -1
  19. package/browser/esm/{DpeZ0TCk2XtCsW7D.mjs → DVSjscO7zuDsOD4v.mjs} +2 -2
  20. package/browser/esm/{CX5p76lvGB80Gn7j.mjs → DdLujAMc-Cefddif.mjs} +1 -1
  21. package/browser/esm/{BMrxZUxFZxs_TprK.mjs → Dg_NRblGOcetqhnC.mjs} +17 -18
  22. package/browser/esm/{C43cFXvNQttM0tuv.mjs → YfJJd16cfjuXpb8G.mjs} +1 -1
  23. package/browser/esm/beUKtp_qQMnuYcVk.mjs +4452 -0
  24. package/browser/esm/index.mjs +68 -71
  25. package/browser/esm/{C-TjWH0Ll_dg6TXG.mjs → miaBr4cu9WKLs8Is.mjs} +1 -1
  26. package/browser/esm/{UKbQrJIwqIMUQ4dz.mjs → nwvZlIH9rheqctQz.mjs} +1 -1
  27. package/browser/esm/{DDCO6hne0WaKAsyz.mjs → yQgfM4ehXrfnEoUK.mjs} +2 -2
  28. package/node/esm/{DmbC0_ocWCB60DUY.mjs → B9TRK2jd_Ki2RifT.mjs} +1 -1
  29. package/node/esm/{g5IsTuP_M7p1bN41.mjs → BTp8XtWh47Y1g1MM.mjs} +1 -1
  30. package/node/esm/BcB8nCbI5HW5jv5q.mjs +65 -0
  31. package/node/esm/C5WzmLTAphEQU3CU.mjs +155 -0
  32. package/node/esm/{C0x0sq_I7hdqCuBB.mjs → CN79Z_qqLiF3V5r0.mjs} +1 -1
  33. package/node/esm/{x7VDppl2hKDhIcfj.mjs → CNCYE_ff8SnJJMPN.mjs} +41 -42
  34. package/node/esm/{nZVauB5xkNLVTaod.mjs → COoX8Ir66wNuWJ_m.mjs} +1 -1
  35. package/node/esm/{VjNnErE5lO5hNix_.mjs → CxbA2L1Ap9NSJcxm.mjs} +1 -1
  36. package/node/esm/{CdEdm8ItFMvEzr0O.mjs → Dln5o1FP_HWPs0Uf.mjs} +1 -1
  37. package/node/esm/index.mjs +1405 -1452
  38. package/node/esm/{DhjwHPKOhF-WGawL.mjs → qpKmKMfv4DDofXKf.mjs} +1 -1
  39. package/package.json +21 -10
  40. package/types/index.d.ts +14 -92
  41. package/browser/cjs/BCNKSDS1DahImiBd.cjs +0 -20
  42. package/browser/cjs/BrJIDDxcCb7loSqZ.cjs +0 -6
  43. package/browser/cjs/hRcxITGib5rp_kTW.cjs +0 -6
  44. package/browser/esm/BXa5jJK06vkHLfz_.mjs +0 -64
  45. package/browser/esm/zTa4aYOOiAsmWpM1.mjs +0 -4489
  46. package/node/esm/DUoSsHJRuVxAeHW-.mjs +0 -156
  47. package/node/esm/DuFKPKejduTq6L6F.mjs +0 -65
@@ -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.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
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.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
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"),c=require("@sheetxl/utils-react"),F=require("@sheetxl/utils-mui"),O=require("./BCNKSDS1DahImiBd.cjs"),B=["Ok","Cancel"],R=l.memo(V=>{const{value:a=null,context:t,onOption:p,onValidateOption:M,onDone:g,onUpdate:m,options:x=B,defaultOption:f=x?.[0],cancelOption:N="Cancel",sx:b,...h}=V,y=l.useMemo(()=>t?.getNames().findValidName("Range1"),[]),u=l.useMemo(()=>{if(!a)return!0},[]),[n,v]=l.useState({displayText:a?.getName()??y,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,[t]),S=c.useCallbackRef((e,s,d)=>{if(!s){let i=null;u?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(),m(i,u))}p?.(e,s,d),g?.()},[t,n,o,g,p,f,N,m]),j=c.useCallbackRef(e=>{let s=null;try{t?.getNames().validateName(e)}catch(d){s=d.message}v({displayText:e,errorText:s})},[]),D=c.useCallbackRef(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),I=l.useCallback(e=>{k({displayValue:e??null,errorText:null})},[]);return r.jsx(F.OptionsDialog,{title:(u?"Define":"Edit")+" Range",options:x,onOption:S,onValidateOption:q,defaultOption:f,cancelOption:N,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:y,value:n.displayText,onChangeInput:j,onValidate:D,onFocus:e=>{T||e.target?.select(),C(!0)}}),r.jsx(O.RangeInput,{formName:"range",value:o.displayValue,onChangeInput:I,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),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"),c=require("@sheetxl/utils-react"),F=require("@sheetxl/utils-mui"),O=require("./1-LY_VyMGQ9MfeNB.cjs"),B=["Ok","Cancel"],R=l.memo(V=>{const{value:a=null,context:t,onOption:p,onValidateOption:M,onDone:g,onUpdate:m,options:x=B,defaultOption:f=x?.[0],cancelOption:N="Cancel",sx:b,...h}=V,y=l.useMemo(()=>t?.getNames().findValidName("Range1"),[]),u=l.useMemo(()=>{if(!a)return!0},[]),[n,v]=l.useState({displayText:a?.getName()??y,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,[t]),S=c.useCallbackRef((e,s,d)=>{if(!s){let i=null;u?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(),m(i,u))}p?.(e,s,d),g?.()},[t,n,o,g,p,f,N,m]),j=c.useCallbackRef(e=>{let s=null;try{t?.getNames().validateName(e)}catch(d){s=d.message}v({displayText:e,errorText:s})},[]),D=c.useCallbackRef(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),I=l.useCallback(e=>{k({displayValue:e??null,errorText:null})},[]);return r.jsx(F.OptionsDialog,{title:(u?"Define":"Edit")+" Range",options:x,onOption:S,onValidateOption:q,defaultOption:f,cancelOption:N,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:y,value:n.displayText,onChangeInput:j,onValidate:D,onFocus:e=>{T||e.target?.select(),C(!0)}}),r.jsx(O.RangeInput,{formName:"range",value:o.displayValue,onChangeInput:I,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),onFocus:e=>{T||e.target?.select(),C(!0)}})]})})});exports.NamedReferenceDialog=R,exports.default=R;
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
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 i=require("react/jsx-runtime"),l=require("react"),d=require("@mui/material/styles"),r=require("@mui/material"),a=require("@sheetxl/sdk"),s=require("@sheetxl/utils-react"),x=require("@sheetxl/utils-mui"),ee=require("./1-LY_VyMGQ9MfeNB.cjs"),w=l.memo(R=>{const{label:O,value:f,options:c,onSelect:g,tabIndex:C=0,...T}=R,[E,b]=l.useState(()=>G(f,c));l.useEffect(()=>{b(G(f,c))},[f,c]);const k=s.useCallbackRef(m=>{b(m.target.value),g?.(c[m.target.value])},[g,c]),p=l.useMemo(()=>Object.keys(c).map(m=>i.jsx(r.MenuItem,{value:m,children:m},m)),[c]);return i.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[i.jsx(r.InputLabel,{children:O}),i.jsx(r.Select,{inputProps:{tabIndex:C},value:E,label:O,onChange:k,sx:{backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},...T,children:p})]})}),D={Workbook:"workbook",Sheet:"sheet"},U={enter:140,exit:140},J={Formulas:a.ICell.Content.Formulas,Values:a.ICell.Content.Values,Notes:a.ICell.Content.Notes,Comments:a.ICell.Content.Comments},Q={...J};delete Q.Values;const ne={"By Rows":!0,"By Columns":!1},G=(R,O)=>{const f=Object.keys(O);for(let c=0;c<f.length;c++){const g=f[c];if(O[g]===R)return g}},X=l.memo(R=>{const{replace:O=!1,findText:f,replaceText:c,findOptions:g,replaceOptions:C,title:T,onHide:E,onFindOrReplace:b,...k}=R,p=l.useRef(null),m=l.useRef(null),B=l.useRef(null),A=l.useRef(null),M=l.useRef(null),P=l.useRef(null),W=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[q,v]=l.useState(!1),[S,Y]=l.useState(!1),[h,F]=l.useState(O),[L,K]=l.useState(!1),[$,V]=l.useState(!1),[o,u]=l.useState({findText:null,replaceText:null,replace:O,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:a.IRange.Orientation.Row,fields:[a.ICell.Content.Formulas]},scope:D.Sheet}),I=s.useCallbackRef(async(e,n,t,j)=>{if(!b)return;const y={...o};y.replaceOptions={...y.replaceOptions},y.findOptions={...y.findOptions},y.replaceOptions.maxCount=t?void 0:1,y.replace=n,n&&o.findOptions.fields?.[0]===a.ICell.Content.Values&&(y.findOptions.fields=[a.ICell.Content.Formulas]),y.findOptions.reverse=!e;const _=await b({autoFocus:j,...y});K(_===0)},[o,b]);l.useEffect(()=>{K(!1)},[o,S,h]);const N=s.useCallbackRef((e,n)=>{if(e.keyCode===s.KeyCodes.Enter){if(!o.findText)return;let t=!0,j=!1;e.shiftKey&&(t=!1),n?(e.ctrlKey&&e.altKey&&(j=!0),W(e,j?P.current:M.current)):W(e,t?A.current:B.current),I(t,n,j,!1)}},[o]),H=l.useRef(null);l.useLayoutEffect(()=>{u(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",v(!0),c!==void 0&&(n.replaceText=c),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),C&&(n.replaceOptions={...n.replaceOptions,...C}),o.findOptions.fields?.[0]||(o.findOptions.fields=[a.ICell.Content.Formulas]);const t=!(!C&&c===void 0);return t&&F(t),n}),$||H.current?.focus()},[f,c,g,C]),l.useEffect(()=>{h?(o.findOptions.fields[0],a.ICell.Content.Values):v(!0)},[h]),l.useEffect(()=>{if(q&&p.current&&o.findText===p.current.value)return p.current===document.activeElement||p.current.contains(document.activeElement)?(p.current?.select(),void v(!1)):void p.current.addEventListener("focus",()=>{p.current?.select(),v(!1)},{once:!0})},[q,o]);const[Z,{width:z}]=ee.useMeasure();return i.jsx(x.InternalWindow,{ref:H,title:T??(h?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:E,onFocus:()=>V(!0),onBlur:()=>{V(!1),K(!1)},PaperProps:{elevation:$?3:1},...k,children:i.jsxs(r.DialogContent,{dividers:!0,ref:Z,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)F(!0),p.current?.contains(document.activeElement)&&m.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(x.ExhibitOptionButton,{selected:S,onSelectToggle:e=>{Y(e)},preventFocus:!0,label:"Toggle Additional Options",icon:i.jsx(s.DynamicIcon,{iconKey:"FindOptions"})}),i.jsx(x.ExhibitOptionButton,{selected:h,onSelectToggle:e=>{F(e)},preventFocus:!0,label:"Toggle Replace",icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceToggle"}),shortcut:{key:h?"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",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:z>460?"20em":void 0,backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:p,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:i.jsx(r.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:i.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[i.jsx(x.ExhibitOptionButton,{selected:o.findOptions.matchCase,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"})}),i.jsx(x.ExhibitOptionButton,{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"})}),i.jsx(x.ExhibitOptionButton,{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"})})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>L?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>L?`${e.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:e=>{u(n=>{const t={...n};return t.findText=e.target.value,t})},onKeyDown:e=>N(e,!1),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(x.ExhibitOptionButton,{selected:o.findOptions.reverse,onSelectToggle:e=>{I(!1,!1)},touchRippleRef:B,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.findText}),i.jsx(x.ExhibitOptionButton,{selected:!o.findOptions.reverse,onSelectToggle:e=>{I(!0,!1)},touchRippleRef:A,label:"Next Match",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowForward":"ArrowDownward"}),disabled:!o.findText})]}),i.jsx(r.Collapse,{in:h,timeout:U,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",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},inputProps:{ref:m,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=>N(e,!0),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(x.ExhibitOptionButton,{onSelectToggle:e=>{I(!0,!0)},touchRippleRef:M,label:"Replace",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplace"}),disabled:!o.findText}),i.jsx(x.ExhibitOptionButton,{onSelectToggle:e=>{I(!0,!0,!0)},touchRippleRef:P,label:"Replace All",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Ctrl,s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceAll"}),disabled:!o.findText})]})})]})]}),i.jsx(r.Collapse,{in:S,timeout:U,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[i.jsx(x.ExhibitDivider,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:z>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[i.jsx(w,{label:"Within",value:o.scope,options:D,onSelect:e=>{u(n=>{const t={...n};return t.scope=e,t})}}),i.jsx(w,{label:"Search",value:o.findOptions.orientation!==a.IRange.Orientation.Column,options:ne,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.orientation=e?a.IRange.Orientation.Row:a.IRange.Orientation.Column,t})}}),i.jsx(w,{label:"Look in",value:h&&o.findOptions.fields?.[0]===a.ICell.Content.Values?a.ICell.Content.Formulas:o.findOptions.fields?.[0],options:h?Q:J,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.fields=[e],t})}})]})]})})]})})});exports.FindReplaceWindow=X,exports.ScopeOptions=D,exports.default=X;
@@ -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.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
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 n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),k=require("@sheetxl/utils-react"),D=require("@sheetxl/utils-mui"),T=require("./BCNKSDS1DahImiBd.cjs"),y=["Ok","Cancel"],b=t.memo(x=>{const{tableOptions:a,context:c,onOption:u,onValidateOption:N,onDone:p,options:d=y,defaultOption:l=d?.[0],cancelOption:s="Cancel",sx:O,...h}=x,[m,f]=t.useState(!1),[o,C]=t.useState(()=>a?.hasHeader??!1),[i,j]=t.useState(()=>a?.ranges??null),q=k.useCallbackRef(e=>{const g={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),p?.({option:e,tableOptions:g})},[p,u,l,s,o,i,a]),S=t.useCallback(async(e,g)=>null,[]);return n.jsx(D.OptionsDialog,{title:"Insert Table",options:d,onDone:q,onValidateOption:S,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...O},...h,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(T.RangeInput,{formName:"range",value:i,onChangeInput:e=>j(e),resolvedAddress:c.getNames().getRanges.bind(c.getNames()),onFocus:e=>{m||e.target?.select(),f(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>C(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),k=require("@sheetxl/utils-react"),D=require("@sheetxl/utils-mui"),T=require("./1-LY_VyMGQ9MfeNB.cjs"),y=["Ok","Cancel"],b=t.memo(x=>{const{tableOptions:a,context:c,onOption:u,onValidateOption:N,onDone:p,options:d=y,defaultOption:l=d?.[0],cancelOption:s="Cancel",sx:O,...h}=x,[m,f]=t.useState(!1),[o,C]=t.useState(()=>a?.hasHeader??!1),[i,j]=t.useState(()=>a?.ranges??null),q=k.useCallbackRef(e=>{const g={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),p?.({option:e,tableOptions:g})},[p,u,l,s,o,i,a]),S=t.useCallback(async(e,g)=>null,[]);return n.jsx(D.OptionsDialog,{title:"Insert Table",options:d,onDone:q,onValidateOption:S,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...O},...h,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(T.RangeInput,{formName:"range",value:i,onChangeInput:e=>j(e),resolvedAddress:c.getNames().getRanges.bind(c.getNames()),onFocus:e=>{m||e.target?.select(),f(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>C(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;