@a-ui/react 7.13.0-beta.7 → 7.13.0-beta.8

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 (436) hide show
  1. package/cjs/index10.js +1 -1
  2. package/cjs/index100.js +1 -1
  3. package/cjs/index101.js +1 -1
  4. package/cjs/index102.js +1 -1
  5. package/cjs/index103.js +1 -1
  6. package/cjs/index104.js +1 -1
  7. package/cjs/index105.js +1 -1
  8. package/cjs/index106.js +1 -1
  9. package/cjs/index107.js +1 -1
  10. package/cjs/index108.js +1 -1
  11. package/cjs/index109.js +1 -1
  12. package/cjs/index11.js +1 -1
  13. package/cjs/index110.js +1 -1
  14. package/cjs/index111.js +1 -1
  15. package/cjs/index112.js +1 -1
  16. package/cjs/index113.js +1 -1
  17. package/cjs/index114.js +1 -1
  18. package/cjs/index115.js +1 -1
  19. package/cjs/index116.js +1 -1
  20. package/cjs/index117.js +1 -1
  21. package/cjs/index118.js +1 -1
  22. package/cjs/index119.js +1 -1
  23. package/cjs/index12.js +1 -1
  24. package/cjs/index120.js +1 -1
  25. package/cjs/index121.js +1 -1
  26. package/cjs/index122.js +1 -1
  27. package/cjs/index123.js +1 -1
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +1 -1
  31. package/cjs/index127.js +1 -1
  32. package/cjs/index128.js +1 -1
  33. package/cjs/index129.js +1 -1
  34. package/cjs/index13.js +1 -1
  35. package/cjs/index130.js +1 -1
  36. package/cjs/index131.js +1 -1
  37. package/cjs/index132.js +1 -1
  38. package/cjs/index133.js +1 -1
  39. package/cjs/index134.js +1 -1
  40. package/cjs/index135.js +1 -1
  41. package/cjs/index136.js +1 -1
  42. package/cjs/index137.js +1 -1
  43. package/cjs/index138.js +1 -5
  44. package/cjs/index139.js +1 -1
  45. package/cjs/index14.js +1 -1
  46. package/cjs/index140.js +1 -1
  47. package/cjs/index141.js +1 -1
  48. package/cjs/index142.js +1 -1
  49. package/cjs/index143.js +1 -1
  50. package/cjs/index144.js +1 -1
  51. package/cjs/index145.js +1 -1
  52. package/cjs/index146.js +1 -1
  53. package/cjs/index147.js +1 -1
  54. package/cjs/index148.js +1 -1
  55. package/cjs/index149.js +1 -1
  56. package/cjs/index150.js +1 -1
  57. package/cjs/index151.js +1 -1
  58. package/cjs/index152.js +1 -1
  59. package/cjs/index153.js +1 -1
  60. package/cjs/index154.js +1 -1
  61. package/cjs/index155.js +1 -1
  62. package/cjs/index156.js +1 -1
  63. package/cjs/index157.js +1 -1
  64. package/cjs/index158.js +1 -1
  65. package/cjs/index159.js +1 -1
  66. package/cjs/index16.js +1 -1
  67. package/cjs/index160.js +1 -1
  68. package/cjs/index161.js +1 -1
  69. package/cjs/index162.js +1 -1
  70. package/cjs/index163.js +1 -1
  71. package/cjs/index164.js +1 -1
  72. package/cjs/index165.js +1 -1
  73. package/cjs/index166.js +1 -1
  74. package/cjs/index167.js +1 -1
  75. package/cjs/index168.js +1 -1
  76. package/cjs/index169.js +1 -1
  77. package/cjs/index17.js +1 -1
  78. package/cjs/index170.js +1 -1
  79. package/cjs/index171.js +1 -1
  80. package/cjs/index172.js +1 -1
  81. package/cjs/index173.js +1 -1
  82. package/cjs/index174.js +1 -1
  83. package/cjs/index175.js +1 -1
  84. package/cjs/index176.js +1 -1
  85. package/cjs/index177.js +1 -1
  86. package/cjs/index178.js +1 -1
  87. package/cjs/index179.js +1 -1
  88. package/cjs/index18.js +1 -1
  89. package/cjs/index180.js +1 -1
  90. package/cjs/index181.js +1 -1
  91. package/cjs/index182.js +1 -1
  92. package/cjs/index183.js +1 -1
  93. package/cjs/index184.js +1 -1
  94. package/cjs/index185.js +1 -1
  95. package/cjs/index186.js +1 -1
  96. package/cjs/index187.js +1 -1
  97. package/cjs/index188.js +1 -1
  98. package/cjs/index189.js +1 -1
  99. package/cjs/index190.js +1 -1
  100. package/cjs/index191.js +1 -1
  101. package/cjs/index192.js +1 -1
  102. package/cjs/index193.js +1 -1
  103. package/cjs/index194.js +1 -1
  104. package/cjs/index195.js +1 -1
  105. package/cjs/index196.js +2 -1
  106. package/cjs/index197.js +1 -1
  107. package/cjs/index198.js +1 -1
  108. package/cjs/index199.js +1 -1
  109. package/cjs/index2.js +1 -1
  110. package/cjs/index20.js +1 -1
  111. package/cjs/index200.js +1 -1
  112. package/cjs/index201.js +10 -1
  113. package/cjs/index202.js +1 -1
  114. package/cjs/index203.js +1 -1
  115. package/cjs/index204.js +1 -1
  116. package/cjs/index205.js +1 -1
  117. package/cjs/index206.js +1 -1
  118. package/cjs/index207.js +1 -1
  119. package/cjs/index208.js +5 -2
  120. package/cjs/index209.js +9 -1
  121. package/cjs/index21.js +1 -1
  122. package/cjs/index210.js +1 -1
  123. package/cjs/index211.js +1 -1
  124. package/cjs/index212.js +1 -1
  125. package/cjs/index213.js +1 -10
  126. package/cjs/index214.js +1 -1
  127. package/cjs/index215.js +1 -1
  128. package/cjs/index216.js +1 -1
  129. package/cjs/index217.js +1 -1
  130. package/cjs/index218.js +1 -1
  131. package/cjs/index219.js +1 -1
  132. package/cjs/index22.js +1 -1
  133. package/cjs/index220.js +1 -5
  134. package/cjs/index221.js +1 -9
  135. package/cjs/index223.js +1 -1
  136. package/cjs/index224.js +1 -1
  137. package/cjs/index229.js +1 -1
  138. package/cjs/index233.js +1 -1
  139. package/cjs/index235.js +1 -1
  140. package/cjs/index24.js +1 -1
  141. package/cjs/index25.js +1 -1
  142. package/cjs/index26.js +1 -1
  143. package/cjs/index27.js +1 -1
  144. package/cjs/index28.js +1 -1
  145. package/cjs/index3.js +1 -1
  146. package/cjs/index30.js +1 -1
  147. package/cjs/index31.js +1 -1
  148. package/cjs/index32.js +1 -1
  149. package/cjs/index33.js +1 -1
  150. package/cjs/index34.js +1 -1
  151. package/cjs/index36.js +1 -1
  152. package/cjs/index37.js +1 -1
  153. package/cjs/index38.js +1 -1
  154. package/cjs/index39.js +1 -1
  155. package/cjs/index4.js +1 -1
  156. package/cjs/index40.js +1 -1
  157. package/cjs/index41.js +1 -1
  158. package/cjs/index42.js +1 -1
  159. package/cjs/index43.js +1 -1
  160. package/cjs/index44.js +1 -1
  161. package/cjs/index45.js +1 -1
  162. package/cjs/index46.js +1 -1
  163. package/cjs/index47.js +1 -1
  164. package/cjs/index48.js +1 -1
  165. package/cjs/index49.js +1 -1
  166. package/cjs/index50.js +1 -1
  167. package/cjs/index51.js +7 -1
  168. package/cjs/index52.js +1 -1
  169. package/cjs/index54.js +1 -1
  170. package/cjs/index55.js +1 -1
  171. package/cjs/index56.js +1 -0
  172. package/cjs/index57.js +1 -1
  173. package/cjs/index58.js +1 -1
  174. package/cjs/index59.js +1 -1
  175. package/cjs/index6.js +1 -1
  176. package/cjs/index60.js +1 -1
  177. package/cjs/index61.js +1 -1
  178. package/cjs/index62.js +1 -1
  179. package/cjs/index63.js +1 -1
  180. package/cjs/index64.js +1 -1
  181. package/cjs/index65.js +1 -1
  182. package/cjs/index66.js +1 -1
  183. package/cjs/index67.js +1 -1
  184. package/cjs/index68.js +1 -1
  185. package/cjs/index69.js +1 -1
  186. package/cjs/index70.js +1 -1
  187. package/cjs/index71.js +1 -1
  188. package/cjs/index72.js +1 -1
  189. package/cjs/index73.js +1 -1
  190. package/cjs/index74.js +1 -1
  191. package/cjs/index75.js +1 -0
  192. package/cjs/index76.js +1 -1
  193. package/cjs/index77.js +1 -1
  194. package/cjs/index78.js +1 -1
  195. package/cjs/index79.js +1 -7
  196. package/cjs/index8.js +1 -1
  197. package/cjs/index80.js +1 -0
  198. package/cjs/index81.js +1 -0
  199. package/cjs/index82.js +1 -1
  200. package/cjs/index83.js +1 -1
  201. package/cjs/index84.js +1 -1
  202. package/cjs/index85.js +1 -1
  203. package/cjs/index86.js +1 -0
  204. package/cjs/index87.js +1 -1
  205. package/cjs/index88.js +1 -1
  206. package/cjs/index89.js +1 -1
  207. package/cjs/index9.js +1 -1
  208. package/cjs/index90.js +1 -1
  209. package/cjs/index91.js +5 -1
  210. package/cjs/index92.js +1 -1
  211. package/cjs/index93.js +1 -1
  212. package/cjs/index94.js +1 -1
  213. package/cjs/index95.js +1 -1
  214. package/cjs/index96.js +1 -1
  215. package/cjs/index97.js +1 -1
  216. package/cjs/index98.js +1 -1
  217. package/cjs/index99.js +1 -1
  218. package/es/index10.mjs +4 -4
  219. package/es/index100.mjs +6 -5
  220. package/es/index101.mjs +5 -4
  221. package/es/index102.mjs +5 -6
  222. package/es/index103.mjs +4 -4
  223. package/es/index104.mjs +4 -4
  224. package/es/index105.mjs +6 -4
  225. package/es/index106.mjs +5 -7
  226. package/es/index107.mjs +66 -12
  227. package/es/index108.mjs +3 -16
  228. package/es/index109.mjs +4 -8
  229. package/es/index11.mjs +1 -1
  230. package/es/index110.mjs +10 -5
  231. package/es/index111.mjs +4 -5
  232. package/es/index112.mjs +4 -4
  233. package/es/index113.mjs +7 -513
  234. package/es/index114.mjs +13 -50
  235. package/es/index115.mjs +15 -17
  236. package/es/index116.mjs +9 -18
  237. package/es/index117.mjs +5 -4
  238. package/es/index118.mjs +5 -7
  239. package/es/index119.mjs +4 -5
  240. package/es/index12.mjs +14 -14
  241. package/es/index120.mjs +512 -4
  242. package/es/index121.mjs +50 -6
  243. package/es/index122.mjs +17 -8
  244. package/es/index123.mjs +18 -5
  245. package/es/index124.mjs +4 -7
  246. package/es/index125.mjs +7 -11
  247. package/es/index126.mjs +5 -8
  248. package/es/index127.mjs +4 -8
  249. package/es/index128.mjs +5 -12
  250. package/es/index129.mjs +8 -3
  251. package/es/index13.mjs +2 -2
  252. package/es/index130.mjs +4 -32
  253. package/es/index131.mjs +8 -65
  254. package/es/index132.mjs +11 -7
  255. package/es/index133.mjs +8 -7
  256. package/es/index134.mjs +8 -6
  257. package/es/index135.mjs +12 -6
  258. package/es/index136.mjs +3 -13
  259. package/es/index137.mjs +24 -389
  260. package/es/index138.mjs +65 -40
  261. package/es/index139.mjs +8 -57
  262. package/es/index14.mjs +3 -3
  263. package/es/index140.mjs +7 -21
  264. package/es/index141.mjs +6 -40
  265. package/es/index142.mjs +6 -60
  266. package/es/index143.mjs +13 -31
  267. package/es/index144.mjs +2 -13
  268. package/es/index145.mjs +232 -59
  269. package/es/index146.mjs +2 -62
  270. package/es/index147.mjs +54 -60
  271. package/es/index148.mjs +17 -58
  272. package/es/index149.mjs +33 -32
  273. package/es/index150.mjs +44 -24
  274. package/es/index151.mjs +19 -40
  275. package/es/index152.mjs +10 -40
  276. package/es/index153.mjs +49 -24
  277. package/es/index154.mjs +39 -43
  278. package/es/index155.mjs +50 -53
  279. package/es/index156.mjs +40 -68
  280. package/es/index157.mjs +35 -36
  281. package/es/index158.mjs +36 -36
  282. package/es/index159.mjs +47 -35
  283. package/es/index16.mjs +1 -1
  284. package/es/index160.mjs +37 -19
  285. package/es/index161.mjs +31 -18
  286. package/es/index162.mjs +60 -18
  287. package/es/index163.mjs +60 -19
  288. package/es/index164.mjs +85 -18
  289. package/es/index165.mjs +36 -19
  290. package/es/index166.mjs +38 -11
  291. package/es/index167.mjs +36 -35
  292. package/es/index168.mjs +20 -35
  293. package/es/index169.mjs +21 -11
  294. package/es/index17.mjs +4 -4
  295. package/es/index170.mjs +21 -11
  296. package/es/index171.mjs +24 -23
  297. package/es/index172.mjs +24 -2
  298. package/es/index173.mjs +21 -232
  299. package/es/index174.mjs +14 -2
  300. package/es/index175.mjs +40 -2
  301. package/es/index176.mjs +37 -388
  302. package/es/index177.mjs +12 -123
  303. package/es/index178.mjs +11 -131
  304. package/es/index179.mjs +11 -68
  305. package/es/index18.mjs +8 -8
  306. package/es/index180.mjs +247 -31
  307. package/es/index181.mjs +89 -9
  308. package/es/index182.mjs +15 -155
  309. package/es/index183.mjs +4 -108
  310. package/es/index184.mjs +2 -20
  311. package/es/index185.mjs +2 -101
  312. package/es/index186.mjs +67 -46
  313. package/es/index187.mjs +31 -11
  314. package/es/index188.mjs +9 -247
  315. package/es/index189.mjs +150 -86
  316. package/es/index190.mjs +110 -15
  317. package/es/index191.mjs +20 -4
  318. package/es/index192.mjs +101 -2
  319. package/es/index193.mjs +47 -2
  320. package/es/index194.mjs +2 -59
  321. package/es/index195.mjs +7 -8
  322. package/es/index196.mjs +325 -18
  323. package/es/index197.mjs +49 -67
  324. package/es/index198.mjs +2 -31
  325. package/es/index199.mjs +65 -9
  326. package/es/index2.mjs +1 -1
  327. package/es/index20.mjs +2 -2
  328. package/es/index200.mjs +42 -107
  329. package/es/index201.mjs +58 -105
  330. package/es/index202.mjs +45 -8
  331. package/es/index203.mjs +39 -15
  332. package/es/index204.mjs +2 -29
  333. package/es/index205.mjs +2 -13
  334. package/es/index206.mjs +2 -2
  335. package/es/index207.mjs +30 -7
  336. package/es/index208.mjs +18 -326
  337. package/es/index209.mjs +57 -46
  338. package/es/index21.mjs +1 -1
  339. package/es/index210.mjs +68 -2
  340. package/es/index211.mjs +31 -65
  341. package/es/index212.mjs +9 -43
  342. package/es/index213.mjs +106 -58
  343. package/es/index214.mjs +109 -46
  344. package/es/index215.mjs +55 -36
  345. package/es/index216.mjs +9 -2
  346. package/es/index217.mjs +20 -2
  347. package/es/index218.mjs +7 -2
  348. package/es/index219.mjs +13 -28
  349. package/es/index22.mjs +1 -1
  350. package/es/index220.mjs +29 -19
  351. package/es/index221.mjs +12 -60
  352. package/es/index223.mjs +1 -1
  353. package/es/index224.mjs +1 -1
  354. package/es/index229.mjs +1 -1
  355. package/es/index233.mjs +2 -2
  356. package/es/index234.mjs +2 -2
  357. package/es/index235.mjs +2 -2
  358. package/es/index24.mjs +4 -4
  359. package/es/index25.mjs +2 -2
  360. package/es/index26.mjs +1 -1
  361. package/es/index27.mjs +1 -1
  362. package/es/index28.mjs +1 -1
  363. package/es/index3.mjs +1 -1
  364. package/es/index30.mjs +31 -31
  365. package/es/index31.mjs +2 -2
  366. package/es/index32.mjs +2 -2
  367. package/es/index33.mjs +3 -3
  368. package/es/index34.mjs +1 -1
  369. package/es/index36.mjs +3 -3
  370. package/es/index37.mjs +3 -3
  371. package/es/index38.mjs +3 -3
  372. package/es/index39.mjs +3 -3
  373. package/es/index4.mjs +2 -2
  374. package/es/index40.mjs +2 -2
  375. package/es/index41.mjs +1 -1
  376. package/es/index42.mjs +4 -4
  377. package/es/index43.mjs +1 -1
  378. package/es/index44.mjs +2 -2
  379. package/es/index45.mjs +3 -3
  380. package/es/index46.mjs +3 -3
  381. package/es/index47.mjs +2 -2
  382. package/es/index48.mjs +1 -1
  383. package/es/index49.mjs +2 -2
  384. package/es/index50.mjs +1 -1
  385. package/es/index51.mjs +407 -6
  386. package/es/index52.mjs +11 -49
  387. package/es/index54.mjs +47 -6
  388. package/es/index55.mjs +8 -47
  389. package/es/index56.mjs +30 -0
  390. package/es/index57.mjs +8 -2
  391. package/es/index58.mjs +11 -74
  392. package/es/index59.mjs +21 -11
  393. package/es/index6.mjs +3 -3
  394. package/es/index60.mjs +30 -29
  395. package/es/index61.mjs +12 -34
  396. package/es/index62.mjs +58 -3
  397. package/es/index63.mjs +47 -35
  398. package/es/index64.mjs +58 -4
  399. package/es/index65.mjs +61 -4
  400. package/es/index66.mjs +59 -4
  401. package/es/index67.mjs +28 -4
  402. package/es/index68.mjs +2 -5
  403. package/es/index69.mjs +72 -15
  404. package/es/index70.mjs +27 -27
  405. package/es/index71.mjs +35 -84
  406. package/es/index72.mjs +3 -5
  407. package/es/index73.mjs +32 -22
  408. package/es/index74.mjs +4 -54
  409. package/es/index75.mjs +7 -0
  410. package/es/index76.mjs +4 -4
  411. package/es/index77.mjs +4 -118
  412. package/es/index78.mjs +4 -20
  413. package/es/index79.mjs +16 -408
  414. package/es/index8.mjs +3 -3
  415. package/es/index80.mjs +87 -0
  416. package/es/index81.mjs +8 -0
  417. package/es/index82.mjs +24 -16
  418. package/es/index83.mjs +55 -30
  419. package/es/index84.mjs +24 -13
  420. package/es/index85.mjs +4 -58
  421. package/es/index86.mjs +121 -0
  422. package/es/index87.mjs +17 -62
  423. package/es/index88.mjs +117 -58
  424. package/es/index89.mjs +5 -5
  425. package/es/index9.mjs +1 -1
  426. package/es/index90.mjs +390 -59
  427. package/es/index91.mjs +40 -3
  428. package/es/index92.mjs +23 -4
  429. package/es/index93.mjs +2 -11
  430. package/es/index94.mjs +390 -4
  431. package/es/index95.mjs +124 -62
  432. package/es/index96.mjs +133 -13
  433. package/es/index97.mjs +62 -6
  434. package/es/index98.mjs +13 -6
  435. package/es/index99.mjs +6 -5
  436. package/package.json +1 -1
