@sheetxl/studio-vanilla 0.4.11 → 0.4.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/{DFspSkki779xN-Ey.cjs → -DkdmW3XP1ICRY25.cjs} +2 -2
- package/browser/cjs/B-KQs1Bf48nEucW7.cjs +7 -0
- package/browser/cjs/B1xnY7pDnbnNzknG.cjs +7 -0
- package/browser/cjs/B6A5w_aWHkigBc6j.cjs +7 -0
- package/browser/cjs/B9jxuOg1CXcmbi9J.cjs +110 -0
- package/browser/cjs/BAYjkr4LmsWRLoPr.cjs +7 -0
- package/browser/cjs/{DFtyXc7YFh9dIp74.cjs → BG2uV2RpxrfZyCuV.cjs} +1 -1
- package/browser/cjs/{DiBy6-IxLscyMW2y.cjs → BGCPG4Ip5ZijUQwi.cjs} +2 -2
- package/browser/cjs/BHTlBOQH-tPGoKgo.cjs +7 -0
- package/browser/cjs/BLBNzBvRVl9VLynf.cjs +7 -0
- package/browser/cjs/BLh6E7ER8mrM6vc_.cjs +7 -0
- package/browser/cjs/{CuTW2Pt-L5n-hNxV.cjs → BMaq_2S3IFrE5XeJ.cjs} +1 -1
- package/browser/cjs/BO7Pbclmywy-QCSV.cjs +13 -0
- package/browser/cjs/BPlthbyKkqCDjgxO.cjs +7 -0
- package/browser/cjs/BUGo0mXtBfFOmQXV.cjs +7 -0
- package/browser/cjs/BdHdXCz_K1djQgI4.cjs +7 -0
- package/browser/cjs/BfNkb1jDZkJf3wRA.cjs +7 -0
- package/browser/cjs/BfdQd2UEOlOc5iF3.cjs +7 -0
- package/browser/cjs/Bi9KvObgq_kJ_pjC.cjs +7 -0
- package/browser/cjs/BjPpJjnABDd3_WOZ.cjs +7 -0
- package/browser/cjs/BsSNzyN8kOGCKzso.cjs +7 -0
- package/browser/cjs/BtCcoaKKb8ZDnliG.cjs +7 -0
- package/browser/cjs/{DrlS1oz9Nea8Pm3j.cjs → BwHquG4sSd7OJjxz.cjs} +2 -2
- package/browser/cjs/{CjZbhk41S1qO_74G.cjs → BywNBbTVRYbgRbNI.cjs} +1 -1
- package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +7 -0
- package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +7 -0
- package/browser/cjs/{T4SHYo66xDT3l9JN.cjs → CBpt1PBR1VfBegko.cjs} +2 -2
- package/browser/cjs/CED8Az5C8GWF7pUT.cjs +7 -0
- package/browser/cjs/{BPTHTRDvNOVkUJGa.cjs → CbD4Wa5QLTdRCYcz.cjs} +2 -2
- package/browser/cjs/{C5FXOMLhAu_KTjVe.cjs → CbILz9Skl6lWf6yR.cjs} +1 -1
- package/browser/cjs/CoFQQqIzuvS9PM77.cjs +7 -0
- package/browser/cjs/{BlSFY6zLlebuejdV.cjs → CpDNo2Lhwr5ZHECs.cjs} +2 -2
- package/browser/cjs/{D3iOk-Q2tRdUeTcn.cjs → CsamfGfFsItvSgo_.cjs} +1 -1
- package/browser/cjs/Cx3kn5gBsQ-1bORi.cjs +7 -0
- package/browser/cjs/CxLvGnG44-qNI36G.cjs +7 -0
- package/browser/cjs/D-xyWit7jxctQCpR.cjs +7 -0
- package/browser/cjs/D4XQsK7d7DRctaOO.cjs +7 -0
- package/browser/cjs/D9rVEA1BdB0JZwhE.cjs +7 -0
- package/browser/cjs/DES2NmIRVZg-HXgs.cjs +7 -0
- package/browser/cjs/{BshvMtUxTJHj3JQN.cjs → DFxeLNhACFIHb0nv.cjs} +2 -2
- package/browser/cjs/DIv1SrLYeyVwcaxE.cjs +7 -0
- package/browser/cjs/DJ6L43osbaMzEV5K.cjs +7 -0
- package/browser/cjs/DMjLN_HDktNzzUB8.cjs +7 -0
- package/browser/cjs/DVPfPZCFjmYu3xyn.cjs +7 -0
- package/browser/cjs/DhSlaiQXxEOVtZkA.cjs +7 -0
- package/browser/cjs/{Dx-jp_LJxWbAScyA.cjs → Dh_dFnagz7dMZlGh.cjs} +1 -1
- package/browser/cjs/DpF6vgGka2d-RKkb.cjs +10 -0
- package/browser/cjs/{C7EZCTczsC-gkRcq.cjs → DtY0Jzlwnr_YKnV4.cjs} +2 -2
- package/browser/cjs/DwyyFI1Ix0uc0Qoz.cjs +7 -0
- package/browser/cjs/Dy5_viRzFls9rOzN.cjs +7 -0
- package/browser/cjs/GkINjQ8Te3GKi2mx.cjs +7 -0
- package/browser/cjs/aN3KCqswA1SdJIMq.cjs +7 -0
- package/browser/cjs/{BuWtGFX0HiBezGjw.cjs → hLJbgylpETByV4wc.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/qumqKlVHFx89iLeu.cjs +7 -0
- package/browser/cjs/{BAyEOOtO-9sHQQRW.cjs → rKZjTYQ0WpTriIv6.cjs} +2 -2
- package/browser/cjs/xjKotAOVt3JH36U7.cjs +7 -0
- package/browser/cjs/ymbPxio09Fw7I2BW.cjs +7 -0
- package/browser/esm/2P5dQT7wZToOh-n9.mjs +7 -0
- package/browser/esm/4GgcUVhUmQmiv9Ha.mjs +110 -0
- package/browser/esm/7_x68v6PpvRDox_Z.mjs +7 -0
- package/browser/esm/9icgSuuzXq6mlgM8.mjs +7 -0
- package/browser/esm/B354iAatN9y9AIIP.mjs +7 -0
- package/browser/esm/B5EVyoxm3aSlAnxN.mjs +7 -0
- package/browser/esm/BD8rE7MUxuHXsdcf.mjs +7 -0
- package/browser/esm/BGFWI1a1PmU8_hCE.mjs +7 -0
- package/browser/esm/BI6JAQCQx1V0F2aC.mjs +7 -0
- package/browser/esm/BIYg30d_9HaluFFz.mjs +7 -0
- package/browser/esm/BKL-uyBp_OE47lXd.mjs +7 -0
- package/browser/esm/BMwJCtLAYUW8wExX.mjs +13 -0
- package/browser/esm/BNOfK-lGWF2S8vQE.mjs +7 -0
- package/browser/esm/Ba433v6lQUMtECiY.mjs +7 -0
- package/browser/esm/BbZWfDW2LUyjqUDy.mjs +7 -0
- package/browser/esm/C238uBmZN1XXqMUb.mjs +7 -0
- package/browser/esm/C34whwRkHO0lhq4-.mjs +7 -0
- package/browser/esm/C6FEpAqSZoW5Hgte.mjs +7 -0
- package/browser/esm/COlW5ULL29SUKN1Z.mjs +7 -0
- package/browser/esm/CRyxOj2xPj9qe9LK.mjs +7 -0
- package/browser/esm/CVeyOpbAhaBhDRye.mjs +7 -0
- package/browser/esm/CVyVvtlJuCTn4MDh.mjs +7 -0
- package/browser/esm/CapeIfjWq-_BHMlE.mjs +7 -0
- package/browser/esm/CcQqGNgK2CsgNtuD.mjs +7 -0
- package/browser/esm/CdZSxrk3k1Lx6G8W.mjs +7 -0
- package/browser/esm/CdchvB_wAbv_6Whw.mjs +7 -0
- package/browser/esm/{Cc_VWd0wF5-39LsI.mjs → Cf8eDl3Tu5NAWWwG.mjs} +1 -1
- package/browser/esm/{BXUGsC1Mo3FP8vnW.mjs → Cfq9tttQlsKvfaCr.mjs} +2 -2
- package/browser/esm/{BDVJ7eOPpW5FnEAP.mjs → ClR6uLJoM-xKVYEc.mjs} +1 -1
- package/browser/esm/Cnl_e-EYkZ3CLbi2.mjs +7 -0
- package/browser/esm/CtRS2ZCPF7IH_mXe.mjs +7 -0
- package/browser/esm/{BUSR_OK5Qi6hRPfw.mjs → CuV-bwi1vcXAqFUY.mjs} +1 -1
- package/browser/esm/CwVE0qelO_xgf-l1.mjs +7 -0
- package/browser/esm/{CFFC0SNc24a0Dxnh.mjs → D1Dzlta8ZVy08ng6.mjs} +2 -2
- package/browser/esm/D1TjRQiHLWhpl-dl.mjs +7 -0
- package/browser/esm/D8BJ-y3ulgO_ezrj.mjs +10 -0
- package/browser/esm/{BlGoi1_x9rUMpWMd.mjs → DTDXNEbHVnnZONNL.mjs} +1 -1
- package/browser/esm/DTWfi8Dl-c2s5moT.mjs +7 -0
- package/browser/esm/DYVBXcu1r5KRLB-1.mjs +7 -0
- package/browser/esm/{BGpv6Kq7eBlJy43T.mjs → DZjWyWMvr2XHQrBg.mjs} +1 -1
- package/browser/esm/DhHK4QmASvgAq9Xy.mjs +7 -0
- package/browser/esm/{PS0cqYnlMVEGOQpI.mjs → DoFV2S6Su86IN5Ul.mjs} +2 -2
- package/browser/esm/Dq3ybkgattcCsF_4.mjs +7 -0
- package/browser/esm/DqWoZ4TjweoJWX3o.mjs +7 -0
- package/browser/esm/DtXxHirBm16ldE1l.mjs +7 -0
- package/browser/esm/DtuWZG6c_8vKRSdr.mjs +7 -0
- package/browser/esm/FBG8XXdIMd9PfUIo.mjs +7 -0
- package/browser/esm/Nh7JiwvF01PblHQ0.mjs +7 -0
- package/browser/esm/PVYiH9vBQM6rqXI4.mjs +7 -0
- package/browser/esm/U5-LDZQ0qkJ2Y-p8.mjs +7 -0
- package/browser/esm/XhQDWZu47oe6bwHh.mjs +7 -0
- package/browser/esm/_BjU6TtI-mQfFpfy.mjs +7 -0
- package/browser/esm/{Cq8D_M0jeHLcnRjg.mjs → gOUfyCw957TzcbNB.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/lmkbfs9sNc7f0oe5.mjs +7 -0
- package/browser/esm/{tFhROdVSw9KLQfUN.mjs → naa0kcRwxHEYGaQB.mjs} +2 -2
- package/browser/esm/qxOkQutRxmAi1vRh.mjs +7 -0
- package/browser/esm/tMSro0g2GM5BBTIH.mjs +7 -0
- package/cdn/assets/0e9wDKSn4SFxSmP5.js +27 -0
- package/cdn/assets/0j_nQmV1Bb0lJ6sB.js +472 -0
- package/cdn/assets/2mxiQm6dELsqQoX7.js +5624 -0
- package/cdn/assets/5XdpCWQ6AcxZ6oY1.js +10 -0
- package/cdn/assets/6JtXguBKwGj6dqfy.js +1577 -0
- package/cdn/assets/8U2WVdbZHYCBnd9L.js +23 -0
- package/cdn/assets/9-cIcj6CRJx5HTn9.js +10 -0
- package/cdn/assets/B-kFRtzNNkf4_SiP.js +1701 -0
- package/cdn/assets/B1Iys8a964LGNZKf.js +10 -0
- package/cdn/assets/B2RAJJJFkcaWUfUW.js +21 -0
- package/cdn/assets/BAzGoI9gE2G3F3on.js +637 -0
- package/cdn/assets/BBJxLS-wB_nXRnI2.js +10 -0
- package/cdn/assets/BDE7FUo2oiivrvBL.js +43 -0
- package/cdn/assets/BL6TUDSeou6wPejW.js +10 -0
- package/cdn/assets/BLqaorJ5Wl-1YOoy.js +3875 -0
- package/cdn/assets/BMiA9p1uOrwnooVT.js +10 -0
- package/cdn/assets/BNh9nSR83reiVMKt.js +90 -0
- package/cdn/assets/BQON-ToGsIBPrPkM.js +1371 -0
- package/cdn/assets/BUwNyHytF9St68tJ.js +10 -0
- package/cdn/assets/BVYDmdUGWvMG5gNK.js +241 -0
- package/cdn/assets/B_2bXmyji3Dr7LRM.js +50224 -0
- package/cdn/assets/BciokME96sykArSM.js +10 -0
- package/cdn/assets/BgnlshX157Ob6RLs.js +21 -0
- package/cdn/assets/BlYoycYtR-sUp0iC.js +27 -0
- package/cdn/assets/Bsa9-Itkf_SdDBM9.js +6481 -0
- package/cdn/assets/BwpBFv8Ks2ka07ch.js +10 -0
- package/cdn/assets/BxblmHGC7YxZcuak.js +10 -0
- package/cdn/assets/C-Z8wvIy20kJ7R-k.js +10 -0
- package/cdn/assets/C3EFzvmp0DcC_HAx.js +10 -0
- package/cdn/assets/C4vStn7wNlvrxdsp.js +10 -0
- package/cdn/assets/C5q0qaKi2eeDgoO8.js +10 -0
- package/cdn/assets/C9eQW5GKgPRmKKgJ.js +29 -0
- package/cdn/assets/CHTspRZD2v_dU_eV.js +22 -0
- package/cdn/assets/CKA4s2hlzSnrdWSD.js +10 -0
- package/cdn/assets/CMBDD1Mjde6UL5ep.js +84 -0
- package/cdn/assets/CR01MBraUPYPpwy4.js +36 -0
- package/cdn/assets/CT0d1P-Aav62lUvV.js +10 -0
- package/cdn/assets/CV8UjJPDVplXjK1E.js +49 -0
- package/cdn/assets/CrLrvmlJhYpNpXqR.js +10 -0
- package/cdn/assets/CsorxCiOoe7qX9j1.js +10 -0
- package/cdn/assets/CuNqTH3P8mCglRiz.js +10 -0
- package/cdn/assets/CwdMjMPFdIs8SAV0.js +1358 -0
- package/cdn/assets/D-5VYBO5_VEh6fEW.js +24 -0
- package/cdn/assets/DD3csu4pddGtMp3n.js +1468 -0
- package/cdn/assets/DFHruAftzuzBZ71r.js +393 -0
- package/cdn/assets/DHydjLSnijEgtpyU.js +10 -0
- package/cdn/assets/DPQqTIMsRLhMxPIy.js +820 -0
- package/cdn/assets/DUtu7r6CzW4dtW3E.js +50 -0
- package/cdn/assets/DXHirQMr483hJBil.js +58 -0
- package/cdn/assets/DXtbonLk2ESfF4Dh.js +10 -0
- package/cdn/assets/Dr5X-ng9wbwUWVr4.js +41 -0
- package/cdn/assets/DvFNLgeMJ9LdQROu.js +149 -0
- package/cdn/assets/Dvj7UEckqOBrgs9i.js +3947 -0
- package/cdn/assets/F6zW9Vj410C4yRVG.js +424 -0
- package/cdn/assets/Gz4u4ewyWfB-Pf-a.js +1703 -0
- package/cdn/assets/KDGtuIzSpkf1vsmH.js +10 -0
- package/cdn/assets/KtKlo5mM4kTTfFgi.js +46 -0
- package/cdn/assets/N3pWBoccPrTedAw-.js +12 -0
- package/cdn/assets/NTINjW8JjyZudT8s.js +13449 -0
- package/cdn/assets/R9RwlorPWfftoboH.js +2373 -0
- package/cdn/assets/Xwyp21e7L5fTeb_y.js +423 -0
- package/cdn/assets/XysyS9rk9tFdbzZh.js +2183 -0
- package/cdn/assets/f3_QXO8z0p-q4nJo.js +46 -0
- package/cdn/assets/quOP5QFyTT9soNIl.js +12 -0
- package/cdn/index.js +41 -37
- package/cdn/loader.js +1 -1
- package/package.json +3 -5
- package/browser/cjs/B0rdyyttE2Aibsag.cjs +0 -7
- package/browser/cjs/B2e7dDI-zKoqXpIW.cjs +0 -107
- package/browser/cjs/BplA5pDzOJpfTZuA.cjs +0 -7
- package/browser/cjs/CFcjX5-nVsgzdZ4F.cjs +0 -7
- package/browser/cjs/Db_Ew1r6yOMYylvA.cjs +0 -7
- package/browser/cjs/DgBn3aW39yjgm0X_.cjs +0 -7
- package/browser/cjs/SzxJv7OUs5ojl8gx.cjs +0 -7
- package/browser/cjs/vfUix5Di0Ro8tEID.cjs +0 -7
- package/browser/esm/B5kkStdEkTczERyM.mjs +0 -7
- package/browser/esm/B905wKzTtod-jbsD.mjs +0 -7
- package/browser/esm/BALnKy2Fp7fyk-lc.mjs +0 -7
- package/browser/esm/Bo_ZPRrOQrqOVHAF.mjs +0 -7
- package/browser/esm/BuURCm92KsyGHG9e.mjs +0 -7
- package/browser/esm/CGZ5MX7afzMxDkCe.mjs +0 -7
- package/browser/esm/CzmNwV9tfFYUp_gS.mjs +0 -7
- package/browser/esm/De6RPxc4p_jXLlT5.mjs +0 -7
- package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +0 -7
- package/browser/esm/DqXxZP6yKF4U1YfY.mjs +0 -7
- package/browser/esm/DtmE60AvstK9u0Ta.mjs +0 -107
- package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +0 -7
- package/browser/esm/QBGUD1XS5_pysBLL.mjs +0 -7
- package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +0 -7
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { a as c } from "./CR01MBraUPYPpwy4.js";
|
|
2
|
+
import { r as s } from "./BlYoycYtR-sUp0iC.js";
|
|
3
|
+
import { ac as m, s as B, B as M, F as S, T as E, a as C, P as O } from "./B_2bXmyji3Dr7LRM.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
|
+
*
|
|
7
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
|
+
*/
|
|
10
|
+
const V = ["Ok", "Cancel"], H = s.memo((F) => {
|
|
11
|
+
const { initialComments: P = null, onUpdateComments: d, context: T, onOption: g, onValidateOption: p, onDone: r, options: f = V, defaultOption: u = f?.[0], cancelOption: i = "Cancel", sx: k, ...w } = F, x = s.useMemo(() => {
|
|
12
|
+
const t = P ?? T?.()?.getComments();
|
|
13
|
+
let n = "";
|
|
14
|
+
if (t && t.content && t.content.runs) {
|
|
15
|
+
const e = t.content.runs;
|
|
16
|
+
for (let l = 0; l < e.length; l++) {
|
|
17
|
+
const a = e[l];
|
|
18
|
+
n += a?.text;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
22
|
+
}, []), [o, y] = s.useState(x), [b, j] = s.useState(!1), h = s.useCallback(async (t, n) => null, []), v = m(async (t) => {
|
|
23
|
+
const n = o === "" ? [] : o.split(`
|
|
24
|
+
`);
|
|
25
|
+
if (t !== i) {
|
|
26
|
+
const e = [];
|
|
27
|
+
for (let a = 0; a < n.length; a++) e.push({ text: n[a] });
|
|
28
|
+
d?.({ content: { runs: e } });
|
|
29
|
+
}
|
|
30
|
+
g?.(t, t === i, t === u), r?.();
|
|
31
|
+
}, [o, d, r, g, u, i]), D = m((t) => {
|
|
32
|
+
y(t.target.value), h(t.target.value, null);
|
|
33
|
+
}, [p]), I = m(async (t) => {
|
|
34
|
+
let n = await Promise.resolve(p?.(t));
|
|
35
|
+
try {
|
|
36
|
+
n !== !1 && (n = await h(o, t));
|
|
37
|
+
} catch {
|
|
38
|
+
}
|
|
39
|
+
return n ?? !0;
|
|
40
|
+
}, [p, o]);
|
|
41
|
+
return c.jsx(B, { title: (x ? "Edit" : "Insert") + " Comments", options: f, onDone: r, onOption: (t) => v(t), onValidateOption: I, defaultOption: u, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...k }, ...w, children: c.jsx(M, { sx: { paddingTop: (t) => t.spacing(1), paddingBottom: (t) => t.spacing(0), rowGap: (t) => t.spacing(1), display: "flex", flexDirection: "column" }, children: c.jsx(S, { sx: { paddingTop: (t) => t.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: c.jsx(E, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t) => {
|
|
42
|
+
b || t.target?.select(), j(!0);
|
|
43
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t) => t.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (t) => t.spacing(1.25), paddingBottom: (t) => t.spacing(0.75), backgroundImage: `linear-gradient(${C("#fff", O(5))}, ${C("#fff", O(5))})` } } }, value: o, onChange: D, onContextMenu: (t) => {
|
|
44
|
+
t.stopPropagation();
|
|
45
|
+
} }) }) }) });
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
H as CommentsDialog,
|
|
49
|
+
H as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { a } from "./CR01MBraUPYPpwy4.js";
|
|
2
|
+
import { r as o } from "./BlYoycYtR-sUp0iC.js";
|
|
3
|
+
import { av as L, ai as E, aw as O, ax as A, ac as u, V as M, G as V, B as n, ay as W, az as k, au as h, aA as G, aB as q, aC as f, ak as y, aD as b, aE as w } from "./B_2bXmyji3Dr7LRM.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
|
+
*
|
|
7
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
|
+
*/
|
|
10
|
+
const Y = o.memo((j) => {
|
|
11
|
+
const { title: S, onHide: C, autoFocusSel: v = ".range-input input", context: N, notifier: l = L, command: r, commands: c, ...R } = j, [T, d] = o.useState(!1), [g, m] = o.useState(!1), x = o.useRef(null), [J, D] = o.useReducer((e) => e + 1, 0), [F, { width: K }] = E();
|
|
12
|
+
O(r);
|
|
13
|
+
const s = N ?? r.context(), t = s.table(), [B, H] = o.useState(() => t ? s.getNames().getRanges(t.getRange()) : null), I = o.useMemo(() => t?.getName() ?? "", [t]);
|
|
14
|
+
A(s.table(), { onAnchorCoordsChange(e) {
|
|
15
|
+
H(s.getNames().getRanges(e.getRange()));
|
|
16
|
+
}, onProtectedChange(e) {
|
|
17
|
+
D();
|
|
18
|
+
} });
|
|
19
|
+
const P = u((e) => {
|
|
20
|
+
s?.table().setName(e);
|
|
21
|
+
}, [s]), z = u((e) => {
|
|
22
|
+
s?.table().resize(e.at(0));
|
|
23
|
+
}, [s]);
|
|
24
|
+
let p = null;
|
|
25
|
+
return s.table() || (p = a.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: a.jsx("div", { children: "No table selected" }) })), a.jsx(M, { ref: x, title: S ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: v, onHide: C, onFocus: () => d(!0), onBlur: (e) => {
|
|
26
|
+
x?.current?.contains(e.relatedTarget) || d(!1);
|
|
27
|
+
}, PaperProps: { elevation: T ? 3 : 1 }, ...R, children: a.jsxs(V, { dividers: !0, ref: F, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [a.jsxs(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: s.table() ? 1 : 0 }, children: [a.jsx(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a.jsx(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: a.jsxs(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a.jsx(W, { formName: "name", defaultInput: I, value: t?.getName() ?? "No table", onChangeInput: P, onValidate: (e) => {
|
|
28
|
+
t && t.getName().toLowerCase() === e.toLowerCase() || s?.getNames().validateName(e);
|
|
29
|
+
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
30
|
+
g || e.target?.select(), m(!0);
|
|
31
|
+
} }), a.jsx(k, { formName: "range", value: B, onChangeInput: z, resolvedAddress: s.getNames().getRanges.bind(s.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
32
|
+
g || e.target?.select(), m(!0);
|
|
33
|
+
} })] }) }) }), a.jsxs(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.jsx(h, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a.jsx(G, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
34
|
+
t.updateStyleOptions(e);
|
|
35
|
+
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
36
|
+
try {
|
|
37
|
+
t.setShowHeaders(e);
|
|
38
|
+
} catch (i) {
|
|
39
|
+
l.showError(i);
|
|
40
|
+
}
|
|
41
|
+
}, showTotalRow: t?.getShowTotals(), onShowTotalRowChange: (e) => {
|
|
42
|
+
try {
|
|
43
|
+
t.setShowTotals(e);
|
|
44
|
+
} catch (i) {
|
|
45
|
+
l.showError(i);
|
|
46
|
+
}
|
|
47
|
+
}, showFilterButton: t?.getFilter() ? t.getShowFilterButton() : null, onShowFilterButtonChange: (e) => {
|
|
48
|
+
try {
|
|
49
|
+
t.setShowFilterButton(e);
|
|
50
|
+
} catch (i) {
|
|
51
|
+
l.showError(i);
|
|
52
|
+
}
|
|
53
|
+
} }), a.jsx(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a.jsx(q, { table: t, styles: s.styles(), bodyStyle: s.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a.jsx(h, { orientation: "horizontal" }), a.jsxs(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a.jsx(f, { variant: b.Menuitem, command: c.getCommand("convertTableToRange"), commandState: t, icon: y(a.jsx(w, {})) }), a.jsx(f, { variant: b.Menuitem, commandState: t, command: c.getCommand("deleteTable"), icon: y(a.jsx(w, {})) })] })] })] }), p] }) });
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
Y as TableDetailsWindow,
|
|
57
|
+
Y as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
const e = { COMPLEX: { s: "Converts real and imaginary coefficients into a complex number", p: { realNum: { d: "is the real coefficient of the complex number" }, iNum: { d: "is the imaginary coefficient of the complex number" }, suffix: { d: "is the suffix for the imaginary component of the complex number", v: "i" } } }, IMABS: { s: "Returns the absolute value (modulus) of a complex number", p: { inumber: { d: "is a complex number for which you want the absolute value" } } }, IMAGINARY: { s: "Returns the imaginary coefficient of a complex number", p: { inumber: { d: "is a complex number for which you want the imaginary coefficient" } } }, IMARGUMENT: { s: "Returns the argument q, an angle expressed in radians", p: { inumber: { d: "is a complex number for which you want the argument" } } }, IMCONJUGATE: { s: "Returns the complex conjugate of a complex number", p: { inumber: { d: "is a complex number for which you want the conjugate" } } }, IMCOS: { s: "Returns the cosine of a complex number", p: { inumber: { d: "is a complex number for which you want the cosine" } } }, IMCOSH: { s: "Returns the hyperbolic cosine of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic cosine" } } }, IMCOT: { s: "Returns the cotangent of a complex number", p: { inumber: { d: "is a complex number for which you want the cotangent" } } }, IMCSC: { s: "Returns the cosecant of a complex number", p: { inumber: { d: "is a complex number for which you want the cosecant" } } }, IMCSCH: { s: "Returns the hyperbolic cosecant of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic cosecant" } } }, IMDIV: { s: "Returns the quotient of two complex numbers", p: { inumber1: { d: "is the complex numerator or dividend" }, inumber2: { d: "is the complex denominator or divisor" } } }, IMEXP: { s: "Returns the exponential of a complex number", p: { inumber: { d: "is a complex number for which you want the exponential" } } }, IMLN: { s: "Returns the exponential of a complex number", p: { inumber: { d: "is a complex number for which you want the exponential" } } }, IMLOG10: { s: "Returns the base-10 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the common logarithm" } } }, IMLOG2: { s: "Returns the base-2 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the base-2 logarithm" } } }, IMPOWER: { s: "Returns the base-2 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the base-2 logarithm" }, number: {} } }, IMPRODUCT: { s: "Returns the product of 1 to 255 complex numbers", p: { inumber: { d: "inumber1,inumber2,... Inumber1, Inumber2,... are from 1 to 255 complex numbers to multiply." } } }, IMREAL: { s: "Returns the real coefficient of a complex number", p: { inumber: { d: "is a complex number for which you want the real coefficient" } } }, IMSEC: { s: "Returns the secant of a complex number", p: { inumber: { d: "is a complex number for which you want the secant" } } }, IMSECH: { s: "Returns the hyperbolic secant of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic secant" } } }, IMSIN: { s: "Returns the sine of a complex number", p: { inumber: { d: "is a complex number for which you want the sine" } } }, IMSINH: { s: "Returns the hyperbolic sine of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic sine" } } }, IMSQRT: { s: "Returns the square root of a complex number", p: { inumber: { d: "is a complex number for which you want the square root" } } }, IMSUB: { s: "Returns the difference of two complex numbers", p: { inumber1: { d: "is the complex number from which to subtract inumber2" }, inumber2: { d: "is the complex number to subtract from inumber1" } } }, IMSUM: { s: "Returns the sum of complex numbers", p: { inumber: { d: "inumber1,inumber2,... are from 1 to 255 complex numbers to add" } } }, IMTAN: { s: "Returns the tangent of a complex number", p: { inumber: { d: "is a complex number for which you want the tangent" } } } };
|
|
8
|
+
export {
|
|
9
|
+
e as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { a as i } from "./CR01MBraUPYPpwy4.js";
|
|
2
|
+
import { r as n } from "./BlYoycYtR-sUp0iC.js";
|
|
3
|
+
import { t as e, q as $, s as q, B as z, F as E, T as R, a as O, b as W, K as y } from "./B_2bXmyji3Dr7LRM.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
|
+
*
|
|
7
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
|
+
*/
|
|
10
|
+
const A = ["Input"], U = n.memo(n.forwardRef((w, T) => {
|
|
11
|
+
const { initialValue: F = "", onOption: I, onValidateOption: l, onInputOption: u, onValidateInputOption: p, onDone: c, inputProps: d, inputLabel: P, inputType: S, inputPlaceHolder: b, options: g = A, autoFocusSel: v = ".autoFocus", cancelOption: m, defaultOption: f = g?.[0], ...C } = w, [j, k] = n.useState(!1), [a, V] = n.useState(F), [B, D] = n.useState(""), [H, K] = n.useState(!0), s = e(async (t, o) => {
|
|
12
|
+
if (!p) return !0;
|
|
13
|
+
const r = await p?.(t, o);
|
|
14
|
+
D(r?.message ?? "");
|
|
15
|
+
const x = r?.valid ?? !0;
|
|
16
|
+
return K(x), x;
|
|
17
|
+
}, [p]), h = e(async (t) => {
|
|
18
|
+
u?.(a, t);
|
|
19
|
+
}, [a, u, c, I, m, f]), L = e(async (t) => {
|
|
20
|
+
t.keyCode === $.Enter && await s?.(a, null);
|
|
21
|
+
}, [a, h]), M = e((t) => {
|
|
22
|
+
V(t.target.value), s?.(t.target.value, null);
|
|
23
|
+
}, [l]), N = e(async (t) => {
|
|
24
|
+
let o = await s(a, t);
|
|
25
|
+
try {
|
|
26
|
+
o !== !1 && (o = await s(a, t));
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
return o ?? !0;
|
|
30
|
+
}, [a, l]);
|
|
31
|
+
return i.jsx(q, { options: g, onDone: c, onOption: (t, o) => {
|
|
32
|
+
o || h(t);
|
|
33
|
+
}, onValidateOption: N, cancelOption: m, defaultOption: f, autoFocusSel: v, ref: T, ...C, children: i.jsx(z, { sx: { paddingTop: (t) => t.spacing(1), paddingBottom: (t) => t.spacing(0) }, children: i.jsx(E, { sx: { paddingTop: (t) => t.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i.jsx(R, { onFocus: (t) => {
|
|
34
|
+
j || t.target?.select(), k(!0);
|
|
35
|
+
}, type: S, label: P, helperText: B || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (t) => t.spacing(0.5), color: H ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: b, spellCheck: !1, autoComplete: "off", ...d, className: W("autoFocus", d?.className), sx: { paddingTop: (t) => t.spacing(1.25), paddingBottom: (t) => t.spacing(0.75), backgroundImage: `linear-gradient(${O("#fff", y(5))}, ${O("#fff", y(5))})` } } }, value: a, onChange: M, onKeyDown: L, onContextMenu: (t) => {
|
|
36
|
+
t.stopPropagation();
|
|
37
|
+
} }) }) }) });
|
|
38
|
+
}));
|
|
39
|
+
export {
|
|
40
|
+
U as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { a as t } from "./CR01MBraUPYPpwy4.js";
|
|
2
|
+
import { r as o } from "./BlYoycYtR-sUp0iC.js";
|
|
3
|
+
import { ag as E, ah as p, f as b, ac as V, H as ae, ai as le, V as re, G as ce, B as O, aj as g, ak as m, al as pe, am as j, an as de, T as Q, a as R, L as ue, ao as fe, ap as xe, aq as ge, P as T, ar as Y, as as me, at as he, au as Oe, af as je, F as Ce, ad as ye, ae as be } from "./B_2bXmyji3Dr7LRM.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
|
+
*
|
|
7
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
|
+
*/
|
|
10
|
+
const Re = E(t.jsx("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack"), Te = E(t.jsx("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), ve = E(t.jsx("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward"), ke = E(t.jsx("path", { d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z" }), "ArrowUpward"), K = o.memo((v) => {
|
|
11
|
+
const { label: h, value: c, options: a, onSelect: d, tabIndex: C = 0, ...F } = v, [I, y] = o.useState(() => ee(c, a));
|
|
12
|
+
o.useEffect(() => {
|
|
13
|
+
y(ee(c, a));
|
|
14
|
+
}, [c, a]);
|
|
15
|
+
const L = V((u) => {
|
|
16
|
+
y(u.target.value), d?.(a[u.target.value]);
|
|
17
|
+
}, [d, a]), l = o.useMemo(() => Object.keys(a).map((u) => t.jsx(je, { value: u, children: u }, u)), [a]);
|
|
18
|
+
return t.jsxs(Ce, { sx: { minWidth: 135 }, size: "small", children: [t.jsx(ye, { children: h }), t.jsx(be, { inputProps: { tabIndex: C }, value: I, label: h, onChange: L, sx: { backgroundImage: `linear-gradient(${R("#fff", T(5))}, ${R("#fff", T(5))})` }, ...F, children: l })] });
|
|
19
|
+
}), Z = { Workbook: "workbook", Sheet: "sheet" }, _ = { enter: 140, exit: 140 }, ne = { Formulas: p.Content.Formulas, Values: p.Content.Values, Notes: p.Content.Notes, Comments: p.Content.Comments }, te = { ...ne };
|
|
20
|
+
delete te.Values;
|
|
21
|
+
const Se = { "By Rows": !0, "By Columns": !1 }, ee = (v, h) => {
|
|
22
|
+
const c = Object.keys(h);
|
|
23
|
+
for (let a = 0; a < c.length; a++) {
|
|
24
|
+
const d = c[a];
|
|
25
|
+
if (h[d] === v) return d;
|
|
26
|
+
}
|
|
27
|
+
}, Ie = o.memo((v) => {
|
|
28
|
+
const { replace: h = !1, findText: c, replaceText: a, findOptions: d, replaceOptions: C, title: F, onHide: I, onFindOrReplace: y, ...L } = v, l = o.useRef(null), u = o.useRef(null), M = o.useRef(null), $ = o.useRef(null), z = o.useRef(null), B = o.useRef(null), H = (e, n) => {
|
|
29
|
+
n && (n.start(e, { center: !1 }), setTimeout(() => n.stop(e), 180));
|
|
30
|
+
}, [W, w] = o.useState(!1), [D, se] = o.useState(!1), [f, P] = o.useState(h), [N, A] = o.useState(!1), [G, U] = o.useState(!1), [i, r] = o.useState({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: b.Orientation.Row, fields: [p.Content.Formulas] }, scope: Z.Sheet }), k = V(async (e, n, s, S) => {
|
|
31
|
+
if (!y) return;
|
|
32
|
+
const x = { ...i };
|
|
33
|
+
x.replaceOptions = { ...x.replaceOptions }, x.findOptions = { ...x.findOptions }, x.replaceOptions.maxCount = s ? void 0 : 1, x.replace = n, n && i.findOptions.fields?.[0] === p.Content.Values && (x.findOptions.fields = [p.Content.Formulas]), x.findOptions.reverse = !e;
|
|
34
|
+
const oe = await y({ autoFocus: S, ...x });
|
|
35
|
+
A(oe === 0);
|
|
36
|
+
}, [i, y]);
|
|
37
|
+
o.useEffect(() => {
|
|
38
|
+
A(!1);
|
|
39
|
+
}, [i, D, f]);
|
|
40
|
+
const q = V((e, n) => {
|
|
41
|
+
if (e.keyCode === ae.Enter) {
|
|
42
|
+
if (!i.findText) return;
|
|
43
|
+
let s = !0, S = !1;
|
|
44
|
+
e.shiftKey && (s = !1), n ? (e.ctrlKey && e.altKey && (S = !0), H(e, S ? B.current : z.current)) : H(e, s ? $.current : M.current), k(s, n, S, !1);
|
|
45
|
+
}
|
|
46
|
+
}, [i]), X = o.useRef(null);
|
|
47
|
+
o.useLayoutEffect(() => {
|
|
48
|
+
r((e) => {
|
|
49
|
+
const n = { ...e };
|
|
50
|
+
n.findText = c && c.length > 0 ? c : e.findText ?? "", w(!0), a !== void 0 && (n.replaceText = a), d && (n.findOptions = { ...n.findOptions, ...d }), n.replaceText || (n.replaceText = ""), n.replaceOptions && (n.replaceOptions = { ...n.replaceOptions }), C && (n.replaceOptions = { ...n.replaceOptions, ...C }), i.findOptions.fields?.[0] || (i.findOptions.fields = [p.Content.Formulas]);
|
|
51
|
+
const s = !(!C && a === void 0);
|
|
52
|
+
return s && P(s), n;
|
|
53
|
+
}), G || X.current?.focus();
|
|
54
|
+
}, [c, a, d, C]), o.useEffect(() => {
|
|
55
|
+
f ? (i.findOptions.fields[0], p.Content.Values) : w(!0);
|
|
56
|
+
}, [f]), o.useEffect(() => {
|
|
57
|
+
if (W && l.current && i.findText === l.current.value) return l.current === document.activeElement || l.current.contains(document.activeElement) ? (l.current?.select(), void w(!1)) : void l.current.addEventListener("focus", () => {
|
|
58
|
+
l.current?.select(), w(!1);
|
|
59
|
+
}, { once: !0 });
|
|
60
|
+
}, [W, i]);
|
|
61
|
+
const [ie, { width: J }] = le();
|
|
62
|
+
return t.jsx(re, { ref: X, title: F ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: I, onFocus: () => U(!0), onBlur: () => {
|
|
63
|
+
U(!1), A(!1);
|
|
64
|
+
}, PaperProps: { elevation: G ? 3 : 1 }, ...L, children: t.jsxs(ce, { dividers: !0, ref: ie, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
65
|
+
if (e.key === "h" && e.ctrlKey) P(!0), l.current?.contains(document.activeElement) && u.current?.focus();
|
|
66
|
+
else if (e.key === "f" && e.ctrlKey) l.current?.focus();
|
|
67
|
+
else if (e.key === "c" && e.altKey) r((n) => {
|
|
68
|
+
const s = { ...n };
|
|
69
|
+
return s.findOptions.matchCase = !n.findOptions.matchCase, s;
|
|
70
|
+
});
|
|
71
|
+
else if (e.key === "e" && e.altKey) r((n) => {
|
|
72
|
+
const s = { ...n };
|
|
73
|
+
return s.findOptions.matchEntireCell = !n.findOptions.matchEntireCell, s;
|
|
74
|
+
});
|
|
75
|
+
else {
|
|
76
|
+
if (e.key !== "r" || !e.altKey) return;
|
|
77
|
+
r((n) => {
|
|
78
|
+
const s = { ...n };
|
|
79
|
+
return s.findOptions.useRegex = !n.findOptions.useRegex, s;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
e.preventDefault();
|
|
83
|
+
}, children: [t.jsxs(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [t.jsxs(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [t.jsx(g, { selected: D, onSelectToggle: (e) => {
|
|
84
|
+
se(e);
|
|
85
|
+
}, preventFocus: !0, label: "Toggle Additional Options", icon: m(t.jsx(pe, {})) }), t.jsx(g, { selected: f, onSelectToggle: (e) => {
|
|
86
|
+
P(e);
|
|
87
|
+
}, preventFocus: !0, label: "Toggle Replace", icon: m(t.jsx(de, {})), shortcut: { key: f ? "F" : "H", modifiers: [j.Ctrl] } })] }), t.jsxs(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [t.jsxs(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [t.jsx(Q, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: J > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${R("#fff", T(5))}, ${R("#fff", T(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: t.jsx(ue, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: t.jsxs(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [t.jsx(g, { selected: i.findOptions.matchCase, onSelectToggle: (e) => {
|
|
88
|
+
r((n) => {
|
|
89
|
+
const s = { ...n };
|
|
90
|
+
return s.findOptions.matchCase = e, s;
|
|
91
|
+
});
|
|
92
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [j.Alt] }, icon: m(t.jsx(fe, {})) }), t.jsx(g, { selected: i.findOptions.matchEntireCell, onSelectToggle: (e) => {
|
|
93
|
+
r((n) => {
|
|
94
|
+
const s = { ...n };
|
|
95
|
+
return s.findOptions.matchEntireCell = e, s;
|
|
96
|
+
});
|
|
97
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [j.Alt] }, icon: m(t.jsx(xe, {})) }), t.jsx(g, { selected: i.findOptions.useRegex, onSelectToggle: (e) => {
|
|
98
|
+
r((n) => {
|
|
99
|
+
const s = { ...n };
|
|
100
|
+
return s.findOptions.useRegex = e, s;
|
|
101
|
+
});
|
|
102
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [j.Alt] }, icon: m(t.jsx(ge, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => N ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => N ? `${e.palette.error.main} !important` : void 0 } }, value: i.findText ?? "", onChange: (e) => {
|
|
103
|
+
r((n) => {
|
|
104
|
+
const s = { ...n };
|
|
105
|
+
return s.findText = e.target.value, s;
|
|
106
|
+
});
|
|
107
|
+
}, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
|
|
108
|
+
e.stopPropagation();
|
|
109
|
+
} }), t.jsx(g, { selected: i.findOptions.reverse, onSelectToggle: (e) => {
|
|
110
|
+
k(!1, !1);
|
|
111
|
+
}, touchRippleRef: M, label: "", shortcut: { key: "Enter", modifiers: [j.Shift] }, icon: m(i.findOptions.orientation !== b.Orientation.Column ? t.jsx(Re, {}) : t.jsx(ke, {})), disabled: !i.findText }), t.jsx(g, { selected: !i.findOptions.reverse, onSelectToggle: (e) => {
|
|
112
|
+
k(!0, !1);
|
|
113
|
+
}, touchRippleRef: $, label: "Next Match", shortcut: { key: "Enter" }, icon: m(i.findOptions.orientation !== b.Orientation.Column ? t.jsx(ve, {}) : t.jsx(Te, {})), disabled: !i.findText })] }), t.jsx(Y, { in: f, timeout: _, onExit: () => {
|
|
114
|
+
l.current?.focus();
|
|
115
|
+
}, children: t.jsxs(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [t.jsx(Q, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${R("#fff", T(5))}, ${R("#fff", T(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: i.replaceText ?? "", onChange: (e) => {
|
|
116
|
+
r((n) => {
|
|
117
|
+
const s = { ...n };
|
|
118
|
+
return s.replaceText = e.target.value, s;
|
|
119
|
+
});
|
|
120
|
+
}, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
|
|
121
|
+
e.stopPropagation();
|
|
122
|
+
} }), t.jsx(g, { onSelectToggle: (e) => {
|
|
123
|
+
k(!0, !0);
|
|
124
|
+
}, touchRippleRef: z, label: "Replace", shortcut: { key: "Enter" }, icon: m(t.jsx(me, {})), disabled: !i.findText }), t.jsx(g, { onSelectToggle: (e) => {
|
|
125
|
+
k(!0, !0, !0);
|
|
126
|
+
}, touchRippleRef: B, label: "Replace All", shortcut: { key: "Enter", modifiers: [j.Ctrl, j.Alt] }, icon: m(t.jsx(he, {})), disabled: !i.findText })] }) })] })] }), t.jsx(Y, { in: D, timeout: _, onExit: () => {
|
|
127
|
+
l.current?.focus();
|
|
128
|
+
}, children: t.jsxs(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [t.jsx(Oe, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), t.jsxs(O, { sx: { display: "flex", flexDirection: J >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [t.jsx(K, { label: "Within", value: i.scope, options: Z, onSelect: (e) => {
|
|
129
|
+
r((n) => {
|
|
130
|
+
const s = { ...n };
|
|
131
|
+
return s.scope = e, s;
|
|
132
|
+
});
|
|
133
|
+
} }), t.jsx(K, { label: "Search", value: i.findOptions.orientation !== b.Orientation.Column, options: Se, onSelect: (e) => {
|
|
134
|
+
r((n) => {
|
|
135
|
+
const s = { ...n };
|
|
136
|
+
return s.findOptions.orientation = e ? b.Orientation.Row : b.Orientation.Column, s;
|
|
137
|
+
});
|
|
138
|
+
} }), t.jsx(K, { label: "Look in", value: f && i.findOptions.fields?.[0] === p.Content.Values ? p.Content.Formulas : i.findOptions.fields?.[0], options: f ? te : ne, onSelect: (e) => {
|
|
139
|
+
r((n) => {
|
|
140
|
+
const s = { ...n };
|
|
141
|
+
return s.findOptions.fields = [e], s;
|
|
142
|
+
});
|
|
143
|
+
} })] })] }) })] }) });
|
|
144
|
+
});
|
|
145
|
+
export {
|
|
146
|
+
Ie as FindReplaceWindow,
|
|
147
|
+
Z as ScopeOptions,
|
|
148
|
+
Ie as default
|
|
149
|
+
};
|