bitboss-ui 2.0.5 → 2.0.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 (431) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -3
  2. package/dist/composables/useOptions.d.ts +1 -1
  3. package/dist/index.js +89 -87
  4. package/dist/index.js.map +1 -1
  5. package/dist/index10.js +7 -39
  6. package/dist/index10.js.map +1 -1
  7. package/dist/index101.js +60 -87
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index103.js +113 -258
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index105.js +254 -388
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index107.js +387 -98
  14. package/dist/index107.js.map +1 -1
  15. package/dist/index109.js +52 -48
  16. package/dist/index109.js.map +1 -1
  17. package/dist/index11.js +74 -188
  18. package/dist/index11.js.map +1 -1
  19. package/dist/index111.js +35 -34
  20. package/dist/index111.js.map +1 -1
  21. package/dist/index113.js +105 -23
  22. package/dist/index113.js.map +1 -1
  23. package/dist/index115.js +23 -156
  24. package/dist/index115.js.map +1 -1
  25. package/dist/index117.js +153 -112
  26. package/dist/index117.js.map +1 -1
  27. package/dist/index119.js +115 -39
  28. package/dist/index119.js.map +1 -1
  29. package/dist/index12.js +38 -80
  30. package/dist/index12.js.map +1 -1
  31. package/dist/index121.js +36 -40
  32. package/dist/index121.js.map +1 -1
  33. package/dist/index122.js +34 -37
  34. package/dist/index122.js.map +1 -1
  35. package/dist/index123.js +30 -21
  36. package/dist/index123.js.map +1 -1
  37. package/dist/index124.js +47 -2
  38. package/dist/index124.js.map +1 -1
  39. package/dist/index125.js +35 -21
  40. package/dist/index125.js.map +1 -1
  41. package/dist/index126.js +2 -2
  42. package/dist/index126.js.map +1 -1
  43. package/dist/index127.js +21 -312
  44. package/dist/index127.js.map +1 -1
  45. package/dist/index128.js +2 -24
  46. package/dist/index128.js.map +1 -1
  47. package/dist/index129.js +312 -2
  48. package/dist/index129.js.map +1 -1
  49. package/dist/index13.js +196 -0
  50. package/dist/index13.js.map +1 -0
  51. package/dist/index130.js +24 -5
  52. package/dist/index130.js.map +1 -1
  53. package/dist/index131.js +2 -9
  54. package/dist/index131.js.map +1 -1
  55. package/dist/index132.js +5 -6
  56. package/dist/index132.js.map +1 -1
  57. package/dist/index133.js +9 -3
  58. package/dist/index133.js.map +1 -1
  59. package/dist/index134.js +6 -3
  60. package/dist/index134.js.map +1 -1
  61. package/dist/index135.js +1 -1
  62. package/dist/index136.js +1 -1
  63. package/dist/index137.js +1 -1
  64. package/dist/index138.js +1 -1
  65. package/dist/index139.js +1 -1
  66. package/dist/index14.js +73 -121
  67. package/dist/index14.js.map +1 -1
  68. package/dist/index140.js +1 -1
  69. package/dist/index141.js +1 -1
  70. package/dist/index142.js +1 -1
  71. package/dist/index143.js +1 -1
  72. package/dist/index144.js +1 -1
  73. package/dist/index145.js +1 -1
  74. package/dist/index146.js +1 -1
  75. package/dist/index147.js +1 -1
  76. package/dist/index148.js +1 -1
  77. package/dist/index149.js +1 -1
  78. package/dist/index150.js +1 -1
  79. package/dist/index151.js +1 -1
  80. package/dist/index152.js +1 -1
  81. package/dist/index153.js +1 -1
  82. package/dist/index154.js +1 -1
  83. package/dist/index155.js +1 -1
  84. package/dist/index156.js +1 -1
  85. package/dist/index157.js +1 -1
  86. package/dist/index158.js +1 -1
  87. package/dist/index159.js +2 -2
  88. package/dist/index16.js +119 -118
  89. package/dist/index16.js.map +1 -1
  90. package/dist/index160.js +6 -0
  91. package/dist/index160.js.map +1 -0
  92. package/dist/index161.js +1 -1
  93. package/dist/index163.js +2 -2
  94. package/dist/index165.js +1 -1
  95. package/dist/index166.js +1 -1
  96. package/dist/index167.js +1 -1
  97. package/dist/index168.js +1 -1
  98. package/dist/index169.js +2 -2
  99. package/dist/index170.js +6 -0
  100. package/dist/index170.js.map +1 -0
  101. package/dist/index171.js +3 -2
  102. package/dist/index171.js.map +1 -1
  103. package/dist/index173.js +2 -3
  104. package/dist/index173.js.map +1 -1
  105. package/dist/index174.js +1 -1
  106. package/dist/index175.js +1 -1
  107. package/dist/index176.js +1 -1
  108. package/dist/index177.js +1 -1
  109. package/dist/index178.js +1 -1
  110. package/dist/index179.js +1 -1
  111. package/dist/index18.js +120 -208
  112. package/dist/index18.js.map +1 -1
  113. package/dist/index180.js +1 -1
  114. package/dist/index181.js +1 -1
  115. package/dist/index182.js +1 -1
  116. package/dist/index183.js +2 -2
  117. package/dist/index184.js +6 -0
  118. package/dist/index184.js.map +1 -0
  119. package/dist/index185.js +1 -1
  120. package/dist/index187.js +1 -1
  121. package/dist/index189.js +1 -1
  122. package/dist/index190.js +1 -1
  123. package/dist/index191.js +1 -1
  124. package/dist/index192.js +1 -1
  125. package/dist/index193.js +1 -1
  126. package/dist/index194.js +1 -1
  127. package/dist/index195.js +1 -1
  128. package/dist/index196.js +1 -1
  129. package/dist/index197.js +3 -81
  130. package/dist/index197.js.map +1 -1
  131. package/dist/index198.js +3 -3
  132. package/dist/index198.js.map +1 -1
  133. package/dist/index199.js +81 -5
  134. package/dist/index199.js.map +1 -1
  135. package/dist/index20.js +193 -275
  136. package/dist/index20.js.map +1 -1
  137. package/dist/index200.js +2 -16
  138. package/dist/index200.js.map +1 -1
  139. package/dist/index201.js +3 -16
  140. package/dist/index201.js.map +1 -1
  141. package/dist/index202.js +124 -17
  142. package/dist/index202.js.map +1 -1
  143. package/dist/index203.js +5 -19
  144. package/dist/index203.js.map +1 -1
  145. package/dist/index204.js +119 -23
  146. package/dist/index204.js.map +1 -1
  147. package/dist/index205.js +19 -3
  148. package/dist/index205.js.map +1 -1
  149. package/dist/index206.js +16 -2
  150. package/dist/index206.js.map +1 -1
  151. package/dist/index207.js +16 -8
  152. package/dist/index207.js.map +1 -1
  153. package/dist/index208.js +2 -249
  154. package/dist/index208.js.map +1 -1
  155. package/dist/index209.js +5 -0
  156. package/dist/index209.js.map +1 -0
  157. package/dist/index210.js +35 -52
  158. package/dist/index210.js.map +1 -1
  159. package/dist/index211.js +173 -36
  160. package/dist/index211.js.map +1 -1
  161. package/dist/index212.js +6 -5
  162. package/dist/index212.js.map +1 -1
  163. package/dist/index213.js +39 -36
  164. package/dist/index213.js.map +1 -1
  165. package/dist/index215.js +13 -4
  166. package/dist/index215.js.map +1 -1
  167. package/dist/index216.js +5 -2
  168. package/dist/index216.js.map +1 -1
  169. package/dist/index217.js +369 -2
  170. package/dist/index217.js.map +1 -1
  171. package/dist/index218.js +6 -40
  172. package/dist/index218.js.map +1 -1
  173. package/dist/{index214.js → index219.js} +1 -1
  174. package/dist/{index214.js.map → index219.js.map} +1 -1
  175. package/dist/index22.js +287 -247
  176. package/dist/index22.js.map +1 -1
  177. package/dist/index220.js +4 -13
  178. package/dist/index220.js.map +1 -1
  179. package/dist/index221.js +2 -158
  180. package/dist/index221.js.map +1 -1
  181. package/dist/index222.js +3 -84
  182. package/dist/index222.js.map +1 -1
  183. package/dist/index223.js +10 -0
  184. package/dist/index223.js.map +1 -0
  185. package/dist/index224.js +19 -3
  186. package/dist/index224.js.map +1 -1
  187. package/dist/index225.js +26 -34
  188. package/dist/index225.js.map +1 -1
  189. package/dist/index226.js +3 -6
  190. package/dist/index226.js.map +1 -1
  191. package/dist/index227.js +249 -7
  192. package/dist/index227.js.map +1 -1
  193. package/dist/index228.js +49 -123
  194. package/dist/index228.js.map +1 -1
  195. package/dist/index229.js +44 -123
  196. package/dist/index229.js.map +1 -1
  197. package/dist/index230.js +5 -2
  198. package/dist/index230.js.map +1 -1
  199. package/dist/index231.js +49 -174
  200. package/dist/index231.js.map +1 -1
  201. package/dist/index232.js +158 -5
  202. package/dist/index232.js.map +1 -1
  203. package/dist/index233.js +83 -368
  204. package/dist/index233.js.map +1 -1
  205. package/dist/index235.js +2 -18
  206. package/dist/index235.js.map +1 -1
  207. package/dist/index236.js +17 -105
  208. package/dist/index236.js.map +1 -1
  209. package/dist/index237.js +109 -0
  210. package/dist/index237.js.map +1 -0
  211. package/dist/{index238.js → index239.js} +3 -3
  212. package/dist/{index238.js.map → index239.js.map} +1 -1
  213. package/dist/index24.js +249 -120
  214. package/dist/index24.js.map +1 -1
  215. package/dist/index241.js +2 -10
  216. package/dist/index241.js.map +1 -1
  217. package/dist/index242.js +9 -2
  218. package/dist/index242.js.map +1 -1
  219. package/dist/index243.js +3 -224
  220. package/dist/index243.js.map +1 -1
  221. package/dist/index244.js +9 -281
  222. package/dist/index244.js.map +1 -1
  223. package/dist/index245.js +23 -6
  224. package/dist/index245.js.map +1 -1
  225. package/dist/index246.js +6 -2
  226. package/dist/index246.js.map +1 -1
  227. package/dist/index247.js +16 -2
  228. package/dist/index247.js.map +1 -1
  229. package/dist/index248.js +224 -2
  230. package/dist/index248.js.map +1 -1
  231. package/dist/index249.js +281 -2
  232. package/dist/index249.js.map +1 -1
  233. package/dist/index250.js +6 -2
  234. package/dist/index250.js.map +1 -1
  235. package/dist/index251.js +2 -2
  236. package/dist/index252.js +2 -3
  237. package/dist/index252.js.map +1 -1
  238. package/dist/index253.js +2 -2
  239. package/dist/index254.js +2 -2
  240. package/dist/index255.js +2 -2
  241. package/dist/index256.js +122 -24
  242. package/dist/index256.js.map +1 -1
  243. package/dist/index257.js +429 -20
  244. package/dist/index257.js.map +1 -1
  245. package/dist/index258.js +6 -0
  246. package/dist/index258.js.map +1 -0
  247. package/dist/index26.js +119 -142
  248. package/dist/index26.js.map +1 -1
  249. package/dist/index260.js +6 -3
  250. package/dist/index260.js.map +1 -1
  251. package/dist/index261.js +21 -8
  252. package/dist/index261.js.map +1 -1
  253. package/dist/index263.js +9 -3
  254. package/dist/index263.js.map +1 -1
  255. package/dist/index264.js +439 -0
  256. package/dist/index264.js.map +1 -0
  257. package/dist/index265.js +127 -6
  258. package/dist/index265.js.map +1 -1
  259. package/dist/index266.js +199 -15
  260. package/dist/index266.js.map +1 -1
  261. package/dist/index267.js +4 -9
  262. package/dist/index267.js.map +1 -1
  263. package/dist/index268.js +89 -3
  264. package/dist/index268.js.map +1 -1
  265. package/dist/index269.js +2 -12
  266. package/dist/index269.js.map +1 -1
  267. package/dist/index270.js +2 -9
  268. package/dist/index270.js.map +1 -1
  269. package/dist/index271.js +2 -9
  270. package/dist/index271.js.map +1 -1
  271. package/dist/index272.js +2 -17
  272. package/dist/index272.js.map +1 -1
  273. package/dist/index273.js +2 -431
  274. package/dist/index273.js.map +1 -1
  275. package/dist/index274.js +2 -89
  276. package/dist/index274.js.map +1 -1
  277. package/dist/index275.js +28 -2
  278. package/dist/index275.js.map +1 -1
  279. package/dist/index276.js +17 -64
  280. package/dist/index276.js.map +1 -1
  281. package/dist/index278.js +3 -200
  282. package/dist/index278.js.map +1 -1
  283. package/dist/index279.js +12 -2
  284. package/dist/index279.js.map +1 -1
  285. package/dist/index28.js +138 -83
  286. package/dist/index28.js.map +1 -1
  287. package/dist/index280.js +7 -124
  288. package/dist/index280.js.map +1 -1
  289. package/dist/index281.js +7 -20
  290. package/dist/index281.js.map +1 -1
  291. package/dist/index282.js +20 -0
  292. package/dist/index282.js.map +1 -0
  293. package/dist/index283.js +2 -436
  294. package/dist/index283.js.map +1 -1
  295. package/dist/index284.js +68 -126
  296. package/dist/index284.js.map +1 -1
  297. package/dist/index285.js +5 -3
  298. package/dist/index285.js.map +1 -1
  299. package/dist/index286.js +1 -1
  300. package/dist/index287.js +3 -211
  301. package/dist/index287.js.map +1 -1
  302. package/dist/index288.js +214 -0
  303. package/dist/index288.js.map +1 -0
  304. package/dist/index290.js +4 -7
  305. package/dist/index290.js.map +1 -1
  306. package/dist/index291.js +4 -19
  307. package/dist/index291.js.map +1 -1
  308. package/dist/index292.js +58 -6
  309. package/dist/index292.js.map +1 -1
  310. package/dist/index293.js +35 -4
  311. package/dist/index293.js.map +1 -1
  312. package/dist/index294.js +7 -4
  313. package/dist/index294.js.map +1 -1
  314. package/dist/index295.js +6 -58
  315. package/dist/index295.js.map +1 -1
  316. package/dist/index296.js +18 -34
  317. package/dist/index296.js.map +1 -1
  318. package/dist/index297.js +2 -11
  319. package/dist/index297.js.map +1 -1
  320. package/dist/index298.js +47 -2
  321. package/dist/index298.js.map +1 -1
  322. package/dist/index299.js +10 -46
  323. package/dist/index299.js.map +1 -1
  324. package/dist/index30.js +85 -115
  325. package/dist/index30.js.map +1 -1
  326. package/dist/index32.js +111 -112
  327. package/dist/index32.js.map +1 -1
  328. package/dist/index34.js +114 -365
  329. package/dist/index34.js.map +1 -1
  330. package/dist/index36.js +361 -283
  331. package/dist/index36.js.map +1 -1
  332. package/dist/index38.js +288 -106
  333. package/dist/index38.js.map +1 -1
  334. package/dist/index40.js +114 -121
  335. package/dist/index40.js.map +1 -1
  336. package/dist/index42.js +113 -200
  337. package/dist/index42.js.map +1 -1
  338. package/dist/index44.js +180 -90
  339. package/dist/index44.js.map +1 -1
  340. package/dist/index46.js +110 -78
  341. package/dist/index46.js.map +1 -1
  342. package/dist/index48.js +89 -54
  343. package/dist/index48.js.map +1 -1
  344. package/dist/index5.js +14 -78
  345. package/dist/index5.js.map +1 -1
  346. package/dist/index50.js +54 -84
  347. package/dist/index50.js.map +1 -1
  348. package/dist/index52.js +86 -60
  349. package/dist/index52.js.map +1 -1
  350. package/dist/index54.js +59 -40
  351. package/dist/index54.js.map +1 -1
  352. package/dist/index56.js +42 -55
  353. package/dist/index56.js.map +1 -1
  354. package/dist/index58.js +53 -103
  355. package/dist/index58.js.map +1 -1
  356. package/dist/index6.js +36 -58
  357. package/dist/index6.js.map +1 -1
  358. package/dist/index60.js +103 -89
  359. package/dist/index60.js.map +1 -1
  360. package/dist/index62.js +61 -88
  361. package/dist/index62.js.map +1 -1
  362. package/dist/index64.js +119 -77
  363. package/dist/index64.js.map +1 -1
  364. package/dist/index66.js +77 -91
  365. package/dist/index66.js.map +1 -1
  366. package/dist/index68.js +88 -49
  367. package/dist/index68.js.map +1 -1
  368. package/dist/index7.js +78 -20
  369. package/dist/index7.js.map +1 -1
  370. package/dist/index70.js +51 -304
  371. package/dist/index70.js.map +1 -1
  372. package/dist/index72.js +299 -115
  373. package/dist/index72.js.map +1 -1
  374. package/dist/index74.js +120 -214
  375. package/dist/index74.js.map +1 -1
  376. package/dist/index76.js +213 -36
  377. package/dist/index76.js.map +1 -1
  378. package/dist/index78.js +47 -0
  379. package/dist/index78.js.map +1 -0
  380. package/dist/index79.js +119 -230
  381. package/dist/index79.js.map +1 -1
  382. package/dist/index8.js +61 -7
  383. package/dist/index8.js.map +1 -1
  384. package/dist/index81.js +227 -154
  385. package/dist/index81.js.map +1 -1
  386. package/dist/index83.js +154 -207
  387. package/dist/index83.js.map +1 -1
  388. package/dist/index85.js +215 -26
  389. package/dist/index85.js.map +1 -1
  390. package/dist/index87.js +27 -88
  391. package/dist/index87.js.map +1 -1
  392. package/dist/index89.js +53 -88
  393. package/dist/index89.js.map +1 -1
  394. package/dist/index9.js +17 -76
  395. package/dist/index9.js.map +1 -1
  396. package/dist/index91.js +75 -44
  397. package/dist/index91.js.map +1 -1
  398. package/dist/index93.js +89 -15
  399. package/dist/index93.js.map +1 -1
  400. package/dist/index95.js +15 -166
  401. package/dist/index95.js.map +1 -1
  402. package/dist/index97.js +120 -59
  403. package/dist/index97.js.map +1 -1
  404. package/dist/index99.js +66 -52
  405. package/dist/index99.js.map +1 -1
  406. package/dist/style.css +1 -1
  407. package/package.json +2 -2
  408. package/dist/index120.js +0 -47
  409. package/dist/index120.js.map +0 -1
  410. package/dist/index164.js +0 -6
  411. package/dist/index164.js.map +0 -1
  412. package/dist/index172.js +0 -6
  413. package/dist/index172.js.map +0 -1
  414. package/dist/index188.js +0 -6
  415. package/dist/index188.js.map +0 -1
  416. package/dist/index234.js +0 -6
  417. package/dist/index234.js.map +0 -1
  418. package/dist/index240.js +0 -5
  419. package/dist/index240.js.map +0 -1
  420. package/dist/index259.js +0 -10
  421. package/dist/index259.js.map +0 -1
  422. package/dist/index262.js +0 -26
  423. package/dist/index262.js.map +0 -1
  424. package/dist/index277.js +0 -8
  425. package/dist/index277.js.map +0 -1
  426. package/dist/index3.js +0 -17
  427. package/dist/index3.js.map +0 -1
  428. package/dist/index4.js +0 -43
  429. package/dist/index4.js.map +0 -1
  430. package/dist/index77.js +0 -130
  431. package/dist/index77.js.map +0 -1
