@sheetxl/studio-mui 0.6.11 → 0.6.13
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/{BSvsMgB3H4B0xPda.cjs → B4mLAshMAQ_X49pT.cjs} +2 -2
- package/browser/cjs/{Ctx4ZIqNnlm0-3mu.cjs → BdegKnGo6Ly8N_hl.cjs} +1 -1
- package/browser/cjs/{R10YCGYxKY4kjzJl.cjs → Bdo6VXOLdVJ_J9UJ.cjs} +5 -5
- package/browser/cjs/{Cxe156EXOARhhR5j.cjs → BmFm-mwEL0lM-EIr.cjs} +1 -1
- package/browser/cjs/{D4v9fvs_6yA4xOQd.cjs → CNCk3LguJz3MRNLt.cjs} +2 -2
- package/browser/cjs/{rLmaAeAwi0EO7HAp.cjs → CZeft7xa-9hWJqKd.cjs} +3 -3
- package/browser/cjs/{DcqkEl49eLdpjRiH.cjs → DAeptI9VUtphEjzc.cjs} +1 -1
- package/browser/cjs/{DzUiVA1Ca2k-tCDH.cjs → DDpFaSLE4ely9qiR.cjs} +2 -2
- package/browser/cjs/{CfT2CEOLlhFLn0t3.cjs → DIW1zQKBgj0Dts6W.cjs} +2 -2
- package/browser/cjs/{_JFrRjH4em_qMvcy.cjs → DR07wFczGnpHpuZd.cjs} +2 -2
- package/browser/cjs/{v_pcA1TooWbzImY5.cjs → Y-MYxWzG9XRfTIWI.cjs} +1 -1
- package/browser/cjs/{BBBvXsvZhLgSqZNk.cjs → aRfyZTk5TJWBZZ7A.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{C1_z147Gjl1Zesw9.mjs → 5bkTdll8AcScifeU.mjs} +1 -1
- package/browser/esm/{bBhoXacT6w7HfKrE.mjs → 7WpJPANPdcZela-1.mjs} +2 -2
- package/browser/esm/{Rb1Pxn6UVOSOCM2w.mjs → BBVHTpfZFsAOWfT3.mjs} +1 -1
- package/browser/esm/{BQ-6gxTFwCGDYAyE.mjs → BXoKAUGC-7T4FeAX.mjs} +2 -2
- package/browser/esm/{gjdORpjyDLONRrqI.mjs → BsB4a_M0lU2gWn0H.mjs} +1 -1
- package/browser/esm/{BjrxQ8ayARGuy4Na.mjs → CENQG5azyd2UZi2f.mjs} +713 -713
- package/browser/esm/{BwnoyH0CHNe7vNCI.mjs → CLZlBO5jalpVJHHE.mjs} +1 -1
- package/browser/esm/{twFQzQkSGYrnkiBL.mjs → CMN87KRTnMNVkZDF.mjs} +2 -2
- package/browser/esm/{t475Bsje1XlSObvp.mjs → Ck3bm01sA7yL1q9n.mjs} +2 -2
- package/browser/esm/{qR9cLFUTo7EsaMOF.mjs → CqsMigLgsrGziIgu.mjs} +3 -3
- package/browser/esm/{DYTXYx5ZA1TP5Oyq.mjs → DZaNeENvdKiQAYDu.mjs} +2 -2
- package/browser/esm/{CmHfEjWLPuiA3VoA.mjs → aOos7k3RSDREPyI7.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{DuwSZB7sC53vsrOv.mjs → BH4H5fLpCSIR9BBR.mjs} +1 -1
- package/node/esm/{BRvede6q1RS-tV7I.mjs → BHe3YReVzWMU0pD-.mjs} +1 -1
- package/node/esm/{qQDEISio0hvWk5Ti.mjs → BOhNKGhp3PWLXuPF.mjs} +1 -1
- package/node/esm/{BwYoiAGrXUMYTT6C.mjs → BgfbynvKhviYyNQw.mjs} +1 -1
- package/node/esm/{DSdhIAo7VPb4M3-Q.mjs → CLYghqoZiTVzcLyz.mjs} +1 -1
- package/node/esm/{B-qK-3UHgv6Eg1am.mjs → Daqld8j6RwsezMuT.mjs} +1 -1
- package/node/esm/{BsLOtrgn8geSSe4y.mjs → Dn-0kjhqGv57mLov.mjs} +1 -1
- package/node/esm/{DKg0TuxCg7QCEAE_.mjs → Ktf8W2iGaFIZ_fVu.mjs} +1 -1
- package/node/esm/{Bwh9njUvNl0ttDuA.mjs → NZhxiKZBb9sp6WUN.mjs} +1 -1
- package/node/esm/{BrRpZiTdCkp6XLJD.mjs → eNU_hqsGuEOHuZ7Z.mjs} +1 -1
- package/node/esm/index.mjs +684 -684
- package/package.json +8 -8
|
@@ -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.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.13
|
|
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("./Bdo6VXOLdVJ_J9UJ.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,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.13
|
|
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.
|