@sheetxl/studio-mui 0.4.6 → 0.4.7
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/{QA_huZIonWzLs-uu.cjs → 6ahm9L_JadTVTVKM.cjs} +2 -2
- package/browser/cjs/{DKVuDNZsxiRUUBVt.cjs → B5H9gNIHdOkSXNhX.cjs} +1 -1
- package/browser/cjs/{BIjFjK_aRCl0ckiG.cjs → BULArqiBp4j5hxyx.cjs} +1 -1
- package/browser/cjs/{Bwb_ZIYk7AHA0u3k.cjs → BbvqKmxn6Rum-bk6.cjs} +3 -3
- package/browser/cjs/{BR4pH9NA2LHogxsj.cjs → Bi9ti1geH1gSoYX2.cjs} +2 -2
- package/browser/cjs/{D9DjLppWLp-iQcfI.cjs → BnHBKznz1O8QEPEE.cjs} +2 -2
- package/browser/cjs/{WY-zkNIfIEVEQq-C.cjs → Bt1aI3vb7h-PM53z.cjs} +2 -2
- package/browser/cjs/{BqTAMhy1JhZE_3nU.cjs → C0rgKqf5wJGFF0Pn.cjs} +2 -2
- package/browser/cjs/{B1qn41wLyGnMiQPU.cjs → CArewr_CDpxiRR66.cjs} +1 -1
- package/browser/cjs/{DaK6Oc8sNlioHzKi.cjs → CmX_3VyTiwTzdJhI.cjs} +2 -2
- package/browser/cjs/{DjEDCBlxBYuN3Enq.cjs → CnIoJa4rGjDIRDt_.cjs} +1 -1
- package/browser/cjs/{BwBrLQaEYCz6GTg4.cjs → CxMQIx_-k_XCclct.cjs} +7 -7
- package/browser/cjs/{B1mBnghJtPodtylh.cjs → CzHIyuIwxVQd9I_P.cjs} +2 -2
- package/browser/cjs/D0g5Yi1sFZedrm8U.cjs +12 -0
- package/browser/cjs/{CdQdB8GGgwp5bzHl.cjs → D2F5d-KqoX6K87V-.cjs} +2 -2
- package/browser/cjs/{Cwa_0l8qR0zbOqE0.cjs → D5hBXjLlXQHJlC_R.cjs} +1 -1
- package/browser/cjs/{Dc5FruZcYE4XCAxW.cjs → DFkeNYQoyIagEEQ9.cjs} +2 -2
- package/browser/cjs/{DtMN1mvFQK7hQ1j9.cjs → DK6e7OLzcRQFuNAR.cjs} +1 -1
- package/browser/cjs/{DPm_1cgH3Q1g4XzF.cjs → DQRGxRYSOKOEByUm.cjs} +2 -2
- package/browser/cjs/{Bcv0k3jvRwqN2MIv.cjs → ZmZmJzyx8f56di-3.cjs} +4 -4
- package/browser/cjs/{Cc9abhZ8Cm2eNY_H.cjs → iEu_JcRmrN7o_Gnt.cjs} +4 -4
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DVh3lOOMM_xi0ETW.cjs → ojTdNwa8dIIVVsYa.cjs} +1 -1
- package/browser/cjs/{LWykIZ3qaETKREvJ.cjs → sia-JpDs1OJx3UqA.cjs} +1 -1
- package/browser/cjs/{SSESHQPsy1dN102X.cjs → x0gHCGm4Ua404wtj.cjs} +2 -2
- package/browser/cjs/{E2cXotXW7NLh-ylB.cjs → x5DxzBmBRyolQW8p.cjs} +2 -2
- package/browser/esm/{C4JsAY2gYqZ7Sd56.mjs → 54Y6CqDofk0Ryz8B.mjs} +3 -3
- package/browser/esm/{CvdO7McIlOCtqS-y.mjs → B5ZVjFCvGZMlskn5.mjs} +2 -2
- package/browser/esm/{BXKEJUmDPV4aXepN.mjs → BQoEwYUY9khnxsGk.mjs} +4 -4
- package/browser/esm/{Y56oxIoigldEyDtK.mjs → BRio-IBtU98oZf5v.mjs} +1 -1
- package/browser/esm/{D2KNRJIkSezOwiMf.mjs → BSQXNtEzcvD1nZ07.mjs} +9 -9
- package/browser/esm/{HBIcmxUA2eXJVoAq.mjs → BUxotxJXTYkCxXGj.mjs} +1 -1
- package/browser/esm/{DBsl0-1buVSmLIT3.mjs → BadcJIpfDDb6Oula.mjs} +1 -1
- package/browser/esm/{DL7U0rX3cr1nkmnW.mjs → BgQK3a-xYWlmvNDD.mjs} +2 -2
- package/browser/esm/{9sVNDRh1Ww2_ABjB.mjs → C2ogJhUgj6tBd2Ze.mjs} +2 -2
- package/browser/esm/{oV4EdTmLvRNexoGq.mjs → CAgqX2BO2DbnSbS0.mjs} +2 -2
- package/browser/esm/{CD2_V-nutPVuAS-C.mjs → CIEN20sJj9GKW3yE.mjs} +1 -1
- package/browser/esm/CJ46XJddcTe9sn3Q.mjs +84 -0
- package/browser/esm/{D_eMbbDkTCIyPBkR.mjs → CMiuTssM0lBVhuJS.mjs} +6 -6
- package/browser/esm/{BGDv4j9k0fKGH40f.mjs → CRCvnu8AKE7fJq05.mjs} +2 -2
- package/browser/esm/{Lm7tjCM70hRDdKQn.mjs → CevfhoT-xtAPuMWS.mjs} +2 -2
- package/browser/esm/{DBqHis2InMtzN9m3.mjs → D0TAETGiUzsAjxPY.mjs} +3 -3
- package/browser/esm/{D49GU0rifaflLO3n.mjs → D3DJPz0louDEmOOg.mjs} +2 -2
- package/browser/esm/{B8uQ6WrEnZeQliy7.mjs → DBhNx8LLdmzo5Avs.mjs} +2 -2
- package/browser/esm/{D75FG-POhKcbVybN.mjs → DHsxjQ98xXj3tRTJ.mjs} +1 -1
- package/browser/esm/{VnAOTl45ngDazT7k.mjs → DJJZ-Mz0hVMWcKq8.mjs} +2 -2
- package/browser/esm/{DBxxz4VWtQhF8HiE.mjs → DXbciCQNKY4_r5Et.mjs} +1 -1
- package/browser/esm/{DLq_1QLsg30gdYKE.mjs → Ip_kfHi5bomcrUk6.mjs} +1 -1
- package/browser/esm/{DowxifIAh5V6Hww_.mjs → PjZRDfcmhPXxjS2K.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DVKSMAIBqNe72BA_.mjs → vs0v9un-v2S9Jnlo.mjs} +12 -12
- package/browser/esm/{C4PpKzB897oeobRz.mjs → ww-U-PglTS7Dtu3g.mjs} +2 -2
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{DV9nbqcBflTCKGov.mjs → 1YvclnJ1eNd7ibD-.mjs} +1 -1
- package/node/esm/{BykEuFt9dp-EWJZO.mjs → BK_IZrqK3_Xz2rfA.mjs} +1 -1
- package/node/esm/{B45Lgj6XrYICeuDV.mjs → B_-60k30GZTVFJCG.mjs} +1 -1
- package/node/esm/{dgGvhB4_s7wWzRKZ.mjs → BcfUxPgXAV1if9NT.mjs} +1 -1
- package/node/esm/{CYcPamATHHzrhe3e.mjs → BdwO--U2p6MiyekK.mjs} +1 -1
- package/node/esm/{Dg4Q-SaoO3kvkvYo.mjs → BeiZhSUAA8NyCua8.mjs} +1 -1
- package/node/esm/{BhaLY_aBt2JyosQ9.mjs → BkzwNHPzd0DSf0FL.mjs} +3 -3
- package/node/esm/{yDYdEwZNn_fHB_XK.mjs → BlIGyiGNQyArtF2L.mjs} +3 -3
- package/node/esm/{CSffUZePWbg2mmfY.mjs → C-WOcvkTBKxqQfEZ.mjs} +1 -1
- package/node/esm/{wJsllV16IW6_aUTq.mjs → C2SG9zLSqOGo3vCR.mjs} +5 -5
- package/node/esm/{09msifGrQdtU9V1P.mjs → CJhxYk5D_7vcD7QG.mjs} +1 -1
- package/node/esm/{DSGdRHGkJfdn-vZg.mjs → CTgcSkLGEwSlcrWM.mjs} +1 -1
- package/node/esm/{CsgrU16opQLee5fg.mjs → CVheJHEYC7Bxc-m9.mjs} +1 -1
- package/node/esm/{C79MhCjBRvMtRYQ8.mjs → CiFa6r-hL-KsSx0I.mjs} +1 -1
- package/node/esm/{ClNrSC5ChRfmj691.mjs → ClSJpKVPQuTKvJtg.mjs} +1 -1
- package/node/esm/{DhSN7TkeDTP5WvZm.mjs → D9INCGl89jNGldla.mjs} +30 -30
- package/node/esm/{CNtUiJCciezra7NX.mjs → DEtck55hesGlXNoj.mjs} +1 -1
- package/node/esm/{BMezAVogP2CPQGXx.mjs → DKqYePntZxW3fh6x.mjs} +1 -1
- package/node/esm/{DHWs5mErxhiV_ABm.mjs → DQfxpSzOhUDp1tes.mjs} +1 -1
- package/node/esm/{BrMPoQxRSTKdwAVr.mjs → DW9fZUq5TEVyK05B.mjs} +1 -1
- package/node/esm/{CjV-qMk3flrBJ5Tx.mjs → HAKu1GEoK2wZht5-.mjs} +2 -2
- package/node/esm/RPVynz_rpfz9lkAQ.mjs +78 -0
- package/node/esm/index.mjs +8 -8
- package/node/esm/{DKlEncWUM6PlIVXw.mjs → xQKjfFNNUiXBnIeG.mjs} +1 -1
- package/package.json +8 -8
- package/browser/cjs/C_aC2PbKe_AGZzJf.cjs +0 -12
- package/browser/esm/F9D7x6t41LChFxhi.mjs +0 -84
- package/node/esm/CSubjpwyZVLohant.mjs +0 -78
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
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.7
|
|
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 a=require("react/jsx-runtime"),l=require("react"),r=require("@mui/material"),s=require("@sheetxl/sdk"),n=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),r=require("@mui/material"),s=require("@sheetxl/sdk"),n=require("./CxMQIx_-k_XCclct.cjs"),c=require("@mui/system"),B=["Ok","Cancel"],O=l.memo(j=>{const{initialValue:k,context:h,onOption:f,onValidateOption:m,onInputOption:b,onDone:d,options:T=B,defaultOption:u=T?.[0],cancelOption:g="Cancel",sx:S,...N}=j,[t,v]=l.useState(k),[P,w]=l.useState(!1),y=l.useCallback(async(e,o)=>!0,[]),x=n.T(async e=>{b?.(t,e),f?.(e,e===g,e===u),d?.()},[t,b,d,f,g,u]),D=n.T(async e=>{e.keyCode===n.eo.Enter&&await y?.(t,null)!==!1&&x(u)},[t,x]),I=n.T(e=>{v(e.target.value),y?.(e.target.value,null)},[m]),q=n.T(async e=>{let o=await Promise.resolve(m?.(e));try{o!==!1&&(o=await Promise.resolve(y?.(t,e))??!0)}catch{}return o??!0},[m]),[C,F]=l.useState(s.NumberFormat.Styles.lookupStyle(t).formatType??s.NumberFormat.Type.Custom);l.useEffect(()=>{F(s.NumberFormat.Styles.lookupStyle(t).formatType??s.NumberFormat.Type.Custom)},[t]);const M=l.useMemo(()=>{const e=s.NumberFormat.Styles.lookupPrimary(),o=p=>a.jsx(r.MenuItem,{value:p,children:p},p),i=Object.keys(e).map(p=>o(e[p].formatType));return i.push(o(s.NumberFormat.Type.Custom)),i},[]),$=l.useCallback(e=>{const o=e.target.value;F(o);const i=s.NumberFormat.Styles.lookupDefault(o);i&&v(i)},[]),A=l.useMemo(()=>{const e=h();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:t}})},[C,t,h]);return a.jsx(n.D8,{title:"Number Format",options:T,onDone:d,onOption:e=>x(e),onValidateOption:q,defaultOption:u,cancelOption:g,autoFocusSel:".autoFocus",sx:{width:"580px",...S},...N,children:a.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[a.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[a.jsx(r.InputLabel,{children:"Category"}),a.jsx(r.Select,{value:C,label:"Category",onChange:$,sx:{backgroundImage:`linear-gradient(${c.alpha("#fff",n.getOverlayAlpha(5))}, ${c.alpha("#fff",n.getOverlayAlpha(5))})`},children:M})]}),a.jsx(r.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:a.jsx(r.TextField,{label:"Code",onFocus:e=>{P||e.target?.select(),w(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${c.alpha("#fff",n.getOverlayAlpha(5))}, ${c.alpha("#fff",n.getOverlayAlpha(5))})`}}},value:t,onChange:I,onKeyDown:D,onContextMenu:e=>{e.stopPropagation()}})}),a.jsxs(r.Box,{children:[a.jsx(r.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),a.jsx(r.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:A.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=O,exports.default=O;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("@sheetxl/sdk");exports.fromBufferJSON=async(w,l)=>{let u=w;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()}(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),p={...l?.constructorOptions??{},json:g};return new J.Workbook(p)},exports.toBufferJSON=async(w,l)=>{const u=await w.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(w,u),g=b===0?JSON.stringify(u):function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
|
|
7
|
+
`;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
|
|
8
|
+
`);return y+=`
|
|
9
|
+
`+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
|
|
10
|
+
`;m||(s=0);for(let c=0;c<d;c++){const y=B[c];S+=O+JSON.stringify(y)+": "+o(e[y],a+1,s,!1),c<d-1&&(S+=`,
|
|
11
|
+
`)}return S+=`
|
|
12
|
+
`+A+"}",S}(i,0,0,!1)}(u,b);let p=new TextEncoder().encode(g).buffer;const t=l?.compress??!0;return t&&(p=await async function(i,r="gzip"){let n;typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer?(n=new ArrayBuffer(i.byteLength),new Uint8Array(n).set(new Uint8Array(i))):n=i;const f=new ReadableStream({start(a){a.enqueue(n),a.close()}}),o=new CompressionStream(r),e=f.pipeThrough(o);return(await new Response(e).blob()).arrayBuffer()}(p,typeof t=="string"?t:void 0)),p};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
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.7
|
|
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 s=require("react/jsx-runtime"),a=require("react"),t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),t=require("./CxMQIx_-k_XCclct.cjs"),p=require("@mui/material"),O=require("@mui/system"),N=["Input"],$=a.memo(a.forwardRef((T,w)=>{const{initialValue:F="",onOption:S,onValidateOption:l,onInputOption:u,onValidateInputOption:r,onDone:c,inputProps:d,inputLabel:P,inputType:b,inputPlaceHolder:v,options:g=N,autoFocusSel:C=".autoFocus",cancelOption:f,defaultOption:m=g?.[0],...I}=T,[j,q]=a.useState(!1),[n,k]=a.useState(F),[D,V]=a.useState(""),[B,M]=a.useState(!0),i=t.s0(async(e,o)=>{if(!r)return!0;const x=await r?.(e,o);V(x?.message??"");const y=x?.valid??!0;return M(y),y},[r]),h=t.s0(async e=>{u?.(n,e)},[n,u,c,S,f,m]),R=t.s0(async e=>{e.keyCode===t.Z0.Enter&&await i?.(n,null)},[n,h]),H=t.s0(e=>{k(e.target.value),i?.(e.target.value,null)},[l]),L=t.s0(async e=>{let o=await i(n,e);try{o!==!1&&(o=await i(n,e))}catch{}return o??!0},[n,l]);return s.jsx(t.D8,{options:g,onDone:c,onOption:(e,o)=>{o||h(e)},onValidateOption:L,cancelOption:f,defaultOption:m,autoFocusSel:C,ref:w,...I,children:s.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:s.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:s.jsx(p.TextField,{onFocus:e=>{j||e.target?.select(),q(!0)},type:b,label:P,helperText:D||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:B?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:v,spellCheck:!1,autoComplete:"off",...d,className:t.A0("autoFocus",d?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${O.alpha("#fff",t.Re(5))}, ${O.alpha("#fff",t.Re(5))})`}}},value:n,onChange:H,onKeyDown:R,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=$;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
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.7
|
|
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.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
|
|
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 S=require("@sheetxl/sdk");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:f,constructorOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@sheetxl/sdk");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:f,constructorOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./CArewr_CDpxiRR66.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let p=-1;const t=new S.Workbook(h),u=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:S.IRange.Orientation.Row}),c=d?.onProgress;let e=0;const r={...i,transform:(n,g)=>{i?.transform&&(n=i.transform(n,g));const s=g;s===0&&p++;let l=n??"";return u.pushAt(p,s,l),e++,e%1e5==0&&c?.(e),n}};return o.parse(m,r).data,u.apply({textParser:!0,...f}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:f=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=d||{},p=await Promise.resolve().then(()=>require("./CArewr_CDpxiRR66.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().search()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let u=null;const c=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!f){const s=i?r.getRowStart():0,l=f?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),y=l.getCell();u!==w.rowIndex&&(e&&c.push(e),e=[],u=w.rowIndex);const x=y.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&c.push(e);const n={...m},g=p.unparse(c,n);return new TextEncoder().encode(g).buffer};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
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.7
|
|
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.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
|
|
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"),h=require("react"),o=require("@mui/material"),t=require("@sheetxl/sdk"),c=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("react"),o=require("@mui/material"),t=require("@sheetxl/sdk"),c=require("./CxMQIx_-k_XCclct.cjs"),d=({range:u,options:a,cell:C,onDone:s,...b})=>{const[i,r]=h.useState(a??t.Sort.DefaultRangeOptions),x=c.T(e=>{let l=null;e==="Sort"&&(l={...a,options:i}),s?.(l)},[i,s,a]);return n.jsx(c.D8,{title:"Sort",options:["Sort","Cancel"],onDone:x,...b,children:n.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column"},children:[n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:!i.reverse,onChange:()=>r(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.hasHeader,onChange:()=>r(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>r(e=>({...e,collatorOptions:i.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.orientation===t.IRange.Orientation.Row,onChange:()=>r(e=>{const l=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...u.getDefaultSortCriteria(l,C).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:l}})}),label:"Row Sort",labelPlacement:"end"}),n.jsx(o.FormControlLabel,{control:n.jsx(o.Checkbox,{checked:i.includeHidden,onChange:()=>r(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=d,exports.default=d;
|