@sheetxl/studio-vanilla 0.4.12 → 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/{BwN8vKi5o3-PbIMo.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/{Q_VvA-yUQx3xFKiJ.cjs → BG2uV2RpxrfZyCuV.cjs} +1 -1
- package/browser/cjs/{BPzEQNENF-gEBkg9.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/{hwDUzorB6aCvH1eL.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/{Ccs2ouvlLekaLGH0.cjs → BwHquG4sSd7OJjxz.cjs} +2 -2
- package/browser/cjs/{D_VQzwC1zzTJyKtG.cjs → BywNBbTVRYbgRbNI.cjs} +1 -1
- package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +7 -0
- package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +7 -0
- package/browser/cjs/{BeZHmOKfa37mFNAu.cjs → CBpt1PBR1VfBegko.cjs} +2 -2
- package/browser/cjs/CED8Az5C8GWF7pUT.cjs +7 -0
- package/browser/cjs/{JKEGlXjMwGnXk_Gv.cjs → CbD4Wa5QLTdRCYcz.cjs} +2 -2
- package/browser/cjs/{L1iE_VcelYZIy0wI.cjs → CbILz9Skl6lWf6yR.cjs} +1 -1
- package/browser/cjs/CoFQQqIzuvS9PM77.cjs +7 -0
- package/browser/cjs/{B35OZ0mE8aINQPP9.cjs → CpDNo2Lhwr5ZHECs.cjs} +2 -2
- package/browser/cjs/{C3OizZPVuxO2fjSG.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/{CBL6KkiWI2RPflEN.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/{DAHpsyykuPBkoh-Z.cjs → Dh_dFnagz7dMZlGh.cjs} +1 -1
- package/browser/cjs/DpF6vgGka2d-RKkb.cjs +10 -0
- package/browser/cjs/{BUokV6yuzE-_8MyK.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/{no5c2H18QD2qmOH6.cjs → hLJbgylpETByV4wc.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/qumqKlVHFx89iLeu.cjs +7 -0
- package/browser/cjs/{fTGpiXzFm3K_u2Fm.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/{Bts4nCgfCAUpTfxz.mjs → BI6JAQCQx1V0F2aC.mjs} +2 -2
- package/browser/esm/BIYg30d_9HaluFFz.mjs +7 -0
- package/browser/esm/{SAyRTPVprOHZ8Up8.mjs → BKL-uyBp_OE47lXd.mjs} +2 -2
- 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/{D3KNxvnrwR6_fTJE.mjs → Cf8eDl3Tu5NAWWwG.mjs} +1 -1
- package/browser/esm/{B8ISUdOxsJMYWzNN.mjs → Cfq9tttQlsKvfaCr.mjs} +2 -2
- package/browser/esm/{M4hZ25330e96seUM.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/{DeXfOSxGE_Ez7DZq.mjs → CuV-bwi1vcXAqFUY.mjs} +1 -1
- package/browser/esm/CwVE0qelO_xgf-l1.mjs +7 -0
- package/browser/esm/{CYIhGb86r-kKOrP5.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/{dpdy0BU4GGI5lZrX.mjs → DTDXNEbHVnnZONNL.mjs} +1 -1
- package/browser/esm/DTWfi8Dl-c2s5moT.mjs +7 -0
- package/browser/esm/DYVBXcu1r5KRLB-1.mjs +7 -0
- package/browser/esm/{BnJiF38TGudjoHzT.mjs → DZjWyWMvr2XHQrBg.mjs} +1 -1
- package/browser/esm/DhHK4QmASvgAq9Xy.mjs +7 -0
- package/browser/esm/{DcX8yGEBX6qi9RCe.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/{DzgM_rkwyIHsCb6I.mjs → gOUfyCw957TzcbNB.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/lmkbfs9sNc7f0oe5.mjs +7 -0
- package/browser/esm/{oLCocGFRAwsVsOSE.mjs → naa0kcRwxHEYGaQB.mjs} +2 -2
- package/browser/esm/qxOkQutRxmAi1vRh.mjs +7 -0
- package/browser/esm/tMSro0g2GM5BBTIH.mjs +7 -0
- package/cdn/assets/{B3kbBB6oxKBErwzn.js → 0e9wDKSn4SFxSmP5.js} +3 -3
- 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/{Bv0Xb6DdcQbPYJKo.js → 8U2WVdbZHYCBnd9L.js} +13 -14
- package/cdn/assets/9-cIcj6CRJx5HTn9.js +10 -0
- package/cdn/assets/{BcWoqhD_sX85c7Mh.js → B-kFRtzNNkf4_SiP.js} +1 -1
- package/cdn/assets/B1Iys8a964LGNZKf.js +10 -0
- package/cdn/assets/B2RAJJJFkcaWUfUW.js +21 -0
- package/cdn/assets/{DBL4jY0AVc53RGNm.js → BAzGoI9gE2G3F3on.js} +1 -1
- package/cdn/assets/BBJxLS-wB_nXRnI2.js +10 -0
- package/cdn/assets/{qA23x9VVBL9R4qxN.js → BDE7FUo2oiivrvBL.js} +14 -14
- package/cdn/assets/BL6TUDSeou6wPejW.js +10 -0
- package/cdn/assets/{CC-S4NMYhLg3WgqO.js → BLqaorJ5Wl-1YOoy.js} +2 -2
- package/cdn/assets/BMiA9p1uOrwnooVT.js +10 -0
- package/cdn/assets/{BoOefjrM4kZ-YXxa.js → BNh9nSR83reiVMKt.js} +2 -2
- package/cdn/assets/{BtweFYnoj_aEfydW.js → BQON-ToGsIBPrPkM.js} +1 -1
- package/cdn/assets/BUwNyHytF9St68tJ.js +10 -0
- package/cdn/assets/{D_5RgqgwXsoqLJDR.js → BVYDmdUGWvMG5gNK.js} +1 -1
- 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/{dk2teWHDODYNarJY.js → BlYoycYtR-sUp0iC.js} +3 -3
- package/cdn/assets/{DfmaL8DmDaFAv8M_.js → Bsa9-Itkf_SdDBM9.js} +4 -4
- 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/{BCK7yhx9JfzU2rF0.js → CHTspRZD2v_dU_eV.js} +9 -9
- package/cdn/assets/CKA4s2hlzSnrdWSD.js +10 -0
- package/cdn/assets/{BSAH88RG1oubICau.js → CMBDD1Mjde6UL5ep.js} +19 -19
- package/cdn/assets/{DDW1WJ2IM_9ZUfKm.js → CR01MBraUPYPpwy4.js} +2 -2
- 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/{MRBi3juXAW0lA_mj.js → CwdMjMPFdIs8SAV0.js} +1 -1
- package/cdn/assets/D-5VYBO5_VEh6fEW.js +24 -0
- package/cdn/assets/{BT5EcMEFBsphczwC.js → DD3csu4pddGtMp3n.js} +106 -107
- package/cdn/assets/{DWJE3K3jMKMTCi3o.js → DFHruAftzuzBZ71r.js} +2 -2
- package/cdn/assets/DHydjLSnijEgtpyU.js +10 -0
- package/cdn/assets/DPQqTIMsRLhMxPIy.js +820 -0
- package/cdn/assets/{CUc6gRjjRGTFWSHD.js → DUtu7r6CzW4dtW3E.js} +12 -12
- package/cdn/assets/{CiY3HumGDc_5bMtR.js → DXHirQMr483hJBil.js} +15 -15
- package/cdn/assets/DXtbonLk2ESfF4Dh.js +10 -0
- package/cdn/assets/{CsjftXmSYQRHNKdq.js → Dr5X-ng9wbwUWVr4.js} +4 -4
- package/cdn/assets/{BB66NDz7S3ocEfRB.js → DvFNLgeMJ9LdQROu.js} +46 -47
- package/cdn/assets/Dvj7UEckqOBrgs9i.js +3947 -0
- package/cdn/assets/F6zW9Vj410C4yRVG.js +424 -0
- package/cdn/assets/{DJQOS9qxVAlpgDMt.js → Gz4u4ewyWfB-Pf-a.js} +20 -21
- package/cdn/assets/KDGtuIzSpkf1vsmH.js +10 -0
- package/cdn/assets/KtKlo5mM4kTTfFgi.js +46 -0
- package/cdn/assets/N3pWBoccPrTedAw-.js +12 -0
- package/cdn/assets/{7_O6nILzn1fSVvkO.js → NTINjW8JjyZudT8s.js} +1 -1
- package/cdn/assets/{DxMu6URURFWj9aXM.js → R9RwlorPWfftoboH.js} +4 -4
- package/cdn/assets/{DgLPO_EQ9DYoGgec.js → Xwyp21e7L5fTeb_y.js} +1 -1
- package/cdn/assets/{CfObTzh8pGdd8D23.js → XysyS9rk9tFdbzZh.js} +5 -5
- package/cdn/assets/{DkS6quwH1okWaho6.js → f3_QXO8z0p-q4nJo.js} +14 -14
- package/cdn/assets/{phYz0vGgqIEQ2hco.js → quOP5QFyTT9soNIl.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -5
- package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +0 -7
- package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +0 -7
- package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +0 -7
- package/browser/cjs/CU30GVjjFXl44vEU.cjs +0 -7
- package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +0 -7
- package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +0 -7
- package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +0 -7
- package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +0 -107
- package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +0 -7
- package/browser/esm/B4Mm5gczpI_k2zzN.mjs +0 -7
- package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +0 -107
- package/browser/esm/C4jlaVv8bELgiHyE.mjs +0 -7
- package/browser/esm/CcpskguvlvemArQn.mjs +0 -7
- package/browser/esm/CeRfALx1iU5fqOUg.mjs +0 -7
- package/browser/esm/CfYWmP_Hots5f0f6.mjs +0 -7
- package/browser/esm/CkarbqNx_lhlBnw7.mjs +0 -7
- package/browser/esm/D2PlWNQjrTgf6GuR.mjs +0 -7
- package/browser/esm/DIJyH94oCzUnlcNZ.mjs +0 -7
- package/browser/esm/DVAG1NxFe3cMjLE1.mjs +0 -7
- package/browser/esm/DVqga7g7j0FUiM6p.mjs +0 -7
- package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +0 -7
- package/browser/esm/_ft7JYO6QdDbIu3d.mjs +0 -7
- package/cdn/assets/CJhyHcQcrhbtC33r.js +0 -50
- package/cdn/assets/CpPLN0-hDsTIFHZV.js +0 -46
- package/cdn/assets/Cq94woVmlxhjWVRI.js +0 -21
- package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +0 -26490
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { r as s } from "./
|
|
3
|
-
import {
|
|
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
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
10
|
const V = ["Ok", "Cancel"], H = s.memo((F) => {
|
|
11
|
-
const { initialComments:
|
|
12
|
-
const t =
|
|
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
13
|
let n = "";
|
|
14
14
|
if (t && t.content && t.content.runs) {
|
|
15
15
|
const e = t.content.runs;
|
|
@@ -19,7 +19,7 @@ const V = ["Ok", "Cancel"], H = s.memo((F) => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
|
-
}, []), [o, y] = s.useState(x), [
|
|
22
|
+
}, []), [o, y] = s.useState(x), [b, j] = s.useState(!1), h = s.useCallback(async (t, n) => null, []), v = m(async (t) => {
|
|
23
23
|
const n = o === "" ? [] : o.split(`
|
|
24
24
|
`);
|
|
25
25
|
if (t !== i) {
|
|
@@ -30,16 +30,16 @@ const V = ["Ok", "Cancel"], H = s.memo((F) => {
|
|
|
30
30
|
g?.(t, t === i, t === u), r?.();
|
|
31
31
|
}, [o, d, r, g, u, i]), D = m((t) => {
|
|
32
32
|
y(t.target.value), h(t.target.value, null);
|
|
33
|
-
}, [
|
|
34
|
-
let n = await Promise.resolve(
|
|
33
|
+
}, [p]), I = m(async (t) => {
|
|
34
|
+
let n = await Promise.resolve(p?.(t));
|
|
35
35
|
try {
|
|
36
36
|
n !== !1 && (n = await h(o, t));
|
|
37
37
|
} catch {
|
|
38
38
|
}
|
|
39
39
|
return n ?? !0;
|
|
40
|
-
}, [
|
|
41
|
-
return
|
|
42
|
-
|
|
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
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
44
|
t.stopPropagation();
|
|
45
45
|
} }) }) }) });
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { a } from "./
|
|
2
|
-
import { r as
|
|
3
|
-
import {
|
|
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
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
|
-
const Y =
|
|
11
|
-
const { title: S, onHide: C, autoFocusSel:
|
|
12
|
-
|
|
13
|
-
const s =
|
|
14
|
-
|
|
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
15
|
H(s.getNames().getRanges(e.getRange()));
|
|
16
16
|
}, onProtectedChange(e) {
|
|
17
17
|
D();
|
|
18
18
|
} });
|
|
19
|
-
const P =
|
|
19
|
+
const P = u((e) => {
|
|
20
20
|
s?.table().setName(e);
|
|
21
|
-
}, [s]), z =
|
|
21
|
+
}, [s]), z = u((e) => {
|
|
22
22
|
s?.table().resize(e.at(0));
|
|
23
23
|
}, [s]);
|
|
24
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(
|
|
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
26
|
x?.current?.contains(e.relatedTarget) || d(!1);
|
|
27
|
-
}, PaperProps: { elevation: T ? 3 : 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
28
|
t && t.getName().toLowerCase() === e.toLowerCase() || s?.getNames().validateName(e);
|
|
29
29
|
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
30
30
|
g || e.target?.select(), m(!0);
|
|
31
31
|
} }), a.jsx(k, { formName: "range", value: B, onChangeInput: z, resolvedAddress: s.getNames().getRanges.bind(s.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
32
32
|
g || e.target?.select(), m(!0);
|
|
33
|
-
} })] }) }) }), a.jsxs(
|
|
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
34
|
t.updateStyleOptions(e);
|
|
35
35
|
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
36
36
|
try {
|
|
@@ -50,7 +50,7 @@ const Y = n.memo((w) => {
|
|
|
50
50
|
} catch (i) {
|
|
51
51
|
l.showError(i);
|
|
52
52
|
}
|
|
53
|
-
} }), a.jsx(
|
|
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
54
|
});
|
|
55
55
|
export {
|
|
56
56
|
Y as TableDetailsWindow,
|
|
@@ -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
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as i } from "./
|
|
2
|
-
import { r as n } from "./
|
|
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 "./
|
|
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
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { a as t } from "./
|
|
2
|
-
import { r as o } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { a0 as E, S as V, o as le, a1 as ae, V as re, D as ce, B as O, a2 as g, a3 as m, a4 as pe, a5 as j, a6 as de, T as Q, a as R, I as ue, a7 as fe, a8 as xe, a9 as ge, v, aa as Y, ab as me, ac as he, ad as Oe, $ as je, F as Ce, W as ye, X as be } from "./Jhm2DAcrfAqiM-Y-.js";
|
|
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";
|
|
5
4
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
7
6
|
*
|
|
8
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
10
9
|
*/
|
|
11
|
-
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"),
|
|
12
|
-
const { label: h, value: c, options:
|
|
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));
|
|
13
12
|
o.useEffect(() => {
|
|
14
|
-
y(ee(c,
|
|
15
|
-
}, [c,
|
|
16
|
-
const
|
|
17
|
-
y(u.target.value), d?.(
|
|
18
|
-
}, [d,
|
|
19
|
-
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:
|
|
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 })] });
|
|
20
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 };
|
|
21
20
|
delete te.Values;
|
|
22
|
-
const Se = { "By Rows": !0, "By Columns": !1 }, ee = (
|
|
21
|
+
const Se = { "By Rows": !0, "By Columns": !1 }, ee = (v, h) => {
|
|
23
22
|
const c = Object.keys(h);
|
|
24
|
-
for (let
|
|
25
|
-
const d = c[
|
|
26
|
-
if (h[d] ===
|
|
23
|
+
for (let a = 0; a < c.length; a++) {
|
|
24
|
+
const d = c[a];
|
|
25
|
+
if (h[d] === v) return d;
|
|
27
26
|
}
|
|
28
|
-
},
|
|
29
|
-
const { replace: h = !1, findText: c, replaceText:
|
|
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) => {
|
|
30
29
|
n && (n.start(e, { center: !1 }), setTimeout(() => n.stop(e), 180));
|
|
31
|
-
}, [W, w] = o.useState(!1), [
|
|
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) => {
|
|
32
31
|
if (!y) return;
|
|
33
32
|
const x = { ...i };
|
|
34
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;
|
|
@@ -37,34 +36,34 @@ const Se = { "By Rows": !0, "By Columns": !1 }, ee = (T, h) => {
|
|
|
37
36
|
}, [i, y]);
|
|
38
37
|
o.useEffect(() => {
|
|
39
38
|
A(!1);
|
|
40
|
-
}, [i,
|
|
41
|
-
const
|
|
42
|
-
if (e.keyCode ===
|
|
39
|
+
}, [i, D, f]);
|
|
40
|
+
const q = V((e, n) => {
|
|
41
|
+
if (e.keyCode === ae.Enter) {
|
|
43
42
|
if (!i.findText) return;
|
|
44
43
|
let s = !0, S = !1;
|
|
45
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);
|
|
46
45
|
}
|
|
47
|
-
}, [i]),
|
|
46
|
+
}, [i]), X = o.useRef(null);
|
|
48
47
|
o.useLayoutEffect(() => {
|
|
49
48
|
r((e) => {
|
|
50
49
|
const n = { ...e };
|
|
51
|
-
n.findText = c && c.length > 0 ? c : e.findText ?? "", w(!0),
|
|
52
|
-
const s = !(!C &&
|
|
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);
|
|
53
52
|
return s && P(s), n;
|
|
54
|
-
}),
|
|
55
|
-
}, [c,
|
|
53
|
+
}), G || X.current?.focus();
|
|
54
|
+
}, [c, a, d, C]), o.useEffect(() => {
|
|
56
55
|
f ? (i.findOptions.fields[0], p.Content.Values) : w(!0);
|
|
57
56
|
}, [f]), o.useEffect(() => {
|
|
58
|
-
if (W &&
|
|
59
|
-
|
|
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);
|
|
60
59
|
}, { once: !0 });
|
|
61
60
|
}, [W, i]);
|
|
62
|
-
const [ie, { width: J }] =
|
|
63
|
-
return t.jsx(re, { ref:
|
|
64
|
-
|
|
65
|
-
}, PaperProps: { elevation:
|
|
66
|
-
if (e.key === "h" && e.ctrlKey) P(!0),
|
|
67
|
-
else if (e.key === "f" && e.ctrlKey)
|
|
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();
|
|
68
67
|
else if (e.key === "c" && e.altKey) r((n) => {
|
|
69
68
|
const s = { ...n };
|
|
70
69
|
return s.findOptions.matchCase = !n.findOptions.matchCase, s;
|
|
@@ -81,11 +80,11 @@ const Se = { "By Rows": !0, "By Columns": !1 }, ee = (T, h) => {
|
|
|
81
80
|
});
|
|
82
81
|
}
|
|
83
82
|
e.preventDefault();
|
|
84
|
-
}, 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:
|
|
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) => {
|
|
85
84
|
se(e);
|
|
86
85
|
}, preventFocus: !0, label: "Toggle Additional Options", icon: m(t.jsx(pe, {})) }), t.jsx(g, { selected: f, onSelectToggle: (e) => {
|
|
87
86
|
P(e);
|
|
88
|
-
}, 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",
|
|
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) => {
|
|
89
88
|
r((n) => {
|
|
90
89
|
const s = { ...n };
|
|
91
90
|
return s.findOptions.matchCase = e, s;
|
|
@@ -105,27 +104,27 @@ const Se = { "By Rows": !0, "By Columns": !1 }, ee = (T, h) => {
|
|
|
105
104
|
const s = { ...n };
|
|
106
105
|
return s.findText = e.target.value, s;
|
|
107
106
|
});
|
|
108
|
-
}, onKeyDown: (e) =>
|
|
107
|
+
}, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
|
|
109
108
|
e.stopPropagation();
|
|
110
109
|
} }), t.jsx(g, { selected: i.findOptions.reverse, onSelectToggle: (e) => {
|
|
111
110
|
k(!1, !1);
|
|
112
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) => {
|
|
113
112
|
k(!0, !1);
|
|
114
|
-
}, touchRippleRef: $, label: "Next Match", shortcut: { key: "Enter" }, icon: m(i.findOptions.orientation !== b.Orientation.Column ? t.jsx(
|
|
115
|
-
|
|
116
|
-
}, 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",
|
|
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) => {
|
|
117
116
|
r((n) => {
|
|
118
117
|
const s = { ...n };
|
|
119
118
|
return s.replaceText = e.target.value, s;
|
|
120
119
|
});
|
|
121
|
-
}, onKeyDown: (e) =>
|
|
120
|
+
}, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
|
|
122
121
|
e.stopPropagation();
|
|
123
122
|
} }), t.jsx(g, { onSelectToggle: (e) => {
|
|
124
123
|
k(!0, !0);
|
|
125
124
|
}, touchRippleRef: z, label: "Replace", shortcut: { key: "Enter" }, icon: m(t.jsx(me, {})), disabled: !i.findText }), t.jsx(g, { onSelectToggle: (e) => {
|
|
126
125
|
k(!0, !0, !0);
|
|
127
|
-
}, 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:
|
|
128
|
-
|
|
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();
|
|
129
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) => {
|
|
130
129
|
r((n) => {
|
|
131
130
|
const s = { ...n };
|
|
@@ -144,7 +143,7 @@ const Se = { "By Rows": !0, "By Columns": !1 }, ee = (T, h) => {
|
|
|
144
143
|
} })] })] }) })] }) });
|
|
145
144
|
});
|
|
146
145
|
export {
|
|
147
|
-
|
|
146
|
+
Ie as FindReplaceWindow,
|
|
148
147
|
Z as ScopeOptions,
|
|
149
|
-
|
|
148
|
+
Ie as default
|
|
150
149
|
};
|