@sheetxl/studio-vanilla 0.3.4 → 0.3.6

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 (197) hide show
  1. package/browser/cjs/3JKPVnbyR3hJBHBj.cjs +6 -0
  2. package/browser/cjs/B1_gRcAH1cv26X_U.cjs +301 -0
  3. package/browser/cjs/B2fgcYTdhA0facdy.cjs +6 -0
  4. package/browser/cjs/B5cmz4f50xr5iF-S.cjs +19 -0
  5. package/browser/cjs/B7eLEpR9cmunfRfq.cjs +6 -0
  6. package/browser/cjs/BDUaerzhOJJZeQgS.cjs +6 -0
  7. package/browser/cjs/BDcLV5_cJTh8yhJI.cjs +7 -0
  8. package/browser/cjs/{CdVKz1bz20BYztuB.cjs → BOSNEoFPpJAjkRsv.cjs} +1 -1
  9. package/browser/cjs/{BDmE5OFneHwyeeiD.cjs → BSfmlz8MvlIKFx_N.cjs} +4 -4
  10. package/browser/cjs/Bdhft6pu1-bwMbfv.cjs +12 -0
  11. package/browser/cjs/BmbGW13BR2649OAV.cjs +6 -0
  12. package/browser/cjs/{DzE824T4cXRcKowY.cjs → Bu6q4vuUt_6LDbk_.cjs} +1 -1
  13. package/browser/cjs/{DD0VHDU8F1FiLKcs.cjs → CXe_6K7OT1AVSgAV.cjs} +1 -1
  14. package/browser/cjs/ChqJwXboF-6-bjIC.cjs +6 -0
  15. package/browser/cjs/CyA00uY0ivUSWJ17.cjs +6 -0
  16. package/browser/cjs/D1jsD18kKrFBRLo8.cjs +12 -0
  17. package/browser/cjs/{D-I49Eh-SQg7zJYX.cjs → DC0sGYXEVcjL3fEu.cjs} +1 -1
  18. package/browser/cjs/{BTgA_stiR3dZAHop.cjs → DQJ0sG5gEZSPPLGp.cjs} +2 -2
  19. package/browser/cjs/{WPXWuf9j-uwazW31.cjs → DUIyD1-nWzOytYDo.cjs} +2 -2
  20. package/browser/cjs/{yZrSgyFKPqsiym7z.cjs → D_RushRsBoa4Hd6w.cjs} +2 -2
  21. package/browser/cjs/{46C8cTP5D1fDfsPs.cjs → D_gx4EJ1Z1jqCpC2.cjs} +1 -1
  22. package/browser/cjs/Dgv9C5kP5-0zdZ_n.cjs +6 -0
  23. package/browser/cjs/{BB5pxJh1jhHsvVZ1.cjs → Dp_f-iB1lirYu5mz.cjs} +1 -1
  24. package/browser/cjs/P2nQEqe-ae2Lk91E.cjs +11 -0
  25. package/browser/cjs/{CpPM7Ir1EZB_8bER.cjs → SvTvsTn26UgPTXmE.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{CuldnUeQxpcu8oJ7.cjs → oIH2DXvUemx8KBZE.cjs} +1 -1
  28. package/{cdn/assets/RWhi_dOrWDICNt1t.js → browser/esm/BEdBgMB0JXu6qm1p.mjs} +1 -1
  29. package/browser/esm/{BNq1DlA_v8-hm8PQ.mjs → BUVsXfFhbzBtVoTV.mjs} +71 -70
  30. package/browser/esm/{DLJ1zBZE-WPdkpt2.mjs → BWoHBg8cjtJL9xBv.mjs} +132 -131
  31. package/{cdn/assets/DjHCn_TmfObC_aJ1.js → browser/esm/Bc8I4T3hDcq3Tbe7.mjs} +13 -13
  32. package/{cdn/assets/dQu9CDkkTpS5h580.js → browser/esm/BpIA1_q9rYZhuE_V.mjs} +8 -8
  33. package/browser/esm/{BjLCBG20KyjNKCpy.mjs → BwpZ-CB67KJ8A2Pd.mjs} +2 -2
  34. package/browser/esm/{Dq1oxXMudxqdJaKZ.mjs → CAUWxMHzGpG7-P5A.mjs} +11 -10
  35. package/{cdn/assets/CGUSbWH383tudMFu.js → browser/esm/CFw_ZTxUHsgd5Pf5.mjs} +10 -10
  36. package/browser/esm/{CTdGamCv2VtpI05C.mjs → CIG-Y2tRBFYerBVK.mjs} +1 -1
  37. package/browser/esm/{s8U6UEvd4LQsvEnH.mjs → CRLFplTpJUvecqqq.mjs} +1 -1
  38. package/browser/esm/{CeWIrhJ_bsxOl7mw.mjs → CanwhkFG9e2Ojys-.mjs} +24 -23
  39. package/browser/esm/CcGOjkDDVya2Ff-b.mjs +50 -0
  40. package/browser/esm/{BfNo01-WwZl_5N1M.mjs → Ce53t5Ez6mDQoNNS.mjs} +192 -191
  41. package/browser/esm/{pxRv4ndPNkOMM_s3.mjs → Cmk4lwRc0QJqs2cT.mjs} +13 -13
  42. package/{cdn/assets/CG-YuIoWsi12_nu9.js → browser/esm/CnI4MLBb2ZtZInkh.mjs} +10 -10
  43. package/{cdn/assets/CNhPYXS_v3a2ATBg.js → browser/esm/CrZPGKZDaJ-22LSg.mjs} +791 -788
  44. package/{cdn/assets/Dl02UNFD2tNwtHQ9.js → browser/esm/D-GTj1DQOn_EIw_N.mjs} +1 -1
  45. package/{cdn/assets/ct9ztJbQB16MJoyP.js → browser/esm/D0YFJdBci18KKVSS.mjs} +7 -7
  46. package/{cdn/assets/BY5dcSv5nxuvXMsr.js → browser/esm/D7__-CZBbVdVmNms.mjs} +13 -13
  47. package/{cdn/assets/C-oc6cc0wXRVBFx2.js → browser/esm/DRX3PxyWmwYCO1oC.mjs} +1 -1
  48. package/browser/esm/DtS8vZkP_9xxg-8G.mjs +24893 -0
  49. package/browser/esm/{BXMZNx8rs4_V8pQL.mjs → DuOzS4aDJybvfnas.mjs} +2 -2
  50. package/browser/esm/{C2Ik_RfF43fmFDeS.mjs → ekyugPyyyBIdZgfX.mjs} +1 -1
  51. package/browser/esm/{BrWhLiIy81LKNSUX.mjs → evOdu9Z-9G0PNrGI.mjs} +1 -1
  52. package/browser/esm/{qchlbvmOxrybWJep.mjs → goTiQtfGVEDiRLX3.mjs} +1 -1
  53. package/browser/esm/index.mjs +2 -2
  54. package/browser/esm/{FCkxbRy2XiqD3GdL.mjs → ius8cYWSRDNFx-QU.mjs} +12 -12
  55. package/{browser/esm/BoL2rsWK1YyT1PP7.mjs → cdn/assets/6GT7WcmdWYVxOobM.js} +8 -8
  56. package/{browser/esm/RWhi_dOrWDICNt1t.mjs → cdn/assets/BEdBgMB0JXu6qm1p.js} +1 -1
  57. package/cdn/assets/{6tFlyQMvtppXfmuU.js → BH-qA3U2gj7snkKJ.js} +24 -23
  58. package/{browser/esm/im3UoVISx3VXhEFp.mjs → cdn/assets/BPeDOIBYCZkjaWRD.js} +13 -13
  59. package/cdn/assets/{mAWImp_J2v8z8hbZ.js → BVIGf25ixd6wvJVI.js} +132 -131
  60. package/cdn/assets/{BPStm90FUYfOgibU.js → BcGPdpUCizGdDlXm.js} +12 -12
  61. package/cdn/assets/Be-_CFU80fx1X1E9.js +50 -0
  62. package/cdn/assets/{CTdGamCv2VtpI05C.js → CIG-Y2tRBFYerBVK.js} +1 -1
  63. package/cdn/assets/{s8U6UEvd4LQsvEnH.js → CRLFplTpJUvecqqq.js} +1 -1
  64. package/cdn/assets/{BKDQtGZxRUUzBmnI.js → ChD-x-lrZKLslGbg.js} +2 -2
  65. package/cdn/assets/{COFTB6OufFls7NP1.js → CkMou3XlV2mmYqmq.js} +11 -10
  66. package/cdn/assets/{BMb4pCD8O5vK2p1B.js → Cx6czat4u0MrS9wL.js} +2 -2
  67. package/{browser/esm/Dl02UNFD2tNwtHQ9.mjs → cdn/assets/D-GTj1DQOn_EIw_N.js} +1 -1
  68. package/{browser/esm/GbTp1_3jFZu0Ex24.mjs → cdn/assets/D0YFJdBci18KKVSS.js} +7 -7
  69. package/{browser/esm/C-oc6cc0wXRVBFx2.mjs → cdn/assets/DRX3PxyWmwYCO1oC.js} +1 -1
  70. package/{browser/esm/CZRLp5H9dSrMEgaI.mjs → cdn/assets/DS9Og6WSj_kNksiq.js} +10 -10
  71. package/cdn/assets/De8HwbKM7sZJMZSq.js +24740 -0
  72. package/{browser/esm/CKHDKAaHkwZHUkoS.mjs → cdn/assets/DfoJr75R0GrjAv-i.js} +10 -10
  73. package/cdn/assets/{DYgFWlitgXmKdN_I.js → Dw1Rz_MNeT4QWFeY.js} +192 -191
  74. package/{browser/esm/Br4TnuxGRULZDhCA.mjs → cdn/assets/FSFNUan5QfhjNqMt.js} +791 -788
  75. package/cdn/assets/{Be9YovX6b_0gKXs5.js → Ijbe8IzzEjVScejo.js} +71 -70
  76. package/{browser/esm/Ddm9jggzrr5VJQ68.mjs → cdn/assets/YQRaiV0_mvhQsFVY.js} +13 -13
  77. package/cdn/assets/{LxoKYdUqZ4Zgxjza.js → _W5FqhFhYviNTP8H.js} +13 -13
  78. package/cdn/assets/{C2Ik_RfF43fmFDeS.js → ekyugPyyyBIdZgfX.js} +1 -1
  79. package/cdn/assets/{BrWhLiIy81LKNSUX.js → evOdu9Z-9G0PNrGI.js} +1 -1
  80. package/cdn/assets/{qchlbvmOxrybWJep.js → goTiQtfGVEDiRLX3.js} +1 -1
  81. package/cdn/index.js +8 -8
  82. package/cdn/loader.js +1 -1
  83. package/package.json +8 -7
  84. package/browser/cjs/0dkhOl0ItVZXnHg_.cjs +0 -6
  85. package/browser/cjs/7Xjct_4bBSU-vad1.cjs +0 -6
  86. package/browser/cjs/B2kFbeodTh3Gk-aQ.cjs +0 -6
  87. package/browser/cjs/B5UGK4AzAC9SjXJp.cjs +0 -6
  88. package/browser/cjs/B9kurj8mOePUlJX2.cjs +0 -6
  89. package/browser/cjs/BDACVe5nzEmYknRm.cjs +0 -19
  90. package/browser/cjs/BG8OR9VWCkyIRwrw.cjs +0 -6
  91. package/browser/cjs/BML8p6hKVpqMb-13.cjs +0 -124
  92. package/browser/cjs/BeGusiaaShhfh7Ch.cjs +0 -7
  93. package/browser/cjs/BgJ-surJf8jSxqmk.cjs +0 -6
  94. package/browser/cjs/BgJFVvwpAWB3ssLE.cjs +0 -6
  95. package/browser/cjs/Bi8tk3LAhLkM7IXm.cjs +0 -6
  96. package/browser/cjs/BlYpCVX1NOGpcNB6.cjs +0 -7
  97. package/browser/cjs/BnZdvx8z2BIDZv9J.cjs +0 -355
  98. package/browser/cjs/BvnUfF0WlIXumm-E.cjs +0 -6
  99. package/browser/cjs/BwGs6fp9j-iFwDlB.cjs +0 -32
  100. package/browser/cjs/C4JyilwtB4aWsWnG.cjs +0 -6
  101. package/browser/cjs/C8PUqW17bEbzJthE.cjs +0 -6
  102. package/browser/cjs/CBTWDt8vxgXfkDfh.cjs +0 -6
  103. package/browser/cjs/CJ29qM66PMBNE3G9.cjs +0 -6
  104. package/browser/cjs/CKtzkomrFnDVY5SY.cjs +0 -11
  105. package/browser/cjs/CLarA_vLTlgU3TCF.cjs +0 -13
  106. package/browser/cjs/CN8Y9NZjRCPl8CqY.cjs +0 -6
  107. package/browser/cjs/CNIPdrSO6Xr2gkt9.cjs +0 -6
  108. package/browser/cjs/CNkEdWYoHRiw_Uez.cjs +0 -6
  109. package/browser/cjs/CPFRW8nnIVWYeQYn.cjs +0 -12
  110. package/browser/cjs/CZih4fqvAIVbCVO4.cjs +0 -6
  111. package/browser/cjs/Cx3wCYZR6BKbOtgk.cjs +0 -6
  112. package/browser/cjs/Cx8xafhEESu639Ig.cjs +0 -6
  113. package/browser/cjs/CzqzVoUeKxH16SDC.cjs +0 -6
  114. package/browser/cjs/D-GDPxpVRx45cdpQ.cjs +0 -6
  115. package/browser/cjs/D50Wzp-4UIlO9uVc.cjs +0 -6
  116. package/browser/cjs/DB9rOzEP0g0ZGfBj.cjs +0 -6
  117. package/browser/cjs/DIeyUTfGkxwK6bdT.cjs +0 -15
  118. package/browser/cjs/DX_oDw_K4CB6Ej9i.cjs +0 -6
  119. package/browser/cjs/DcNRcLtSOkHAK_Mt.cjs +0 -6
  120. package/browser/cjs/Df8ZAsCgZ69F33-C.cjs +0 -6
  121. package/browser/cjs/DfCiN8VOEQt4cw-x.cjs +0 -12
  122. package/browser/cjs/DnkG5azaxDtt-73G.cjs +0 -6
  123. package/browser/cjs/Dr_HVAdkD1bM9yrW.cjs +0 -6
  124. package/browser/cjs/KbKjJCMErVEwKqoi.cjs +0 -6
  125. package/browser/cjs/Px_DbuQFWhjhPilq.cjs +0 -6
  126. package/browser/cjs/VmYEO_-N9Cn7JpZN.cjs +0 -6
  127. package/browser/cjs/c4HmqMqg3ugRd4gl.cjs +0 -1501
  128. package/browser/cjs/jmPMUQMT7KTdf9Sr.cjs +0 -6
  129. package/browser/cjs/zRbLzzCcfjQpsQ4j.cjs +0 -6
  130. package/browser/esm/0M23_yfYSvrAB5iY.mjs +0 -472
  131. package/browser/esm/2sPP8EL_OzSYDsKu.mjs +0 -10
  132. package/browser/esm/3SiPV9yNzSbQVINg.mjs +0 -10
  133. package/browser/esm/6CkscKSECxQpy0v6.mjs +0 -10
  134. package/browser/esm/94SRg1Gxbdr9B75m.mjs +0 -10
  135. package/browser/esm/B2I1Hudz2EIGw59h.mjs +0 -10
  136. package/browser/esm/B2fqssq7kMsGIg5g.mjs +0 -10
  137. package/browser/esm/BBBP9totA24zTbqh.mjs +0 -10
  138. package/browser/esm/BEYxIKe5B75ADXWP.mjs +0 -5582
  139. package/browser/esm/BIHHiMjUvXmWQ6w_.mjs +0 -10
  140. package/browser/esm/BYRVuU6FUEX6XBFW.mjs +0 -10
  141. package/browser/esm/Bq_HFm6_6_ycs_gE.mjs +0 -48519
  142. package/browser/esm/Bs6fth_bBoNrYDwE.mjs +0 -21
  143. package/browser/esm/C-QHwmJCeB3o-mzv.mjs +0 -3934
  144. package/browser/esm/C0U_bX9Hj97edVC9.mjs +0 -10
  145. package/browser/esm/CC8aO_pPT-tkJK_H.mjs +0 -10
  146. package/browser/esm/CGxu5NKxrEXE8QIe.mjs +0 -24
  147. package/browser/esm/CbTDhJiJfpR6Btxp.mjs +0 -10
  148. package/browser/esm/CsUNORBKkJ7f3diG.mjs +0 -10
  149. package/browser/esm/CyYXh2ng_dKgHzbE.mjs +0 -29
  150. package/browser/esm/DRFsMc27LyLwGu56.mjs +0 -820
  151. package/browser/esm/DT09m4FGTu5N2LZJ.mjs +0 -10
  152. package/browser/esm/DUgyehn3re1zGQT5.mjs +0 -10
  153. package/browser/esm/DWOT4LkGXRN4FrJI.mjs +0 -10
  154. package/browser/esm/Dx1J8HBJdbrROP0v.mjs +0 -10
  155. package/browser/esm/Dz8v5MSOgkaH_zTd.mjs +0 -49
  156. package/browser/esm/F7oUe3nLrtaRYTas.mjs +0 -10
  157. package/browser/esm/L5HOBW-m9BjZTUuw.mjs +0 -10
  158. package/browser/esm/XL9-bWRsLjEvW1Y0.mjs +0 -10
  159. package/browser/esm/ZXuNMFT0sYh8ui7O.mjs +0 -1575
  160. package/browser/esm/gX1gbnkwbpalR57F.mjs +0 -12
  161. package/browser/esm/kagl0zcUDaK1IX_X.mjs +0 -10
  162. package/browser/esm/t7CffsKJY64LMXgS.mjs +0 -10
  163. package/browser/esm/x9wy-F3t5pNOvOIp.mjs +0 -425
  164. package/cdn/assets/2sPP8EL_OzSYDsKu.js +0 -10
  165. package/cdn/assets/3SiPV9yNzSbQVINg.js +0 -10
  166. package/cdn/assets/6CkscKSECxQpy0v6.js +0 -10
  167. package/cdn/assets/94SRg1Gxbdr9B75m.js +0 -10
  168. package/cdn/assets/B2I1Hudz2EIGw59h.js +0 -10
  169. package/cdn/assets/B2fqssq7kMsGIg5g.js +0 -10
  170. package/cdn/assets/BBBP9totA24zTbqh.js +0 -10
  171. package/cdn/assets/BD1S4plUUe1NPAqV.js +0 -425
  172. package/cdn/assets/BIHHiMjUvXmWQ6w_.js +0 -10
  173. package/cdn/assets/BYRVuU6FUEX6XBFW.js +0 -10
  174. package/cdn/assets/Bs6fth_bBoNrYDwE.js +0 -21
  175. package/cdn/assets/BzlAT8jiYfNV3kGy.js +0 -820
  176. package/cdn/assets/C0U_bX9Hj97edVC9.js +0 -10
  177. package/cdn/assets/CC8aO_pPT-tkJK_H.js +0 -10
  178. package/cdn/assets/CGxu5NKxrEXE8QIe.js +0 -24
  179. package/cdn/assets/CJOmvmuvywU33q7C.js +0 -3934
  180. package/cdn/assets/CbTDhJiJfpR6Btxp.js +0 -10
  181. package/cdn/assets/CsUNORBKkJ7f3diG.js +0 -10
  182. package/cdn/assets/DBq5E3hmvVO5ss1V.js +0 -5582
  183. package/cdn/assets/DT09m4FGTu5N2LZJ.js +0 -10
  184. package/cdn/assets/DUgyehn3re1zGQT5.js +0 -10
  185. package/cdn/assets/DWOT4LkGXRN4FrJI.js +0 -10
  186. package/cdn/assets/Det1P4Jrl9aZHFGe.js +0 -472
  187. package/cdn/assets/Dt3qIbvMvgQhNgeR.js +0 -1575
  188. package/cdn/assets/Dx1J8HBJdbrROP0v.js +0 -10
  189. package/cdn/assets/F7oUe3nLrtaRYTas.js +0 -10
  190. package/cdn/assets/L5HOBW-m9BjZTUuw.js +0 -10
  191. package/cdn/assets/U_ihCP2tbaRnqD2g.js +0 -48366
  192. package/cdn/assets/XL9-bWRsLjEvW1Y0.js +0 -10
  193. package/cdn/assets/Z4Ov3rzhXnezd-gU.js +0 -29
  194. package/cdn/assets/dR_uwa9znq6_hDmB.js +0 -49
  195. package/cdn/assets/gX1gbnkwbpalR57F.js +0 -12
  196. package/cdn/assets/kagl0zcUDaK1IX_X.js +0 -10
  197. package/cdn/assets/t7CffsKJY64LMXgS.js +0 -10
@@ -1,150 +1,151 @@
1
1
  import { jsx as i, jsxs as p } from "react/jsx-runtime";
2
- import { memo as oe, useRef as O, useState as y, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
3
- import { a5 as D, b8 as c, k as R, a7 as z, b3 as ue, ap as fe, b9 as ge, ba as me, B as b, bb as m, aK as x, bc as xe, aB as C, bd as he, T as _, f as k, be, bf as Oe, bg as Ce, bh as ye, b6 as w, bi as ve, bj as Te, aN as Re, b7 as ke, e as we, b4 as Ee, b5 as Se } from "./Bq_HFm6_6_ycs_gE.mjs";
4
- import { C as ee } from "./BfNo01-WwZl_5N1M.mjs";
2
+ import { memo as oe, useRef as C, useState as b, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
3
+ import { ICell as c, IRange as R } from "@sheetxl/sdk";
4
+ import { t as D, w as H, av as ue, W as fe, aA as ge, aB as me, B as O, aC as m, ah as x, aD as xe, a8 as y, aE as he, a as _, c as k, aF as Oe, aG as Ce, aH as ye, aI as be, ay as w, aJ as ve, aK as Te, ak as Re, az as ke, F as we, aw as Ee, ax as Fe } from "./DtS8vZkP_9xxg-8G.mjs";
5
+ import { C as ee } from "./Ce53t5Ez6mDQoNNS.mjs";
5
6
  /**
6
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
7
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.6
7
8
  *
8
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
10
  * License: The license can be found at https://www.sheetxl.com/license.
10
11
  */
11
- const Fe = D(i("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack"), Ie = D(i("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), Le = D(i("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward"), De = D(i("path", { d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z" }), "ArrowUpward"), $ = oe((E) => {
12
- const { label: h, value: r, options: s, onSelect: d, tabIndex: v = 0, ...K } = E, [P, T] = y(() => ie(r, s));
12
+ const Se = D(i("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack"), Ie = D(i("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), Le = D(i("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward"), De = D(i("path", { d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z" }), "ArrowUpward"), z = oe((E) => {
13
+ const { label: h, value: r, options: a, onSelect: d, tabIndex: v = 0, ...A } = E, [K, T] = b(() => ie(r, a));
13
14
  L(() => {
14
- T(ie(r, s));
15
- }, [r, s]);
16
- const A = z((u) => {
17
- T(u.target.value), d?.(s[u.target.value]);
18
- }, [d, s]), l = de(() => Object.keys(s).map((u) => i(ke, { value: u, children: u }, u)), [s]);
19
- return p(we, { sx: { minWidth: 135 }, size: "small", children: [i(Ee, { children: h }), i(Se, { inputProps: { tabIndex: v }, value: P, label: h, onChange: A, sx: { backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, ...K, children: l })] });
20
- }), te = { Workbook: "workbook", Sheet: "sheet" }, ne = { enter: 140, exit: 140 }, se = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, le = { ...se };
21
- delete le.Values;
22
- const Ke = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
15
+ T(ie(r, a));
16
+ }, [r, a]);
17
+ const P = H((u) => {
18
+ T(u.target.value), d?.(a[u.target.value]);
19
+ }, [d, a]), s = de(() => Object.keys(a).map((u) => i(ke, { value: u, children: u }, u)), [a]);
20
+ return p(we, { sx: { minWidth: 135 }, size: "small", children: [i(Ee, { children: h }), i(Fe, { inputProps: { tabIndex: v }, value: K, label: h, onChange: P, sx: { backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, ...A, children: s })] });
21
+ }), te = { Workbook: "workbook", Sheet: "sheet" }, ne = { enter: 140, exit: 140 }, ae = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...ae };
22
+ delete se.Values;
23
+ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
23
24
  const r = Object.keys(h);
24
- for (let s = 0; s < r.length; s++) {
25
- const d = r[s];
25
+ for (let a = 0; a < r.length; a++) {
26
+ const d = r[a];
26
27
  if (h[d] === E) return d;
27
28
  }
28
- }, Ve = oe((E) => {
29
- const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: v, title: K, onHide: P, onFindOrReplace: T, ...A } = E, l = O(null), u = O(null), H = O(null), W = O(null), j = O(null), N = O(null), U = (e, t) => {
29
+ }, ze = oe((E) => {
30
+ const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), W = C(null), $ = C(null), j = C(null), N = C(null), G = (e, t) => {
30
31
  t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
31
- }, [X, I] = y(!1), [B, ae] = y(!1), [f, M] = y(h), [q, V] = y(!1), [G, J] = y(!1), [o, a] = y({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), S = z(async (e, t, n, F) => {
32
+ }, [J, I] = b(!1), [B, le] = b(!1), [f, M] = b(h), [U, V] = b(!1), [X, q] = b(!1), [o, l] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), F = H(async (e, t, n, S) => {
32
33
  if (!T) return;
33
34
  const g = { ...o };
34
35
  g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
35
- const ce = await T({ autoFocus: F, ...g });
36
+ const ce = await T({ autoFocus: S, ...g });
36
37
  V(ce === 0);
37
38
  }, [o, T]);
38
39
  L(() => {
39
40
  V(!1);
40
41
  }, [o, B, f]);
41
- const Q = z((e, t) => {
42
+ const Q = H((e, t) => {
42
43
  if (e.keyCode === ue.Enter) {
43
44
  if (!o.findText) return;
44
- let n = !0, F = !1;
45
- e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (F = !0), U(e, F ? N.current : j.current)) : U(e, n ? W.current : H.current), S(n, t, F, !1);
45
+ let n = !0, S = !1;
46
+ e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), G(e, S ? N.current : j.current)) : G(e, n ? $.current : W.current), F(n, t, S, !1);
46
47
  }
47
- }, [o]), Y = O(null);
48
+ }, [o]), Y = C(null);
48
49
  pe(() => {
49
- a((e) => {
50
+ l((e) => {
50
51
  const t = { ...e };
51
- t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), s !== void 0 && (t.replaceText = s), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
52
- const n = !(!v && s === void 0);
52
+ t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), a !== void 0 && (t.replaceText = a), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
53
+ const n = !(!v && a === void 0);
53
54
  return n && M(n), t;
54
- }), G || Y.current?.focus();
55
- }, [r, s, d, v]), L(() => {
55
+ }), X || Y.current?.focus();
56
+ }, [r, a, d, v]), L(() => {
56
57
  f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
57
58
  }, [f]), L(() => {
58
- if (X && l.current && o.findText === l.current.value) return l.current === document.activeElement || l.current.contains(document.activeElement) ? (l.current?.select(), void I(!1)) : void l.current.addEventListener("focus", () => {
59
- l.current?.select(), I(!1);
59
+ if (J && s.current && o.findText === s.current.value) return s.current === document.activeElement || s.current.contains(document.activeElement) ? (s.current?.select(), void I(!1)) : void s.current.addEventListener("focus", () => {
60
+ s.current?.select(), I(!1);
60
61
  }, { once: !0 });
61
- }, [X, o]);
62
+ }, [J, o]);
62
63
  const [re, { width: Z }] = fe();
