@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.
- package/browser/cjs/{CisYglNTHGrj9oMH.cjs → B7qLzxylqOaybl3H.cjs} +2 -2
- package/browser/cjs/{Df5v6knUJ4dqHmmo.cjs → BNGixOiIsu8jZlvn.cjs} +1 -1
- package/browser/cjs/{BabvaPi1dUIPt5AG.cjs → BUYxt7KgFkIIIMyc.cjs} +2 -2
- package/browser/cjs/{QB_8kWYEsfOH_HwK.cjs → Bk6VhhWsnCRyBu2F.cjs} +2 -2
- package/browser/cjs/{uoBAuXnlUz8scSA1.cjs → BpiMMYip132x0r1O.cjs} +1 -1
- package/browser/cjs/{aOmlMJRAkQEF59EX.cjs → ByZ_Q-J7jgF7AoWR.cjs} +2 -2
- package/browser/cjs/{Clbakb5VUTDTlofM.cjs → BzD7LV8VmFKLAJyW.cjs} +2 -2
- package/browser/cjs/{BCtVyhxIZSUPH_Z4.cjs → C6_zcNM0Efa11KEE.cjs} +1 -1
- package/browser/cjs/{xq-CJbsvm7BQO8lK.cjs → C8Azx_ZaQa4WvAtR.cjs} +2 -2
- package/browser/cjs/{B29yIlf_FSHx9q3M.cjs → CITvaW7L_iZfIyAN.cjs} +1 -1
- package/browser/cjs/{xp2ZII-PuLk9tHK3.cjs → CNDDYOoLCrGsUMYL.cjs} +1 -1
- package/browser/cjs/{CH50hiw_7LBSC6dR.cjs → CYbeY5OVZDqHGSOm.cjs} +2 -2
- package/browser/cjs/{DY2PuDSgw0TrB5-_.cjs → C_SgucbRn-v9IkNO.cjs} +2 -2
- package/browser/cjs/{BbvcxaJzfy7H6xfa.cjs → CeTd2nFbE5yFzf7T.cjs} +1 -1
- package/browser/cjs/{BE6O6K7i1mHBC3et.cjs → Cfe7IbPNI8-CgoDI.cjs} +2 -2
- package/browser/cjs/{B783moVfFT70yQuK.cjs → Ctyk-ajkSsTDJuvY.cjs} +2 -2
- package/browser/cjs/{u0WmWLGlCwhnhL9i.cjs → DBhTQLbjAtU-A1YA.cjs} +2 -2
- package/browser/cjs/{Bhh0dqxUzzOzHWMc.cjs → Dc2rbOjtcmSIm8D4.cjs} +1 -1
- package/browser/cjs/{li-J7BWV6WUzY5aq.cjs → DcsvUmoS8zGG5GB8.cjs} +1 -1
- package/browser/cjs/{D7xmeRe-f7IifEKc.cjs → DqAlQQIZIyF7HMib.cjs} +1 -1
- package/browser/cjs/{Cfb0T6htsh82UPK-.cjs → DuwawlAm4aRBNTBm.cjs} +2 -2
- package/browser/cjs/{BQ-G2ABc3FYN-D50.cjs → Dx9UUJj-yeubDjm4.cjs} +2 -2
- package/browser/cjs/{DyzVC_iq7ceqC2fj.cjs → IC19hB4Ntvw1158j.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DCV-6w2JGk_faE3x.cjs → reQ9miE5C5qMfbRJ.cjs} +2 -2
- package/browser/esm/{12Ttun7hzbiInyVr.mjs → B1Ey4ZP8BHUzHW7G.mjs} +1 -1
- package/browser/esm/{B-Ut_yUCD9THCz0T.mjs → B8dJHVZJta8QbNKG.mjs} +1 -1
- package/browser/esm/{Z1_72ZY8rW2Mc3g_.mjs → BThbC01mtb7qq8_A.mjs} +2 -2
- package/browser/esm/{DiIX5KzrWnbDWjGE.mjs → Bnt1M91BRyMvXrc4.mjs} +2 -2
- package/browser/esm/{BkDEdK7zOlsoUKCZ.mjs → BqN0SYrEO0RZQtv-.mjs} +2 -2
- package/browser/esm/{Hy95ExHvIFgzxQb-.mjs → CHPXsEre3jry2-jF.mjs} +1 -1
- package/browser/esm/{Djo2IS-ivmVSrO3v.mjs → CMCOU0nDlymDFS9l.mjs} +2 -2
- package/browser/esm/{_ZR9nT54xwy-C6ow.mjs → Cc7y1nMDr5J8jWx-.mjs} +2 -2
- package/browser/esm/{CzgR8PxJ_89IC4Mr.mjs → CesL-3BNbMB1f_if.mjs} +2 -2
- package/browser/esm/{BcIp2mxLBfjUBE0q.mjs → CfvNSnuQLa1SPbNL.mjs} +1 -1
- package/browser/esm/{CJawFB555VEY-Vge.mjs → CloqVDbJmTL4oFek.mjs} +1 -1
- package/browser/esm/{7jSMnphGrNRPUa_S.mjs → Cta0yn5UIrP2UoT4.mjs} +2 -2
- package/browser/esm/{Bi_0z0hyhFuz5Ta3.mjs → CwRyQHiDoBLx5_1g.mjs} +1 -1
- package/browser/esm/{Csk8rXNpaXmf5g7O.mjs → DI-ZGstUJFwkx4H6.mjs} +2 -2
- package/browser/esm/{CWogLlWYHiL4W6CH.mjs → DQTfmweCXjuIlITn.mjs} +2 -2
- package/browser/esm/{csxyptiqbJZO0pQA.mjs → DUIfOO25d1fqtJzn.mjs} +2 -2
- package/browser/esm/{Cu-5HDPN8B0qE77-.mjs → DhOXsRr8c7bDS1jM.mjs} +2 -2
- package/browser/esm/{BpGexBYtmHbTIJz2.mjs → JPwh2m5-pXkdPVzF.mjs} +1 -1
- package/browser/esm/{BVRUNnRvnt7aVCDD.mjs → UkNAvQj0NVgeMpUl.mjs} +1 -1
- package/browser/esm/{Cr46Bo9bGoz0LbWq.mjs → ZUfck_LDsQb9gpvU.mjs} +2 -2
- package/browser/esm/{DMUXpRbV3ahdB1lN.mjs → gHhqkr52cxXkga0T.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{BTD5k7gtFcqDwslB.mjs → obM68UOvA5HV7Lt1.mjs} +2 -2
- package/browser/esm/{BauTkiamxm0HDt6M.mjs → x9MyDRdLE47dI9dF.mjs} +1 -1
- package/browser/esm/{AnCmK-idMDJ2vI8H.mjs → yW9jxnamUqAhVQkJ.mjs} +2 -2
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{DLiw-2C_tqGgJIQ6.mjs → B3M2CzPvK2oKOfg5.mjs} +1 -1
- package/node/esm/{8THCZRGNmI2nPqMR.mjs → BIRLX0-9t62Lqats.mjs} +1 -1
- package/node/esm/{Dd2OFQJQyYp6bAeP.mjs → BJY8yNMmN_yyRtIG.mjs} +1 -1
- package/node/esm/{BPylexVHXa-t0sqJ.mjs → Bj8uU2shfkvN4LnE.mjs} +1 -1
- package/node/esm/{DNJVdt9TbBsUE8Jm.mjs → Bt5y5wVaVAVjwHBl.mjs} +1 -1
- package/node/esm/{Ui3_6RhrEZQDOXwg.mjs → C2P_M1JNT_WZZN3H.mjs} +3 -3
- package/node/esm/{CaV6SH-PMyHlXUhx.mjs → CBGAl2mih9mHDt5w.mjs} +1 -1
- package/node/esm/{DkpAjhQeaZn_Ipxg.mjs → CKtVB9hMCfabQMxC.mjs} +1 -1
- package/node/esm/{RV-AvxVzzFKWjYFM.mjs → CVGxETc4rIE1gNAH.mjs} +1 -1
- package/node/esm/{DIGsHHDexzj0uG_T.mjs → CryVonGjJnmo2dE_.mjs} +5 -5
- package/node/esm/{CXSwyUs6BuNGCic0.mjs → D1C8ifsmXsypL6pp.mjs} +1 -1
- package/node/esm/{BDm0y2dv7wLZhYj1.mjs → D1xD8cOQDGcbjIlG.mjs} +1 -1
- package/node/esm/{C6jxZQrvMLctjLZM.mjs → DUfB1ollhqU-JIk5.mjs} +1 -1
- package/node/esm/{qI75rORek8T0-Kpf.mjs → Dx2vq1Hdt4pqmOF-.mjs} +1 -1
- package/node/esm/{D481dAOp77EZbV5s.mjs → M3UB6IrhVERZziiJ.mjs} +1 -1
- package/node/esm/{BSUbQzac78SXiAJe.mjs → PF5CCBvapZxEzc7k.mjs} +1 -1
- package/node/esm/{DyMCnCG9LzH5Mgw0.mjs → bv_GA6NGCT0sJaXy.mjs} +1 -1
- package/node/esm/{DHj9iDuBImdwscIb.mjs → h1y2hBFecTqRgUa-.mjs} +1 -1
- package/node/esm/index.mjs +9 -9
- package/node/esm/{BQYQg7lfqFbWaf8x.mjs → kHsChOtl8GUkzj5Q.mjs} +2 -2
- package/node/esm/{BeNXnrWMr5S34Oxb.mjs → kIQFLB3nmEJdn_OT.mjs} +1 -1
- package/node/esm/{DaCmut490aSCGvX8.mjs → m8fyd2BoYkTOJlc1.mjs} +1 -1
- package/node/esm/{CCZepFZNn1pIXrnd.mjs → wdtYNTNCynMMS4_P.mjs} +1 -1
- 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.
|
|
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
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{memo as t,useMemo as n,useState as l,useCallback as o}from"react";import{Box as r}from"@mui/material";import{B as i,p as s,N as d,R as p}from"./
|
|
7
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{memo as t,useMemo as n,useState as l,useCallback as o}from"react";import{Box as r}from"@mui/material";import{B as i,p as s,N as d,R as p}from"./Cc7y1nMDr5J8jWx-.mjs";const u=["Ok","Cancel"],c=t(t=>{const{value:c=null,context:m,onOption:g,onValidateOption:x,onDone:f,onUpdate:N,options:y=u,defaultOption:T=y?.[0],cancelOption:O="Cancel",sx:V,...h}=t,R=n(()=>m?.getNames().findValidName("Range1"),[]),v=n(()=>{if(!c)return!0},[]),[C,w]=l({displayText:c?.getName()??R,errorText:null}),[F,D]=l({displayValue:c?.getRanges()??m?.selection()??null,errorText:null}),[I,j]=l(!1),B=o(async e=>!C.errorText&&!F.errorText,[m]),E=i((e,a,t)=>{if(!a){let e=null;v?e=m?.getNames().addReference(C?.displayText,F?.displayValue,!1):("reference"===c.getType()&&c.doBatch(()=>{c.setName(C?.displayText),c.setReference(F?.displayValue)},`Edit Named '${C?.displayText}'`),e=c),e&&(e.select(),N(e,v))}g?.(e,a,t),f?.()},[m,C,F,f,g,T,O,N]),L=i(e=>{let a=null;try{m?.getNames().validateName(e)}catch(e){a=e.message}w({displayText:e,errorText:a})},[]),b=i(e=>{c&&c.getName().toLowerCase()===e.toLowerCase()||m?.getNames().validateName(e)},[m,c]),k=o(e=>{D({displayValue:e??null,errorText:null})},[]);return e(s,{title:(v?"Define":"Edit")+" Range",options:y,onOption:E,onValidateOption:B,defaultOption:T,cancelOption:O,autoFocusSel:".autoFocus",sx:{width:"460px",...V},...h,children:a(r,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[e(d,{formName:"name",defaultInput:R,value:C.displayText,onChangeInput:L,onValidate:b,onFocus:e=>{I||e.target?.select(),j(!0)}}),e(p,{formName:"range",value:F.displayValue,onChangeInput:k,resolvedAddress:m.getNames().getRanges.bind(m.getNames()),onFocus:e=>{I||e.target?.select(),j(!0)}})]})})});export{c as NamedReferenceDialog,c as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
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.
|
|
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
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as t}from"react";import{Box as o,FormControlLabel as i,Checkbox as l}from"@mui/material";import{Sort as r,IRange as a}from"@sheetxl/sdk";import{B as s,p as c}from"./
|
|
7
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as t}from"react";import{Box as o,FormControlLabel as i,Checkbox as l}from"@mui/material";import{Sort as r,IRange as a}from"@sheetxl/sdk";import{B as s,p as c}from"./Cc7y1nMDr5J8jWx-.mjs";const d=({range:d,options:m,cell:p,onDone:h,...u})=>{const[v,C]=t(m??r.DefaultRangeOptions),O=s(e=>{let n=null;"Sort"===e&&(n={...m,options:v}),h?.(n)},[v,h,m]);return e(c,{title:"Sort",options:["Sort","Cancel"],onDone:O,...u,children:n(o,{sx:{display:"flex",flexDirection:"column"},children:[e(i,{control:e(l,{checked:!v.reverse,onChange:()=>C(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.hasHeader,onChange:()=>C(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.collatorOptions?.sensitivity===r.CaseSensitiveOptions.sensitivity,onChange:()=>C(e=>({...e,collatorOptions:v.collatorOptions?.sensitivity===r.CaseSensitiveOptions.sensitivity?r.CaseInsensitiveOptions:r.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.orientation===a.Orientation.Row,onChange:()=>C(e=>{const n=e.orientation===a.Orientation.Row?a.Orientation.Column:a.Orientation.Row;return{...d.getDefaultSortCriteria(n,p).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:n}})}),label:"Row Sort",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.includeHidden,onChange:()=>C(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};export{d as SortDialog,d as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
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.
|
|
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
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{memo as t,useState as a,useCallback as o}from"react";import{Box as i,FormControlLabel as s,Checkbox as l}from"@mui/material";import{B as r,p,R as c}from"./
|
|
7
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{memo as t,useState as a,useCallback as o}from"react";import{Box as i,FormControlLabel as s,Checkbox as l}from"@mui/material";import{B as r,p,R as c}from"./Cc7y1nMDr5J8jWx-.mjs";const d=["Ok","Cancel"],m=t(t=>{const{tableOptions:m,context:g,onOption:u,onValidateOption:f,onDone:h,options:O=d,defaultOption:x=O?.[0],cancelOption:b="Cancel",sx:C,...D}=t,[N,T]=a(!1),[j,k]=a(()=>m?.hasHeader??!1),[v,w]=a(()=>m?.ranges??null),y=r(e=>{const n={...m,hasHeader:j,ranges:v};u?.(e,e===b,e===x),h?.({option:e,tableOptions:n})},[h,u,x,b,j,v,m]),F=o(async(e,n)=>null,[]);return e(p,{title:"Insert Table",options:O,onDone:y,onValidateOption:F,defaultOption:x,cancelOption:b,autoFocusSel:".range-input input",sx:{width:"360px",...C},...D,children:n(i,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e(c,{formName:"range",value:v,onChangeInput:e=>w(e),resolvedAddress:g.getNames().getRanges.bind(g.getNames()),onFocus:e=>{N||e.target?.select(),T(!0)}}),e(s,{control:e(l,{checked:j,onChange:()=>k(!j)}),label:"Table has headers",labelPlacement:"end"})]})})});export{m as TableNewDialog,m as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
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
|
-
import{jsx as t}from"react/jsx-runtime";import{memo as o,forwardRef as n,useState as a}from"react";import{G as e,I as i,p,d as r,D as s}from"./
|
|
7
|
+
import{jsx as t}from"react/jsx-runtime";import{memo as o,forwardRef as n,useState as a}from"react";import{G as e,I as i,p,d as r,D as s}from"./Cc7y1nMDr5J8jWx-.mjs";import{Box as l,FormControl as u,TextField as c}from"@mui/material";import{alpha as d}from"@mui/system";const m=["Input"],g=o(n((o,n)=>{const{initialValue:g="",onOption:f,onValidateOption:h,onInputOption:y,onValidateInputOption:O,onDone:x,inputProps:w,inputLabel:I,inputType:T,inputPlaceHolder:F,options:P=m,autoFocusSel:v=".autoFocus",cancelOption:C,defaultOption:b=P?.[0],...k}=o,[D,V]=a(!1),[j,B]=a(g),[H,L]=a(""),[M,N]=a(!0),S=e(async(t,o)=>{if(!O)return!0;const n=await(O?.(t,o));L(n?.message??"");const a=n?.valid??!0;return N(a),a},[O]),$=e(async t=>{y?.(j,t)},[j,y,x,f,C,b]),z=e(async t=>{t.keyCode===i.Enter&&await(S?.(j,null))},[j,$]),E=e(t=>{B(t.target.value),S?.(t.target.value,null)},[h]),G=e(async t=>{let o=await S(j,t);try{!1!==o&&(o=await S(j,t))}catch(t){}return o??!0},[j,h]);return t(p,{options:P,onDone:x,onOption:(t,o)=>{o||$(t)},onValidateOption:G,cancelOption:C,defaultOption:b,autoFocusSel:v,ref:n,...k,children:t(l,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:t(u,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t(c,{onFocus:t=>{D||t.target?.select(),V(!0)},type:T,label:I,helperText:H||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:M?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:F,spellCheck:!1,autoComplete:"off",...w,className:r("autoFocus",w?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${d("#fff",s(5))}, ${d("#fff",s(5))})`}}},value:j,onChange:E,onKeyDown:z,onContextMenu:t=>{t.stopPropagation()}})})})})}));export{g as default};
|