@sheetxl/studio-mui 0.6.0 → 0.6.2

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 (41) hide show
  1. package/README.md +17 -0
  2. package/browser/cjs/{Bw8f_aHw0lSvQz2_.cjs → B1E3tHHNXmArUbjH.cjs} +1 -1
  3. package/browser/cjs/{CVLoH1r8gD4y-n0N.cjs → C2xfMadYJQ4DTzKE.cjs} +1 -1
  4. package/browser/cjs/{BrNiBYnmrklRGtQi.cjs → C4hRxpY9T037UKiC.cjs} +2 -2
  5. package/browser/cjs/{C_6_naXiJiN280yN.cjs → CMP_OLfp_P5OsyQU.cjs} +1 -1
  6. package/browser/cjs/{BouHQs0EXo61jVEn.cjs → CR5GpL37AnFruiT2.cjs} +9 -9
  7. package/browser/cjs/{43WVCieJGyZnWnsP.cjs → CUdPU-DcNT5ZcFgJ.cjs} +1 -1
  8. package/browser/cjs/{D3cJi3CiKnsKjJmr.cjs → Ch_WoJ-pZyZNxP_j.cjs} +2 -2
  9. package/browser/cjs/{Dh9-_LE2REFsgq2o.cjs → CiV-o106LfTsE_9x.cjs} +1 -1
  10. package/browser/cjs/{BnHtrJ3CbwxsGDv4.cjs → D-YddMbE7sP-M2DM.cjs} +2 -2
  11. package/browser/cjs/{CTXcyhSEd_uw6ULf.cjs → DIQYDkVt65poGMIa.cjs} +3 -3
  12. package/browser/cjs/{DCgHF4HcgbO_kjud.cjs → DeYYNOi-sy2VD2O1.cjs} +2 -2
  13. package/browser/cjs/{BemoYf8lLkgLbXGY.cjs → Dm377uEKNG-ZjEmb.cjs} +2 -2
  14. package/browser/cjs/index.cjs +2 -2
  15. package/browser/esm/{DEKPj1MeG5jbflnK.mjs → CVkriwE9CqF2Lc6Q.mjs} +2 -2
  16. package/browser/esm/{Bs9wbYZtXbLnt5KR.mjs → CawGBfCUee2gP1nA.mjs} +3 -3
  17. package/browser/esm/{B1dgxRQVSAr4UJSW.mjs → CbLx2qBVAaQX9oYP.mjs} +1 -1
  18. package/browser/esm/{D5jlFpTkRJHMHC3k.mjs → CgW5Cyh3MyA-lbyA.mjs} +1 -1
  19. package/browser/esm/{tUDkDt0IO5p-OBAK.mjs → ChPQGcrxQOCU6C0k.mjs} +1 -1
  20. package/browser/esm/{DA96gFcw_pqof9Ev.mjs → CrVBFwtBqwyugGHZ.mjs} +2 -2
  21. package/browser/esm/{CAG7pdkm5bY1EwE0.mjs → DK8qHjjW4BZpA4t2.mjs} +2 -2
  22. package/browser/esm/{BwUFAgvqv0m4DU-2.mjs → DOrD6CPyfrxJUQsb.mjs} +2 -2
  23. package/browser/esm/{DPd_qn1l5D_ok6Ts.mjs → DfGH68eLoZyyGcXn.mjs} +1 -1
  24. package/browser/esm/{CgJb_UImgUnt6C4O.mjs → DogzDznNx17Hufxy.mjs} +163 -162
  25. package/browser/esm/{DLXMRSlCKKJcOX2d.mjs → HaTL91Nei4UPyuSM.mjs} +1 -1
  26. package/browser/esm/{CFil4WFTICJErTS1.mjs → WGXl9Zqf9JUTVjs6.mjs} +2 -2
  27. package/browser/esm/index.mjs +19 -20
  28. package/licenses/dependencies.txt +139 -139
  29. package/node/esm/{CVlRRW3QIr6nPK-f.mjs → B0eRKqOerp5qUXnk.mjs} +1 -1
  30. package/node/esm/{CqsH4bN9NmsEaNKl.mjs → B79Fk8Rf_S3myb3F.mjs} +1 -1
  31. package/node/esm/{D9ekdgfqTj4aGhva.mjs → BPhBl9yEANRAohGb.mjs} +1 -1
  32. package/node/esm/{DH-1_LQfKzeOixYD.mjs → Cf-KsRLPHq3TMgCN.mjs} +1 -1
  33. package/node/esm/{CQL1F9kduEp9h4IY.mjs → DlDsKQ19STh161qy.mjs} +1 -1
  34. package/node/esm/{BHXvy0oxgCzfnIC5.mjs → Dx_t2ZpK8p0Os82U.mjs} +1 -1
  35. package/node/esm/{CvbFgZjkxSCAkAQy.mjs → I0e_6qKJfp_ITQp-.mjs} +1 -1
  36. package/node/esm/{DGCh_qMmpEdV3YM6.mjs → PRI-xcB_vGMqY_W8.mjs} +1 -1
  37. package/node/esm/{HX-o3esXt1sgPc4k.mjs → U-UIGRZ-LXE82x7P.mjs} +1 -1
  38. package/node/esm/index.mjs +926 -927
  39. package/node/esm/{CHU43UW-mnyFqHOm.mjs → wGdtM4ECpe51Ut0i.mjs} +1 -1
  40. package/package.json +8 -8
  41. package/types/index.d.ts +0 -3
package/README.md CHANGED
@@ -21,6 +21,23 @@ Bundle `@sheetxl/sdk` and its dependencies.
21
21
  ```bash
22
22
  # Using npm
23
23
  npm install @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled @react @react/dom
24
+ ```
24
25
 
