@boxcustodia/library 1.7.6 → 1.7.7

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 (555) hide show
  1. package/dist/index.es100.js +1 -1
  2. package/dist/index.es105.js +259 -3
  3. package/dist/index.es106.js +13 -4
  4. package/dist/index.es107.js +26 -15
  5. package/dist/index.es108.js +57 -4
  6. package/dist/index.es109.js +3 -57
  7. package/dist/index.es110.js +1085 -25
  8. package/dist/index.es111.js +4 -22
  9. package/dist/index.es112.js +4 -10
  10. package/dist/index.es113.js +308 -53
  11. package/dist/index.es114.js +13 -55
  12. package/dist/index.es115.js +26 -113
  13. package/dist/index.es116.js +55 -44
  14. package/dist/index.es117.js +53 -23
  15. package/dist/index.es118.js +112 -29
  16. package/dist/index.es119.js +44 -20
  17. package/dist/index.es120.js +23 -308
  18. package/dist/index.es121.js +31 -13
  19. package/dist/index.es122.js +13 -58
  20. package/dist/index.es123.js +20 -37
  21. package/dist/index.es124.js +4 -13
  22. package/dist/index.es125.js +9 -8
  23. package/dist/index.es126.js +5 -41
  24. package/dist/index.es127.js +57 -18
  25. package/dist/index.es128.js +10 -41
  26. package/dist/index.es129.js +14 -7
  27. package/dist/index.es130.js +27 -12
  28. package/dist/index.es131.js +18 -1087
  29. package/dist/index.es132.js +41 -4
  30. package/dist/index.es133.js +39 -4
  31. package/dist/index.es134.js +14 -259
  32. package/dist/index.es135.js +6 -22
  33. package/dist/index.es136.js +33 -13
  34. package/dist/index.es137.js +13 -4
  35. package/dist/index.es138.js +21 -4
  36. package/dist/index.es139.js +224 -13
  37. package/dist/index.es140.js +10 -848
  38. package/dist/index.es141.js +3 -3
  39. package/dist/index.es142.js +41 -10
  40. package/dist/index.es143.js +1 -1
  41. package/dist/index.es144.js +4 -4
  42. package/dist/index.es145.js +20 -222
  43. package/dist/index.es146.js +7 -4
  44. package/dist/index.es147.js +10 -41
  45. package/dist/index.es148.js +13 -240
  46. package/dist/index.es149.js +848 -4
  47. package/dist/index.es150.js +3 -12
  48. package/dist/index.es151.js +3 -20
  49. package/dist/index.es152.js +4 -18
  50. package/dist/index.es153.js +16 -42
  51. package/dist/index.es154.js +43 -32
  52. package/dist/index.es155.js +239 -5
  53. package/dist/index.es156.js +1 -1
  54. package/dist/index.es157.js +1 -1
  55. package/dist/index.es158.js +75 -213
  56. package/dist/index.es159.js +87 -73
  57. package/dist/index.es16.js +1 -1
  58. package/dist/index.es160.js +344 -84
  59. package/dist/index.es161.js +114 -342
  60. package/dist/index.es162.js +212 -120
  61. package/dist/index.es163.js +1 -1
  62. package/dist/index.es164.js +1 -1
  63. package/dist/index.es165.js +1 -1
  64. package/dist/index.es166.js +1 -1
  65. package/dist/index.es167.js +2 -2
  66. package/dist/index.es170.js +1 -1
  67. package/dist/index.es171.js +1 -1
  68. package/dist/index.es174.js +6 -3674
  69. package/dist/index.es175.js +26 -5
  70. package/dist/index.es176.js +68 -2
  71. package/dist/index.es177.js +10 -20
  72. package/dist/index.es178.js +121 -33
  73. package/dist/index.es179.js +131 -7
  74. package/dist/index.es18.js +1 -1
  75. package/dist/index.es180.js +14 -27
  76. package/dist/index.es181.js +32 -204
  77. package/dist/index.es182.js +13 -13
  78. package/dist/index.es183.js +9 -33
  79. package/dist/index.es184.js +50 -11
  80. package/dist/index.es185.js +3673 -43
  81. package/dist/index.es186.js +5 -6
  82. package/dist/index.es187.js +2 -68
  83. package/dist/index.es188.js +41 -121
  84. package/dist/index.es189.js +17 -131
  85. package/dist/index.es190.js +37 -14
  86. package/dist/index.es191.js +10 -14
  87. package/dist/index.es192.js +205 -9
  88. package/dist/index.es193.js +15 -50
  89. package/dist/index.es195.js +625 -193
  90. package/dist/index.es197.js +3 -3
  91. package/dist/index.es199.js +217 -5
  92. package/dist/index.es2.js +1 -1
  93. package/dist/index.es200.js +6 -28
  94. package/dist/index.es201.js +24 -646
  95. package/dist/index.es202.js +2 -3
  96. package/dist/index.es203.js +4 -2
  97. package/dist/index.es204.js +3 -2054
  98. package/dist/index.es205.js +2 -28
  99. package/dist/index.es206.js +2025 -2470
  100. package/dist/index.es207.js +1 -1
  101. package/dist/index.es209.js +26 -2
  102. package/dist/index.es210.js +2499 -2
  103. package/dist/index.es211.js +11 -7
  104. package/dist/index.es212.js +25 -6
  105. package/dist/index.es213.js +17 -6
  106. package/dist/index.es214.js +38 -18
  107. package/dist/index.es215.js +18 -6
  108. package/dist/index.es216.js +8 -7
  109. package/dist/index.es217.js +5 -5
  110. package/dist/index.es218.js +5 -13
  111. package/dist/index.es219.js +17 -15
  112. package/dist/index.es22.js +1 -1
  113. package/dist/index.es220.js +5 -8
  114. package/dist/index.es221.js +7 -7
  115. package/dist/index.es222.js +5 -14
  116. package/dist/index.es223.js +13 -5
  117. package/dist/index.es224.js +15 -14
  118. package/dist/index.es225.js +8 -6
  119. package/dist/index.es226.js +6 -6
  120. package/dist/index.es227.js +14 -6
  121. package/dist/index.es228.js +5 -4
  122. package/dist/index.es229.js +14 -580
  123. package/dist/index.es230.js +7 -50
  124. package/dist/index.es231.js +6 -17
  125. package/dist/index.es232.js +6 -6
  126. package/dist/index.es233.js +5 -19
  127. package/dist/index.es234.js +580 -8
  128. package/dist/index.es235.js +50 -7
  129. package/dist/index.es236.js +17 -7
  130. package/dist/index.es237.js +6 -5
  131. package/dist/index.es238.js +19 -7
  132. package/dist/index.es239.js +8 -9
  133. package/dist/index.es24.js +1 -1
  134. package/dist/index.es240.js +6 -5
  135. package/dist/index.es241.js +7 -8
  136. package/dist/index.es242.js +5 -12
  137. package/dist/index.es243.js +6 -9
  138. package/dist/index.es244.js +9 -8
  139. package/dist/index.es245.js +5 -10
  140. package/dist/index.es246.js +8 -14
  141. package/dist/index.es247.js +12 -5
  142. package/dist/index.es248.js +9 -11
  143. package/dist/index.es249.js +8 -10
  144. package/dist/index.es250.js +10 -10
  145. package/dist/index.es251.js +14 -6
  146. package/dist/index.es252.js +5 -9
  147. package/dist/index.es253.js +11 -83
  148. package/dist/index.es254.js +10 -38
  149. package/dist/index.es255.js +11 -65
  150. package/dist/index.es256.js +6 -9
  151. package/dist/index.es257.js +9 -8
  152. package/dist/index.es258.js +83 -7
  153. package/dist/index.es259.js +38 -10
  154. package/dist/index.es260.js +65 -8
  155. package/dist/index.es261.js +9 -7
  156. package/dist/index.es262.js +8 -6
  157. package/dist/index.es263.js +7 -5
  158. package/dist/index.es264.js +10 -15
  159. package/dist/index.es265.js +8 -25
  160. package/dist/index.es266.js +8 -17
  161. package/dist/index.es267.js +7 -38
  162. package/dist/index.es268.js +6 -18
  163. package/dist/index.es269.js +15 -11
  164. package/dist/index.es270.js +172 -199
  165. package/dist/index.es271.js +31 -22
  166. package/dist/index.es272.js +19 -25
  167. package/dist/index.es273.js +50 -390
  168. package/dist/index.es274.js +16 -18
  169. package/dist/index.es275.js +203 -51
  170. package/dist/index.es276.js +22 -17
  171. package/dist/index.es277.js +24 -30
  172. package/dist/index.es278.js +392 -7
  173. package/dist/index.es279.js +8 -2
  174. package/dist/index.es28.js +2 -2
  175. package/dist/index.es280.js +2 -23
  176. package/dist/index.es281.js +11 -11
  177. package/dist/index.es282.js +22 -20
  178. package/dist/index.es283.js +21 -2
  179. package/dist/index.es284.js +2 -9406
  180. package/dist/index.es285.js +8970 -14876
  181. package/dist/index.es286.js +15312 -3
  182. package/dist/index.es287.js +3 -61
  183. package/dist/index.es288.js +59 -8
  184. package/dist/index.es289.js +10 -3
  185. package/dist/index.es290.js +3 -5
  186. package/dist/index.es291.js +5 -178
  187. package/dist/index.es292.js +12 -8
  188. package/dist/index.es293.js +25 -3
  189. package/dist/index.es294.js +29 -45
  190. package/dist/index.es295.js +5 -29
  191. package/dist/index.es296.js +8 -57
  192. package/dist/index.es297.js +3 -20
  193. package/dist/index.es298.js +44 -21
  194. package/dist/index.es299.js +28 -44
  195. package/dist/index.es30.js +1 -1
  196. package/dist/index.es300.js +54 -29
  197. package/dist/index.es301.js +18 -82
  198. package/dist/index.es302.js +21 -6
  199. package/dist/index.es303.js +44 -14
  200. package/dist/index.es304.js +30 -42
  201. package/dist/index.es305.js +80 -30
  202. package/dist/index.es306.js +6 -27
  203. package/dist/index.es307.js +13 -24
  204. package/dist/index.es308.js +43 -7
  205. package/dist/index.es309.js +29 -416
  206. package/dist/index.es310.js +27 -12
  207. package/dist/index.es311.js +23 -32
  208. package/dist/index.es312.js +8 -12
  209. package/dist/index.es313.js +419 -13
  210. package/dist/index.es314.js +13 -3
  211. package/dist/index.es315.js +34 -4
  212. package/dist/index.es316.js +14 -56
  213. package/dist/index.es317.js +3 -31
  214. package/dist/index.es318.js +4 -46
  215. package/dist/index.es319.js +54 -64
  216. package/dist/index.es32.js +1 -1
  217. package/dist/index.es320.js +25 -32
  218. package/dist/index.es321.js +41 -13
  219. package/dist/index.es322.js +47 -53
  220. package/dist/index.es323.js +20 -55
  221. package/dist/index.es324.js +13 -69
  222. package/dist/index.es325.js +47 -49
  223. package/dist/index.es326.js +53 -26
  224. package/dist/index.es327.js +54 -26
  225. package/dist/index.es328.js +53 -37
  226. package/dist/index.es329.js +22 -25
  227. package/dist/index.es33.js +3 -3
  228. package/dist/index.es330.js +38 -38
  229. package/dist/index.es331.js +40 -59
  230. package/dist/index.es332.js +27 -56
  231. package/dist/index.es333.js +34 -90
  232. package/dist/index.es334.js +63 -32
  233. package/dist/index.es335.js +66 -35
  234. package/dist/index.es336.js +94 -38
  235. package/dist/index.es337.js +39 -23
  236. package/dist/index.es338.js +39 -22
  237. package/dist/index.es339.js +39 -22
  238. package/dist/index.es34.js +6 -6
  239. package/dist/index.es340.js +19 -19
  240. package/dist/index.es341.js +18 -18
  241. package/dist/index.es342.js +18 -18
  242. package/dist/index.es343.js +25 -14
  243. package/dist/index.es344.js +22 -38
  244. package/dist/index.es345.js +22 -38
  245. package/dist/index.es346.js +14 -14
  246. package/dist/index.es347.js +40 -14
  247. package/dist/index.es348.js +44 -23
  248. package/dist/index.es349.js +20 -29
  249. package/dist/index.es350.js +20 -5
  250. package/dist/index.es353.js +1 -1
  251. package/dist/index.es354.js +2 -2
  252. package/dist/index.es355.js +1 -1
  253. package/dist/index.es367.js +3 -3
  254. package/dist/index.es369.js +5 -277
  255. package/dist/index.es370.js +3 -2
  256. package/dist/index.es371.js +22 -106
  257. package/dist/index.es372.js +106 -73
  258. package/dist/index.es373.js +15 -38
  259. package/dist/index.es374.js +273 -64
  260. package/dist/index.es375.js +2 -37
  261. package/dist/index.es376.js +106 -67
  262. package/dist/index.es377.js +73 -112
  263. package/dist/index.es378.js +31 -89
  264. package/dist/index.es379.js +65 -43
  265. package/dist/index.es38.js +1 -1
  266. package/dist/index.es380.js +35 -26
  267. package/dist/index.es381.js +69 -2
  268. package/dist/index.es382.js +110 -238
  269. package/dist/index.es383.js +89 -379
  270. package/dist/index.es384.js +44 -166
  271. package/dist/index.es385.js +26 -151
  272. package/dist/index.es386.js +2 -143
  273. package/dist/index.es387.js +240 -196
  274. package/dist/index.es388.js +387 -2
  275. package/dist/index.es389.js +156 -119
  276. package/dist/index.es39.js +1 -1
  277. package/dist/index.es390.js +144 -208
  278. package/dist/index.es391.js +142 -29
  279. package/dist/index.es392.js +199 -47
  280. package/dist/index.es393.js +2 -4
  281. package/dist/index.es394.js +131 -3
  282. package/dist/index.es395.js +217 -68
  283. package/dist/index.es396.js +30 -31
  284. package/dist/index.es397.js +48 -9
  285. package/dist/index.es398.js +3 -152
  286. package/dist/index.es399.js +3 -108
  287. package/dist/index.es40.js +5 -5
  288. package/dist/index.es400.js +67 -19
  289. package/dist/index.es401.js +31 -101
  290. package/dist/index.es402.js +9 -47
  291. package/dist/index.es403.js +153 -5
  292. package/dist/index.es404.js +108 -3
  293. package/dist/index.es405.js +19 -23
  294. package/dist/index.es406.js +98 -107
  295. package/dist/index.es407.js +46 -15
  296. package/dist/index.es408.js +5 -522
  297. package/dist/index.es409.js +14 -126
  298. package/dist/index.es41.js +2 -2
  299. package/dist/index.es410.js +2 -129
  300. package/dist/index.es411.js +8 -68
  301. package/dist/index.es412.js +327 -31
  302. package/dist/index.es413.js +50 -16
  303. package/dist/index.es414.js +4 -141
  304. package/dist/index.es415.js +2 -114
  305. package/dist/index.es416.js +231 -2
  306. package/dist/index.es417.js +207 -204
  307. package/dist/index.es418.js +2 -234
  308. package/dist/index.es419.js +2 -6
  309. package/dist/index.es420.js +2 -15
  310. package/dist/index.es421.js +2 -2
  311. package/dist/index.es422.js +10 -7
  312. package/dist/index.es423.js +2 -327
  313. package/dist/index.es424.js +2 -50
  314. package/dist/index.es425.js +47 -3
  315. package/dist/index.es426.js +2 -2
  316. package/dist/index.es427.js +2 -2
  317. package/dist/index.es428.js +8 -2
  318. package/dist/index.es429.js +2 -2
  319. package/dist/index.es430.js +2 -11
  320. package/dist/index.es431.js +28 -2
  321. package/dist/index.es432.js +2 -2
  322. package/dist/index.es433.js +2 -48
  323. package/dist/index.es434.js +27 -2
  324. package/dist/index.es435.js +98 -2
  325. package/dist/index.es436.js +53 -7
  326. package/dist/index.es437.js +18 -2
  327. package/dist/index.es438.js +2 -2
  328. package/dist/index.es439.js +27 -26
  329. package/dist/index.es44.js +3 -3
  330. package/dist/index.es440.js +2 -2
  331. package/dist/index.es441.js +523 -2
  332. package/dist/index.es442.js +125 -25
  333. package/dist/index.es443.js +127 -96
  334. package/dist/index.es444.js +67 -53
  335. package/dist/index.es445.js +31 -18
  336. package/dist/index.es446.js +16 -2
  337. package/dist/index.es447.js +140 -28
  338. package/dist/index.es448.js +114 -2
  339. package/dist/index.es449.js +63 -23
  340. package/dist/index.es45.js +1 -1
  341. package/dist/index.es450.js +69 -6
  342. package/dist/index.es451.js +9 -128
  343. package/dist/index.es452.js +13 -24
  344. package/dist/index.es453.js +62 -5
  345. package/dist/index.es454.js +270 -11
  346. package/dist/index.es455.js +77 -40
  347. package/dist/index.es456.js +159 -51
  348. package/dist/index.es457.js +24 -41
  349. package/dist/index.es458.js +4 -27
  350. package/dist/index.es459.js +126 -30
  351. package/dist/index.es460.js +24 -14
  352. package/dist/index.es461.js +4 -10
  353. package/dist/index.es462.js +12 -10
  354. package/dist/index.es463.js +41 -8
  355. package/dist/index.es464.js +57 -6
  356. package/dist/index.es465.js +41 -5
  357. package/dist/index.es466.js +28 -7
  358. package/dist/index.es467.js +28 -26
  359. package/dist/index.es468.js +14 -18
  360. package/dist/index.es469.js +10 -13
  361. package/dist/index.es47.js +1 -1
  362. package/dist/index.es470.js +10 -43
  363. package/dist/index.es471.js +9 -8
  364. package/dist/index.es472.js +7 -3
  365. package/dist/index.es473.js +5 -4
  366. package/dist/index.es474.js +7 -24
  367. package/dist/index.es475.js +29 -271
  368. package/dist/index.es476.js +18 -79
  369. package/dist/index.es477.js +13 -165
  370. package/dist/index.es478.js +42 -26
  371. package/dist/index.es479.js +7 -91
  372. package/dist/index.es480.js +3 -108
  373. package/dist/index.es481.js +4 -54
  374. package/dist/index.es482.js +24 -9
  375. package/dist/index.es483.js +26 -24
  376. package/dist/index.es484.js +81 -370
  377. package/dist/index.es485.js +107 -33
  378. package/dist/index.es486.js +55 -7
  379. package/dist/index.es487.js +9 -6
  380. package/dist/index.es488.js +25 -4
  381. package/dist/index.es489.js +381 -6
  382. package/dist/index.es49.js +5 -5
  383. package/dist/index.es490.js +32 -49
  384. package/dist/index.es491.js +7 -15
  385. package/dist/index.es492.js +6 -54
  386. package/dist/index.es493.js +4 -5
  387. package/dist/index.es494.js +6 -281
  388. package/dist/index.es495.js +50 -36
  389. package/dist/index.es496.js +14 -19
  390. package/dist/index.es497.js +54 -31
  391. package/dist/index.es498.js +5 -29
  392. package/dist/index.es499.js +281 -7
  393. package/dist/index.es50.js +2 -2
  394. package/dist/index.es500.js +37 -2
  395. package/dist/index.es501.js +18 -51
  396. package/dist/index.es502.js +29 -62
  397. package/dist/index.es503.js +29 -7
  398. package/dist/index.es504.js +7 -33
  399. package/dist/index.es505.js +2 -21
  400. package/dist/index.es506.js +47 -39
  401. package/dist/index.es507.js +64 -29
  402. package/dist/index.es508.js +7 -8
  403. package/dist/index.es509.js +32 -55
  404. package/dist/index.es51.js +3 -3
  405. package/dist/index.es510.js +19 -11
  406. package/dist/index.es511.js +43 -20
  407. package/dist/index.es512.js +29 -59
  408. package/dist/index.es513.js +8 -33
  409. package/dist/index.es514.js +53 -168
  410. package/dist/index.es515.js +11 -120
  411. package/dist/index.es516.js +19 -17
  412. package/dist/index.es517.js +50 -222
  413. package/dist/index.es518.js +33 -21
  414. package/dist/index.es519.js +165 -23
  415. package/dist/index.es52.js +1 -1
  416. package/dist/index.es520.js +117 -114
  417. package/dist/index.es521.js +19 -37
  418. package/dist/index.es522.js +232 -72
  419. package/dist/index.es523.js +21 -20
  420. package/dist/index.es524.js +23 -161
  421. package/dist/index.es525.js +108 -39
  422. package/dist/index.es526.js +37 -6
  423. package/dist/index.es527.js +72 -16
  424. package/dist/index.es528.js +20 -28
  425. package/dist/index.es529.js +166 -11
  426. package/dist/index.es530.js +42 -61
  427. package/dist/index.es531.js +6 -8
  428. package/dist/index.es532.js +16 -14
  429. package/dist/index.es533.js +29 -62
  430. package/dist/index.es534.js +11 -63
  431. package/dist/index.es535.js +2 -2
  432. package/dist/index.es536.js +76 -2
  433. package/dist/index.es537.js +93 -2
  434. package/dist/index.es538.js +49 -73
  435. package/dist/index.es539.js +7 -92
  436. package/dist/index.es54.js +1 -1
  437. package/dist/index.es540.js +4 -51
  438. package/dist/index.es541.js +51 -7
  439. package/dist/index.es542.js +2 -5
  440. package/dist/index.es543.js +2 -52
  441. package/dist/index.es544.js +2 -2
  442. package/dist/index.es545.js +11 -77
  443. package/dist/index.es546.js +2 -96
  444. package/dist/index.es547.js +31 -2
  445. package/dist/index.es548.js +2 -13
  446. package/dist/index.es549.js +79 -2
  447. package/dist/index.es550.js +94 -29
  448. package/dist/index.es57.js +4 -4
  449. package/dist/index.es58.js +1 -1
  450. package/dist/index.es59.js +5 -5
  451. package/dist/index.es60.js +3 -3
  452. package/dist/index.es61.js +5 -5
  453. package/dist/index.es62.js +2 -2
  454. package/dist/index.es63.js +1 -1
  455. package/dist/index.es66.js +4 -4
  456. package/dist/index.es67.js +1 -1
  457. package/dist/index.es693.js +3 -21
  458. package/dist/index.es694.js +22 -82
  459. package/dist/index.es695.js +21 -4
  460. package/dist/index.es696.js +81 -2
  461. package/dist/index.es697.js +4 -4
  462. package/dist/index.es698.js +3 -8
  463. package/dist/index.es699.js +5 -2
  464. package/dist/index.es70.js +1 -1
  465. package/dist/index.es700.js +9 -2
  466. package/dist/index.es701.js +2 -42
  467. package/dist/index.es702.js +2 -72
  468. package/dist/index.es703.js +42 -6
  469. package/dist/index.es704.js +71 -5
  470. package/dist/index.es705.js +2 -2
  471. package/dist/index.es706.js +5 -5
  472. package/dist/index.es707.js +5 -5
  473. package/dist/index.es708.js +5 -5
  474. package/dist/index.es709.js +5 -5
  475. package/dist/index.es710.js +5 -5
  476. package/dist/index.es711.js +2 -2
  477. package/dist/index.es712.js +2 -2
  478. package/dist/index.es713.js +5 -5
  479. package/dist/index.es714.js +5 -5
  480. package/dist/index.es715.js +5 -5
  481. package/dist/index.es716.js +5 -5
  482. package/dist/index.es717.js +2 -2
  483. package/dist/index.es718.js +2 -2
  484. package/dist/index.es719.js +5 -5
  485. package/dist/index.es72.js +1 -1
  486. package/dist/index.es720.js +2 -2
  487. package/dist/index.es721.js +5 -5
  488. package/dist/index.es722.js +5 -5
  489. package/dist/index.es723.js +2 -2
  490. package/dist/index.es724.js +2 -2
  491. package/dist/index.es725.js +5 -5
  492. package/dist/index.es726.js +2 -2
  493. package/dist/index.es727.js +2 -2
  494. package/dist/index.es728.js +5 -5
  495. package/dist/index.es729.js +5 -5
  496. package/dist/index.es730.js +5 -5
  497. package/dist/index.es731.js +2 -2
  498. package/dist/index.es732.js +5 -5
  499. package/dist/index.es733.js +2 -2
  500. package/dist/index.es734.js +5 -5
  501. package/dist/index.es735.js +2 -2
  502. package/dist/index.es736.js +5 -5
  503. package/dist/index.es737.js +6 -4
  504. package/dist/index.es738.js +6 -23
  505. package/dist/index.es74.js +10 -10
  506. package/dist/index.es741.js +2 -2
  507. package/dist/index.es742.js +2 -2
  508. package/dist/index.es76.js +1 -1
  509. package/dist/index.es77.js +1 -1
  510. package/dist/index.es78.js +1 -1
  511. package/dist/index.es80.js +1 -1
  512. package/dist/index.es82.js +1 -1
  513. package/dist/index.es86.js +2 -2
  514. package/dist/index.es88.js +8 -8
  515. package/dist/index.es882.js +22 -13
  516. package/dist/index.es883.js +12 -13
  517. package/dist/index.es884.js +27 -13
  518. package/dist/index.es885.js +4 -13
  519. package/dist/index.es886.js +12 -12
  520. package/dist/index.es887.js +12 -12
  521. package/dist/index.es888.js +12 -12
  522. package/dist/index.es889.js +9 -9
  523. package/dist/index.es89.js +5 -5
  524. package/dist/index.es890.js +8 -8
  525. package/dist/index.es891.js +12 -12
  526. package/dist/index.es892.js +9 -9
  527. package/dist/index.es893.js +12 -12
  528. package/dist/index.es894.js +9 -9
  529. package/dist/index.es895.js +12 -12
  530. package/dist/index.es896.js +12 -12
  531. package/dist/index.es897.js +13 -13
  532. package/dist/index.es898.js +12 -12
  533. package/dist/index.es899.js +12 -12
  534. package/dist/index.es900.js +12 -12
  535. package/dist/index.es901.js +13 -13
  536. package/dist/index.es902.js +12 -12
  537. package/dist/index.es903.js +12 -12
  538. package/dist/index.es904.js +12 -12
  539. package/dist/index.es905.js +12 -12
  540. package/dist/index.es906.js +8 -8
  541. package/dist/index.es907.js +12 -12
  542. package/dist/index.es908.js +12 -12
  543. package/dist/index.es909.js +12 -12
  544. package/dist/index.es910.js +12 -12
  545. package/dist/index.es911.js +12 -12
  546. package/dist/index.es912.js +12 -12
  547. package/dist/index.es913.js +12 -12
  548. package/dist/index.es914.js +13 -13
  549. package/dist/index.es915.js +13 -13
  550. package/dist/index.es916.js +13 -22
  551. package/dist/index.es917.js +13 -12
  552. package/dist/index.es918.js +13 -27
  553. package/dist/index.es919.js +13 -4
  554. package/dist/index.es99.js +1 -1
  555. package/package.json +1 -1
