@sheetxl/studio-mui 0.5.1 → 0.6.0

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 (39) hide show
  1. package/browser/cjs/{DZXSHPXJywU0QDaX.cjs → 43WVCieJGyZnWnsP.cjs} +1 -1
  2. package/browser/cjs/{DGcWWDQoWTessrP9.cjs → BemoYf8lLkgLbXGY.cjs} +2 -2
  3. package/browser/cjs/{BSchsQWqHadL8uiG.cjs → BnHtrJ3CbwxsGDv4.cjs} +2 -2
  4. package/browser/cjs/{Dptdk7e9jdSVPSlW.cjs → BouHQs0EXo61jVEn.cjs} +4 -4
  5. package/browser/cjs/{Bi2ewauCdH2w14hW.cjs → BrNiBYnmrklRGtQi.cjs} +2 -2
  6. package/browser/cjs/{DkpiQeq_B6niQX_F.cjs → Bw8f_aHw0lSvQz2_.cjs} +1 -1
  7. package/browser/cjs/{DBcDkQQ3AzkP7U-g.cjs → CTXcyhSEd_uw6ULf.cjs} +3 -3
  8. package/browser/cjs/{BSk234vVHlO9t-0j.cjs → CVLoH1r8gD4y-n0N.cjs} +1 -1
  9. package/browser/cjs/{C6Qc9lLh9egNbs0t.cjs → C_6_naXiJiN280yN.cjs} +1 -1
  10. package/browser/cjs/{B7ZqxL7HCcF4W64E.cjs → D3cJi3CiKnsKjJmr.cjs} +2 -2
  11. package/browser/cjs/{DwKLyvJr6BNyEpRJ.cjs → DCgHF4HcgbO_kjud.cjs} +2 -2
  12. package/browser/cjs/{Ck0B-kjPAw2A9KVg.cjs → Dh9-_LE2REFsgq2o.cjs} +1 -1
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/{C3cb5A2fg-21I_jY.mjs → B1dgxRQVSAr4UJSW.mjs} +1 -1
  15. package/browser/esm/{BZX8sIMfMsI3HTX8.mjs → Bs9wbYZtXbLnt5KR.mjs} +3 -3
  16. package/browser/esm/{CKP6l57oywzoCW26.mjs → BwUFAgvqv0m4DU-2.mjs} +2 -2
  17. package/browser/esm/{D3Q0yYY719Kq6-E0.mjs → CAG7pdkm5bY1EwE0.mjs} +2 -2
  18. package/browser/esm/{Bk-eJX2kHnvnG28L.mjs → CFil4WFTICJErTS1.mjs} +2 -2
  19. package/browser/esm/{hSy4nt2e1JaglBGF.mjs → CgJb_UImgUnt6C4O.mjs} +4 -4
  20. package/browser/esm/{Dhvid6hJKp8mH3mM.mjs → D5jlFpTkRJHMHC3k.mjs} +1 -1
  21. package/browser/esm/{B07osQ30jqhbDbZd.mjs → DA96gFcw_pqof9Ev.mjs} +2 -2
  22. package/browser/esm/{B1z2_AMWCsfpJHbb.mjs → DEKPj1MeG5jbflnK.mjs} +2 -2
  23. package/browser/esm/{C89QUgwXHQc2dJ3l.mjs → DLXMRSlCKKJcOX2d.mjs} +1 -1
  24. package/browser/esm/{BdX-JA-__aDsnq7S.mjs → DPd_qn1l5D_ok6Ts.mjs} +1 -1
  25. package/browser/esm/index.mjs +2 -2
  26. package/browser/esm/{CBKfWBsXKJNQ1vnx.mjs → tUDkDt0IO5p-OBAK.mjs} +1 -1
  27. package/licenses/dependencies.txt +139 -139
  28. package/node/esm/{D_iq-nakEihGXnfs.mjs → BHXvy0oxgCzfnIC5.mjs} +1 -1
  29. package/node/esm/{BhrCUSzh6UYuYooH.mjs → CHU43UW-mnyFqHOm.mjs} +1 -1
  30. package/node/esm/{WjtiXN--XGZjB3uh.mjs → CQL1F9kduEp9h4IY.mjs} +1 -1
  31. package/node/esm/{DuTuCOWVEZrVzH3R.mjs → CVlRRW3QIr6nPK-f.mjs} +1 -1
  32. package/node/esm/{IXbZFmdmVOCo2beQ.mjs → CqsH4bN9NmsEaNKl.mjs} +1 -1
  33. package/node/esm/{BzI2nfBkzMD7nh3R.mjs → CvbFgZjkxSCAkAQy.mjs} +1 -1
  34. package/node/esm/{C2yYkXDnvboLxKsV.mjs → D9ekdgfqTj4aGhva.mjs} +1 -1
  35. package/node/esm/{2ivPcTvenc9052Au.mjs → DGCh_qMmpEdV3YM6.mjs} +1 -1
  36. package/node/esm/{C1WgCk3bWrblj2tf.mjs → DH-1_LQfKzeOixYD.mjs} +1 -1
  37. package/node/esm/{CCjx6xhgYbFOq1KK.mjs → HX-o3esXt1sgPc4k.mjs} +1 -1
  38. package/node/esm/index.mjs +4 -4
  39. 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.5.1
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.0
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.5.1
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.0
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("./Dptdk7e9jdSVPSlW.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("./BouHQs0EXo61jVEn.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,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.5.1
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.0
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("./Dptdk7e9jdSVPSlW.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("./BouHQs0EXo61jVEn.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;