@sheetxl/studio-mui 0.4.11 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/browser/cjs/{CisYglNTHGrj9oMH.cjs → B7qLzxylqOaybl3H.cjs} +2 -2
  2. package/browser/cjs/{Df5v6knUJ4dqHmmo.cjs → BNGixOiIsu8jZlvn.cjs} +1 -1
  3. package/browser/cjs/{BabvaPi1dUIPt5AG.cjs → BUYxt7KgFkIIIMyc.cjs} +2 -2
  4. package/browser/cjs/{QB_8kWYEsfOH_HwK.cjs → Bk6VhhWsnCRyBu2F.cjs} +2 -2
  5. package/browser/cjs/{uoBAuXnlUz8scSA1.cjs → BpiMMYip132x0r1O.cjs} +1 -1
  6. package/browser/cjs/{aOmlMJRAkQEF59EX.cjs → ByZ_Q-J7jgF7AoWR.cjs} +2 -2
  7. package/browser/cjs/{Clbakb5VUTDTlofM.cjs → BzD7LV8VmFKLAJyW.cjs} +2 -2
  8. package/browser/cjs/{BCtVyhxIZSUPH_Z4.cjs → C6_zcNM0Efa11KEE.cjs} +1 -1
  9. package/browser/cjs/{xq-CJbsvm7BQO8lK.cjs → C8Azx_ZaQa4WvAtR.cjs} +2 -2
  10. package/browser/cjs/{B29yIlf_FSHx9q3M.cjs → CITvaW7L_iZfIyAN.cjs} +1 -1
  11. package/browser/cjs/{xp2ZII-PuLk9tHK3.cjs → CNDDYOoLCrGsUMYL.cjs} +1 -1
  12. package/browser/cjs/{CH50hiw_7LBSC6dR.cjs → CYbeY5OVZDqHGSOm.cjs} +2 -2
  13. package/browser/cjs/{DY2PuDSgw0TrB5-_.cjs → C_SgucbRn-v9IkNO.cjs} +2 -2
  14. package/browser/cjs/{BbvcxaJzfy7H6xfa.cjs → CeTd2nFbE5yFzf7T.cjs} +1 -1
  15. package/browser/cjs/{BE6O6K7i1mHBC3et.cjs → Cfe7IbPNI8-CgoDI.cjs} +2 -2
  16. package/browser/cjs/{B783moVfFT70yQuK.cjs → Ctyk-ajkSsTDJuvY.cjs} +2 -2
  17. package/browser/cjs/{u0WmWLGlCwhnhL9i.cjs → DBhTQLbjAtU-A1YA.cjs} +2 -2
  18. package/browser/cjs/{Bhh0dqxUzzOzHWMc.cjs → Dc2rbOjtcmSIm8D4.cjs} +1 -1
  19. package/browser/cjs/{li-J7BWV6WUzY5aq.cjs → DcsvUmoS8zGG5GB8.cjs} +1 -1
  20. package/browser/cjs/{D7xmeRe-f7IifEKc.cjs → DqAlQQIZIyF7HMib.cjs} +1 -1
  21. package/browser/cjs/{Cfb0T6htsh82UPK-.cjs → DuwawlAm4aRBNTBm.cjs} +2 -2
  22. package/browser/cjs/{BQ-G2ABc3FYN-D50.cjs → Dx9UUJj-yeubDjm4.cjs} +2 -2
  23. package/browser/cjs/{DyzVC_iq7ceqC2fj.cjs → IC19hB4Ntvw1158j.cjs} +2 -2
  24. package/browser/cjs/index.cjs +2 -2
  25. package/browser/cjs/{DCV-6w2JGk_faE3x.cjs → reQ9miE5C5qMfbRJ.cjs} +2 -2
  26. package/browser/esm/{12Ttun7hzbiInyVr.mjs → B1Ey4ZP8BHUzHW7G.mjs} +1 -1
  27. package/browser/esm/{B-Ut_yUCD9THCz0T.mjs → B8dJHVZJta8QbNKG.mjs} +1 -1
  28. package/browser/esm/{Z1_72ZY8rW2Mc3g_.mjs → BThbC01mtb7qq8_A.mjs} +2 -2
  29. package/browser/esm/{DiIX5KzrWnbDWjGE.mjs → Bnt1M91BRyMvXrc4.mjs} +2 -2
  30. package/browser/esm/{BkDEdK7zOlsoUKCZ.mjs → BqN0SYrEO0RZQtv-.mjs} +2 -2
  31. package/browser/esm/{Hy95ExHvIFgzxQb-.mjs → CHPXsEre3jry2-jF.mjs} +1 -1
  32. package/browser/esm/{Djo2IS-ivmVSrO3v.mjs → CMCOU0nDlymDFS9l.mjs} +2 -2
  33. package/browser/esm/{_ZR9nT54xwy-C6ow.mjs → Cc7y1nMDr5J8jWx-.mjs} +2 -2
  34. package/browser/esm/{CzgR8PxJ_89IC4Mr.mjs → CesL-3BNbMB1f_if.mjs} +2 -2
  35. package/browser/esm/{BcIp2mxLBfjUBE0q.mjs → CfvNSnuQLa1SPbNL.mjs} +1 -1
  36. package/browser/esm/{CJawFB555VEY-Vge.mjs → CloqVDbJmTL4oFek.mjs} +1 -1
  37. package/browser/esm/{7jSMnphGrNRPUa_S.mjs → Cta0yn5UIrP2UoT4.mjs} +2 -2
  38. package/browser/esm/{Bi_0z0hyhFuz5Ta3.mjs → CwRyQHiDoBLx5_1g.mjs} +1 -1
  39. package/browser/esm/{Csk8rXNpaXmf5g7O.mjs → DI-ZGstUJFwkx4H6.mjs} +2 -2
  40. package/browser/esm/{CWogLlWYHiL4W6CH.mjs → DQTfmweCXjuIlITn.mjs} +2 -2
  41. package/browser/esm/{csxyptiqbJZO0pQA.mjs → DUIfOO25d1fqtJzn.mjs} +2 -2
  42. package/browser/esm/{Cu-5HDPN8B0qE77-.mjs → DhOXsRr8c7bDS1jM.mjs} +2 -2
  43. package/browser/esm/{BpGexBYtmHbTIJz2.mjs → JPwh2m5-pXkdPVzF.mjs} +1 -1
  44. package/browser/esm/{BVRUNnRvnt7aVCDD.mjs → UkNAvQj0NVgeMpUl.mjs} +1 -1
  45. package/browser/esm/{Cr46Bo9bGoz0LbWq.mjs → ZUfck_LDsQb9gpvU.mjs} +2 -2
  46. package/browser/esm/{DMUXpRbV3ahdB1lN.mjs → gHhqkr52cxXkga0T.mjs} +2 -2
  47. package/browser/esm/index.mjs +2 -2
  48. package/browser/esm/{BTD5k7gtFcqDwslB.mjs → obM68UOvA5HV7Lt1.mjs} +2 -2
  49. package/browser/esm/{BauTkiamxm0HDt6M.mjs → x9MyDRdLE47dI9dF.mjs} +1 -1
  50. package/browser/esm/{AnCmK-idMDJ2vI8H.mjs → yW9jxnamUqAhVQkJ.mjs} +2 -2
  51. package/licenses/dependencies.txt +6 -6
  52. package/node/esm/{DLiw-2C_tqGgJIQ6.mjs → B3M2CzPvK2oKOfg5.mjs} +1 -1
  53. package/node/esm/{8THCZRGNmI2nPqMR.mjs → BIRLX0-9t62Lqats.mjs} +1 -1
  54. package/node/esm/{Dd2OFQJQyYp6bAeP.mjs → BJY8yNMmN_yyRtIG.mjs} +1 -1
  55. package/node/esm/{BPylexVHXa-t0sqJ.mjs → Bj8uU2shfkvN4LnE.mjs} +1 -1
  56. package/node/esm/{DNJVdt9TbBsUE8Jm.mjs → Bt5y5wVaVAVjwHBl.mjs} +1 -1
  57. package/node/esm/{Ui3_6RhrEZQDOXwg.mjs → C2P_M1JNT_WZZN3H.mjs} +3 -3
  58. package/node/esm/{CaV6SH-PMyHlXUhx.mjs → CBGAl2mih9mHDt5w.mjs} +1 -1
  59. package/node/esm/{DkpAjhQeaZn_Ipxg.mjs → CKtVB9hMCfabQMxC.mjs} +1 -1
  60. package/node/esm/{RV-AvxVzzFKWjYFM.mjs → CVGxETc4rIE1gNAH.mjs} +1 -1
  61. package/node/esm/{DIGsHHDexzj0uG_T.mjs → CryVonGjJnmo2dE_.mjs} +5 -5
  62. package/node/esm/{CXSwyUs6BuNGCic0.mjs → D1C8ifsmXsypL6pp.mjs} +1 -1
  63. package/node/esm/{BDm0y2dv7wLZhYj1.mjs → D1xD8cOQDGcbjIlG.mjs} +1 -1
  64. package/node/esm/{C6jxZQrvMLctjLZM.mjs → DUfB1ollhqU-JIk5.mjs} +1 -1
  65. package/node/esm/{qI75rORek8T0-Kpf.mjs → Dx2vq1Hdt4pqmOF-.mjs} +1 -1
  66. package/node/esm/{D481dAOp77EZbV5s.mjs → M3UB6IrhVERZziiJ.mjs} +1 -1
  67. package/node/esm/{BSUbQzac78SXiAJe.mjs → PF5CCBvapZxEzc7k.mjs} +1 -1
  68. package/node/esm/{DyMCnCG9LzH5Mgw0.mjs → bv_GA6NGCT0sJaXy.mjs} +1 -1
  69. package/node/esm/{DHj9iDuBImdwscIb.mjs → h1y2hBFecTqRgUa-.mjs} +1 -1
  70. package/node/esm/index.mjs +9 -9
  71. package/node/esm/{BQYQg7lfqFbWaf8x.mjs → kHsChOtl8GUkzj5Q.mjs} +2 -2
  72. package/node/esm/{BeNXnrWMr5S34Oxb.mjs → kIQFLB3nmEJdn_OT.mjs} +1 -1
  73. package/node/esm/{DaCmut490aSCGvX8.mjs → m8fyd2BoYkTOJlc1.mjs} +1 -1
  74. package/node/esm/{CCZepFZNn1pIXrnd.mjs → wdtYNTNCynMMS4_P.mjs} +1 -1
  75. 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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
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("./Clbakb5VUTDTlofM.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;
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("./BzD7LV8VmFKLAJyW.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;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
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("./Clbakb5VUTDTlofM.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;
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),o=require("./BzD7LV8VmFKLAJyW.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,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
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("./Clbakb5VUTDTlofM.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;
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("./BzD7LV8VmFKLAJyW.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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
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.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
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("./Clbakb5VUTDTlofM.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;
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("./BzD7LV8VmFKLAJyW.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;