package/dist/index22.js CHANGED
@@ -1,264 +1,304 @@
1
- import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as g, nextTick as G, useAttrs as ne, onMounted as ie, onBeforeUnmount as P, watch as re, openBlock as w, createBlock as ue, Teleport as de, createElementVNode as a, mergeProps as K, createElementBlock as T, renderSlot as u, createTextVNode as ce, toDisplayString as z, createCommentVNode as H } from "vue";
2
- import { throttle as ve } from "./index224.js";
3
- import { useFocusTrap as be } from "./index225.js";
4
- import { useId as U } from "./index7.js";
5
- import { wait as $ } from "./index126.js";
6
- import { waitFor as fe } from "./index226.js";
7
- import { useModalsState as k } from "./index227.js";
8
- import { useLogger as pe } from "./index207.js";
9
- const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-close__content" }, he = { class: "bb-base-dialog-close__label" }, ye = /* @__PURE__ */ a("span", { class: "bb-base-dialog-close__icon" }, [
10
- /* @__PURE__ */ a("svg", {
11
- "aria-hidden": "true",
12
- fill: "none",
13
- viewBox: "0 0 24 24",
14
- xmlns: "http://www.w3.org/2000/svg"
15
- }, [
16
- /* @__PURE__ */ a("path", {
17
- d: "M23 23L1 1M23 1L1 23",
18
- stroke: "currentColor",
19
- "stroke-linecap": "round",
20
- "stroke-width": "2"
21
- })
22
- ])
23
- ], -1), _e = /* @__PURE__ */ a("div", { style: { flex: "10000 10000 0%" } }, null, -1), He = /* @__PURE__ */ ae({
24
- __name: "BaseDialog",
1
+ import { defineComponent as ae, ref as o, computed as v, watch as oe, openBlock as w, createBlock as V, normalizeClass as B, withCtx as i, renderSlot as d, createVNode as E, withDirectives as ne, createElementVNode as r, mergeProps as I, unref as c, toDisplayString as F, Teleport as re, normalizeStyle as le, KeepAlive as ie, createCommentVNode as L } from "vue";
2
+ import { useFloating as se } from "./index202.js";
3
+ import n from "./index203.js";
4
+ import ue from "./index204.js";
5
+ import de from "./index205.js";
6
+ import ce from "./index206.js";
7
+ import pe from "./index207.js";
8
+ import { identity as me } from "./index208.js";
9
+ import { last as fe } from "./index209.js";
10
+ import { useFocusTrap as be } from "./index210.js";
11
+ import { useId as ve } from "./index9.js";
12
+ import { useIntersectionObserver as ye } from "./index129.js";
13
+ import { useMobile as ge } from "./index10.js";
14
+ import { vMaska as ke } from "./index211.js";
15
+ import { wait as he } from "./index128.js";
16
+ import { waitFor as Me } from "./index212.js";
17
+ import we from "./index20.js";
18
+ /* empty css */
19
+ import Ve from "./index213.js";
20
+ /* empty css */
21
+ import Ce from "./index215.js";
22
+ import Ye from "./index216.js";
23
+ import { autoUpdate as Ae, flip as De, offset as Se, shift as _e, hide as $e } from "./index217.js";
24
+ const Oe = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Be = ["disabled"], Ee = /* @__PURE__ */ r("svg", {
25
+ fill: "none",
26
+ viewBox: "0 0 16 16",
27
+ xmlns: "http://www.w3.org/2000/svg"
28
+ }, [
29
+ /* @__PURE__ */ r("path", {
30
+ d: "M12.6667 2.66667H3.33333C2.59695 2.66667 2 3.26363 2 4.00001V13.3333C2 14.0697 2.59695 14.6667 3.33333 14.6667H12.6667C13.403 14.6667 14 14.0697 14 13.3333V4.00001C14 3.26363 13.403 2.66667 12.6667 2.66667Z",
31
+ stroke: "currentColor",
32
+ "stroke-linecap": "round",
33
+ "stroke-linejoin": "round"
34
+ }),
35
+ /* @__PURE__ */ r("path", {
36
+ d: "M10.6667 1.33333V3.99999",
37
+ stroke: "currentColor",
38
+ "stroke-linecap": "round",
39
+ "stroke-linejoin": "round"
40
+ }),
41
+ /* @__PURE__ */ r("path", {
42
+ d: "M5.33333 1.33333V3.99999",
43
+ stroke: "currentColor",
44
+ "stroke-linecap": "round",
45
+ "stroke-linejoin": "round"
46
+ }),
47
+ /* @__PURE__ */ r("path", {
48
+ d: "M2 6.66667H14",
49
+ stroke: "currentColor",
50
+ "stroke-linecap": "round",
51
+ "stroke-linejoin": "round"
52
+ })
53
+ ], -1), Ie = { class: "sr-only" }, Fe = ["id"], rt = /* @__PURE__ */ ae({
54
+ __name: "BaseDatePickerInput",
25
55
  props: {
26
- closeLabel: { default: "Chiudi modale" },
27
- compact: { type: Boolean },
56
+ allowWriting: { type: [Boolean, String], default: !0 },
57
+ "append:icon": {},
58
+ autocomplete: { default: "off" },
59
+ autofocus: {},
28
60
  disabled: { type: Boolean },
29
- eager: { type: Boolean },
30
- panelClasses: { default: () => [] },
31
- overlayClasses: { default: () => [] },
32
- persistent: { type: Boolean },
33
- showClose: { type: Boolean, default: !0 },
34
- title: {},
35
- transition: { default: "fade" },
36
- transitionDuration: { default: 350 },
37
- size: { default: "sm" },
38
- description: {},
39
- focusTarget: {},
40
- fullscreen: { type: Boolean },
41
- modelValue: { type: [Boolean, null] }
61
+ firstDayOfWeek: {},
62
+ hasErrors: { type: Boolean },
63
+ id: {},
64
+ loading: { type: Boolean },
65
+ max: {},
66
+ min: {},
67
+ modelValue: {},
68
+ name: {},
69
+ placeholder: {},
70
+ "prepend:icon": {},
71
+ range: { type: Boolean },
72
+ readonly: { type: Boolean },
73
+ required: { type: Boolean },
74
+ selectable: {},
75
+ width: { default: 290 }
42
76
  },
43
- emits: ["shown", "hidden", "update:modelValue"],
44
- setup(j, { emit: q }) {
45
- var W, N;
46
- const t = j, d = q, C = `title_${U().id.value}`, B = `description_${U().id.value}`, m = o(null), c = o(null), L = o(null), h = o(null), v = o(null), s = o(null), b = o(null), J = o(null), M = !!((N = (W = se()) == null ? void 0 : W.proxy) != null && N.$nuxt), y = o(0), Q = g(() => {
47
- const { openedModals: e } = k();
48
- return e.value && e.value === y.value;
49
- }), { activate: X, deactivate: x } = be(L, {
50
- initialFocus: t.focusTarget ?? void 0,
51
- clickOutsideDeactivates: (e) => e.target === c.value,
52
- allowOutsideClick: !0,
53
- /* On esc deactivate the trap, return focus and then close the modal */
54
- escapeDeactivates: () => (G(() => {
55
- d("update:modelValue", !1);
56
- }), !0)
57
- }), Y = ne(), O = g(() => t.closeLabel);
58
- ie(async () => {
59
- s.value && (m.value = new ResizeObserver(r), m.value.observe(s.value)), window.addEventListener("resize", r), r(), !(!t.modelValue && !i.value) && (M && !globalThis.document || E());
60
- }), P(() => {
61
- window.removeEventListener("resize", r);
62
- });
63
- const V = o(!1), f = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), S = g(() => f.value || p.value), Z = () => {
64
- if (!globalThis.document) return;
65
- const e = window.innerWidth - document.documentElement.clientWidth;
66
- document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
67
- }, A = () => {
68
- globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
69
- };
70
- P(() => {
71
- if (t.modelValue) {
72
- const { openedModals: e, modalHasClosed: l } = k();
73
- e.value && (l(), y.value = 0, A());
74
- }
75
- });
76
- const E = async () => {
77
- if (t.modelValue) {
78
- i.value || (i.value = !0, await fe(() => !!s.value), await G(), s.value && (m.value = new ResizeObserver(r), m.value.observe(s.value))), D.value = !1, p.value = !1, f.value = !0;
79
- const { modalHasOpened: e, openedModals: l } = k();
80
- e(), y.value = l.value, Z(), await $(t.transitionDuration), f.value = !1, V.value = !0, d("shown"), X();
81
- } else {
82
- x(), f.value = !1, V.value = !1, p.value = !0, await $(t.transitionDuration), p.value = !1, D.value = !0;
83
- const { modalHasClosed: e, openedModals: l } = k();
84
- e(), y.value = 0, l.value || A(), d("hidden");
77
+ emits: ["active", "error", "focus", "inactive", "update:modelValue"],
78
+ setup(W, { emit: j }) {
79
+ n.extend(ue), n.extend(ce), n.extend(pe), n.locale(de);
80
+ const t = W, s = j, u = o(null), C = o(null), p = o(null), z = o(null), y = o(null), A = o(), g = t.id || `bdpi_${ve().id.value}`, { isMobile: D } = ge(), q = v(
81
+ () => t.allowWriting === "not-mobile" && D.value ? "none" : "numeric"
82
+ ), Y = o(!0);
83
+ ye(
84
+ p,
85
+ ([{ intersectionRatio: e }]) => {
86
+ e === 1 ? Y.value = !0 : (Y.value = !1, m.value && (O(), p.value && p.value.$el.querySelector(
87
+ ".bb-base-date-picker-input__calendar-btn"
88
+ ).focus(), M()));
89
+ },
90
+ { threshold: [0, 1] }
91
+ );
92
+ const G = v(() => ({
93
+ "bb-base-date-picker-input": !0,
94
+ "bb-base-date-picker-input--active": k.value,
95
+ "bb-base-date-picker-input--errors": t.hasErrors,
96
+ "bb-base-date-picker-input--loading": t.loading,
97
+ "bb-base-date-picker-input--readonly": t.readonly,
98
+ "bb-base-date-picker-input--disabled": t.disabled
99
+ })), P = {
100
+ onInput: (e) => {
101
+ if (!t.range && e.target instanceof HTMLInputElement)
102
+ if (y.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
103
+ const a = n(e.target.value, "DD/MM/YYYY");
104
+ ee(a) ? (e.target.value = "", s("update:modelValue", null), s("error", "invalid_date_typed")) : s("update:modelValue", a.toISOString());
105
+ } else e.target.value === "" && s("update:modelValue", null);
85
106
  }
86
- };
87
- re(
107
+ }, k = o(!1), H = () => {
108
+ k.value || (s("active"), k.value = !0, document.addEventListener("focusin", h), document.addEventListener("click", h));
109
+ }, h = (e) => {
110
+ var a, l;
111
+ f.value || e.target instanceof HTMLElement && (a = C.value) != null && a.$el && !C.value.$el.contains(e.target) && !((l = u.value) != null && l.contains(e.target)) && (k.value = !1, s("inactive"), document.removeEventListener("focusin", h), document.removeEventListener("click", h));
112
+ }, S = (e) => {
113
+ if (e)
114
+ if (Array.isArray(e)) {
115
+ let a, l;
116
+ return e.length && (a = e[0]), e.length > 1 && (l = fe(e)), [a, l].filter(me).map((te) => n(te).format("DD/MM/YYYY")).join(" - ");
117
+ } else
118
+ return n(e).format("DD/MM/YYYY");
119
+ return null;
120
+ }, T = v(() => y.value ? y.value : S(t.modelValue));
121
+ oe(
88
122
  () => t.modelValue,
89
- () => {
90
- !t.modelValue && !i.value || M && !globalThis.document || E();
91
- },
92
- { flush: "post" }
123
+ (e) => {
124
+ y.value = S(e);
125
+ }
93
126
  );
94
- const _ = (e) => {
95
- e.target === c.value && e.preventDefault();
96
- }, ee = (e) => {
97
- t.disabled || S.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
98
- }, I = () => {
99
- t.disabled || S.value || (x(), d("update:modelValue", !1));
100
- }, te = g(() => {
101
- const e = [
102
- {
103
- "bb-base-dialog bb-base-dialog__overlay": !0,
104
- "bb-base-dialog--fullscreen": t.fullscreen,
105
- "bb-base-dialog--faded": !Q.value,
106
- "bb-base-dialog--open": V.value,
107
- "bb-base-dialog--opening": f.value,
108
- "bb-base-dialog--closed": D.value,
109
- "bb-base-dialog--closing": p.value,
110
- [`bb-base-dialog--transition-${t.transition}`]: !0
111
- },
112
- t.overlayClasses
113
- ].flat(), l = {
114
- onClick: ee,
115
- onScroll: _,
116
- onTouchmove: _,
117
- onWheel: _,
118
- onKeydown: _
119
- }, n = {
120
- transitionDuration: t.transitionDuration / 1e3 + "s"
121
- };
122
- return {
123
- class: e,
124
- style: n,
125
- ...l,
126
- ...Y
127
- };
128
- }), le = g(() => {
129
- const e = [
130
- {
131
- "bb-base-dialog__panel": !0,
132
- "bb-base-dialog__panel--compact": t.compact
133
- },
134
- t.panelClasses
135
- ].flat(), l = {
136
- role: "dialog",
137
- "aria-modal": !0
138
- };
139
- i.value && (t.title && (l["aria-labelledby"] = C), t.description && (l["aria-describedby"] = B));
140
- let n;
141
- const F = {
142
- sm: 384,
143
- md: 652,
144
- lg: 896
145
- };
146
- t.fullscreen ? n = "100%" : typeof t.size == "number" ? n = t.size + "px" : t.size in F ? n = F[t.size] + "px" : n = t.size + "px";
147
- const oe = {
148
- maxWidth: n,
149
- transitionDuration: t.transitionDuration / 1e3 + "s"
127
+ const { floatingStyles: N, placement: U } = se(p, u, {
128
+ placement: "bottom",
129
+ whileElementsMounted: Ae,
130
+ middleware: [De(), Se(5), _e({ padding: 6 }), $e()]
131
+ }), K = v(() => {
132
+ const e = {
133
+ ...N.value
150
134
  };
151
- return {
152
- class: e,
153
- style: oe,
154
- ...l
155
- };
156
- });
157
- let R = 0;
158
- const r = ve(
159
- async () => {
160
- if (R++, R === 100) {
161
- const { error: e } = pe();
162
- e(
163
- "Dialog is updating its height too often. Please check the content is reliably sized."
164
- );
165
- }
166
- if (t.fullscreen) {
167
- J.value = window.innerHeight;
168
- return;
169
- }
170
- if (v.value && s.value && b.value) {
171
- const e = v.value.scrollHeight + s.value.scrollHeight + b.value.scrollHeight + 2;
172
- if (h.value && (h.value.style.height = "0px", h.value.style.height = `${e + 2}px`, await $(30), v.value && s.value && b.value)) {
173
- const l = v.value.scrollHeight + s.value.scrollHeight + b.value.scrollHeight + 2;
174
- e !== l && r();
175
- }
176
- }
135
+ return u.value, e;
136
+ }), m = o(!1), R = async () => {
137
+ m.value = !0;
138
+ }, M = async () => {
139
+ var e;
140
+ m.value = !1, (e = A.value) == null || e.resetStatus();
141
+ }, _ = o(!1), $ = async () => {
142
+ f.value || (_.value = !0, await Me(() => !!u.value), await R(), Z());
143
+ }, f = o(!1), { activate: Z, deactivate: O } = be(u, {
144
+ onActivate: () => f.value = !0,
145
+ // On post activation focus on current date
146
+ onPostActivate: () => {
147
+ var e;
148
+ (e = u.value.querySelector(
149
+ ".bb-base-date-picker-date--current button"
150
+ )) == null || e.focus();
177
151
  },
178
- 200,
179
- { trailing: !0 }
180
- );
181
- return (e, l) => (w(), ue(de, { to: "body" }, [
182
- a("div", K(te.value, {
183
- ref_key: "overlay",
184
- ref: c
185
- }), [
186
- a("div", K(le.value, {
187
- ref_key: "panel",
188
- ref: L
189
- }), [
190
- i.value ? (w(), T("div", {
152
+ onPostDeactivate: async () => {
153
+ await he(200), f.value = !1;
154
+ },
155
+ /* On esc deactivate the trap, return focus and then close the modal */
156
+ escapeDeactivates: () => (b.value = !1, M(), !0),
157
+ clickOutsideDeactivates: () => (b.value = !1, M(), !0),
158
+ allowOutsideClick: !0,
159
+ preventScroll: !0
160
+ }), b = o(!t.allowWriting || t.range), J = async (e) => {
161
+ s("focus", e), b.value && $(), b.value = !t.allowWriting || t.allowWriting === "not-mobile" && D.value || t.range;
162
+ }, Q = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, X = {
163
+ "onUpdate:modelValue": (e) => {
164
+ s("update:modelValue", e), Q(e) && (b.value = !1, O({
165
+ onPostDeactivate: () => {
166
+ f.value = !1, M();
167
+ }
168
+ }));
169
+ }
170
+ }, x = v(() => {
171
+ if (t.range) {
172
+ if (!t.modelValue || t.modelValue.length < 2)
173
+ return "Seleziona un range";
174
+ const e = n(t.modelValue[0]).format("D MMMM YYYY"), a = n(t.modelValue[1]).format("D MMMM YYYY");
175
+ if (t.range && t.modelValue.length === 2)
176
+ return `Cambia selezione, da ${e} a ${a}`;
177
+ } else if (typeof t.modelValue == "string")
178
+ return `Cambia selezione, ${n(t.modelValue).format("D MMMM YYYY")}`;
179
+ return "Seleziona una data";
180
+ }), ee = (e) => {
181
+ let a = !0;
182
+ return t.min && a && (a = e.isSameOrAfter(n(t.min).startOf("day"))), t.max && a && (a = e.isSameOrBefore(n(t.max).startOf("day"))), typeof t.selectable == "function" && a && (a = t.selectable(e.toDate())), !a;
183
+ };
184
+ return (e, a) => (w(), V(Ce, {
185
+ ref_key: "outerContainer",
186
+ ref: C,
187
+ class: B(G.value),
188
+ onFocusin: H
189
+ }, {
190
+ "prepend-outer": i(() => [
191
+ d(e.$slots, "prepend-outer")
192
+ ]),
193
+ "append-outer": i(() => [
194
+ d(e.$slots, "append-outer")
195
+ ]),
196
+ default: i(() => {
197
+ var l;
198
+ return [
199
+ E(Ve, {
200
+ ref_key: "innerContainer",
201
+ ref: p,
202
+ "append:icon": t["append:icon"],
203
+ "prepend:icon": t["prepend:icon"]
204
+ }, {
205
+ prepend: i(() => [
206
+ d(e.$slots, "prepend")
207
+ ]),
208
+ prefix: i(() => [
209
+ d(e.$slots, "prefix")
210
+ ]),
211
+ append: i(() => [
212
+ d(e.$slots, "append")
213
+ ]),
214
+ suffix: i(() => [
215
+ d(e.$slots, "suffix")
216
+ ]),
217
+ default: i(() => [
218
+ ne(r("input", I({
219
+ id: c(g),
220
+ ref_key: "input",
221
+ ref: z,
222
+ "aria-describedby": `bdpi_description_${c(g)}`,
223
+ autocomplete: e.autocomplete,
224
+ autofocus: e.autofocus,
225
+ "data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
226
+ disabled: e.disabled,
227
+ inputmode: q.value,
228
+ name: e.name,
229
+ placeholder: e.placeholder,
230
+ readonly: e.readonly || e.range || !e.allowWriting,
231
+ required: e.required
232
+ }, P, {
233
+ size: "1",
234
+ type: "text",
235
+ value: T.value,
236
+ onFocus: J
237
+ }), null, 16, Oe), [
238
+ [c(ke)]
239
+ ]),
240
+ r("button", {
241
+ class: "bb-base-date-picker-input__calendar-btn",
242
+ disabled: e.disabled || e.readonly || !Y.value,
243
+ type: "button",
244
+ onClick: $
245
+ }, [
246
+ Ee,
247
+ r("span", Ie, F(x.value), 1)
248
+ ], 8, Be),
249
+ r("span", {
250
+ id: `bdpi_description_${c(g)}`,
251
+ class: "bb-base-date-picker-input__accessible-description sr-only"
252
+ }, "Formato della data " + F(t.range ? "GG/MM/AAAA - GG/MM/AAAA" : "GG/MM/AAAA"), 9, Fe)
253
+ ]),
254
+ _: 3
255
+ }, 8, ["append:icon", "prepend:icon"]),
256
+ _.value ? (w(), V(re, {
191
257
  key: 0,
192
- ref_key: "content",
193
- ref: h,
194
- class: "bb-base-dialog__content"
258
+ to: "body"
195
259
  }, [
196
- a("div", {
197
- ref_key: "header",
198
- ref: v,
199
- class: "bb-base-dialog__header"
260
+ r("span", {
261
+ ref_key: "calendar",
262
+ ref: u,
263
+ class: B(["bb-base-date-picker-input__calendar", {
264
+ "bb-base-date-picker-input__calendar--shown": m.value
265
+ }]),
266
+ style: le(K.value)
200
267
  }, [
201
- u(e.$slots, "header", {
202
- close: I,
203
- title: e.title,
204
- titleId: C
205
- }, () => [
206
- a("span", {
207
- id: C,
208
- class: "bb-base-dialog__title"
209
- }, [
210
- u(e.$slots, "title", { text: e.title }, () => [
211
- ce(z(e.title), 1)
212
- ])
268
+ E(Ye, {
269
+ direction: (l = c(U)) != null && l.includes("top") ? "bottom" : "top",
270
+ duration: 300
271
+ }, {
272
+ default: i(() => [
273
+ (w(), V(ie, null, [
274
+ m.value ? (w(), V(we, I({
275
+ key: 0,
276
+ id: c(g)
277
+ }, X, {
278
+ ref_key: "basedatepicker",
279
+ ref: A,
280
+ disabled: e.disabled,
281
+ "first-day-of-week": e.firstDayOfWeek,
282
+ max: e.max,
283
+ min: e.min,
284
+ "model-value": e.modelValue,
285
+ range: e.range,
286
+ readonly: e.readonly,
287
+ selectable: e.selectable
288
+ }), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])) : L("", !0)
289
+ ], 1024))
213
290
  ]),
214
- a("span", ge, [
215
- e.showClose ? (w(), T("button", {
216
- key: 0,
217
- type: "button",
218
- onClick: I
219
- }, [
220
- u(e.$slots, "close", { text: O.value }, () => [
221
- a("span", me, [
222
- a("span", he, z(O.value), 1),
223
- ye
224
- ])
225
- ])
226
- ])) : H("", !0)
227
- ])
228
- ])
229
- ], 512),
230
- a("div", {
231
- ref_key: "body",
232
- ref: s,
233
- class: "bb-base-dialog__body"
234
- }, [
235
- u(e.$slots, "description", {
236
- descriptionId: B,
237
- text: e.description
238
- }, () => [
239
- e.description ? (w(), T("div", {
240
- key: 0,
241
- id: B,
242
- class: "bb-base-dialog__description"
243
- }, z(e.description), 1)) : H("", !0)
244
- ]),
245
- u(e.$slots, "default")
246
- ], 512),
247
- _e,
248
- a("div", {
249
- ref_key: "footer",
250
- ref: b,
251
- class: "bb-base-dialog__footer"
252
- }, [
253
- u(e.$slots, "footer")
254
- ], 512)
255
- ], 512)) : H("", !0)
256
- ], 16)
257
- ], 16)
258
- ]));
291
+ _: 1
292
+ }, 8, ["direction"])
293
+ ], 6)
294
+ ])) : L("", !0)
295
+ ];
296
+ }),
297
+ _: 3
298
+ }, 8, ["class"]));
259
299
  }
260
300
  });
261
301
  export {
262
- He as default
302
+ rt as default
263
303
  };
264
304
  //# sourceMappingURL=index22.js.map