@sheetxl/studio-vanilla 0.4.7 → 0.4.9
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/README.md +3 -3
- package/browser/cjs/{DPgVQdCYWI3fGYJ2.cjs → 3GhIDU8JK1oBJrCA.cjs} +2 -2
- package/browser/cjs/{D5I2M8yOTfapq6d7.cjs → 5hPVyVAXmITQCRAG.cjs} +2 -2
- package/browser/cjs/{C14PMFhYpGUhrvq1.cjs → 7PlrLPQx1lct0mdN.cjs} +1 -1
- package/browser/cjs/B4K6KuggSdXj-V8g.cjs +6 -0
- package/browser/cjs/B5Qc3gXLEhscRsFm.cjs +12 -0
- package/browser/cjs/{Bgl5W-fCpnnnO3_F.cjs → B7eW1GQgFvphlLGY.cjs} +2 -2
- package/browser/cjs/{B0pcLInszgzhrjui.cjs → BQPFxJ77OaD_sBIX.cjs} +2 -2
- package/browser/cjs/{BC9xtBySc8rix4-F.cjs → Ba3O1f0NYbzEwNAd.cjs} +1 -1
- package/browser/cjs/{BC5f5sl2pjp8FYIk.cjs → BoojmbbjqixMVu2H.cjs} +2 -2
- package/browser/cjs/{D8WkJStmUKY23vEC.cjs → CSGVl8EBCRhxcFm1.cjs} +1 -1
- package/browser/cjs/CalnqtYH48_x2rcI.cjs +301 -0
- package/browser/cjs/{Clp5qh0fApIxsE35.cjs → CjDsO4sQWUHbIX1N.cjs} +2 -2
- package/browser/cjs/{DE5MhliNUlcqzd9C.cjs → CsCaFaiySArzEfdH.cjs} +3 -3
- package/browser/cjs/{C73dxZSAw05vqEtJ.cjs → D6AUUY9awlTRjjqd.cjs} +1 -1
- package/browser/cjs/{DDFDUxH5Mew5rcdT.cjs → D8lN5Mv3J4SwSpLP.cjs} +1 -1
- package/browser/cjs/{HCih5BN1MZGUuqGG.cjs → D9RQ5oYv7U38wSI7.cjs} +6 -6
- package/browser/cjs/{CQAkk0gbl342HFs-.cjs → DCd2rPNFkSHDaRcM.cjs} +1 -1
- package/browser/cjs/DGQrcBvjSGwwoZEv.cjs +6 -0
- package/browser/cjs/{DNQqhDlfagjGC2sO.cjs → DIXyMJKaeCGuWxjZ.cjs} +2 -2
- package/browser/cjs/{BKUcozo2wEv2ay2w.cjs → Dmw7xaaV85s72QZe.cjs} +1 -1
- package/browser/cjs/{DGlLxziqSNTW0c6v.cjs → DzCXPcqV1oKbCcLO.cjs} +1 -1
- package/browser/cjs/{BBuQH_geF9Xg5HPn.cjs → EoaX6dPoS-Mb-ITO.cjs} +4 -4
- package/browser/cjs/Y6OgkWqbIB761o5q.cjs +6 -0
- package/browser/cjs/{DUrNYTSMA5KQTG77.cjs → gbABnN2zW1kHo3_I.cjs} +8 -8
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DyQffD3gRWH5-nOp.cjs → kfV5Cli9oE9IsCtx.cjs} +2 -2
- package/browser/cjs/{00LGtBNvHHqHMD_7.cjs → nURb18uhj9rScsHa.cjs} +2 -2
- package/browser/esm/{t16pmig4Yv-yOK3J.mjs → 2NQDbhor1Nuzndgq.mjs} +1 -1
- package/browser/esm/{IhAvisOcXUTXM4fs.mjs → 4aC35Q2XPOwifBRR.mjs} +1 -1
- package/browser/esm/{fLUOP3GBZp9qFVpK.mjs → 5zFDFBAgT-aPgQQ0.mjs} +1 -1
- package/browser/esm/{DQj7TIf3hkBsvgpu.mjs → B3I_TrFN_pAK5Mdh.mjs} +2 -2
- package/{cdn/assets/CSnM9G1CZ81wivjo.js → browser/esm/BD9GKsR-k4aEK2tx.mjs} +1 -1
- package/browser/esm/{DCLOetlYWQ4f6912.mjs → BQpsMTJvguy6LMIq.mjs} +5 -5
- package/browser/esm/{BssMWXVsjFZUIbK_.mjs → BfCWogOnq8R-c3dD.mjs} +2 -2
- package/browser/esm/BkGQPKMRPIVUVTLO.mjs +944 -0
- package/{cdn/assets/CzeybhBUMRs64-Mp.js → browser/esm/C81J50HcankGTOIj.mjs} +1 -1
- package/browser/esm/{CxesFvTfE_FHHeOa.mjs → CO_s27056nua6qzN.mjs} +1 -1
- package/browser/esm/{DnEhhjrb_iK5ugui.mjs → CPEjlDUTxckVS1rp.mjs} +2 -2
- package/browser/esm/{DE0B_sDQJ2uyFacb.mjs → CY7astxzrfb7uZqy.mjs} +26 -26
- package/{cdn/assets/CGL2dNgGZEziA1cG.js → browser/esm/CZVzRhflTpwAAl1o.mjs} +8 -8
- package/browser/esm/{BepIgOjpel6ND31E.mjs → CaWZXQsmKl4hTNq5.mjs} +16 -16
- package/{cdn/assets/CHsVgElx78EEmCPY.js → browser/esm/CxcLNXXaxyFyUzyb.mjs} +1 -1
- package/{cdn/assets/Cjl-eP68w6LXe0zR.js → browser/esm/D0icxW0WVNoeVRLH.mjs} +5 -5
- package/browser/esm/{f7jo5w0h4-vNZtjZ.mjs → DFQvqk5r1uf_z0h_.mjs} +10886 -10877
- package/{cdn/assets/CNdoHnLQKWWUIXFN.js → browser/esm/DRL5s4S0fIXi1aU7.mjs} +2 -2
- package/browser/esm/{B6OcmPVBCjTZiEO8.mjs → DRmeb1VC4YCzKKWd.mjs} +1 -1
- package/browser/esm/{D03_7nbUXeSyElQe.mjs → DTwhl4v5YnZrUSgI.mjs} +5 -5
- package/browser/esm/{C8PrD3vZULKFp7HL.mjs → DmpPAs6w-XNWGTIN.mjs} +3 -3
- package/{cdn/assets/D7ubLFCJK5RzTJOF.js → browser/esm/Dx-GS3XDBkRaMNG-.mjs} +20 -20
- package/browser/esm/{CrnqRK0Y_R59nkb0.mjs → V5CA7xqGOB7-Qx4Y.mjs} +6 -6
- package/browser/esm/{DJBqN2bozSAMAOUl.mjs → gsfI5CGYr7LCQxRx.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{bMPbHealpRV0cNsU.mjs → tOBqasyBAnd7O4qE.mjs} +5 -5
- package/browser/esm/{CdbRlOwSBEqFzw-Q.mjs → tPrnEcHW_czJDZOT.mjs} +8 -8
- package/cdn/assets/{t16pmig4Yv-yOK3J.js → 2NQDbhor1Nuzndgq.js} +1 -1
- package/cdn/assets/{IhAvisOcXUTXM4fs.js → 4aC35Q2XPOwifBRR.js} +1 -1
- package/cdn/assets/{fLUOP3GBZp9qFVpK.js → 5zFDFBAgT-aPgQQ0.js} +1 -1
- package/cdn/assets/{B-7gpSVkQWekyOlk.js → B0w_moB3pDJd-a6V.js} +5 -5
- package/{browser/esm/CSnM9G1CZ81wivjo.mjs → cdn/assets/BD9GKsR-k4aEK2tx.js} +1 -1
- package/{browser/esm/C3vvXeb_u4RQddV1.mjs → cdn/assets/BJVOhUH_XL03H6ZD.js} +8 -8
- package/cdn/assets/{BWyjsqZ8W7LRq-2H.js → BWJOkXXB6Tr-jYUS.js} +16 -16
- package/cdn/assets/{DPdbTtHJ9qzLqsDN.js → BapFqJyAb3cblvJM.js} +2 -2
- package/cdn/assets/{CRv8MUg-_zmoKFIt.js → Bg88bG-JM9EHeyYX.js} +2 -2
- package/{browser/esm/CzeybhBUMRs64-Mp.mjs → cdn/assets/C81J50HcankGTOIj.js} +1 -1
- package/cdn/assets/{CxesFvTfE_FHHeOa.js → CO_s27056nua6qzN.js} +1 -1
- package/cdn/assets/{BFDNPYBEj2T1cP38.js → CXa9u-7w14dyPYxk.js} +3 -3
- package/cdn/assets/{ChAbZK53mfolDCTD.js → CkcETdiKdTsZAzma.js} +6 -6
- package/{browser/esm/CHsVgElx78EEmCPY.mjs → cdn/assets/CxcLNXXaxyFyUzyb.js} +1 -1
- package/cdn/assets/{DucOHAWR0Drvzaz2.js → D0PaU6F-TNaTWj-a.js} +5 -5
- package/cdn/assets/{BKMHTFN6LTvRZnlS.js → D4hoypx6_sZbvrC_.js} +2 -2
- package/cdn/assets/{BPKaeP61qs19hdJx.js → D5exf1RvCqvUoJ3X.js} +26 -26
- package/cdn/assets/{CUqr4I0B5RzMvyfH.js → DKLitAhDj5Ibh2cc.js} +11896 -11887
- package/{browser/esm/CNdoHnLQKWWUIXFN.mjs → cdn/assets/DRL5s4S0fIXi1aU7.js} +2 -2
- package/cdn/assets/{B6OcmPVBCjTZiEO8.js → DRmeb1VC4YCzKKWd.js} +1 -1
- package/{browser/esm/CnL3YzjxBxFK7qfL.mjs → cdn/assets/DYkBvlMlZjOASUJs.js} +5 -5
- package/{browser/esm/DfczJdsv--tsazCR.mjs → cdn/assets/ON5--a75QdEU99y_.js} +20 -20
- package/cdn/assets/{CB496hBmWELULf2f.js → PIZDjyqIbvmHXs1T.js} +5 -5
- package/cdn/assets/{CvfZjHPPpLdHBSRa.js → TOkIJFYhNg78FdJa.js} +2 -2
- package/cdn/assets/{D8lNg-ZFq3SVt0qa.js → b9dlFmoFz8tJhV0Z.js} +8 -8
- package/cdn/assets/d1PG-QPA1GcQ_RuH.js +944 -0
- package/cdn/index.js +24 -24
- package/cdn/loader.js +2 -2
- package/package.json +3 -3
- package/types/index.d.ts +8 -8
- package/browser/cjs/BO0CySmcqi-pkV4p.cjs +0 -6
- package/browser/cjs/BoG6Gi-uqIbSJdRv.cjs +0 -12
- package/browser/cjs/DD6f8EPYnuPb41GO.cjs +0 -6
- package/browser/cjs/DsuUTTVqL23hXXxq.cjs +0 -6
- package/browser/cjs/Dva96jeug6x2xYZm.cjs +0 -301
- package/browser/esm/6w21A0XUkGBQu8-3.mjs +0 -940
- package/cdn/assets/CHZP9CrMHXri-Ghe.js +0 -940
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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
|
-
*/require("react"),require("react/jsx-runtime"),require("react-dom/client");const e=require("./
|
|
6
|
+
*/require("react"),require("react/jsx-runtime"),require("react-dom/client");const e=require("./CalnqtYH48_x2rcI.cjs");module.exports=e.SheetXL;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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 o=require("react/jsx-runtime"),r=require("react"),l=require("@sheetxl/sdk"),t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react"),l=require("@sheetxl/sdk"),t=require("./CalnqtYH48_x2rcI.cjs"),q=["Ok","Cancel"],T=r.memo(v=>{const{initialValue:j,context:y,onOption:x,onValidateOption:u,onInputOption:f,onDone:c,options:b=q,defaultOption:p=b?.[0],cancelOption:m="Cancel",sx:k,...S}=v,[a,h]=r.useState(j),[O,N]=r.useState(!1),d=r.useCallback(async(e,n)=>!0,[]),g=t.fe(async e=>{f?.(a,e),x?.(e,e===m,e===p),c?.()},[a,f,c,x,m,p]),$=t.fe(async e=>{e.keyCode===t.rn.Enter&&await d?.(a,null)!==!1&&g(p)},[a,g]),P=t.fe(e=>{h(e.target.value),d?.(e.target.value,null)},[u]),w=t.fe(async e=>{let n=await Promise.resolve(u?.(e));try{n!==!1&&(n=await Promise.resolve(d?.(a,e))??!0)}catch{}return n??!0},[u]),[C,F]=r.useState(l.NumberFormat.Styles.lookupStyle(a).formatType??l.NumberFormat.Type.Custom);r.useEffect(()=>{F(l.NumberFormat.Styles.lookupStyle(a).formatType??l.NumberFormat.Type.Custom)},[a]);const I=r.useMemo(()=>{const e=l.NumberFormat.Styles.lookupPrimary(),n=i=>o.jsx(t.MenuItem,{value:i,children:i},i),s=Object.keys(e).map(i=>n(e[i].formatType));return s.push(n(l.NumberFormat.Type.Custom)),s},[]),D=r.useCallback(e=>{const n=e.target.value;F(n);const s=l.NumberFormat.Styles.lookupDefault(n);s&&h(s)},[]),M=r.useMemo(()=>{const e=y();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:a}})},[C,a,y]);return o.jsx(t.b4,{title:"Number Format",options:b,onDone:c,onOption:e=>g(e),onValidateOption:w,defaultOption:p,cancelOption:m,autoFocusSel:".autoFocus",sx:{width:"580px",...k},...S,children:o.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[o.jsxs(t.FormControl,{sx:{minWidth:135},size:"small",children:[o.jsx(t.InputLabel,{children:"Category"}),o.jsx(t.Select,{value:C,label:"Category",onChange:D,sx:{backgroundImage:`linear-gradient(${t.alpha("#fff",t.$n(5))}, ${t.alpha("#fff",t.$n(5))})`},children:I})]}),o.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:o.jsx(t.TextField,{label:"Code",onFocus:e=>{O||e.target?.select(),N(!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(${t.alpha("#fff",t.$n(5))}, ${t.alpha("#fff",t.$n(5))})`}}},value:a,onChange:P,onKeyDown:$,onContextMenu:e=>{e.stopPropagation()}})}),o.jsxs(t.Box,{children:[o.jsx(t.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),o.jsx(t.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:M.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=T,exports.default=T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";var l=Object.create;var m=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var S=(e,t,r,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of d(t))!u.call(e,s)&&s!==r&&m(e,s,{get:()=>t[s],enumerable:!(c=p(t,s))||c.enumerable});return e};var i=(e,t,r)=>(r=e!=null?l(h(e)):{},S(t||!e||!e.__esModule?m(r,"default",{value:e,enumerable:!0}):r,e));/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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"});let a=null;const g={reactUrl:"https://esm.sh/react@19.1.0",reactJsxTransform:"https://esm.sh/react@19.1.0/jsx-runtime",reactDomUrl:"https://esm.sh/react-dom@19.1.0",reactDomUrlClient:"https://esm.sh/react-dom@19.1.0/client"};exports.resolveDependencies=e=>(e={...e,...g},a||(console.log("SheetXL: Resolving dependencies with:",e),a=(async()=>{const t=e.reactUrl,r=e.reactDomUrl,c=e.reactDomUrlClient,s=e.reactJsxTransform;if(document.querySelector('script[type="importmap"]'))console.warn("SheetXL: Import map already exists. Skipping injection.");else{const o=document.createElement("script");o.type="importmap",o.textContent=JSON.stringify({imports:{react:t,"react/jsx-runtime":s,"react-dom":r,"react-dom/client":c}}),document.head.appendChild(o),console.log("SheetXL: Import map injected:",o.textContent)}await new Promise(o=>setTimeout(o,0));const n=await Promise.all([import("react"),import("react/jsx-runtime"),import("react-dom"),import("react-dom/client"),Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let a=null;const g={reactUrl:"https://esm.sh/react@19.1.0",reactJsxTransform:"https://esm.sh/react@19.1.0/jsx-runtime",reactDomUrl:"https://esm.sh/react-dom@19.1.0",reactDomUrlClient:"https://esm.sh/react-dom@19.1.0/client"};exports.resolveDependencies=e=>(e={...e,...g},a||(console.log("SheetXL: Resolving dependencies with:",e),a=(async()=>{const t=e.reactUrl,r=e.reactDomUrl,c=e.reactDomUrlClient,s=e.reactJsxTransform;if(document.querySelector('script[type="importmap"]'))console.warn("SheetXL: Import map already exists. Skipping injection.");else{const o=document.createElement("script");o.type="importmap",o.textContent=JSON.stringify({imports:{react:t,"react/jsx-runtime":s,"react-dom":r,"react-dom/client":c}}),document.head.appendChild(o),console.log("SheetXL: Import map injected:",o.textContent)}await new Promise(o=>setTimeout(o,0));const n=await Promise.all([import("react"),import("react/jsx-runtime"),import("react-dom"),import("react-dom/client"),Promise.resolve().then(()=>require("./CalnqtYH48_x2rcI.cjs")).then(o=>o.StudioMUI)]);return console.log("SheetXL: Dependencies resolved:",n),{React:n[0],ReactJSXTransform:n[1],ReactDOM:n[2],ReactDOMClient:n[3],StudioMUI:n[4]}})(),a));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Je from "react";
|
|
2
2
|
import { createElement as $r, forwardRef as Ya, useRef as Xa, useImperativeHandle as Wa, useEffect as Ha } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z, jsxs as lt } from "react/jsx-runtime";
|
|
2
2
|
import k, { memo as es, useState as pe, useCallback as de, useLayoutEffect as rs, PureComponent as mt, Component as _t, isValidElement as ns } from "react";
|
|
3
|
-
import { M as os,
|
|
3
|
+
import { M as os, c as as, I as is, B as us, P as Su, R as ss, d as xt } from "./DFQvqk5r1uf_z0h_.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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,14 +1,14 @@
|
|
|
1
1
|
import { jsx as d, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as V, useState as p, useCallback as h } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as u, b as L, B as S, aO as A, aP as G } from "./DFQvqk5r1uf_z0h_.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
|
-
const M = ["Ok", "Cancel"], z = E((
|
|
11
|
-
const { value: a = null, context: t, onOption: c, onValidateOption: P, onDone: m, onUpdate: g, options: x = M, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx:
|
|
10
|
+
const M = ["Ok", "Cancel"], z = E((C) => {
|
|
11
|
+
const { value: a = null, context: t, onOption: c, onValidateOption: P, onDone: m, onUpdate: g, options: x = M, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx: R, ...v } = C, y = V(() => t?.getNames().findValidName("Range1"), []), i = V(() => {
|
|
12
12
|
if (!a) return !0;
|
|
13
13
|
}, []), [n, w] = p({ displayText: a?.getName() ?? y, errorText: null }), [l, D] = p({ displayValue: a?.getRanges() ?? t?.selection() ?? null, errorText: null }), [T, O] = p(!1), F = h(async (e) => !n.errorText && !l.errorText, [t]), b = u((e, s, r) => {
|
|
14
14
|
if (!s) {
|
|
@@ -31,7 +31,7 @@ const M = ["Ok", "Cancel"], z = E((v) => {
|
|
|
31
31
|
}, [t, a]), j = h((e) => {
|
|
32
32
|
D({ displayValue: e ?? null, errorText: null });
|
|
33
33
|
}, []);
|
|
34
|
-
return d(L, { title: (i ? "Define" : "Edit") + " Range", options: x, onOption: b, onValidateOption: F, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...
|
|
34
|
+
return d(L, { title: (i ? "Define" : "Edit") + " Range", options: x, onOption: b, onValidateOption: F, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...R }, ...v, children: k(S, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), range: "flex", flexDirection: "column" }, children: [d(A, { formName: "name", defaultInput: y, value: n.displayText, onChangeInput: B, onValidate: I, onFocus: (e) => {
|
|
35
35
|
T || e.target?.select(), O(!0);
|
|
36
36
|
} }), d(G, { formName: "range", value: l.displayValue, onChangeInput: j, resolvedAddress: t.getNames().getRanges.bind(t.getNames()), onFocus: (e) => {
|
|
37
37
|
T || e.target?.select(), O(!0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
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.
|
|
@@ -13,7 +13,7 @@ const i = { reactUrl: "https://esm.sh/react@19.1.0", reactJsxTransform: "https:/
|
|
|
13
13
|
e.type = "importmap", e.textContent = JSON.stringify({ imports: { react: n, "react/jsx-runtime": a, "react-dom": s, "react-dom/client": c } }), document.head.appendChild(e), console.log("SheetXL: Import map injected:", e.textContent);
|
|
14
14
|
}
|
|
15
15
|
await new Promise((e) => setTimeout(e, 0));
|
|
16
|
-
const o = await Promise.all([import("react"), import("react/jsx-runtime"), import("react-dom"), import("react-dom/client"), import("./
|
|
16
|
+
const o = await Promise.all([import("react"), import("react/jsx-runtime"), import("react-dom"), import("react-dom/client"), import("./DFQvqk5r1uf_z0h_.mjs").then((e) => e.b7)]);
|
|
17
17
|
return console.log("SheetXL: Dependencies resolved:", o), { React: o[0], ReactJSXTransform: o[1], ReactDOM: o[2], ReactDOMClient: o[3], StudioMUI: o[4] };
|
|
18
18
|
})(), r));
|
|
19
19
|
export {
|