@sheetxl/studio-mui 0.3.2 → 0.3.4

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 (191) hide show
  1. package/LICENSE.md +11 -11
  2. package/README.md +24 -24
  3. package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
  4. package/browser/cjs/{BtYvPg1MnEyGWx8E.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
  5. package/browser/cjs/{BBJ57oaa6vu0zEjI.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
  6. package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
  7. package/browser/cjs/{sxA11AN6vr9fiHaa.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
  8. package/browser/cjs/{CEjq7KQ0zHIi69or.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
  9. package/browser/cjs/{CgaWzlL_p5dgqA4f.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
  10. package/browser/cjs/{CsvjAXVeoKH34aZc.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
  11. package/browser/cjs/{BZfQo-wrdJc4xy1p.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
  12. package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
  13. package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
  14. package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
  15. package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
  16. package/browser/cjs/{BTSVJlDxWgqbdgwJ.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
  17. package/browser/cjs/{CJFKRBbjz7X-rEau.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
  18. package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
  19. package/browser/cjs/{DLeOkdGvdWl5tqCl.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
  20. package/browser/cjs/{C-4fmxJxBM8ThtN5.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
  21. package/browser/cjs/{ByKQeaRgOfTOn4P6.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
  22. package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
  23. package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
  24. package/browser/cjs/{CX6yLHEdmP8SVEfH.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
  25. package/browser/cjs/{CMTXA4puzeAnzQwq.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
  26. package/browser/cjs/index.cjs +3 -3
  27. package/browser/cjs/{vEKDv57iikwYjhOc.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
  28. package/browser/cjs/{DLcyf5qNRNueXSur.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
  29. package/browser/esm/{Bt8Hem_KC6UibnGm.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
  30. package/browser/esm/{ZwbkuvbehTjluIzn.mjs → B7spDz0f3MErGle0.mjs} +21 -20
  31. package/browser/esm/{AkfGEQyMAKNp1Ktw.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
  32. package/browser/esm/{Dq2nqH2znDzDq0no.mjs → C0HMqAubZ7789bne.mjs} +1 -1
  33. package/browser/esm/{DoCwq6ipapKirQSJ.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
  34. package/browser/esm/{C3dyK-h3mgD7XzKl.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
  35. package/browser/esm/{_zJv_HkelROSMajR.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
  36. package/browser/esm/{Dvi6qc2t9c_bRvzo.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
  37. package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
  38. package/browser/esm/{DudPyyE63O5X5Tij.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
  39. package/browser/esm/{CRByH9Wf2wJ94di-.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
  40. package/browser/esm/{FhyoG4Gyhb7gVRPB.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
  41. package/browser/esm/{9vaTrJzQjSFA2egn.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
  42. package/browser/esm/{BRPqw1D9DgPK_A6V.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
  43. package/browser/esm/{TFr0V-rb-KYQeRVW.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
  44. package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
  45. package/browser/esm/{ByYn00uYUmHj9zvS.mjs → Dig0J4i2Urjl9Z--.mjs} +171 -170
  46. package/browser/esm/{CdUwERsyanWuNPx8.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
  47. package/browser/esm/{B-DwCBC-vYtRKiGS.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
  48. package/browser/esm/{D_LHNgrCc-7V6FjT.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
  49. package/browser/esm/{D645MdIazDB-hc3d.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
  50. package/browser/esm/{s-R04_lOf8TuzWvo.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
  51. package/browser/esm/index.mjs +75 -74
  52. package/browser/esm/{BNbDRm5P-Ha3rBv4.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
  53. package/browser/esm/{BVDNIiq2e_loYVfc.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
  54. package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
  55. package/licenses/dependencies.txt +203 -225
  56. package/node/assets/style.css +1 -1
  57. package/node/esm/{CI9F84m6LzoOkVfK.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
  58. package/node/esm/{N2xFXdAPXckWbqvN.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
  59. package/node/esm/{DjLSO4d4T2JddYG_.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
  60. package/node/esm/{CYcFo_OeyApoGTg3.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
  61. package/node/esm/{CWRpbP9nAT2yR2r6.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
  62. package/node/esm/{DYOAGczbRXmskyrr.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
  63. package/node/esm/{BX8KUYAnQx1vI-cS.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
  64. package/node/esm/{DuboCcThig3p0wzs.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
  65. package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
  66. package/node/esm/{B5jFauUSFpo_iDkW.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
  67. package/node/esm/{BjIAi3GfBAjiRIja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
  68. package/node/esm/{Bth10k64kFkk36Hy.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
  69. package/node/esm/{Bk7aoxfQtGp8id7D.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
  70. package/node/esm/{ZVae6CkvsUOXzMKw.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
  71. package/node/esm/{D95MPCm8ObgZN5_j.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
  72. package/node/esm/{B2Y6U5_PvKIFVtAh.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
  73. package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
  74. package/node/esm/{BsSGinAqat7R8x_O.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
  75. package/node/esm/{DfXVaugDnucoDGYk.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
  76. package/node/esm/{CwIlFXgoa_xv0Doi.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
  77. package/node/esm/{CS138m7XyLHvzDPV.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
  78. package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
  79. package/node/esm/{CradKrxfiGQucTZ3.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
  80. package/node/esm/index.mjs +12873 -41672
  81. package/package.json +8 -8
  82. package/browser/cjs/1C6nE8JXbR1K_yhw.cjs +0 -6
  83. package/browser/cjs/6denMJxSAR1JnvVP.cjs +0 -15
  84. package/browser/cjs/B-N31rKSrvqkcxZP.cjs +0 -6
  85. package/browser/cjs/BLHCySywMnqptSI9.cjs +0 -32
  86. package/browser/cjs/BbEnQfoP4EOJK3YQ.cjs +0 -6
  87. package/browser/cjs/BjaD6jFpWrhKL2dz.cjs +0 -6
  88. package/browser/cjs/BnaQy4xZm6MUD5Sg.cjs +0 -13
  89. package/browser/cjs/BszSSdQItUM3BnN1.cjs +0 -6
  90. package/browser/cjs/C0vPGOmkrEmgMUC8.cjs +0 -6
  91. package/browser/cjs/C19mJZkF3zJRRDNw.cjs +0 -11
  92. package/browser/cjs/C2kX273f3kTe7viA.cjs +0 -6
  93. package/browser/cjs/C6MOXXmZPlw53ARk.cjs +0 -6
  94. package/browser/cjs/CGxAeOIqbsFk97UV.cjs +0 -6
  95. package/browser/cjs/CLeyzaTKMMR0Hcac.cjs +0 -6
  96. package/browser/cjs/CM1UZZ4gfAch7cju.cjs +0 -7
  97. package/browser/cjs/CSiwPeW0XIEaw5qn.cjs +0 -6
  98. package/browser/cjs/CaH2ZbfCFFqmTqKi.cjs +0 -6
  99. package/browser/cjs/Cbffh394PX-rgpbL.cjs +0 -6
  100. package/browser/cjs/Ce6nJl_bhnr51GJ3.cjs +0 -238
  101. package/browser/cjs/ChVT2EzsTJjDsozn.cjs +0 -6
  102. package/browser/cjs/Cjs836g7b_ipAS4X.cjs +0 -6
  103. package/browser/cjs/CkxuzW8FWE8vKkSL.cjs +0 -6
  104. package/browser/cjs/Clh_-4NLLHCW3c-r.cjs +0 -6
  105. package/browser/cjs/CsxexX1uKSMjAryZ.cjs +0 -6
  106. package/browser/cjs/CwgzXfkSX0s-h_0a.cjs +0 -6
  107. package/browser/cjs/CxIFTPLgMN5VgKh1.cjs +0 -12
  108. package/browser/cjs/D0ByNhICkrbUC74Z.cjs +0 -6
  109. package/browser/cjs/DAnQwP6m2P_AUhZh.cjs +0 -6
  110. package/browser/cjs/DFIMAvLgAQfQm3Bx.cjs +0 -6
  111. package/browser/cjs/DI-wbtkuZm7yx_ek.cjs +0 -6
  112. package/browser/cjs/DUUZT0ElQBBkt4qe.cjs +0 -6
  113. package/browser/cjs/DfrXQdrMzJWgyX4S.cjs +0 -6
  114. package/browser/cjs/DkOOlgNR-NXixaQX.cjs +0 -6
  115. package/browser/cjs/DmZIqrySryidgnRl.cjs +0 -6
  116. package/browser/cjs/DscIvkrfig_mffwY.cjs +0 -6
  117. package/browser/cjs/Dz8coNXp80TEXSyH.cjs +0 -6
  118. package/browser/cjs/IaiQe7d-LGA2611T.cjs +0 -1501
  119. package/browser/cjs/KNduwqq-J9uyLgsC.cjs +0 -6
  120. package/browser/cjs/LTnky81SCDfvEiub.cjs +0 -6
  121. package/browser/cjs/_EleKbbhQWfp8mqy.cjs +0 -124
  122. package/browser/cjs/sNpLX232YHzUxZOr.cjs +0 -12
  123. package/browser/esm/26ozZ2-vj7N8rpiB.mjs +0 -10
  124. package/browser/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
  125. package/browser/esm/B7mPpY5DOxEGMbPk.mjs +0 -3934
  126. package/browser/esm/B8le6PM3dfy1qSHY.mjs +0 -10
  127. package/browser/esm/BCIwvhxFiDXGEwES.mjs +0 -10
  128. package/browser/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
  129. package/browser/esm/BMsToxhQy4cSxlz-.mjs +0 -10
  130. package/browser/esm/BSv1o1DpwfEAWYSy.mjs +0 -51
  131. package/browser/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
  132. package/browser/esm/Bqmme9ilyvrHA-e_.mjs +0 -1575
  133. package/browser/esm/BvPUue2e8_ByeP7c.mjs +0 -10
  134. package/browser/esm/C9uQaKOaImv5o9c3.mjs +0 -10
  135. package/browser/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
  136. package/browser/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
  137. package/browser/esm/CV-D1e318ShLCDie.mjs +0 -10
  138. package/browser/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
  139. package/browser/esm/CaFxIFV4dLSI4zDW.mjs +0 -472
  140. package/browser/esm/CpD505ep5Z3oX287.mjs +0 -1466
  141. package/browser/esm/Cz9BPykuRu_5ay57.mjs +0 -425
  142. package/browser/esm/D2yV2gASA--bjve5.mjs +0 -10
  143. package/browser/esm/D6mAWXETxAqf416J.mjs +0 -10
  144. package/browser/esm/DPw7ErLvgq_9jYHE.mjs +0 -24
  145. package/browser/esm/DRVlO95U75R3eY27.mjs +0 -10
  146. package/browser/esm/DWoRF-U96vWLWF5Q.mjs +0 -5582
  147. package/browser/esm/DX8AE4p9fLlmEdTJ.mjs +0 -10
  148. package/browser/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
  149. package/browser/esm/Dxl5GgDFgUsBkg-b.mjs +0 -10
  150. package/browser/esm/Qq233O5gbpRAP6un.mjs +0 -29
  151. package/browser/esm/UC5M3Z5HmOzupzqQ.mjs +0 -21
  152. package/browser/esm/VchKQpT2_B7Ca113.mjs +0 -820
  153. package/browser/esm/_5B66awyRsaDd_Hv.mjs +0 -10
  154. package/browser/esm/cOX4zBcY0-H_8kAj.mjs +0 -43654
  155. package/browser/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
  156. package/browser/esm/kjRF87FSQwIzB1KD.mjs +0 -12
  157. package/browser/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
  158. package/node/esm/8OtdJtJIKyA4POih.mjs +0 -14
  159. package/node/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
  160. package/node/esm/B7bDAwgd6OSbVJh_.mjs +0 -10
  161. package/node/esm/B8le6PM3dfy1qSHY.mjs +0 -10
  162. package/node/esm/BCIwvhxFiDXGEwES.mjs +0 -10
  163. package/node/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
  164. package/node/esm/BK9EmmFbROJ0rZqB.mjs +0 -4002
  165. package/node/esm/BMsToxhQy4cSxlz-.mjs +0 -10
  166. package/node/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
  167. package/node/esm/BeyDW_Yk6iu1JB4v.mjs +0 -453
  168. package/node/esm/BpdsRwlUAUyUdrlR.mjs +0 -813
  169. package/node/esm/BwnMNGZmp-FGW86J.mjs +0 -13
  170. package/node/esm/C9uQaKOaImv5o9c3.mjs +0 -10
  171. package/node/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
  172. package/node/esm/CJiY4Wz9eiX2B9nv.mjs +0 -10
  173. package/node/esm/CM9lgZdHfhhL2cv-.mjs +0 -10
  174. package/node/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
  175. package/node/esm/CV-D1e318ShLCDie.mjs +0 -10
  176. package/node/esm/CV4Y5e_kU8o_sXoX.mjs +0 -10
  177. package/node/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
  178. package/node/esm/CYsd2qqC_WxLTKE1.mjs +0 -555
  179. package/node/esm/D5uKz7a9v8FUVx0k.mjs +0 -80
  180. package/node/esm/D61UbOtLixUCDQce.mjs +0 -307
  181. package/node/esm/DRVlO95U75R3eY27.mjs +0 -10
  182. package/node/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
  183. package/node/esm/DdDxTsQsLWNqX7ee.mjs +0 -16
  184. package/node/esm/Do5a0pvRN3hayzdD.mjs +0 -10
  185. package/node/esm/_5B66awyRsaDd_Hv.mjs +0 -10
  186. package/node/esm/_Wieg3dqzHo6_Crg.mjs +0 -29
  187. package/node/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
  188. package/node/esm/kTEpzGO5dC1M9dbV.mjs +0 -24
  189. package/node/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
  190. package/node/esm/pTSFPHHLPzmAcEKW.mjs +0 -10
  191. package/node/esm/rF9x01iQv2EpxorW.mjs +0 -5642
@@ -1,7 +1,8 @@
1
- import { b0 as k, as as T, ay as G, k as Z, at as W, b1 as C, b2 as tt, b3 as P, Y as et, O as Y, b4 as V } from "./cOX4zBcY0-H_8kAj.mjs";
2
- import { c as x, b as f, r as L, t as rt, a as A, p as D, d as st } from "./CpD505ep5Z3oX287.mjs";
1
+ import { Y } from "./tEvhefgL1pPAbBne.mjs";
2
+ import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./DhuuaOVgVDtHsSft.mjs";
3
+ import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
3
4
  /**
4
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
5
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
5
6
  *
6
7
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
8
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -211,7 +212,7 @@ class pt {
211
212
  return s.plotArea = r, r;
212
213
  }
213
214
  }
214
- class I {
215
+ class L {
215
216
  EnumMappings() {
216
217
  }
217
218
  static fromOoxmlGradientType(t) {
@@ -236,7 +237,7 @@ class q {
236
237
  processStroke(t, e, s) {
237
238
  const r = {}, o = t.evaluate("ln", e);
238
239
  if (o) {
239
- o.hasAttribute("algn") && (r.align = I.fromOoxmlAlignment(o.getAttribute("algn"))), o.hasAttribute("cap") && (r.lineCap = I.fromOoxmlLineCap(o.getAttribute("cap"))), o.hasAttribute("cmpd") && (r.compound = I.fromOoxmlCompound(o.getAttribute("cmpd"))), o.hasAttribute("w") && (r.width = rt(o.getAttribute("w")));
240
+ o.hasAttribute("algn") && (r.align = L.fromOoxmlAlignment(o.getAttribute("algn"))), o.hasAttribute("cap") && (r.lineCap = L.fromOoxmlLineCap(o.getAttribute("cap"))), o.hasAttribute("cmpd") && (r.compound = L.fromOoxmlCompound(o.getAttribute("cmpd"))), o.hasAttribute("w") && (r.width = Z(o.getAttribute("w")));
240
241
  const i = t.evaluate("miter", o);
241
242
  i && (r.lineJoin = "miter", i.hasAttribute("lim") && (r.miter = parseFloat(i.getAttribute("lim")))), t.evaluate("bevel", o) && (r.lineJoin = "bevel"), t.evaluate("round", o) && (r.lineJoin = "round");
242
243
  const n = t.evaluate("custDash", o);
@@ -308,7 +309,7 @@ class q {
308
309
  e.hasAttribute("flip") && (o.mirror = e.getAttribute("flip")), Object.keys(o).length > 0 && (s.tile = o);
309
310
  const i = t.evaluate("path", e);
310
311
  if (i) {
311
- i.hasAttribute("path") && (s.type = I.fromOoxmlGradientType(i.getAttribute("path")));
312
+ i.hasAttribute("path") && (s.type = L.fromOoxmlGradientType(i.getAttribute("path")));
312
313
  const c = t.evaluate("fillToRect", i);
313
314
  c && (s.fillTo = this.getRect(c));
314
315
  }
@@ -885,7 +886,7 @@ class Ot {
885
886
  r.collatorOptions = n ? G.CaseSensitiveOptions : G.CaseInsensitiveOptions;
886
887
  }
887
888
  const o = e.getAttribute("sortMethod");
888
- o != null && o !== "none" && (o === "stroke" ? r.collatorOptions = { ...r.collatorOptions, collation: "stroke" } : o === "pinYin" && (r.collatorOptions = { ...r.collatorOptions, collation: "pinyin" })), e.hasAttribute("columnSort") && f(e.getAttribute("columnSort")) && (r.orientation = Z.Orientation.Column);
889
+ o != null && o !== "none" && (o === "stroke" ? r.collatorOptions = { ...r.collatorOptions, collation: "stroke" } : o === "pinYin" && (r.collatorOptions = { ...r.collatorOptions, collation: "pinyin" })), e.hasAttribute("columnSort") && f(e.getAttribute("columnSort")) && (r.orientation = et.Orientation.Column);
889
890
  const i = W.fastStringToRange(r.ref);
890
891
  return this.processSortConditions(t, e, r, i), Object.keys(r).length > 0 && (s.sort = r), r;
891
892
  }
@@ -919,7 +920,7 @@ class Q {
919
920
  }
920
921
  processDataBarColor(t, e, s, r, o = "dk1") {
921
922
  if (!e) return;
922
- const i = st((n) => e.getAttribute(n), o);
923
+ const i = tt((n) => e.getAttribute(n), o);
923
924
  return i && (s[r] = i), s;
924
925
  }
925
926
  processFonts(t, e, s) {
@@ -1128,7 +1129,7 @@ class Tt extends Q {
1128
1129
  const n = e.getAttribute("xfId");
1129
1130
  if (n && o) {
1130
1131
  const c = o.get(parseInt(n));
1131
- c && c !== tt.BuiltInName.Normal && (s.named = c);
1132
+ c && c !== rt.BuiltInName.Normal && (s.named = c);
1132
1133
  }
1133
1134
  const l = (c) => !(!i && e.hasAttribute(c)) || f(e.getAttribute("applyFont"));
1134
1135
  if (l("applyFont")) {
@@ -1362,7 +1363,7 @@ class St {
1362
1363
  o.length > 0 && (s.columns = o);
1363
1364
  }
1364
1365
  }
1365
- class kt {
1366
+ class xt {
1366
1367
  visit(t, e, s) {
1367
1368
  return s;
1368
1369
  }
@@ -1386,7 +1387,7 @@ class U {
1386
1387
  return r && (t.copyFromAttribute(r, "name", s), t.copyFromAttribute(r, "desc", s), t.copyFromAttribute(r, "hidden", s, "hidden", t.BOOLEAN_COPY), t.copyFromAttribute(r, "id", s)), s;
1387
1388
  }
1388
1389
  }
1389
- class xt extends U {
1390
+ class kt extends U {
1390
1391
  visit(t, e, s) {
1391
1392
  if (!e) return;
1392
1393
  s = super.visit(t, e, s);
@@ -1433,7 +1434,7 @@ class z extends U {
1433
1434
  return s.content = { type: "sp", json: o }, o;
1434
1435
  }
1435
1436
  }
1436
- class Lt extends U {
1437
+ class It extends U {
1437
1438
  visit(t, e, s) {
1438
1439
  if (!e) return;
1439
1440
  const r = super.visit(t, e, s), o = t.evaluate("nvPicPr/cNvPicPr", e);
@@ -1457,7 +1458,7 @@ class Lt extends U {
1457
1458
  return s.content = { type: "picture", json: l }, r;
1458
1459
  }
1459
1460
  }
1460
- class It extends z {
1461
+ class Lt extends z {
1461
1462
  visit(t, e, s) {
1462
1463
  if (!e) return;
1463
1464
  s = super.visit(t, e, s);
@@ -1542,7 +1543,7 @@ class jt {
1542
1543
  if (e.type === "_error") {
1543
1544
  const s = e.errorType;
1544
1545
  if (s) try {
1545
- e = et.getBuiltInById(s + 1);
1546
+ e = st.getBuiltInById(s + 1);
1546
1547
  } catch {
1547
1548
  }
1548
1549
  }
@@ -1600,7 +1601,7 @@ class Dt {
1600
1601
  visit(t, e, s) {
1601
1602
  if (!e) return;
1602
1603
  const r = {};
1603
- return t.copyFromAttribute(e, "id", r, "id", L), t.copyFromAttribute(e, "personId", r, "personId", L), t.copyFromAttribute(e, "ref", r), t.copyFromAttribute(e, "parentId", r, "parentId", L), t.copyFromAttribute(e, "dT", r), e.hasAttribute("done") && (r.done = f(e.getAttribute("done"))), s.push(r), r;
1604
+ return t.copyFromAttribute(e, "id", r, "id", I), t.copyFromAttribute(e, "personId", r, "personId", I), t.copyFromAttribute(e, "ref", r), t.copyFromAttribute(e, "parentId", r, "parentId", I), t.copyFromAttribute(e, "dT", r), e.hasAttribute("done") && (r.done = f(e.getAttribute("done"))), s.push(r), r;
1604
1605
  }
1605
1606
  }
1606
1607
  class Mt {
@@ -1610,7 +1611,7 @@ class Mt {
1610
1611
  const n = o.item(i);
1611
1612
  if (n.nodeType === 1 && n.localName === "person") {
1612
1613
  const l = {};
1613
- t.copyFromAttribute(n, "id", l, "id", L), t.copyFromAttribute(n, "displayName", l), t.copyFromAttribute(n, "userId", l, "userId", L), t.copyFromAttribute(n, "providerId", l), r.push(l);
1614
+ t.copyFromAttribute(n, "id", l, "id", I), t.copyFromAttribute(n, "displayName", l), t.copyFromAttribute(n, "userId", l, "userId", I), t.copyFromAttribute(n, "providerId", l), r.push(l);
1614
1615
  }
1615
1616
  }
1616
1617
  return r.length > 0 && (s.persons = r), r;
@@ -1622,9 +1623,9 @@ class zt {
1622
1623
  this.path = t, this.visitor = e;
1623
1624
  }
1624
1625
  }
1625
- class Xt {
1626
+ class $t {
1626
1627
  constructor() {
1627
- this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new ct()), this.registerVisitor("spPr", new M()), this.registerVisitor("txBody", new F()), this.registerVisitor("txPr", new F()), this.registerVisitor("c:chartSpace", new ut()), this.registerVisitor("c:chartSpace", new ht(), "chart"), this.registerVisitor("c:plotArea", new pt()), this.registerVisitor("c:barChart", new gt()), this.registerVisitor("c:doughnutChart", new S()), this.registerVisitor("c:lineChart", new S()), this.registerVisitor("c:ofPieType", new S()), this.registerVisitor("c:pieChart", new S()), this.registerVisitor("c:scatterChart", new S()), this.registerVisitor("c:barChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new N("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new dt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new R()), this.registerVisitor("c:valAx", new R()), this.registerVisitor("c:dateAx", new R()), this.registerVisitor("c:majorGridlines", new j("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new j("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new F("labels.text"), "txPr"), this.registerVisitor("c:valAx", new F("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new F("labels.text"), "txPr"), this.registerVisitor("c:legend", new At()), this.registerVisitor("c:legend", new F("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new ft()), this.registerVisitor("c:ser", new yt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new N("labels"), "dLbls"), this.registerVisitor("c:dLbl", new N("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new vt()), this.registerVisitor("c:dispUnits", new j("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new F(), "tx/rich"), this.registerVisitor("a:theme", new Ft()), this.registerVisitor("a:theme", new Ct(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new wt(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new Nt()), this.registerVisitor("sortState", new Ot()), this.registerVisitor("s:workbook", new Vt()), this.registerVisitor("styleSheet", new Tt()), this.registerVisitor("table", new St()), this.registerVisitor("hlinkClick", new Pt()), this.registerVisitor("wsDr", new kt()), this.registerVisitor("twoCellAnchor", new E()), this.registerVisitor("oneCellAnchor", new E()), this.registerVisitor("absoluteAnchor", new E()), this.registerVisitor("graphicFrame", new xt()), this.registerVisitor("sp", new z()), this.registerVisitor("grpSp", new It()), this.registerVisitor("cxnSp", new Bt()), this.registerVisitor("pic", new Lt()), this.registerVisitor("rvStructures", new _t()), this.registerVisitor("rvData", new jt()), this.registerVisitor("comments", new Rt()), this.registerVisitor("commentList", new Et(), "comment"), this.registerVisitor("comment", new F("content"), "text"), this.registerVisitor("ThreadedComments", new Yt()), this.registerVisitor("threadedComment", new Dt()), this.registerVisitor("threadedComment", new F("content"), "text"), this.registerVisitor("personList", new Mt());
1628
+ this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new ct()), this.registerVisitor("spPr", new M()), this.registerVisitor("txBody", new F()), this.registerVisitor("txPr", new F()), this.registerVisitor("c:chartSpace", new ut()), this.registerVisitor("c:chartSpace", new ht(), "chart"), this.registerVisitor("c:plotArea", new pt()), this.registerVisitor("c:barChart", new gt()), this.registerVisitor("c:doughnutChart", new S()), this.registerVisitor("c:lineChart", new S()), this.registerVisitor("c:ofPieType", new S()), this.registerVisitor("c:pieChart", new S()), this.registerVisitor("c:scatterChart", new S()), this.registerVisitor("c:barChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new N("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new dt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new R()), this.registerVisitor("c:valAx", new R()), this.registerVisitor("c:dateAx", new R()), this.registerVisitor("c:majorGridlines", new j("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new j("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new F("labels.text"), "txPr"), this.registerVisitor("c:valAx", new F("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new F("labels.text"), "txPr"), this.registerVisitor("c:legend", new At()), this.registerVisitor("c:legend", new F("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new ft()), this.registerVisitor("c:ser", new yt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new N("labels"), "dLbls"), this.registerVisitor("c:dLbl", new N("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new vt()), this.registerVisitor("c:dispUnits", new j("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new F(), "tx/rich"), this.registerVisitor("a:theme", new Ft()), this.registerVisitor("a:theme", new Ct(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new wt(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new Nt()), this.registerVisitor("sortState", new Ot()), this.registerVisitor("s:workbook", new Vt()), this.registerVisitor("styleSheet", new Tt()), this.registerVisitor("table", new St()), this.registerVisitor("hlinkClick", new Pt()), this.registerVisitor("wsDr", new xt()), this.registerVisitor("twoCellAnchor", new E()), this.registerVisitor("oneCellAnchor", new E()), this.registerVisitor("absoluteAnchor", new E()), this.registerVisitor("graphicFrame", new kt()), this.registerVisitor("sp", new z()), this.registerVisitor("grpSp", new Lt()), this.registerVisitor("cxnSp", new Bt()), this.registerVisitor("pic", new It()), this.registerVisitor("rvStructures", new _t()), this.registerVisitor("rvData", new jt()), this.registerVisitor("comments", new Rt()), this.registerVisitor("commentList", new Et(), "comment"), this.registerVisitor("comment", new F("content"), "text"), this.registerVisitor("ThreadedComments", new Yt()), this.registerVisitor("threadedComment", new Dt()), this.registerVisitor("threadedComment", new F("content"), "text"), this.registerVisitor("personList", new Mt());
1628
1629
  }
1629
1630
  registerVisitor(t, e, s = null) {
1630
1631
  t.indexOf(":") === -1 && (t = "*:" + t);
@@ -1697,6 +1698,6 @@ class Xt {
1697
1698
  }
1698
1699
  }
1699
1700
  export {
1700
- Xt as FromOOXMLConverter,
1701
- Xt as default
1701
+ $t as FromOOXMLConverter,
1702
+ $t as default
1702
1703
  };
@@ -1,24 +1,25 @@
1
- import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
- import { useState as u } from "react";
1
+ import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
+ import { useState as v } from "react";
3
3
  import { Box as O, FormControlLabel as a, Checkbox as s } from "@mui/material";
4
- import { ay as l, T as b, am as H, k as r } from "./cOX4zBcY0-H_8kAj.mjs";
4
+ import { Sort as l, IRange as r } from "@sheetxl/sdk";
5
+ import { T as b, a1 as S } from "./tEvhefgL1pPAbBne.mjs";
5
6
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
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 k = ({ range: p, options: c, cell: h, onDone: d, ...C }) => {
12
- const [o, t] = u(c ?? l.DefaultRangeOptions), m = b((e) => {
12
+ const D = ({ range: p, options: c, cell: m, onDone: d, ...C }) => {
13
+ const [o, t] = v(c ?? l.DefaultRangeOptions), h = b((e) => {
13
14
  let i = null;
14
15
  e === "Sort" && (i = { ...c, options: o }), d?.(i);
15
16
  }, [o, d, c]);
16
- return n(H, { title: "Sort", options: ["Sort", "Cancel"], onDone: m, ...C, children: v(O, { sx: { display: "flex", flexDirection: "column" }, children: [n(a, { control: n(s, { checked: !o.reverse, onChange: () => t((e) => ({ ...e, reverse: !e.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.hasHeader, onChange: () => t((e) => ({ ...e, hasHeader: !e.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.collatorOptions?.sensitivity === l.CaseSensitiveOptions.sensitivity, onChange: () => t((e) => ({ ...e, collatorOptions: o.collatorOptions?.sensitivity === l.CaseSensitiveOptions.sensitivity ? l.CaseInsensitiveOptions : l.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.orientation === r.Orientation.Row, onChange: () => t((e) => {
17
+ return n(S, { title: "Sort", options: ["Sort", "Cancel"], onDone: h, ...C, children: u(O, { sx: { display: "flex", flexDirection: "column" }, children: [n(a, { control: n(s, { checked: !o.reverse, onChange: () => t((e) => ({ ...e, reverse: !e.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.hasHeader, onChange: () => t((e) => ({ ...e, hasHeader: !e.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.collatorOptions?.sensitivity === l.CaseSensitiveOptions.sensitivity, onChange: () => t((e) => ({ ...e, collatorOptions: o.collatorOptions?.sensitivity === l.CaseSensitiveOptions.sensitivity ? l.CaseInsensitiveOptions : l.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.orientation === r.Orientation.Row, onChange: () => t((e) => {
17
18
  const i = e.orientation === r.Orientation.Row ? r.Orientation.Column : r.Orientation.Row;
18
- return { ...p.getDefaultSortCriteria(i, h).options, includeHidden: e.includeHidden, reverse: e.reverse, orientation: i };
19
+ return { ...p.getDefaultSortCriteria(i, m).options, includeHidden: e.includeHidden, reverse: e.reverse, orientation: i };
19
20
  }) }), label: "Row Sort", labelPlacement: "end" }), n(a, { control: n(s, { checked: o.includeHidden, onChange: () => t((e) => ({ ...e, includeHidden: !e.includeHidden })) }), label: "Include Hidden", labelPlacement: "end" })] }) });
20
21
  };
21
22
  export {
22
- k as SortDialog,
23
- k as default
23
+ D as SortDialog,
24
+ D as default
24
25
  };
@@ -1,6 +1,6 @@
1
1
  import C, { memo as ne, useState as z, useRef as m, useCallback as re, useEffect as S } from "react";
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,23 +1,23 @@
1
1
  import { jsx as o, jsxs as k } from "react/jsx-runtime";
2
2
  import { memo as D, useState as i, useCallback as N } from "react";
3
- import { Box as w, FormControlLabel as F, Checkbox as j } from "@mui/material";
4
- import { T as v, am as y, aP as B } from "./cOX4zBcY0-H_8kAj.mjs";
3
+ import { Box as j, FormControlLabel as w, Checkbox as F } from "@mui/material";
4
+ import { T as v, a1 as y, aj as B } from "./tEvhefgL1pPAbBne.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
10
10
  */
11
- const H = ["Ok", "Cancel"], G = D((g) => {
11
+ const H = ["Ok", "Cancel"], L = D((g) => {
12
12
  const { tableOptions: e, context: r, onOption: p, onValidateOption: I, onDone: c, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: u, ...x } = g, [b, h] = i(!1), [n, f] = i(() => e?.hasHeader ?? !1), [l, O] = i(() => e?.ranges ?? null), C = v((a) => {
13
13
  const m = { ...e, hasHeader: n, ranges: l };
14
14
  p?.(a, a === s, a === t), c?.({ option: a, tableOptions: m });
15
15
  }, [c, p, t, s, n, l, e]), T = N(async (a, m) => null, []);
16
- return o(y, { title: "Insert Table", options: d, onDone: C, onValidateOption: T, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...u }, ...x, children: k(w, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(B, { formName: "range", value: l, onChangeInput: (a) => O(a), resolvedAddress: r.getNames().getRanges.bind(r.getNames()), onFocus: (a) => {
16
+ return o(y, { title: "Insert Table", options: d, onDone: C, onValidateOption: T, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...u }, ...x, children: k(j, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(B, { formName: "range", value: l, onChangeInput: (a) => O(a), resolvedAddress: r.getNames().getRanges.bind(r.getNames()), onFocus: (a) => {
17
17
  b || a.target?.select(), h(!0);
18
- } }), o(F, { control: o(j, { checked: n, onChange: () => f(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
18
+ } }), o(w, { control: o(F, { checked: n, onChange: () => f(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
19
19
  });
20
20
  export {
21
- G as TableNewDialog,
22
- G as default
21
+ L as TableNewDialog,
22
+ L as default
23
23
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -2,70 +2,71 @@ import { jsx as i, jsxs as p } from "react/jsx-runtime";
2
2
  import { memo as ie, useRef as C, useState as b, useEffect as D, useLayoutEffect as ce, useMemo as pe } from "react";
3
3
  import { DialogContent as de, Box as O, TextField as Y, InputAdornment as ue, Collapse as _, MenuItem as fe, FormControl as ge, InputLabel as me, Select as xe } from "@mui/material";
4
4
  import { ArrowBack as he, ArrowUpward as Oe, ArrowForward as Ce, ArrowDownward as ye } from "@mui/icons-material";
5
- import { aB as c, k as R, T as W, az as be, E as Te, aC as ve, aD as m, y as x, aE as Re, Z as y, aF as ke, aG as we, aH as Ee, aI as Fe, aA as k, aJ as Se, aK as Ie, l as De } from "./cOX4zBcY0-H_8kAj.mjs";
5
+ import { ICell as c, IRange as R } from "@sheetxl/sdk";
6
+ import { T as W, a4 as be, j as Te, a6 as ve, a7 as m, y as x, a8 as Re, Z as y, a9 as ke, aa as we, ab as Ie, ac as Se, a5 as k, ad as Ee, ae as Fe, A as De } from "./tEvhefgL1pPAbBne.mjs";
6
7
  import { alpha as w } from "@mui/system";
7
8
  /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
9
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
9
10
  *
10
11
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
12
  * License: The license can be found at https://www.sheetxl.com/license.
12
13
  */
13
- const $ = ie((E) => {
14
- const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...A } = E, [K, v] = b(() => ne(r, s));
14
+ const $ = ie((I) => {
15
+ const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...A } = I, [P, v] = b(() => ne(r, s));
15
16
  D(() => {
16
17
  v(ne(r, s));
17
18
  }, [r, s]);
18
- const P = W((u) => {
19
+ const K = W((u) => {
19
20
  v(u.target.value), d?.(s[u.target.value]);
20
21
  }, [d, s]), l = pe(() => Object.keys(s).map((u) => i(fe, { value: u, children: u }, u)), [s]);
21
- return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value: K, label: h, onChange: P, sx: { backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, ...A, children: l })] });
22
+ return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value: P, label: h, onChange: K, sx: { backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, ...A, children: l })] });
22
23
  }), ee = { Workbook: "workbook", Sheet: "sheet" }, te = { enter: 140, exit: 140 }, oe = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...oe };
23
24
  delete se.Values;
24
- const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
25
+ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
25
26
  const r = Object.keys(h);
26
27
  for (let s = 0; s < r.length; s++) {
27
28
  const d = r[s];
28
- if (h[d] === E) return d;
29
+ if (h[d] === I) return d;
29
30
  }
30
- }, We = ie((E) => {
31
- const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: A, onHide: K, onFindOrReplace: v, ...P } = E, l = C(null), u = C(null), V = C(null), j = C(null), H = C(null), N = C(null), z = (e, t) => {
31
+ }, je = ie((I) => {
32
+ const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: A, onHide: P, onFindOrReplace: v, ...K } = I, l = C(null), u = C(null), j = C(null), V = C(null), N = C(null), H = C(null), z = (e, t) => {
32
33
  t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
33
- }, [U, I] = b(!1), [B, le] = b(!1), [f, M] = b(h), [G, L] = b(!1), [J, X] = b(!1), [o, a] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), F = W(async (e, t, n, S) => {
34
+ }, [U, F] = b(!1), [M, le] = b(!1), [f, B] = b(h), [X, L] = b(!1), [G, Z] = b(!1), [o, a] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), S = W(async (e, t, n, E) => {
34
35
  if (!v) return;
35
36
  const g = { ...o };
36
37
  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;
37
- const re = await v({ autoFocus: S, ...g });
38
+ const re = await v({ autoFocus: E, ...g });
38
39
  L(re === 0);
39
40
  }, [o, v]);
40
41
  D(() => {
41
42
  L(!1);
42
- }, [o, B, f]);
43
- const Z = W((e, t) => {
43
+ }, [o, M, f]);
44
+ const q = W((e, t) => {
44
45
  if (e.keyCode === be.Enter) {
45
46
  if (!o.findText) return;
46
- let n = !0, S = !1;
47
- e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), z(e, S ? N.current : H.current)) : z(e, n ? j.current : V.current), F(n, t, S, !1);
47
+ let n = !0, E = !1;
48
+ e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (E = !0), z(e, E ? H.current : N.current)) : z(e, n ? V.current : j.current), S(n, t, E, !1);
48
49
  }
49
- }, [o]), q = C(null);
50
+ }, [o]), J = C(null);
50
51
  ce(() => {
51
52
  a((e) => {
52
53
  const t = { ...e };
53
- 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 }), T && (t.replaceOptions = { ...t.replaceOptions, ...T }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
54
+ t.findText = r && r.length > 0 ? r : e.findText ?? "", F(!0), s !== void 0 && (t.replaceText = s), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), T && (t.replaceOptions = { ...t.replaceOptions, ...T }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
54
55
  const n = !(!T && s === void 0);
55
- return n && M(n), t;
56
- }), J || q.current?.focus();
56
+ return n && B(n), t;
57
+ }), G || J.current?.focus();
57
58
  }, [r, s, d, T]), D(() => {
58
- f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
59
+ f ? (o.findOptions.fields[0], c.Content.Values) : F(!0);
59
60
  }, [f]), D(() => {
60
- if (U && 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", () => {
61
- l.current?.select(), I(!1);
61
+ if (U && l.current && o.findText === l.current.value) return l.current === document.activeElement || l.current.contains(document.activeElement) ? (l.current?.select(), void F(!1)) : void l.current.addEventListener("focus", () => {
62
+ l.current?.select(), F(!1);
62
63
  }, { once: !0 });
63
64
  }, [U, o]);
64
65
  const [ae, { width: Q }] = Te();
65
- return i(ve, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: q, onHide: K, onFocus: () => X(!0), onBlur: () => {
66
- X(!1), L(!1);
67
- }, PaperProps: { elevation: J ? 3 : 1 }, ...P, children: p(de, { dividers: !0, ref: ae, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
68
- if (e.key === "h" && e.ctrlKey) M(!0), l.current?.contains(document.activeElement) && u.current?.focus();
66
+ return i(ve, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: J, onHide: P, onFocus: () => Z(!0), onBlur: () => {
67
+ Z(!1), L(!1);
68
+ }, PaperProps: { elevation: G ? 3 : 1 }, ...K, children: p(de, { dividers: !0, ref: ae, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
69
+ if (e.key === "h" && e.ctrlKey) B(!0), l.current?.contains(document.activeElement) && u.current?.focus();
69
70
  else if (e.key === "f" && e.ctrlKey) l.current?.focus();
70
71
  else if (e.key === "c" && e.altKey) a((t) => {
71
72
  const n = { ...t };
@@ -83,10 +84,10 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
83
84
  });
84
85
  }
85
86
  e.preventDefault();
86
- }, 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) => {
87
+ }, 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: M, onSelectToggle: (e) => {
87
88
  le(e);
88
89
  }, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(Re, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
89
- M(e);
90
+ B(e);
90
91
  }, preventFocus: !0, label: "Toggle Replace", icon: x(i(ke, {})), 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(Y, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Q > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(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(ue, { 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) => {
91
92
  a((t) => {
92
93
  const n = { ...t };
@@ -97,36 +98,36 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
97
98
  const n = { ...t };
98
99
  return n.findOptions.matchEntireCell = e, n;
99
100
  });
100
- }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(Ee, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
101
+ }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(Ie, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
101
102
  a((t) => {
102
103
  const n = { ...t };
103
104
  return n.findOptions.useRegex = e, n;
104
105
  });
105
- }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(Fe, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => G ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => G ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
106
+ }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(Se, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => X ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => X ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
106
107
  a((t) => {
107
108
  const n = { ...t };
108
109
  return n.findText = e.target.value, n;
109
110
  });
110
- }, onKeyDown: (e) => Z(e, !1), onContextMenu: (e) => {
111
+ }, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
111
112
  e.stopPropagation();
112
113
  } }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
113
- F(!1, !1);
114
- }, touchRippleRef: V, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(he, {}) : i(Oe, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
115
- F(!0, !1);
116
- }, touchRippleRef: j, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Ce, {}) : i(ye, {})), disabled: !o.findText })] }), i(_, { in: f, timeout: te, onExit: () => {
114
+ S(!1, !1);
115
+ }, touchRippleRef: j, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(he, {}) : i(Oe, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
116
+ S(!0, !1);
117
+ }, touchRippleRef: V, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Ce, {}) : i(ye, {})), disabled: !o.findText })] }), i(_, { in: f, timeout: te, onExit: () => {
117
118
  l.current?.focus();
118
119
  }, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(Y, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(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) => {
119
120
  a((t) => {
120
121
  const n = { ...t };
121
122
  return n.replaceText = e.target.value, n;
122
123
  });
123
- }, onKeyDown: (e) => Z(e, !0), onContextMenu: (e) => {
124
+ }, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
124
125
  e.stopPropagation();
125
126
  } }), i(m, { onSelectToggle: (e) => {
126
- F(!0, !0);
127
- }, touchRippleRef: H, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(Se, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
128
- F(!0, !0, !0);
129
- }, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Ie, {})), disabled: !o.findText })] }) })] })] }), i(_, { in: B, timeout: te, onExit: () => {
127
+ S(!0, !0);
128
+ }, touchRippleRef: N, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(Ee, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
129
+ S(!0, !0, !0);
130
+ }, touchRippleRef: H, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Fe, {})), disabled: !o.findText })] }) })] })] }), i(_, { in: M, timeout: te, onExit: () => {
130
131
  l.current?.focus();
131
132
  }, 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(De, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Q >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i($, { label: "Within", value: o.scope, options: ee, onSelect: (e) => {
132
133
  a((t) => {
@@ -146,7 +147,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (E, h) => {
146
147
  } })] })] }) })] }) });
147
148
  });
148
149
  export {
149
- We as FindReplaceWindow,
150
+ je as FindReplaceWindow,
150
151
  ee as ScopeOptions,
151
- We as default
152
+ je as default
152
153
  };
@@ -0,0 +1,52 @@
1
+ import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
+ import { memo as G, useState as x, useCallback as O, useEffect as H, useMemo as S } from "react";
3
+ import { Box as w, FormControl as P, InputLabel as K, Select as q, TextField as A, Typography as I, MenuItem as J } from "@mui/material";
4
+ import { NumberFormat as n } from "@sheetxl/sdk";
5
+ import { T as l, a4 as Q, a1 as U, a5 as p } from "./tEvhefgL1pPAbBne.mjs";
6
+ import { alpha as c } from "@mui/system";
7
+ /**
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
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 X = ["Ok", "Cancel"], te = G((D) => {
14
+ const { initialValue: $, context: h, onOption: b, onValidateOption: u, onInputOption: C, onDone: m, options: T = X, defaultOption: i = T?.[0], cancelOption: d = "Cancel", sx: N, ...M } = D, [a, v] = x($), [V, j] = x(!1), g = O(async (e, o) => !0, []), f = l(async (e) => {
15
+ C?.(a, e), b?.(e, e === d, e === i), m?.();
16
+ }, [a, C, m, b, d, i]), B = l(async (e) => {
17
+ e.keyCode === Q.Enter && await g?.(a, null) !== !1 && f(i);
18
+ }, [a, f]), L = l((e) => {
19
+ v(e.target.value), g?.(e.target.value, null);
20
+ }, [u]), z = l(async (e) => {
21
+ let o = await Promise.resolve(u?.(e));
22
+ try {
23
+ o !== !1 && (o = await Promise.resolve(g?.(a, e)) ?? !0);
24
+ } catch {
25
+ }
26
+ return o ?? !0;
27
+ }, [u]), [k, F] = x(n.Styles.lookupStyle(a).formatType ?? n.Type.Custom);
28
+ H(() => {
29
+ F(n.Styles.lookupStyle(a).formatType ?? n.Type.Custom);
30
+ }, [a]);
31
+ const E = S(() => {
32
+ const e = n.Styles.lookupPrimary(), o = (r) => t(J, { value: r, children: r }, r), s = Object.keys(e).map((r) => o(e[r].formatType));
33
+ return s.push(o(n.Type.Custom)), s;
34
+ }, []), R = O((e) => {
35
+ const o = e.target.value;
36
+ F(o);
37
+ const s = n.Styles.lookupDefault(o);
38
+ s && v(s);
39
+ }, []), W = S(() => {
40
+ const e = h();
41
+ return e.createTemporaryCell({ value: e.getValue() ?? 12345, style: { numberFormat: a } });
42
+ }, [k, a, h]);
43
+ return t(U, { title: "Number Format", options: T, onDone: m, onOption: (e) => f(e), onValidateOption: z, defaultOption: i, cancelOption: d, autoFocusSel: ".autoFocus", sx: { width: "580px", ...N }, ...M, children: y(w, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), display: "flex", flexDirection: "column" }, children: [y(P, { sx: { minWidth: 135 }, size: "small", children: [t(K, { children: "Category" }), t(q, { value: k, label: "Category", onChange: R, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, children: E })] }), t(P, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(A, { label: "Code", onFocus: (e) => {
44
+ V || e.target?.select(), j(!0);
45
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` } } }, value: a, onChange: L, onKeyDown: B, onContextMenu: (e) => {
46
+ e.stopPropagation();
47
+ } }) }), y(w, { children: [t(I, { variant: "caption", component: "div", sx: { paddingLeft: (e) => e.spacing(2) }, children: "Preview" }), t(I, { variant: "body2", component: "div", sx: { borderRadius: (e) => `${e.shape.borderRadius}px`, padding: (e) => e.spacing(1), border: (e) => `1px solid ${e.palette.grey[400]}` }, children: W.getNumberFormat().displayText || "(empty)" })] })] }) });
48
+ });
49
+ export {
50
+ te as NumberFormatDialog,
51
+ te as default
52
+ };
@@ -1,10 +1,10 @@
1
- import { jsx as o, jsxs as z } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
2
  import { memo as E, useMemo as F, useState as m, useCallback as O } from "react";
3
3
  import { Box as S, FormControl as P, TextField as b } from "@mui/material";
4
- import { T as f, am as U, aA as l } from "./cOX4zBcY0-H_8kAj.mjs";
4
+ import { T as f, a1 as U, a5 as l } from "./tEvhefgL1pPAbBne.mjs";
5
5
  import { alpha as p } from "@mui/system";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -18,13 +18,13 @@ const V = ["Ok", "Cancel"], Q = E((D) => {
18
18
  }, [t, s]), [a, M] = m(T.address), [u, B] = m(() => {
19
19
  const n = s?.().toTextUnformatted() ?? H;
20
20
  return n === T.address ? "" : n;
21
- }), [$, k] = m(!1), A = O((n) => {
21
+ }), [$, k] = m(!1), L = O((n) => {
22
22
  B(n.target.value);
23
- }, []), C = O(async (n, e) => null, []), L = f(async (n) => {
23
+ }, []), C = O(async (n, e) => null, []), W = f(async (n) => {
24
24
  n !== i && x?.(a === "" ? null : { address: a }, u), h?.(n, n === i, n === c), d?.();
25
- }, [a, u, x, d, h, c, i]), W = f((n) => {
25
+ }, [a, u, x, d, h, c, i]), j = f((n) => {
26
26
  M(n.target.value), C(n.target.value, null);
27
- }, [r]), j = f(async (n) => {
27
+ }, [r]), z = f(async (n) => {
28
28
  let e = await Promise.resolve(r?.(n));
29
29
  try {
30
30
  e !== !1 && (e = await C(a, n));
@@ -32,13 +32,13 @@ const V = ["Ok", "Cancel"], Q = E((D) => {
32
32
  }
33
33
  return e ?? !0;
34
34
  }, [r]);
35
- return o(U, { title: (w ? "Edit" : "Insert") + " Link", options: y, onDone: d, onOption: (n) => L(n), onValidateOption: j, defaultOption: c, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...I }, ...v, children: z(S, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: [o(P, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(b, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (n) => {
35
+ return o(U, { title: (w ? "Edit" : "Insert") + " Link", options: y, onDone: d, onOption: (n) => W(n), onValidateOption: z, defaultOption: c, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...I }, ...v, children: A(S, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: [o(P, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(b, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (n) => {
36
36
  $ || n.target?.select(), k(!0);
37
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", l(5))}, ${p("#fff", l(5))})` } } }, value: a, onChange: W, onContextMenu: (n) => {
37
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", l(5))}, ${p("#fff", l(5))})` } } }, value: a, onChange: j, onContextMenu: (n) => {
38
38
  n.stopPropagation();
39
39
  } }) }), o(P, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(b, { label: "Display Text", placeholder: a?.startsWith("#") ? a.substring(1) : a, onFocus: () => {
40
40
  k(!0);
41
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", l(5))}, ${p("#fff", l(5))})` } } }, value: u, onChange: A, onContextMenu: (n) => {
41
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", l(5))}, ${p("#fff", l(5))})` } } }, value: u, onChange: L, onContextMenu: (n) => {
42
42
  n.stopPropagation();
43
43
  } }) })] }) });
44
44
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.