@sheetxl/studio-mui 0.6.6 → 0.6.7
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/{BnzLXJ_f-WnIEHA7.cjs → 0lIBM05Oo-mPaz-z.cjs} +1 -1
- package/browser/cjs/5JvwHMk_pfEj4cZH.cjs +42 -0
- package/browser/cjs/{BjuWRjBUgXPf4mv5.cjs → BOqCECEhgUXx-4kI.cjs} +2 -2
- package/browser/cjs/BaMk9jpFcmdBLRiR.cjs +6 -0
- package/browser/cjs/CCynZK017xahlNmi.cjs +18 -0
- package/browser/cjs/{CUT6hk38cssRLfxe.cjs → CG7Z-lZAq5czFOc4.cjs} +2 -2
- package/browser/cjs/CRAcvjlcqcZK3WEL.cjs +20 -0
- package/browser/cjs/{Ubpcm3GwuRfaaW1V.cjs → CtkBZTjdHqYp7xft.cjs} +1 -1
- package/browser/cjs/{BN2uLx4xGjk-OlUv.cjs → DmM-DjGh015RZXzh.cjs} +2 -2
- package/browser/cjs/{B6xMVH-gFKvv7HTm.cjs → U3YgQ0fN5bvp9-Kq.cjs} +2 -2
- package/browser/cjs/{DBqla_PwQUaZTKah.cjs → aiA3IvXgAikOrMwA.cjs} +1 -1
- package/browser/cjs/{L3kTnaogdAjKmBcL.cjs → dW-tltmR8b4Fnr8g.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{BccWI_Pflx_rlXOP.mjs → BxFzIKTovnlqjZa-.mjs} +18 -18
- package/browser/esm/{Wo3zv3YCmz4f5NpR.mjs → C1aztXQ58ekuzis6.mjs} +1 -1
- package/browser/esm/{CGU0MsHi6xVOM3Wy.mjs → C9vgT92BfuOKSqpB.mjs} +1 -1
- package/browser/esm/{ChXhIK3n7tSPyfOU.mjs → COc-f5ehGeQiPNRP.mjs} +183 -183
- package/browser/esm/{D1Jl9RDW29udjLaD.mjs → Ck2WRaGuINSXU-Ds.mjs} +2 -2
- package/browser/esm/{5Ukv5-SQmOLwdH1V.mjs → DVbgcz-P2Z8D_yei.mjs} +2 -2
- package/browser/esm/{CrzQTch0GzxqX1Hh.mjs → Dcag5-NLJslhyfpE.mjs} +2 -2
- package/browser/esm/{BWwRv_4Vs3pIJHK-.mjs → DnJZFwOGICYRq_KW.mjs} +1 -1
- package/browser/esm/{CyT1_wFdlQtHv48w.mjs → EmQd5txQ_ErHLAeT.mjs} +2 -2
- package/browser/esm/MgTnV8wS66lhumxT.mjs +4482 -0
- package/browser/esm/{CTfL4NRMBZr5dUNM.mjs → _08whbc3oA7BY_S7.mjs} +1 -1
- package/browser/esm/{q95zwalhNRxfwm2I.mjs → he9qd0KA2ONjy_rM.mjs} +88 -88
- package/browser/esm/index.mjs +2 -2
- package/licenses/dependencies.txt +142 -142
- package/node/esm/{C4HcRU0pP7BegG2D.mjs → B5K3cjwd0usYef8w.mjs} +3 -3
- package/node/esm/{Dy5ZlGkkqU9eK4Mt.mjs → BAHfO9ALnEUni4Ts.mjs} +1 -1
- package/node/esm/{D8uH0zqPI1d50qsx.mjs → BfPfvgdZrUoZvEme.mjs} +1 -1
- package/node/esm/{BRsMzfYwnF3y7jL5.mjs → BqPC_rbjZN2Jy_y4.mjs} +1 -1
- package/node/esm/{DxhxmNkJB4A7DSHZ.mjs → CHNFCXGADLFVCwYo.mjs} +1 -1
- package/node/esm/{CADlYGKEEO7IDDe4.mjs → Cgxo3ZcSke1eBYVG.mjs} +1 -1
- package/node/esm/{Nxk8BN00peWJT0Pd.mjs → Ciwkv8DXp86zUjTb.mjs} +1 -1
- package/node/esm/{oP0NpP9IIAnwgsOY.mjs → DESr6vZQNH2lHWZ9.mjs} +1 -1
- package/node/esm/{CFBxXNyH40J__9j7.mjs → DhN2m_4WFHDBADx-.mjs} +1 -1
- package/node/esm/{C9HmzGWmGV2F1-iF.mjs → IID7UVIiXTHvqYHK.mjs} +1 -1
- package/node/esm/index.mjs +528 -485
- package/package.json +9 -9
- package/types/index.d.ts +3 -0
- package/browser/cjs/CtRt6b0Z9PqCHSYZ.cjs +0 -18
- package/browser/cjs/Dcrkgeqj3YntIuSp.cjs +0 -6
- package/browser/cjs/fFQ9XQWBeQc3axmM.cjs +0 -20
- package/browser/cjs/miraQ-Yi17yo4jmD.cjs +0 -42
- package/browser/esm/C1Z_BXflJEH0VdJS.mjs +0 -4439
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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 t=require("react/jsx-runtime"),s=require("react"),d=require("@mui/material/styles"),r=require("@mui/material"),T=require("@mui/icons-material"),a=require("@sheetxl/sdk"),x=require("@sheetxl/utils-react"),l=require("@sheetxl/utils-mui"),ne=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),d=require("@mui/material/styles"),r=require("@mui/material"),T=require("@mui/icons-material"),a=require("@sheetxl/sdk"),x=require("@sheetxl/utils-react"),l=require("@sheetxl/utils-mui"),ne=require("./CRAcvjlcqcZK3WEL.cjs"),A=s.memo(I=>{const{label:C,value:f,options:c,onSelect:g,tabIndex:y=0,...E}=I,[k,b]=s.useState(()=>X(f,c));s.useEffect(()=>{b(X(f,c))},[f,c]);const S=x.useCallbackRef(h=>{b(h.target.value),g?.(c[h.target.value])},[g,c]),p=s.useMemo(()=>Object.keys(c).map(h=>t.jsx(r.MenuItem,{value:h,children:h},h)),[c]);return t.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[t.jsx(r.InputLabel,{children:C}),t.jsx(r.Select,{inputProps:{tabIndex:y},value:k,label:C,onChange:S,sx:{backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},...E,children:p})]})}),K={Workbook:"workbook",Sheet:"sheet"},G={enter:140,exit:140},Q={Formulas:a.ICell.Content.Formulas,Values:a.ICell.Content.Values,Notes:a.ICell.Content.Notes,Comments:a.ICell.Content.Comments},Y={...Q};delete Y.Values;const te={"By Rows":!0,"By Columns":!1},X=(I,C)=>{const f=Object.keys(C);for(let c=0;c<f.length;c++){const g=f[c];if(C[g]===I)return g}},J=s.memo(I=>{const{replace:C=!1,findText:f,replaceText:c,findOptions:g,replaceOptions:y,title:E,onHide:k,onFindOrReplace:b,...S}=I,p=s.useRef(null),h=s.useRef(null),M=s.useRef(null),D=s.useRef(null),P=s.useRef(null),q=s.useRef(null),W=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[L,v]=s.useState(!1),[F,Z]=s.useState(!1),[m,w]=s.useState(C),[$,B]=s.useState(!1),[V,N]=s.useState(!1),[o,u]=s.useState({findText:null,replaceText:null,replace:C,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:a.IRange.Orientation.Row,fields:[a.ICell.Content.Formulas]},scope:K.Sheet}),R=x.useCallbackRef(async(e,n,i,j)=>{if(!b)return;const O={...o};O.replaceOptions={...O.replaceOptions},O.findOptions={...O.findOptions},O.replaceOptions.maxCount=i?void 0:1,O.replace=n,n&&o.findOptions.fields?.[0]===a.ICell.Content.Values&&(O.findOptions.fields=[a.ICell.Content.Formulas]),O.findOptions.reverse=!e;const ee=await b({autoFocus:j,...O});B(ee===0)},[o,b]);s.useEffect(()=>{B(!1)},[o,F,m]);const H=x.useCallbackRef((e,n)=>{if(e.keyCode===x.KeyCodes.Enter){if(!o.findText)return;let i=!0,j=!1;e.shiftKey&&(i=!1),n?(e.ctrlKey&&e.altKey&&(j=!0),W(e,j?q.current:P.current)):W(e,i?D.current:M.current),R(i,n,j,!1)}},[o]),z=s.useRef(null);s.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}),y&&(n.replaceOptions={...n.replaceOptions,...y}),o.findOptions.fields?.[0]||(o.findOptions.fields=[a.ICell.Content.Formulas]);const i=!(!y&&c===void 0);return i&&w(i),n}),V||z.current?.focus()},[f,c,g,y]),s.useEffect(()=>{m?(o.findOptions.fields[0],a.ICell.Content.Values):v(!0)},[m]),s.useEffect(()=>{if(L&&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})},[L,o]);const[_,{width:U}]=ne.useMeasure();return t.jsx(l.InternalWindow,{ref:z,title:E??(m?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:k,onFocus:()=>N(!0),onBlur:()=>{N(!1),B(!1)},PaperProps:{elevation:V?3:1},...S,children:t.jsxs(r.DialogContent,{dividers:!0,ref:_,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)&&h.current?.focus();else if(e.key==="f"&&e.ctrlKey)p.current?.focus();else if(e.key==="c"&&e.altKey)u(n=>{const i={...n};return i.findOptions.matchCase=!n.findOptions.matchCase,i});else if(e.key==="e"&&e.altKey)u(n=>{const i={...n};return i.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,i});else{if(e.key!=="r"||!e.altKey)return;u(n=>{const i={...n};return i.findOptions.useRegex=!n.findOptions.useRegex,i})}e.preventDefault()},children:[t.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[t.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[t.jsx(l.ExhibitOptionButton,{selected:F,onSelectToggle:e=>{Z(e)},preventFocus:!0,label:"Toggle Additional Options",icon:l.themeIcon(t.jsx(l.FindOptionsIcon,{}))}),t.jsx(l.ExhibitOptionButton,{selected:m,onSelectToggle:e=>{w(e)},preventFocus:!0,label:"Toggle Replace",icon:l.themeIcon(t.jsx(l.FindReplaceToggleIcon,{})),shortcut:{key:m?"F":"H",modifiers:[x.KeyModifiers.Ctrl]}})]}),t.jsxs(r.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[t.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[t.jsx(r.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:U>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:t.jsx(r.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:t.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[t.jsx(l.ExhibitOptionButton,{selected:o.findOptions.matchCase,onSelectToggle:e=>{u(n=>{const i={...n};return i.findOptions.matchCase=e,i})},label:"Match Case",shortcut:{key:"C",modifiers:[x.KeyModifiers.Alt]},icon:l.themeIcon(t.jsx(l.FindCaseSensitiveIcon,{}))}),t.jsx(l.ExhibitOptionButton,{selected:o.findOptions.matchEntireCell,onSelectToggle:e=>{u(n=>{const i={...n};return i.findOptions.matchEntireCell=e,i})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[x.KeyModifiers.Alt]},icon:l.themeIcon(t.jsx(l.FindWholeWordIcon,{}))}),t.jsx(l.ExhibitOptionButton,{selected:o.findOptions.useRegex,onSelectToggle:e=>{u(n=>{const i={...n};return i.findOptions.useRegex=e,i})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[x.KeyModifiers.Alt]},icon:l.themeIcon(t.jsx(l.FindRegExIcon,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>$?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>$?`${e.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:e=>{u(n=>{const i={...n};return i.findText=e.target.value,i})},onKeyDown:e=>H(e,!1),onContextMenu:e=>{e.stopPropagation()}}),t.jsx(l.ExhibitOptionButton,{selected:o.findOptions.reverse,onSelectToggle:e=>{R(!1,!1)},touchRippleRef:M,label:"",shortcut:{key:"Enter",modifiers:[x.KeyModifiers.Shift]},icon:l.themeIcon(o.findOptions.orientation!==a.IRange.Orientation.Column?t.jsx(T.ArrowBack,{}):t.jsx(T.ArrowUpward,{})),disabled:!o.findText}),t.jsx(l.ExhibitOptionButton,{selected:!o.findOptions.reverse,onSelectToggle:e=>{R(!0,!1)},touchRippleRef:D,label:"Next Match",shortcut:{key:"Enter"},icon:l.themeIcon(o.findOptions.orientation!==a.IRange.Orientation.Column?t.jsx(T.ArrowForward,{}):t.jsx(T.ArrowDownward,{})),disabled:!o.findText})]}),t.jsx(r.Collapse,{in:m,timeout:G,onExit:()=>{p.current?.focus()},children:t.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[t.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:h,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 i={...n};return i.replaceText=e.target.value,i})},onKeyDown:e=>H(e,!0),onContextMenu:e=>{e.stopPropagation()}}),t.jsx(l.ExhibitOptionButton,{onSelectToggle:e=>{R(!0,!0)},touchRippleRef:P,label:"Replace",shortcut:{key:"Enter"},icon:l.themeIcon(t.jsx(l.FindReplaceIcon,{})),disabled:!o.findText}),t.jsx(l.ExhibitOptionButton,{onSelectToggle:e=>{R(!0,!0,!0)},touchRippleRef:q,label:"Replace All",shortcut:{key:"Enter",modifiers:[x.KeyModifiers.Ctrl,x.KeyModifiers.Alt]},icon:l.themeIcon(t.jsx(l.FindReplaceAllIcon,{})),disabled:!o.findText})]})})]})]}),t.jsx(r.Collapse,{in:F,timeout:G,onExit:()=>{p.current?.focus()},children:t.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:[t.jsx(l.ExhibitDivider,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),t.jsxs(r.Box,{sx:{display:"flex",flexDirection:U>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[t.jsx(A,{label:"Within",value:o.scope,options:K,onSelect:e=>{u(n=>{const i={...n};return i.scope=e,i})}}),t.jsx(A,{label:"Search",value:o.findOptions.orientation!==a.IRange.Orientation.Column,options:te,onSelect:e=>{u(n=>{const i={...n};return i.findOptions.orientation=e?a.IRange.Orientation.Row:a.IRange.Orientation.Column,i})}}),t.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?Y:Q,onSelect:e=>{u(n=>{const i={...n};return i.findOptions.fields=[e],i})}})]})]})})]})})});exports.FindReplaceWindow=J,exports.ScopeOptions=K,exports.default=J;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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("./
|
|
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("./CRAcvjlcqcZK3WEL.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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.
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -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_ods65_1{display:block;margin:0;padding:0;line-height:normal}._sheetxl-reset_ods65_1 table,._sheetxl-reset_ods65_1 thead,._sheetxl-reset_ods65_1 tbody,._sheetxl-reset_ods65_1 tfoot,._sheetxl-reset_ods65_1 tr,._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_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_ods65_1 th,._sheetxl-reset_ods65_1 td{display:inline}html{color:initial}._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_1j3lu_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;outline:none}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_1j3lu_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.6.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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 t=require("@sheetxl/sdk"),o=require("./
|
|
7
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("@sheetxl/sdk"),o=require("./CRAcvjlcqcZK3WEL.cjs");Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>t.LicenseManager}),exports.AppearanceCommandButton=o.AppearanceCommandButton,exports.AutoColorPosition=o.AutoColorPosition,exports.BorderCommandButton=o.BorderCommandButton,exports.BorderPopupButton=o.BorderPopupButton,exports.BorderStyleButton=o.BorderStyleButton,exports.ClearCommandButton=o.ClearCommandButton,exports.ColorButton=o.ColorButton,exports.ColorCommandButton=o.ColorCommandButton,exports.ColorPanel=o.ColorPanel,exports.ColorPanelType=o.ColorPanelType,exports.ColorPopupButton=o.ColorPopupButton,exports.DeleteCellsCommandButton=o.DeleteCellsCommandButton,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.InsertCellsCommandButton=o.InsertCellsCommandButton,exports.InsertFunctionCommandPopupButton=o.InsertFunctionCommandPopupButton,exports.InsertFunctionSumCommandPopupButton=o.InsertFunctionSumCommandPopupButton,exports.InsertImageCommandButton=o.InsertImageCommandButton,exports.InsertScriptCommandButton=o.InsertScriptCommandButton,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.RunScriptCommandButton=o.RunScriptCommandButton,exports.ScriptEditorToolbar=o.ScriptEditorToolbar,exports.ScriptWorkspace=o.ScriptWorkspace,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.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.defaultNewWorkbook=o.defaultNewWorkbook,exports.setPrintExamplesOnLoad=o.setPrintExamplesOnLoad,exports.useWorkbookCommands=o.useWorkbookCommands;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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.
|
|
@@ -14,9 +14,9 @@ function te(t) {
|
|
|
14
14
|
return typeof t == "number";
|
|
15
15
|
}
|
|
16
16
|
function ae(t) {
|
|
17
|
-
return t === !0 || t === !1 || function(e) {
|
|
17
|
+
return t === !0 || t === !1 || (function(e) {
|
|
18
18
|
return ne(e) && e !== null;
|
|
19
|
-
}(t) && se(t) == "[object Boolean]";
|
|
19
|
+
})(t) && se(t) == "[object Boolean]";
|
|
20
20
|
}
|
|
21
21
|
function ne(t) {
|
|
22
22
|
return typeof t == "object";
|
|
@@ -75,13 +75,13 @@ var l = { isCaseSensitive: !1, ignoreDiacritics: !1, includeScore: !1, keys: [],
|
|
|
75
75
|
if (M(c)) if (u[o]) {
|
|
76
76
|
const r = c[u[o]];
|
|
77
77
|
if (!M(r)) return;
|
|
78
|
-
if (o === u.length - 1 && (v(r) || te(r) || ae(r))) n.push(function(a) {
|
|
79
|
-
return a == null ? "" : function(h) {
|
|
78
|
+
if (o === u.length - 1 && (v(r) || te(r) || ae(r))) n.push((function(a) {
|
|
79
|
+
return a == null ? "" : (function(h) {
|
|
80
80
|
if (typeof h == "string") return h;
|
|
81
81
|
let g = h + "";
|
|
82
82
|
return g == "0" && 1 / h == -1 / 0 ? "-0" : g;
|
|
83
|
-
}(a);
|
|
84
|
-
}(r));
|
|
83
|
+
})(a);
|
|
84
|
+
})(r));
|
|
85
85
|
else if (I(r)) {
|
|
86
86
|
s = !0;
|
|
87
87
|
for (let a = 0, h = r.length; a < h; a += 1) i(r[a], u, o + 1);
|
|
@@ -93,7 +93,7 @@ var l = { isCaseSensitive: !1, ignoreDiacritics: !1, includeScore: !1, keys: [],
|
|
|
93
93
|
const de = /[^ ]+/g;
|
|
94
94
|
class U {
|
|
95
95
|
constructor({ getFn: e = l.getFn, fieldNormWeight: n = l.fieldNormWeight } = {}) {
|
|
96
|
-
this.norm = function(s = 1, i = 3) {
|
|
96
|
+
this.norm = (function(s = 1, i = 3) {
|
|
97
97
|
const c = /* @__PURE__ */ new Map(), u = Math.pow(10, i);
|
|
98
98
|
return { get(o) {
|
|
99
99
|
const r = o.match(de).length;
|
|
@@ -103,7 +103,7 @@ class U {
|
|
|
103
103
|
}, clear() {
|
|
104
104
|
c.clear();
|
|
105
105
|
} };
|
|
106
|
-
}(n, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
|
|
106
|
+
})(n, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
|
|
107
107
|
}
|
|
108
108
|
setSources(e = []) {
|
|
109
109
|
this.docs = e;
|
|
@@ -217,14 +217,14 @@ function ge(t, e, n, { location: s = l.location, distance: i = l.distance, thres
|
|
|
217
217
|
}
|
|
218
218
|
const S = { isMatch: A >= 0, score: Math.max(1e-3, k) };
|
|
219
219
|
if (C) {
|
|
220
|
-
const y = function(B = [], L = l.minMatchCharLength) {
|
|
220
|
+
const y = (function(B = [], L = l.minMatchCharLength) {
|
|
221
221
|
let N = [], x = -1, _ = -1, m = 0;
|
|
222
222
|
for (let R = B.length; m < R; m += 1) {
|
|
223
223
|
let O = B[m];
|
|
224
224
|
O && x === -1 ? x = m : O || x === -1 || (_ = m - 1, _ - x + 1 >= L && N.push([x, _]), x = -1);
|
|
225
225
|
}
|
|
226
226
|
return B[m - 1] && m - x >= L && N.push([x, m - 1]), N;
|
|
227
|
-
}(p, o);
|
|
227
|
+
})(p, o);
|
|
228
228
|
y.length ? r && (S.indices = y) : S.isMatch = !1;
|
|
229
229
|
}
|
|
230
230
|
return S;
|
|
@@ -430,7 +430,7 @@ const J = [class extends w {
|
|
|
430
430
|
}, ce], Y = J.length, Ae = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, pe = /* @__PURE__ */ new Set([ce.type, oe.type]);
|
|
431
431
|
class Ce {
|
|
432
432
|
constructor(e, { isCaseSensitive: n = l.isCaseSensitive, ignoreDiacritics: s = l.ignoreDiacritics, includeMatches: i = l.includeMatches, minMatchCharLength: c = l.minMatchCharLength, ignoreLocation: u = l.ignoreLocation, findAllMatches: o = l.findAllMatches, location: r = l.location, threshold: a = l.threshold, distance: h = l.distance } = {}) {
|
|
433
|
-
this.query = null, this.options = { isCaseSensitive: n, ignoreDiacritics: s, includeMatches: i, minMatchCharLength: c, findAllMatches: o, ignoreLocation: u, location: r, threshold: a, distance: h }, e = n ? e : e.toLowerCase(), e = s ? z(e) : e, this.pattern = e, this.query = function(g, d = {}) {
|
|
433
|
+
this.query = null, this.options = { isCaseSensitive: n, ignoreDiacritics: s, includeMatches: i, minMatchCharLength: c, findAllMatches: o, ignoreLocation: u, location: r, threshold: a, distance: h }, e = n ? e : e.toLowerCase(), e = s ? z(e) : e, this.pattern = e, this.query = (function(g, d = {}) {
|
|
434
434
|
return g.split("|").map((f) => {
|
|
435
435
|
let A = f.trim().split(Ae).filter((p) => p && !!p.trim()), C = [];
|
|
436
436
|
for (let p = 0, E = A.length; p < E; p += 1) {
|
|
@@ -452,7 +452,7 @@ class Ce {
|
|
|
452
452
|
}
|
|
453
453
|
return C;
|
|
454
454
|
});
|
|
455
|
-
}(this.pattern, this.options);
|
|
455
|
+
})(this.pattern, this.options);
|
|
456
456
|
}
|
|
457
457
|
static condition(e, n) {
|
|
458
458
|
return n.useExtendedSearch;
|
|
@@ -555,7 +555,7 @@ class j {
|
|
|
555
555
|
search(e, { limit: n = -1 } = {}) {
|
|
556
556
|
const { includeMatches: s, includeScore: i, shouldSort: c, sortFn: u, ignoreFieldNorm: o } = this.options;
|
|
557
557
|
let r = v(e) ? v(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
|
|
558
|
-
return function(a, { ignoreFieldNorm: h = l.ignoreFieldNorm }) {
|
|
558
|
+
return (function(a, { ignoreFieldNorm: h = l.ignoreFieldNorm }) {
|
|
559
559
|
a.forEach((g) => {
|
|
560
560
|
let d = 1;
|
|
561
561
|
g.matches.forEach(({ key: f, norm: A, score: C }) => {
|
|
@@ -563,7 +563,7 @@ class j {
|
|
|
563
563
|
d *= Math.pow(C === 0 && p ? Number.EPSILON : C, (p || 1) * (h ? 1 : A));
|
|
564
564
|
}), g.score = d;
|
|
565
565
|
});
|
|
566
|
-
}(r, { ignoreFieldNorm: o }), c && r.sort(u), te(n) && n > -1 && (r = r.slice(0, n)), function(a, h, { includeMatches: g = l.includeMatches, includeScore: d = l.includeScore } = {}) {
|
|
566
|
+
})(r, { ignoreFieldNorm: o }), c && r.sort(u), te(n) && n > -1 && (r = r.slice(0, n)), (function(a, h, { includeMatches: g = l.includeMatches, includeScore: d = l.includeScore } = {}) {
|
|
567
567
|
const f = [];
|
|
568
568
|
return g && f.push(Me), d && f.push(Ee), a.map((A) => {
|
|
569
569
|
const { idx: C } = A, p = { item: h[C], refIndex: C };
|
|
@@ -571,7 +571,7 @@ class j {
|
|
|
571
571
|
E(A, p);
|
|
572
572
|
}), p;
|
|
573
573
|
});
|
|
574
|
-
}(r, this._docs, { includeMatches: s, includeScore: i });
|
|
574
|
+
})(r, this._docs, { includeMatches: s, includeScore: i });
|
|
575
575
|
}
|
|
576
576
|
_searchStringList(e) {
|
|
577
577
|
const n = Q(e, this.options), { records: s } = this._myIndex, i = [];
|
|
@@ -632,9 +632,9 @@ class j {
|
|
|
632
632
|
j.version = "7.1.0", j.createIndex = re, j.parseIndex = function(t, { getFn: e = l.getFn, fieldNormWeight: n = l.fieldNormWeight } = {}) {
|
|
633
633
|
const { keys: s, records: i } = t, c = new U({ getFn: e, fieldNormWeight: n });
|
|
634
634
|
return c.setKeys(s), c.setIndexRecords(i), c;
|
|
635
|
-
}, j.config = l, j.parseQuery = he, function(...t) {
|
|
635
|
+
}, j.config = l, j.parseQuery = he, (function(...t) {
|
|
636
636
|
V.push(...t);
|
|
637
|
-
}(Ce);
|
|
637
|
+
})(Ce);
|
|
638
638
|
export {
|
|
639
639
|
j as default
|
|
640
640
|
};
|
|
@@ -5,7 +5,7 @@ import { Box as S, FormControl as D, TextField as F } from "@mui/material";
|
|
|
5
5
|
import { useCallbackRef as f } from "@sheetxl/utils-react";
|
|
6
6
|
import { OptionsDialog as U } from "@sheetxl/utils-mui";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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.
|
|
@@ -5,7 +5,7 @@ import { Box as V, FormControl as $, TextField as j } from "@mui/material";
|
|
|
5
5
|
import { useCallbackRef as m } from "@sheetxl/utils-react";
|
|
6
6
|
import { OptionsDialog as z } from "@sheetxl/utils-mui";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.7
|
|
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.
|