26
+ ```bash
25
27
  # Using yarn
26
28
  yarn add @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled @react @react/dom
29
+ ```
30
+
31
+ ## 🔗 Learn More
32
+
33
+ Whether you're ready to build, need help, or just want to see more examples, here's where to go next.
34
+
35
+ * 📘 **[Developer Docs](https://www.sheetxl.com/docs)** - Guides and tutorials.
36
+ * 🔌 **[API Reference](https://api.sheetxl.com)** - Detailed documentation for all packages.
37
+ * 🌐 **[Live Demo Gallery](https://www.sheetxl.com/demos)** - A showcase of interactive examples.
38
+ * ✨ **[Storybook](https://storybook.sheetxl.com)** - Explore and test individual UI components.
39
+ * 💬 **[Join our Discord Community](https://discord.gg/NTKdwUgK9p)** - Get help and connect with the team.
40
+ * ⭐ **[Star us on GitHub](https://github.com/sheetxl)** - If you find SheetXL useful, we'd appreciate a star!
41
+ * 🌐 **[Website](https://www.sheetxl.com)** - Our Website.
42
+
43
+ ---
@@ -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.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.2
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.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.2
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.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.2
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 r=require("react/jsx-runtime"),l=require("react"),w=require("@mui/material"),c=require("@sheetxl/utils-react"),F=require("@sheetxl/utils-mui"),O=require("./BouHQs0EXo61jVEn.cjs"),B=["Ok","Cancel"],R=l.memo(V=>{const{value:a=null,context:t,onOption:p,onValidateOption:M,onDone:g,onUpdate:m,options:x=B,defaultOption:f=x?.[0],cancelOption:N="Cancel",sx:b,...h}=V,y=l.useMemo(()=>t?.getNames().findValidName("Range1"),[]),u=l.useMemo(()=>{if(!a)return!0},[]),[n,v]=l.useState({displayText:a?.getName()??y,errorText:null}),[o,k]=l.useState({displayValue:a?.getRanges()??t?.selection()??null,errorText:null}),[T,C]=l.useState(!1),q=l.useCallback(async e=>!n.errorText&&!o.errorText,[t]),S=c.useCallbackRef((e,s,d)=>{if(!s){let i=null;u?i=t?.getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),i=a),i&&(i.select(),m(i,u))}p?.(e,s,d),g?.()},[t,n,o,g,p,f,N,m]),j=c.useCallbackRef(e=>{let s=null;try{t?.getNames().validateName(e)}catch(d){s=d.message}v({displayText:e,errorText:s})},[]),D=c.useCallbackRef(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),I=l.useCallback(e=>{k({displayValue:e??null,errorText:null})},[]);return r.jsx(F.OptionsDialog,{title:(u?"Define":"Edit")+" Range",options:x,onOption:S,onValidateOption:q,defaultOption:f,cancelOption:N,autoFocusSel:".autoFocus",sx:{width:"460px",...b},...h,children:r.jsxs(w.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[r.jsx(O.NamedInput,{formName:"name",defaultInput:y,value:n.displayText,onChangeInput:j,onValidate:D,onFocus:e=>{T||e.target?.select(),C(!0)}}),r.jsx(O.RangeInput,{formName:"range",value:o.displayValue,onChangeInput:I,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),onFocus:e=>{T||e.target?.select(),C(!0)}})]})})});exports.NamedReferenceDialog=R,exports.default=R;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("react"),w=require("@mui/material"),c=require("@sheetxl/utils-react"),F=require("@sheetxl/utils-mui"),O=require("./CR5GpL37AnFruiT2.cjs"),B=["Ok","Cancel"],R=l.memo(V=>{const{value:a=null,context:t,onOption:p,onValidateOption:M,onDone:g,onUpdate:m,options:x=B,defaultOption:f=x?.[0],cancelOption:N="Cancel",sx:b,...h}=V,y=l.useMemo(()=>t?.getNames().findValidName("Range1"),[]),u=l.useMemo(()=>{if(!a)return!0},[]),[n,v]=l.useState({displayText:a?.getName()??y,errorText:null}),[o,k]=l.useState({displayValue:a?.getRanges()??t?.selection()??null,errorText:null}),[T,C]=l.useState(!1),q=l.useCallback(async e=>!n.errorText&&!o.errorText,[t]),S=c.useCallbackRef((e,s,d)=>{if(!s){let i=null;u?i=t?.getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),i=a),i&&(i.select(),m(i,u))}p?.(e,s,d),g?.()},[t,n,o,g,p,f,N,m]),j=c.useCallbackRef(e=>{let s=null;try{t?.getNames().validateName(e)}catch(d){s=d.message}v({displayText:e,errorText:s})},[]),D=c.useCallbackRef(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),I=l.useCallback(e=>{k({displayValue:e??null,errorText:null})},[]);return r.jsx(F.OptionsDialog,{title:(u?"Define":"Edit")+" Range",options:x,onOption:S,onValidateOption:q,defaultOption:f,cancelOption:N,autoFocusSel:".autoFocus",sx:{width:"460px",...b},...h,children:r.jsxs(w.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[r.jsx(O.NamedInput,{formName:"name",defaultInput:y,value:n.displayText,onChangeInput:j,onValidate:D,onFocus:e=>{T||e.target?.select(),C(!0)}}),r.jsx(O.RangeInput,{formName:"range",value:o.displayValue,onChangeInput:I,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),onFocus:e=>{T||e.target?.select(),C(!0)}})]})})});exports.NamedReferenceDialog=R,exports.default=R;
@@ -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.0
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.2
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.