package/es/index83.mjs CHANGED
@@ -1,32 +1,57 @@
1
- const f = (t, n) => Array(n - t + 1).fill(0).map((e, o) => o + t), d = (t, n) => {
2
- const e = n <= 7 ? 7 : t > 4 && t < n - 3 ? 2 : 4;
3
- let o = Math.round(t - e / 2), a = Math.round(t + e / 2);
4
- (o - 1 === 1 || a + 1 === n) && (o += 1, a += 1);
5
- let s = t > e ? f(Math.min(o, n - e), Math.min(a, n)) : f(1, Math.min(n, e + 1));
6
- return s[0] !== 1 && (s = [1, 0].concat(s)), s[s.length - 1] < n && (s = s.concat([0, n])), s;
7
- }, p = (t, n, e, o) => {
8
- const a = e - n, c = (t - n) / a;
9
- return Math.round(c * o);
10
- }, h = (t, n, e) => Math.min(Math.max(t, n), e), l = (t, n) => n ? t - n : t, M = (t, n, e, o, a, s, c) => {
11
- const i = h(t, 0, n) / (n || 1);
12
- let r = e * Math.round(i * (c - s)) / e + s;
13
- return r >= a && (r = a), r <= o && (r = o), r;
14
- }, V = (t, n, e, o, a, s, c, i) => {
15
- const u = "clientX", r = t.type !== "touchmove" ? t[u] : t.touches[0][u], g = l(r, i);
16
- return M(g, n, e, o, a, s, c);
17
- }, y = (t, n, e) => {
18
- const o = [];
19
- if (e <= 0)
20
- return [n];
21
- for (let a = t; a < n; a += e)
22
- o.push(a);
23
- return [...o, n];
24
- };
1
+ import { getDefaultOptions as u } from "./index119.mjs";
2
+ import { formatters as f } from "./index120.mjs";
3
+ import { longFormatters as d } from "./index121.mjs";
4
+ import { isProtectedWeekYearToken as g, isProtectedDayOfYearToken as h, warnOrThrowProtectedError as w } from "./index122.mjs";
5
+ import { isValid as D } from "./index81.mjs";
6
+ import { toDate as T } from "./index112.mjs";
7
+ import { enUS as O } from "./index123.mjs";
8
+ const E = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, C = /^'([^]*?)'?$/, S = /''/g, R = /[a-zA-Z]/;
9
+ function L(o, a, r) {
10
+ const n = u(), i = r?.locale ?? n.locale ?? O, m = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, p = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, s = T(o, r?.in);
11
+ if (!D(s))
12
+ throw new RangeError("Invalid time value");
13
+ let c = a.match(v).map((t) => {
14
+ const e = t[0];
15
+ if (e === "p" || e === "P") {
16
+ const l = d[e];
17
+ return l(t, i.formatLong);
18
+ }
19
+ return t;
20
+ }).join("").match(E).map((t) => {
21
+ if (t === "''")
22
+ return { isToken: !1, value: "'" };
23
+ const e = t[0];
24
+ if (e === "'")
25
+ return { isToken: !1, value: W(t) };
26
+ if (f[e])
27
+ return { isToken: !0, value: t };
28
+ if (e.match(R))
29
+ throw new RangeError(
30
+ "Format string contains an unescaped latin alphabet character `" + e + "`"
31
+ );
32
+ return { isToken: !1, value: t };
33
+ });
34
+ i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
35
+ const k = {
36
+ firstWeekContainsDate: m,
37
+ weekStartsOn: p,
38
+ locale: i
39
+ };
40
+ return c.map((t) => {
41
+ if (!t.isToken) return t.value;
42
+ const e = t.value;
43
+ (!r?.useAdditionalWeekYearTokens && g(e) || !r?.useAdditionalDayOfYearTokens && h(e)) && w(e, a, String(o));
44
+ const l = f[e[0]];
45
+ return l(s, e, i.localize, k);
46
+ }).join("");
47
+ }
48
+ function W(o) {
49
+ const a = o.match(C);
50
+ return a ? a[1].replace(S, "'") : o;
51
+ }
25
52
  export {
26
- l as getPosition,
27
- V as getPositionValue,
28
- y as getSteps,
29
- M as getValueFromPosition,
30
- p as lineValuesToPosition,
31
- d as pagesArray
53
+ L as format,
54
+ L as formatDate,
55
+ f as formatters,
56
+ d as longFormatters
32
57
  };
