@sheetxl/studio-vanilla 0.3.4 → 0.3.5

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 (201) hide show
  1. package/browser/cjs/-aNm3r-RpjcRRCbw.cjs +6 -0
  2. package/browser/cjs/6e91IXsvk9_k3W5c.cjs +6 -0
  3. package/browser/cjs/{BTgA_stiR3dZAHop.cjs → BLHbDre9R0bvyb9G.cjs} +2 -2
  4. package/browser/cjs/{BlYpCVX1NOGpcNB6.cjs → BN0MiwKQ8NjKXgue.cjs} +3 -3
  5. package/browser/cjs/BNtn_2pcq6Dd-2HL.cjs +11 -0
  6. package/browser/cjs/{D-I49Eh-SQg7zJYX.cjs → BW_fZwvTtMLqteuJ.cjs} +1 -1
  7. package/browser/cjs/{CdVKz1bz20BYztuB.cjs → Bg9KIoDuqtkhIYfN.cjs} +1 -1
  8. package/browser/cjs/{CpPM7Ir1EZB_8bER.cjs → BiiW2FlRZHxGIWso.cjs} +1 -1
  9. package/browser/cjs/{WPXWuf9j-uwazW31.cjs → Biyqj-Wu75uxLHv1.cjs} +2 -2
  10. package/browser/cjs/BwocMiKAPb8s__1Z.cjs +6 -0
  11. package/browser/cjs/{DzE824T4cXRcKowY.cjs → CdWBtYv7LuuDLPL2.cjs} +1 -1
  12. package/browser/cjs/CuY7mAREmYhHuYWx.cjs +6 -0
  13. package/browser/cjs/CvESC6HiL0-peppq.cjs +12 -0
  14. package/browser/cjs/{BDACVe5nzEmYknRm.cjs → Cxt39d6l0pu9k1vT.cjs} +8 -8
  15. package/browser/cjs/{CuldnUeQxpcu8oJ7.cjs → D7NgrO__M-IUmM8o.cjs} +1 -1
  16. package/browser/cjs/{BB5pxJh1jhHsvVZ1.cjs → DCWZ2ZkLp-Horeca.cjs} +1 -1
  17. package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +301 -0
  18. package/browser/cjs/{BDmE5OFneHwyeeiD.cjs → DIawrhwQ7E_1l99b.cjs} +6 -6
  19. package/browser/cjs/{yZrSgyFKPqsiym7z.cjs → DKit140jXAUUSf-_.cjs} +2 -2
  20. package/browser/cjs/DKsZXMMHWKP9IZ4E.cjs +12 -0
  21. package/browser/cjs/DeAt9vyyaeB2vbxQ.cjs +6 -0
  22. package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +6 -0
  23. package/browser/cjs/Ya4f5p9go_UndgNy.cjs +6 -0
  24. package/browser/cjs/{46C8cTP5D1fDfsPs.cjs → hSI9QVPgIxqt3pXc.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/qjPE6k7aYlu-R90s.cjs +6 -0
  27. package/browser/cjs/{DD0VHDU8F1FiLKcs.cjs → yvA5FY7oe6FILMqB.cjs} +1 -1
  28. package/{cdn/assets/CGUSbWH383tudMFu.js → browser/esm/BLsIMzjofsOnRFrU.mjs} +12 -12
  29. package/{cdn/assets/BY5dcSv5nxuvXMsr.js → browser/esm/BTQ-TGJnw7w1Y0CX.mjs} +13 -13
  30. package/{cdn/assets/CNhPYXS_v3a2ATBg.js → browser/esm/BdLAPrmXIfjGFhhA.mjs} +231 -231
  31. package/browser/esm/BsDYj6xix3mlXry2.mjs +46 -0
  32. package/browser/esm/{pxRv4ndPNkOMM_s3.mjs → Btk74VwCVJ1T5LQD.mjs} +13 -13
  33. package/browser/esm/{s8U6UEvd4LQsvEnH.mjs → C60KakDbde-A4anI.mjs} +1 -1
  34. package/browser/esm/{BfNo01-WwZl_5N1M.mjs → CAm14rTtmPL5-rvQ.mjs} +220 -219
  35. package/browser/esm/CLTP12OHGQ2k4_Kt.mjs +50 -0
  36. package/browser/esm/{qchlbvmOxrybWJep.mjs → CPWh2H15145LP-d5.mjs} +1 -1
  37. package/browser/esm/CYXzmWJtZn5OJVBF.mjs +24861 -0
  38. package/{cdn/assets/dQu9CDkkTpS5h580.js → browser/esm/ChMaIhqaEhF3SLLt.mjs} +8 -8
  39. package/browser/esm/{Dq1oxXMudxqdJaKZ.mjs → CntwHkPpskE88Ixu.mjs} +11 -10
  40. package/{cdn/assets/C-oc6cc0wXRVBFx2.js → browser/esm/CsVV_QnEl77BQM3V.mjs} +1 -1
  41. package/browser/esm/{CTdGamCv2VtpI05C.mjs → CvFAAktSd9TQK1h4.mjs} +1 -1
  42. package/browser/esm/{BjLCBG20KyjNKCpy.mjs → D0-tgawYa4KXYT2c.mjs} +2 -2
  43. package/browser/esm/{BXMZNx8rs4_V8pQL.mjs → D244UwY3qPC_LNc5.mjs} +2 -2
  44. package/{cdn/assets/Dl02UNFD2tNwtHQ9.js → browser/esm/DCuLWmzd9eLWgI03.mjs} +1 -1
  45. package/browser/esm/{C2Ik_RfF43fmFDeS.mjs → DDD5zfwNNPKuc_zZ.mjs} +1 -1
  46. package/browser/esm/{BNq1DlA_v8-hm8PQ.mjs → DFa_tXqv1VN1OZdv.mjs} +75 -74
  47. package/browser/esm/{CeWIrhJ_bsxOl7mw.mjs → DJxioSY-hxyM7dmk.mjs} +24 -23
  48. package/{cdn/assets/ct9ztJbQB16MJoyP.js → browser/esm/DdrICyX8Ead15N32.mjs} +7 -7
  49. package/browser/esm/Di2tNceI3NodSsgU.mjs +41 -0
  50. package/browser/esm/{BrWhLiIy81LKNSUX.mjs → Did46-x6ZVwk_-r-.mjs} +1 -1
  51. package/browser/esm/{DLJ1zBZE-WPdkpt2.mjs → Q1yWEkJBu4cVEF33.mjs} +132 -131
  52. package/browser/esm/index.mjs +2 -2
  53. package/{cdn/assets/RWhi_dOrWDICNt1t.js → browser/esm/mq5uPzTIc1x8unBP.mjs} +1 -1
  54. package/browser/esm/wziCLl5xvHu6Guu_.mjs +22 -0
  55. package/cdn/assets/{LxoKYdUqZ4Zgxjza.js → B41q92oKD_VR31Dd.js} +13 -13
  56. package/cdn/assets/{BMb4pCD8O5vK2p1B.js → BOl7blN8JotSzCHJ.js} +2 -2
  57. package/{browser/esm/Ddm9jggzrr5VJQ68.mjs → cdn/assets/Bs-psXrTRw1jFety.js} +13 -13
  58. package/cdn/assets/{COFTB6OufFls7NP1.js → BzptX9H_YCM2l0DE.js} +11 -10
  59. package/cdn/assets/{s8U6UEvd4LQsvEnH.js → C60KakDbde-A4anI.js} +1 -1
  60. package/cdn/assets/C8omEbSXHWI_wNjp.js +41 -0
  61. package/{browser/esm/CZRLp5H9dSrMEgaI.mjs → cdn/assets/CEXK9SXjFf1dGHZe.js} +12 -12
  62. package/cdn/assets/{qchlbvmOxrybWJep.js → CPWh2H15145LP-d5.js} +1 -1
  63. package/cdn/assets/C_E1C68wCcRpC6XN.js +46 -0
  64. package/cdn/assets/{BKDQtGZxRUUzBmnI.js → ClFGbVy7cnhMW-dO.js} +2 -2
  65. package/cdn/assets/{Be9YovX6b_0gKXs5.js → CoCIP7n4THmzOggq.js} +75 -74
  66. package/{browser/esm/C-oc6cc0wXRVBFx2.mjs → cdn/assets/CsVV_QnEl77BQM3V.js} +1 -1
  67. package/cdn/assets/{CTdGamCv2VtpI05C.js → CvFAAktSd9TQK1h4.js} +1 -1
  68. package/cdn/assets/{6tFlyQMvtppXfmuU.js → Cz33L9W3cdQckAL5.js} +24 -23
  69. package/{browser/esm/BoL2rsWK1YyT1PP7.mjs → cdn/assets/DBgbBl_3O65WhfWN.js} +8 -8
  70. package/{browser/esm/Dl02UNFD2tNwtHQ9.mjs → cdn/assets/DCuLWmzd9eLWgI03.js} +1 -1
  71. package/cdn/assets/{C2Ik_RfF43fmFDeS.js → DDD5zfwNNPKuc_zZ.js} +1 -1
  72. package/cdn/assets/{mAWImp_J2v8z8hbZ.js → DLYF-18qErpwF9Q-.js} +132 -131
  73. package/{browser/esm/Br4TnuxGRULZDhCA.mjs → cdn/assets/DXMyzCcyP7039z13.js} +231 -231
  74. package/{browser/esm/GbTp1_3jFZu0Ex24.mjs → cdn/assets/DdrICyX8Ead15N32.js} +7 -7
  75. package/cdn/assets/{BrWhLiIy81LKNSUX.js → Did46-x6ZVwk_-r-.js} +1 -1
  76. package/cdn/assets/{DYgFWlitgXmKdN_I.js → Dj3GhNedlKE9TeTn.js} +220 -219
  77. package/cdn/assets/F-RqJeKWiW4i5344.js +24708 -0
  78. package/cdn/assets/NHbXgEQMftGzY01r.js +50 -0
  79. package/cdn/assets/lM5it-aJgI7DLNH9.js +22 -0
  80. package/{browser/esm/RWhi_dOrWDICNt1t.mjs → cdn/assets/mq5uPzTIc1x8unBP.js} +1 -1
  81. package/cdn/index.js +2 -2
  82. package/cdn/loader.js +1 -1
  83. package/package.json +3 -2
  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/BG8OR9VWCkyIRwrw.cjs +0 -6
  90. package/browser/cjs/BML8p6hKVpqMb-13.cjs +0 -124
  91. package/browser/cjs/BeGusiaaShhfh7Ch.cjs +0 -7
  92. package/browser/cjs/BgJ-surJf8jSxqmk.cjs +0 -6
  93. package/browser/cjs/BgJFVvwpAWB3ssLE.cjs +0 -6
  94. package/browser/cjs/Bi8tk3LAhLkM7IXm.cjs +0 -6
  95. package/browser/cjs/BnZdvx8z2BIDZv9J.cjs +0 -355
  96. package/browser/cjs/BvnUfF0WlIXumm-E.cjs +0 -6
  97. package/browser/cjs/BwGs6fp9j-iFwDlB.cjs +0 -32
  98. package/browser/cjs/C4JyilwtB4aWsWnG.cjs +0 -6
  99. package/browser/cjs/C8PUqW17bEbzJthE.cjs +0 -6
  100. package/browser/cjs/CBTWDt8vxgXfkDfh.cjs +0 -6
  101. package/browser/cjs/CJ29qM66PMBNE3G9.cjs +0 -6
  102. package/browser/cjs/CKtzkomrFnDVY5SY.cjs +0 -11
  103. package/browser/cjs/CLarA_vLTlgU3TCF.cjs +0 -13
  104. package/browser/cjs/CN8Y9NZjRCPl8CqY.cjs +0 -6
  105. package/browser/cjs/CNIPdrSO6Xr2gkt9.cjs +0 -6
  106. package/browser/cjs/CNkEdWYoHRiw_Uez.cjs +0 -6
  107. package/browser/cjs/CPFRW8nnIVWYeQYn.cjs +0 -12
  108. package/browser/cjs/CZih4fqvAIVbCVO4.cjs +0 -6
  109. package/browser/cjs/Cx3wCYZR6BKbOtgk.cjs +0 -6
  110. package/browser/cjs/Cx8xafhEESu639Ig.cjs +0 -6
  111. package/browser/cjs/CzqzVoUeKxH16SDC.cjs +0 -6
  112. package/browser/cjs/D-GDPxpVRx45cdpQ.cjs +0 -6
  113. package/browser/cjs/D50Wzp-4UIlO9uVc.cjs +0 -6
  114. package/browser/cjs/DB9rOzEP0g0ZGfBj.cjs +0 -6
  115. package/browser/cjs/DIeyUTfGkxwK6bdT.cjs +0 -15
  116. package/browser/cjs/DX_oDw_K4CB6Ej9i.cjs +0 -6
  117. package/browser/cjs/DcNRcLtSOkHAK_Mt.cjs +0 -6
  118. package/browser/cjs/Df8ZAsCgZ69F33-C.cjs +0 -6
  119. package/browser/cjs/DfCiN8VOEQt4cw-x.cjs +0 -12
  120. package/browser/cjs/DnkG5azaxDtt-73G.cjs +0 -6
  121. package/browser/cjs/Dr_HVAdkD1bM9yrW.cjs +0 -6
  122. package/browser/cjs/KbKjJCMErVEwKqoi.cjs +0 -6
  123. package/browser/cjs/Px_DbuQFWhjhPilq.cjs +0 -6
  124. package/browser/cjs/VmYEO_-N9Cn7JpZN.cjs +0 -6
  125. package/browser/cjs/c4HmqMqg3ugRd4gl.cjs +0 -1501
  126. package/browser/cjs/jmPMUQMT7KTdf9Sr.cjs +0 -6
  127. package/browser/cjs/zRbLzzCcfjQpsQ4j.cjs +0 -6
  128. package/browser/esm/0M23_yfYSvrAB5iY.mjs +0 -472
  129. package/browser/esm/2sPP8EL_OzSYDsKu.mjs +0 -10
  130. package/browser/esm/3SiPV9yNzSbQVINg.mjs +0 -10
  131. package/browser/esm/6CkscKSECxQpy0v6.mjs +0 -10
  132. package/browser/esm/94SRg1Gxbdr9B75m.mjs +0 -10
  133. package/browser/esm/B2I1Hudz2EIGw59h.mjs +0 -10
  134. package/browser/esm/B2fqssq7kMsGIg5g.mjs +0 -10
  135. package/browser/esm/BBBP9totA24zTbqh.mjs +0 -10
  136. package/browser/esm/BEYxIKe5B75ADXWP.mjs +0 -5582
  137. package/browser/esm/BIHHiMjUvXmWQ6w_.mjs +0 -10
  138. package/browser/esm/BYRVuU6FUEX6XBFW.mjs +0 -10
  139. package/browser/esm/Bq_HFm6_6_ycs_gE.mjs +0 -48519
  140. package/browser/esm/Bs6fth_bBoNrYDwE.mjs +0 -21
  141. package/browser/esm/C-QHwmJCeB3o-mzv.mjs +0 -3934
  142. package/browser/esm/C0U_bX9Hj97edVC9.mjs +0 -10
  143. package/browser/esm/CC8aO_pPT-tkJK_H.mjs +0 -10
  144. package/browser/esm/CGxu5NKxrEXE8QIe.mjs +0 -24
  145. package/browser/esm/CKHDKAaHkwZHUkoS.mjs +0 -22
  146. package/browser/esm/CbTDhJiJfpR6Btxp.mjs +0 -10
  147. package/browser/esm/CsUNORBKkJ7f3diG.mjs +0 -10
  148. package/browser/esm/CyYXh2ng_dKgHzbE.mjs +0 -29
  149. package/browser/esm/DRFsMc27LyLwGu56.mjs +0 -820
  150. package/browser/esm/DT09m4FGTu5N2LZJ.mjs +0 -10
  151. package/browser/esm/DUgyehn3re1zGQT5.mjs +0 -10
  152. package/browser/esm/DWOT4LkGXRN4FrJI.mjs +0 -10
  153. package/browser/esm/Dx1J8HBJdbrROP0v.mjs +0 -10
  154. package/browser/esm/Dz8v5MSOgkaH_zTd.mjs +0 -49
  155. package/browser/esm/F7oUe3nLrtaRYTas.mjs +0 -10
  156. package/browser/esm/FCkxbRy2XiqD3GdL.mjs +0 -41
  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/im3UoVISx3VXhEFp.mjs +0 -46
  162. package/browser/esm/kagl0zcUDaK1IX_X.mjs +0 -10
  163. package/browser/esm/t7CffsKJY64LMXgS.mjs +0 -10
  164. package/browser/esm/x9wy-F3t5pNOvOIp.mjs +0 -425
  165. package/cdn/assets/2sPP8EL_OzSYDsKu.js +0 -10
  166. package/cdn/assets/3SiPV9yNzSbQVINg.js +0 -10
  167. package/cdn/assets/6CkscKSECxQpy0v6.js +0 -10
  168. package/cdn/assets/94SRg1Gxbdr9B75m.js +0 -10
  169. package/cdn/assets/B2I1Hudz2EIGw59h.js +0 -10
  170. package/cdn/assets/B2fqssq7kMsGIg5g.js +0 -10
  171. package/cdn/assets/BBBP9totA24zTbqh.js +0 -10
  172. package/cdn/assets/BD1S4plUUe1NPAqV.js +0 -425
  173. package/cdn/assets/BIHHiMjUvXmWQ6w_.js +0 -10
  174. package/cdn/assets/BPStm90FUYfOgibU.js +0 -41
  175. package/cdn/assets/BYRVuU6FUEX6XBFW.js +0 -10
  176. package/cdn/assets/Bs6fth_bBoNrYDwE.js +0 -21
  177. package/cdn/assets/BzlAT8jiYfNV3kGy.js +0 -820
  178. package/cdn/assets/C0U_bX9Hj97edVC9.js +0 -10
  179. package/cdn/assets/CC8aO_pPT-tkJK_H.js +0 -10
  180. package/cdn/assets/CG-YuIoWsi12_nu9.js +0 -22
  181. package/cdn/assets/CGxu5NKxrEXE8QIe.js +0 -24
  182. package/cdn/assets/CJOmvmuvywU33q7C.js +0 -3934
  183. package/cdn/assets/CbTDhJiJfpR6Btxp.js +0 -10
  184. package/cdn/assets/CsUNORBKkJ7f3diG.js +0 -10
  185. package/cdn/assets/DBq5E3hmvVO5ss1V.js +0 -5582
  186. package/cdn/assets/DT09m4FGTu5N2LZJ.js +0 -10
  187. package/cdn/assets/DUgyehn3re1zGQT5.js +0 -10
  188. package/cdn/assets/DWOT4LkGXRN4FrJI.js +0 -10
  189. package/cdn/assets/Det1P4Jrl9aZHFGe.js +0 -472
  190. package/cdn/assets/DjHCn_TmfObC_aJ1.js +0 -46
  191. package/cdn/assets/Dt3qIbvMvgQhNgeR.js +0 -1575
  192. package/cdn/assets/Dx1J8HBJdbrROP0v.js +0 -10
  193. package/cdn/assets/F7oUe3nLrtaRYTas.js +0 -10
  194. package/cdn/assets/L5HOBW-m9BjZTUuw.js +0 -10
  195. package/cdn/assets/U_ihCP2tbaRnqD2g.js +0 -48366
  196. package/cdn/assets/XL9-bWRsLjEvW1Y0.js +0 -10
  197. package/cdn/assets/Z4Ov3rzhXnezd-gU.js +0 -29
  198. package/cdn/assets/dR_uwa9znq6_hDmB.js +0 -49
  199. package/cdn/assets/gX1gbnkwbpalR57F.js +0 -12
  200. package/cdn/assets/kagl0zcUDaK1IX_X.js +0 -10
  201. package/cdn/assets/t7CffsKJY64LMXgS.js +0 -10
@@ -0,0 +1,50 @@
1
+ import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
+ import { memo as G, useState as x, useCallback as O, useEffect as H, useMemo as w } from "react";
3
+ import { NumberFormat as n } from "@sheetxl/sdk";
4
+ import { t as l, av as K, m as Z, B as P, F as S, aw as q, ax as A, b as p, ay as c, a as J, Z as D, az as Q } from "./F-RqJeKWiW4i5344.js";
5
+ /**
6
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
7
+ *
8
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
+ * License: The license can be found at https://www.sheetxl.com/license.
10
+ */
11
+ const U = ["Ok", "Cancel"], ea = G(($) => {
12
+ const { initialValue: I, context: h, onOption: b, onValidateOption: u, onInputOption: C, onDone: d, options: v = U, defaultOption: r = v?.[0], cancelOption: m = "Cancel", sx: N, ...V } = $, [e, T] = x(I), [j, z] = x(!1), g = O(async (a, o) => !0, []), y = l(async (a) => {
13
+ C?.(e, a), b?.(a, a === m, a === r), d?.();
14
+ }, [e, C, d, b, m, r]), B = l(async (a) => {
15
+ a.keyCode === K.Enter && await g?.(e, null) !== !1 && y(r);
16
+ }, [e, y]), M = l((a) => {
17
+ T(a.target.value), g?.(a.target.value, null);
18
+ }, [u]), E = l(async (a) => {
19
+ let o = await Promise.resolve(u?.(a));
20
+ try {
21
+ o !== !1 && (o = await Promise.resolve(g?.(e, a)) ?? !0);
22
+ } catch {
23
+ }
24
+ return o ?? !0;
25
+ }, [u]), [k, F] = x(n.Styles.lookupStyle(e).formatType ?? n.Type.Custom);
26
+ H(() => {
27
+ F(n.Styles.lookupStyle(e).formatType ?? n.Type.Custom);
28
+ }, [e]);
29
+ const L = w(() => {
30
+ const a = n.Styles.lookupPrimary(), o = (i) => t(Q, { value: i, children: i }, i), s = Object.keys(a).map((i) => o(a[i].formatType));
31
+ return s.push(o(n.Type.Custom)), s;
32
+ }, []), R = O((a) => {
33
+ const o = a.target.value;
34
+ F(o);
35
+ const s = n.Styles.lookupDefault(o);
36
+ s && T(s);
37
+ }, []), W = w(() => {
38
+ const a = h();
39
+ return a.createTemporaryCell({ value: a.getValue() ?? 12345, style: { numberFormat: e } });
40
+ }, [k, e, h]);
41
+ return t(Z, { title: "Number Format", options: v, onDone: d, onOption: (a) => y(a), onValidateOption: E, defaultOption: r, cancelOption: m, autoFocusSel: ".autoFocus", sx: { width: "580px", ...N }, ...V, children: f(P, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [f(S, { sx: { minWidth: 135 }, size: "small", children: [t(q, { children: "Category" }), t(A, { value: k, label: "Category", onChange: R, sx: { backgroundImage: `linear-gradient(${p("#fff", c(5))}, ${p("#fff", c(5))})` }, children: L })] }), t(S, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(J, { label: "Code", onFocus: (a) => {
42
+ j || a.target?.select(), z(!0);
43
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", c(5))}, ${p("#fff", c(5))})` } } }, value: e, onChange: M, onKeyDown: B, onContextMenu: (a) => {
44
+ a.stopPropagation();
45
+ } }) }), f(P, { children: [t(D, { variant: "caption", component: "div", sx: { paddingLeft: (a) => a.spacing(2) }, children: "Preview" }), t(D, { variant: "body2", component: "div", sx: { borderRadius: (a) => `${a.shape.borderRadius}px`, padding: (a) => a.spacing(1), border: (a) => `1px solid ${a.palette.grey[400]}` }, children: W.getNumberFormat().displayText || "(empty)" })] })] }) });
46
+ });
47
+ export {
48
+ ea as NumberFormatDialog,
49
+ ea as default
50
+ };
@@ -0,0 +1,22 @@
1
+ import { jsx as t, jsxs as N } from "react/jsx-runtime";
2
+ import { memo as T, useState as i, useCallback as k } from "react";
3
+ import { t as w, m as j, B as v, aP as y, at as B, au as F } from "./F-RqJeKWiW4i5344.js";
4
+ /**
5
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
6
+ *
7
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
+ * License: The license can be found at https://www.sheetxl.com/license.
9
+ */
10
+ const H = ["Ok", "Cancel"], A = T((u) => {
11
+ const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: o = d?.[0], cancelOption: s = "Cancel", sx: m, ...h } = u, [x, O] = i(!1), [n, b] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = w((a) => {
12
+ const g = { ...e, hasHeader: n, ranges: l };
13
+ c?.(a, a === s, a === o), r?.({ option: a, tableOptions: g });
14
+ }, [r, c, o, s, n, l, e]), D = k(async (a, g) => null, []);
15
+ return t(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: D, defaultOption: o, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...h, children: N(v, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [t(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
16
+ x || a.target?.select(), O(!0);
17
+ } }), t(B, { control: t(F, { checked: n, onChange: () => b(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
18
+ });
19
+ export {
20
+ A as TableNewDialog,
21
+ A as default
22
+ };
@@ -1,6 +1,6 @@
1
1
  import C, { memo as ne, useState as _, useRef as m, useCallback as re, useEffect as S } from "react";
2
2
  /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
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.
package/cdn/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
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.
@@ -115,7 +115,7 @@ let c;
115
115
  const b = async (e) => c || (c = await (async (n, t) => {
116
116
  try {
117
117
  if (t?.selector && C(t?.selector, t?.loading), !n) {
118
- const { resolveDependencies: r } = await import("./assets/BKDQtGZxRUUzBmnI.js");
118
+ const { resolveDependencies: r } = await import("./assets/ClFGbVy7cnhMW-dO.js");
119
119
  n = await r(t?.dependencies);
120
120
  }
121
121
  t?.licenseKey && await n.StudioMUI.LicenseManager.setLicenseKey(t.licenseKey), t?.selector && h(t?.selector);
package/cdn/loader.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(e){typeof define=="function"&&define.amd?define(e):e()})(function(){"use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-vanilla",
3
3
  "description": "SheetXL Studio - Vanilla entry point for integrating SheetXL UI.",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "main": "./browser/esm/index.mjs",
@@ -41,11 +41,12 @@
41
41
  "@mui/styled-engine": "^6.4.2",
42
42
  "@mui/system": "^6.4.2",
43
43
  "@mui/utils": "^6.4.2",
44
- "@sheetxl/studio-mui": "^0.3.4",
44
+ "@sheetxl/studio-mui": "^0.3.5",
45
45
  "csstype": "^3.1.3",
46
46
  "http-server": "^14.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
+ "@sheetxl/sdk": "^0.3.5",
49
50
  "react": "^19.1.0",
50
51
  "react-dom": "^19.1.0"
51
52
  }
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),n=require("react"),l=require("./BnZdvx8z2BIDZv9J.cjs"),E=["Ok","Cancel"],V=n.memo(C=>{const{value:a=null,context:t,onOption:p,onValidateOption:F,onDone:g,onUpdate:m,options:x=E,defaultOption:y=x?.[0],cancelOption:f="Cancel",sx:h,...v}=C,N=n.useMemo(()=>t?.getNames().findValidName("Range1"),[]),d=n.useMemo(()=>{if(!a)return!0},[]),[o,R]=n.useState({displayText:a?.getName()??N,errorText:null}),[s,S]=n.useState({displayValue:a?.getRanges()??t?.selection()??null,errorText:null}),[T,O]=n.useState(!1),b=n.useCallback(async e=>!o.errorText&&!s.errorText,[t]),j=l.ye((e,i,c)=>{if(!i){let r=null;d?r=t?.getNames().addReference(o?.displayText,s?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(o?.displayText),a.setReference(s?.displayValue)},`Edit Named '${o?.displayText}'`),r=a),r&&(r.select(),m(r,d))}p?.(e,i,c),g?.()},[t,o,s,g,p,y,f,m]),w=l.ye(e=>{let i=null;try{t?.getNames().validateName(e)}catch(c){i=c.message}R({displayText:e,errorText:i})},[]),B=l.ye(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||t?.getNames().validateName(e)},[t,a]),D=n.useCallback(e=>{S({displayValue:e??null,errorText:null})},[]);return u.jsx(l.n6,{title:(d?"Define":"Edit")+" Range",options:x,onOption:j,onValidateOption:b,defaultOption:y,cancelOption:f,autoFocusSel:".autoFocus",sx:{width:"460px",...h},...v,children:u.jsxs(l.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[u.jsx(l.VE,{formName:"name",defaultInput:N,value:o.displayText,onChangeInput:w,onValidate:B,onFocus:e=>{T||e.target?.select(),O(!0)}}),u.jsx(l.BE,{formName:"range",value:s.displayValue,onChangeInput:D,resolvedAddress:t.getNames().getRanges.bind(t.getNames()),onFocus:e=>{T||e.target?.select(),O(!0)}})]})})});exports.NamedReferenceDialog=V,exports.default=V;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={FILTERXML:{s:"Returns specific data from XML content using the specified XPath.",p:{xml:{d:"is a string in valid XML format."},xpath:{d:"is a string in standard XPath format."}}}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./c4HmqMqg3ugRd4gl.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),a=require("react"),n=require("./BnZdvx8z2BIDZv9J.cjs"),M=["Input"],z=a.memo(a.forwardRef((y,H)=>{const{initialValue:O="",onOption:T,onValidateOption:s,onInputOption:r,onValidateInputOption:l,onDone:u,inputProps:c,inputLabel:w,inputType:F,inputPlaceHolder:S,options:d=M,autoFocusSel:P=".autoFocus",cancelOption:g,defaultOption:m=d?.[0],...b}=y,[v,C]=a.useState(!1),[t,I]=a.useState(O),[j,k]=a.useState(""),[V,q]=a.useState(!0),i=n.pn(async(e,o)=>{if(!l)return!0;const h=await l?.(e,o);k(h?.message??"");const x=h?.valid??!0;return q(x),x},[l]),f=n.pn(async e=>{r?.(t,e)},[t,r,u,T,g,m]),B=n.pn(async e=>{e.keyCode===n.zo.Enter&&await i?.(t,null)},[t,f]),D=n.pn(e=>{I(e.target.value),i?.(e.target.value,null)},[s]),E=n.pn(async e=>{let o=await i(t,e);try{o!==!1&&(o=await i(t,e))}catch{}return o??!0},[t,s]);return p.jsx(n.n6,{options:d,onDone:u,onOption:(e,o)=>{o||f(e)},onValidateOption:E,cancelOption:g,defaultOption:m,autoFocusSel:P,...b,children:p.jsx(n.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:p.jsx(n.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:p.jsx(n.TextField,{onFocus:e=>{v||e.target?.select(),C(!0)},type:F,label:w,helperText:j||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:S,spellCheck:!1,autoComplete:"off",...c,className:n.To("autoFocus",c?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",n.Ey(5))}, ${n.alpha("#fff",n.Ey(5))})`}}},value:t,onChange:D,onKeyDown:B,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=z;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CUBEKPIMEMBER:{s:"Returns a key performance indicator (KPI) property and displays the KPI name in the cell.",p:{connection:{d:"is the name of a connection to an OLAP cube"},kpiName:{d:"is the KPI name"},kpiProperty:{d:"is the KPI property"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBER:{s:"Returns a member or tuple from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member or tuple in the OLAP cube"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBERPROPERTY:{s:"Returns the value of a member property from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member in the OLAP cube"},kpiProperty:{d:"is the property name"}},h:"Unimplemented"},CUBERANKEDMEMBER:{s:"Returns the nth, or ranked, member in a set.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the set from which the element is to be retrieved"},rank:{d:"is the rank of the element to be retrieved"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBESET:{s:"Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the expression for the set"},caption:{d:"is the caption to be displayed in the cell"},sortOrder:{d:"is the sort order"},sortBy:{d:"is the sort by"}},h:"Unimplemented"},CUBESETCOUNT:{s:"Returns the number of items in a set.",p:{set:{d:"is the set whose elements are to be counted"}},h:"Unimplemented"},CUBEVALUE:{s:"Returns an aggregated value from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{}},h:"Unimplemented"}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DELTA:{s:"Tests whether two numbers are equal",p:{number1:{d:"is the first number"},number2:{d:"is the second number",v:0}}},GESTEP:{s:"Tests whether a number is greater than a threshold value",p:{number:{d:"is the value to test against step"},step:{d:"is the threshold value",v:0}}}};