@sheetxl/studio-mui 0.1.98

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 (178) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +24 -0
  3. package/build/browser/cjs/4XrhSt2xtUIXkiCt.cjs +1516 -0
  4. package/build/browser/cjs/B3EvhaQf456RMc1Q.cjs +6 -0
  5. package/build/browser/cjs/B3kl467PN2cpvrfz.cjs +12 -0
  6. package/build/browser/cjs/B5LCoenQbQmzic16.cjs +314 -0
  7. package/build/browser/cjs/BBuyHZwFlDRvHzBH.cjs +7 -0
  8. package/build/browser/cjs/BGoG_ROASNB2owBR.cjs +28 -0
  9. package/build/browser/cjs/BJ6Da8vZLjAl44pz.cjs +6 -0
  10. package/build/browser/cjs/BL_UVvG75SFsFaT3.cjs +6 -0
  11. package/build/browser/cjs/BNDoTytIOGtVh5l9.cjs +6 -0
  12. package/build/browser/cjs/BQOyVCuOdwDja_VV.cjs +42 -0
  13. package/build/browser/cjs/BRiPktKUmeJipjaa.cjs +6 -0
  14. package/build/browser/cjs/BabbNVs5iKg49rfk.cjs +6 -0
  15. package/build/browser/cjs/BcOX5vODdThWbKrR.cjs +6 -0
  16. package/build/browser/cjs/BchlMljYmXDs0Ol2.cjs +6 -0
  17. package/build/browser/cjs/BmYZvm13acvbFhOu.cjs +6 -0
  18. package/build/browser/cjs/BmbsW1n0-CkF3ITF.cjs +6 -0
  19. package/build/browser/cjs/BnCUyGP_ERKmL3ZR.cjs +6 -0
  20. package/build/browser/cjs/BtP4E1_yhMjpfbr5.cjs +6 -0
  21. package/build/browser/cjs/C3E9wmSfmgYmXfJN.cjs +205 -0
  22. package/build/browser/cjs/C3Hl78e9qfEHxJYc.cjs +6 -0
  23. package/build/browser/cjs/CEvRH8aOx3etutK_.cjs +17 -0
  24. package/build/browser/cjs/CLZSdaBnKDfb142R.cjs +6 -0
  25. package/build/browser/cjs/CN1cS39WcNrcPVqS.cjs +129 -0
  26. package/build/browser/cjs/CSH1hUnHovjo8Lb8.cjs +6 -0
  27. package/build/browser/cjs/CTNt3asYQRA-MROc.cjs +47 -0
  28. package/build/browser/cjs/C_JZEtvgcli6T7Wg.cjs +11 -0
  29. package/build/browser/cjs/CbaYZmvS8u-p_Z8Z.cjs +6 -0
  30. package/build/browser/cjs/Cc-4c3DRm96wq5rj.cjs +12 -0
  31. package/build/browser/cjs/CnY6DbatGmPyylfU.cjs +20 -0
  32. package/build/browser/cjs/CqkQGfzNax6GmZFo.cjs +6 -0
  33. package/build/browser/cjs/D2AF0a4vbNKzFxzA.cjs +21 -0
  34. package/build/browser/cjs/D4y1iYdx8sdwQ50T.cjs +6 -0
  35. package/build/browser/cjs/D5cF1EnyvnPY2IxS.cjs +150 -0
  36. package/build/browser/cjs/DA1-OPTYQTepGKEg.cjs +11 -0
  37. package/build/browser/cjs/DJDMVDpUqlEKYLjt.cjs +6 -0
  38. package/build/browser/cjs/DLXLJ8SNNjwM5C-P.cjs +6 -0
  39. package/build/browser/cjs/DV8lOsZBgyx7MTBW.cjs +6 -0
  40. package/build/browser/cjs/DZAPn_d9mpvfRzsb.cjs +6 -0
  41. package/build/browser/cjs/DaicqO_9d1hYzyB_.cjs +11 -0
  42. package/build/browser/cjs/Dfh6eMCbAjW14fdh.cjs +6 -0
  43. package/build/browser/cjs/DhI2lgDZL8GqBejN.cjs +6 -0
  44. package/build/browser/cjs/Ds6s8fpzOZsd2m1r.cjs +6 -0
  45. package/build/browser/cjs/DvIWGmDT5uBVQ5zH.cjs +16 -0
  46. package/build/browser/cjs/DvLgu20RiaayrJcW.cjs +7 -0
  47. package/build/browser/cjs/Dvhwt25gyHzxQLrp.cjs +6 -0
  48. package/build/browser/cjs/DvwApJM_CVrlpLxn.cjs +6 -0
  49. package/build/browser/cjs/DwVYzo4a05DMfta_.cjs +28 -0
  50. package/build/browser/cjs/NYdqUauA5i2q33UZ.cjs +6 -0
  51. package/build/browser/cjs/S2Xfq-KDgoT7ipPC.cjs +25 -0
  52. package/build/browser/cjs/TOZQZr9ZZ_Q-jdQZ.cjs +6 -0
  53. package/build/browser/cjs/bJuLOalXTwrshZL3.cjs +16 -0
  54. package/build/browser/cjs/eh9refYW4Gm25cmW.cjs +6 -0
  55. package/build/browser/cjs/hKqcVeb_8_4M79xj.cjs +6 -0
  56. package/build/browser/cjs/index.cjs +7 -0
  57. package/build/browser/cjs/is17hbP-kpOIBRP3.cjs +6 -0
  58. package/build/browser/cjs/pNY789kHWwRQXqse.cjs +17 -0
  59. package/build/browser/cjs/qJcc3ALtLWml32LU.cjs +18 -0
  60. package/build/browser/cjs/vWgVoELLfZ2ff1xL.cjs +6 -0
  61. package/build/browser/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
  62. package/build/browser/esm/7Imk0owJj7oNHR7v.mjs +48 -0
  63. package/build/browser/esm/AuNwPf0DXe0twn35.mjs +1592 -0
  64. package/build/browser/esm/B1Kw9U_AxCk0Aq9f.mjs +59 -0
  65. package/build/browser/esm/B9l1_Tfw_tMhKCNB.mjs +437 -0
  66. package/build/browser/esm/B9winT3ff8rc4sbn.mjs +490 -0
  67. package/build/browser/esm/BEo9XX1sHmVjScSm.mjs +16 -0
  68. package/build/browser/esm/BGTcOBCyrTTlov_i.mjs +13399 -0
  69. package/build/browser/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
  70. package/build/browser/esm/BQSa7N7QMGysdZdU.mjs +3932 -0
  71. package/build/browser/esm/BVEuc_3fLG2GN34k.mjs +16 -0
  72. package/build/browser/esm/BVh9YUwiSov8wcyY.mjs +1708 -0
  73. package/build/browser/esm/BZt5yM_TvoPXqdeA.mjs +3867 -0
  74. package/build/browser/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
  75. package/build/browser/esm/BjUaiSvRZnas-HJW.mjs +16 -0
  76. package/build/browser/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
  77. package/build/browser/esm/BtMqJ5CRpKuAC4UQ.mjs +1486 -0
  78. package/build/browser/esm/BwvMR2cgGwFn8hAL.mjs +36 -0
  79. package/build/browser/esm/BxU3eVA-Adrnq7ZJ.mjs +1372 -0
  80. package/build/browser/esm/C00coampLNiXjWJJ.mjs +436 -0
  81. package/build/browser/esm/C6nh1rvYnAg2w2V2.mjs +838 -0
  82. package/build/browser/esm/C8gc149K34Zi2lP2.mjs +16 -0
  83. package/build/browser/esm/CGSkuCZY1EmTUNlQ.mjs +52 -0
  84. package/build/browser/esm/CKXzosgZX8Xe3l59.mjs +16 -0
  85. package/build/browser/esm/CNYANG0Z7mhGYo00.mjs +859 -0
  86. package/build/browser/esm/CV_FNw2i_aEc5nwA.mjs +16 -0
  87. package/build/browser/esm/CYSj0-zys2FKWgnb.mjs +18 -0
  88. package/build/browser/esm/CbTs5cvVaP1vPCYD.mjs +2248 -0
  89. package/build/browser/esm/CfAob8gGydmX1xQu.mjs +16 -0
  90. package/build/browser/esm/ChGigf2OPu7d44Km.mjs +16 -0
  91. package/build/browser/esm/CnzGN0S6zOfL_3SS.mjs +1358 -0
  92. package/build/browser/esm/CpyeUtXgDmrcMESB.mjs +52 -0
  93. package/build/browser/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
  94. package/build/browser/esm/CtrrmHx9YbrOithw.mjs +152 -0
  95. package/build/browser/esm/CzAM0pDdZ7sjGgn9.mjs +86 -0
  96. package/build/browser/esm/D0oVDcgRUMZ9MHzu.mjs +41 -0
  97. package/build/browser/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
  98. package/build/browser/esm/D78-3ghInxscHLVq.mjs +23 -0
  99. package/build/browser/esm/DEpR6b4DMs-va6RS.mjs +43734 -0
  100. package/build/browser/esm/DEsqE49cIQZ8AqCe.mjs +398 -0
  101. package/build/browser/esm/DGe70xvBhc62ZVZz.mjs +2410 -0
  102. package/build/browser/esm/DXapJ5_yR4E8vDaK.mjs +1685 -0
  103. package/build/browser/esm/DjAZeDxBIBZsRTm3.mjs +24 -0
  104. package/build/browser/esm/DttdPwwDTcRX4uwL.mjs +44 -0
  105. package/build/browser/esm/FXcO0MVElhw9cc3v.mjs +49 -0
  106. package/build/browser/esm/GpycqJcrwTRtjEqA.mjs +16 -0
  107. package/build/browser/esm/HCE-tMxyVd0m-PgN.mjs +16 -0
  108. package/build/browser/esm/OCdyQRicV8KxUwMt.mjs +16 -0
  109. package/build/browser/esm/UukTgmLv7or2mhlB.mjs +16 -0
  110. package/build/browser/esm/_cuE13TWr3oEoKGP.mjs +34 -0
  111. package/build/browser/esm/aIlK3Ybu-1T4WHPv.mjs +640 -0
  112. package/build/browser/esm/bFSkTthAEOn7gv5x.mjs +16 -0
  113. package/build/browser/esm/bOhN6up-rdLRp82s.mjs +5588 -0
  114. package/build/browser/esm/index.mjs +85 -0
  115. package/build/browser/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
  116. package/build/browser/esm/o6U2z4gZ7GE4QKZD.mjs +16 -0
  117. package/build/browser/esm/psav3cvsBQQczhPL.mjs +16 -0
  118. package/build/browser/esm/vn0iS301yg2hAbYd.mjs +51 -0
  119. package/build/licenses/dependencies.txt +1341 -0
  120. package/build/node/assets/style.css +1 -0
  121. package/build/node/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
  122. package/build/node/esm/B-Xlyl81h27-bnvO.mjs +16 -0
  123. package/build/node/esm/B1_NYsn5D8x9QedP.mjs +307 -0
  124. package/build/node/esm/BCA5bxOeDA8k1Bm1.mjs +16 -0
  125. package/build/node/esm/BEo9XX1sHmVjScSm.mjs +16 -0
  126. package/build/node/esm/BIfdVpnJR1TZwCPR.mjs +1378 -0
  127. package/build/node/esm/BIqDzNJtkm-dyH0v.mjs +154 -0
  128. package/build/node/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
  129. package/build/node/esm/BUOdfqhtCh8lhOhm.mjs +4000 -0
  130. package/build/node/esm/BYbE15S73xgn7S5E.mjs +88 -0
  131. package/build/node/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
  132. package/build/node/esm/BkyivirgeiDKFSjk.mjs +16 -0
  133. package/build/node/esm/Bm1RqNJ-XvHpJW9z.mjs +831 -0
  134. package/build/node/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
  135. package/build/node/esm/Bx-30HInllXS7M_J.mjs +41 -0
  136. package/build/node/esm/Bx3lQBEvcqhxffT-.mjs +1726 -0
  137. package/build/node/esm/BxsKlaBFnb5wNq6R.mjs +53 -0
  138. package/build/node/esm/C4PMhNAV0KpPsKFj.mjs +24 -0
  139. package/build/node/esm/C7x3L6HtPhZjSrrZ.mjs +471 -0
  140. package/build/node/esm/C8gc149K34Zi2lP2.mjs +16 -0
  141. package/build/node/esm/CK-kn1p9NGRVM_h7.mjs +16 -0
  142. package/build/node/esm/CKR6snAwSONs7kfL.mjs +19 -0
  143. package/build/node/esm/CKXzosgZX8Xe3l59.mjs +16 -0
  144. package/build/node/esm/CLE_RHHvsDeoZ9Zd.mjs +561 -0
  145. package/build/node/esm/CMKci_5THkcJ-w9a.mjs +80 -0
  146. package/build/node/esm/CVU9bu6AnxcgkEwq.mjs +13466 -0
  147. package/build/node/esm/CfAob8gGydmX1xQu.mjs +16 -0
  148. package/build/node/esm/ChGigf2OPu7d44Km.mjs +16 -0
  149. package/build/node/esm/CkvkuPSf4R_DqArg.mjs +5648 -0
  150. package/build/node/esm/CnBMj0oJAyr9ZbjP.mjs +23 -0
  151. package/build/node/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
  152. package/build/node/esm/Crx9i_8dm3OQsk_T.mjs +28 -0
  153. package/build/node/esm/CwUulbiMQH11aF4x.mjs +16 -0
  154. package/build/node/esm/D0Lh0V1tkdJPxZnI.mjs +392 -0
  155. package/build/node/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
  156. package/build/node/esm/D5bg3v_W8K9MVp0j.mjs +1711 -0
  157. package/build/node/esm/D8F08tiG98tM_voL.mjs +16 -0
  158. package/build/node/esm/DR7o1DOIK9zdiBgS.mjs +50 -0
  159. package/build/node/esm/DYEgm2kd3haV-Ml8.mjs +1246 -0
  160. package/build/node/esm/DfzhmhZ4I0Zurcqn.mjs +44 -0
  161. package/build/node/esm/Dg_ERnlsy5hwbzMA.mjs +1498 -0
  162. package/build/node/esm/Dt4cj_0sWgvt4FGj.mjs +92 -0
  163. package/build/node/esm/GpycqJcrwTRtjEqA.mjs +16 -0
  164. package/build/node/esm/LlkIFFfAjLiQ5Or6.mjs +3840 -0
  165. package/build/node/esm/OCdyQRicV8KxUwMt.mjs +16 -0
  166. package/build/node/esm/QATDL2FGAYcVnd33.mjs +49 -0
  167. package/build/node/esm/SvgA2TyqJYOzheuf.mjs +26 -0
  168. package/build/node/esm/VZ150KIUh5JVRqpk.mjs +52 -0
  169. package/build/node/esm/XRLHatWlgABiuBDS.mjs +52 -0
  170. package/build/node/esm/bFSkTthAEOn7gv5x.mjs +16 -0
  171. package/build/node/esm/index.mjs +44754 -0
  172. package/build/node/esm/lgtVRbg712G5Ba-x.mjs +60 -0
  173. package/build/node/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
  174. package/build/node/esm/psav3cvsBQQczhPL.mjs +16 -0
  175. package/build/node/esm/zWnN2OzbhzCc6T7u.mjs +86 -0
  176. package/build/package.json +84 -0
  177. package/build/types/index.d.ts +1848 -0
  178. package/package.json +100 -0