package/es/index84.mjs CHANGED
@@ -1,16 +1,27 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- function a({ start: p, end: x, range: d, min: e, getPositionFromValue: r }) {
3
- return /* @__PURE__ */ f(
4
- "div",
5
- {
6
- className: "a-range-slider__bar",
7
- style: {
8
- left: d ? r(p) + "px" : "",
9
- width: d && x ? r(x + e - p) + "px" : r(p) + "px"
10
- }
11
- }
12
- );
1
+ import { addLeadingZeros as e } from "./index134.mjs";
2
+ import { toDate as O } from "./index122.mjs";
3
+ function y(f, m) {
4
+ const t = O(f, m?.in);
5
+ if (isNaN(+t))
6
+ throw new RangeError("Invalid time value");
7
+ let o = "", s = "";
8
+ const i = "-", u = ":";
9
+ {
10
+ const n = e(t.getDate(), 2), r = e(t.getMonth() + 1, 2);
11
+ o = `${e(t.getFullYear(), 4)}${i}${r}${i}${n}`;
12
+ }
13
+ {
14
+ const n = t.getTimezoneOffset();
15
+ if (n !== 0) {
16
+ const c = Math.abs(n), d = e(Math.trunc(c / 60), 2), h = e(c % 60, 2);
17
+ s = `${n < 0 ? "+" : "-"}${d}:${h}`;
18
+ } else
19
+ s = "Z";
20
+ const r = e(t.getHours(), 2), a = e(t.getMinutes(), 2), $ = e(t.getSeconds(), 2), g = o === "" ? "" : "T", l = [r, a, $].join(u);
21
+ o = `${o}${g}${l}${s}`;
22
+ }
23
+ return o;
13
24
  }
14
25
  export {
15
- a as RangeSliderBar
26
+ y as formatISO
16
27
  };
package/es/index85.mjs CHANGED
@@ -1,61 +1,7 @@
1
- import { jsx as L } from "react/jsx-runtime";
2
- import { getPositionValue as R } from "./index83.mjs";
3
- import i from "react";
4
- function x({
5
- value: a,
6
- min: n,
7
- max: r,
8
- sliderMin: d,
9
- sliderMax: p,
10
- step: l,
11
- direction: f,
12
- sliderPos: s,
13
- onUpdate: o,
14
- getPositionFromValue: h,
15
- ariaLabel: y
16
- }) {
17
- const [w, D] = i.useState(0), E = i.useRef(null);
18
- i.useEffect(() => {
19
- s && D(s);
20
- }, [f, s]);
21
- const m = (e) => {
22
- e.stopPropagation(), e.preventDefault();
23
- }, g = () => {
24
- document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
25
- }, u = (e) => {
26
- e.type === "mousemove" ? m(e) : e.stopPropagation();
27
- const t = v(e);
28
- return o && o(t);
29
- }, c = (e) => {
30
- document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
31
- const t = v(e);
32
- return o && o(t);
33
- }, v = (e) => R(e, w, l, n, r, d, p, f), k = (e) => {
34
- let t = a;
35
- e.key === "ArrowUp" || e.key === "ArrowRight" ? (e.preventDefault(), t += l) : e.key === "ArrowDown" || e.key === "ArrowLeft" ? (e.preventDefault(), t -= l) : e.key === "End" ? (e.preventDefault(), t = r) : e.key === "Home" && (e.preventDefault(), t = n), t >= n && t <= r && o(t);
36
- };
37
- return /* @__PURE__ */ L(
38
- "div",
39
- {
40
- className: "a-range-slider__handle",
41
- tabIndex: 0,
42
- style: {
43
- left: h(a) + "px"
44
- },
45
- onMouseDown: g,
46
- onTouchEnd: m,
47
- onTouchMove: u,
48
- onKeyDown: k,
49
- role: "slider",
50
- "aria-orientation": "horizontal",
51
- "aria-valuemax": r,
52
- "aria-valuemin": n,
53
- "aria-valuenow": a,
54
- "aria-label": y,
55
- ref: E
56
- }
57
- );
1
+ import { addDays as t } from "./index105.mjs";
2
+ function u(o, a, r) {
3
+ return t(o, -1, r);
58
4
  }
59
5
  export {
60
- x as RangeSliderHandle
6
+ u as subDays
61
7
  };
package/es/index86.mjs ADDED
@@ -0,0 +1,121 @@
1
+ import { millisecondsInHour as p, millisecondsInMinute as N } from "./index113.mjs";
2
+ import { constructFrom as T } from "./index111.mjs";
3
+ import { toDate as D } from "./index112.mjs";
4
+ function v(t, e) {
5
+ const n = () => T(e?.in, NaN), i = I(t);
6
+ let s;
7
+ if (i.date) {
8
+ const a = x(i.date, 2);
9
+ s = Y(a.restDateString, a.year);
10
+ }
11
+ if (!s || isNaN(+s)) return n();
12
+ const u = +s;
13
+ let o = 0, c;
14
+ if (i.time && (o = w(i.time), isNaN(o)))
15
+ return n();
16
+ if (i.timezone) {
17
+ if (c = y(i.timezone), isNaN(c)) return n();
18
+ } else {
19
+ const a = new Date(u + o), d = D(0, e?.in);
20
+ return d.setFullYear(
21
+ a.getUTCFullYear(),
22
+ a.getUTCMonth(),
23
+ a.getUTCDate()
24
+ ), d.setHours(
25
+ a.getUTCHours(),
26
+ a.getUTCMinutes(),
27
+ a.getUTCSeconds(),
28
+ a.getUTCMilliseconds()
29
+ ), d;
30
+ }
31
+ return D(u + o + c, e?.in);
32
+ }
33
+ const f = {
34
+ dateTimeDelimiter: /[T ]/,
35
+ timeZoneDelimiter: /[Z ]/i,
36
+ timezone: /([Z+-].*)$/
37
+ }, U = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, h = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, C = /^([+-])(\d{2})(?::?(\d{2}))?$/;
38
+ function I(t) {
39
+ const e = {}, n = t.split(f.dateTimeDelimiter);
40
+ let r;
41
+ if (n.length > 2)
42
+ return e;
43
+ if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1], f.timeZoneDelimiter.test(e.date) && (e.date = t.split(f.timeZoneDelimiter)[0], r = t.substr(
44
+ e.date.length,
45
+ t.length
46
+ ))), r) {
47
+ const i = f.timezone.exec(r);
48
+ i ? (e.time = r.replace(i[1], ""), e.timezone = i[1]) : e.time = r;
49
+ }
50
+ return e;
51
+ }
52
+ function x(t, e) {
53
+ const n = new RegExp(
54
+ "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
55
+ ), r = t.match(n);
56
+ if (!r) return { year: NaN, restDateString: "" };
57
+ const i = r[1] ? parseInt(r[1]) : null, s = r[2] ? parseInt(r[2]) : null;
58
+ return {
59
+ year: s === null ? i : s * 100,
60
+ restDateString: t.slice((r[1] || r[2]).length)
61
+ };
62
+ }
63
+ function Y(t, e) {
64
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
65
+ const n = t.match(U);
66
+ if (!n) return /* @__PURE__ */ new Date(NaN);
67
+ const r = !!n[4], i = l(n[1]), s = l(n[2]) - 1, u = l(n[3]), o = l(n[4]), c = l(n[5]) - 1;
68
+ if (r)
69
+ return Z(e, o, c) ? z(e, o, c) : /* @__PURE__ */ new Date(NaN);
70
+ {
71
+ const a = /* @__PURE__ */ new Date(0);
72
+ return !M(e, s, u) || !O(e, i) ? /* @__PURE__ */ new Date(NaN) : (a.setUTCFullYear(e, s, Math.max(i, u)), a);
73
+ }
74
+ }
75
+ function l(t) {
76
+ return t ? parseInt(t) : 1;
77
+ }
78
+ function w(t) {
79
+ const e = t.match(h);
80
+ if (!e) return NaN;
81
+ const n = m(e[1]), r = m(e[2]), i = m(e[3]);
82
+ return k(n, r, i) ? n * p + r * N + i * 1e3 : NaN;
83
+ }
84
+ function m(t) {
85
+ return t && parseFloat(t.replace(",", ".")) || 0;
86
+ }
87
+ function y(t) {
88
+ if (t === "Z") return 0;
89
+ const e = t.match(C);
90
+ if (!e) return 0;
91
+ const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), i = e[3] && parseInt(e[3]) || 0;
92
+ return R(r, i) ? n * (r * p + i * N) : NaN;
93
+ }
94
+ function z(t, e, n) {
95
+ const r = /* @__PURE__ */ new Date(0);
96
+ r.setUTCFullYear(t, 0, 4);
97
+ const i = r.getUTCDay() || 7, s = (e - 1) * 7 + n + 1 - i;
98
+ return r.setUTCDate(r.getUTCDate() + s), r;
99
+ }
100
+ const F = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
101
+ function g(t) {
102
+ return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
103
+ }
104
+ function M(t, e, n) {
105
+ return e >= 0 && e <= 11 && n >= 1 && n <= (F[e] || (g(t) ? 29 : 28));
106
+ }
107
+ function O(t, e) {
108
+ return e >= 1 && e <= (g(t) ? 366 : 365);
109
+ }
110
+ function Z(t, e, n) {
111
+ return e >= 1 && e <= 53 && n >= 0 && n <= 6;
112
+ }
113
+ function k(t, e, n) {
114
+ return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
115
+ }
116
+ function R(t, e) {
117
+ return e >= 0 && e <= 59;
118
+ }
119
+ export {
120
+ v as parseISO
121
+ };
package/es/index87.mjs CHANGED
@@ -1,64 +1,19 @@
1
- import { jsx as t, jsxs as v } from "react/jsx-runtime";
2
- import { SORT_ASCENDING as u, SORT_DESCENDING as d } from "./index59.mjs";
3
- import { classNames as m } from "./index51.mjs";
4
- import { wrapWithIf as C } from "./index52.mjs";
5
- import { Checkbox as S } from "./index14.mjs";
6
- function w({
7
- columns: c,
8
- selectable: p,
9
- selected: a = [],
10
- rows: _ = [],
11
- onSelectAll: g,
12
- sort: s,
13
- small: f,
14
- sortDirection: n,
15
- tableId: r,
16
- onSortClick: o,
17
- actions: i
18
- }) {
19
- const b = a.length && a.sort().join(",") === _.map((e) => e.id).sort().join(",");
20
- return /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ v("tr", { children: [
21
- p ? /* @__PURE__ */ t("th", { children: /* @__PURE__ */ t(
22
- S,
23
- {
24
- name: `aui-table-checkbox-${r}-all`,
25
- id: `aui-table-checkbox-${r}-all`,
26
- checked: !!b,
27
- indeterminate: !!a.length && !b,
28
- onChange: g,
29
- label: "selecteren",
30
- showLabel: !1
31
- }
32
- ) }) : null,
33
- c.map((e) => {
34
- const x = m({
35
- "u-text-right": !!e.alignRight,
36
- "is-collapsed": !!e.sortable,
37
- "is-condensed": !!f
38
- }), l = s === e?.value && n === u, h = s === e?.value && n === d, N = m({
39
- "a-table__sort-button": !0,
40
- "a-table__sort-button--unsorted": s !== e?.value,
41
- "a-table__sort-button--sorted-asc": l,
42
- "a-table__sort-button--sorted-desc": h
43
- });
44
- return /* @__PURE__ */ t(
45
- "th",
46
- {
47
- className: x,
48
- ...e.sortable && (l || h) && { "aria-sort": l ? u : d },
49
- ...e.sortable && { "aria-live": "polite" },
50
- children: C(
51
- e?.label,
52
- /* @__PURE__ */ t("button", { onClick: (j) => o && o(e.value), className: N }),
53
- !!e?.sortable
54
- )
55
- },
56
- e?.value
57
- );
58
- }),
59
- i?.buttons?.length ? /* @__PURE__ */ t("th", { children: i?.label }) : null
60
- ] }) });
61
- }
1
+ import { getDefaultExportFromCjs as d } from "./index92.mjs";
2
+ import { __module as r } from "./index144.mjs";
3
+ import "./index145.mjs";
4
+ import { __exports as f } from "./index146.mjs";
5
+ (function(o, t) {
6
+ Object.defineProperty(t, "__esModule", {
7
+ value: !0
8
+ });
9
+ var a = f, l = u(a);
10
+ function u(e) {
11
+ return e && e.__esModule ? e : { default: e };
12
+ }
13
+ t.default = l.default, o.exports = t.default;
14
+ })(r, r.exports);
15
+ var i = r.exports;
16
+ const n = /* @__PURE__ */ d(i);
62
17
  export {
63
- w as TableHeader
18
+ n as default
64
19
  };
