@sheetxl/studio-mui 0.6.21 → 0.6.22

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 (38) hide show
  1. package/browser/cjs/{D9HdOjJS2HYSEqzY.cjs → ANF9DDyVkgJ6qlz5.cjs} +1 -1
  2. package/browser/cjs/{DF87Hg7IAqNKQ2ZA.cjs → BCz1t2Vbp7iDgonm.cjs} +2 -2
  3. package/browser/cjs/{PTxiN10bF-7T3Lic.cjs → C2tACKYnEMi13PUS.cjs} +1 -1
  4. package/browser/cjs/{BuRByqXDXNrOYfNU.cjs → C6684nhyu6l3m0kn.cjs} +2 -2
  5. package/browser/cjs/{CjvP4AnwI5HO3YXE.cjs → C9wr-tWcHBgWnmsj.cjs} +1 -1
  6. package/browser/cjs/{BpVj5KmHYmzSAymb.cjs → CIyX2IiFJx-RRH7s.cjs} +1 -1
  7. package/browser/cjs/{BZoukHNcIY1cMfQD.cjs → DMF21Qbb8aQYyWHF.cjs} +1 -1
  8. package/browser/cjs/{T1oij3v4LTKhwqOD.cjs → DZuGl4pfmowbo9Zn.cjs} +4 -4
  9. package/browser/cjs/{BU6ojktDdXu6Ect0.cjs → DtnmD3cg1jVGU8-U.cjs} +2 -2
  10. package/browser/cjs/{CBbBFj6M95dXZEzc.cjs → KR0KTsIaRYi2pPeE.cjs} +3 -3
  11. package/browser/cjs/{Dn3mqEmdxZ_p5vpo.cjs → c8R8mEoRSGxWpwzR.cjs} +2 -2
  12. package/browser/cjs/{CLZEcJH9y0uKaw-6.cjs → ccRyWUob4IiUygXl.cjs} +2 -2
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/{JgcixhXCJiDXYFM-.mjs → BFOrbgSQUoIlkx0b.mjs} +1 -1
  15. package/browser/esm/{Bl8mpPFcpDAfdlaq.mjs → BFSwrIsbjcKYQa8z.mjs} +3 -3
  16. package/browser/esm/{DyclcJK3bbD2yz2B.mjs → BWPpTvD_j2xBbQgA.mjs} +2 -2
  17. package/browser/esm/{B8R88mCSS4Jkf4MA.mjs → Bqs8EP3zPYXZDaOY.mjs} +2 -2
  18. package/browser/esm/{DRTMQ-y_uvzGk0Az.mjs → BumDPcjj1e4GU9fZ.mjs} +2 -2
  19. package/browser/esm/{DIs8wksR6vPb0ZWK.mjs → By9LpgiRfUIsWQvJ.mjs} +1 -1
  20. package/browser/esm/{B8NaoSHV-mtloWql.mjs → CFURBfBzYVTox1hN.mjs} +1 -1
  21. package/browser/esm/{HznN-S6ksDZsuFT1.mjs → CkNHc2Ec0XgG7kMZ.mjs} +2 -2
  22. package/browser/esm/{BNzOECjyvtX0f4RM.mjs → DVJw4-NDpKqsuHj0.mjs} +2 -2
  23. package/browser/esm/{Dyan1RwTrewWHmH_.mjs → DpNXDFtCtBG0QRPQ.mjs} +1 -1
  24. package/browser/esm/{BvKX-RcDyBVBtlm3.mjs → K_qBn3b8P2vYF08X.mjs} +1 -1
  25. package/browser/esm/index.mjs +2 -2
  26. package/browser/esm/{FCb2yW6AGyApNze4.mjs → mE0s8-6FPDNYSOUd.mjs} +4 -4
  27. package/node/esm/{z4SYPntmqCGchSXt.mjs → B6LDtfqKczpN2bra.mjs} +1 -1
  28. package/node/esm/{BE3GflLovUUm39Bx.mjs → BKsAXgpTI24e0OCP.mjs} +1 -1
  29. package/node/esm/{CExPdDGsxsnccLK8.mjs → BnBJXWJgpUHCS5MZ.mjs} +1 -1
  30. package/node/esm/{BSVUvMz44jArZNA1.mjs → Bqid9TpFmhXaU8b5.mjs} +1 -1
  31. package/node/esm/{CFCKaImWGt0We-wK.mjs → BzAcJ8XUoWR5XdoH.mjs} +1 -1
  32. package/node/esm/{C9j6OYzG92WntU54.mjs → CaPokYFCHECLO7p5.mjs} +1 -1
  33. package/node/esm/{B7RTLt6lJtRL6R3g.mjs → CeXfJ6ImJ64xI2Re.mjs} +1 -1
  34. package/node/esm/{xb1Gn40gfuflI9Ka.mjs → DlEV79l6PYxZpJZq.mjs} +1 -1
  35. package/node/esm/{D2nWT34VvXTxnRcl.mjs → DuPl6F0w35ZldP8v.mjs} +1 -1
  36. package/node/esm/{alGP81HkOPMm4HIr.mjs → GDBbM-pJeuxVR08F.mjs} +1 -1
  37. package/node/esm/index.mjs +4 -4
  38. package/package.json +8 -8