@@ -0,0 +1,154 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
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/index.js";
11
+ import { DialogContent as d, Box as u, TextField as f, InputAdornment as m, Collapse as g, MenuItem as x, FormControl as h, InputLabel as O, Select as C } from "@mui/material";
12
+ import { ArrowBack as y, ArrowUpward as b, ArrowForward as T, ArrowDownward as v } from "@mui/icons-material";
13
+ import { aj as k, a as R, P as E, ai as S, ak as w, al as F, q as I, am as D, E as P, an as K, ao as $, ap as j, aq as A, ar as M, as as B, p as L } from "./index.mjs";
14
+ const V = t((t2) => {
15
+ const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() => G(r2, a2));
16
+ l(() => {
17
+ g2(G(r2, a2));
18
+ }, [r2, a2]);
19
+ const y2 = E((e2) => {
20
+ g2(e2.target.value), d2?.(a2[e2.target.value]);
21
+ }, [d2, a2]), b2 = s(() => Object.keys(a2).map((n2) => e(x, { value: n2, children: n2 }, n2)), [a2]);
22
+ return n(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(C, { inputProps: { tabIndex: u2 }, value: m2, label: i2, onChange: y2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
23
+ }), W = { Workbook: "workbook", Sheet: "sheet" }, N = { enter: 140, exit: 140 }, H = { Formulas: k.Content.Formulas, Values: k.Content.Values, Notes: k.Content.Notes, Comments: k.Content.Comments }, z = { ...H };
24
+ delete z.Values;
25
+ const q = { "By Rows": true, "By Columns": false }, G = (e2, n2) => {
26
+ const t2 = Object.keys(n2);
27
+ for (let i2 = 0; i2 < t2.length; i2++) {
28
+ const o2 = t2[i2];
29
+ if (n2[o2] === e2) return o2;
30
+ }
31
+ }, U = t((t2) => {
32
+ const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: G2, onHide: U2, onFindOrReplace: X, ...J } = t2, Q = i(null), Y = i(null), Z = i(null), _ = i(null), ee = i(null), ne = i(null), te = (e2, n2) => {
33
+ if (!n2) return;
34
+ n2.start(e2, { center: false }), setTimeout(() => n2.stop(e2), 180);
35
+ }, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope: W.Sheet }), ge = E(async (e2, n2, t3, i2) => {
36
+ if (!X) return;
37
+ const o2 = { ...fe };
38
+ o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = t3 ? void 0 : 1, o2.replace = n2, n2 && fe.findOptions.fields?.[0] === k.Content.Values && (o2.findOptions.fields = [k.Content.Formulas]), o2.findOptions.reverse = !e2;
39
+ const l2 = await X({ autoFocus: i2, ...o2 });
40
+ pe(0 === l2);
41
+ }, [fe, X]);
42
+ l(() => {
43
+ pe(false);
44
+ }, [fe, le, se]);
45
+ const xe = E((e2, n2) => {
46
+ if (e2.keyCode === S.Enter) {
47
+ if (!fe.findText) return;
48
+ let t3 = true, i2 = false;
49
+ e2.shiftKey && (t3 = false), n2 ? (e2.ctrlKey && e2.altKey && (i2 = true), te(e2, i2 ? ne.current : ee.current)) : te(e2, t3 ? _.current : Z.current), ge(t3, n2, i2, false);
50
+ }
51
+ }, [fe]), he = i(null);
52
+ r(() => {
53
+ me((e2) => {
54
+ const n2 = { ...e2 };
55
+ n2.findText = x2 && x2.length > 0 ? x2 : e2.findText ?? "", oe(true), void 0 !== h2 && (n2.replaceText = h2), O2 && (n2.findOptions = { ...n2.findOptions, ...O2 }), n2.replaceText || (n2.replaceText = ""), n2.replaceOptions && (n2.replaceOptions = { ...n2.replaceOptions }), C2 && (n2.replaceOptions = { ...n2.replaceOptions, ...C2 }), fe.findOptions.fields?.[0] || (fe.findOptions.fields = [k.Content.Formulas]);
56
+ const t3 = !(!C2 && void 0 === h2);
57
+ return t3 && ae(t3), n2;
58
+ }), de || he.current?.focus();
59
+ }, [x2, h2, O2, C2]), l(() => {
60
+ se ? (fe.findOptions.fields[0], k.Content.Values) : oe(true);
61
+ }, [se]), l(() => {
62
+ if (ie && Q.current && fe.findText === Q.current.value) return Q.current === document.activeElement || Q.current.contains(document.activeElement) ? (Q.current?.select(), void oe(false)) : void Q.current.addEventListener("focus", () => {
63
+ Q.current?.select(), oe(false);
64
+ }, { once: true });
65
+ }, [ie, fe]);
66
+ const [Oe, { width: Ce }] = a();
67
+ return e(w, { title: G2 ?? (se ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: he, onHide: U2, onFocus: () => ue(true), onBlur: () => {
68
+ ue(false), pe(false);
69
+ }, PaperProps: { elevation: de ? 3 : 1 }, ...J, children: n(d, { dividers: true, ref: Oe, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
70
+ if ("h" === e2.key && e2.ctrlKey) ae(true), Q.current?.contains(document.activeElement) && Y.current?.focus();
71
+ else if ("f" === e2.key && e2.ctrlKey) Q.current?.focus();
72
+ else if ("c" === e2.key && e2.altKey) me((e3) => {
73
+ const n2 = { ...e3 };
74
+ return n2.findOptions.matchCase = !e3.findOptions.matchCase, n2;
75
+ });
76
+ else if ("e" === e2.key && e2.altKey) me((e3) => {
77
+ const n2 = { ...e3 };
78
+ return n2.findOptions.matchEntireCell = !e3.findOptions.matchEntireCell, n2;
79
+ });
80
+ else {
81
+ if ("r" !== e2.key || !e2.altKey) return;
82
+ me((e3) => {
83
+ const n2 = { ...e3 };
84
+ return n2.findOptions.useRegex = !e3.findOptions.useRegex, n2;
85
+ });
86
+ }
87
+ e2.preventDefault();
88
+ }, 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(F, { selected: le, onSelectToggle: (e2) => {
89
+ re(e2);
90
+ }, preventFocus: true, label: "Toggle Additional Options", icon: I(e(D, {})) }), e(F, { selected: se, onSelectToggle: (e2) => {
91
+ ae(e2);
92
+ }, preventFocus: true, label: "Toggle Replace", icon: I(e(K, {})), shortcut: { key: se ? "F" : "H", modifiers: [P.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: Ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: Q, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(m, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(F, { selected: fe.findOptions.matchCase, onSelectToggle: (e2) => {
93
+ me((n2) => {
94
+ const t3 = { ...n2 };
95
+ return t3.findOptions.matchCase = e2, t3;
96
+ });
97
+ }, label: "Match Case", shortcut: { key: "C", modifiers: [P.Alt] }, icon: I(e($, {})) }), e(F, { selected: fe.findOptions.matchEntireCell, onSelectToggle: (e2) => {
98
+ me((n2) => {
99
+ const t3 = { ...n2 };
100
+ return t3.findOptions.matchEntireCell = e2, t3;
101
+ });
102
+ }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [P.Alt] }, icon: I(e(j, {})) }), e(F, { selected: fe.findOptions.useRegex, onSelectToggle: (e2) => {
103
+ me((n2) => {
104
+ const t3 = { ...n2 };
105
+ return t3.findOptions.useRegex = e2, t3;
106
+ });
107
+ }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [P.Alt] }, icon: I(e(A, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 } }, value: fe.findText ?? "", onChange: (e2) => {
108
+ me((n2) => {
109
+ const t3 = { ...n2 };
110
+ return t3.findText = e2.target.value, t3;
111
+ });
112
+ }, onKeyDown: (e2) => xe(e2, false), onContextMenu: (e2) => {
113
+ e2.stopPropagation();
114
+ } }), e(F, { selected: fe.findOptions.reverse, onSelectToggle: (e2) => {
115
+ ge(false, false);
116
+ }, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [P.Shift] }, icon: I(fe.findOptions.orientation !== R.Orientation.Column ? e(y, {}) : e(b, {})), disabled: !fe.findText }), e(F, { selected: !fe.findOptions.reverse, onSelectToggle: (e2) => {
117
+ ge(true, false);
118
+ }, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon: I(fe.findOptions.orientation !== R.Orientation.Column ? e(T, {}) : e(v, {})), disabled: !fe.findText })] }), e(g, { in: se, timeout: N, onExit: () => {
119
+ Q.current?.focus();
120
+ }, 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: Y, 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: fe.replaceText ?? "", onChange: (e2) => {
121
+ me((n2) => {
122
+ const t3 = { ...n2 };
123
+ return t3.replaceText = e2.target.value, t3;
124
+ });
125
+ }, onKeyDown: (e2) => xe(e2, true), onContextMenu: (e2) => {
126
+ e2.stopPropagation();
127
+ } }), e(F, { onSelectToggle: (e2) => {
128
+ ge(true, true);
129
+ }, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon: I(e(M, {})), disabled: !fe.findText }), e(F, { onSelectToggle: (e2) => {
130
+ ge(true, true, true);
131
+ }, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [P.Ctrl, P.Alt] }, icon: I(e(B, {})), disabled: !fe.findText })] }) })] })] }), e(g, { in: le, timeout: N, onExit: () => {
132
+ Q.current?.focus();
133
+ }, 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(L, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: Ce >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(V, { label: "Within", value: fe.scope, options: W, onSelect: (e2) => {
134
+ me((n2) => {
135
+ const t3 = { ...n2 };
136
+ return t3.scope = e2, t3;
137
+ });
138
+ } }), e(V, { label: "Search", value: fe.findOptions.orientation !== R.Orientation.Column, options: q, onSelect: (e2) => {
139
+ me((n2) => {
140
+ const t3 = { ...n2 };
141
+ return t3.findOptions.orientation = e2 ? R.Orientation.Row : R.Orientation.Column, t3;
142
+ });
143
+ } }), e(V, { label: "Look in", value: se && fe.findOptions.fields?.[0] === k.Content.Values ? k.Content.Formulas : fe.findOptions.fields?.[0], options: se ? z : H, onSelect: (e2) => {
144
+ me((n2) => {
145
+ const t3 = { ...n2 };
146
+ return t3.findOptions.fields = [e2], t3;
147
+ });
148
+ } })] })] }) })] }) });
149
+ });
150
+ export {
151
+ U as FindReplaceWindow,
152
+ W as ScopeOptions,
153
+ U as default
154
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
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
+ /**
8
+ * @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
9
+ *
10
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
+ * License: The license can be found at https://www.sheetxl.com/license.
12
+ */
13
+ const e = { BIN2DEC: { s: "Converts a binary number to decimal", p: { number: { d: "is the binary number you want to convert" } } }, BIN2HEX: { s: "Converts a binary number to hexadecimal", p: { number: { d: "is the binary number you want to convert" }, places: { d: "is the number of characters to use" } } }, BIN2OCT: { s: "Converts a binary number to octal", p: { number: { d: "is the binary number you want to convert" }, places: { d: "is the number of characters to use" } } }, BITAND: { s: "Returns a bitwise 'And' of two numbers", p: { number1: { d: "is the decimal representation of the binary number you want to evaluate" }, number2: { d: "is the decimal representation of the binary number you want to evaluate" } } }, BITLSHIFT: { s: "Returns a number shifted left by shift_amount bits", p: { number: { d: "is the decimal representation of the binary number you want to evaluate" }, shiftAmount: { d: "is the number of bits that you want to shift Number left by" } } }, BITOR: { s: "Returns a bitwise 'Or' of two numbers", p: { number1: { d: "is the decimal representation of the binary number you want to evaluate" }, number2: { d: "is the decimal representation of the binary number you want to evaluate" } } }, BITRSHIFT: { s: "Returns a number shifted right by shift_amount bits", p: { number: { d: "is the decimal representation of the binary number you want to evaluate" }, shiftAmount: { d: "is the number of bits that you want to shift Number left by" } } }, BITXOR: { s: "Returns a bitwise 'Exclusive Or' of two numbers", p: { number1: { d: "is the decimal representation of the binary number you want to evaluate" }, number2: { d: "is the decimal representation of the binary number you want to evaluate" } } }, DEC2BIN: { s: "Converts a decimal number to binary", p: { number: { d: "is the decimal integer you want to convert" }, places: { d: "is the number of characters to use" } } }, DEC2HEX: { s: "Converts a decimal number to hexadecimal", p: { number: { d: "is the decimal integer you want to convert" }, places: { d: "is the number of characters to use" } } }, DEC2OCT: { s: "Converts a decimal number to octal", p: { number: { d: "is the decimal integer you want to convert" }, places: { d: "is the number of characters to use" } } }, HEX2BIN: { s: "Converts a Hexadecimal number to binary", p: { number: { d: "is the hexadecimal number you want to convert" }, places: { d: "is the number of characters to use" } } }, HEX2DEC: { s: "Converts a hexadecimal number to decimal", p: { number: { d: "is the hexadecimal number you want to convert" } } }, HEX2OCT: { s: "Converts a hexadecimal number to octal", p: { number: { d: "is the hexadecimal number you want to convert" }, places: { d: "is the number of characters to use" } } }, OCT2BIN: { s: "Converts an octal number to binary", p: { number: { d: "is the octal number you want to convert" }, places: { d: "is the number of characters to use" } } }, OCT2DEC: { s: "Converts an octal number to decimal", p: { number: { d: "is the octal number you want to convert" } } }, OCT2HEX: { s: "Converts an octal number to hexadecimal", p: { number: { d: "is the octal number you want to convert" }, places: { d: "is the number of characters to use" } } } };
14
+ export {
15
+ e as default
16
+ };