package/es/index88.mjs CHANGED
@@ -1,62 +1,121 @@
1
- import { jsx as a, jsxs as b } from "react/jsx-runtime";
2
- import { classNames as o } from "./index51.mjs";
3
- import { wrapWithIf as f } from "./index52.mjs";
4
- import { Checkbox as g } from "./index14.mjs";
5
- import { Button as k } from "./index10.mjs";
6
- function N({
7
- actions: s,
8
- columns: m,
9
- small: d,
10
- tableId: i,
11
- selectable: l,
12
- onSelect: r,
13
- selected: u = [],
14
- rows: p
15
- }) {
16
- const h = o({
17
- "is-clickable": !!l
18
- }), c = (e, t) => {
19
- const n = e.target;
20
- return n?.classList.contains("a-button") || n.parentElement?.parentElement?.classList.contains("a-button") || n?.tagName === "A" && n?.getAttribute("href") || n.parentElement?.parentElement?.tagName === "A" && n.parentElement?.parentElement?.getAttribute("href") ? !1 : (e.preventDefault(), e.stopPropagation(), l && r && r(t.id));
1
+ import { millisecondsInHour as p, millisecondsInMinute as N } from "./index123.mjs";
2
+ import { constructFrom as T } from "./index121.mjs";
3
+ import { toDate as D } from "./index122.mjs";
4
+ function v(t, e) {
5
+ const n = () => T(e?.in, NaN), i = I(t);
6
+ let s;
7
+ if (i.date) {
8
+ const a = x(i.date, 2);
9
+ s = Y(a.restDateString, a.year);
10
+ }
11
+ if (!s || isNaN(+s)) return n();
12
+ const u = +s;
13
+ let o = 0, c;
14
+ if (i.time && (o = w(i.time), isNaN(o)))
15
+ return n();
16
+ if (i.timezone) {
17
+ if (c = y(i.timezone), isNaN(c)) return n();
18
+ } else {
19
+ const a = new Date(u + o), d = D(0, e?.in);
20
+ return d.setFullYear(
21
+ a.getUTCFullYear(),
22
+ a.getUTCMonth(),
23
+ a.getUTCDate()
24
+ ), d.setHours(
25
+ a.getUTCHours(),
26
+ a.getUTCMinutes(),
27
+ a.getUTCSeconds(),
28
+ a.getUTCMilliseconds()
29
+ ), d;
30
+ }
31
+ return D(u + o + c, e?.in);
32
+ }
33
+ const f = {
34
+ dateTimeDelimiter: /[T ]/,
35
+ timeZoneDelimiter: /[Z ]/i,
36
+ timezone: /([Z+-].*)$/
37
+ }, U = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, h = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, C = /^([+-])(\d{2})(?::?(\d{2}))?$/;
38
+ function I(t) {
39
+ const e = {}, n = t.split(f.dateTimeDelimiter);
40
+ let r;
41
+ if (n.length > 2)
42
+ return e;
43
+ if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1], f.timeZoneDelimiter.test(e.date) && (e.date = t.split(f.timeZoneDelimiter)[0], r = t.substr(
44
+ e.date.length,
45
+ t.length
46
+ ))), r) {
47
+ const i = f.timezone.exec(r);
48
+ i ? (e.time = r.replace(i[1], ""), e.timezone = i[1]) : e.time = r;
49
+ }
50
+ return e;
51
+ }
52
+ function x(t, e) {
53
+ const n = new RegExp(
54
+ "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
55
+ ), r = t.match(n);
56
+ if (!r) return { year: NaN, restDateString: "" };
57
+ const i = r[1] ? parseInt(r[1]) : null, s = r[2] ? parseInt(r[2]) : null;
58
+ return {
59
+ year: s === null ? i : s * 100,
60
+ restDateString: t.slice((r[1] || r[2]).length)
21
61
  };
22
- return /* @__PURE__ */ a("tbody", { children: p.map((e) => /* @__PURE__ */ b("tr", { onClick: (t) => c(t, e), className: h, children: [
23
- l ? /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(
24
- g,
25
- {
26
- name: `aui-table-checkbox-${i}-${e.id}`,
27
- id: `aui-table-checkbox-row-${i}-${e.id}`,
28
- checked: (u || []).includes(e.id),
29
- onChange: (t) => c(t, e),
30
- label: e.checkboxLabel,
31
- showLabel: !1
32
- }
33
- ) }) : null,
34
- m.map((t) => {
35
- const n = o({
36
- "u-text-right": !!t.alignRight,
37
- "u-text-bold": t.dataType === "primary",
38
- small: t.dataType === "secondary",
39
- "is-condensed": !!d
40
- });
41
- return /* @__PURE__ */ a("td", { className: n, children: t.transformFunction ? t.transformFunction(e[t?.value] || null) : e[t?.value] || null }, t?.value);
42
- }),
43
- f(
44
- s?.buttons?.map((t) => /* @__PURE__ */ a(
45
- k,
46
- {
47
- onClick: (n) => t?.onActionClick && t?.onActionClick(n, e.id),
48
- ...t,
49
- id: `aui-table-action-${i}-${t?.id}-${e.id}`,
50
- size: t?.size || "small",
51
- children: t?.label || t?.children
52
- },
53
- `aui-table-action-${i}-${t?.id}-${e.id}`
54
- )) || null,
55
- /* @__PURE__ */ a("td", {}),
56
- !!s?.buttons?.length
57
- )
58
- ] }, e?.id)) });
62
+ }
63
+ function Y(t, e) {
64
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
65
+ const n = t.match(U);
66
+ if (!n) return /* @__PURE__ */ new Date(NaN);
67
+ const r = !!n[4], i = l(n[1]), s = l(n[2]) - 1, u = l(n[3]), o = l(n[4]), c = l(n[5]) - 1;
68
+ if (r)
69
+ return Z(e, o, c) ? z(e, o, c) : /* @__PURE__ */ new Date(NaN);
70
+ {
71
+ const a = /* @__PURE__ */ new Date(0);
72
+ return !M(e, s, u) || !O(e, i) ? /* @__PURE__ */ new Date(NaN) : (a.setUTCFullYear(e, s, Math.max(i, u)), a);
73
+ }
74
+ }
75
+ function l(t) {
76
+ return t ? parseInt(t) : 1;
77
+ }
78
+ function w(t) {
79
+ const e = t.match(h);
80
+ if (!e) return NaN;
81
+ const n = m(e[1]), r = m(e[2]), i = m(e[3]);
82
+ return k(n, r, i) ? n * p + r * N + i * 1e3 : NaN;
83
+ }
84
+ function m(t) {
85
+ return t && parseFloat(t.replace(",", ".")) || 0;
86
+ }
87
+ function y(t) {
88
+ if (t === "Z") return 0;
89
+ const e = t.match(C);
90
+ if (!e) return 0;
91
+ const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), i = e[3] && parseInt(e[3]) || 0;
92
+ return R(r, i) ? n * (r * p + i * N) : NaN;
93
+ }
94
+ function z(t, e, n) {
95
+ const r = /* @__PURE__ */ new Date(0);
96
+ r.setUTCFullYear(t, 0, 4);
97
+ const i = r.getUTCDay() || 7, s = (e - 1) * 7 + n + 1 - i;
98
+ return r.setUTCDate(r.getUTCDate() + s), r;
99
+ }
100
+ const F = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
101
+ function g(t) {
102
+ return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
103
+ }
104
+ function M(t, e, n) {
105
+ return e >= 0 && e <= 11 && n >= 1 && n <= (F[e] || (g(t) ? 29 : 28));
106
+ }
107
+ function O(t, e) {
108
+ return e >= 1 && e <= (g(t) ? 366 : 365);
109
+ }
110
+ function Z(t, e, n) {
111
+ return e >= 1 && e <= 53 && n >= 0 && n <= 6;
112
+ }
113
+ function k(t, e, n) {
114
+ return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
115
+ }
116
+ function R(t, e) {
117
+ return e >= 0 && e <= 59;
59
118
  }
