bitboss-ui 2.0.4 → 2.0.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 (442) 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 +138 -137
  4. package/dist/index.js.map +1 -1
  5. package/dist/index10.js +74 -35
  6. package/dist/index10.js.map +1 -1
  7. package/dist/{index99.js → index100.js} +3 -3
  8. package/dist/index100.js.map +1 -0
  9. package/dist/{index101.js → index102.js} +3 -3
  10. package/dist/{index101.js.map → index102.js.map} +1 -1
  11. package/dist/{index103.js → index104.js} +8 -8
  12. package/dist/{index103.js.map → index104.js.map} +1 -1
  13. package/dist/{index105.js → index106.js} +10 -10
  14. package/dist/{index105.js.map → index106.js.map} +1 -1
  15. package/dist/{index107.js → index108.js} +3 -3
  16. package/dist/{index107.js.map → index108.js.map} +1 -1
  17. package/dist/index11.js +36 -189
  18. package/dist/index11.js.map +1 -1
  19. package/dist/{index109.js → index110.js} +3 -3
  20. package/dist/{index109.js.map → index110.js.map} +1 -1
  21. package/dist/{index111.js → index112.js} +3 -3
  22. package/dist/{index111.js.map → index112.js.map} +1 -1
  23. package/dist/{index113.js → index114.js} +3 -3
  24. package/dist/{index113.js.map → index114.js.map} +1 -1
  25. package/dist/{index115.js → index116.js} +8 -8
  26. package/dist/{index115.js.map → index116.js.map} +1 -1
  27. package/dist/{index117.js → index118.js} +2 -2
  28. package/dist/{index117.js.map → index118.js.map} +1 -1
  29. package/dist/index12.js +189 -78
  30. package/dist/index12.js.map +1 -1
  31. package/dist/index120.js +34 -38
  32. package/dist/index120.js.map +1 -1
  33. package/dist/index121.js +38 -38
  34. package/dist/index121.js.map +1 -1
  35. package/dist/index122.js +39 -42
  36. package/dist/index122.js.map +1 -1
  37. package/dist/index123.js +43 -31
  38. package/dist/index123.js.map +1 -1
  39. package/dist/index124.js +35 -2
  40. package/dist/index124.js.map +1 -1
  41. package/dist/index125.js +2 -21
  42. package/dist/index125.js.map +1 -1
  43. package/dist/index126.js +21 -2
  44. package/dist/index126.js.map +1 -1
  45. package/dist/index127.js +2 -312
  46. package/dist/index127.js.map +1 -1
  47. package/dist/index128.js +309 -21
  48. package/dist/index128.js.map +1 -1
  49. package/dist/index129.js +24 -2
  50. package/dist/index129.js.map +1 -1
  51. package/dist/index13.js +85 -0
  52. package/dist/index13.js.map +1 -0
  53. package/dist/index130.js +2 -5
  54. package/dist/index130.js.map +1 -1
  55. package/dist/index131.js +5 -9
  56. package/dist/index131.js.map +1 -1
  57. package/dist/index132.js +8 -5
  58. package/dist/index132.js.map +1 -1
  59. package/dist/index133.js +6 -3
  60. package/dist/index133.js.map +1 -1
  61. package/dist/index134.js +1 -1
  62. package/dist/index135.js +1 -1
  63. package/dist/index136.js +1 -1
  64. package/dist/index137.js +1 -1
  65. package/dist/index138.js +1 -1
  66. package/dist/index139.js +1 -1
  67. package/dist/index140.js +1 -1
  68. package/dist/index141.js +1 -1
  69. package/dist/index142.js +1 -1
  70. package/dist/index143.js +1 -1
  71. package/dist/index144.js +1 -1
  72. package/dist/index145.js +1 -1
  73. package/dist/index146.js +1 -1
  74. package/dist/index147.js +1 -1
  75. package/dist/index148.js +1 -1
  76. package/dist/index149.js +1 -1
  77. package/dist/{index14.js → index15.js} +4 -4
  78. package/dist/{index14.js.map → index15.js.map} +1 -1
  79. package/dist/index150.js +1 -1
  80. package/dist/index151.js +1 -1
  81. package/dist/index152.js +1 -1
  82. package/dist/index153.js +1 -1
  83. package/dist/index154.js +1 -1
  84. package/dist/index155.js +1 -1
  85. package/dist/index156.js +1 -1
  86. package/dist/index157.js +1 -1
  87. package/dist/index158.js +1 -1
  88. package/dist/index159.js +2 -2
  89. package/dist/{index161.js → index160.js} +1 -1
  90. package/dist/index160.js.map +1 -0
  91. package/dist/index162.js +6 -0
  92. package/dist/index162.js.map +1 -0
  93. package/dist/index164.js +1 -1
  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/{index16.js → index17.js} +4 -4
  100. package/dist/{index16.js.map → index17.js.map} +1 -1
  101. package/dist/index170.js +6 -0
  102. package/dist/index170.js.map +1 -0
  103. package/dist/index172.js +2 -3
  104. package/dist/index172.js.map +1 -1
  105. package/dist/index173.js +1 -1
  106. package/dist/index174.js +1 -1
  107. package/dist/index175.js +1 -1
  108. package/dist/index176.js +1 -1
  109. package/dist/index177.js +1 -1
  110. package/dist/index178.js +1 -1
  111. package/dist/index179.js +1 -1
  112. package/dist/index180.js +1 -1
  113. package/dist/index181.js +1 -1
  114. package/dist/index182.js +1 -1
  115. package/dist/index183.js +2 -2
  116. package/dist/{index185.js → index184.js} +1 -1
  117. package/dist/index184.js.map +1 -0
  118. package/dist/index186.js +6 -0
  119. package/dist/index186.js.map +1 -0
  120. package/dist/index188.js +1 -1
  121. package/dist/index189.js +1 -1
  122. package/dist/{index18.js → index19.js} +76 -74
  123. package/dist/index19.js.map +1 -0
  124. package/dist/index190.js +1 -1
  125. package/dist/index191.js +1 -1
  126. package/dist/index192.js +1 -1
  127. package/dist/index193.js +1 -1
  128. package/dist/index194.js +1 -1
  129. package/dist/index195.js +1 -1
  130. package/dist/index196.js +1 -1
  131. package/dist/index197.js +3 -2
  132. package/dist/index197.js.map +1 -1
  133. package/dist/index198.js +77 -154
  134. package/dist/index198.js.map +1 -1
  135. package/dist/index199.js +2 -84
  136. package/dist/index199.js.map +1 -1
  137. package/dist/index200.js +5 -0
  138. package/dist/index200.js.map +1 -0
  139. package/dist/index201.js +4 -2
  140. package/dist/index201.js.map +1 -1
  141. package/dist/index202.js +2 -4
  142. package/dist/index202.js.map +1 -1
  143. package/dist/index203.js +8 -2
  144. package/dist/index203.js.map +1 -1
  145. package/dist/index204.js +117 -72
  146. package/dist/index204.js.map +1 -1
  147. package/dist/index205.js +5 -126
  148. package/dist/index205.js.map +1 -1
  149. package/dist/index206.js +123 -5
  150. package/dist/index206.js.map +1 -1
  151. package/dist/index207.js +17 -121
  152. package/dist/index207.js.map +1 -1
  153. package/dist/index208.js +15 -18
  154. package/dist/index208.js.map +1 -1
  155. package/dist/index209.js +10 -10
  156. package/dist/index209.js.map +1 -1
  157. package/dist/{index20.js → index21.js} +26 -27
  158. package/dist/index21.js.map +1 -0
  159. package/dist/index210.js +2 -16
  160. package/dist/index210.js.map +1 -1
  161. package/dist/index211.js +2 -2
  162. package/dist/index211.js.map +1 -1
  163. package/dist/index212.js +35 -2
  164. package/dist/index212.js.map +1 -1
  165. package/dist/index213.js +172 -33
  166. package/dist/index213.js.map +1 -1
  167. package/dist/index214.js +6 -174
  168. package/dist/index214.js.map +1 -1
  169. package/dist/index215.js +42 -5
  170. package/dist/index215.js.map +1 -1
  171. package/dist/index217.js +16 -0
  172. package/dist/index217.js.map +1 -0
  173. package/dist/index218.js +4 -12
  174. package/dist/index218.js.map +1 -1
  175. package/dist/index219.js +369 -5
  176. package/dist/index219.js.map +1 -1
  177. package/dist/index220.js +17 -367
  178. package/dist/index220.js.map +1 -1
  179. package/dist/index221.js +27 -8
  180. package/dist/index221.js.map +1 -1
  181. package/dist/index222.js +3 -3
  182. package/dist/index222.js.map +1 -1
  183. package/dist/index223.js +249 -7
  184. package/dist/index223.js.map +1 -1
  185. package/dist/index224.js +51 -18
  186. package/dist/index224.js.map +1 -1
  187. package/dist/index225.js +44 -27
  188. package/dist/index225.js.map +1 -1
  189. package/dist/index226.js +5 -3
  190. package/dist/index226.js.map +1 -1
  191. package/dist/index227.js +43 -243
  192. package/dist/index227.js.map +1 -1
  193. package/dist/index228.js +6 -0
  194. package/dist/{index233.js.map → index228.js.map} +1 -1
  195. package/dist/index229.js +3 -52
  196. package/dist/index229.js.map +1 -1
  197. package/dist/{index22.js → index23.js} +74 -76
  198. package/dist/index23.js.map +1 -0
  199. package/dist/index230.js +7 -37
  200. package/dist/index230.js.map +1 -1
  201. package/dist/index231.js +158 -5
  202. package/dist/index231.js.map +1 -1
  203. package/dist/index232.js +77 -34
  204. package/dist/index232.js.map +1 -1
  205. package/dist/index234.js +2 -2
  206. package/dist/index234.js.map +1 -1
  207. package/dist/index235.js +18 -3
  208. package/dist/index235.js.map +1 -1
  209. package/dist/index236.js +105 -17
  210. package/dist/index236.js.map +1 -1
  211. package/dist/{index239.js → index238.js} +3 -3
  212. package/dist/{index239.js.map → index238.js.map} +1 -1
  213. package/dist/index240.js +5 -0
  214. package/dist/index240.js.map +1 -0
  215. package/dist/index244.js +3 -3
  216. package/dist/index248.js +9 -3
  217. package/dist/index248.js.map +1 -1
  218. package/dist/index249.js +281 -12
  219. package/dist/index249.js.map +1 -1
  220. package/dist/{index24.js → index25.js} +6 -6
  221. package/dist/{index24.js.map → index25.js.map} +1 -1
  222. package/dist/index250.js +5 -8
  223. package/dist/index250.js.map +1 -1
  224. package/dist/index251.js +2 -9
  225. package/dist/index251.js.map +1 -1
  226. package/dist/index252.js +2 -17
  227. package/dist/index252.js.map +1 -1
  228. package/dist/index253.js +2 -281
  229. package/dist/index253.js.map +1 -1
  230. package/dist/index254.js +2 -6
  231. package/dist/index254.js.map +1 -1
  232. package/dist/index255.js +2 -2
  233. package/dist/index256.js +126 -2
  234. package/dist/index256.js.map +1 -1
  235. package/dist/index257.js +431 -2
  236. package/dist/index257.js.map +1 -1
  237. package/dist/index258.js +3 -2
  238. package/dist/index258.js.map +1 -1
  239. package/dist/index260.js +7 -126
  240. package/dist/index260.js.map +1 -1
  241. package/dist/index261.js +20 -429
  242. package/dist/index261.js.map +1 -1
  243. package/dist/{index259.js → index263.js} +1 -1
  244. package/dist/index263.js.map +1 -0
  245. package/dist/index264.js +2 -7
  246. package/dist/index264.js.map +1 -1
  247. package/dist/index265.js +1 -21
  248. package/dist/index265.js.map +1 -1
  249. package/dist/index266.js +5 -0
  250. package/dist/index266.js.map +1 -0
  251. package/dist/index267.js +2 -9
  252. package/dist/index267.js.map +1 -1
  253. package/dist/index268.js +2 -200
  254. package/dist/index268.js.map +1 -1
  255. package/dist/index269.js +23 -431
  256. package/dist/index269.js.map +1 -1
  257. package/dist/{index26.js → index27.js} +4 -4
  258. package/dist/{index26.js.map → index27.js.map} +1 -1
  259. package/dist/index270.js +21 -126
  260. package/dist/index270.js.map +1 -1
  261. package/dist/index272.js +224 -2
  262. package/dist/index272.js.map +1 -1
  263. package/dist/index273.js +89 -2
  264. package/dist/index273.js.map +1 -1
  265. package/dist/index274.js +200 -3
  266. package/dist/index274.js.map +1 -1
  267. package/dist/index275.js +436 -2
  268. package/dist/index275.js.map +1 -1
  269. package/dist/index276.js +127 -2
  270. package/dist/index276.js.map +1 -1
  271. package/dist/index277.js +5 -2
  272. package/dist/index277.js.map +1 -1
  273. package/dist/index278.js +2 -28
  274. package/dist/index278.js.map +1 -1
  275. package/dist/index279.js +7 -20
  276. package/dist/index279.js.map +1 -1
  277. package/dist/index280.js +72 -0
  278. package/dist/index280.js.map +1 -0
  279. package/dist/index281.js +3 -2
  280. package/dist/index281.js.map +1 -1
  281. package/dist/index282.js +12 -5
  282. package/dist/index282.js.map +1 -1
  283. package/dist/index283.js +8 -68
  284. package/dist/index283.js.map +1 -1
  285. package/dist/index284.js +17 -224
  286. package/dist/index284.js.map +1 -1
  287. package/dist/index285.js +1 -1
  288. package/dist/index286.js +1 -1
  289. package/dist/index287.js +12 -12
  290. package/dist/index287.js.map +1 -1
  291. package/dist/index288.js +18 -0
  292. package/dist/index288.js.map +1 -0
  293. package/dist/index289.js +4 -15
  294. package/dist/index289.js.map +1 -1
  295. package/dist/{index28.js → index29.js} +19 -19
  296. package/dist/index29.js.map +1 -0
  297. package/dist/index290.js +4 -4
  298. package/dist/index290.js.map +1 -1
  299. package/dist/index291.js +59 -4
  300. package/dist/index291.js.map +1 -1
  301. package/dist/index292.js +34 -58
  302. package/dist/index292.js.map +1 -1
  303. package/dist/index293.js +6 -10
  304. package/dist/index293.js.map +1 -1
  305. package/dist/index294.js +18 -34
  306. package/dist/index294.js.map +1 -1
  307. package/dist/index295.js +6 -6
  308. package/dist/index295.js.map +1 -1
  309. package/dist/index296.js +2 -19
  310. package/dist/index296.js.map +1 -1
  311. package/dist/index297.js +10 -6
  312. package/dist/index297.js.map +1 -1
  313. package/dist/index298.js +47 -2
  314. package/dist/index298.js.map +1 -1
  315. package/dist/index300.js +424 -0
  316. package/dist/index300.js.map +1 -0
  317. package/dist/index301.js +42 -416
  318. package/dist/index301.js.map +1 -1
  319. package/dist/{index30.js → index31.js} +4 -4
  320. package/dist/{index30.js.map → index31.js.map} +1 -1
  321. package/dist/{index32.js → index33.js} +41 -40
  322. package/dist/index33.js.map +1 -0
  323. package/dist/{index34.js → index35.js} +23 -22
  324. package/dist/{index34.js.map → index35.js.map} +1 -1
  325. package/dist/{index36.js → index37.js} +9 -8
  326. package/dist/index37.js.map +1 -0
  327. package/dist/{index38.js → index39.js} +4 -3
  328. package/dist/index39.js.map +1 -0
  329. package/dist/index4.js +14 -40
  330. package/dist/index4.js.map +1 -1
  331. package/dist/{index40.js → index41.js} +4 -4
  332. package/dist/{index40.js.map → index41.js.map} +1 -1
  333. package/dist/{index42.js → index43.js} +34 -33
  334. package/dist/{index42.js.map → index43.js.map} +1 -1
  335. package/dist/{index44.js → index45.js} +9 -9
  336. package/dist/index45.js.map +1 -0
  337. package/dist/{index46.js → index47.js} +3 -3
  338. package/dist/{index46.js.map → index47.js.map} +1 -1
  339. package/dist/{index48.js → index49.js} +4 -4
  340. package/dist/{index48.js.map → index49.js.map} +1 -1
  341. package/dist/index5.js +38 -76
  342. package/dist/index5.js.map +1 -1
  343. package/dist/index51.js +95 -0
  344. package/dist/index51.js.map +1 -0
  345. package/dist/{index52.js → index53.js} +3 -3
  346. package/dist/{index52.js.map → index53.js.map} +1 -1
  347. package/dist/{index54.js → index55.js} +3 -3
  348. package/dist/{index54.js.map → index55.js.map} +1 -1
  349. package/dist/{index56.js → index57.js} +2 -2
  350. package/dist/{index56.js.map → index57.js.map} +1 -1
  351. package/dist/{index58.js → index59.js} +7 -6
  352. package/dist/{index58.js.map → index59.js.map} +1 -1
  353. package/dist/index6.js +78 -62
  354. package/dist/index6.js.map +1 -1
  355. package/dist/{index60.js → index61.js} +3 -3
  356. package/dist/{index60.js.map → index61.js.map} +1 -1
  357. package/dist/{index62.js → index63.js} +3 -3
  358. package/dist/{index62.js.map → index63.js.map} +1 -1
  359. package/dist/{index64.js → index65.js} +5 -5
  360. package/dist/{index64.js.map → index65.js.map} +1 -1
  361. package/dist/{index66.js → index67.js} +3 -3
  362. package/dist/{index66.js.map → index67.js.map} +1 -1
  363. package/dist/{index68.js → index69.js} +2 -2
  364. package/dist/{index68.js.map → index69.js.map} +1 -1
  365. package/dist/index7.js +60 -18
  366. package/dist/index7.js.map +1 -1
  367. package/dist/{index70.js → index71.js} +7 -7
  368. package/dist/{index70.js.map → index71.js.map} +1 -1
  369. package/dist/{index72.js → index73.js} +3 -3
  370. package/dist/{index72.js.map → index73.js.map} +1 -1
  371. package/dist/{index74.js → index75.js} +3 -3
  372. package/dist/{index74.js.map → index75.js.map} +1 -1
  373. package/dist/index77.js +37 -120
  374. package/dist/index77.js.map +1 -1
  375. package/dist/index78.js +130 -0
  376. package/dist/index78.js.map +1 -0
  377. package/dist/index8.js +19 -7
  378. package/dist/index8.js.map +1 -1
  379. package/dist/{index79.js → index80.js} +5 -5
  380. package/dist/{index79.js.map → index80.js.map} +1 -1
  381. package/dist/{index81.js → index82.js} +7 -6
  382. package/dist/{index81.js.map → index82.js.map} +1 -1
  383. package/dist/{index83.js → index84.js} +7 -7
  384. package/dist/{index83.js.map → index84.js.map} +1 -1
  385. package/dist/{index85.js → index86.js} +3 -3
  386. package/dist/{index85.js.map → index86.js.map} +1 -1
  387. package/dist/{index87.js → index88.js} +3 -3
  388. package/dist/{index87.js.map → index88.js.map} +1 -1
  389. package/dist/index9.js +7 -78
  390. package/dist/index9.js.map +1 -1
  391. package/dist/{index89.js → index90.js} +3 -3
  392. package/dist/{index89.js.map → index90.js.map} +1 -1
  393. package/dist/{index91.js → index92.js} +3 -3
  394. package/dist/{index91.js.map → index92.js.map} +1 -1
  395. package/dist/{index93.js → index94.js} +1 -1
  396. package/dist/index94.js.map +1 -0
  397. package/dist/{index95.js → index96.js} +3 -3
  398. package/dist/{index95.js.map → index96.js.map} +1 -1
  399. package/dist/{index97.js → index98.js} +3 -3
  400. package/dist/{index97.js.map → index98.js.map} +1 -1
  401. package/dist/style.css +1 -1
  402. package/package.json +1 -1
  403. package/dist/index119.js +0 -47
  404. package/dist/index119.js.map +0 -1
  405. package/dist/index161.js.map +0 -1
  406. package/dist/index163.js +0 -6
  407. package/dist/index163.js.map +0 -1
  408. package/dist/index171.js +0 -5
  409. package/dist/index171.js.map +0 -1
  410. package/dist/index18.js.map +0 -1
  411. package/dist/index185.js.map +0 -1
  412. package/dist/index187.js +0 -6
  413. package/dist/index187.js.map +0 -1
  414. package/dist/index20.js.map +0 -1
  415. package/dist/index216.js +0 -45
  416. package/dist/index216.js.map +0 -1
  417. package/dist/index22.js.map +0 -1
  418. package/dist/index233.js +0 -6
  419. package/dist/index237.js +0 -109
  420. package/dist/index237.js.map +0 -1
  421. package/dist/index259.js.map +0 -1
  422. package/dist/index262.js +0 -6
  423. package/dist/index262.js.map +0 -1
  424. package/dist/index271.js +0 -92
  425. package/dist/index271.js.map +0 -1
  426. package/dist/index28.js.map +0 -1
  427. package/dist/index299.js +0 -50
  428. package/dist/index299.js.map +0 -1
  429. package/dist/index3.js +0 -17
  430. package/dist/index3.js.map +0 -1
  431. package/dist/index302.js +0 -50
  432. package/dist/index302.js.map +0 -1
  433. package/dist/index32.js.map +0 -1
  434. package/dist/index36.js.map +0 -1
  435. package/dist/index38.js.map +0 -1
  436. package/dist/index44.js.map +0 -1
  437. package/dist/index50.js +0 -97
  438. package/dist/index50.js.map +0 -1
  439. package/dist/index76.js +0 -47
  440. package/dist/index76.js.map +0 -1
  441. package/dist/index93.js.map +0 -1
  442. package/dist/index99.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index16.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue"],"sourcesContent":["<template>\n\t<OptionsContainer\n\t\tclass=\"bb-base-checkbox-group\"\n\t\t:direction=\"direction\"\n\t\t:has-errors=\"hasErrors\"\n\t\t:hide-label=\"hideLabel\"\n\t\t:loading=\"!!loading\"\n\t\t:loading-text=\"loadingText\"\n\t\t:no-data-text=\"noDataText\"\n\t\t:options=\"options\"\n\t>\n\t\t<template #prepend><slot name=\"prepend\"></slot></template>\n\t\t<template #loading><slot name=\"loading\"></slot></template>\n\t\t<template #no-data><slot name=\"no-data\"></slot></template>\n\t\t<template #option:prepend=\"data\"\n\t\t\t><slot name=\"option:prepend\" v-bind=\"data\"></slot\n\t\t></template>\n\t\t<template #input=\"{ option, index }\">\n\t\t\t<BaseCheckbox\n\t\t\t\t:id=\"option.valueHash\"\n\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t:autofocus=\"autofocus && !index\"\n\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t:color=\"color\"\n\t\t\t\t:disabled=\"option.disabled\"\n\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:true-value=\"option.value\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t@change=\"(event: Event) => onChange(event, option)\"\n\t\t\t\t><template #icon=\"data\"\n\t\t\t\t\t><slot\n\t\t\t\t\t\t:item=\"option.item\"\n\t\t\t\t\t\tname=\"icon\"\n\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\tv-bind=\"data\" /></template\n\t\t\t></BaseCheckbox>\n\t\t</template>\n\t\t<template #option:append=\"data\"\n\t\t\t><slot name=\"option:prepend\" v-bind=\"data\"></slot\n\t\t></template>\n\t\t<template #append><slot name=\"prepend\"></slot></template>\n\t</OptionsContainer>\n</template>\n\n<script setup lang=\"ts\" generic=\"T = any\">\nimport { ref, toRef } from 'vue';\nimport { useOptions } from '@/composables/useOptions';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { Option } from '@/types/Option';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\nimport OptionsContainer from '../OptionsContainer.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Used by v-model. Can be an array of any serializable type.\n\t */\n\tmodelValue: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nexport type BaseCheckboxGroupEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'inactive'): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: any): void;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxGroupProps<T>>(), {\n\tdepsDebounceTime: 0,\n\tdirection: 'horizontal',\n\titems: () => [],\n\tloadingText: 'Caricamento...',\n\tmodelValueDebounceTime: 0,\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<BaseCheckboxGroupEvents>();\n\ndefineSlots<{\n\tprepend?: (props: object) => any;\n\tloading?: (props: object) => any;\n\t'no-data'?: (props: object) => any;\n\t'option:prepend'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\ticon?: (\n\t\tprops: SlotAttributes & {\n\t\t\titem: T;\n\t\t\ttext: string;\n\t\t}\n\t) => any;\n\tlabel?: (props: { item: T; text: string; checked: boolean }) => any;\n\t'option:append'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\tappend?: (props: object) => any;\n}>();\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst {\n\tinnerLoading: loading,\n\toptions,\n\tselectOption,\n\tunselectOption,\n} = useOptions({\n\tdependencies: toRef(props, 'dependencies'),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(props, 'disabled'),\n\temit,\n\tenforceCoherence: props.enforceCoherence,\n\titems: toRef(props, 'items'),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmodelValue: toRef(props, 'modelValue'),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n\tprefill: true,\n\tqueryDebounceTime: 0,\n\tresetQueryOnOptionSelected: false,\n\tstash: false,\n});\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tif (!option.selected) {\n\t\tselectOption(option);\n\t} else {\n\t\tunselectOption(option);\n\t}\n};\n\nconst onFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckboxGroup';\n</style>\n"],"names":["props","__props","emit","__emit","container","ref","active","loading","options","selectOption","unselectOption","useOptions","toRef","onChange","event","option","eventListeners","onDocumentFocus","onDocumentClick","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLA,UAAMA,IAAQC,GASRC,IAAOC,GA8BPC,IAAYC,KACZC,IAASD,EAAI,EAAK,GAElB;AAAA,MACL,cAAcE;AAAA,MACd,SAAAC;AAAA,MACA,cAAAC;AAAA,MACA,gBAAAC;AAAA,QACGC,EAAW;AAAA,MACd,cAAcC,EAAMZ,GAAO,cAAc;AAAA,MACzC,kBAAkBA,EAAM;AAAA,MACxB,UAAUY,EAAMZ,GAAO,UAAU;AAAA,MACjC,MAAAE;AAAA,MACA,kBAAkBF,EAAM;AAAA,MACxB,OAAOY,EAAMZ,GAAO,OAAO;AAAA,MAC3B,UAAUA,EAAM;AAAA,MAChB,WAAWA,EAAM;AAAA,MACjB,YAAYY,EAAMZ,GAAO,YAAY;AAAA,MACrC,wBAAwBA,EAAM;AAAA,MAC9B,UAAU;AAAA,MACV,SAAS;AAAA,MACT,mBAAmB;AAAA,MACnB,4BAA4B;AAAA,MAC5B,OAAO;AAAA,IAAA,CACP,GAEKa,IAAW,CAACC,GAAcC,MAAmB;AAClD,MAAAb,EAAK,UAAUY,CAAK,GACfC,EAAO,WAGXL,EAAeK,CAAM,IAFrBN,EAAaM,CAAM;AAAA,IAGpB,GAYKC,IAAiB;AAAA,MACtB,QAAQ,CAACF,MAAsBZ,EAAK,QAAQY,CAAK;AAAA,MACjD,SAAS,CAACA,MAAsBZ,EAAK,SAASY,CAAK;AAAA,MACnD,SAZe,CAACA,MAAsB;AACtC,QAAAZ,EAAK,SAASY,CAAK,GACdR,EAAO,UACX,SAAS,iBAAiB,WAAWW,GAAiB,EAAE,SAAS,IAAM,GACvE,SAAS,iBAAiB,SAASC,GAAiB,EAAE,SAAS,IAAM,GACrEZ,EAAO,QAAQ;AAAA,MAChB;AAAA,MAOA,SAAS,CAACQ,MAAiBZ,EAAK,SAASY,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBZ,EAAK,WAAWY,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBZ,EAAK,aAAaY,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBZ,EAAK,WAAWY,CAAK;AAAA,IAAA,GAGlDG,IAAkB,CAACH,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBK,IAAAf,EAAU,UAAV,QAAAe,EAAiB,SAASL,EAAM,YACpCZ,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWW,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD,GAGKA,IAAkB,CAACJ,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBK,IAAAf,EAAU,UAAV,QAAAe,EAAiB,SAASL,EAAM,YACpCZ,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWW,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index17.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue"],"sourcesContent":["<template>\n\t<OptionsContainer\n\t\tclass=\"bb-base-checkbox-group\"\n\t\t:direction=\"direction\"\n\t\t:has-errors=\"hasErrors\"\n\t\t:hide-label=\"hideLabel\"\n\t\t:loading=\"!!loading\"\n\t\t:loading-text=\"loadingText\"\n\t\t:no-data-text=\"noDataText\"\n\t\t:options=\"options\"\n\t>\n\t\t<template #prepend><slot name=\"prepend\"></slot></template>\n\t\t<template #loading><slot name=\"loading\"></slot></template>\n\t\t<template #no-data><slot name=\"no-data\"></slot></template>\n\t\t<template #option:prepend=\"data\"\n\t\t\t><slot name=\"option:prepend\" v-bind=\"data\"></slot\n\t\t></template>\n\t\t<template #input=\"{ option, index }\">\n\t\t\t<BaseCheckbox\n\t\t\t\t:id=\"option.valueHash\"\n\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t:autofocus=\"autofocus && !index\"\n\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t:color=\"color\"\n\t\t\t\t:disabled=\"option.disabled\"\n\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:true-value=\"option.value\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t@change=\"(event: Event) => onChange(event, option)\"\n\t\t\t\t><template #icon=\"data\"\n\t\t\t\t\t><slot\n\t\t\t\t\t\t:item=\"option.item\"\n\t\t\t\t\t\tname=\"icon\"\n\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\tv-bind=\"data\" /></template\n\t\t\t></BaseCheckbox>\n\t\t</template>\n\t\t<template #option:append=\"data\"\n\t\t\t><slot name=\"option:prepend\" v-bind=\"data\"></slot\n\t\t></template>\n\t\t<template #append><slot name=\"prepend\"></slot></template>\n\t</OptionsContainer>\n</template>\n\n<script setup lang=\"ts\" generic=\"T = any\">\nimport { ref, toRef } from 'vue';\nimport { useOptions } from '@/composables/useOptions';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { Option } from '@/types/Option';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\nimport OptionsContainer from '../OptionsContainer.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Used by v-model. Can be an array of any serializable type.\n\t */\n\tmodelValue: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nexport type BaseCheckboxGroupEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'inactive'): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: any): void;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxGroupProps<T>>(), {\n\tdepsDebounceTime: 0,\n\tdirection: 'horizontal',\n\titems: () => [],\n\tloadingText: 'Caricamento...',\n\tmodelValueDebounceTime: 0,\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<BaseCheckboxGroupEvents>();\n\ndefineSlots<{\n\tprepend?: (props: object) => any;\n\tloading?: (props: object) => any;\n\t'no-data'?: (props: object) => any;\n\t'option:prepend'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\ticon?: (\n\t\tprops: SlotAttributes & {\n\t\t\titem: T;\n\t\t\ttext: string;\n\t\t}\n\t) => any;\n\tlabel?: (props: { item: T; text: string; checked: boolean }) => any;\n\t'option:append'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\tappend?: (props: object) => any;\n}>();\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst {\n\tinnerLoading: loading,\n\toptions,\n\tselectOption,\n\tunselectOption,\n} = useOptions({\n\tdependencies: toRef(props, 'dependencies'),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(props, 'disabled'),\n\temit,\n\tenforceCoherence: props.enforceCoherence,\n\titems: toRef(props, 'items'),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmodelValue: toRef(props, 'modelValue'),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n\tprefill: true,\n\tqueryDebounceTime: 0,\n\tresetQueryOnOptionSelected: false,\n\tstash: false,\n});\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tif (!option.selected) {\n\t\tselectOption(option);\n\t} else {\n\t\tunselectOption(option);\n\t}\n};\n\nconst onFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckboxGroup';\n</style>\n"],"names":["props","__props","emit","__emit","container","ref","active","loading","options","selectOption","unselectOption","useOptions","toRef","onChange","event","option","eventListeners","onDocumentFocus","onDocumentClick","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLA,UAAMA,IAAQC,GASRC,IAAOC,GA8BPC,IAAYC,KACZC,IAASD,EAAI,EAAK,GAElB;AAAA,MACL,cAAcE;AAAA,MACd,SAAAC;AAAA,MACA,cAAAC;AAAA,MACA,gBAAAC;AAAA,QACGC,EAAW;AAAA,MACd,cAAcC,EAAMZ,GAAO,cAAc;AAAA,MACzC,kBAAkBA,EAAM;AAAA,MACxB,UAAUY,EAAMZ,GAAO,UAAU;AAAA,MACjC,MAAAE;AAAA,MACA,kBAAkBF,EAAM;AAAA,MACxB,OAAOY,EAAMZ,GAAO,OAAO;AAAA,MAC3B,UAAUA,EAAM;AAAA,MAChB,WAAWA,EAAM;AAAA,MACjB,YAAYY,EAAMZ,GAAO,YAAY;AAAA,MACrC,wBAAwBA,EAAM;AAAA,MAC9B,UAAU;AAAA,MACV,SAAS;AAAA,MACT,mBAAmB;AAAA,MACnB,4BAA4B;AAAA,MAC5B,OAAO;AAAA,IAAA,CACP,GAEKa,IAAW,CAACC,GAAcC,MAAmB;AAClD,MAAAb,EAAK,UAAUY,CAAK,GACfC,EAAO,WAGXL,EAAeK,CAAM,IAFrBN,EAAaM,CAAM;AAAA,IAGpB,GAYKC,IAAiB;AAAA,MACtB,QAAQ,CAACF,MAAsBZ,EAAK,QAAQY,CAAK;AAAA,MACjD,SAAS,CAACA,MAAsBZ,EAAK,SAASY,CAAK;AAAA,MACnD,SAZe,CAACA,MAAsB;AACtC,QAAAZ,EAAK,SAASY,CAAK,GACdR,EAAO,UACX,SAAS,iBAAiB,WAAWW,GAAiB,EAAE,SAAS,IAAM,GACvE,SAAS,iBAAiB,SAASC,GAAiB,EAAE,SAAS,IAAM,GACrEZ,EAAO,QAAQ;AAAA,MAChB;AAAA,MAOA,SAAS,CAACQ,MAAiBZ,EAAK,SAASY,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBZ,EAAK,WAAWY,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBZ,EAAK,aAAaY,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBZ,EAAK,WAAWY,CAAK;AAAA,IAAA,GAGlDG,IAAkB,CAACH,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBK,IAAAf,EAAU,UAAV,QAAAe,EAAiB,SAASL,EAAM,YACpCZ,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWW,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD,GAGKA,IAAkB,CAACJ,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBK,IAAAf,EAAU,UAAV,QAAAe,EAAiB,SAASL,EAAM,YACpCZ,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWW,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import o from "./index122.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index170.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index170.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/dist/index172.js CHANGED
@@ -1,6 +1,5 @@
1
- import o from "./index77.js";
2
- /* empty css */
1
+ import f from "./index77.js";
3
2
  export {
4
- o as default
3
+ f as default
5
4
  };
6
5
  //# sourceMappingURL=index172.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index172.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index172.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index173.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index79.js";
1
+ import o from "./index78.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index174.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index81.js";
1
+ import o from "./index80.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index175.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index83.js";
1
+ import o from "./index82.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index176.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index85.js";
1
+ import o from "./index84.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index177.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index87.js";
1
+ import o from "./index86.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index178.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index89.js";
1
+ import o from "./index88.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index179.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index91.js";
1
+ import o from "./index90.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index180.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index93.js";
1
+ import o from "./index92.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index181.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index95.js";
1
+ import o from "./index94.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index182.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index97.js";
1
+ import o from "./index96.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index183.js CHANGED
@@ -1,5 +1,5 @@
1
- import o from "./index122.js";
2
- /* empty css */
1
+ import o from "./index98.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -3,4 +3,4 @@ import o from "./index123.js";
3
3
  export {
4
4
  o as default
5
5
  };
6
- //# sourceMappingURL=index185.js.map
6
+ //# sourceMappingURL=index184.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index184.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,6 @@
1
+ import o from "./index124.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index186.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index186.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/dist/index188.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index101.js";
1
+ import o from "./index100.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index189.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index103.js";
1
+ import o from "./index102.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
@@ -1,23 +1,23 @@
1
- import { defineComponent as $, ref as f, watch as N, openBlock as u, createElementBlock as _, createVNode as n, createElementVNode as l, unref as m, withCtx as i, createTextVNode as Y, toDisplayString as x, createBlock as h, createCommentVNode as k } from "vue";
1
+ import { defineComponent as $, ref as f, watch as x, openBlock as u, createElementBlock as _, createVNode as i, createElementVNode as l, unref as m, withCtx as n, createTextVNode as N, toDisplayString as Y, createBlock as h, createCommentVNode as k } from "vue";
2
2
  /* empty css */
3
- import p from "./index12.js";
3
+ /* empty css */
4
+ import p from "./index13.js";
4
5
  /* empty css */
5
- import s from "./index206.js";
6
- import z from "./index209.js";
7
- import U from "./index210.js";
8
- import W from "./index208.js";
9
- import E from "./index224.js";
10
- import T from "./index225.js";
11
- import { hash as g } from "./index226.js";
12
- import { last as j } from "./index212.js";
13
- import { useLogger as H } from "./index221.js";
14
- import P from "./index227.js";
15
- /* empty css */
16
- import Z from "./index229.js";
17
- import q from "./index230.js";
18
- import w from "./index231.js";
19
- import F from "./index232.js";
20
- const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__body" }, J = { class: "bb-base-date-picker__controls" }, K = /* @__PURE__ */ l("span", null, "Seleziona un mese", -1), Q = /* @__PURE__ */ l("svg", {
6
+ import r from "./index205.js";
7
+ import z from "./index208.js";
8
+ import U from "./index209.js";
9
+ import W from "./index207.js";
10
+ import E from "./index220.js";
11
+ import T from "./index221.js";
12
+ import { hash as g } from "./index222.js";
13
+ import { last as j } from "./index211.js";
14
+ import { useLogger as H } from "./index203.js";
15
+ import P from "./index223.js";
16
+ import Z from "./index224.js";
17
+ import q from "./index225.js";
18
+ import w from "./index226.js";
19
+ import F from "./index227.js";
20
+ const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__body" }, J = { class: "bb-base-date-picker__controls" }, K = /* @__PURE__ */ l("span", { class: "sr-only" }, "Seleziona un mese", -1), Q = /* @__PURE__ */ l("svg", {
21
21
  fill: "none",
22
22
  height: "6",
23
23
  viewBox: "0 0 10 6",
@@ -28,24 +28,26 @@ const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__b
28
28
  d: "M5.24124 5.81871L9.52771 1.39839C9.79517 1.12257 9.63305 0.595276 9.28077 0.595276H0.707839C0.355562 0.595276 0.193433 1.12257 0.460901 1.39839L4.74736 5.81871C4.88946 5.96524 5.09914 5.96524 5.24124 5.81871Z",
29
29
  fill: "currentColor"
30
30
  })
