@sheetxl/studio-mui 0.7.6 → 0.7.7

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.
Files changed (51) hide show
  1. package/LICENSE.md +1 -1
  2. package/browser/cjs/BCf8BQb2c8ANexW4.cjs +7 -0
  3. package/browser/cjs/BJ4pZo7s81ynDlzw.cjs +6 -0
  4. package/browser/cjs/{-u6vWH9DiYlO1rsa.cjs → Bf70UQlMT3b0NoOZ.cjs} +1 -1
  5. package/browser/cjs/Bpq9GrV7al7xxJ_d.cjs +6 -0
  6. package/browser/cjs/BxlQ6aLh5_jUvk9w.cjs +20 -0
  7. package/browser/cjs/{DefYX_aeMZivbpEt.cjs → CJSNNa8ySxzuEmoy.cjs} +2 -2
  8. package/browser/cjs/{Ce6JLd3qejgMgM3r.cjs → CUND2W1xMwqPOHwD.cjs} +3 -3
  9. package/browser/cjs/{7MV1n9Y0yXU0hKpM.cjs → Cg95aBJ4kuUq7jrz.cjs} +1 -1
  10. package/browser/cjs/Dcoq8P2O8-40waHl.cjs +6 -0
  11. package/browser/cjs/{B8-dSgXI2XZKFvtp.cjs → DeoOsY5TkIAydt9W.cjs} +2 -2
  12. package/browser/cjs/index.cjs +3 -3
  13. package/browser/cjs/{BdNRaXTgqRzPmg0L.cjs → j0lD5RrJ86CRlUNT.cjs} +2 -2
  14. package/browser/esm/{BnVbG5kg41edf8oz.mjs → 7tCRjNmDM5kf3BFa.mjs} +2 -2
  15. package/browser/esm/{Dg_NRblGOcetqhnC.mjs → BWxmPJd4f8qZMxaa.mjs} +4 -4
  16. package/browser/esm/{YfJJd16cfjuXpb8G.mjs → BbHGWXif6ytyfyHI.mjs} +1 -1
  17. package/browser/esm/{yQgfM4ehXrfnEoUK.mjs → BkhHyCmy1MwVFS1b.mjs} +2 -2
  18. package/browser/esm/{DVSjscO7zuDsOD4v.mjs → Bo3cXzeDcP_Q9YvX.mjs} +2 -2
  19. package/browser/esm/CRDu7VFAa8NGcoHj.mjs +49 -0
  20. package/browser/esm/{nwvZlIH9rheqctQz.mjs → Cd02kMBZDsozIA98.mjs} +12 -12
  21. package/browser/esm/CzdBzjYgP1i3pkPL.mjs +4455 -0
  22. package/browser/esm/DFppS_p4spncePDm.mjs +156 -0
  23. package/browser/esm/{miaBr4cu9WKLs8Is.mjs → db-2uDA7mYS4QpHj.mjs} +1 -1
  24. package/browser/esm/index.mjs +38 -37
  25. package/browser/esm/{CKLhWrNo1E4r3pG7.mjs → nzc1811Pk5-sKDu5.mjs} +7 -7
  26. package/licenses/dependencies.txt +75 -108
  27. package/node/assets/style.css +1 -1
  28. package/node/esm/BVKo3uc0IreLNkkN.mjs +157 -0
  29. package/node/esm/{Dln5o1FP_HWPs0Uf.mjs → BfnEq4EhLf8jJ0Gp.mjs} +1 -1
  30. package/node/esm/{CxbA2L1Ap9NSJcxm.mjs → BgR1PWucIb0Zucr4.mjs} +1 -1
  31. package/node/esm/{B9TRK2jd_Ki2RifT.mjs → BimlBylqyslj9fNg.mjs} +1 -1
  32. package/node/esm/{BTp8XtWh47Y1g1MM.mjs → BnGsbrQwjcaUFAdt.mjs} +13 -13
  33. package/node/esm/{CNCYE_ff8SnJJMPN.mjs → CQhaL28vV1X6Xt2N.mjs} +4 -4
  34. package/node/esm/{qpKmKMfv4DDofXKf.mjs → DB2ryaj4_Y8Lgyy_.mjs} +1 -1
  35. package/node/esm/{COoX8Ir66wNuWJ_m.mjs → X3qO0PKREgY9FMZU.mjs} +8 -8
  36. package/node/esm/index.mjs +1308 -1262
  37. package/node/esm/{CN79Z_qqLiF3V5r0.mjs → rOozeXREjiU8jjPd.mjs} +14 -14
  38. package/package.json +15 -16
  39. package/types/index.d.ts +17 -7
  40. package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +0 -20
  41. package/browser/cjs/BEmcHbiMOFhIa91S.cjs +0 -6
  42. package/browser/cjs/D7AH724IJJvos02e.cjs +0 -7
  43. package/browser/cjs/KOj1qev47_vzzRFV.cjs +0 -6
  44. package/browser/cjs/St8H4B5iT2fsqOb7.cjs +0 -6
  45. package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +0 -6
  46. package/browser/esm/BNxVvFkY3b2mERJf.mjs +0 -64
  47. package/browser/esm/CJsYe8TqU6tqj4UH.mjs +0 -154
  48. package/browser/esm/DdLujAMc-Cefddif.mjs +0 -49
  49. package/browser/esm/beUKtp_qQMnuYcVk.mjs +0 -4452
  50. package/node/esm/BcB8nCbI5HW5jv5q.mjs +0 -65
  51. package/node/esm/C5WzmLTAphEQU3CU.mjs +0 -155
