@sheetxl/studio-mui 0.3.3 → 0.3.5
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/4qy63Boa4nvdxyjo.cjs +6 -0
- package/browser/cjs/{D69p4DRnZE5Oa52x.cjs → AQ9Vi-Cv6JK-IezR.cjs} +1 -1
- package/browser/cjs/{YpWYrg3Eysqtr9aZ.cjs → B13OXuZsTC4RULMo.cjs} +1 -1
- package/browser/cjs/BHJSCG4oU8pmuDwm.cjs +12 -0
- package/browser/cjs/{DSNu0kgR1_X-nK_Z.cjs → Bav0cmsoPAA3a5yu.cjs} +2 -2
- package/browser/cjs/{DAyHZyXZGsDWfbyd.cjs → Bkl3DGri3E5UGuvv.cjs} +1 -1
- package/browser/cjs/{BH160EggM2K8qaSr.cjs → BlxVofqfnSMNcuv8.cjs} +1 -1
- package/browser/cjs/{BL1st_QvuF5m8AaJ.cjs → ByVL-_c8JG4yCwyg.cjs} +2 -2
- package/browser/cjs/{BlBsVySC7wICKf3b.cjs → CGHGrJD1KaYGPUWt.cjs} +2 -2
- package/browser/cjs/{Bh785l7WNSK7G3hU.cjs → CQXkduebOzsWYR7I.cjs} +1 -1
- package/browser/cjs/{C9TJkm0tBPD04idM.cjs → CauYni4UlnUOg2KD.cjs} +2 -2
- package/browser/cjs/CetwWGtSVR7MPQmq.cjs +6 -0
- package/browser/cjs/{BQyDL6TxMqPmkugH.cjs → D76n8Obon9BUBaN9.cjs} +1 -1
- package/browser/cjs/{scolQa-PxnIvyiDb.cjs → DAIK3n9uEZA5B3jo.cjs} +1 -1
- package/browser/cjs/{CPKZW7FfYlmkNYbE.cjs → DKTmOXPHU474-EAe.cjs} +2 -2
- package/browser/cjs/DQxMsOz7p1VlzGGr.cjs +11 -0
- package/browser/cjs/DSumeKv5upBoatXJ.cjs +12 -0
- package/browser/cjs/{CEx5ZMI8c4HYrxzW.cjs → Dold2uHEN8H8QsT-.cjs} +1 -1
- package/browser/cjs/{B0-aLTQ0dAlPdRnQ.cjs → K7lHFQm8oaMP4Fc7.cjs} +3 -3
- package/browser/cjs/{D8qPzQKLyGrgGg08.cjs → LLqao183uS5MMxF5.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/kEe9PBONC8-oT9AU.cjs +6 -0
- package/browser/cjs/{CP_eU6V1jkcP4WtQ.cjs → p8j2cCUulAy7yD2q.cjs} +2 -2
- package/browser/cjs/q9JmnJDMYsSf7UfZ.cjs +6 -0
- package/browser/cjs/wwocjd0UfaRLBBMZ.cjs +6 -0
- package/browser/cjs/zAZ0LJZMPXeu6JSh.cjs +87 -0
- package/browser/esm/{BeMVD9uqSXo5o9U7.mjs → B5O5PCrKRZ4DUAH5.mjs} +13 -13
- package/browser/esm/B89QkSJt5Nra70ba.mjs +19838 -0
- package/browser/esm/{5uqs7KjiX3pi6cd5.mjs → BRJgzXA_m_2aKWbd.mjs} +10 -10
- package/browser/esm/{C8eXD0cT7ZPGYNCl.mjs → BYUh5NiLu-E5n_2A.mjs} +21 -20
- package/browser/esm/{B9IRFHtuYz6_J4Sj.mjs → Bx8dhDDGV4fnPcL4.mjs} +8 -8
- package/browser/esm/{DpJqkBHKECEClAah.mjs → C2gkPo-K972JVp5g.mjs} +6 -6
- package/browser/esm/{BVjzMl2EkoD1ceqn.mjs → CEvGwR40Y6Ef-WDe.mjs} +7 -7
- package/browser/esm/{BLiRvSBEJD-6dWH0.mjs → Cb9SB2mI9VqoMLgo.mjs} +1 -1
- package/browser/esm/{BIQXdDApQqsa7WWH.mjs → CsT1vXKI_o6hLmzM.mjs} +1 -1
- package/browser/esm/D0WM4vskQ31-MkSX.mjs +1467 -0
- package/browser/esm/{QNCUQO7a-oixacNG.mjs → D5FRlmQmwf6Y4j_G.mjs} +1 -1
- package/browser/esm/{0qppnWkLyeMGOizg.mjs → DEorp4Rd9a565r_h.mjs} +1 -1
- package/browser/esm/{q1cTyqrb2yKNSDq5.mjs → DHvI-gSNOpEkZS0_.mjs} +170 -169
- package/browser/esm/{Dy7xNyqd4jfUcj2t.mjs → DK4TrH-nckKO9Q9L.mjs} +1 -1
- package/browser/esm/DMOlhSnOh4hHXiw0.mjs +52 -0
- package/browser/esm/{B1fKMAH-vx3TJ0ii.mjs → DQwg0nFQOuoWa9vC.mjs} +1 -1
- package/browser/esm/{BXvDIYhOIHqmZQQo.mjs → DVEcYvO4EkDBk4FX.mjs} +1 -1
- package/browser/esm/{CE3LjR3RfccnMUQt.mjs → DdsrrZg_d16qXBaF.mjs} +13 -13
- package/browser/esm/{BCiGYy5wMbcNSF3g.mjs → DhJgaHDvhGW9Q-Jd.mjs} +1 -1
- package/browser/esm/{PbEXrCdkQc02gfVZ.mjs → Dr-hrT0HVZs3fkdF.mjs} +10 -10
- package/browser/esm/{DTW06ga7BIWfkpc3.mjs → Drjhq-zlZ3HTK_ZI.mjs} +11 -10
- package/browser/esm/{CTdZQdi5BoNPu7rZ.mjs → Dw7dYD6MrvZb3WPh.mjs} +65 -65
- package/browser/esm/{DJVGX60ly4BfiFse.mjs → DzW551wAkGdUKn1f.mjs} +44 -43
- package/browser/esm/{DrzfnYtbTkZ0Vztm.mjs → XSaSkbiadpjvNPF-.mjs} +2 -2
- package/browser/esm/index.mjs +74 -73
- package/browser/esm/{B0k5xuPgYO9B-vto.mjs → q-qojAI33CqmRx77.mjs} +16 -16
- package/licenses/dependencies.txt +156 -178
- package/node/esm/{cT4-HbwV7TBlRjja.mjs → 0VUK_26rxW-1p-no.mjs} +276 -275
- package/node/esm/{BiiNcUkTIcWxOabS.mjs → B4Eo0tFRg7GybYQq.mjs} +2 -2
- package/node/esm/B6na2FpIb2N8_BII.mjs +25 -0
- package/node/esm/{tk69oRoeZHf4vk1z.mjs → BCqh-sztmdgZm9pd.mjs} +13 -13
- package/node/esm/{fENiUIb3u1Oy7Amv.mjs → BNhJrLEKwde0o2dg.mjs} +8 -8
- package/node/esm/{Cd5wE06_wa41Z6Wt.mjs → BQWO9jQkGVXLYnCK.mjs} +12 -12
- package/node/esm/{BvOnjWMz5o3z-qWe.mjs → BUDeEhnsn9-yrQlE.mjs} +1 -1
- package/node/esm/{CZlpZhqzgcRkv_bX.mjs → BXZpU4qRYF5maAg0.mjs} +9 -9
- package/node/esm/{D4ydLNNfUH8D41A7.mjs → BexDrSYf11he63De.mjs} +1 -1
- package/node/esm/{BnbhKW27rQ185mOb.mjs → BiU1UyUrEkNS9WeH.mjs} +2 -2
- package/node/esm/{Br_lQeehvACsDkzu.mjs → C53eiTE5QbclOU-x.mjs} +13 -12
- package/node/esm/{CBlVCA0uvCwlok1v.mjs → C63AwhK2bi3nQ-qh.mjs} +1 -1
- package/node/esm/{DbzTWKX0Q8SGsGA4.mjs → CJzMybL2SEMDl1Nw.mjs} +29 -29
- package/node/esm/{zQ0ozpm04cC2OG19.mjs → CKS2ltb4Bv_q8qad.mjs} +22 -22
- package/node/esm/{C0eiYtK0Lkx4fQGc.mjs → CZtyxHtVSnQOWUIw.mjs} +86 -85
- package/node/esm/{6L7TnSLCvI3zabFK.mjs → CvxTDOd3lLLowV8Z.mjs} +24 -23
- package/node/esm/DQv4OOMysHEA_ih5.mjs +553 -0
- package/node/esm/{CI3U9rEYT3a_Biw5.mjs → D_wrbdHZwcqLBmob.mjs} +1 -1
- package/node/esm/{BY1cZ8MXawge5drQ.mjs → Dca0ee8jhGRibBhk.mjs} +2 -2
- package/node/esm/{Ro_fz9s3_2DHfiE-.mjs → DpB6jqJa5heTZlo1.mjs} +1 -1
- package/node/esm/{CZA-oIez6io5vwv1.mjs → DrgN5wWkYF1hgIK3.mjs} +1 -1
- package/node/esm/DuL4Zvdz5hbTWC1z.mjs +308 -0
- package/node/esm/index.mjs +12885 -41674
- package/node/esm/{D6wjzUXEh-Q71uoB.mjs → mEXgu7-CAzFc23RE.mjs} +2 -2
- package/package.json +8 -8
- package/browser/cjs/BAGEDalcFwfUrDOV.cjs +0 -6
- package/browser/cjs/BMcvveT3JniLuWWw.cjs +0 -6
- package/browser/cjs/B_JRx-UyLNBI8Jr9.cjs +0 -6
- package/browser/cjs/BbCINWmJNJ1UoABX.cjs +0 -6
- package/browser/cjs/BdPTNgv6BQFiJXiH.cjs +0 -238
- package/browser/cjs/BgqUvcQGSrZtIsnp.cjs +0 -6
- package/browser/cjs/Bub0lBbzpOagYy-6.cjs +0 -12
- package/browser/cjs/BvV0mrFKi8cdsSFF.cjs +0 -6
- package/browser/cjs/BxCxDRRwMVIA9T0Q.cjs +0 -6
- package/browser/cjs/BxbbUhKRSHRfeoNL.cjs +0 -32
- package/browser/cjs/C3RxbodVdJ0MR0eY.cjs +0 -11
- package/browser/cjs/C4zc2Ll270E135fR.cjs +0 -6
- package/browser/cjs/CEkRIfptK2yyy4PS.cjs +0 -6
- package/browser/cjs/CGp4fzG2ZIsJmB72.cjs +0 -6
- package/browser/cjs/CT5f8xMCNbOhih6R.cjs +0 -12
- package/browser/cjs/CV6WjeLkZrGoM4SB.cjs +0 -6
- package/browser/cjs/CZA_Av5pG0M1RgJK.cjs +0 -6
- package/browser/cjs/Ca6YJnV2DBQrqx0b.cjs +0 -124
- package/browser/cjs/Ci7CqdgErq0IGcl5.cjs +0 -6
- package/browser/cjs/CmROQEOLO7s-rzZW.cjs +0 -6
- package/browser/cjs/Cnc0-T-tLmqyX7Mq.cjs +0 -6
- package/browser/cjs/Ct6nh7ILtW_PHbB3.cjs +0 -6
- package/browser/cjs/CtmTxxgCijL1ZuPa.cjs +0 -6
- package/browser/cjs/CyUaP6X--CmuILoU.cjs +0 -6
- package/browser/cjs/D598Bk4npBA6UESy.cjs +0 -6
- package/browser/cjs/D7asEaPB97YVwe1v.cjs +0 -6
- package/browser/cjs/D9lDObZe3CkEPPGI.cjs +0 -6
- package/browser/cjs/DFrTuKkfDctye00L.cjs +0 -7
- package/browser/cjs/DNquPukGj-6iRmmP.cjs +0 -13
- package/browser/cjs/DOXD9gLvRI-UN_9l.cjs +0 -6
- package/browser/cjs/DRhcrHz-whpKmHXb.cjs +0 -6
- package/browser/cjs/DdBygPkI15syG3qE.cjs +0 -1501
- package/browser/cjs/DrgfA0AIigevE5fO.cjs +0 -15
- package/browser/cjs/DyjUI4ZuHoE2UtYP.cjs +0 -6
- package/browser/cjs/Ou0ysDOtKXD_MCyi.cjs +0 -6
- package/browser/cjs/Tkr7WOf1Km7F6jc1.cjs +0 -6
- package/browser/cjs/Ui6MyVXLy4hSZZln.cjs +0 -6
- package/browser/cjs/ZSSSnynZ-cYurCZ4.cjs +0 -6
- package/browser/cjs/hDl6HNkylTvv-qT3.cjs +0 -6
- package/browser/cjs/tLWq6abRGIT6oIrd.cjs +0 -6
- package/browser/cjs/xS50A4hbimnAA3g8.cjs +0 -6
- package/browser/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
- package/browser/esm/91ZejdYNSNvEQyri.mjs +0 -43655
- package/browser/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
- package/browser/esm/BGfz8kkDQwuckxnU.mjs +0 -10
- package/browser/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
- package/browser/esm/BSB3k2C-vxhRI9pk.mjs +0 -5582
- package/browser/esm/Baiv07hkxLIkAcoq.mjs +0 -10
- package/browser/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
- package/browser/esm/BpfyDNlbLX4dOPvj.mjs +0 -24
- package/browser/esm/Bs0RJigDhPR1WzFT.mjs +0 -21
- package/browser/esm/BtP3Wpc2YRk8W2KZ.mjs +0 -12
- package/browser/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
- package/browser/esm/C7YTh7Sm32Nt_Kv5.mjs +0 -10
- package/browser/esm/CE1gssQmn8QAeBEI.mjs +0 -10
- package/browser/esm/CE3vBPdWXPf3M3h2.mjs +0 -51
- package/browser/esm/CJigh9OXZ04sdTLc.mjs +0 -1466
- package/browser/esm/CLHgqHwohIYlAAUF.mjs +0 -472
- package/browser/esm/CTuGnJMMNAi4EKiy.mjs +0 -10
- package/browser/esm/CUZmKq_NPR_OCibb.mjs +0 -10
- package/browser/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
- package/browser/esm/Cv8VSqfWEaftgiTH.mjs +0 -10
- package/browser/esm/CvJUNcDyz497Gxl7.mjs +0 -10
- package/browser/esm/D2OQwThnobBdsQ1x.mjs +0 -3934
- package/browser/esm/D73ljnqYKCXMdyPd.mjs +0 -1575
- package/browser/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
- package/browser/esm/Dsu3RRvUfCUWRZ6q.mjs +0 -10
- package/browser/esm/DxEtUnQEyEYWuqL7.mjs +0 -820
- package/browser/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
- package/browser/esm/JMr0jtu67PC8clGf.mjs +0 -10
- package/browser/esm/QhTxW6tFl-So20AH.mjs +0 -425
- package/browser/esm/_tXPsCW6hHTdj45y.mjs +0 -10
- package/browser/esm/bJWg5_Jxjizyivdn.mjs +0 -29
- package/browser/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
- package/browser/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
- package/browser/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
- package/node/esm/0CbEJyCpbWyFHdK1.mjs +0 -4002
- package/node/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
- package/node/esm/A5WewF_ecyRMfEW9.mjs +0 -80
- package/node/esm/B0rQMzpUsBE47H-k.mjs +0 -10
- package/node/esm/B3TBImEZBAbKsEAq.mjs +0 -10
- package/node/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
- package/node/esm/B8tFaB-W9JcM6xhy.mjs +0 -29
- package/node/esm/BGfz8kkDQwuckxnU.mjs +0 -10
- package/node/esm/BKb0zrP-OexxgIYb.mjs +0 -24
- package/node/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
- package/node/esm/BQBHsnvwWPo5kQhy.mjs +0 -10
- package/node/esm/BZTLlsc-NvE1_mTb.mjs +0 -555
- package/node/esm/Baiv07hkxLIkAcoq.mjs +0 -10
- package/node/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
- package/node/esm/BiVFM0O-4h4yY7oa.mjs +0 -10
- package/node/esm/Bq-gS5qqB1Jrllm2.mjs +0 -307
- package/node/esm/Bv7SpuMBfsaGEFxP.mjs +0 -16
- package/node/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
- package/node/esm/C0qF-AAqNGDMeSVO.mjs +0 -813
- package/node/esm/CE1gssQmn8QAeBEI.mjs +0 -10
- package/node/esm/CUZmKq_NPR_OCibb.mjs +0 -10
- package/node/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
- package/node/esm/CvJUNcDyz497Gxl7.mjs +0 -10
- package/node/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
- package/node/esm/DJtTsiROzkkD2wRx.mjs +0 -5642
- package/node/esm/DLEDFraKFWvZtfvX.mjs +0 -10
- package/node/esm/DNYPU79SNlXuHN8j.mjs +0 -10
- package/node/esm/DjhMNAleaI3hhcHG.mjs +0 -13
- package/node/esm/DtUFCYSrTGcBjdBN.mjs +0 -453
- package/node/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
- package/node/esm/EebvqIVFwWH3slRt.mjs +0 -14
- package/node/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
- package/node/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
- package/node/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
|
@@ -2,70 +2,71 @@ import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as ie, useRef as C, useState as b, useEffect as D, useLayoutEffect as ce, useMemo as pe } from "react";
|
|
3
3
|
import { DialogContent as de, Box as O, TextField as Y, InputAdornment as ue, Collapse as _, MenuItem as fe, FormControl as ge, InputLabel as me, Select as xe } from "@mui/material";
|
|
4
4
|
import { ArrowBack as he, ArrowUpward as Oe, ArrowForward as Ce, ArrowDownward as ye } from "@mui/icons-material";
|
|
5
|
-
import {
|
|
5
|
+
import { ICell as c, IRange as R } from "@sheetxl/sdk";
|
|
6
|
+
import { T as W, a4 as be, j as Te, a6 as ve, a7 as m, y as x, a8 as Re, Z as y, a9 as ke, aa as we, ab as Ie, ac as Se, a5 as k, ad as Ee, ae as Fe, A as De } from "./B89QkSJt5Nra70ba.mjs";
|
|
6
7
|
import { alpha as w } from "@mui/system";
|
|
7
8
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.5
|
|
9
10
|
*
|
|
10
11
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
12
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
13
|
*/
|
|
13
|
-
const $ = ie((
|
|
14
|
-
const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...A } =
|
|
14
|
+
const $ = ie((I) => {
|
|
15
|
+
const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...A } = I, [P, v] = b(() => ne(r, s));
|
|
15
16
|
D(() => {
|
|
16
17
|
v(ne(r, s));
|
|
17
18
|
}, [r, s]);
|
|
18
|
-
const
|
|
19
|
+
const K = W((u) => {
|
|
19
20
|
v(u.target.value), d?.(s[u.target.value]);
|
|
20
21
|
}, [d, s]), l = pe(() => Object.keys(s).map((u) => i(fe, { value: u, children: u }, u)), [s]);
|
|
21
|
-
return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value:
|
|
22
|
+
return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value: P, label: h, onChange: K, sx: { backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, ...A, children: l })] });
|
|
22
23
|
}), ee = { Workbook: "workbook", Sheet: "sheet" }, te = { enter: 140, exit: 140 }, oe = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...oe };
|
|
23
24
|
delete se.Values;
|
|
24
|
-
const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (
|
|
25
|
+
const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
|
|
25
26
|
const r = Object.keys(h);
|
|
26
27
|
for (let s = 0; s < r.length; s++) {
|
|
27
28
|
const d = r[s];
|
|
28
|
-
if (h[d] ===
|
|
29
|
+
if (h[d] === I) return d;
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
-
const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: A, onHide:
|
|
31
|
+
}, je = ie((I) => {
|
|
32
|
+
const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: A, onHide: P, onFindOrReplace: v, ...K } = I, l = C(null), u = C(null), j = C(null), V = C(null), N = C(null), H = C(null), z = (e, t) => {
|
|
32
33
|
t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
|
|
33
|
-
}, [U,
|
|
34
|
+
}, [U, F] = b(!1), [M, le] = b(!1), [f, B] = b(h), [X, L] = b(!1), [G, Z] = b(!1), [o, a] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), S = W(async (e, t, n, E) => {
|
|
34
35
|
if (!v) return;
|
|
35
36
|
const g = { ...o };
|
|
36
37
|
g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
|
|
37
|
-
const re = await v({ autoFocus:
|
|
38
|
+
const re = await v({ autoFocus: E, ...g });
|
|
38
39
|
L(re === 0);
|
|
39
40
|
}, [o, v]);
|
|
40
41
|
D(() => {
|
|
41
42
|
L(!1);
|
|
42
|
-
}, [o,
|
|
43
|
-
const
|
|
43
|
+
}, [o, M, f]);
|
|
44
|
+
const q = W((e, t) => {
|
|
44
45
|
if (e.keyCode === be.Enter) {
|
|
45
46
|
if (!o.findText) return;
|
|
46
|
-
let n = !0,
|
|
47
|
-
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (
|
|
47
|
+
let n = !0, E = !1;
|
|
48
|
+
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (E = !0), z(e, E ? H.current : N.current)) : z(e, n ? V.current : j.current), S(n, t, E, !1);
|
|
48
49
|
}
|
|
49
|
-
}, [o]),
|
|
50
|
+
}, [o]), J = C(null);
|
|
50
51
|
ce(() => {
|
|
51
52
|
a((e) => {
|
|
52
53
|
const t = { ...e };
|
|
53
|
-
t.findText = r && r.length > 0 ? r : e.findText ?? "",
|
|
54
|
+
t.findText = r && r.length > 0 ? r : e.findText ?? "", F(!0), s !== void 0 && (t.replaceText = s), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), T && (t.replaceOptions = { ...t.replaceOptions, ...T }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
|
|
54
55
|
const n = !(!T && s === void 0);
|
|
55
|
-
return n &&
|
|
56
|
-
}),
|
|
56
|
+
return n && B(n), t;
|
|
57
|
+
}), G || J.current?.focus();
|
|
57
58
|
}, [r, s, d, T]), D(() => {
|
|
58
|
-
f ? (o.findOptions.fields[0], c.Content.Values) :
|
|
59
|
+
f ? (o.findOptions.fields[0], c.Content.Values) : F(!0);
|
|
59
60
|
}, [f]), D(() => {
|
|
60
|
-
if (U && l.current && o.findText === l.current.value) return l.current === document.activeElement || l.current.contains(document.activeElement) ? (l.current?.select(), void
|
|
61
|
-
l.current?.select(),
|
|
61
|
+
if (U && l.current && o.findText === l.current.value) return l.current === document.activeElement || l.current.contains(document.activeElement) ? (l.current?.select(), void F(!1)) : void l.current.addEventListener("focus", () => {
|
|
62
|
+
l.current?.select(), F(!1);
|
|
62
63
|
}, { once: !0 });
|
|
63
64
|
}, [U, o]);
|
|
64
65
|
const [ae, { width: Q }] = Te();
|
|
65
|
-
return i(ve, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow:
|
|
66
|
-
|
|
67
|
-
}, PaperProps: { elevation:
|
|
68
|
-
if (e.key === "h" && e.ctrlKey)
|
|
66
|
+
return i(ve, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: J, onHide: P, onFocus: () => Z(!0), onBlur: () => {
|
|
67
|
+
Z(!1), L(!1);
|
|
68
|
+
}, PaperProps: { elevation: G ? 3 : 1 }, ...K, children: p(de, { dividers: !0, ref: ae, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
69
|
+
if (e.key === "h" && e.ctrlKey) B(!0), l.current?.contains(document.activeElement) && u.current?.focus();
|
|
69
70
|
else if (e.key === "f" && e.ctrlKey) l.current?.focus();
|
|
70
71
|
else if (e.key === "c" && e.altKey) a((t) => {
|
|
71
72
|
const n = { ...t };
|
|
@@ -83,10 +84,10 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
|
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
e.preventDefault();
|
|
86
|
-
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected:
|
|
87
|
+
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: M, onSelectToggle: (e) => {
|
|
87
88
|
le(e);
|
|
88
89
|
}, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(Re, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
|
|
89
|
-
|
|
90
|
+
B(e);
|
|
90
91
|
}, preventFocus: !0, label: "Toggle Replace", icon: x(i(ke, {})), shortcut: { key: f ? "F" : "H", modifiers: [y.Ctrl] } })] }), p(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(Y, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Q > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, inputProps: { draggable: !1, ref: l, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(ue, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
|
|
91
92
|
a((t) => {
|
|
92
93
|
const n = { ...t };
|
|
@@ -97,36 +98,36 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
|
|
|
97
98
|
const n = { ...t };
|
|
98
99
|
return n.findOptions.matchEntireCell = e, n;
|
|
99
100
|
});
|
|
100
|
-
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(
|
|
101
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(Ie, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
|
|
101
102
|
a((t) => {
|
|
102
103
|
const n = { ...t };
|
|
103
104
|
return n.findOptions.useRegex = e, n;
|
|
104
105
|
});
|
|
105
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(
|
|
106
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(Se, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => X ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => X ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
|
|
106
107
|
a((t) => {
|
|
107
108
|
const n = { ...t };
|
|
108
109
|
return n.findText = e.target.value, n;
|
|
109
110
|
});
|
|
110
|
-
}, onKeyDown: (e) =>
|
|
111
|
+
}, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
|
|
111
112
|
e.stopPropagation();
|
|
112
113
|
} }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
|
|
113
|
-
|
|
114
|
-
}, touchRippleRef:
|
|
115
|
-
|
|
116
|
-
}, touchRippleRef:
|
|
114
|
+
S(!1, !1);
|
|
115
|
+
}, touchRippleRef: j, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(he, {}) : i(Oe, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
|
|
116
|
+
S(!0, !1);
|
|
117
|
+
}, touchRippleRef: V, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Ce, {}) : i(ye, {})), disabled: !o.findText })] }), i(_, { in: f, timeout: te, onExit: () => {
|
|
117
118
|
l.current?.focus();
|
|
118
119
|
}, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(Y, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, inputProps: { ref: u, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
|
|
119
120
|
a((t) => {
|
|
120
121
|
const n = { ...t };
|
|
121
122
|
return n.replaceText = e.target.value, n;
|
|
122
123
|
});
|
|
123
|
-
}, onKeyDown: (e) =>
|
|
124
|
+
}, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
|
|
124
125
|
e.stopPropagation();
|
|
125
126
|
} }), i(m, { onSelectToggle: (e) => {
|
|
126
|
-
|
|
127
|
-
}, touchRippleRef:
|
|
128
|
-
|
|
129
|
-
}, touchRippleRef:
|
|
127
|
+
S(!0, !0);
|
|
128
|
+
}, touchRippleRef: N, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(Ee, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
|
|
129
|
+
S(!0, !0, !0);
|
|
130
|
+
}, touchRippleRef: H, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Fe, {})), disabled: !o.findText })] }) })] })] }), i(_, { in: M, timeout: te, onExit: () => {
|
|
130
131
|
l.current?.focus();
|
|
131
132
|
}, children: p(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(De, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Q >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i($, { label: "Within", value: o.scope, options: ee, onSelect: (e) => {
|
|
132
133
|
a((t) => {
|
|
@@ -146,7 +147,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
|
|
|
146
147
|
} })] })] }) })] }) });
|
|
147
148
|
});
|
|
148
149
|
export {
|
|
149
|
-
|
|
150
|
+
je as FindReplaceWindow,
|
|
150
151
|
ee as ScopeOptions,
|
|
151
|
-
|
|
152
|
+
je as default
|
|
152
153
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as ie, jsx as U } from "react/jsx-runtime";
|
|
2
2
|
import O, { isValidElement as qu, PureComponent as pe, Component as de, memo as Ku, useState as ft, useCallback as ct, useLayoutEffect as Gu } from "react";
|
|
3
3
|
import { Box as Ju } from "@mui/material";
|
|
4
|
-
import { g as mu, r as Qu,
|
|
4
|
+
import { g as mu, r as Qu, c as ve, a as Zu, u as es, C as ts } from "./B89QkSJt5Nra70ba.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.5
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,85 +1,86 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_ods65_1{display:block;margin:0;padding:0;line-height:normal}._sheetxl-reset_ods65_1 table,._sheetxl-reset_ods65_1 thead,._sheetxl-reset_ods65_1 tbody,._sheetxl-reset_ods65_1 tfoot,._sheetxl-reset_ods65_1 tr,._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:inline}html{color:initial}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_1j3lu_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;outline:none}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_1j3lu_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import {
|
|
2
|
+
import { LicenseManager as t } from "@sheetxl/sdk";
|
|
3
|
+
import { o as n, b3 as s, aA as m, a$ as r, b1 as l, aG as u, b5 as d, aO as C, b4 as b, b2 as B, b6 as i, aJ as S, aX as k, aH as p, be as T, aM as c, bf as F, aD as P, aP as W, aE as h, bc as y, aC as I, F as M, aw as g, aI as w, aY as f, bt as x, aB as A, bd as N, ai as O, aF as R, aS as v, aV as E, aW as V, a_ as z, aj as H, bs as U, bu as D, br as G, bh as L, bi as j, bb as Q, bj as Z, aL as _, bp as q, ba as J, b0 as K, bg as X, ak as Y, al as $, aQ as aa, ay as oa, az as ta, w as ea, b7 as na, b8 as sa, b9 as ma, aR as ra, aN as la, ax as ua, aK as da, aT as Ca, aZ as ba, bk as Ba, O as ia, W as Sa, bl as ka, N as pa, aU as Ta, bq as ca, bo as Fa, bn as Pa, t as Wa, bm as ha } from "./B89QkSJt5Nra70ba.mjs";
|
|
3
4
|
/**
|
|
4
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.5
|
|
5
6
|
*
|
|
6
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
8
9
|
*/
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
n as AppearanceCommandButton,
|
|
12
|
+
s as AutoColorPosition,
|
|
13
|
+
m as BorderCommandButton,
|
|
14
|
+
r as BorderPopupButton,
|
|
15
|
+
l as BorderStyleButton,
|
|
16
|
+
u as ClearCommandButton,
|
|
17
|
+
d as ColorButton,
|
|
18
|
+
C as ColorCommandButton,
|
|
19
|
+
b as ColorPanel,
|
|
20
|
+
B as ColorPanelType,
|
|
21
|
+
i as ColorPopupButton,
|
|
22
|
+
S as DeleteCellsCommandButton,
|
|
23
|
+
k as DocThemeCommandButton,
|
|
24
|
+
p as FillCommandButton,
|
|
25
|
+
T as FilterColumnMenu,
|
|
25
26
|
c as FilterCommandButton,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
F as Filters,
|
|
28
|
+
P as FindCommandButton,
|
|
29
|
+
W as FontFamilyCommandButton,
|
|
30
|
+
h as FontSizeCommandButton,
|
|
31
|
+
y as FormulaBar,
|
|
32
|
+
I as FreezeCommandButton,
|
|
33
|
+
M as HelpCommandButton,
|
|
34
|
+
g as HorizontalAlignCommandButton,
|
|
35
|
+
w as InsertCellsCommandButton,
|
|
36
|
+
f as InsertImageCommandButton,
|
|
37
|
+
x as InsertScriptCommandButton,
|
|
38
|
+
t as LicenseManager,
|
|
39
|
+
A as MergeCommandButton,
|
|
40
|
+
N as NamedCollectionEditor,
|
|
41
|
+
O as NamedInput,
|
|
42
|
+
R as NumberFormatCommandButton,
|
|
43
|
+
v as PasteCommandButton,
|
|
44
|
+
E as PresetCellStylesCommandButton,
|
|
45
|
+
V as PresetTableStylesCommandButton,
|
|
46
|
+
z as QuickFormulaSumCommandPopupButton,
|
|
47
|
+
H as RangeInput,
|
|
48
|
+
U as RunScriptCommandButton,
|
|
49
|
+
D as ScriptEditorToolbar,
|
|
50
|
+
G as ScriptWorkspace,
|
|
51
|
+
L as SheetTab,
|
|
52
|
+
j as SheetTabMenu,
|
|
52
53
|
Q as SheetZoomScale,
|
|
53
54
|
Z as SheetsAllMenu,
|
|
54
55
|
_ as SortFilterCommandButton,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
56
|
+
q as StandaloneWorkbook,
|
|
57
|
+
J as StatusBar,
|
|
58
|
+
K as StyledStrokeIcon,
|
|
59
|
+
X as TableStyleCanvasPreview,
|
|
60
|
+
Y as TableStyleOptionsPanel,
|
|
61
|
+
$ as TableStylePreview,
|
|
62
|
+
aa as TextEffectsCommandButton,
|
|
63
|
+
oa as TextOverflowCommandButton,
|
|
64
|
+
ta as TextRotateCommandButton,
|
|
65
|
+
ea as ThemeMode,
|
|
66
|
+
na as ThemeSelectButton,
|
|
67
|
+
sa as ThemeSelectPanel,
|
|
68
|
+
ma as ThemeSelectPopupButton,
|
|
69
|
+
ra as UnderlineCommandButton,
|
|
70
|
+
la as UndoRedoCommandButton,
|
|
71
|
+
ua as VerticalAlignCommandButton,
|
|
72
|
+
da as ViewGridLinesCommandButton,
|
|
73
|
+
Ca as ViewHeadingsCommandButton,
|
|
74
|
+
ba as WalkingCopyCommandButton,
|
|
75
|
+
Ba as WorkbookContextMenu,
|
|
76
|
+
ia as WorkbookElement,
|
|
77
|
+
Sa as WorkbookIO,
|
|
78
|
+
ka as WorkbookStrip,
|
|
79
|
+
pa as WorkbookTitle,
|
|
80
|
+
Ta as WorkbookViewCommandButton,
|
|
81
|
+
ca as _WorkbookIO,
|
|
82
|
+
Fa as createGridStyleFromMUITheme,
|
|
83
|
+
Pa as defaultNewWorkbook,
|
|
84
|
+
Wa as useResolvedThemeMode,
|
|
85
|
+
ha as useWorkbookCommands
|
|
85
86
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { memo as O, useState as r, useRef as
|
|
3
|
-
import { DialogContent as
|
|
4
|
-
import {
|
|
2
|
+
import { memo as O, useState as r, useRef as A, useReducer as E, useMemo as M } from "react";
|
|
3
|
+
import { DialogContent as W, Box as n } from "@mui/material";
|
|
4
|
+
import { af as k, j as V, ag as q, ah as G, T as f, a6 as J, ai as K, aj as Q, A as x, ak as U, al as X, f as y, y as b, v as w, am as S } from "./B89QkSJt5Nra70ba.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.5
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
10
10
|
*/
|
|
11
11
|
const ae = O((C) => {
|
|
12
|
-
const { title:
|
|
13
|
-
|
|
14
|
-
const o = T ?? c.context(), t = o.table(), [
|
|
15
|
-
|
|
12
|
+
const { title: N, onHide: v, autoFocusSel: R = ".range-input input", context: T, notifier: l = k, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = A(null), [Y, j] = E((e) => e + 1, 0), [B, { width: Z }] = V();
|
|
13
|
+
q(c);
|
|
14
|
+
const o = T ?? c.context(), t = o.table(), [H, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), P = M(() => t?.getName() ?? "", [t]);
|
|
15
|
+
G(o.table(), { onAnchorCoordsChange(e) {
|
|
16
16
|
I(o.getNames().getRanges(e.getRange()));
|
|
17
17
|
}, onProtectedChange(e) {
|
|
18
|
-
|
|
18
|
+
j();
|
|
19
19
|
} });
|
|
20
|
-
const
|
|
20
|
+
const z = f((e) => {
|
|
21
21
|
o?.table().setName(e);
|
|
22
|
-
}, [o]),
|
|
22
|
+
}, [o]), L = f((e) => {
|
|
23
23
|
o?.table().resize(e.at(0));
|
|
24
24
|
}, [o]);
|
|
25
25
|
let u = null;
|
|
26
|
-
return o.table() || (u = a("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: a("div", { children: "No table selected" }) })), a(
|
|
26
|
+
return o.table() || (u = a("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: a("div", { children: "No table selected" }) })), a(J, { title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: R, refWindow: h, onHide: v, onFocus: () => g(!0), onBlur: (e) => {
|
|
27
27
|
h?.current?.contains(e.relatedTarget) || g(!1);
|
|
28
|
-
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(
|
|
28
|
+
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(W, { dividers: !0, ref: B, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(K, { formName: "name", defaultInput: P, value: t?.getName() ?? "No table", onChangeInput: z, onValidate: (e) => {
|
|
29
29
|
t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
|
|
30
30
|
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
31
31
|
m || e.target?.select(), p(!0);
|
|
32
|
-
} }), a(
|
|
32
|
+
} }), a(Q, { formName: "range", value: H, onChangeInput: L, resolvedAddress: o.getNames().getRanges.bind(o.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
33
33
|
m || e.target?.select(), p(!0);
|
|
34
|
-
} })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [a(
|
|
34
|
+
} })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [a(x, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a(U, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
35
35
|
t.updateStyleOptions(e);
|
|
36
36
|
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
37
37
|
try {
|
|
@@ -51,7 +51,7 @@ const ae = O((C) => {
|
|
|
51
51
|
} catch (i) {
|
|
52
52
|
l.showError(i);
|
|
53
53
|
}
|
|
54
|
-
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(
|
|
54
|
+
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(x, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(y, { variant: w.Menuitem, command: d.getCommand("convertTableToRange"), commandState: t, icon: b(a(S, {})) }), a(y, { variant: w.Menuitem, commandState: t, command: d.getCommand("deleteTable"), icon: b(a(S, {})) })] })] })] }), u] }) });
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
57
|
ae as TableDetailsWindow,
|