31
- ], -1), R = /* @__PURE__ */ l("span", null, "Seleziona anno", -1), X = /* @__PURE__ */ l("svg", {
31
+ ], -1), R = /* @__PURE__ */ l("span", { class: "sr-only" }, "Seleziona anno", -1), X = /* @__PURE__ */ l("svg", {
32
32
  viewBox: "0 0 24 24",
33
+ width: "24px",
33
34
  xmlns: "http://www.w3.org/2000/svg"
34
35
  }, [
35
36
  /* @__PURE__ */ l("path", {
36
37
  d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
37
38
  fill: "currentColor"
38
39
  })
39
- ], -1), ee = /* @__PURE__ */ l("span", null, "Vai indietro di un mese", -1), te = {
40
+ ], -1), ee = /* @__PURE__ */ l("span", { class: "sr-only" }, "Vai indietro di un mese", -1), ae = {
40
41
  style: { transform: "rotate(180deg)" },
41
42
  viewBox: "0 0 24 24",
43
+ width: "24px",
42
44
  xmlns: "http://www.w3.org/2000/svg"
43
- }, ae = /* @__PURE__ */ l("path", {
45
+ }, te = /* @__PURE__ */ l("path", {
44
46
  d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
45
47
  fill: "currentColor"
46
48
  }, null, -1), oe = [
47
- ae
48
- ], le = /* @__PURE__ */ l("span", null, "Vai avanti di un mese", -1), re = { class: "bb-base-date-picker__content" }, Me = /* @__PURE__ */ $({
49
+ te
50
+ ], le = /* @__PURE__ */ l("span", { class: "sr-only" }, "Vai avanti di un mese", -1), se = { class: "bb-base-date-picker__content" }, Me = /* @__PURE__ */ $({
49
51
  __name: "BaseDatePicker",
50
52
  props: {
51
53
  disabled: { type: Boolean },
@@ -61,107 +63,107 @@ const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__b
61
63
  },
62
64
  emits: ["update:modelValue"],
63
65
  setup(V, { expose: C, emit: B }) {
64
- s.extend(T), s.extend(E), s.extend(z), s.extend(U), s.locale(W);
65
- const M = B, a = V;
66
- s.updateLocale("it", {
67
- weekStart: a.firstDayOfWeek
66
+ r.extend(T), r.extend(E), r.extend(z), r.extend(U), r.locale(W);
67
+ const M = B, t = V;
68
+ r.updateLocale("it", {
69
+ weekStart: t.firstDayOfWeek
68
70
  });
69
71
  const b = H();
70
- a.multiple && a.range && b.throw("Date picker cannot be both multiple and range."), (a.multiple || a.range) && (Array.isArray(a.modelValue) || b.throw(
72
+ t.multiple && t.range && b.throw("Date picker cannot be both multiple and range."), (t.multiple || t.range) && (Array.isArray(t.modelValue) || b.throw(
71
73
  "Date picker is set to select multiple dates but modelValue is not an array."
72
74
  ));
73
- const t = f(s()), v = (e) => {
75
+ const a = f(r()), v = (e) => {
74
76
  if (e)
75
77
  if (Array.isArray(e)) {
76
78
  if (e.length) {
77
- if (e.map((d) => s(d).valueOf()).includes(t.value.valueOf()))
79
+ if (e.map((d) => r(d).valueOf()).includes(a.value.valueOf()))
78
80
  return;
79
- t.value = s(j(e)).startOf("day");
81
+ a.value = r(j(e)).startOf("day");
80
82
  return;
81
83
  }
82
84
  } else
83
- t.value = s(e).startOf("day");
85
+ a.value = r(e).startOf("day");
84
86
  else
85
- t.value = s().startOf("day");
87
+ a.value = r().startOf("day");
86
88
  };
87
- v(a.modelValue);
89
+ v(t.modelValue);
88
90
  const o = f("day"), y = (e) => {
89
91
  o.value === e ? o.value = "day" : o.value = e;
90
92
  }, O = (e) => {
91
- t.value = t.value.set("month", e);
93
+ a.value = a.value.set("month", e);
92
94
  }, S = () => {
93
- t.value = t.value.add(1, "month");
95
+ a.value = a.value.add(1, "month");
94
96
  }, A = () => {
95
- t.value = t.value.subtract(1, "month");
97
+ a.value = a.value.subtract(1, "month");
96
98
  }, D = (e) => {
97
- t.value = t.value.set("year", e);
98
- }, c = f(a.modelValue), L = (e) => {
99
+ a.value = a.value.set("year", e);
100
+ }, c = f(t.modelValue), L = (e) => {
99
101
  c.value = e, M("update:modelValue", e);
100
102
  };
101
- return N(
102
- () => a.modelValue,
103
+ return x(
104
+ () => t.modelValue,
103
105
  () => {
104
- g(a.modelValue) !== g(c.value) && (c.value = a.modelValue, v(a.modelValue));
106
+ g(t.modelValue) !== g(c.value) && (c.value = t.modelValue, v(t.modelValue));
105
107
  }
106
108
  ), C({
107
109
  resetStatus: () => {
108
110
  o.value = "day";
109
111
  }
110
- }), (e, r) => (u(), _("div", G, [
111
- n(Z, {
112
- cursor: t.value,
112
+ }), (e, s) => (u(), _("div", G, [
113
+ i(Z, {
114
+ cursor: a.value,
113
115
  disabled: !!e.disabled,
114
116
  hidden: !e.header
115
117
  }, null, 8, ["cursor", "disabled", "hidden"]),
116
118
  l("div", I, [
117
119
  l("div", J, [
118
- n(m(p), {
119
- class: "bb-base-date-picker__left-control bb-base-date-picker__month-control",
120
- onClick: r[0] || (r[0] = (d) => y("month"))
120
+ i(m(p), {
121
+ class: "bb-base-date-picker__control bb-base-date-picker__month-control",
122
+ onClick: s[0] || (s[0] = (d) => y("month"))
121
123
  }, {
122
- default: i(() => [
123
- Y(x(t.value.format("MMMM YYYY")) + " ", 1),
124
+ default: n(() => [
125
+ N(Y(a.value.format("MMMM YYYY")) + " ", 1),
124
126
  K
125
127
  ]),
126
128
  _: 1
127
129
  }),
128
- n(m(p), {
129
- class: "bb-base-date-picker__left-control bb-base-date-picker__year-control",
130
- onClick: r[1] || (r[1] = (d) => y("year"))
130
+ i(m(p), {
131
+ class: "bb-base-date-picker__control bb-base-date-picker__year-control",
132
+ onClick: s[1] || (s[1] = (d) => y("year"))
131
133
  }, {
132
- default: i(() => [
134
+ default: n(() => [
133
135
  Q,
134
136
  R
135
137
  ]),
136
138
  _: 1
137
139
  }),
138
- n(m(p), {
139
- class: "bb-base-date-picker__previous-month-button",
140
+ i(m(p), {
141
+ class: "bb-base-date-picker__control",
140
142
  disabled: e.disabled || o.value !== "day",
141
143
  onClick: A
142
144
  }, {
143
- default: i(() => [
145
+ default: n(() => [
144
146
  X,
145
147
  ee
146
148
  ]),
147
149
  _: 1
148
150
  }, 8, ["disabled"]),
149
- n(m(p), {
150
- class: "bb-base-date-picker__next-month-button",
151
+ i(m(p), {
152
+ class: "bb-base-date-picker__control",
151
153
  disabled: e.disabled || o.value !== "day",
152
154
  onClick: S
153
155
  }, {
154
- default: i(() => [
155
- (u(), _("svg", te, oe)),
156
+ default: n(() => [
157
+ (u(), _("svg", ae, oe)),
156
158
  le
157
159
  ]),
158
160
  _: 1
159
161
  }, 8, ["disabled"])
160
162
  ]),
161
- l("div", re, [
162
- n(P, {
163
+ l("div", se, [
164
+ i(P, {
163
165
  current: o.value === "day",
164
- cursor: t.value,
166
+ cursor: a.value,
165
167
  disabled: !!e.disabled,
166
168
  "first-day-of-week": e.firstDayOfWeek,
167
169
  inert: o.value !== "day",
@@ -172,37 +174,37 @@ const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__b
172
174
  range: e.range,
173
175
  readonly: e.readonly,
174
176
  selectable: e.selectable,
175
- "onUpdate:cursor": r[2] || (r[2] = (d) => t.value = d),
177
+ "onUpdate:cursor": s[2] || (s[2] = (d) => a.value = d),
176
178
  "onUpdate:modelValue": L
177
179
  }, null, 8, ["current", "cursor", "disabled", "first-day-of-week", "inert", "max", "min", "model-value", "multiple", "range", "readonly", "selectable"]),
178
- n(w, {
180
+ i(w, {
179
181
  direction: "right",
180
182
  duration: 500,
181
183
  gap: 30
182
184
  }, {
183
- default: i(() => [
185
+ default: n(() => [
184
186
  o.value === "month" ? (u(), h(q, {
185
187
  key: 0,
186
- cursor: t.value,
188
+ cursor: a.value,
187
189
  disabled: !!e.disabled,
188
- "onUpdate:month": r[3] || (r[3] = (d) => {
190
+ "onUpdate:month": s[3] || (s[3] = (d) => {
189
191
  O(d), o.value = "day";
190
192
  })
191
193
  }, null, 8, ["cursor", "disabled"])) : k("", !0)
192
194
  ]),
193
195
  _: 1
194
196
  }),
195
- n(w, {
197
+ i(w, {
196
198
  direction: "top",
197
199
  duration: 500,
198
200
  gap: 30
199
201
  }, {
200
- default: i(() => [
202
+ default: n(() => [
201
203
  o.value === "year" ? (u(), h(F, {
202
204
  key: 0,
203
- cursor: t.value,
205
+ cursor: a.value,
204
206
  disabled: !!e.disabled,
205
- "onUpdate:year": r[4] || (r[4] = (d) => {
207
+ "onUpdate:year": s[4] || (s[4] = (d) => {
206
208
  D(d), o.value = "day";
207
209
  })
208
210
  }, null, 8, ["cursor", "disabled"])) : k("", !0)
@@ -217,4 +219,4 @@ const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__b
217
219
  export {
218
220
  Me as default
219
221
  };
220
- //# sourceMappingURL=index18.js.map
222
+ //# sourceMappingURL=index19.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index19.js","sources":["../src/components/BaseDatePicker/BaseDatePicker.vue"],"sourcesContent":["<template>\n\t<div class=\"bb-base-date-picker\">\n\t\t<Header :cursor=\"cursor\" :disabled=\"!!disabled\" :hidden=\"!header\" />\n\t\t<div class=\"bb-base-date-picker__body\">\n\t\t\t<div class=\"bb-base-date-picker__controls\">\n\t\t\t\t<BaseButton\n\t\t\t\t\tclass=\"bb-base-date-picker__control bb-base-date-picker__month-control\"\n\t\t\t\t\t@click=\"toggleMode('month')\"\n\t\t\t\t>\n\t\t\t\t\t{{ cursor.format('MMMM YYYY') }}\n\t\t\t\t\t<span class=\"sr-only\">Seleziona un mese</span>\n\t\t\t\t</BaseButton>\n\t\t\t\t<BaseButton\n\t\t\t\t\tclass=\"bb-base-date-picker__control bb-base-date-picker__year-control\"\n\t\t\t\t\t@click=\"toggleMode('year')\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\theight=\"6\"\n\t\t\t\t\t\tviewBox=\"0 0 10 6\"\n\t\t\t\t\t\twidth=\"10\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M5.24124 5.81871L9.52771 1.39839C9.79517 1.12257 9.63305 0.595276 9.28077 0.595276H0.707839C0.355562 0.595276 0.193433 1.12257 0.460901 1.39839L4.74736 5.81871C4.88946 5.96524 5.09914 5.96524 5.24124 5.81871Z\"\n\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<span class=\"sr-only\">Seleziona anno</span>\n\t\t\t\t</BaseButton>\n\t\t\t\t<BaseButton\n\t\t\t\t\tclass=\"bb-base-date-picker__control\"\n\t\t\t\t\t:disabled=\"disabled || mode !== 'day'\"\n\t\t\t\t\t@click=\"decreaseMonth\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\twidth=\"24px\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z\"\n\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<span class=\"sr-only\">Vai indietro di un mese</span>\n\t\t\t\t</BaseButton>\n\t\t\t\t<BaseButton\n\t\t\t\t\tclass=\"bb-base-date-picker__control\"\n\t\t\t\t\t:disabled=\"disabled || mode !== 'day'\"\n\t\t\t\t\t@click=\"increaseMonth\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tstyle=\"transform: rotate(180deg)\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\twidth=\"24px\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z\"\n\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<span class=\"sr-only\">Vai avanti di un mese</span>\n\t\t\t\t</BaseButton>\n\t\t\t</div>\n\t\t\t<div class=\"bb-base-date-picker__content\">\n\t\t\t\t<DaySelector\n\t\t\t\t\t:current=\"mode === 'day'\"\n\t\t\t\t\t:cursor=\"cursor\"\n\t\t\t\t\t:disabled=\"!!disabled\"\n\t\t\t\t\t:first-day-of-week=\"firstDayOfWeek!\"\n\t\t\t\t\t:inert=\"mode !== 'day'\"\n\t\t\t\t\t:max=\"max\"\n\t\t\t\t\t:min=\"min\"\n\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t:multiple=\"multiple\"\n\t\t\t\t\t:range=\"range\"\n\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t:selectable=\"selectable\"\n\t\t\t\t\t@update:cursor=\"(value) => (cursor = value)\"\n\t\t\t\t\t@update:model-value=\"updateModelValue\"\n\t\t\t\t/>\n\t\t\t\t<SlideTransition direction=\"right\" :duration=\"500\" :gap=\"30\">\n\t\t\t\t\t<MonthSelector\n\t\t\t\t\t\tv-if=\"mode === 'month'\"\n\t\t\t\t\t\t:cursor=\"cursor\"\n\t\t\t\t\t\t:disabled=\"!!disabled\"\n\t\t\t\t\t\t@update:month=\"\n\t\t\t\t\t\t\t(month) => {\n\t\t\t\t\t\t\t\tupdateMonth(month);\n\t\t\t\t\t\t\t\tmode = 'day';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\"\n\t\t\t\t\t/>\n\t\t\t\t</SlideTransition>\n\t\t\t\t<SlideTransition direction=\"top\" :duration=\"500\" :gap=\"30\">\n\t\t\t\t\t<YearSelector\n\t\t\t\t\t\tv-if=\"mode === 'year'\"\n\t\t\t\t\t\t:cursor=\"cursor\"\n\t\t\t\t\t\t:disabled=\"!!disabled\"\n\t\t\t\t\t\t@update:year=\"\n\t\t\t\t\t\t\t(year) => {\n\t\t\t\t\t\t\t\tupdateYear(year);\n\t\t\t\t\t\t\t\tmode = 'day';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\"\n\t\t\t\t\t/>\n\t\t\t\t</SlideTransition>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { BaseButton } from '@/index';\nimport { Dayjs, default as dayjs } from 'dayjs';\nimport { default as isSameOrAfter } from 'dayjs/plugin/isSameOrAfter';\nimport { default as isSameOrBefore } from 'dayjs/plugin/isSameOrBefore';\nimport { default as it } from 'dayjs/locale/it';\nimport { default as updateLocale } from 'dayjs/plugin/updateLocale';\nimport { default as weekOfYear } from 'dayjs/plugin/weekOfYear';\nimport { hash } from '@/utilities/functions/hash';\nimport { last } from '@/utilities/functions/last';\nimport { ref } from 'vue';\nimport { useLogger } from '@/composables/useLogger';\nimport { watch } from 'vue';\nimport DaySelector from './BaseDatePickerInputDaySelector.vue';\nimport Header from './BaseDatePickerHeader.vue';\nimport MonthSelector from './BaseDatePickerMonthSelector.vue';\nimport SlideTransition from '@/components/Transitions/Slide.vue';\nimport YearSelector from './BaseDatePickerYearSelector.vue';\n\ndayjs.extend(weekOfYear);\ndayjs.extend(updateLocale);\ndayjs.extend(isSameOrAfter);\ndayjs.extend(isSameOrBefore);\ndayjs.locale(it);\n\nexport type BaseDatePickerProps = {\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Shows or hides the header of the component\n\t */\n\theader?: boolean;\n\n\t/**\n\t * Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday\n\t */\n\tfirstDayOfWeek?: (typeof it)['weekStart'];\n\n\t/**\n\t * Maximum selectable date\n\t */\n\tmax?: Date | string | number;\n\n\t/**\n\t * Minimum selectable date\n\t */\n\tmin?: Date | string | number;\n\n\t/**\n\t * Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed\n\t */\n\tmodelValue: string | string[] | null;\n\n\t/**\n\t * Allows the selection of multiple items.\n\t */\n\tmultiple?: boolean;\n\n\t/**\n\t * Selects a range of dates between two dates. It selects all of the days between start and end\n\t */\n\trange?: boolean;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: boolean;\n\n\t/**\n\t * Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected\n\t * @param date\n\t */\n\tselectable?: (date: Date) => boolean;\n};\n\nconst emit = defineEmits<{\n\t(event: 'update:modelValue', value: any): void;\n}>();\n\nconst props = withDefaults(defineProps<BaseDatePickerProps>(), {\n\tfirstDayOfWeek: 1,\n});\n\ndayjs.updateLocale('it', {\n\tweekStart: props.firstDayOfWeek,\n});\n\nconst logger = useLogger();\nif (props.multiple && props.range) {\n\tlogger.throw('Date picker cannot be both multiple and range.');\n}\nif (props.multiple || props.range) {\n\tif (!Array.isArray(props.modelValue)) {\n\t\tlogger.throw(\n\t\t\t'Date picker is set to select multiple dates but modelValue is not an array.'\n\t\t);\n\t}\n}\n\nconst cursor = ref<Dayjs>(dayjs());\nconst setCursor = (value: typeof props.modelValue) => {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length) {\n\t\t\t\tconst datesAsNumber = value.map((el) => dayjs(el).valueOf());\n\t\t\t\tif (datesAsNumber.includes(cursor.value.valueOf())) {\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tcursor.value = dayjs(last(value)).startOf('day');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tcursor.value = dayjs(value).startOf('day');\n\t\t}\n\t} else {\n\t\tcursor.value = dayjs().startOf('day');\n\t}\n};\nsetCursor(props.modelValue);\ntype Mode = 'day' | 'month' | 'year';\nconst mode = ref<Mode>('day');\nconst toggleMode = (target: Mode) => {\n\tif (mode.value === target) mode.value = 'day';\n\telse mode.value = target;\n};\n\nconst updateMonth = (monthNumber: number) => {\n\tcursor.value = cursor.value.set('month', monthNumber);\n};\n\nconst increaseMonth = () => {\n\tcursor.value = cursor.value.add(1, 'month');\n};\nconst decreaseMonth = () => {\n\tcursor.value = cursor.value.subtract(1, 'month');\n};\n\nconst updateYear = (yearNumber: number) => {\n\tcursor.value = cursor.value.set('year', yearNumber);\n};\n\nconst lastValue = ref(props.modelValue);\nconst updateModelValue = (value: any) => {\n\tlastValue.value = value;\n\temit('update:modelValue', value);\n};\n\nwatch(\n\t() => props.modelValue,\n\t() => {\n\t\tif (hash(props.modelValue) !== hash(lastValue.value)) {\n\t\t\tlastValue.value = props.modelValue;\n\t\t\tsetCursor(props.modelValue);\n\t\t}\n\t}\n);\n\nconst resetStatus = () => {\n\tmode.value = 'day';\n};\n\ndefineExpose({\n\tresetStatus,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseDatePicker';\n</style>\n"],"names":["dayjs","weekOfYear","updateLocale","isSameOrAfter","isSameOrBefore","it","emit","__emit","props","__props","logger","useLogger","cursor","ref","setCursor","value","el","last","mode","toggleMode","target","updateMonth","monthNumber","increaseMonth","decreaseMonth","updateYear","yearNumber","lastValue","updateModelValue","watch","hash","__expose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIA,IAAAA,EAAM,OAAOC,CAAU,GACvBD,EAAM,OAAOE,CAAY,GACzBF,EAAM,OAAOG,CAAa,GAC1BH,EAAM,OAAOI,CAAc,GAC3BJ,EAAM,OAAOK,CAAE;AAuDf,UAAMC,IAAOC,GAIPC,IAAQC;AAId,IAAAT,EAAM,aAAa,MAAM;AAAA,MACxB,WAAWQ,EAAM;AAAA,IAAA,CACjB;AAED,UAAME,IAASC;AACX,IAAAH,EAAM,YAAYA,EAAM,SAC3BE,EAAO,MAAM,gDAAgD,IAE1DF,EAAM,YAAYA,EAAM,WACtB,MAAM,QAAQA,EAAM,UAAU,KAC3BE,EAAA;AAAA,MACN;AAAA,IAAA;AAKG,UAAAE,IAASC,EAAWb,EAAA,CAAO,GAC3Bc,IAAY,CAACC,MAAmC;AACrD,UAAIA;AACC,YAAA,MAAM,QAAQA,CAAK;AACtB,cAAIA,EAAM,QAAQ;AAEjB,gBADsBA,EAAM,IAAI,CAACC,MAAOhB,EAAMgB,CAAE,EAAE,QAAA,CAAS,EACzC,SAASJ,EAAO,MAAM,QAAS,CAAA;AAChD;AAEA,YAAAA,EAAO,QAAQZ,EAAMiB,EAAKF,CAAK,CAAC,EAAE,QAAQ,KAAK;AAC/C;AAAA,UAEF;AAAA;AAEA,UAAAH,EAAO,QAAQZ,EAAMe,CAAK,EAAE,QAAQ,KAAK;AAAA;AAG1C,QAAAH,EAAO,QAAQZ,EAAQ,EAAA,QAAQ,KAAK;AAAA,IACrC;AAED,IAAAc,EAAUN,EAAM,UAAU;AAEpB,UAAAU,IAAOL,EAAU,KAAK,GACtBM,IAAa,CAACC,MAAiB;AACpC,MAAIF,EAAK,UAAUE,IAAQF,EAAK,QAAQ,UAC9B,QAAQE;AAAA,IAAA,GAGbC,IAAc,CAACC,MAAwB;AAC5C,MAAAV,EAAO,QAAQA,EAAO,MAAM,IAAI,SAASU,CAAW;AAAA,IAAA,GAG/CC,IAAgB,MAAM;AAC3B,MAAAX,EAAO,QAAQA,EAAO,MAAM,IAAI,GAAG,OAAO;AAAA,IAAA,GAErCY,IAAgB,MAAM;AAC3B,MAAAZ,EAAO,QAAQA,EAAO,MAAM,SAAS,GAAG,OAAO;AAAA,IAAA,GAG1Ca,IAAa,CAACC,MAAuB;AAC1C,MAAAd,EAAO,QAAQA,EAAO,MAAM,IAAI,QAAQc,CAAU;AAAA,IAAA,GAG7CC,IAAYd,EAAIL,EAAM,UAAU,GAChCoB,IAAmB,CAACb,MAAe;AACxC,MAAAY,EAAU,QAAQZ,GAClBT,EAAK,qBAAqBS,CAAK;AAAA,IAAA;AAGhC,WAAAc;AAAA,MACC,MAAMrB,EAAM;AAAA,MACZ,MAAM;AACL,QAAIsB,EAAKtB,EAAM,UAAU,MAAMsB,EAAKH,EAAU,KAAK,MAClDA,EAAU,QAAQnB,EAAM,YACxBM,EAAUN,EAAM,UAAU;AAAA,MAE5B;AAAA,IAAA,GAOYuB,EAAA;AAAA,MACZ,aALmB,MAAM;AACzB,QAAAb,EAAK,QAAQ;AAAA,MAAA;AAAA,IAIb,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index190.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index105.js";
1
+ import o from "./index104.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index191.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index107.js";
1
+ import o from "./index106.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index192.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index109.js";
1
+ import o from "./index108.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index193.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index111.js";
1
+ import o from "./index110.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index194.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index113.js";
1
+ import o from "./index112.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index195.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index115.js";
1
+ import o from "./index114.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index196.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index117.js";
1
+ import o from "./index116.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index197.js CHANGED
@@ -1,5 +1,6 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import o from "./index118.js";
2
+ /* empty css */
2
3
  export {
3
- n as clamp
4
+ o as default
4
5
  };
5
6
  //# sourceMappingURL=index197.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index197.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns\n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n\treturn Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MAC1C,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
1
+ {"version":3,"file":"index197.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}