@@ -1,65 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
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
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
8
- import { memo as o, useState as n, useRef as i, useReducer as a, useMemo as l } from "react";
9
- import { useMeasure as r } from "react-use";
10
- import { DialogContent as s, Box as c } from "@mui/material";
11
- import { useCommand as d, useCallbackRef as m, useNotifier as g, CommandButtonType as p } from "@sheetxl/utils-react";
12
- import { InternalWindow as h, ExhibitDivider as u, CommandButton as x } from "@sheetxl/utils-mui";
13
- import { useModelListener as f } from "@sheetxl/react";
14
- import { NamedInput as y, RangeInput as b, TableStyleOptionsPanel as w, TableStylePreview as S } from "./index.mjs";
15
- const C = o((o2) => {
16
- const { title: C2, onHide: N, autoFocusSel: v = ".range-input input", context: R, command: T, commands: F, ...D } = o2, [H, B] = n(false), [I, P] = n(false), j = i(null), [z, L] = a((e2) => e2 + 1, 0), [O, { width: E }] = r();
17
- d(T);
18
- const A = R ?? T.context(), M = A.table(), [V, W] = n(() => M ? A.getNames().getRanges(M.getRange()) : null), k = l(() => M?.getName() ?? "", [M]);
19
- f(A.table(), { onAnchorCoordsChange(e2) {
20
- W(A.getNames().getRanges(e2.getRange()));
21
- }, onProtectedChange(e2) {
22
- L();
23
- } });
24
- const q = m((e2) => {
25
- A?.table().setName(e2);
26
- }, [A]), G = m((e2) => {
27
- A?.table().resize(e2.at(0));
28
- }, [A]);
29
- let J = null;
30
- A.table() || (J = e("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: e("div", { children: "No table selected" }) }));
31
- const K = g();
32
- return e(h, { ref: j, title: C2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: v, onHide: N, onFocus: () => B(true), onBlur: (e2) => {
33
- j?.current?.contains(e2.relatedTarget) || B(false);
34
- }, PaperProps: { elevation: H ? 3 : 1 }, ...D, children: t(s, { dividers: true, ref: O, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, children: [t(c, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: A.table() ? 1 : 0 }, children: [e(c, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: e(c, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2) }, children: t(c, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [e(y, { formName: "name", defaultInput: k, value: M?.getName() ?? "No table", onChangeInput: q, onValidate: (e2) => {
35
- M && M.getName().toLowerCase() === e2.toLowerCase() || A?.getNames().validateName(e2);
36
- }, disabled: M?.isProtected() ?? true, onFocus: (e2) => {
37
- I || e2.target?.select(), P(true);
38
- } }), e(b, { formName: "range", value: V, onChangeInput: G, resolvedAddress: A.getNames().getRanges.bind(A.getNames()), disabled: M?.isProtected() ?? true, onFocus: (e2) => {
39
- I || e2.target?.select(), P(true);
40
- } })] }) }) }), t(c, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(u, { orientation: "horizontal", sx: { marginTop: (e2) => e2.spacing(1.5), marginBottom: (e2) => e2.spacing(0.75) } }), e(w, { disabled: M?.isProtected(), styleOptions: M?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
41
- M.updateStyleOptions(e2);
42
- }, showHeaderRow: M?.getShowHeaders(), onShowHeaderRowChange: (e2) => {
43
- try {
44
- M.setShowHeaders(e2);
45
- } catch (e3) {
46
- K.showError(e3);
47
- }
48
- }, showTotalRow: M?.getShowTotals(), onShowTotalRowChange: (e2) => {
49
- try {
50
- M.setShowTotals(e2);
51
- } catch (e3) {
52
- K.showError(e3);
53
- }
54
- }, showFilterButton: M?.getFilter() ? M.getShowFilterButton() : null, onShowFilterButtonChange: (e2) => {
55
- try {
56
- M.setShowFilterButton(e2);
57
- } catch (e3) {
58
- K.showError(e3);
59
- }
60
- } }), e(c, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e2) => e2.spacing(2), marginBottom: (e2) => e2.spacing(1) }, children: e(S, { table: M, styles: A.styles(), bodyStyle: A.bodyStyle(), cellHeight: 30, isLive: true }) }), e(u, { orientation: "horizontal" }), t(c, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [e(x, { variant: p.Menuitem, command: F.getCommand("convertTableToRange"), commandState: M }), e(x, { variant: p.Menuitem, commandState: M, command: F.getCommand("deleteTable") })] })] })] }), J] }) });
61
- });
62
- export {
63
- C as TableDetailsWindow,
64
- C as default
65
- };
@@ -1,155 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
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
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
8
- import { memo as t, useRef as i, useState as o, useEffect as l, useLayoutEffect as r, useMemo as s } from "react";
9
- import { useMeasure as a } from "react-use";
10
- import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles";
11
- import { DialogContent as d, Box as u, TextField as f, InputAdornment as g, Collapse as m, MenuItem as x, FormControl as h, InputLabel as O, Select as y } from "@mui/material";
12
- import { ICell as C, IRange as b } from "@sheetxl/sdk";
13
- import { useCallbackRef as T, KeyCodes as v, DynamicIcon as R, KeyModifiers as k } from "@sheetxl/utils-react";
14
- import { InternalWindow as F, ExhibitOptionButton as w, ExhibitDivider as E } from "@sheetxl/utils-mui";
15
- const K = t((t2) => {
16
- const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [g2, m2] = o(() => $(r2, a2));
17
- l(() => {
18
- m2($(r2, a2));
19
- }, [r2, a2]);
20
- const C2 = T((e2) => {
21
- m2(e2.target.value), d2?.(a2[e2.target.value]);
22
- }, [d2, a2]), b2 = s(() => Object.keys(a2).map((n2) => e(x, { value: n2, children: n2 }, n2)), [a2]);
23
- return n(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(y, { inputProps: { tabIndex: u2 }, value: g2, label: i2, onChange: C2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
24
- }), S = { Workbook: "workbook", Sheet: "sheet" }, I = { enter: 140, exit: 140 }, D = { Formulas: C.Content.Formulas, Values: C.Content.Values, Notes: C.Content.Notes, Comments: C.Content.Comments }, A = { ...D };
25
- delete A.Values;
26
- const P = { "By Rows": true, "By Columns": false }, $ = (e2, n2) => {
27
- const t2 = Object.keys(n2);
28
- for (let i2 = 0; i2 < t2.length; i2++) {
29
- const o2 = t2[i2];
30
- if (n2[o2] === e2) return o2;
31
- }
32
- }, B = t((t2) => {
33
- const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: y2, title: $2, onHide: B2, onFindOrReplace: M, ...W } = t2, L = i(null), V = i(null), N = i(null), j = i(null), H = i(null), z = i(null), U = (e2, n2) => {
34
- if (!n2) return;
35
- n2.start(e2, { center: false }), setTimeout(() => n2.stop(e2), 180);
36
- }, [G, X] = o(false), [q, J] = o(false), [Q, Y] = o(s2), [Z, _] = o(false), [ee, ne] = o(false), [te, ie] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: b.Orientation.Row, fields: [C.Content.Formulas] }, scope: S.Sheet }), oe = T(async (e2, n2, t3, i2) => {
37
- if (!M) return;
38
- const o2 = { ...te };
39
- o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = t3 ? void 0 : 1, o2.replace = n2, n2 && te.findOptions.fields?.[0] === C.Content.Values && (o2.findOptions.fields = [C.Content.Formulas]), o2.findOptions.reverse = !e2;
40
- const l2 = await M({ autoFocus: i2, ...o2 });
41
- _(0 === l2);
42
- }, [te, M]);
43
- l(() => {
44
- _(false);
45
- }, [te, q, Q]);
46
- const le = T((e2, n2) => {
47
- if (e2.keyCode === v.Enter) {
48
- if (!te.findText) return;
49
- let t3 = true, i2 = false;
50
- e2.shiftKey && (t3 = false), n2 ? (e2.ctrlKey && e2.altKey && (i2 = true), U(e2, i2 ? z.current : H.current)) : U(e2, t3 ? j.current : N.current), oe(t3, n2, i2, false);
51
- }
52
- }, [te]), re = i(null);
53
- r(() => {
54
- ie((e2) => {
55
- const n2 = { ...e2 };
56
- n2.findText = x2 && x2.length > 0 ? x2 : e2.findText ?? "", X(true), void 0 !== h2 && (n2.replaceText = h2), O2 && (n2.findOptions = { ...n2.findOptions, ...O2 }), n2.replaceText || (n2.replaceText = ""), n2.replaceOptions && (n2.replaceOptions = { ...n2.replaceOptions }), y2 && (n2.replaceOptions = { ...n2.replaceOptions, ...y2 }), te.findOptions.fields?.[0] || (te.findOptions.fields = [C.Content.Formulas]);
57
- const t3 = !(!y2 && void 0 === h2);
58
- return t3 && Y(t3), n2;
59
- }), ee || re.current?.focus();
60
- }, [x2, h2, O2, y2]), l(() => {
61
- Q ? (te.findOptions.fields[0], C.Content.Values) : X(true);
62
- }, [Q]), l(() => {
63
- if (G && L.current && te.findText === L.current.value) return L.current === document.activeElement || L.current.contains(document.activeElement) ? (L.current?.select(), void X(false)) : void L.current.addEventListener("focus", () => {
64
- L.current?.select(), X(false);
65
- }, { once: true });
66
- }, [G, te]);
67
- const [se, { width: ae }] = a();
68
- return e(F, { ref: re, title: $2 ?? (Q ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: B2, onFocus: () => ne(true), onBlur: () => {
69
- ne(false), _(false);
70
- }, PaperProps: { elevation: ee ? 3 : 1 }, ...W, children: n(d, { dividers: true, ref: se, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
71
- if ("h" === e2.key && e2.ctrlKey) Y(true), L.current?.contains(document.activeElement) && V.current?.focus();
72
- else if ("f" === e2.key && e2.ctrlKey) L.current?.focus();
73
- else if ("c" === e2.key && e2.altKey) ie((e3) => {
74
- const n2 = { ...e3 };
75
- return n2.findOptions.matchCase = !e3.findOptions.matchCase, n2;
76
- });
77
- else if ("e" === e2.key && e2.altKey) ie((e3) => {
78
- const n2 = { ...e3 };
79
- return n2.findOptions.matchEntireCell = !e3.findOptions.matchEntireCell, n2;
80
- });
81
- else {
82
- if ("r" !== e2.key || !e2.altKey) return;
83
- ie((e3) => {
84
- const n2 = { ...e3 };
85
- return n2.findOptions.useRegex = !e3.findOptions.useRegex, n2;
86
- });
87
- }
88
- e2.preventDefault();
89
- }, children: [n(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(w, { selected: q, onSelectToggle: (e2) => {
90
- J(e2);
91
- }, preventFocus: true, label: "Toggle Additional Options", icon: e(R, { iconKey: "FindOptions" }) }), e(w, { selected: Q, onSelectToggle: (e2) => {
92
- Y(e2);
93
- }, preventFocus: true, label: "Toggle Replace", icon: e(R, { iconKey: "FindReplaceToggle" }), shortcut: { key: Q ? "F" : "H", modifiers: [k.Ctrl] } })] }), n(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: ae > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: L, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(g, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(w, { selected: te.findOptions.matchCase, onSelectToggle: (e2) => {
94
- ie((n2) => {
95
- const t3 = { ...n2 };
96
- return t3.findOptions.matchCase = e2, t3;
97
- });
98
- }, label: "Match Case", shortcut: { key: "C", modifiers: [k.Alt] }, icon: e(R, { iconKey: "FindCaseSensitive" }) }), e(w, { selected: te.findOptions.matchEntireCell, onSelectToggle: (e2) => {
99
- ie((n2) => {
100
- const t3 = { ...n2 };
101
- return t3.findOptions.matchEntireCell = e2, t3;
102
- });
103
- }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [k.Alt] }, icon: e(R, { iconKey: "FindWholeWord" }) }), e(w, { selected: te.findOptions.useRegex, onSelectToggle: (e2) => {
104
- ie((n2) => {
105
- const t3 = { ...n2 };
106
- return t3.findOptions.useRegex = e2, t3;
107
- });
108
- }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [k.Alt] }, icon: e(R, { iconKey: "FindRegEx" }) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => Z ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => Z ? `${e2.palette.error.main} !important` : void 0 } }, value: te.findText ?? "", onChange: (e2) => {
109
- ie((n2) => {
110
- const t3 = { ...n2 };
111
- return t3.findText = e2.target.value, t3;
112
- });
113
- }, onKeyDown: (e2) => le(e2, false), onContextMenu: (e2) => {
114
- e2.stopPropagation();
115
- } }), e(w, { selected: te.findOptions.reverse, onSelectToggle: (e2) => {
116
- oe(false, false);
117
- }, touchRippleRef: N, label: "", shortcut: { key: "Enter", modifiers: [k.Shift] }, icon: e(R, { iconKey: te.findOptions.orientation !== b.Orientation.Column ? "ArrowBack" : "ArrowUpward" }), disabled: !te.findText }), e(w, { selected: !te.findOptions.reverse, onSelectToggle: (e2) => {
118
- oe(true, false);
119
- }, touchRippleRef: j, label: "Next Match", shortcut: { key: "Enter" }, icon: e(R, { iconKey: te.findOptions.orientation !== b.Orientation.Column ? "ArrowForward" : "ArrowDownward" }), disabled: !te.findText })] }), e(m, { in: Q, timeout: I, onExit: () => {
120
- L.current?.focus();
121
- }, children: n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { ref: V, className: "input", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1) }, value: te.replaceText ?? "", onChange: (e2) => {
122
- ie((n2) => {
123
- const t3 = { ...n2 };
124
- return t3.replaceText = e2.target.value, t3;
125
- });
126
- }, onKeyDown: (e2) => le(e2, true), onContextMenu: (e2) => {
127
- e2.stopPropagation();
128
- } }), e(w, { onSelectToggle: (e2) => {
129
- oe(true, true);
130
- }, touchRippleRef: H, label: "Replace", shortcut: { key: "Enter" }, icon: e(R, { iconKey: "FindReplace" }), disabled: !te.findText }), e(w, { onSelectToggle: (e2) => {
131
- oe(true, true, true);
132
- }, touchRippleRef: z, label: "Replace All", shortcut: { key: "Enter", modifiers: [k.Ctrl, k.Alt] }, icon: e(R, { iconKey: "FindReplaceAll" }), disabled: !te.findText })] }) })] })] }), e(m, { in: q, timeout: I, onExit: () => {
133
- L.current?.focus();
134
- }, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(E, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: ae >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(K, { label: "Within", value: te.scope, options: S, onSelect: (e2) => {
135
- ie((n2) => {
136
- const t3 = { ...n2 };
137
- return t3.scope = e2, t3;
138
- });
139
- } }), e(K, { label: "Search", value: te.findOptions.orientation !== b.Orientation.Column, options: P, onSelect: (e2) => {
140
- ie((n2) => {
141
- const t3 = { ...n2 };
142
- return t3.findOptions.orientation = e2 ? b.Orientation.Row : b.Orientation.Column, t3;
143
- });
144
- } }), e(K, { label: "Look in", value: Q && te.findOptions.fields?.[0] === C.Content.Values ? C.Content.Formulas : te.findOptions.fields?.[0], options: Q ? A : D, onSelect: (e2) => {
145
- ie((n2) => {
146
- const t3 = { ...n2 };
147
- return t3.findOptions.fields = [e2], t3;
148
- });
149
- } })] })] }) })] }) });
150
- });
151
- export {
152
- B as FindReplaceWindow,
153
- S as ScopeOptions,
154
- B as default
155
- };