@sheetxl/studio-mui 0.6.12 → 0.6.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.
Files changed (38) hide show
  1. package/browser/cjs/{BlpnGAbo58UgDQza.cjs → B4mLAshMAQ_X49pT.cjs} +2 -2
  2. package/browser/cjs/{nHyclCVg5asgz1Py.cjs → BdegKnGo6Ly8N_hl.cjs} +1 -1
  3. package/browser/cjs/{Db03YcMQ9maTwJ9D.cjs → Bdo6VXOLdVJ_J9UJ.cjs} +5 -5
  4. package/browser/cjs/{BDR5nFOWX7NnyMoM.cjs → BmFm-mwEL0lM-EIr.cjs} +1 -1
  5. package/browser/cjs/{X_QtYHYH9ht4XZW0.cjs → CNCk3LguJz3MRNLt.cjs} +2 -2
  6. package/browser/cjs/{Dfn2Lw7IOO4phi45.cjs → CZeft7xa-9hWJqKd.cjs} +3 -3
  7. package/browser/cjs/{BXt8uMQ52Aco51CA.cjs → DAeptI9VUtphEjzc.cjs} +1 -1
  8. package/browser/cjs/{DcNlcX3qO6sqvxQf.cjs → DDpFaSLE4ely9qiR.cjs} +2 -2
  9. package/browser/cjs/{Bv-QM2xw1182mYqk.cjs → DIW1zQKBgj0Dts6W.cjs} +2 -2
  10. package/browser/cjs/{DEcDM8irq4LIav7r.cjs → DR07wFczGnpHpuZd.cjs} +2 -2
  11. package/browser/cjs/{DaiVK3Jma7IA404G.cjs → Y-MYxWzG9XRfTIWI.cjs} +1 -1
  12. package/browser/cjs/{C462q3C-1i37-WcU.cjs → aRfyZTk5TJWBZZ7A.cjs} +1 -1
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/{D9OxV_CsDvcbDc4m.mjs → 5bkTdll8AcScifeU.mjs} +1 -1
  15. package/browser/esm/{PcyaGm6Ks_ug6tAh.mjs → 7WpJPANPdcZela-1.mjs} +2 -2
  16. package/browser/esm/{DIm7aUgG-G4Cjytb.mjs → BBVHTpfZFsAOWfT3.mjs} +1 -1
  17. package/browser/esm/{1aZt8s1N3IwPtg0I.mjs → BXoKAUGC-7T4FeAX.mjs} +2 -2
  18. package/browser/esm/{DcQAbZC7Pyl8H0Du.mjs → BsB4a_M0lU2gWn0H.mjs} +1 -1
  19. package/browser/esm/{HhIqNSmKsD_3vRst.mjs → CENQG5azyd2UZi2f.mjs} +713 -713
  20. package/browser/esm/{CqYqRJFt_MMSJjPm.mjs → CLZlBO5jalpVJHHE.mjs} +1 -1
  21. package/browser/esm/{RYweFvFtXKvPatSu.mjs → CMN87KRTnMNVkZDF.mjs} +2 -2
  22. package/browser/esm/{CPpr3_WRDtllZc1x.mjs → Ck3bm01sA7yL1q9n.mjs} +2 -2
  23. package/browser/esm/{B7jlirA4L119wA18.mjs → CqsMigLgsrGziIgu.mjs} +3 -3
  24. package/browser/esm/{B3VQ5Lla2rVfNvoU.mjs → DZaNeENvdKiQAYDu.mjs} +2 -2
  25. package/browser/esm/{On696rEx9BC35NND.mjs → aOos7k3RSDREPyI7.mjs} +1 -1
  26. package/browser/esm/index.mjs +2 -2
  27. package/node/esm/{CUj8Wnq_-HuKB_Ss.mjs → BH4H5fLpCSIR9BBR.mjs} +1 -1
  28. package/node/esm/{BeLD1GQMpb-3tagW.mjs → BHe3YReVzWMU0pD-.mjs} +1 -1
  29. package/node/esm/{Blb4cEHQ_lYuMe3Q.mjs → BOhNKGhp3PWLXuPF.mjs} +1 -1
  30. package/node/esm/{CfjM1J3URUX2QGVY.mjs → BgfbynvKhviYyNQw.mjs} +1 -1
  31. package/node/esm/{CDYO1tY_wsBp0pz2.mjs → CLYghqoZiTVzcLyz.mjs} +1 -1
  32. package/node/esm/{PbVay6TywQ6hnERf.mjs → Daqld8j6RwsezMuT.mjs} +1 -1
  33. package/node/esm/{BV6xXCI8xc1LWPTh.mjs → Dn-0kjhqGv57mLov.mjs} +1 -1
  34. package/node/esm/{ClVFqEPum-4R1nLc.mjs → Ktf8W2iGaFIZ_fVu.mjs} +1 -1
  35. package/node/esm/{CdaO7TfZOk6GEFJm.mjs → NZhxiKZBb9sp6WUN.mjs} +1 -1
  36. package/node/esm/{b6kGExDaA7mRDL2O.mjs → eNU_hqsGuEOHuZ7Z.mjs} +1 -1
  37. package/node/esm/index.mjs +684 -684
  38. package/package.json +8 -8
@@ -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.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.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
- */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("./Db03YcMQ9maTwJ9D.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("./Bdo6VXOLdVJ_J9UJ.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.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.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.