@sheetxl/studio-mui 0.4.11 → 0.4.13
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/{xp2ZII-PuLk9tHK3.cjs → 34mwIxXhbXYv5xsc.cjs} +1 -1
- package/browser/cjs/{Cfb0T6htsh82UPK-.cjs → 3OIgTi54FC0IBzyK.cjs} +2 -2
- package/browser/cjs/{Df5v6knUJ4dqHmmo.cjs → B-Aq2h8aSDrc_0iZ.cjs} +1 -1
- package/browser/cjs/{B29yIlf_FSHx9q3M.cjs → BDhT8qcsUqUILki7.cjs} +1 -1
- package/browser/cjs/{uoBAuXnlUz8scSA1.cjs → BKJsMQHem8u-jMiR.cjs} +1 -1
- package/browser/cjs/{Bhh0dqxUzzOzHWMc.cjs → BO7LEbRChpLg-xKv.cjs} +1 -1
- package/browser/cjs/{D7xmeRe-f7IifEKc.cjs → BZR-qDCIYdiDtD-U.cjs} +1 -1
- package/browser/cjs/{BbvcxaJzfy7H6xfa.cjs → BfE1_C2EpBrmB7bt.cjs} +1 -1
- package/browser/cjs/{Clbakb5VUTDTlofM.cjs → Brij8vl9GntSQBer.cjs} +2 -2
- package/browser/cjs/{xq-CJbsvm7BQO8lK.cjs → C61z_849Y2mg6eYL.cjs} +2 -2
- package/browser/cjs/{CH50hiw_7LBSC6dR.cjs → CaKjImRkCm3-QSAI.cjs} +2 -2
- package/browser/cjs/{DCV-6w2JGk_faE3x.cjs → Cw7iXqLfwZMRGb3J.cjs} +2 -2
- package/browser/cjs/{BQ-G2ABc3FYN-D50.cjs → CwwItA5xvSx0QgDn.cjs} +2 -2
- package/browser/cjs/{BE6O6K7i1mHBC3et.cjs → DPTcPoZ3PiOOW7lp.cjs} +2 -2
- package/browser/cjs/{DY2PuDSgw0TrB5-_.cjs → DhmN913n5MBAZsij.cjs} +2 -2
- package/browser/cjs/{aOmlMJRAkQEF59EX.cjs → DhoDW4ohnPkwiE_o.cjs} +2 -2
- package/browser/cjs/{QB_8kWYEsfOH_HwK.cjs → Dj_PjsvImW3tjX0i.cjs} +2 -2
- package/browser/cjs/{DyzVC_iq7ceqC2fj.cjs → Dl4WPIJFTvpCXOs3.cjs} +2 -2
- package/browser/cjs/{B783moVfFT70yQuK.cjs → QCtfu4qn-ovJa_wL.cjs} +2 -2
- package/browser/cjs/{u0WmWLGlCwhnhL9i.cjs → VQ4Cuzvkmtel1iE_.cjs} +2 -2
- package/browser/cjs/{li-J7BWV6WUzY5aq.cjs → VTMW1yjPzEJGyBmh.cjs} +1 -1
- package/browser/cjs/{CisYglNTHGrj9oMH.cjs → hY59MepmKCIoN0hM.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BabvaPi1dUIPt5AG.cjs → pKp_fof7vGupYAM2.cjs} +2 -2
- package/browser/cjs/{BCtVyhxIZSUPH_Z4.cjs → t-9gaLqrOnGiw-3T.cjs} +1 -1
- package/browser/esm/{BVRUNnRvnt7aVCDD.mjs → 5U4XS5qxb3oJ33qK.mjs} +1 -1
- package/browser/esm/{_ZR9nT54xwy-C6ow.mjs → BPMMuKIe5xb3-D8V.mjs} +2 -2
- package/browser/esm/{BauTkiamxm0HDt6M.mjs → BXartMrqQuAXu0Qz.mjs} +1 -1
- package/browser/esm/{BTD5k7gtFcqDwslB.mjs → Bc8N72T3wtTApPEG.mjs} +2 -2
- package/browser/esm/{Djo2IS-ivmVSrO3v.mjs → BjoQXBQuDry5Fgc_.mjs} +2 -2
- package/browser/esm/{7jSMnphGrNRPUa_S.mjs → BlUq84tk9v01SQgx.mjs} +2 -2
- package/browser/esm/{CJawFB555VEY-Vge.mjs → C5iuJTeAtknnUEIE.mjs} +1 -1
- package/browser/esm/{Csk8rXNpaXmf5g7O.mjs → CN67iG3xuQhXAPad.mjs} +2 -2
- package/browser/esm/{12Ttun7hzbiInyVr.mjs → CQgUOqCEwTc61uuT.mjs} +1 -1
- package/browser/esm/{Z1_72ZY8rW2Mc3g_.mjs → Cq1DtQcbtmTtKOc4.mjs} +2 -2
- package/browser/esm/{Cu-5HDPN8B0qE77-.mjs → Cqz35dsi-gZArS0S.mjs} +2 -2
- package/browser/esm/{B-Ut_yUCD9THCz0T.mjs → D9wzPAaUYfW5yKFN.mjs} +1 -1
- package/browser/esm/{Hy95ExHvIFgzxQb-.mjs → DRRzJ8Ep6_Tyd6ne.mjs} +1 -1
- package/browser/esm/{BpGexBYtmHbTIJz2.mjs → DSGJzNzS8OeMxUW1.mjs} +1 -1
- package/browser/esm/{AnCmK-idMDJ2vI8H.mjs → DSIpyed_o2mrjd0r.mjs} +2 -2
- package/browser/esm/{Cr46Bo9bGoz0LbWq.mjs → DWgrVUwlK4kwFJn-.mjs} +2 -2
- package/browser/esm/{CWogLlWYHiL4W6CH.mjs → Dr6QLJSwckbF9K_u.mjs} +2 -2
- package/browser/esm/{CzgR8PxJ_89IC4Mr.mjs → DuSF-rjIFFvyCoo8.mjs} +2 -2
- package/browser/esm/{Bi_0z0hyhFuz5Ta3.mjs → EiBc8VBUeU8VXEhw.mjs} +1 -1
- package/browser/esm/{csxyptiqbJZO0pQA.mjs → R3CPiIXdp_rdc-Bw.mjs} +2 -2
- package/browser/esm/{BkDEdK7zOlsoUKCZ.mjs → eXqnYk6V-QI6pGI5.mjs} +2 -2
- package/browser/esm/{BcIp2mxLBfjUBE0q.mjs → hdx26DrfopUuM4j1.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DMUXpRbV3ahdB1lN.mjs → oXfsh9SiDjQuu2ZE.mjs} +2 -2
- package/browser/esm/{DiIX5KzrWnbDWjGE.mjs → zBIGDTI8z3bRbFxO.mjs} +2 -2
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{BSUbQzac78SXiAJe.mjs → -mcJjjdCwl8lh-eg.mjs} +1 -1
- package/node/esm/{CCZepFZNn1pIXrnd.mjs → 4WfRn0Og_yApP_Q8.mjs} +1 -1
- package/node/esm/{DyMCnCG9LzH5Mgw0.mjs → BEWR_Oinb-P8gswu.mjs} +1 -1
- package/node/esm/{CXSwyUs6BuNGCic0.mjs → BO6cKQ_efCO2YTyW.mjs} +1 -1
- package/node/esm/{DIGsHHDexzj0uG_T.mjs → BPG7zfcXK20urqr_.mjs} +5 -5
- package/node/esm/{Ui3_6RhrEZQDOXwg.mjs → BZ8BYhQCAcmtqV_l.mjs} +3 -3
- package/node/esm/{8THCZRGNmI2nPqMR.mjs → BqcpB9wQAjq0QKR1.mjs} +1 -1
- package/node/esm/{C6jxZQrvMLctjLZM.mjs → BqsJ9biuGwjU2xgY.mjs} +1 -1
- package/node/esm/{DLiw-2C_tqGgJIQ6.mjs → BxJ8RdpZW49RjtqB.mjs} +1 -1
- package/node/esm/{DHj9iDuBImdwscIb.mjs → CQ1mTChRFSKFU2O1.mjs} +1 -1
- package/node/esm/{D481dAOp77EZbV5s.mjs → CcOchU9ZOmdG4JFr.mjs} +1 -1
- package/node/esm/{qI75rORek8T0-Kpf.mjs → CdLN7JEivNllaQ6w.mjs} +1 -1
- package/node/esm/{Dd2OFQJQyYp6bAeP.mjs → CfO2Xok0ch8kylzr.mjs} +1 -1
- package/node/esm/{DNJVdt9TbBsUE8Jm.mjs → CsPaYpANdd8Rpel-.mjs} +1 -1
- package/node/esm/{BPylexVHXa-t0sqJ.mjs → DKho7vhsoPr3NuMl.mjs} +1 -1
- package/node/esm/{DkpAjhQeaZn_Ipxg.mjs → DW7i1Qv4kcmwOTvD.mjs} +1 -1
- package/node/esm/{BDm0y2dv7wLZhYj1.mjs → DvKUmpzXvELOJbAq.mjs} +1 -1
- package/node/esm/{BeNXnrWMr5S34Oxb.mjs → RpUFmc_WL9-PMYhx.mjs} +1 -1
- package/node/esm/{RV-AvxVzzFKWjYFM.mjs → VnhwCsWDUmo5-K5N.mjs} +1 -1
- package/node/esm/index.mjs +9 -9
- package/node/esm/{CaV6SH-PMyHlXUhx.mjs → nmVSg6Qpwj9V1oA0.mjs} +1 -1
- package/node/esm/{BQYQg7lfqFbWaf8x.mjs → o-JVx3HFrRjVjKmi.mjs} +2 -2
- package/node/esm/{DaCmut490aSCGvX8.mjs → uAAAbPd_k3kmgO5f.mjs} +1 -1
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),n=require("@mui/material"),o=require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),n=require("@mui/material"),o=require("./Brij8vl9GntSQBer.cjs"),a=require("@mui/system"),s=["Ok","Cancel"],i=e.memo(i=>{const{initialComments:l=null,onUpdateComments:r,context:p,onOption:c,onValidateOption:u,onDone:m,options:d=s,defaultOption:g=d?.[0],cancelOption:x="Cancel",sx:f,...h}=i,C=e.useMemo(()=>{const t=l??p?.()?.getComments();let e="";if(t&&t.content&&t.content.runs){const n=t.content.runs;for(let t=0;t<n.length;t++){const o=n[t];e+=o?.text}}return e},[]),[O,y]=e.useState(C),[j,v]=e.useState(!1),F=e.useCallback(async(t,e)=>null,[]),T=o.B(async t=>{const e=""===O?[]:O.split("\n");if(t!==x){const t=[];for(let n=0;n<e.length;n++)t.push({text:e[n]});const n={content:{runs:t}};r?.(n)}c?.(t,t===x,t===g),m?.()},[O,r,m,c,g,x]),b=o.B(t=>{y(t.target.value),F(t.target.value,null)},[u]),B=o.B(async t=>{let e=await Promise.resolve(u?.(t));try{!1!==e&&(e=await F(O,t))}catch(t){}return e??!0},[u,O]);return t.jsx(o.pm,{title:(C?"Edit":"Insert")+" Comments",options:d,onDone:m,onOption:t=>T(t),onValidateOption:B,defaultOption:g,cancelOption:x,autoFocusSel:".autoFocus",sx:{width:"480px",...f},...h,children:t.jsx(n.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:t.jsx(n.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsx(n.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{j||t.target?.select(),v(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${a.alpha("#fff",o.getOverlayAlpha(5))}, ${a.alpha("#fff",o.getOverlayAlpha(5))})`}}},value:O,onChange:b,onContextMenu:t=>{t.stopPropagation()}})})})})});exports.CommentsDialog=i,exports.default=i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@mui/material"),o=require("@sheetxl/sdk"),r=require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@mui/material"),o=require("@sheetxl/sdk"),r=require("./Brij8vl9GntSQBer.cjs"),n=require("@mui/system"),l=["Ok","Cancel"],s=t.memo(s=>{const{initialValue:i,context:p,onOption:u,onValidateOption:c,onInputOption:m,onDone:d,options:g=l,defaultOption:y=g?.[0],cancelOption:x="Cancel",sx:h,...f}=s,[b,v]=t.useState(i),[C,F]=t.useState(!1),T=t.useCallback(async(e,t)=>!0,[]),O=r.B(async e=>{m?.(b,e),u?.(e,e===x,e===y),d?.()},[b,m,d,u,x,y]),j=r.B(async e=>{if(e.keyCode===r.L.Enter){!1!==await(T?.(b,null))&&O(y)}},[b,O]),k=r.B(e=>{v(e.target.value),T?.(e.target.value,null)},[c]),S=r.B(async e=>{let t=await Promise.resolve(c?.(e));try{!1!==t&&(t=await Promise.resolve(T?.(b,e))??!0)}catch(e){}return t??!0},[c]),[N,P]=t.useState(o.NumberFormat.Styles.lookupStyle(b).formatType??o.NumberFormat.Type.Custom);t.useEffect(()=>{P(o.NumberFormat.Styles.lookupStyle(b).formatType??o.NumberFormat.Type.Custom)},[b]);const w=t.useMemo(()=>{const t=o.NumberFormat.Styles.lookupPrimary(),r=t=>e.jsx(a.MenuItem,{value:t,children:t},t),n=Object.keys(t).map(e=>r(t[e].formatType));return n.push(r(o.NumberFormat.Type.Custom)),n},[]),B=t.useCallback(e=>{const t=e.target.value;P(t);const a=o.NumberFormat.Styles.lookupDefault(t);a&&v(a)},[]),I=t.useMemo(()=>{const e=p();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:b}})},[N,b,p]);return e.jsx(r.pm,{title:"Number Format",options:g,onDone:d,onOption:e=>O(e),onValidateOption:S,defaultOption:y,cancelOption:x,autoFocusSel:".autoFocus",sx:{width:"580px",...h},...f,children:e.jsxs(a.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxs(a.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsx(a.InputLabel,{children:"Category"}),e.jsx(a.Select,{value:N,label:"Category",onChange:B,sx:{backgroundImage:`linear-gradient(${n.alpha("#fff",r.getOverlayAlpha(5))}, ${n.alpha("#fff",r.getOverlayAlpha(5))})`},children:w})]}),e.jsx(a.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsx(a.TextField,{label:"Code",onFocus:e=>{C||e.target?.select(),F(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",r.getOverlayAlpha(5))}, ${n.alpha("#fff",r.getOverlayAlpha(5))})`}}},value:b,onChange:k,onKeyDown:j,onContextMenu:e=>{e.stopPropagation()}})}),e.jsxs(a.Box,{children:[e.jsx(a.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),e.jsx(a.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:I.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=s,exports.default=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),i=require("@mui/icons-material"),o=require("@sheetxl/sdk"),s=require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),i=require("@mui/icons-material"),o=require("@sheetxl/sdk"),s=require("./Brij8vl9GntSQBer.cjs"),l=require("@mui/system"),r=t.memo(i=>{const{label:o,value:r,options:a,onSelect:c,tabIndex:u=0,...p}=i,[d,x]=t.useState(()=>f(r,a));t.useEffect(()=>{x(f(r,a))},[r,a]);const g=s.B(e=>{x(e.target.value),c?.(a[e.target.value])},[c,a]),m=t.useMemo(()=>Object.keys(a).map(t=>e.jsx(n.MenuItem,{value:t,children:t},t)),[a]);return e.jsxs(n.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsx(n.InputLabel,{children:o}),e.jsx(n.Select,{inputProps:{tabIndex:u},value:d,label:o,onChange:g,sx:{backgroundImage:`linear-gradient(${l.alpha("#fff",s.getOverlayAlpha(5))}, ${l.alpha("#fff",s.getOverlayAlpha(5))})`},...p,children:m})]})}),a={Workbook:"workbook",Sheet:"sheet"},c={enter:140,exit:140},u={Formulas:o.ICell.Content.Formulas,Values:o.ICell.Content.Values,Notes:o.ICell.Content.Notes,Comments:o.ICell.Content.Comments},p={...u};delete p.Values;const d={"By Rows":!0,"By Columns":!1},f=(e,t)=>{const n=Object.keys(t);for(let i=0;i<n.length;i++){const o=n[i];if(t[o]===e)return o}},x=t.memo(f=>{const{replace:x=!1,findText:g,replaceText:m,findOptions:h,replaceOptions:O,title:C,onHide:y,onFindOrReplace:j,...R}=f,b=t.useRef(null),v=t.useRef(null),T=t.useRef(null),I=t.useRef(null),S=t.useRef(null),k=t.useRef(null),w=(e,t)=>{if(!t)return;t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180)},[E,F]=t.useState(!1),[A,B]=t.useState(!1),[D,P]=t.useState(x),[K,M]=t.useState(!1),[U,L]=t.useState(!1),[q,$]=t.useState({findText:null,replaceText:null,replace:x,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:o.IRange.Orientation.Row,fields:[o.ICell.Content.Formulas]},scope:a.Sheet}),V=s.B(async(e,t,n,i)=>{if(!j)return;const s={...q};s.replaceOptions={...s.replaceOptions},s.findOptions={...s.findOptions},s.replaceOptions.maxCount=n?void 0:1,s.replace=t,t&&q.findOptions.fields?.[0]===o.ICell.Content.Values&&(s.findOptions.fields=[o.ICell.Content.Formulas]),s.findOptions.reverse=!e;const l=await j({autoFocus:i,...s});M(0===l)},[q,j]);t.useEffect(()=>{M(!1)},[q,A,D]);const W=s.B((e,t)=>{if(e.keyCode===s.L.Enter){if(!q.findText)return;let n=!0,i=!1;e.shiftKey&&(n=!1),t?(e.ctrlKey&&e.altKey&&(i=!0),w(e,i?k.current:S.current)):w(e,n?I.current:T.current),V(n,t,i,!1)}},[q]),N=t.useRef(null);t.useLayoutEffect(()=>{$(e=>{const t={...e};t.findText=g&&g.length>0?g:e.findText??"",F(!0),void 0!==m&&(t.replaceText=m),h&&(t.findOptions={...t.findOptions,...h}),t.replaceText||(t.replaceText=""),t.replaceOptions&&(t.replaceOptions={...t.replaceOptions}),O&&(t.replaceOptions={...t.replaceOptions,...O}),q.findOptions.fields?.[0]||(q.findOptions.fields=[o.ICell.Content.Formulas]);const n=!(!O&&void 0===m);return n&&P(n),t}),U||N.current?.focus()},[g,m,h,O]),t.useEffect(()=>{D?(q.findOptions.fields[0],o.ICell.Content.Values):F(!0)},[D]),t.useEffect(()=>{if(E&&b.current&&q.findText===b.current.value)return b.current===document.activeElement||b.current.contains(document.activeElement)?(b.current?.select(),void F(!1)):void b.current.addEventListener("focus",()=>{b.current?.select(),F(!1)},{once:!0})},[E,q]);const[H,{width:z}]=s.useMeasure();return e.jsx(s.Op,{ref:N,title:C??(D?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:y,onFocus:()=>L(!0),onBlur:()=>{L(!1),M(!1)},PaperProps:{elevation:U?3:1},...R,children:e.jsxs(n.DialogContent,{dividers:!0,ref:H,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)P(!0),b.current?.contains(document.activeElement)&&v.current?.focus();else if("f"===e.key&&e.ctrlKey)b.current?.focus();else if("c"===e.key&&e.altKey)$(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)$(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;$(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsx(s.Uu,{selected:A,onSelectToggle:e=>{B(e)},preventFocus:!0,label:"Toggle Additional Options",icon:s.ui(e.jsx(s.Xs,{}))}),e.jsx(s.Uu,{selected:D,onSelectToggle:e=>{P(e)},preventFocus:!0,label:"Toggle Replace",icon:s.ui(e.jsx(s.qs,{})),shortcut:{key:D?"F":"H",modifiers:[s.S.Ctrl]}})]}),e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsx(n.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:z>460?"20em":void 0,backgroundImage:`linear-gradient(${l.alpha("#fff",s.getOverlayAlpha(5))}, ${l.alpha("#fff",s.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:b,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e.jsx(n.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsx(s.Uu,{selected:q.findOptions.matchCase,onSelectToggle:e=>{$(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[s.S.Alt]},icon:s.ui(e.jsx(s.Gs,{}))}),e.jsx(s.Uu,{selected:q.findOptions.matchEntireCell,onSelectToggle:e=>{$(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[s.S.Alt]},icon:s.ui(e.jsx(s.Ks,{}))}),e.jsx(s.Uu,{selected:q.findOptions.useRegex,onSelectToggle:e=>{$(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[s.S.Alt]},icon:s.ui(e.jsx(s.ec,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>K?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>K?`${e.palette.error.main} !important`:void 0}},value:q.findText??"",onChange:e=>{$(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>W(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsx(s.Uu,{selected:q.findOptions.reverse,onSelectToggle:e=>{V(!1,!1)},touchRippleRef:T,label:"",shortcut:{key:"Enter",modifiers:[s.S.Shift]},icon:s.ui(q.findOptions.orientation!==o.IRange.Orientation.Column?e.jsx(i.ArrowBack,{}):e.jsx(i.ArrowUpward,{})),disabled:!q.findText}),e.jsx(s.Uu,{selected:!q.findOptions.reverse,onSelectToggle:e=>{V(!0,!1)},touchRippleRef:I,label:"Next Match",shortcut:{key:"Enter"},icon:s.ui(q.findOptions.orientation!==o.IRange.Orientation.Column?e.jsx(i.ArrowForward,{}):e.jsx(i.ArrowDownward,{})),disabled:!q.findText})]}),e.jsx(n.Collapse,{in:D,timeout:c,onExit:()=>{b.current?.focus()},children:e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsx(n.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${l.alpha("#fff",s.getOverlayAlpha(5))}, ${l.alpha("#fff",s.getOverlayAlpha(5))})`},inputProps:{ref:v,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:q.replaceText??"",onChange:e=>{$(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>W(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsx(s.Uu,{onSelectToggle:e=>{V(!0,!0)},touchRippleRef:S,label:"Replace",shortcut:{key:"Enter"},icon:s.ui(e.jsx(s.Qs,{})),disabled:!q.findText}),e.jsx(s.Uu,{onSelectToggle:e=>{V(!0,!0,!0)},touchRippleRef:k,label:"Replace All",shortcut:{key:"Enter",modifiers:[s.S.Ctrl,s.S.Alt]},icon:s.ui(e.jsx(s.Js,{})),disabled:!q.findText})]})})]})]}),e.jsx(n.Collapse,{in:A,timeout:c,onExit:()=>{b.current?.focus()},children:e.jsxs(n.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsx(s.nd,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxs(n.Box,{sx:{display:"flex",flexDirection:z>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsx(r,{label:"Within",value:q.scope,options:a,onSelect:e=>{$(t=>{const n={...t};return n.scope=e,n})}}),e.jsx(r,{label:"Search",value:q.findOptions.orientation!==o.IRange.Orientation.Column,options:d,onSelect:e=>{$(t=>{const n={...t};return n.findOptions.orientation=e?o.IRange.Orientation.Row:o.IRange.Orientation.Column,n})}}),e.jsx(r,{label:"Look in",value:D&&q.findOptions.fields?.[0]===o.ICell.Content.Values?o.ICell.Content.Formulas:q.findOptions.fields?.[0],options:D?p:u,onSelect:e=>{$(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=x,exports.ScopeOptions=a,exports.default=x;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@sheetxl/sdk");exports.fromBufferCSV=async(t,r)=>{const{papaParseConfig:o,setValuesOptions:n,createWorkbookOptions:s}=r??{},a=await Promise.resolve().then(()=>require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@sheetxl/sdk");exports.fromBufferCSV=async(t,r)=>{const{papaParseConfig:o,setValuesOptions:n,createWorkbookOptions:s}=r??{},a=await Promise.resolve().then(()=>require("./BO7LEbRChpLg-xKv.cjs")).then(e=>e.p),l=(new TextDecoder).decode(t);let i=-1;const c=new e.Workbook(s),d=c.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:e.IRange.Orientation.Row}),u=r?.onProgress;let p=0;const f={...o,transform:(e,t)=>{o?.transform&&(e=o.transform(e,t));const r=t;0===r&&i++;let n=e??"";return d.pushAt(i,r,n),p++,p%1e5==0&&u?.(p),e}};return a.parse(l,f).data,d.apply({textParser:!0,...n}),c},exports.toBufferCSV=async(e,t)=>{const{trimLeadingBlankRow:r=!0,trimLeadingBlankColumn:o=!0,excludeHidden:n=!1,sheetKey:s=null,papaParseConfig:a={}}=t||{},l=await Promise.resolve().then(()=>require("./BO7LEbRChpLg-xKv.cjs")).then(e=>e.p);if(!e)throw new Error("workbook must be specified");let i=null;if(null===s?i=e.getSelectedSheet():"number"==typeof s?i=e.getSheets().search()[s]:"string"==typeof s&&(i=e.getSheets().getByName(s)),!i)throw new Error("invalid sheetKey specified");let c=null;const d=[];let u=null,p=i.getUsedRange({excludeHidden:n});if(!p)throw new Error("Nothing to export");if(!r||!o){const e=r?p.getRowStart():0,t=o?p.getColumnStart():0;p=p.getOffsetTo(e,t)}p.forEach((e,t)=>{const r=t.getCoords(),o=t.getCell();c!==r.rowIndex&&(u&&d.push(u),u=[],c=r.rowIndex);const n=o.toTextUnformatted()??"";u.push(n)},{includeEmpty:!0,address:null}),u&&d.push(u);const f={...a},g=l.unparse(d,f);return(new TextEncoder).encode(g).buffer};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),a=require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),a=require("./Brij8vl9GntSQBer.cjs"),o=["Ok","Cancel"],s=t.memo(s=>{const{tableOptions:l,context:i,onOption:r,onValidateOption:c,onDone:p,options:u=o,defaultOption:d=u?.[0],cancelOption:g="Cancel",sx:x,...m}=s,[b,h]=t.useState(!1),[O,j]=t.useState(()=>l?.hasHeader??!1),[f,C]=t.useState(()=>l?.ranges??null),S=a.B(e=>{const t={...l,hasHeader:O,ranges:f};r?.(e,e===g,e===d),p?.({option:e,tableOptions:t})},[p,r,d,g,O,f,l]),T=t.useCallback(async(e,t)=>null,[]);return e.jsx(a.pm,{title:"Insert Table",options:u,onDone:S,onValidateOption:T,defaultOption:d,cancelOption:g,autoFocusSel:".range-input input",sx:{width:"360px",...x},...m,children:e.jsxs(n.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsx(a.RangeInput,{formName:"range",value:f,onChangeInput:e=>C(e),resolvedAddress:i.getNames().getRanges.bind(i.getNames()),onFocus:e=>{b||e.target?.select(),h(!0)}}),e.jsx(n.FormControlLabel,{control:e.jsx(n.Checkbox,{checked:O,onChange:()=>j(!O)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=s,exports.default=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),o=require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),o=require("./Brij8vl9GntSQBer.cjs"),i=t.memo(i=>{const{title:a,onHide:s,autoFocusSel:l=".range-input input",context:r,notifier:c=o.Tt,command:d,commands:g,...x}=i,[u,m]=t.useState(!1),[p,h]=t.useState(!1),y=t.useRef(null),[f,b]=t.useReducer(e=>e+1,0),[S,{width:j}]=o.useMeasure();o.xe(d);const w=r??d.context(),C=w.table(),[T,B]=t.useState(()=>C?w.getNames().getRanges(C.getRange()):null),v=t.useMemo(()=>C?.getName()??"",[C]);o.ht(w.table(),{onAnchorCoordsChange(e){B(w.getNames().getRanges(e.getRange()))},onProtectedChange(e){b()}});const N=o.B(e=>{w?.table().setName(e)},[w]),R=o.B(e=>{w?.table().resize(e.at(0))},[w]);let D=null;return w.table()||(D=e.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:e.jsx("div",{children:"No table selected"})})),e.jsx(o.Op,{ref:y,title:a??"Table Details",initialPosition:{y:"35"},autoFocusSel:l,onHide:s,onFocus:()=>m(!0),onBlur:e=>{y?.current?.contains(e.relatedTarget)||m(!1)},PaperProps:{elevation:u?3:1},...x,children:e.jsxs(n.DialogContent,{dividers:!0,ref:S,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:w.table()?1:0},children:[e.jsx(n.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:e.jsx(n.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx(o.NamedInput,{formName:"name",defaultInput:v,value:C?.getName()??"No table",onChangeInput:N,onValidate:e=>{C&&C.getName().toLowerCase()===e.toLowerCase()||w?.getNames().validateName(e)},disabled:C?.isProtected()??!0,onFocus:e=>{p||e.target?.select(),h(!0)}}),e.jsx(o.RangeInput,{formName:"range",value:T,onChangeInput:R,resolvedAddress:w.getNames().getRanges.bind(w.getNames()),disabled:C?.isProtected()??!0,onFocus:e=>{p||e.target?.select(),h(!0)}})]})})}),e.jsxs(n.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsx(o.nd,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),e.jsx(o.TableStyleOptionsPanel,{disabled:C?.isProtected(),styleOptions:C?.getStyleOptions()??null,onStyleOptionsChange:e=>{C.updateStyleOptions(e)},showHeaderRow:C?.getShowHeaders(),onShowHeaderRowChange:e=>{try{C.setShowHeaders(e)}catch(e){c.showError(e)}},showTotalRow:C?.getShowTotals(),onShowTotalRowChange:e=>{try{C.setShowTotals(e)}catch(e){c.showError(e)}},showFilterButton:C?.getFilter()?C.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{C.setShowFilterButton(e)}catch(e){c.showError(e)}}}),e.jsx(n.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:e.jsx(o.TableStylePreview,{table:C,styles:w.styles(),bodyStyle:w.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsx(o.nd,{orientation:"horizontal"}),e.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsx(o.xm,{variant:o.Se.Menuitem,command:g.getCommand("convertTableToRange"),commandState:C,icon:o.ui(e.jsx(o.Zl,{}))}),e.jsx(o.xm,{variant:o.Se.Menuitem,commandState:C,command:g.getCommand("deleteTable"),icon:o.ui(e.jsx(o.Zl,{}))})]})]})]}),D]})})});exports.TableDetailsWindow=i,exports.default=i;
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
})();
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
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.
|
|
12
12
|
*/
|
|
13
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@sheetxl/sdk"),t=require("./
|
|
13
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@sheetxl/sdk"),t=require("./Brij8vl9GntSQBer.cjs");Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>o.LicenseManager}),exports.AppearanceCommandButton=t.AppearanceCommandButton,exports.AutoColorPosition=t.AutoColorPosition,exports.BorderCommandButton=t.BorderCommandButton,exports.BorderPopupButton=t.BorderPopupButton,exports.BorderStyleButton=t.BorderStyleButton,exports.ClearCommandButton=t.ClearCommandButton,exports.ColorButton=t.ColorButton,exports.ColorCommandButton=t.ColorCommandButton,exports.ColorPanel=t.ColorPanel,exports.ColorPanelType=t.ColorPanelType,exports.ColorPopupButton=t.ColorPopupButton,exports.DeleteCellsCommandButton=t.DeleteCellsCommandButton,exports.DocThemeCommandButton=t.DocThemeCommandButton,exports.EagerStudio=t.EagerStudio,exports.FillCommandButton=t.FillCommandButton,exports.FilterColumnMenu=t.FilterColumnMenu,exports.FilterCommandButton=t.FilterCommandButton,exports.Filters=t.Filters,exports.FindCommandButton=t.FindCommandButton,exports.FontFamilyCommandButton=t.FontFamilyCommandButton,exports.FontSizeCommandButton=t.FontSizeCommandButton,exports.FormulaBar=t.FormulaBar,exports.FreezeCommandButton=t.FreezeCommandButton,exports.HelpCommandButton=t.HelpCommandButton,exports.HorizontalAlignCommandButton=t.HorizontalAlignCommandButton,exports.InsertCellsCommandButton=t.InsertCellsCommandButton,exports.InsertImageCommandButton=t.InsertImageCommandButton,exports.InsertScriptCommandButton=t.InsertScriptCommandButton,exports.MergeCommandButton=t.MergeCommandButton,exports.NamedCollectionEditor=t.NamedCollectionEditor,exports.NamedInput=t.NamedInput,exports.NumberFormatCommandButton=t.NumberFormatCommandButton,exports.PasteCommandButton=t.PasteCommandButton,exports.PresetCellStylesCommandButton=t.PresetCellStylesCommandButton,exports.PresetTableStylesCommandButton=t.PresetTableStylesCommandButton,exports.QuickFormulaSumCommandPopupButton=t.QuickFormulaSumCommandPopupButton,exports.RangeInput=t.RangeInput,exports.RunScriptCommandButton=t.RunScriptCommandButton,exports.ScriptEditorToolbar=t.ScriptEditorToolbar,exports.ScriptWorkspace=t.ScriptWorkspace,exports.SheetTab=t.SheetTab,exports.SheetTabMenu=t.SheetTabMenu,exports.SheetZoomScale=t.SheetZoomScale,exports.SheetsAllMenu=t.SheetsAllMenu,exports.SortFilterCommandButton=t.SortFilterCommandButton,exports.StatusBar=t.StatusBar,exports.Studio=t.Studio,exports.StyledStrokeIcon=t.StyledStrokeIcon,exports.TableStyleCanvasPreview=t.TableStyleCanvasPreview,exports.TableStyleOptionsPanel=t.TableStyleOptionsPanel,exports.TableStylePreview=t.TableStylePreview,exports.TextEffectsCommandButton=t.TextEffectsCommandButton,exports.TextOverflowCommandButton=t.TextOverflowCommandButton,exports.TextRotateCommandButton=t.TextRotateCommandButton,exports.ThemeMode=t.ThemeMode,exports.ThemeSelectButton=t.ThemeSelectButton,exports.ThemeSelectPanel=t.ThemeSelectPanel,exports.ThemeSelectPopupButton=t.ThemeSelectPopupButton,exports.UnderlineCommandButton=t.UnderlineCommandButton,exports.UndoRedoCommandButton=t.UndoRedoCommandButton,exports.VerticalAlignCommandButton=t.VerticalAlignCommandButton,exports.ViewGridLinesCommandButton=t.ViewGridLinesCommandButton,exports.ViewHeadingsCommandButton=t.ViewHeadingsCommandButton,exports.WalkingCopyCommandButton=t.WalkingCopyCommandButton,exports.WorkbookContextMenu=t.WorkbookContextMenu,exports.WorkbookElement=t.WorkbookElement,exports.WorkbookIO=t.WorkbookIO,exports.WorkbookStrip=t.WorkbookStrip,exports.WorkbookTitle=t.WorkbookTitle,exports.WorkbookViewCommandButton=t.WorkbookViewCommandButton,exports._WorkbookIO=t._WorkbookIO,exports.createGridStyleFromMUITheme=t.createGridStyleFromMUITheme,exports.defaultNewWorkbook=t.defaultNewWorkbook,exports.renderWorkbookLoadingPanel=t.renderWorkbookLoadingPanel,exports.setPrintExamplesOnLoad=t.setPrintExamplesOnLoad,exports.useResolvedThemeMode=t.useResolvedThemeMode,exports.useWorkbookCommands=t.useWorkbookCommands;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),o=require("./
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),o=require("./Brij8vl9GntSQBer.cjs"),a=require("@mui/material"),n=require("@mui/system"),i=["Input"],r=t.memo(t.forwardRef((r,s)=>{const{initialValue:p="",onOption:l,onValidateOption:u,onInputOption:c,onValidateInputOption:d,onDone:g,inputProps:m,inputLabel:f,inputType:x,inputPlaceHolder:h,options:y=i,autoFocusSel:O=".autoFocus",cancelOption:T,defaultOption:w=y?.[0],...F}=r,[S,j]=t.useState(!1),[I,P]=t.useState(p),[b,v]=t.useState(""),[C,q]=t.useState(!0),D=o.Gi(async(e,t)=>{if(!d)return!0;const o=await(d?.(e,t));v(o?.message??"");const a=o?.valid??!0;return q(a),a},[d]),G=o.Gi(async e=>{c?.(I,e)},[I,c,g,l,T,w]),k=o.Gi(async e=>{e.keyCode===o.Ii.Enter&&await(D?.(I,null))},[I,G]),V=o.Gi(e=>{P(e.target.value),D?.(e.target.value,null)},[u]),B=o.Gi(async e=>{let t=await D(I,e);try{!1!==t&&(t=await D(I,e))}catch(e){}return t??!0},[I,u]);return e.jsx(o.pm,{options:y,onDone:g,onOption:(e,t)=>{t||G(e)},onValidateOption:B,cancelOption:T,defaultOption:w,autoFocusSel:O,ref:s,...F,children:e.jsx(a.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:e.jsx(a.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsx(a.TextField,{onFocus:e=>{S||e.target?.select(),j(!0)},type:x,label:f,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:C?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:h,spellCheck:!1,autoComplete:"off",...m,className:o.de("autoFocus",m?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",o.Do(5))}, ${n.alpha("#fff",o.Do(5))})`}}},value:I,onChange:V,onKeyDown:k,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
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.
|