@sheetxl/studio-mui 0.5.0 → 0.6.0
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/{_NtlpOXkY0eeCqk8.cjs → 43WVCieJGyZnWnsP.cjs} +1 -1
- package/browser/cjs/{BiYkHtkogY2f1SFE.cjs → BemoYf8lLkgLbXGY.cjs} +2 -2
- package/browser/cjs/{CrLQm8ZDlZXhnWLg.cjs → BnHtrJ3CbwxsGDv4.cjs} +2 -2
- package/browser/cjs/{Be02_cqPXUeqtNaR.cjs → BouHQs0EXo61jVEn.cjs} +5 -5
- package/browser/cjs/{Dqqsjk46AEXC7yiA.cjs → BrNiBYnmrklRGtQi.cjs} +2 -2
- package/browser/cjs/{BiUaipP4N10jRaET.cjs → Bw8f_aHw0lSvQz2_.cjs} +1 -1
- package/browser/cjs/{C62HtSbjnghol1e4.cjs → CTXcyhSEd_uw6ULf.cjs} +3 -3
- package/browser/cjs/{FhzwayhP20DjzZlD.cjs → CVLoH1r8gD4y-n0N.cjs} +1 -1
- package/browser/cjs/{DMloShy0X-kpJkXJ.cjs → C_6_naXiJiN280yN.cjs} +1 -1
- package/browser/cjs/{B78aEcVrJ-SnZFcs.cjs → D3cJi3CiKnsKjJmr.cjs} +2 -2
- package/browser/cjs/{p1Lt0czOUb7qlyps.cjs → DCgHF4HcgbO_kjud.cjs} +2 -2
- package/browser/cjs/{DUDZDudQMtZ3xMr1.cjs → Dh9-_LE2REFsgq2o.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{a5JiMIicXxdjv8DF.mjs → B1dgxRQVSAr4UJSW.mjs} +1 -1
- package/browser/esm/{XklfffGYEvKxiJFt.mjs → Bs9wbYZtXbLnt5KR.mjs} +3 -3
- package/browser/esm/{DSRwk-IstIs8krWp.mjs → BwUFAgvqv0m4DU-2.mjs} +2 -2
- package/browser/esm/{CNEiEOSFGt41rq5c.mjs → CAG7pdkm5bY1EwE0.mjs} +2 -2
- package/browser/esm/{CnsDR3llqJ6OXuHA.mjs → CFil4WFTICJErTS1.mjs} +2 -2
- package/browser/esm/{D9YsivMX9UpQD3Tq.mjs → CgJb_UImgUnt6C4O.mjs} +5 -5
- package/browser/esm/{OsG_dVtrc291G8Py.mjs → D5jlFpTkRJHMHC3k.mjs} +1 -1
- package/browser/esm/{DQUanl6vs3HZlKEz.mjs → DA96gFcw_pqof9Ev.mjs} +2 -2
- package/browser/esm/{vQyRjFj4Hrxk7Ol8.mjs → DEKPj1MeG5jbflnK.mjs} +2 -2
- package/browser/esm/{B9-iHBZqMUP68NBY.mjs → DLXMRSlCKKJcOX2d.mjs} +1 -1
- package/browser/esm/{Wsqfd4Hbdl4XpBiB.mjs → DPd_qn1l5D_ok6Ts.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{D6FZi0mMGFOkbUgx.mjs → tUDkDt0IO5p-OBAK.mjs} +1 -1
- package/node/esm/{OgKvnItKB5W5QN0F.mjs → BHXvy0oxgCzfnIC5.mjs} +1 -1
- package/node/esm/{KDKNDXQfdhopYipZ.mjs → CHU43UW-mnyFqHOm.mjs} +1 -1
- package/node/esm/{CM_x1xQHvJ1H5JUm.mjs → CQL1F9kduEp9h4IY.mjs} +1 -1
- package/node/esm/{B37wjYkAO8WoDwX7.mjs → CVlRRW3QIr6nPK-f.mjs} +1 -1
- package/node/esm/{BIgV2fLm2ke7ljif.mjs → CqsH4bN9NmsEaNKl.mjs} +1 -1
- package/node/esm/{BK0JI6TSNpQkF_EM.mjs → CvbFgZjkxSCAkAQy.mjs} +1 -1
- package/node/esm/{DIA8VExkt__JHDIg.mjs → D9ekdgfqTj4aGhva.mjs} +1 -1
- package/node/esm/{DkBFIJfcm5buIsJo.mjs → DGCh_qMmpEdV3YM6.mjs} +1 -1
- package/node/esm/{CAm2ZwX_CNcZ9vel.mjs → DH-1_LQfKzeOixYD.mjs} +1 -1
- package/node/esm/{C1zILP0G8K_XFihH.mjs → HX-o3esXt1sgPc4k.mjs} +1 -1
- package/node/esm/index.mjs +5 -5
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.0
|
|
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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.0
|
|
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("./
|
|
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("./BouHQs0EXo61jVEn.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,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.0
|
|
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"),t=require("react"),r=require("@mui/material"),k=require("@sheetxl/utils-react"),D=require("@sheetxl/utils-mui"),T=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),k=require("@sheetxl/utils-react"),D=require("@sheetxl/utils-mui"),T=require("./BouHQs0EXo61jVEn.cjs"),y=["Ok","Cancel"],b=t.memo(x=>{const{tableOptions:a,context:c,onOption:u,onValidateOption:N,onDone:p,options:d=y,defaultOption:l=d?.[0],cancelOption:s="Cancel",sx:O,...h}=x,[m,f]=t.useState(!1),[o,C]=t.useState(()=>a?.hasHeader??!1),[i,j]=t.useState(()=>a?.ranges??null),q=k.useCallbackRef(e=>{const g={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),p?.({option:e,tableOptions:g})},[p,u,l,s,o,i,a]),S=t.useCallback(async(e,g)=>null,[]);return n.jsx(D.OptionsDialog,{title:"Insert Table",options:d,onDone:q,onValidateOption:S,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...O},...h,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(T.RangeInput,{formName:"range",value:i,onChangeInput:e=>j(e),resolvedAddress:c.getNames().getRanges.bind(c.getNames()),onFocus:e=>{m||e.target?.select(),f(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>C(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
|