@sheetxl/studio-vanilla 0.4.21 → 0.4.22
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/-AkvO2DXLOxJTxam.cjs +6 -0
- package/browser/cjs/3CSmmG7E8ziDB1mP.cjs +6 -0
- package/browser/cjs/7nEG2wj_Ohie6CwI.cjs +6 -0
- package/browser/cjs/{n6CXzSocLW_BCO8w.cjs → B0aLqzqegePPgpc2.cjs} +6 -6
- package/browser/cjs/B9GyERAqyIxdqS4D.cjs +145 -0
- package/browser/cjs/BO8oGaHWFtHyxmQ1.cjs +6 -0
- package/browser/cjs/BPODmSH7Z1MR1rHr.cjs +15 -0
- package/browser/cjs/BS0bGW4PmNinQUvL.cjs +42 -0
- package/browser/cjs/BY3tZiH_cfwBkpN8.cjs +6 -0
- package/browser/cjs/BYRBdz-9UGZ0b_AO.cjs +7 -0
- package/browser/cjs/BZvC7PqILOVRl2ij.cjs +6 -0
- package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +6 -0
- package/browser/cjs/Bdm_fGdkK4-pZ0tW.cjs +6 -0
- package/browser/cjs/Bi2-QXq5KvbsAXoB.cjs +6 -0
- package/browser/cjs/Bk2cFYnTKxP7WbLy.cjs +6 -0
- package/browser/cjs/BlojFx4yQfY8ahEJ.cjs +12 -0
- package/browser/cjs/BvEv8i6SisfC24C1.cjs +7 -0
- package/browser/cjs/Bzntg1YSzOszdwLy.cjs +6 -0
- package/browser/cjs/C9oIS5xxO9B7vS3W.cjs +6 -0
- package/browser/cjs/C9xTKWx1tr6NZFC8.cjs +6 -0
- package/browser/cjs/CCu9cK1DUD4oa3Nj.cjs +6 -0
- package/browser/cjs/CIeiC9TKv80O2_fQ.cjs +6 -0
- package/browser/cjs/COuRf_8YbqEsDQOC.cjs +6 -0
- package/browser/cjs/CQRZm8lGq26oKY31.cjs +6 -0
- package/browser/cjs/CYmpgLiDS0ZlbG11.cjs +6 -0
- package/browser/cjs/CZltonq1gEczLRHi.cjs +32 -0
- package/browser/cjs/Cf1j7hiCbQ8xo4_U.cjs +7 -0
- package/browser/cjs/CknjEH7DZBnqyPfk.cjs +6 -0
- package/browser/cjs/ClEc15AqSTFOf5zG.cjs +6 -0
- package/browser/cjs/CrUZUIz00uPDq4EA.cjs +6 -0
- package/browser/cjs/Cv1BFY5pqPtJd8qO.cjs +6 -0
- package/browser/cjs/CvvHAxM5SO6mwsyq.cjs +161 -0
- package/browser/cjs/Cvwrl86aXHFXJVZZ.cjs +6 -0
- package/browser/cjs/CwgzE59YUQ1eOTBi.cjs +6 -0
- package/browser/cjs/D3qzZXPgfAtKIAP9.cjs +11 -0
- package/browser/cjs/D7q2GFLhv9QRTZJe.cjs +6 -0
- package/browser/cjs/DB2WR3LaeOhkCAXY.cjs +6 -0
- package/browser/cjs/DFJ4dyRxiUF1XPPZ.cjs +15 -0
- package/browser/cjs/DJMpu6kYQUW3FWjs.cjs +6 -0
- package/browser/cjs/DL7DCFUaFkr2LYhZ.cjs +6 -0
- package/browser/cjs/DMMZr350oW-Zan7x.cjs +124 -0
- package/browser/cjs/DMfk3didwdGQLc0i.cjs +1501 -0
- package/browser/cjs/DaEdjRWwuNebE2hn.cjs +6 -0
- package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +6 -0
- package/browser/cjs/Df9S9eEGYxA_EcEr.cjs +6 -0
- package/browser/cjs/DgSAPPq-D_vlo9jE.cjs +6 -0
- package/browser/cjs/DmtZLv1wnSxRzPiR.cjs +6 -0
- package/browser/cjs/DqlFSswn_reXyFz8.cjs +6 -0
- package/browser/cjs/Dws_eDddoJKDPps_.cjs +6 -0
- package/browser/cjs/HyVntu9KkvdKrJEt.cjs +16 -0
- package/browser/cjs/Iek_K8QW1doYx_eo.cjs +6 -0
- package/browser/cjs/QJFc55OPrJyuRvDO.cjs +19 -0
- package/browser/cjs/QxU4KIgsHZuVigdy.cjs +329 -0
- package/browser/cjs/cOAjfOdF1cb-xgQG.cjs +6 -0
- package/browser/cjs/index.cjs +2 -80
- package/browser/cjs/kQ8wVygFJMcxlUv-.cjs +6 -0
- package/browser/cjs/tVbeAmLkaH_1Jy7R.cjs +6 -0
- package/browser/cjs/wNoDw92hvq2txBki.cjs +11 -0
- package/browser/esm/2d2eGHpsnUoCOFMT.mjs +47 -0
- package/browser/esm/AVmCEk8Fmiw2k_yK.mjs +425 -0
- package/browser/esm/B0A2aLiKDPGGU4k-.mjs +44515 -0
- package/browser/esm/BBov1fpR61VyhE3Z.mjs +10 -0
- package/browser/esm/BJD32_Zv5gkabGc0.mjs +10 -0
- package/browser/esm/BJqIPJDvrhWpZc4S.mjs +10 -0
- package/browser/esm/BKYjPTKdwG8Dn1_Z.mjs +21 -0
- package/browser/esm/BQfnqD12mz41DOr_.mjs +10 -0
- package/browser/esm/BSdVpOzJ8SL3EBhP.mjs +10 -0
- package/browser/esm/BVuoKgnuqrUwY6Fv.mjs +44 -0
- package/browser/esm/Ba4SdTfCAvYS7a3O.mjs +29 -0
- package/browser/esm/BajFlIH_X_nvDNfp.mjs +2344 -0
- package/browser/esm/Bb0W3ByMVowTViNK.mjs +10 -0
- package/browser/esm/BmyjN5txj3iMw_DE.mjs +10 -0
- package/browser/esm/BpFA0UU_TF4JO3dh.mjs +10 -0
- package/browser/esm/Btr2FDDtI_fht0WU.mjs +1466 -0
- package/browser/esm/Bzg-D_R4sXN-wyMx.mjs +10 -0
- package/browser/esm/C2xOGr0pDSHSMKoW.mjs +1366 -0
- package/browser/esm/CAal3t8F-VfdmgAH.mjs +10 -0
- package/browser/esm/CBPeZuyUIf9scEwn.mjs +2081 -0
- package/browser/esm/CCjuiVOyesh1IQpA.mjs +3936 -0
- package/browser/esm/CDnNRZ7jINT_Dr0K.mjs +46 -0
- package/browser/esm/CQaM4Ka20cP71fl0.mjs +10 -0
- package/browser/esm/CVlIOg6F8qrZdlQ1.mjs +10 -0
- package/browser/esm/Cbq2K4YGny5wwFEf.mjs +10 -0
- package/browser/esm/CfeqmUm-TkCE2XpK.mjs +260 -0
- package/browser/esm/Ckb6l6osoWh90VXn.mjs +10 -0
- package/browser/esm/CkccSfJEU471_Sui.mjs +1702 -0
- package/browser/esm/Cl0mB61JgZYfTh4S.mjs +24 -0
- package/browser/esm/Cm7pnWH_xgLwX_lZ.mjs +10 -0
- package/browser/esm/Co_HyodT3prcEvNJ.mjs +10 -0
- package/browser/esm/CsBIABPdnqpcZcvJ.mjs +10 -0
- package/browser/esm/CslKfn0zxkGKrM4-.mjs +48 -0
- package/browser/esm/Cx0a1WWRvJgDg4qb.mjs +21 -0
- package/browser/esm/D-QFKqWRP5dKwynV.mjs +10 -0
- package/browser/esm/DWgbhx4Y4WzyAP3Z.mjs +1575 -0
- package/browser/esm/DgFIjoPrM5dmrLHT.mjs +392 -0
- package/browser/esm/Dk_OZhcDLapTaNma.mjs +10 -0
- package/browser/esm/Dp--KMDeqecbq_Wc.mjs +10 -0
- package/browser/esm/Dva_qJrZGvFYbRxZ.mjs +21 -0
- package/browser/esm/DxJfUV0HFQT8g6H_.mjs +39 -0
- package/browser/esm/Dxqx7qwqE6wbYSpB.mjs +147 -0
- package/browser/esm/ObudKUELIfmbm87W.mjs +10 -0
- package/browser/esm/SGprYj0-SzDtrM3y.mjs +56 -0
- package/browser/esm/SmC3rmOCw-Ynredz.mjs +1672 -0
- package/browser/esm/T263hpnj_sMd1bmD.mjs +84 -0
- package/browser/esm/Ys1OCodY6sXUkZ6-.mjs +424 -0
- package/browser/esm/aqvSzH4m6bf7ODc6.mjs +10 -0
- package/browser/esm/d49_A3euUkzKZure.mjs +633 -0
- package/browser/esm/d8r4AqRUASAMCbBC.mjs +1352 -0
- package/browser/esm/fgXzhDR19HBK6PEW.mjs +20 -0
- package/browser/esm/g2unVUs-HBGBvXMs.mjs +12 -0
- package/browser/esm/gzl_ozUgkS0mr_32.mjs +13391 -0
- package/browser/esm/index.mjs +4 -176
- package/browser/esm/kbK4ZGVl1tl5F-UA.mjs +41 -0
- package/browser/esm/oAfM3SU0EgMxfDc0.mjs +3802 -0
- package/browser/esm/{NBuS53B7u8hItiXf.mjs → oUl7lbkOPMCi30tO.mjs} +937 -933
- package/browser/esm/tAl8qMu6C0Vlq5p-.mjs +5585 -0
- package/cdn/assets/1we1udiYEDagZ5XN.js +241 -0
- package/cdn/assets/8d4z_mUqWF_BnOt4.js +6481 -0
- package/cdn/assets/B-ol51_1jHaCVeGO.js +3802 -0
- package/cdn/assets/B2I5EC8Y3LkhqzOe.js +50 -0
- package/cdn/assets/B44RkeFF8g1ncaGw.js +49 -0
- package/cdn/assets/BBov1fpR61VyhE3Z.js +10 -0
- package/cdn/assets/BCEDMsB3yP73FGo4.js +260 -0
- package/cdn/assets/BERonPR_jlfR0j1B.js +46 -0
- package/cdn/assets/BJD32_Zv5gkabGc0.js +10 -0
- package/cdn/assets/BJqIPJDvrhWpZc4S.js +10 -0
- package/cdn/assets/BKYjPTKdwG8Dn1_Z.js +21 -0
- package/cdn/assets/BPQvYX3Tn3_XfM55.js +2346 -0
- package/cdn/assets/BQfnqD12mz41DOr_.js +10 -0
- package/cdn/assets/BSdVpOzJ8SL3EBhP.js +10 -0
- package/cdn/assets/BWHiFslK55rPiaTT.js +21 -0
- package/cdn/assets/BWhbbP9qvpjw1m3d.js +21 -0
- package/cdn/assets/B_gWDLoUXJ58kUTF.js +5585 -0
- package/cdn/assets/Bb0W3ByMVowTViNK.js +10 -0
- package/cdn/assets/Bk7mWQ4jJ591qT5U.js +1702 -0
- package/cdn/assets/BmyjN5txj3iMw_DE.js +10 -0
- package/cdn/assets/BnEb6t4xIVuW37yn.js +29 -0
- package/cdn/assets/BpFA0UU_TF4JO3dh.js +10 -0
- package/cdn/assets/Bzg-D_R4sXN-wyMx.js +10 -0
- package/cdn/assets/C2xOGr0pDSHSMKoW.js +1366 -0
- package/cdn/assets/CAal3t8F-VfdmgAH.js +10 -0
- package/cdn/assets/CGImeT9zAECbU9zM.js +43 -0
- package/cdn/assets/CIdfxx6BkkxIdU4J.js +36 -0
- package/cdn/assets/CQaM4Ka20cP71fl0.js +10 -0
- package/cdn/assets/CVgQlKevn28IBavQ.js +44342 -0
- package/cdn/assets/CVlIOg6F8qrZdlQ1.js +10 -0
- package/cdn/assets/Cbq2K4YGny5wwFEf.js +10 -0
- package/cdn/assets/CcE9nC_34k_5iKdO.js +425 -0
- package/cdn/assets/CcP-5SrDsnDeT6SQ.js +2083 -0
- package/cdn/assets/Ckb6l6osoWh90VXn.js +10 -0
- package/cdn/assets/Cl0mB61JgZYfTh4S.js +24 -0
- package/cdn/assets/Cm7pnWH_xgLwX_lZ.js +10 -0
- package/cdn/assets/Co_HyodT3prcEvNJ.js +10 -0
- package/cdn/assets/CsBIABPdnqpcZcvJ.js +10 -0
- package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +22 -0
- package/cdn/assets/D-QFKqWRP5dKwynV.js +10 -0
- package/cdn/assets/D8hsneNA-W9ryUa9.js +27 -0
- package/cdn/assets/DBzbchpZyNJVqFwJ.js +1575 -0
- package/cdn/assets/DIBJnPf-ZLpoUAyv.js +90 -0
- package/cdn/assets/DKaNurhCUtSDI3-Y.js +3936 -0
- package/cdn/assets/DQmcuM6zJj_UBR4j.js +58 -0
- package/cdn/assets/DXWy4_H6I-dyOLr6.js +46 -0
- package/cdn/assets/DXlz010r4VFvz1TS.js +23 -0
- package/cdn/assets/Dk_OZhcDLapTaNma.js +10 -0
- package/cdn/assets/Dp--KMDeqecbq_Wc.js +10 -0
- package/cdn/assets/DqRiTlxxpGv8z6hB.js +392 -0
- package/cdn/assets/Dt6M8k8ljeGubAJ5.js +1466 -0
- package/cdn/assets/Dzb_e1lRgdeWlKbP.js +27 -0
- package/cdn/assets/ObudKUELIfmbm87W.js +10 -0
- package/cdn/assets/QtHcsa9O7bxZgew4.js +12 -0
- package/cdn/assets/SmC3rmOCw-Ynredz.js +1672 -0
- package/cdn/assets/UBuQw1PVtmH3a9bE.js +84 -0
- package/cdn/assets/Ys1OCodY6sXUkZ6-.js +424 -0
- package/cdn/assets/aqvSzH4m6bf7ODc6.js +10 -0
- package/cdn/assets/d49_A3euUkzKZure.js +633 -0
- package/cdn/assets/d8r4AqRUASAMCbBC.js +1352 -0
- package/cdn/assets/g2unVUs-HBGBvXMs.js +12 -0
- package/cdn/assets/gzl_ozUgkS0mr_32.js +13391 -0
- package/cdn/assets/o1yNcQczZA65rwUv.js +41 -0
- package/cdn/assets/u_xPkr1quUnZRgrA.js +149 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/cdn/assets/CY8njwo06MWkoPz2.js +0 -21
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { i as E, j as t, r as o, k as p, w as b, c as M, t as le, l as ae, x as re, D as ce, B as O, E as g, p as m, y as pe, Z as j, n as de, f as Z, e as R, o as ue, q as fe, z as xe, A as ge, g as v, G as Q, H as me, V as he, J as Oe, M as je, d as Ce, I as ye, S as be } from "./B0A2aLiKDPGGU4k-.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
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"), ve = E(t.jsx("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), Te = 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((T) => {
|
|
9
|
+
const { label: h, value: c, options: l, onSelect: d, tabIndex: C = 0, ...F } = T, [I, y] = o.useState(() => ee(c, l));
|
|
10
|
+
o.useEffect(() => {
|
|
11
|
+
y(ee(c, l));
|
|
12
|
+
}, [c, l]);
|
|
13
|
+
const D = M((u) => {
|
|
14
|
+
y(u.target.value), d?.(l[u.target.value]);
|
|
15
|
+
}, [d, l]), a = o.useMemo(() => Object.keys(l).map((u) => t.jsx(je, { value: u, children: u }, u)), [l]);
|
|
16
|
+
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: D, sx: { backgroundImage: `linear-gradient(${R("#fff", v(5))}, ${R("#fff", v(5))})` }, ...F, children: a })] });
|
|
17
|
+
}), Y = { 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 };
|
|
18
|
+
delete te.Values;
|
|
19
|
+
const Se = { "By Rows": !0, "By Columns": !1 }, ee = (T, h) => {
|
|
20
|
+
const c = Object.keys(h);
|
|
21
|
+
for (let l = 0; l < c.length; l++) {
|
|
22
|
+
const d = c[l];
|
|
23
|
+
if (h[d] === T) return d;
|
|
24
|
+
}
|
|
25
|
+
}, Ee = o.memo((T) => {
|
|
26
|
+
const { replace: h = !1, findText: c, replaceText: l, findOptions: d, replaceOptions: C, title: F, onHide: I, onFindOrReplace: y, ...D } = T, a = o.useRef(null), u = o.useRef(null), V = o.useRef(null), H = o.useRef(null), $ = o.useRef(null), z = o.useRef(null), B = (e, n) => {
|
|
27
|
+
n && (n.start(e, { center: !1 }), setTimeout(() => n.stop(e), 180));
|
|
28
|
+
}, [W, w] = o.useState(!1), [L, se] = o.useState(!1), [f, A] = o.useState(h), [N, P] = 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: Y.Sheet }), k = M(async (e, n, s, S) => {
|
|
29
|
+
if (!y) return;
|
|
30
|
+
const x = { ...i };
|
|
31
|
+
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;
|
|
32
|
+
const oe = await y({ autoFocus: S, ...x });
|
|
33
|
+
P(oe === 0);
|
|
34
|
+
}, [i, y]);
|
|
35
|
+
o.useEffect(() => {
|
|
36
|
+
P(!1);
|
|
37
|
+
}, [i, L, f]);
|
|
38
|
+
const q = M((e, n) => {
|
|
39
|
+
if (e.keyCode === le.Enter) {
|
|
40
|
+
if (!i.findText) return;
|
|
41
|
+
let s = !0, S = !1;
|
|
42
|
+
e.shiftKey && (s = !1), n ? (e.ctrlKey && e.altKey && (S = !0), B(e, S ? z.current : $.current)) : B(e, s ? H.current : V.current), k(s, n, S, !1);
|
|
43
|
+
}
|
|
44
|
+
}, [i]), J = o.useRef(null);
|
|
45
|
+
o.useLayoutEffect(() => {
|
|
46
|
+
r((e) => {
|
|
47
|
+
const n = { ...e };
|
|
48
|
+
n.findText = c && c.length > 0 ? c : e.findText ?? "", w(!0), l !== void 0 && (n.replaceText = l), 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]);
|
|
49
|
+
const s = !(!C && l === void 0);
|
|
50
|
+
return s && A(s), n;
|
|
51
|
+
}), G || J.current?.focus();
|
|
52
|
+
}, [c, l, d, C]), o.useEffect(() => {
|
|
53
|
+
f ? (i.findOptions.fields[0], p.Content.Values) : w(!0);
|
|
54
|
+
}, [f]), o.useEffect(() => {
|
|
55
|
+
if (W && a.current && i.findText === a.current.value) return a.current === document.activeElement || a.current.contains(document.activeElement) ? (a.current?.select(), void w(!1)) : void a.current.addEventListener("focus", () => {
|
|
56
|
+
a.current?.select(), w(!1);
|
|
57
|
+
}, { once: !0 });
|
|
58
|
+
}, [W, i]);
|
|
59
|
+
const [ie, { width: X }] = ae();
|
|
60
|
+
return t.jsx(re, { ref: J, title: F ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: I, onFocus: () => U(!0), onBlur: () => {
|
|
61
|
+
U(!1), P(!1);
|
|
62
|
+
}, PaperProps: { elevation: G ? 3 : 1 }, ...D, 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) => {
|
|
63
|
+
if (e.key === "h" && e.ctrlKey) A(!0), a.current?.contains(document.activeElement) && u.current?.focus();
|
|
64
|
+
else if (e.key === "f" && e.ctrlKey) a.current?.focus();
|
|
65
|
+
else if (e.key === "c" && e.altKey) r((n) => {
|
|
66
|
+
const s = { ...n };
|
|
67
|
+
return s.findOptions.matchCase = !n.findOptions.matchCase, s;
|
|
68
|
+
});
|
|
69
|
+
else if (e.key === "e" && e.altKey) r((n) => {
|
|
70
|
+
const s = { ...n };
|
|
71
|
+
return s.findOptions.matchEntireCell = !n.findOptions.matchEntireCell, s;
|
|
72
|
+
});
|
|
73
|
+
else {
|
|
74
|
+
if (e.key !== "r" || !e.altKey) return;
|
|
75
|
+
r((n) => {
|
|
76
|
+
const s = { ...n };
|
|
77
|
+
return s.findOptions.useRegex = !n.findOptions.useRegex, s;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
e.preventDefault();
|
|
81
|
+
}, 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: L, onSelectToggle: (e) => {
|
|
82
|
+
se(e);
|
|
83
|
+
}, preventFocus: !0, label: "Toggle Additional Options", icon: m(t.jsx(pe, {})) }), t.jsx(g, { selected: f, onSelectToggle: (e) => {
|
|
84
|
+
A(e);
|
|
85
|
+
}, 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(Z, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: X > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${R("#fff", v(5))}, ${R("#fff", v(5))})` }, inputProps: { draggable: !1, ref: a, 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) => {
|
|
86
|
+
r((n) => {
|
|
87
|
+
const s = { ...n };
|
|
88
|
+
return s.findOptions.matchCase = e, s;
|
|
89
|
+
});
|
|
90
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [j.Alt] }, icon: m(t.jsx(fe, {})) }), t.jsx(g, { selected: i.findOptions.matchEntireCell, onSelectToggle: (e) => {
|
|
91
|
+
r((n) => {
|
|
92
|
+
const s = { ...n };
|
|
93
|
+
return s.findOptions.matchEntireCell = e, s;
|
|
94
|
+
});
|
|
95
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [j.Alt] }, icon: m(t.jsx(xe, {})) }), t.jsx(g, { selected: i.findOptions.useRegex, onSelectToggle: (e) => {
|
|
96
|
+
r((n) => {
|
|
97
|
+
const s = { ...n };
|
|
98
|
+
return s.findOptions.useRegex = e, s;
|
|
99
|
+
});
|
|
100
|
+
}, 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) => {
|
|
101
|
+
r((n) => {
|
|
102
|
+
const s = { ...n };
|
|
103
|
+
return s.findText = e.target.value, s;
|
|
104
|
+
});
|
|
105
|
+
}, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
|
|
106
|
+
e.stopPropagation();
|
|
107
|
+
} }), t.jsx(g, { selected: i.findOptions.reverse, onSelectToggle: (e) => {
|
|
108
|
+
k(!1, !1);
|
|
109
|
+
}, touchRippleRef: V, 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) => {
|
|
110
|
+
k(!0, !1);
|
|
111
|
+
}, touchRippleRef: H, label: "Next Match", shortcut: { key: "Enter" }, icon: m(i.findOptions.orientation !== b.Orientation.Column ? t.jsx(Te, {}) : t.jsx(ve, {})), disabled: !i.findText })] }), t.jsx(Q, { in: f, timeout: _, onExit: () => {
|
|
112
|
+
a.current?.focus();
|
|
113
|
+
}, children: t.jsxs(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [t.jsx(Z, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${R("#fff", v(5))}, ${R("#fff", v(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) => {
|
|
114
|
+
r((n) => {
|
|
115
|
+
const s = { ...n };
|
|
116
|
+
return s.replaceText = e.target.value, s;
|
|
117
|
+
});
|
|
118
|
+
}, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
|
|
119
|
+
e.stopPropagation();
|
|
120
|
+
} }), t.jsx(g, { onSelectToggle: (e) => {
|
|
121
|
+
k(!0, !0);
|
|
122
|
+
}, touchRippleRef: $, label: "Replace", shortcut: { key: "Enter" }, icon: m(t.jsx(me, {})), disabled: !i.findText }), t.jsx(g, { onSelectToggle: (e) => {
|
|
123
|
+
k(!0, !0, !0);
|
|
124
|
+
}, touchRippleRef: z, label: "Replace All", shortcut: { key: "Enter", modifiers: [j.Ctrl, j.Alt] }, icon: m(t.jsx(he, {})), disabled: !i.findText })] }) })] })] }), t.jsx(Q, { in: L, timeout: _, onExit: () => {
|
|
125
|
+
a.current?.focus();
|
|
126
|
+
}, 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: X >= 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: Y, onSelect: (e) => {
|
|
127
|
+
r((n) => {
|
|
128
|
+
const s = { ...n };
|
|
129
|
+
return s.scope = e, s;
|
|
130
|
+
});
|
|
131
|
+
} }), t.jsx(K, { label: "Search", value: i.findOptions.orientation !== b.Orientation.Column, options: Se, onSelect: (e) => {
|
|
132
|
+
r((n) => {
|
|
133
|
+
const s = { ...n };
|
|
134
|
+
return s.findOptions.orientation = e ? b.Orientation.Row : b.Orientation.Column, s;
|
|
135
|
+
});
|
|
136
|
+
} }), 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) => {
|
|
137
|
+
r((n) => {
|
|
138
|
+
const s = { ...n };
|
|
139
|
+
return s.findOptions.fields = [e], s;
|
|
140
|
+
});
|
|
141
|
+
} })] })] }) })] }) });
|
|
142
|
+
});
|
|
143
|
+
export {
|
|
144
|
+
Ee as FindReplaceWindow,
|
|
145
|
+
Y as ScopeOptions,
|
|
146
|
+
Ee as default
|
|
147
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
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 = { BESSELI: { s: "Returns the modified Bessel function In(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the Bessel function" } } }, BESSELJ: { s: "Returns the Bessel function Jn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the Bessel function" } } }, BESSELK: { s: "Returns the modified Bessel function Kn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the function" } } }, BESSELY: { s: "Returns the Bessel function Yn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the function" } } } };
|
|
8
|
+
export {
|
|
9
|
+
e as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as n, K as L, l as O, N as E, O as M, c as u, j as a, x as W, D as A, B as o, Q as J, R as K, J as h, U as Q, W as U, Y as f, p as y, _ as b, $ as j } from "./B0A2aLiKDPGGU4k-.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
const $ = n.memo((w) => {
|
|
9
|
+
const { title: S, onHide: C, autoFocusSel: N = ".range-input input", context: R, notifier: l = L, command: r, commands: c, ...v } = w, [T, d] = n.useState(!1), [g, m] = n.useState(!1), x = n.useRef(null), [V, D] = n.useReducer((e) => e + 1, 0), [F, { width: Y }] = O();
|
|
10
|
+
E(r);
|
|
11
|
+
const s = R ?? r.context(), t = s.table(), [B, H] = n.useState(() => t ? s.getNames().getRanges(t.getRange()) : null), I = n.useMemo(() => t?.getName() ?? "", [t]);
|
|
12
|
+
M(s.table(), { onAnchorCoordsChange(e) {
|
|
13
|
+
H(s.getNames().getRanges(e.getRange()));
|
|
14
|
+
}, onProtectedChange(e) {
|
|
15
|
+
D();
|
|
16
|
+
} });
|
|
17
|
+
const P = u((e) => {
|
|
18
|
+
s?.table().setName(e);
|
|
19
|
+
}, [s]), z = u((e) => {
|
|
20
|
+
s?.table().resize(e.at(0));
|
|
21
|
+
}, [s]);
|
|
22
|
+
let p = null;
|
|
23
|
+
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(W, { ref: x, title: S ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: N, onHide: C, onFocus: () => d(!0), onBlur: (e) => {
|
|
24
|
+
x?.current?.contains(e.relatedTarget) || d(!1);
|
|
25
|
+
}, PaperProps: { elevation: T ? 3 : 1 }, ...v, children: a.jsxs(A, { 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(o, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: s.table() ? 1 : 0 }, children: [a.jsx(o, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a.jsx(o, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: a.jsxs(o, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a.jsx(J, { formName: "name", defaultInput: I, value: t?.getName() ?? "No table", onChangeInput: P, onValidate: (e) => {
|
|
26
|
+
t && t.getName().toLowerCase() === e.toLowerCase() || s?.getNames().validateName(e);
|
|
27
|
+
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
28
|
+
g || e.target?.select(), m(!0);
|
|
29
|
+
} }), a.jsx(K, { formName: "range", value: B, onChangeInput: z, resolvedAddress: s.getNames().getRanges.bind(s.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
30
|
+
g || e.target?.select(), m(!0);
|
|
31
|
+
} })] }) }) }), a.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: [a.jsx(h, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a.jsx(Q, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
32
|
+
t.updateStyleOptions(e);
|
|
33
|
+
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
34
|
+
try {
|
|
35
|
+
t.setShowHeaders(e);
|
|
36
|
+
} catch (i) {
|
|
37
|
+
l.showError(i);
|
|
38
|
+
}
|
|
39
|
+
}, showTotalRow: t?.getShowTotals(), onShowTotalRowChange: (e) => {
|
|
40
|
+
try {
|
|
41
|
+
t.setShowTotals(e);
|
|
42
|
+
} catch (i) {
|
|
43
|
+
l.showError(i);
|
|
44
|
+
}
|
|
45
|
+
}, showFilterButton: t?.getFilter() ? t.getShowFilterButton() : null, onShowFilterButtonChange: (e) => {
|
|
46
|
+
try {
|
|
47
|
+
t.setShowFilterButton(e);
|
|
48
|
+
} catch (i) {
|
|
49
|
+
l.showError(i);
|
|
50
|
+
}
|
|
51
|
+
} }), a.jsx(o, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a.jsx(U, { table: t, styles: s.styles(), bodyStyle: s.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a.jsx(h, { orientation: "horizontal" }), a.jsxs(o, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a.jsx(f, { variant: b.Menuitem, command: c.getCommand("convertTableToRange"), commandState: t, icon: y(a.jsx(j, {})) }), a.jsx(f, { variant: b.Menuitem, commandState: t, command: c.getCommand("deleteTable"), icon: y(a.jsx(j, {})) })] })] })] }), p] }) });
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
$ as TableDetailsWindow,
|
|
55
|
+
$ as default
|
|
56
|
+
};
|