@@ -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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),k=require("@sheetxl/utils-react"),D=require("@sheetxl/utils-mui"),T=require("./T1oij3v4LTKhwqOD.cjs"),y=["Ok","Cancel"],b=t.memo(x=>{const{tableOptions:a,context:c,onOption:u,onValidateOption:N,onDone:p,options:d=y,defaultOption:l=d?.[0],cancelOption:s="Cancel",sx:O,...h}=x,[m,f]=t.useState(!1),[o,C]=t.useState(()=>a?.hasHeader??!1),[i,j]=t.useState(()=>a?.ranges??null),q=k.useCallbackRef(e=>{const g={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),p?.({option:e,tableOptions:g})},[p,u,l,s,o,i,a]),S=t.useCallback(async(e,g)=>null,[]);return n.jsx(D.OptionsDialog,{title:"Insert Table",options:d,onDone:q,onValidateOption:S,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...O},...h,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(T.RangeInput,{formName:"range",value:i,onChangeInput:e=>j(e),resolvedAddress:c.getNames().getRanges.bind(c.getNames()),onFocus:e=>{m||e.target?.select(),f(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>C(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),k=require("@sheetxl/utils-react"),D=require("@sheetxl/utils-mui"),T=require("./DZuGl4pfmowbo9Zn.cjs"),y=["Ok","Cancel"],b=t.memo(x=>{const{tableOptions:a,context:c,onOption:u,onValidateOption:N,onDone:p,options:d=y,defaultOption:l=d?.[0],cancelOption:s="Cancel",sx:O,...h}=x,[m,f]=t.useState(!1),[o,C]=t.useState(()=>a?.hasHeader??!1),[i,j]=t.useState(()=>a?.ranges??null),q=k.useCallbackRef(e=>{const g={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),p?.({option:e,tableOptions:g})},[p,u,l,s,o,i,a]),S=t.useCallback(async(e,g)=>null,[]);return n.jsx(D.OptionsDialog,{title:"Insert Table",options:d,onDone:q,onValidateOption:S,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...O},...h,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(T.RangeInput,{formName:"range",value:i,onChangeInput:e=>j(e),resolvedAddress:c.getNames().getRanges.bind(c.getNames()),onFocus:e=>{m||e.target?.select(),f(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>C(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
@@ -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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),l=require("@sheetxl/utils-react"),i=require("@sheetxl/utils-mui"),H=require("@sheetxl/react"),c=require("./T1oij3v4LTKhwqOD.cjs"),y=s.memo(b=>{const{title:w,onHide:S,autoFocusSel:j=".range-input input",context:C,notifier:d=l.DefaultNotifier,command:g,commands:u,...T}=b,[B,m]=s.useState(!1),[x,p]=s.useState(!1),h=s.useRef(null),[q,v]=s.useReducer(e=>e+1,0),[R,{width:L}]=c.useMeasure();l.useCommand(g);const o=C??g.context(),t=o.table(),[I,N]=s.useState(()=>t?o.getNames().getRanges(t.getRange()):null),D=s.useMemo(()=>t?.getName()??"",[t]);H.useModelListener(o.table(),{onAnchorCoordsChange(e){N(o.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const F=l.useCallbackRef(e=>{o?.table().setName(e)},[o]),P=l.useCallbackRef(e=>{o?.table().resize(e.at(0))},[o]);let f=null;return o.table()||(f=n.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:n.jsx("div",{children:"No table selected"})})),n.jsx(i.InternalWindow,{ref:h,title:w??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:S,onFocus:()=>m(!0),onBlur:e=>{h?.current?.contains(e.relatedTarget)||m(!1)},PaperProps:{elevation:B?3:1},...T,children:n.jsxs(a.DialogContent,{dividers:!0,ref:R,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[n.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:o.table()?1:0},children:[n.jsx(a.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:n.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:n.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[n.jsx(c.NamedInput,{formName:"name",defaultInput:D,value:t?.getName()??"No table",onChangeInput:F,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||o?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),p(!0)}}),n.jsx(c.RangeInput,{formName:"range",value:I,onChangeInput:P,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),p(!0)}})]})})}),n.jsxs(a.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[n.jsx(i.ExhibitDivider,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),n.jsx(c.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(r){d.showError(r)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(r){d.showError(r)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(r){d.showError(r)}}}),n.jsx(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:n.jsx(c.TableStylePreview,{table:t,styles:o.styles(),bodyStyle:o.bodyStyle(),cellHeight:30,isLive:!0})}),n.jsx(i.ExhibitDivider,{orientation:"horizontal"}),n.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[n.jsx(i.CommandButton,{variant:l.CommandButtonType.Menuitem,command:u.getCommand("convertTableToRange"),commandState:t,icon:i.themeIcon(n.jsx(i.InsertTableIcon,{}))}),n.jsx(i.CommandButton,{variant:l.CommandButtonType.Menuitem,commandState:t,command:u.getCommand("deleteTable"),icon:i.themeIcon(n.jsx(i.InsertTableIcon,{}))})]})]})]}),f]})})});exports.TableDetailsWindow=y,exports.default=y;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),l=require("@sheetxl/utils-react"),i=require("@sheetxl/utils-mui"),H=require("@sheetxl/react"),c=require("./DZuGl4pfmowbo9Zn.cjs"),y=s.memo(b=>{const{title:w,onHide:S,autoFocusSel:j=".range-input input",context:C,notifier:d=l.DefaultNotifier,command:g,commands:u,...T}=b,[B,m]=s.useState(!1),[x,p]=s.useState(!1),h=s.useRef(null),[q,v]=s.useReducer(e=>e+1,0),[R,{width:L}]=c.useMeasure();l.useCommand(g);const o=C??g.context(),t=o.table(),[I,N]=s.useState(()=>t?o.getNames().getRanges(t.getRange()):null),D=s.useMemo(()=>t?.getName()??"",[t]);H.useModelListener(o.table(),{onAnchorCoordsChange(e){N(o.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const F=l.useCallbackRef(e=>{o?.table().setName(e)},[o]),P=l.useCallbackRef(e=>{o?.table().resize(e.at(0))},[o]);let f=null;return o.table()||(f=n.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:n.jsx("div",{children:"No table selected"})})),n.jsx(i.InternalWindow,{ref:h,title:w??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:S,onFocus:()=>m(!0),onBlur:e=>{h?.current?.contains(e.relatedTarget)||m(!1)},PaperProps:{elevation:B?3:1},...T,children:n.jsxs(a.DialogContent,{dividers:!0,ref:R,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[n.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:o.table()?1:0},children:[n.jsx(a.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:n.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:n.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[n.jsx(c.NamedInput,{formName:"name",defaultInput:D,value:t?.getName()??"No table",onChangeInput:F,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||o?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),p(!0)}}),n.jsx(c.RangeInput,{formName:"range",value:I,onChangeInput:P,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),p(!0)}})]})})}),n.jsxs(a.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[n.jsx(i.ExhibitDivider,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),n.jsx(c.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(r){d.showError(r)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(r){d.showError(r)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(r){d.showError(r)}}}),n.jsx(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:n.jsx(c.TableStylePreview,{table:t,styles:o.styles(),bodyStyle:o.bodyStyle(),cellHeight:30,isLive:!0})}),n.jsx(i.ExhibitDivider,{orientation:"horizontal"}),n.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[n.jsx(i.CommandButton,{variant:l.CommandButtonType.Menuitem,command:u.getCommand("convertTableToRange"),commandState:t,icon:i.themeIcon(n.jsx(i.InsertTableIcon,{}))}),n.jsx(i.CommandButton,{variant:l.CommandButtonType.Menuitem,commandState:t,command:u.getCommand("deleteTable"),icon:i.themeIcon(n.jsx(i.InsertTableIcon,{}))})]})]})]}),f]})})});exports.TableDetailsWindow=y,exports.default=y;
@@ -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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
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.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.22
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.