63
- return i(ge, { title: K ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: Y, onHide: P, onFocus: () => J(!0), onBlur: () => {
64
- J(!1), V(!1);
65
- }, PaperProps: { elevation: G ? 3 : 1 }, ...A, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
66
- if (e.key === "h" && e.ctrlKey) M(!0), l.current?.contains(document.activeElement) && u.current?.focus();
67
- else if (e.key === "f" && e.ctrlKey) l.current?.focus();
68
- else if (e.key === "c" && e.altKey) a((t) => {
64
+ return i(ge, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: Y, onHide: K, onFocus: () => q(!0), onBlur: () => {
65
+ q(!1), V(!1);
66
+ }, PaperProps: { elevation: X ? 3 : 1 }, ...P, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
67
+ if (e.key === "h" && e.ctrlKey) M(!0), s.current?.contains(document.activeElement) && u.current?.focus();
68
+ else if (e.key === "f" && e.ctrlKey) s.current?.focus();
69
+ else if (e.key === "c" && e.altKey) l((t) => {
69
70
  const n = { ...t };
70
71
  return n.findOptions.matchCase = !t.findOptions.matchCase, n;
71
72
  });
72
- else if (e.key === "e" && e.altKey) a((t) => {
73
+ else if (e.key === "e" && e.altKey) l((t) => {
73
74
  const n = { ...t };
74
75
  return n.findOptions.matchEntireCell = !t.findOptions.matchEntireCell, n;
75
76
  });
76
77
  else {
77
78
  if (e.key !== "r" || !e.altKey) return;
78
- a((t) => {
79
+ l((t) => {
79
80
  const n = { ...t };
80
81
  return n.findOptions.useRegex = !t.findOptions.useRegex, n;
81
82
  });
82
83
  }
83
84
  e.preventDefault();
84
- }, children: [p(b, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(b, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: B, onSelectToggle: (e) => {
85
- ae(e);
85
+ }, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: B, onSelectToggle: (e) => {
86
+ le(e);
86
87
  }, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(xe, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
87
88
  M(e);
88
- }, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), shortcut: { key: f ? "F" : "H", modifiers: [C.Ctrl] } })] }), p(b, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(b, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(_, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Z > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(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: i(be, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(b, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
89
- a((t) => {
89
+ }, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), shortcut: { key: f ? "F" : "H", modifiers: [y.Ctrl] } })] }), p(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(_, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Z > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { draggable: !1, ref: s, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(Oe, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
90
+ l((t) => {
90
91
  const n = { ...t };
91
92
  return n.findOptions.matchCase = e, n;
92
93
  });
93
- }, label: "Match Case", shortcut: { key: "C", modifiers: [C.Alt] }, icon: x(i(Oe, {})) }), i(m, { selected: o.findOptions.matchEntireCell, onSelectToggle: (e) => {
94
- a((t) => {
94
+ }, label: "Match Case", shortcut: { key: "C", modifiers: [y.Alt] }, icon: x(i(Ce, {})) }), i(m, { selected: o.findOptions.matchEntireCell, onSelectToggle: (e) => {
95
+ l((t) => {
95
96
  const n = { ...t };
96
97
  return n.findOptions.matchEntireCell = e, n;
97
98
  });
98
- }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [C.Alt] }, icon: x(i(Ce, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
99
- a((t) => {
99
+ }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(ye, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
100
+ l((t) => {
100
101
  const n = { ...t };
101
102
  return n.findOptions.useRegex = e, n;
102
103
  });
103
- }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [C.Alt] }, icon: x(i(ye, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => q ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => q ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
104
- a((t) => {
104
+ }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => U ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => U ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
105
+ l((t) => {
105
106
  const n = { ...t };
106
107
  return n.findText = e.target.value, n;
107
108
  });
108
109
  }, onKeyDown: (e) => Q(e, !1), onContextMenu: (e) => {
109
110
  e.stopPropagation();
110
111
  } }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
111
- S(!1, !1);
112
- }, touchRippleRef: H, label: "", shortcut: { key: "Enter", modifiers: [C.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Fe, {}) : i(De, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
113
- S(!0, !1);
114
- }, touchRippleRef: W, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Le, {}) : i(Ie, {})), disabled: !o.findText })] }), i(ee, { in: f, timeout: ne, onExit: () => {
115
- l.current?.focus();
116
- }, children: p(b, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(_, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(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: o.replaceText ?? "", onChange: (e) => {
117
- a((t) => {
112
+ F(!1, !1);
113
+ }, touchRippleRef: W, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Se, {}) : i(De, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
114
+ F(!0, !1);
115
+ }, touchRippleRef: $, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Le, {}) : i(Ie, {})), disabled: !o.findText })] }), i(ee, { in: f, timeout: ne, onExit: () => {
116
+ s.current?.focus();
117
+ }, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(_, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(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: o.replaceText ?? "", onChange: (e) => {
118
+ l((t) => {
118
119
  const n = { ...t };
119
120
  return n.replaceText = e.target.value, n;
120
121
  });
121
122
  }, onKeyDown: (e) => Q(e, !0), onContextMenu: (e) => {
122
123
  e.stopPropagation();
123
124
  } }), i(m, { onSelectToggle: (e) => {
124
- S(!0, !0);
125
+ F(!0, !0);
125
126
  }, touchRippleRef: j, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(ve, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
126
- S(!0, !0, !0);
127
- }, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [C.Ctrl, C.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in: B, timeout: ne, onExit: () => {
128
- l.current?.focus();
129
- }, children: p(b, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(Re, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(b, { sx: { display: "flex", flexDirection: Z >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i($, { label: "Within", value: o.scope, options: te, onSelect: (e) => {
130
- a((t) => {
127
+ F(!0, !0, !0);
128
+ }, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in: B, timeout: ne, onExit: () => {
129
+ s.current?.focus();
130
+ }, children: p(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(Re, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Z >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(z, { label: "Within", value: o.scope, options: te, onSelect: (e) => {
131
+ l((t) => {
131
132
  const n = { ...t };
132
133
  return n.scope = e, n;
133
134
  });
134
- } }), i($, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Ke, onSelect: (e) => {
135
- a((t) => {
135
+ } }), i(z, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Ae, onSelect: (e) => {
136
+ l((t) => {
136
137
  const n = { ...t };
137
138
  return n.findOptions.orientation = e ? R.Orientation.Row : R.Orientation.Column, n;
138
139
  });
139
- } }), i($, { label: "Look in", value: f && o.findOptions.fields?.[0] === c.Content.Values ? c.Content.Formulas : o.findOptions.fields?.[0], options: f ? le : se, onSelect: (e) => {
140
- a((t) => {
140
+ } }), i(z, { label: "Look in", value: f && o.findOptions.fields?.[0] === c.Content.Values ? c.Content.Formulas : o.findOptions.fields?.[0], options: f ? se : ae, onSelect: (e) => {
141
+ l((t) => {
141
142
  const n = { ...t };
142
143
  return n.findOptions.fields = [e], n;
143
144
  });
144
145
  } })] })] }) })] }) });
145
146
  });
146
147
  export {
147
- Ve as FindReplaceWindow,
148
+ ze as FindReplaceWindow,
148
149
  te as ScopeOptions,
149
- Ve as default
150
+ ze as default
150
151
  };