60
119
  export {
61
- N as TableBody
120
+ v as parseISO
62
121
  };
package/es/index89.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { formatDistance as o } from "./index197.mjs";
2
- import { formatLong as t } from "./index198.mjs";
3
- import { formatRelative as r } from "./index199.mjs";
4
- import { localize as m } from "./index200.mjs";
5
- import { match as a } from "./index201.mjs";
1
+ import { formatDistance as o } from "./index210.mjs";
2
+ import { formatLong as t } from "./index211.mjs";
3
+ import { formatRelative as r } from "./index212.mjs";
4
+ import { localize as m } from "./index213.mjs";
5
+ import { match as a } from "./index214.mjs";
6
6
  const l = {
7
7
  code: "nl-BE",
8
8
  formatDistance: o,
package/es/index9.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, Fragment as u, jsx as e } from "react/jsx-runtime";
2
- import { renderHTMLLink as o } from "./index52.mjs";
2
+ import { renderHTMLLink as o } from "./index54.mjs";
3
3
  function b({ title: r, items: n = [], renderLinkFunction: l, qa: s }) {
4
4
  const c = () => Array.isArray(n) ? n.map((a) => /* @__PURE__ */ e("li", { children: l ? l(a) : o(a) }, `${a.id}`)) : null, d = () => {
5
5
  if (r && r.label) {