@@ -1,121 +1,124 @@
1
- import { DOMLayoutDelegate as n } from "./index.es521.js";
2
- import { isScrollable as r } from "./index.es465.js";
3
- class g {
4
- isDisabled(t) {
5
- var e;
6
- return this.disabledBehavior === "all" && (((e = t.props) === null || e === void 0 ? void 0 : e.isDisabled) || this.disabledKeys.has(t.key));
7
- }
8
- findNextNonDisabled(t, e) {
9
- let l = t;
10
- for (; l != null; ) {
11
- let i = this.collection.getItem(l);
12
- if ((i == null ? void 0 : i.type) === "item" && !this.isDisabled(i)) return l;
13
- l = e(l);
1
+ import { getCollectionId as R, isNonContiguousSelectionModifier as N } from "./index.es523.js";
2
+ import { usePress as j } from "./index.es489.js";
3
+ import { useLongPress as q } from "./index.es495.js";
4
+ import { focusSafely as z } from "./index.es496.js";
5
+ import { useId as G } from "./index.es300.js";
6
+ import { mergeProps as K } from "./index.es301.js";
7
+ import { useRouter as H, openLink as J } from "./index.es464.js";
8
+ import { isCtrlKeyPressed as Q } from "./index.es481.js";
9
+ import { moveVirtualFocus as W } from "./index.es503.js";
10
+ import { useEffect as X, useRef as k } from "react";
11
+ function le(r) {
12
+ let { id: $, selectionManager: o, key: t, ref: s, shouldSelectOnPressUp: O, shouldUseVirtualFocus: l, focus: T, isDisabled: c, onAction: g, allowsDifferentPressOrigin: C, linkBehavior: p = "action" } = r, D = H();
13
+ $ = G($);
14
+ let a = (e) => {
15
+ if (e.pointerType === "keyboard" && N(e)) o.toggleSelection(t);
16
+ else {
17
+ if (o.selectionMode === "none") return;
18
+ if (o.isLink(t)) {
19
+ if (p === "selection" && s.current) {
20
+ let y = o.getItemProps(t);
21
+ D.open(s.current, e, y.href, y.routerOptions), o.setSelectedKeys(o.selectedKeys);
22
+ return;
23
+ } else if (p === "override" || p === "none") return;
24
+ }
25
+ o.selectionMode === "single" ? o.isSelected(t) && !o.disallowEmptySelection ? o.toggleSelection(t) : o.replaceSelection(t) : e && e.shiftKey ? o.extendSelection(t) : o.selectionBehavior === "toggle" || e && (Q(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? o.toggleSelection(t) : o.replaceSelection(t);
14
26
  }
15
- return null;
16
- }
17
- getNextKey(t) {
18
- let e = t;
19
- return e = this.collection.getKeyAfter(e), this.findNextNonDisabled(e, (l) => this.collection.getKeyAfter(l));
20
- }
21
- getPreviousKey(t) {
22
- let e = t;
23
- return e = this.collection.getKeyBefore(e), this.findNextNonDisabled(e, (l) => this.collection.getKeyBefore(l));
24
- }
25
- findKey(t, e, l) {
26
- let i = t, s = this.layoutDelegate.getItemRect(i);
27
- if (!s || i == null) return null;
28
- let o = s;
29
- do {
30
- if (i = e(i), i == null) break;
31
- s = this.layoutDelegate.getItemRect(i);
32
- } while (s && l(o, s) && i != null);
33
- return i;
34
- }
35
- isSameRow(t, e) {
36
- return t.y === e.y || t.x !== e.x;
37
- }
38
- isSameColumn(t, e) {
39
- return t.x === e.x || t.y !== e.y;
40
- }
41
- getKeyBelow(t) {
42
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(t, (e) => this.getNextKey(e), this.isSameRow) : this.getNextKey(t);
43
- }
44
- getKeyAbove(t) {
45
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(t, (e) => this.getPreviousKey(e), this.isSameRow) : this.getPreviousKey(t);
46
- }
47
- getNextColumn(t, e) {
48
- return e ? this.getPreviousKey(t) : this.getNextKey(t);
49
- }
50
- getKeyRightOf(t) {
51
- let e = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
52
- return this.layoutDelegate[e] ? (t = this.layoutDelegate[e](t), this.findNextNonDisabled(t, (l) => this.layoutDelegate[e](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(t, this.direction === "rtl") : this.findKey(t, (l) => this.getNextColumn(l, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(t, this.direction === "rtl") : null;
53
- }
54
- getKeyLeftOf(t) {
55
- let e = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
56
- return this.layoutDelegate[e] ? (t = this.layoutDelegate[e](t), this.findNextNonDisabled(t, (l) => this.layoutDelegate[e](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(t, this.direction === "ltr") : this.findKey(t, (l) => this.getNextColumn(l, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(t, this.direction === "ltr") : null;
57
- }
58
- getFirstKey() {
59
- let t = this.collection.getFirstKey();
60
- return this.findNextNonDisabled(t, (e) => this.collection.getKeyAfter(e));
61
- }
62
- getLastKey() {
63
- let t = this.collection.getLastKey();
64
- return this.findNextNonDisabled(t, (e) => this.collection.getKeyBefore(e));
65
- }
66
- getKeyPageAbove(t) {
67
- let e = this.ref.current, l = this.layoutDelegate.getItemRect(t);
68
- if (!l) return null;
69
- if (e && !r(e)) return this.getFirstKey();
70
- let i = t;
71
- if (this.orientation === "horizontal") {
72
- let s = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
73
- for (; l && l.x > s && i != null; )
74
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
75
- } else {
76
- let s = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
77
- for (; l && l.y > s && i != null; )
78
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
27
+ };
28
+ X(() => {
29
+ t === o.focusedKey && o.isFocused && (l ? W(s.current) : T ? T() : document.activeElement !== s.current && s.current && z(s.current));
30
+ }, [
31
+ s,
32
+ t,
33
+ o.focusedKey,
34
+ o.childFocusStrategy,
35
+ o.isFocused,
36
+ l
37
+ ]), c = c || o.isDisabled(t);
38
+ let u = {};
39
+ !l && !c ? u = {
40
+ tabIndex: t === o.focusedKey ? 0 : -1,
41
+ onFocus(e) {
42
+ e.target === s.current && o.setFocusedKey(t);
79
43
  }
80
- return i ?? this.getFirstKey();
81
- }
82
- getKeyPageBelow(t) {
83
- let e = this.ref.current, l = this.layoutDelegate.getItemRect(t);
84
- if (!l) return null;
85
- if (e && !r(e)) return this.getLastKey();
86
- let i = t;
87
- if (this.orientation === "horizontal") {
88
- let s = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
89
- for (; l && l.x < s && i != null; )
90
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
91
- } else {
92
- let s = Math.min(this.layoutDelegate.getContentSize().height, l.y - l.height + this.layoutDelegate.getVisibleRect().height);
93
- for (; l && l.y < s && i != null; )
94
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
44
+ } : c && (u.onMouseDown = (e) => {
45
+ e.preventDefault();
46
+ });
47
+ let L = o.isLink(t) && p === "override", F = o.isLink(t) && p !== "selection" && p !== "none", i = !c && o.canSelectItem(t) && !L, S = (g || F) && !c, f = S && (o.selectionBehavior === "replace" ? !i : !i || o.isEmpty), v = S && i && o.selectionBehavior === "replace", d = f || v, b = k(null), m = d && i, h = k(!1), x = k(!1), P = (e) => {
48
+ if (g && g(), F && s.current) {
49
+ let y = o.getItemProps(t);
50
+ D.open(s.current, e, y.href, y.routerOptions);
95
51
  }
96
- return i ?? this.getLastKey();
97
- }
98
- getKeyForSearch(t, e) {
99
- if (!this.collator) return null;
100
- let l = this.collection, i = e || this.getFirstKey();
101
- for (; i != null; ) {
102
- let s = l.getItem(i);
103
- if (!s) return null;
104
- let o = s.textValue.slice(0, t.length);
105
- if (s.textValue && this.collator.compare(o, t) === 0) return i;
106
- i = this.getNextKey(i);
52
+ }, n = {
53
+ ref: s
54
+ };
55
+ O ? (n.onPressStart = (e) => {
56
+ b.current = e.pointerType, h.current = m, e.pointerType === "keyboard" && (!d || A()) && a(e);
57
+ }, C ? (n.onPressUp = f ? void 0 : (e) => {
58
+ e.pointerType === "mouse" && i && a(e);
59
+ }, n.onPress = f ? P : (e) => {
60
+ e.pointerType !== "keyboard" && e.pointerType !== "mouse" && i && a(e);
61
+ }) : n.onPress = (e) => {
62
+ if (f || v && e.pointerType !== "mouse") {
63
+ if (e.pointerType === "keyboard" && !w()) return;
64
+ P(e);
65
+ } else e.pointerType !== "keyboard" && i && a(e);
66
+ }) : (n.onPressStart = (e) => {
67
+ b.current = e.pointerType, h.current = m, x.current = f, i && (e.pointerType === "mouse" && !f || e.pointerType === "keyboard" && (!S || A())) && a(e);
68
+ }, n.onPress = (e) => {
69
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && d && w() || e.pointerType === "mouse" && x.current) && (d ? P(e) : i && a(e));
70
+ }), u["data-collection"] = R(o.collection), u["data-key"] = t, n.preventFocusOnPress = l, l && (n = K(n, {
71
+ onPressStart(e) {
72
+ e.pointerType !== "touch" && (o.setFocused(!0), o.setFocusedKey(t));
73
+ },
74
+ onPress(e) {
75
+ e.pointerType === "touch" && (o.setFocused(!0), o.setFocusedKey(t));
107
76
  }
108
- return null;
109
- }
110
- constructor(...t) {
111
- if (t.length === 1) {
112
- let e = t[0];
113
- this.collection = e.collection, this.ref = e.ref, this.collator = e.collator, this.disabledKeys = e.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = e.disabledBehavior || "all", this.orientation = e.orientation || "vertical", this.direction = e.direction, this.layout = e.layout || "stack", this.layoutDelegate = e.layoutDelegate || new n(e.ref);
114
- } else
115
- this.collection = t[0], this.disabledKeys = t[1], this.ref = t[2], this.collator = t[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new n(this.ref);
116
- this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
117
- }
77
+ }));
78
+ let { pressProps: E, isPressed: I } = j(n), B = v ? (e) => {
79
+ b.current === "mouse" && (e.stopPropagation(), e.preventDefault(), P(e));
80
+ } : void 0, { longPressProps: M } = q({
81
+ isDisabled: !m,
82
+ onLongPress(e) {
83
+ e.pointerType === "touch" && (a(e), o.setSelectionBehavior("toggle"));
84
+ }
85
+ }), U = (e) => {
86
+ b.current === "touch" && h.current && e.preventDefault();
87
+ }, V = o.isLink(t) ? (e) => {
88
+ J.isOpening || e.preventDefault();
89
+ } : void 0;
90
+ return {
91
+ itemProps: K(
92
+ u,
93
+ i || f || l ? E : {},
94
+ m ? M : {},
95
+ {
96
+ onDoubleClick: B,
97
+ onDragStartCapture: U,
98
+ onClick: V,
99
+ id: $
100
+ },
101
+ // Prevent DOM focus from moving on mouse down when using virtual focus
102
+ l ? {
103
+ onMouseDown: (e) => e.preventDefault()
104
+ } : void 0
105
+ ),
106
+ isPressed: I,
107
+ isSelected: o.isSelected(t),
108
+ isFocused: o.isFocused && o.focusedKey === t,
109
+ isDisabled: c,
110
+ allowsSelection: i,
111
+ hasAction: d
112
+ };
113
+ }
114
+ function w() {
115
+ let r = window.event;
116
+ return (r == null ? void 0 : r.key) === "Enter";
117
+ }
118
+ function A() {
119
+ let r = window.event;
120
+ return (r == null ? void 0 : r.key) === " " || (r == null ? void 0 : r.code) === "Space";
118
121
  }
119
122
  export {
120
- g as ListKeyboardDelegate
123
+ le as useSelectableItem
121
124
  };
@@ -1,40 +1,22 @@
1
- import { getItemElement as n } from "./index.es518.js";
2
- class f {
3
- getItemRect(t) {
4
- let e = this.ref.current;
5
- if (!e) return null;
6
- let l = t != null ? n(this.ref, t) : null;
7
- if (!l) return null;
8
- let o = e.getBoundingClientRect(), i = l.getBoundingClientRect();
9
- return {
10
- x: i.left - o.left + e.scrollLeft,
11
- y: i.top - o.top + e.scrollTop,
12
- width: i.width,
13
- height: i.height
14
- };
15
- }
16
- getContentSize() {
17
- let t = this.ref.current;
18
- var e, l;
19
- return {
20
- width: (e = t == null ? void 0 : t.scrollWidth) !== null && e !== void 0 ? e : 0,
21
- height: (l = t == null ? void 0 : t.scrollHeight) !== null && l !== void 0 ? l : 0
22
- };
23
- }
24
- getVisibleRect() {
25
- let t = this.ref.current;
26
- var e, l, o, i;
27
- return {
28
- x: (e = t == null ? void 0 : t.scrollLeft) !== null && e !== void 0 ? e : 0,
29
- y: (l = t == null ? void 0 : t.scrollTop) !== null && l !== void 0 ? l : 0,
30
- width: (o = t == null ? void 0 : t.offsetWidth) !== null && o !== void 0 ? o : 0,
31
- height: (i = t == null ? void 0 : t.offsetHeight) !== null && i !== void 0 ? i : 0
32
- };
33
- }
34
- constructor(t) {
35
- this.ref = t;
36
- }
1
+ import s from "./index.es704.js";
2
+ import { useId as d } from "./index.es300.js";
3
+ import { useLocalizedStringFormatter as f } from "./index.es510.js";
4
+ function b(e) {
5
+ return e && e.__esModule ? e.default : e;
6
+ }
7
+ function p(e, t) {
8
+ let { key: r } = e, a = t.selectionManager, o = d(), c = !t.selectionManager.canSelectItem(r), i = t.selectionManager.isSelected(r), l = () => a.toggleSelection(r);
9
+ const n = f(b(s), "@react-aria/grid");
10
+ return {
11
+ checkboxProps: {
12
+ id: o,
13
+ "aria-label": n.format("select"),
14
+ isSelected: i,
15
+ isDisabled: c,
16
+ onChange: l
17
+ }
18
+ };
37
19
  }
38
20
  export {
39
- f as DOMLayoutDelegate
21
+ p as useGridSelectionCheckbox
40
22
  };
@@ -1,74 +1,234 @@
1
- import r from "./index.es703.js";
2
- import o from "./index.es704.js";
3
- import e from "./index.es705.js";
4
- import t from "./index.es706.js";
5
- import p from "./index.es707.js";
6
- import $ from "./index.es708.js";
7
- import m from "./index.es709.js";
8
- import f from "./index.es710.js";
9
- import b from "./index.es711.js";
10
- import a from "./index.es712.js";
11
- import s from "./index.es713.js";
12
- import d from "./index.es714.js";
13
- import c from "./index.es715.js";
14
- import i from "./index.es716.js";
15
- import x from "./index.es717.js";
16
- import R from "./index.es718.js";
17
- import l from "./index.es719.js";
18
- import E from "./index.es720.js";
19
- import S from "./index.es721.js";
20
- import h from "./index.es722.js";
21
- import L from "./index.es723.js";
22
- import T from "./index.es724.js";
23
- import u from "./index.es725.js";
24
- import I from "./index.es726.js";
25
- import P from "./index.es727.js";
26
- import U from "./index.es728.js";
27
- import k from "./index.es729.js";
28
- import n from "./index.es730.js";
29
- import v from "./index.es731.js";
30
- import K from "./index.es732.js";
31
- import N from "./index.es733.js";
32
- import z from "./index.es734.js";
33
- import A from "./index.es735.js";
34
- import B from "./index.es736.js";
35
- var C = {};
36
- C = {
37
- "ar-AE": r,
38
- "bg-BG": o,
39
- "cs-CZ": e,
40
- "da-DK": t,
41
- "de-DE": p,
42
- "el-GR": $,
43
- "en-US": m,
44
- "es-ES": f,
45
- "et-EE": b,
46
- "fi-FI": a,
47
- "fr-FR": s,
48
- "he-IL": d,
49
- "hr-HR": c,
50
- "hu-HU": i,
51
- "it-IT": x,
52
- "ja-JP": R,
53
- "ko-KR": l,
54
- "lt-LT": E,
55
- "lv-LV": S,
56
- "nb-NO": h,
57
- "nl-NL": L,
58
- "pl-PL": T,
59
- "pt-BR": u,
60
- "pt-PT": I,
61
- "ro-RO": P,
62
- "ru-RU": U,
63
- "sk-SK": k,
64
- "sl-SI": n,
65
- "sr-SP": v,
66
- "sv-SE": K,
67
- "tr-TR": N,
68
- "uk-UA": z,
69
- "zh-CN": A,
70
- "zh-TW": B
71
- };
1
+ import { getItemElement as V, useCollectionId as se, isNonContiguousSelectionModifier as H } from "./index.es523.js";
2
+ import { useTypeSelect as ae } from "./index.es524.js";
3
+ import { mergeProps as G } from "./index.es301.js";
4
+ import { focusWithoutScrolling as j } from "./index.es463.js";
5
+ import { useRouter as de } from "./index.es464.js";
6
+ import { useUpdateLayoutEffect as q } from "./index.es470.js";
7
+ import { useEvent as S } from "./index.es476.js";
8
+ import { scrollIntoView as pe, scrollIntoViewport as J } from "./index.es478.js";
9
+ import { useEffectEvent as Q } from "./index.es477.js";
10
+ import { FOCUS_EVENT as ve, CLEAR_FOCUS_EVENT as ye } from "./index.es480.js";
11
+ import { isCtrlKeyPressed as $ } from "./index.es481.js";
12
+ import { flushSync as be } from "react-dom";
13
+ import { useRef as K, useEffect as X } from "react";
14
+ import { getInteractionModality as Y } from "./index.es485.js";
15
+ import { focusSafely as Z } from "./index.es496.js";
16
+ import { getFocusableTreeWalker as me } from "./index.es313.js";
17
+ import { moveVirtualFocus as $e } from "./index.es503.js";
18
+ import { useLocale as Ke } from "./index.es508.js";
19
+ function Ne(g) {
20
+ let { selectionManager: e, keyboardDelegate: o, ref: i, autoFocus: h = !1, shouldFocusWrap: F = !1, disallowEmptySelection: _ = !1, disallowSelectAll: ee = !1, escapeKeyBehavior: le = "clearSelection", selectOnFocus: b = e.selectionBehavior === "replace", disallowTypeAhead: oe = !1, shouldUseVirtualFocus: y, allowsTabNavigation: te = !1, isVirtualized: B, scrollRef: s = i, linkBehavior: C = "action" } = g, { direction: x } = Ke(), re = de(), ce = (l) => {
21
+ var r;
22
+ if (l.altKey && l.key === "Tab" && l.preventDefault(), !(!((r = i.current) === null || r === void 0) && r.contains(l.target))) return;
23
+ const c = (t, p) => {
24
+ if (t != null) {
25
+ if (e.isLink(t) && C === "selection" && b && !H(l)) {
26
+ be(() => {
27
+ e.setFocusedKey(t, p);
28
+ });
29
+ let v = V(i, t), W = e.getItemProps(t);
30
+ v && re.open(v, l, W.href, W.routerOptions);
31
+ return;
32
+ }
33
+ if (e.setFocusedKey(t, p), e.isLink(t) && C === "override") return;
34
+ l.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(t) : b && !H(l) && e.replaceSelection(t);
35
+ }
36
+ };
37
+ switch (l.key) {
38
+ case "ArrowDown":
39
+ if (o.getKeyBelow) {
40
+ var f, u, n;
41
+ let t = e.focusedKey != null ? (f = o.getKeyBelow) === null || f === void 0 ? void 0 : f.call(o, e.focusedKey) : (u = o.getFirstKey) === null || u === void 0 ? void 0 : u.call(o);
42
+ t == null && F && (t = (n = o.getFirstKey) === null || n === void 0 ? void 0 : n.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t));
43
+ }
44
+ break;
45
+ case "ArrowUp":
46
+ if (o.getKeyAbove) {
47
+ var a, d, P;
48
+ let t = e.focusedKey != null ? (a = o.getKeyAbove) === null || a === void 0 ? void 0 : a.call(o, e.focusedKey) : (d = o.getLastKey) === null || d === void 0 ? void 0 : d.call(o);
49
+ t == null && F && (t = (P = o.getLastKey) === null || P === void 0 ? void 0 : P.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t));
50
+ }
51
+ break;
52
+ case "ArrowLeft":
53
+ if (o.getKeyLeftOf) {
54
+ var k, A, I;
55
+ let t = e.focusedKey != null ? (k = o.getKeyLeftOf) === null || k === void 0 ? void 0 : k.call(o, e.focusedKey) : null;
56
+ t == null && F && (t = x === "rtl" ? (A = o.getFirstKey) === null || A === void 0 ? void 0 : A.call(o, e.focusedKey) : (I = o.getLastKey) === null || I === void 0 ? void 0 : I.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t, x === "rtl" ? "first" : "last"));
57
+ }
58
+ break;
59
+ case "ArrowRight":
60
+ if (o.getKeyRightOf) {
61
+ var M, R, O;
62
+ let t = e.focusedKey != null ? (M = o.getKeyRightOf) === null || M === void 0 ? void 0 : M.call(o, e.focusedKey) : null;
63
+ t == null && F && (t = x === "rtl" ? (R = o.getLastKey) === null || R === void 0 ? void 0 : R.call(o, e.focusedKey) : (O = o.getFirstKey) === null || O === void 0 ? void 0 : O.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t, x === "rtl" ? "last" : "first"));
64
+ }
65
+ break;
66
+ case "Home":
67
+ if (o.getFirstKey) {
68
+ if (e.focusedKey === null && l.shiftKey) return;
69
+ l.preventDefault();
70
+ let t = o.getFirstKey(e.focusedKey, $(l));
71
+ e.setFocusedKey(t), t != null && ($(l) && l.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(t) : b && e.replaceSelection(t));
72
+ }
73
+ break;
74
+ case "End":
75
+ if (o.getLastKey) {
76
+ if (e.focusedKey === null && l.shiftKey) return;
77
+ l.preventDefault();
78
+ let t = o.getLastKey(e.focusedKey, $(l));
79
+ e.setFocusedKey(t), t != null && ($(l) && l.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(t) : b && e.replaceSelection(t));
80
+ }
81
+ break;
82
+ case "PageDown":
83
+ if (o.getKeyPageBelow && e.focusedKey != null) {
84
+ let t = o.getKeyPageBelow(e.focusedKey);
85
+ t != null && (l.preventDefault(), c(t));
86
+ }
87
+ break;
88
+ case "PageUp":
89
+ if (o.getKeyPageAbove && e.focusedKey != null) {
90
+ let t = o.getKeyPageAbove(e.focusedKey);
91
+ t != null && (l.preventDefault(), c(t));
92
+ }
93
+ break;
94
+ case "a":
95
+ $(l) && e.selectionMode === "multiple" && ee !== !0 && (l.preventDefault(), e.selectAll());
96
+ break;
97
+ case "Escape":
98
+ le === "clearSelection" && !_ && e.selectedKeys.size !== 0 && (l.stopPropagation(), l.preventDefault(), e.clearSelection());
99
+ break;
100
+ case "Tab":
101
+ if (!te) {
102
+ if (l.shiftKey) i.current.focus();
103
+ else {
104
+ let t = me(i.current, {
105
+ tabbable: !0
106
+ }), p, v;
107
+ do
108
+ v = t.lastChild(), v && (p = v);
109
+ while (v);
110
+ p && !p.contains(document.activeElement) && j(p);
111
+ }
112
+ break;
113
+ }
114
+ }
115
+ }, w = K({
116
+ top: 0,
117
+ left: 0
118
+ });
119
+ S(s, "scroll", B ? void 0 : () => {
120
+ var l, r, c, f;
121
+ w.current = {
122
+ top: (c = (l = s.current) === null || l === void 0 ? void 0 : l.scrollTop) !== null && c !== void 0 ? c : 0,
123
+ left: (f = (r = s.current) === null || r === void 0 ? void 0 : r.scrollLeft) !== null && f !== void 0 ? f : 0
124
+ };
125
+ });
126
+ let ie = (l) => {
127
+ if (e.isFocused) {
128
+ l.currentTarget.contains(l.target) || e.setFocused(!1);
129
+ return;
130
+ }
131
+ if (l.currentTarget.contains(l.target)) {
132
+ if (e.setFocused(!0), e.focusedKey == null) {
133
+ var r, c;
134
+ let n = (d) => {
135
+ d != null && (e.setFocusedKey(d), b && !e.isSelected(d) && e.replaceSelection(d));
136
+ }, a = l.relatedTarget;
137
+ var f, u;
138
+ a && l.currentTarget.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING ? n((f = e.lastSelectedKey) !== null && f !== void 0 ? f : (r = o.getLastKey) === null || r === void 0 ? void 0 : r.call(o)) : n((u = e.firstSelectedKey) !== null && u !== void 0 ? u : (c = o.getFirstKey) === null || c === void 0 ? void 0 : c.call(o));
139
+ } else !B && s.current && (s.current.scrollTop = w.current.top, s.current.scrollLeft = w.current.left);
140
+ if (e.focusedKey != null && s.current) {
141
+ let n = V(i, e.focusedKey);
142
+ n instanceof HTMLElement && (!n.contains(document.activeElement) && !y && j(n), Y() === "keyboard" && J(n, {
143
+ containingElement: i.current
144
+ }));
145
+ }
146
+ }
147
+ }, fe = (l) => {
148
+ l.currentTarget.contains(l.relatedTarget) || e.setFocused(!1);
149
+ }, m = K(!1);
150
+ S(i, ve, y ? (l) => {
151
+ let { detail: r } = l;
152
+ l.stopPropagation(), e.setFocused(!0), (r == null ? void 0 : r.focusStrategy) === "first" && (m.current = !0);
153
+ } : void 0);
154
+ let N = Q(() => {
155
+ var l, r;
156
+ let c = (r = (l = o.getFirstKey) === null || l === void 0 ? void 0 : l.call(o)) !== null && r !== void 0 ? r : null;
157
+ c == null ? ($e(i.current), e.collection.size > 0 && (m.current = !1)) : (e.setFocusedKey(c), m.current = !1);
158
+ });
159
+ q(() => {
160
+ m.current && N();
161
+ }, [
162
+ e.collection,
163
+ N
164
+ ]);
165
+ let U = Q(() => {
166
+ e.collection.size > 0 && (m.current = !1);
167
+ });
168
+ q(() => {
169
+ U();
170
+ }, [
171
+ e.focusedKey,
172
+ U
173
+ ]), S(i, ye, y ? (l) => {
174
+ var r;
175
+ l.stopPropagation(), e.setFocused(!1), !((r = l.detail) === null || r === void 0) && r.clearFocusKey && e.setFocusedKey(null);
176
+ } : void 0);
177
+ const z = K(h), T = K(!1);
178
+ X(() => {
179
+ if (z.current) {
180
+ var l, r;
181
+ let u = null;
182
+ var c;
183
+ h === "first" && (u = (c = (l = o.getFirstKey) === null || l === void 0 ? void 0 : l.call(o)) !== null && c !== void 0 ? c : null);
184
+ var f;
185
+ h === "last" && (u = (f = (r = o.getLastKey) === null || r === void 0 ? void 0 : r.call(o)) !== null && f !== void 0 ? f : null);
186
+ let n = e.selectedKeys;
187
+ if (n.size) {
188
+ for (let a of n) if (e.canSelectItem(a)) {
189
+ u = a;
190
+ break;
191
+ }
192
+ }
193
+ e.setFocused(!0), e.setFocusedKey(u), u == null && !y && i.current && Z(i.current), e.collection.size > 0 && (z.current = !1, T.current = !0);
194
+ }
195
+ });
196
+ let D = K(e.focusedKey);
197
+ X(() => {
198
+ if (e.isFocused && e.focusedKey != null && (e.focusedKey !== D.current || T.current) && s.current && i.current) {
199
+ let l = Y(), r = V(i, e.focusedKey);
200
+ if (!(r instanceof HTMLElement))
201
+ return;
202
+ (l === "keyboard" || T.current) && (pe(s.current, r), l !== "virtual" && J(r, {
203
+ containingElement: i.current
204
+ }));
205
+ }
206
+ !y && e.isFocused && e.focusedKey == null && D.current != null && i.current && Z(i.current), D.current = e.focusedKey, T.current = !1;
207
+ }), S(i, "react-aria-focus-scope-restore", (l) => {
208
+ l.preventDefault(), e.setFocused(!0);
209
+ });
210
+ let E = {
211
+ onKeyDown: ce,
212
+ onFocus: ie,
213
+ onBlur: fe,
214
+ onMouseDown(l) {
215
+ s.current === l.target && l.preventDefault();
216
+ }
217
+ }, { typeSelectProps: ne } = ae({
218
+ keyboardDelegate: o,
219
+ selectionManager: e
220
+ });
221
+ oe || (E = G(ne, E));
222
+ let L;
223
+ y || (L = e.focusedKey == null ? 0 : -1);
224
+ let ue = se(e.collection);
225
+ return {
226
+ collectionProps: G(E, {
227
+ tabIndex: L,
228
+ "data-collection": ue
229
+ })
230
+ };
231
+ }
72
232
  export {
73
- C as default
233
+ Ne as useSelectableCollection
74
234
  };