@sheetxl/studio-mui 0.4.7 → 0.4.9
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.
- package/browser/cjs/{CArewr_CDpxiRR66.cjs → 02LSJ7jnb-ovS7ex.cjs} +1 -1
- package/browser/cjs/{DQRGxRYSOKOEByUm.cjs → BDDJIe6JwgEYEtda.cjs} +2 -2
- package/browser/cjs/{BULArqiBp4j5hxyx.cjs → BGh6tEDK_1MFKfMU.cjs} +1 -1
- package/browser/cjs/{BbvqKmxn6Rum-bk6.cjs → BSRDKlVOTYHfOAF_.cjs} +6 -6
- package/browser/cjs/{CzHIyuIwxVQd9I_P.cjs → Bn0BSzVk_S-rvDwk.cjs} +2 -2
- package/browser/cjs/Bzf8jKmmZl374mof.cjs +6 -0
- package/browser/cjs/{BnHBKznz1O8QEPEE.cjs → C20NTPRE5_ExESDZ.cjs} +2 -2
- package/browser/cjs/{C0rgKqf5wJGFF0Pn.cjs → C5i9hklL-WNb8J_q.cjs} +2 -2
- package/browser/cjs/{B5H9gNIHdOkSXNhX.cjs → CLxYxjd0yz1LCTB-.cjs} +1 -1
- package/browser/cjs/{CmX_3VyTiwTzdJhI.cjs → CUo2iW5IL6UZJNWT.cjs} +2 -2
- package/browser/cjs/{DK6e7OLzcRQFuNAR.cjs → C_QWbWVBVc6YJ4Q3.cjs} +1 -1
- package/browser/cjs/{x5DxzBmBRyolQW8p.cjs → CeeZxww7wpF45vvp.cjs} +2 -2
- package/browser/cjs/{x0gHCGm4Ua404wtj.cjs → CekKZCV1J1HUFIqO.cjs} +2 -2
- package/browser/cjs/CgD0b2zJD8zElhuz.cjs +6 -0
- package/browser/cjs/CqwEnIUDMxWw5DX1.cjs +87 -0
- package/browser/cjs/{6ahm9L_JadTVTVKM.cjs → CwOKyPq_H2afJacv.cjs} +2 -2
- package/browser/cjs/{ojTdNwa8dIIVVsYa.cjs → D32t9wiFoNX7WVEo.cjs} +1 -1
- package/browser/cjs/{sia-JpDs1OJx3UqA.cjs → DILF3GzsMdg-Y2wu.cjs} +1 -1
- package/browser/cjs/Dr-PR7J1T91UjrPL.cjs +12 -0
- package/browser/cjs/{D0g5Yi1sFZedrm8U.cjs → DyR0_iZAINpjodWL.cjs} +2 -2
- package/browser/cjs/{ZmZmJzyx8f56di-3.cjs → LWuNxqu9MyiniH_g.cjs} +3 -3
- package/browser/cjs/{D5hBXjLlXQHJlC_R.cjs → O8r9K4Qh6Pgd6rXU.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CnIoJa4rGjDIRDt_.cjs → jbTHHxJODyD10jVH.cjs} +1 -1
- package/browser/cjs/{D2F5d-KqoX6K87V-.cjs → n-4XaX3pkXUEEQ5u.cjs} +2 -2
- package/browser/cjs/qQGaIq5VhlZJU-xf.cjs +6 -0
- package/browser/esm/{CIEN20sJj9GKW3yE.mjs → AmErN6xXU01K_bEs.mjs} +1 -1
- package/browser/esm/{54Y6CqDofk0Ryz8B.mjs → B08nVBuOXar7x7in.mjs} +3 -3
- package/browser/esm/{CMiuTssM0lBVhuJS.mjs → B8xKZIF9fvamlvW5.mjs} +6 -6
- package/browser/esm/{BadcJIpfDDb6Oula.mjs → BGWd79IfMfoHoO6g.mjs} +1 -1
- package/browser/esm/{PjZRDfcmhPXxjS2K.mjs → BT8vduOS21nsJ6EQ.mjs} +1 -1
- package/browser/esm/{vs0v9un-v2S9Jnlo.mjs → Bz6NqTbktTH8Df6_.mjs} +4 -4
- package/browser/esm/{C2ogJhUgj6tBd2Ze.mjs → CDRALHzsBIsRPM5g.mjs} +13 -13
- package/browser/esm/{Ip_kfHi5bomcrUk6.mjs → CIH1rBtL9lK5ku-N.mjs} +1 -1
- package/browser/esm/{D0TAETGiUzsAjxPY.mjs → CVJee4uHPTdpZGEH.mjs} +16 -16
- package/browser/esm/{CevfhoT-xtAPuMWS.mjs → CXUv64T9mbQbJGgM.mjs} +2 -2
- package/browser/esm/{CAgqX2BO2DbnSbS0.mjs → Ca5nvvpeuP6Wsv5P.mjs} +2 -2
- package/browser/esm/{DBhNx8LLdmzo5Avs.mjs → CelDYTh0f7McDj4o.mjs} +2 -2
- package/browser/esm/{BUxotxJXTYkCxXGj.mjs → DHlS6l8ZPDMN2cwP.mjs} +1 -1
- package/browser/esm/{DHsxjQ98xXj3tRTJ.mjs → DXKQ9TZdaT7ytR1S.mjs} +1 -1
- package/browser/esm/{CRCvnu8AKE7fJq05.mjs → D_FJwwe-bsDiDGBV.mjs} +2 -2
- package/browser/esm/{D3DJPz0louDEmOOg.mjs → DduyjhwDREaxXNzm.mjs} +7 -7
- package/browser/esm/DffuCp_514AjqJLT.mjs +864 -0
- package/browser/esm/{BgQK3a-xYWlmvNDD.mjs → DgC_oaBYpwh1mBi_.mjs} +2 -2
- package/browser/esm/{ww-U-PglTS7Dtu3g.mjs → Dl-SlJoaP7EFX-GR.mjs} +2 -2
- package/browser/esm/{DJJZ-Mz0hVMWcKq8.mjs → DpTSO921EQ7L_abP.mjs} +2 -2
- package/browser/esm/{DXbciCQNKY4_r5Et.mjs → Dr5y4zmj1js9FjzE.mjs} +1 -1
- package/browser/esm/{CJ46XJddcTe9sn3Q.mjs → DuoEo0hJBssfAmB4.mjs} +2 -2
- package/browser/esm/index.mjs +26 -25
- package/browser/esm/{BRio-IBtU98oZf5v.mjs → jIv4VNLAAFANZjhN.mjs} +1 -1
- package/browser/esm/{B5ZVjFCvGZMlskn5.mjs → wysWhT4-jO-uukUH.mjs} +2 -2
- package/browser/esm/{BSQXNtEzcvD1nZ07.mjs → zZaxvhjZK5N3yZkw.mjs} +7971 -7961
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{B_-60k30GZTVFJCG.mjs → 9iDXWtTOWeDVslQL.mjs} +1 -1
- package/node/esm/{BcfUxPgXAV1if9NT.mjs → B18g9zjzyR9YL3Mv.mjs} +1 -1
- package/node/esm/{HAKu1GEoK2wZht5-.mjs → B7xzqWxB07TdXnmo.mjs} +2 -2
- package/node/esm/BBWRiJSBxt6O1CfK.mjs +312 -0
- package/node/esm/{DW9fZUq5TEVyK05B.mjs → BUVA6vYXyFFnBCMg.mjs} +1 -1
- package/node/esm/{CTgcSkLGEwSlcrWM.mjs → BfuG4JD3t3n1uOci.mjs} +1 -1
- package/node/esm/{CiFa6r-hL-KsSx0I.mjs → C7t1ZHhSDgJnZ4Da.mjs} +1 -1
- package/node/esm/{CVheJHEYC7Bxc-m9.mjs → CG1T0Z1roNRSVlal.mjs} +1 -1
- package/node/esm/{BdwO--U2p6MiyekK.mjs → CGiJgZJFY-YsXWCX.mjs} +1 -1
- package/node/esm/{BK_IZrqK3_Xz2rfA.mjs → CILOMzOF30-XSZqR.mjs} +1 -1
- package/node/esm/{BeiZhSUAA8NyCua8.mjs → CijBL1IDWaxPgQ_E.mjs} +1 -1
- package/node/esm/{DQfxpSzOhUDp1tes.mjs → Cr5l_3AqPbv4mke9.mjs} +1 -1
- package/node/esm/{DEtck55hesGlXNoj.mjs → CsbP0EYKOHobzZCu.mjs} +1 -1
- package/node/esm/{xQKjfFNNUiXBnIeG.mjs → DGTK2YeARR5cTnft.mjs} +1 -1
- package/node/esm/{D9INCGl89jNGldla.mjs → DHmVr6jRLzt6lD1x.mjs} +1 -1
- package/node/esm/{1YvclnJ1eNd7ibD-.mjs → DODhKM0Qeycx3Hvp.mjs} +1 -1
- package/node/esm/{ClSJpKVPQuTKvJtg.mjs → DWKLdf_rn5dajRBA.mjs} +14 -14
- package/node/esm/{RPVynz_rpfz9lkAQ.mjs → Dn38s6pH3QNvdk-x.mjs} +7 -7
- package/node/esm/{DKqYePntZxW3fh6x.mjs → Dq49h62ihEYk_8VR.mjs} +1 -1
- package/node/esm/index.mjs +231 -221
- package/node/esm/{CJhxYk5D_7vcD7QG.mjs → qewbqty13W1sKrMC.mjs} +1 -1
- package/node/esm/{BkzwNHPzd0DSf0FL.mjs → tur4cwLbnCn69JK-.mjs} +19 -19
- package/node/esm/{C2SG9zLSqOGo3vCR.mjs → uY021f9cZSWYX0--.mjs} +5 -5
- package/node/esm/{C-WOcvkTBKxqQfEZ.mjs → v4fR5lIq2IqY_Clq.mjs} +20 -20
- package/package.json +8 -8
- package/types/index.d.ts +118 -81
- package/browser/cjs/Bi9ti1geH1gSoYX2.cjs +0 -6
- package/browser/cjs/Bt1aI3vb7h-PM53z.cjs +0 -6
- package/browser/cjs/CxMQIx_-k_XCclct.cjs +0 -87
- package/browser/cjs/DFkeNYQoyIagEEQ9.cjs +0 -6
- package/browser/cjs/iEu_JcRmrN7o_Gnt.cjs +0 -12
- package/browser/esm/BQoEwYUY9khnxsGk.mjs +0 -860
- package/node/esm/BlIGyiGNQyArtF2L.mjs +0 -308
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
|
|
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 o=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),n=require("./CxMQIx_-k_XCclct.cjs"),h=s.memo(y=>{const{title:f,onHide:b,autoFocusSel:j=".range-input input",context:w,notifier:r=n.At,command:c,commands:d,...S}=y,[T,g]=s.useState(!1),[x,u]=s.useState(!1),m=s.useRef(null),[F,v]=s.useReducer(e=>e+1,0),[C,{width:I}]=n.useMeasure();n.fo(c);const i=w??c.context(),t=i.table(),[N,R]=s.useState(()=>t?i.getNames().getRanges(t.getRange()):null),B=s.useMemo(()=>t?.getName()??"",[t]);n.gt(i.table(),{onAnchorCoordsChange(e){R(i.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const P=n.T(e=>{i?.table().setName(e)},[i]),D=n.T(e=>{i?.table().resize(e.at(0))},[i]);let p=null;return i.table()||(p=o.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:o.jsx("div",{children:"No table selected"})})),o.jsx(n.jn,{title:f??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,refWindow:m,onHide:b,onFocus:()=>g(!0),onBlur:e=>{m?.current?.contains(e.relatedTarget)||g(!1)},PaperProps:{elevation:T?3:1},...S,children:o.jsxs(a.DialogContent,{dividers:!0,ref:C,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:i.table()?1:0},children:[o.jsx(a.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:o.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx(n.NamedInput,{formName:"name",defaultInput:B,value:t?.getName()??"No table",onChangeInput:P,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||i?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}}),o.jsx(n.RangeInput,{formName:"range",value:N,onChangeInput:D,resolvedAddress:i.getNames().getRanges.bind(i.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}})]})})}),o.jsxs(a.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.Pt,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),o.jsx(n.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(l){r.showError(l)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(l){r.showError(l)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(l){r.showError(l)}}}),o.jsx(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:o.jsx(n.TableStylePreview,{table:t,styles:i.styles(),bodyStyle:i.bodyStyle(),cellHeight:30,isLive:!0})}),o.jsx(n.Pt,{orientation:"horizontal"}),o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[o.jsx(n.vr,{variant:n.yo.Menuitem,command:d.getCommand("convertTableToRange"),commandState:t,icon:n.x5(o.jsx(n.Lo,{}))}),o.jsx(n.vr,{variant:n.yo.Menuitem,commandState:t,command:d.getCommand("deleteTable"),icon:n.x5(o.jsx(n.Lo,{}))})]})]})]}),p]})})});exports.TableDetailsWindow=h,exports.default=h;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
|
|
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"),s=require("react"),r=require("@mui/material"),v=require("@mui/icons-material"),a=require("@sheetxl/sdk"),t=require("./CxMQIx_-k_XCclct.cjs"),y=require("@mui/system"),A=s.memo(j=>{const{label:h,value:d,options:c,onSelect:f,tabIndex:O=0,...I}=j,[S,C]=s.useState(()=>U(d,c));s.useEffect(()=>{C(U(d,c))},[d,c]);const k=t.T(x=>{C(x.target.value),f?.(c[x.target.value])},[f,c]),p=s.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:h}),i.jsx(r.Select,{inputProps:{tabIndex:O},value:S,label:h,onChange:k,sx:{backgroundImage:`linear-gradient(${y.alpha("#fff",t.getOverlayAlpha(5))}, ${y.alpha("#fff",t.getOverlayAlpha(5))})`},...I,children:p})]})}),B={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},X={Formulas:a.ICell.Content.Formulas,Values:a.ICell.Content.Values,Notes:a.ICell.Content.Notes,Comments:a.ICell.Content.Comments},J={...X};delete J.Values;const ee={"By Rows":!0,"By Columns":!1},U=(j,h)=>{const d=Object.keys(h);for(let c=0;c<d.length;c++){const f=d[c];if(h[f]===j)return f}},G=s.memo(j=>{const{replace:h=!1,findText:d,replaceText:c,findOptions:f,replaceOptions:O,title:I,onHide:S,onFindOrReplace:C,...k}=j,p=s.useRef(null),x=s.useRef(null),D=s.useRef(null),P=s.useRef(null),K=s.useRef(null),M=s.useRef(null),$=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[L,b]=s.useState(!1),[w,Q]=s.useState(!1),[g,E]=s.useState(h),[W,F]=s.useState(!1),[q,Z]=s.useState(!1),[l,u]=s.useState({findText:null,replaceText:null,replace:h,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:a.IRange.Orientation.Row,fields:[a.ICell.Content.Formulas]},scope:B.Sheet}),R=t.T(async(e,n,o,T)=>{if(!C)return;const m={...l};m.replaceOptions={...m.replaceOptions},m.findOptions={...m.findOptions},m.replaceOptions.maxCount=o?void 0:1,m.replace=n,n&&l.findOptions.fields?.[0]===a.ICell.Content.Values&&(m.findOptions.fields=[a.ICell.Content.Formulas]),m.findOptions.reverse=!e;const _=await C({autoFocus:T,...m});F(_===0)},[l,C]);s.useEffect(()=>{F(!1)},[l,w,g]);const V=t.T((e,n)=>{if(e.keyCode===t.eo.Enter){if(!l.findText)return;let o=!0,T=!1;e.shiftKey&&(o=!1),n?(e.ctrlKey&&e.altKey&&(T=!0),$(e,T?M.current:K.current)):$(e,o?P.current:D.current),R(o,n,T,!1)}},[l]),N=s.useRef(null);s.useLayoutEffect(()=>{u(e=>{const n={...e};n.findText=d&&d.length>0?d:e.findText??"",b(!0),c!==void 0&&(n.replaceText=c),f&&(n.findOptions={...n.findOptions,...f}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),O&&(n.replaceOptions={...n.replaceOptions,...O}),l.findOptions.fields?.[0]||(l.findOptions.fields=[a.ICell.Content.Formulas]);const o=!(!O&&c===void 0);return o&&E(o),n}),q||N.current?.focus()},[d,c,f,O]),s.useEffect(()=>{g?(l.findOptions.fields[0],a.ICell.Content.Values):b(!0)},[g]),s.useEffect(()=>{if(L&&p.current&&l.findText===p.current.value)return p.current===document.activeElement||p.current.contains(document.activeElement)?(p.current?.select(),void b(!1)):void p.current.addEventListener("focus",()=>{p.current?.select(),b(!1)},{once:!0})},[L,l]);const[Y,{width:H}]=t.useMeasure();return i.jsx(t.jn,{title:I??(g?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",refWindow:N,onHide:S,onFocus:()=>Z(!0),onBlur:()=>{Z(!1),F(!1)},PaperProps:{elevation:q?3:1},...k,children:i.jsxs(r.DialogContent,{dividers:!0,ref:Y,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)E(!0),p.current?.contains(document.activeElement)&&x.current?.focus();else if(e.key==="f"&&e.ctrlKey)p.current?.focus();else if(e.key==="c"&&e.altKey)u(n=>{const o={...n};return o.findOptions.matchCase=!n.findOptions.matchCase,o});else if(e.key==="e"&&e.altKey)u(n=>{const o={...n};return o.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,o});else{if(e.key!=="r"||!e.altKey)return;u(n=>{const o={...n};return o.findOptions.useRegex=!n.findOptions.useRegex,o})}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(t.rl,{selected:w,onSelectToggle:e=>{Q(e)},preventFocus:!0,label:"Toggle Additional Options",icon:t.x5(i.jsx(t.Ii,{}))}),i.jsx(t.rl,{selected:g,onSelectToggle:e=>{E(e)},preventFocus:!0,label:"Toggle Replace",icon:t.x5(i.jsx(t.Ri,{})),shortcut:{key:g?"F":"H",modifiers:[t.Z.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:H>460?"20em":void 0,backgroundImage:`linear-gradient(${y.alpha("#fff",t.getOverlayAlpha(5))}, ${y.alpha("#fff",t.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(t.rl,{selected:l.findOptions.matchCase,onSelectToggle:e=>{u(n=>{const o={...n};return o.findOptions.matchCase=e,o})},label:"Match Case",shortcut:{key:"C",modifiers:[t.Z.Alt]},icon:t.x5(i.jsx(t.Fi,{}))}),i.jsx(t.rl,{selected:l.findOptions.matchEntireCell,onSelectToggle:e=>{u(n=>{const o={...n};return o.findOptions.matchEntireCell=e,o})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[t.Z.Alt]},icon:t.x5(i.jsx(t.$i,{}))}),i.jsx(t.rl,{selected:l.findOptions.useRegex,onSelectToggle:e=>{u(n=>{const o={...n};return o.findOptions.useRegex=e,o})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[t.Z.Alt]},icon:t.x5(i.jsx(t.Wi,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>W?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>W?`${e.palette.error.main} !important`:void 0}},value:l.findText??"",onChange:e=>{u(n=>{const o={...n};return o.findText=e.target.value,o})},onKeyDown:e=>V(e,!1),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(t.rl,{selected:l.findOptions.reverse,onSelectToggle:e=>{R(!1,!1)},touchRippleRef:D,label:"",shortcut:{key:"Enter",modifiers:[t.Z.Shift]},icon:t.x5(l.findOptions.orientation!==a.IRange.Orientation.Column?i.jsx(v.ArrowBack,{}):i.jsx(v.ArrowUpward,{})),disabled:!l.findText}),i.jsx(t.rl,{selected:!l.findOptions.reverse,onSelectToggle:e=>{R(!0,!1)},touchRippleRef:P,label:"Next Match",shortcut:{key:"Enter"},icon:t.x5(l.findOptions.orientation!==a.IRange.Orientation.Column?i.jsx(v.ArrowForward,{}):i.jsx(v.ArrowDownward,{})),disabled:!l.findText})]}),i.jsx(r.Collapse,{in:g,timeout:z,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(${y.alpha("#fff",t.getOverlayAlpha(5))}, ${y.alpha("#fff",t.getOverlayAlpha(5))})`},inputProps:{ref:x,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:l.replaceText??"",onChange:e=>{u(n=>{const o={...n};return o.replaceText=e.target.value,o})},onKeyDown:e=>V(e,!0),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(t.rl,{onSelectToggle:e=>{R(!0,!0)},touchRippleRef:K,label:"Replace",shortcut:{key:"Enter"},icon:t.x5(i.jsx(t.ji,{})),disabled:!l.findText}),i.jsx(t.rl,{onSelectToggle:e=>{R(!0,!0,!0)},touchRippleRef:M,label:"Replace All",shortcut:{key:"Enter",modifiers:[t.Z.Ctrl,t.Z.Alt]},icon:t.x5(i.jsx(t.Bi,{})),disabled:!l.findText})]})})]})]}),i.jsx(r.Collapse,{in:w,timeout:z,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(t.Pt,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:H>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[i.jsx(A,{label:"Within",value:l.scope,options:B,onSelect:e=>{u(n=>{const o={...n};return o.scope=e,o})}}),i.jsx(A,{label:"Search",value:l.findOptions.orientation!==a.IRange.Orientation.Column,options:ee,onSelect:e=>{u(n=>{const o={...n};return o.findOptions.orientation=e?a.IRange.Orientation.Row:a.IRange.Orientation.Column,o})}}),i.jsx(A,{label:"Look in",value:g&&l.findOptions.fields?.[0]===a.ICell.Content.Values?a.ICell.Content.Formulas:l.findOptions.fields?.[0],options:g?J:X,onSelect:e=>{u(n=>{const o={...n};return o.findOptions.fields=[e],o})}})]})]})})]})})});exports.FindReplaceWindow=G,exports.ScopeOptions=B,exports.default=G;
|