bitboss-ui 0.2.32 → 0.2.33

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 (558) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +2 -2
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +7 -7
  3. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
  4. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
  5. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -2
  6. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +7 -7
  7. package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
  8. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +20 -13
  9. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +2 -2
  10. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -6
  11. package/dist/components/BaseTag/BaseTag.vue.d.ts +1 -1
  12. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  13. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  14. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  15. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  16. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
  17. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -7
  18. package/dist/components/BbChip/BbChip.vue.d.ts +1 -1
  19. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
  20. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  21. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
  22. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  23. package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
  24. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +1 -1
  25. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
  26. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  27. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  28. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +7 -7
  29. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  30. package/dist/components/BbRatio/BbRatio.vue.d.ts +1 -1
  31. package/dist/components/BbSelect/BbSelect.vue.d.ts +20 -13
  32. package/dist/components/BbSlider/BbSlider.vue.d.ts +2 -2
  33. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
  34. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  35. package/dist/components/BbStep/BbStep.vue.d.ts +143 -0
  36. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +6 -6
  37. package/dist/components/BbTab/BbTab.vue.d.ts +6 -6
  38. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  39. package/dist/components/BbTable/types.d.ts +1 -1
  40. package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
  41. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
  42. package/dist/components/HDAddressSelect.vue.d.ts +89 -0
  43. package/dist/composables/useConfirm.d.ts +1 -1
  44. package/dist/composables/useOptions.d.ts +1 -1
  45. package/dist/composables/useToast.d.ts +1 -1
  46. package/dist/composables/useWizard.d.ts +32 -20
  47. package/package.json +1 -1
  48. package/dist/index.js +0 -188
  49. package/dist/index.js.map +0 -1
  50. package/dist/index10.js +0 -5
  51. package/dist/index10.js.map +0 -1
  52. package/dist/index100.js +0 -5
  53. package/dist/index100.js.map +0 -1
  54. package/dist/index101.js +0 -438
  55. package/dist/index101.js.map +0 -1
  56. package/dist/index102.js +0 -5
  57. package/dist/index102.js.map +0 -1
  58. package/dist/index103.js +0 -95
  59. package/dist/index103.js.map +0 -1
  60. package/dist/index104.js +0 -5
  61. package/dist/index104.js.map +0 -1
  62. package/dist/index105.js +0 -89
  63. package/dist/index105.js.map +0 -1
  64. package/dist/index106.js +0 -5
  65. package/dist/index106.js.map +0 -1
  66. package/dist/index107.js +0 -90
  67. package/dist/index107.js.map +0 -1
  68. package/dist/index108.js +0 -5
  69. package/dist/index108.js.map +0 -1
  70. package/dist/index109.js +0 -30
  71. package/dist/index109.js.map +0 -1
  72. package/dist/index11.js +0 -132
  73. package/dist/index11.js.map +0 -1
  74. package/dist/index110.js +0 -5
  75. package/dist/index110.js.map +0 -1
  76. package/dist/index111.js +0 -152
  77. package/dist/index111.js.map +0 -1
  78. package/dist/index112.js +0 -5
  79. package/dist/index112.js.map +0 -1
  80. package/dist/index113.js +0 -123
  81. package/dist/index113.js.map +0 -1
  82. package/dist/index114.js +0 -5
  83. package/dist/index114.js.map +0 -1
  84. package/dist/index115.js +0 -47
  85. package/dist/index115.js.map +0 -1
  86. package/dist/index116.js +0 -41
  87. package/dist/index116.js.map +0 -1
  88. package/dist/index117.js +0 -47
  89. package/dist/index117.js.map +0 -1
  90. package/dist/index118.js +0 -50
  91. package/dist/index118.js.map +0 -1
  92. package/dist/index119.js +0 -46
  93. package/dist/index119.js.map +0 -1
  94. package/dist/index12.js +0 -5
  95. package/dist/index12.js.map +0 -1
  96. package/dist/index120.js +0 -5
  97. package/dist/index120.js.map +0 -1
  98. package/dist/index121.js +0 -24
  99. package/dist/index121.js.map +0 -1
  100. package/dist/index122.js +0 -5
  101. package/dist/index122.js.map +0 -1
  102. package/dist/index123.js +0 -227
  103. package/dist/index123.js.map +0 -1
  104. package/dist/index124.js +0 -5
  105. package/dist/index124.js.map +0 -1
  106. package/dist/index125.js +0 -21
  107. package/dist/index125.js.map +0 -1
  108. package/dist/index126.js +0 -15
  109. package/dist/index126.js.map +0 -1
  110. package/dist/index127.js +0 -27
  111. package/dist/index127.js.map +0 -1
  112. package/dist/index128.js +0 -8
  113. package/dist/index128.js.map +0 -1
  114. package/dist/index129.js +0 -12
  115. package/dist/index129.js.map +0 -1
  116. package/dist/index13.js +0 -152
  117. package/dist/index13.js.map +0 -1
  118. package/dist/index130.js +0 -9
  119. package/dist/index130.js.map +0 -1
  120. package/dist/index131.js +0 -73
  121. package/dist/index131.js.map +0 -1
  122. package/dist/index132.js +0 -6
  123. package/dist/index132.js.map +0 -1
  124. package/dist/index133.js +0 -6
  125. package/dist/index133.js.map +0 -1
  126. package/dist/index134.js +0 -6
  127. package/dist/index134.js.map +0 -1
  128. package/dist/index135.js +0 -6
  129. package/dist/index135.js.map +0 -1
  130. package/dist/index136.js +0 -6
  131. package/dist/index136.js.map +0 -1
  132. package/dist/index137.js +0 -6
  133. package/dist/index137.js.map +0 -1
  134. package/dist/index138.js +0 -6
  135. package/dist/index138.js.map +0 -1
  136. package/dist/index139.js +0 -6
  137. package/dist/index139.js.map +0 -1
  138. package/dist/index14.js +0 -5
  139. package/dist/index14.js.map +0 -1
  140. package/dist/index140.js +0 -6
  141. package/dist/index140.js.map +0 -1
  142. package/dist/index141.js +0 -6
  143. package/dist/index141.js.map +0 -1
  144. package/dist/index142.js +0 -6
  145. package/dist/index142.js.map +0 -1
  146. package/dist/index143.js +0 -6
  147. package/dist/index143.js.map +0 -1
  148. package/dist/index144.js +0 -6
  149. package/dist/index144.js.map +0 -1
  150. package/dist/index145.js +0 -6
  151. package/dist/index145.js.map +0 -1
  152. package/dist/index146.js +0 -6
  153. package/dist/index146.js.map +0 -1
  154. package/dist/index147.js +0 -6
  155. package/dist/index147.js.map +0 -1
  156. package/dist/index148.js +0 -6
  157. package/dist/index148.js.map +0 -1
  158. package/dist/index149.js +0 -6
  159. package/dist/index149.js.map +0 -1
  160. package/dist/index15.js +0 -458
  161. package/dist/index15.js.map +0 -1
  162. package/dist/index150.js +0 -6
  163. package/dist/index150.js.map +0 -1
  164. package/dist/index151.js +0 -6
  165. package/dist/index151.js.map +0 -1
  166. package/dist/index152.js +0 -6
  167. package/dist/index152.js.map +0 -1
  168. package/dist/index153.js +0 -6
  169. package/dist/index153.js.map +0 -1
  170. package/dist/index154.js +0 -6
  171. package/dist/index154.js.map +0 -1
  172. package/dist/index155.js +0 -6
  173. package/dist/index155.js.map +0 -1
  174. package/dist/index156.js +0 -6
  175. package/dist/index156.js.map +0 -1
  176. package/dist/index157.js +0 -6
  177. package/dist/index157.js.map +0 -1
  178. package/dist/index158.js +0 -5
  179. package/dist/index158.js.map +0 -1
  180. package/dist/index159.js +0 -6
  181. package/dist/index159.js.map +0 -1
  182. package/dist/index16.js +0 -5
  183. package/dist/index16.js.map +0 -1
  184. package/dist/index160.js +0 -5
  185. package/dist/index160.js.map +0 -1
  186. package/dist/index161.js +0 -6
  187. package/dist/index161.js.map +0 -1
  188. package/dist/index162.js +0 -6
  189. package/dist/index162.js.map +0 -1
  190. package/dist/index163.js +0 -6
  191. package/dist/index163.js.map +0 -1
  192. package/dist/index164.js +0 -6
  193. package/dist/index164.js.map +0 -1
  194. package/dist/index165.js +0 -6
  195. package/dist/index165.js.map +0 -1
  196. package/dist/index166.js +0 -6
  197. package/dist/index166.js.map +0 -1
  198. package/dist/index167.js +0 -5
  199. package/dist/index167.js.map +0 -1
  200. package/dist/index168.js +0 -6
  201. package/dist/index168.js.map +0 -1
  202. package/dist/index169.js +0 -5
  203. package/dist/index169.js.map +0 -1
  204. package/dist/index17.js +0 -212
  205. package/dist/index17.js.map +0 -1
  206. package/dist/index170.js +0 -5
  207. package/dist/index170.js.map +0 -1
  208. package/dist/index171.js +0 -6
  209. package/dist/index171.js.map +0 -1
  210. package/dist/index172.js +0 -6
  211. package/dist/index172.js.map +0 -1
  212. package/dist/index173.js +0 -6
  213. package/dist/index173.js.map +0 -1
  214. package/dist/index174.js +0 -6
  215. package/dist/index174.js.map +0 -1
  216. package/dist/index175.js +0 -6
  217. package/dist/index175.js.map +0 -1
  218. package/dist/index176.js +0 -6
  219. package/dist/index176.js.map +0 -1
  220. package/dist/index177.js +0 -6
  221. package/dist/index177.js.map +0 -1
  222. package/dist/index178.js +0 -6
  223. package/dist/index178.js.map +0 -1
  224. package/dist/index179.js +0 -6
  225. package/dist/index179.js.map +0 -1
  226. package/dist/index18.js +0 -5
  227. package/dist/index18.js.map +0 -1
  228. package/dist/index180.js +0 -6
  229. package/dist/index180.js.map +0 -1
  230. package/dist/index181.js +0 -6
  231. package/dist/index181.js.map +0 -1
  232. package/dist/index182.js +0 -6
  233. package/dist/index182.js.map +0 -1
  234. package/dist/index183.js +0 -5
  235. package/dist/index183.js.map +0 -1
  236. package/dist/index184.js +0 -6
  237. package/dist/index184.js.map +0 -1
  238. package/dist/index185.js +0 -5
  239. package/dist/index185.js.map +0 -1
  240. package/dist/index186.js +0 -6
  241. package/dist/index186.js.map +0 -1
  242. package/dist/index187.js +0 -6
  243. package/dist/index187.js.map +0 -1
  244. package/dist/index188.js +0 -6
  245. package/dist/index188.js.map +0 -1
  246. package/dist/index189.js +0 -6
  247. package/dist/index189.js.map +0 -1
  248. package/dist/index19.js +0 -240
  249. package/dist/index19.js.map +0 -1
  250. package/dist/index190.js +0 -6
  251. package/dist/index190.js.map +0 -1
  252. package/dist/index191.js +0 -6
  253. package/dist/index191.js.map +0 -1
  254. package/dist/index192.js +0 -6
  255. package/dist/index192.js.map +0 -1
  256. package/dist/index193.js +0 -6
  257. package/dist/index193.js.map +0 -1
  258. package/dist/index194.js +0 -6
  259. package/dist/index194.js.map +0 -1
  260. package/dist/index195.js +0 -6
  261. package/dist/index195.js.map +0 -1
  262. package/dist/index196.js +0 -5
  263. package/dist/index196.js.map +0 -1
  264. package/dist/index197.js +0 -5
  265. package/dist/index197.js.map +0 -1
  266. package/dist/index198.js +0 -7
  267. package/dist/index198.js.map +0 -1
  268. package/dist/index199.js +0 -298
  269. package/dist/index199.js.map +0 -1
  270. package/dist/index2.js +0 -43
  271. package/dist/index2.js.map +0 -1
  272. package/dist/index20.js +0 -5
  273. package/dist/index20.js.map +0 -1
  274. package/dist/index200.js +0 -19
  275. package/dist/index200.js.map +0 -1
  276. package/dist/index201.js +0 -19
  277. package/dist/index201.js.map +0 -1
  278. package/dist/index202.js +0 -22
  279. package/dist/index202.js.map +0 -1
  280. package/dist/index203.js +0 -23
  281. package/dist/index203.js.map +0 -1
  282. package/dist/index204.js +0 -32
  283. package/dist/index204.js.map +0 -1
  284. package/dist/index205.js +0 -11
  285. package/dist/index205.js.map +0 -1
  286. package/dist/index206.js +0 -5
  287. package/dist/index206.js.map +0 -1
  288. package/dist/index207.js +0 -238
  289. package/dist/index207.js.map +0 -1
  290. package/dist/index208.js +0 -6
  291. package/dist/index208.js.map +0 -1
  292. package/dist/index209.js +0 -38
  293. package/dist/index209.js.map +0 -1
  294. package/dist/index21.js +0 -116
  295. package/dist/index21.js.map +0 -1
  296. package/dist/index210.js +0 -9
  297. package/dist/index210.js.map +0 -1
  298. package/dist/index211.js +0 -13
  299. package/dist/index211.js.map +0 -1
  300. package/dist/index212.js +0 -381
  301. package/dist/index212.js.map +0 -1
  302. package/dist/index213.js +0 -137
  303. package/dist/index213.js.map +0 -1
  304. package/dist/index214.js +0 -5
  305. package/dist/index214.js.map +0 -1
  306. package/dist/index215.js +0 -177
  307. package/dist/index215.js.map +0 -1
  308. package/dist/index216.js +0 -26
  309. package/dist/index216.js.map +0 -1
  310. package/dist/index217.js +0 -376
  311. package/dist/index217.js.map +0 -1
  312. package/dist/index218.js +0 -6
  313. package/dist/index218.js.map +0 -1
  314. package/dist/index219.js +0 -6
  315. package/dist/index219.js.map +0 -1
  316. package/dist/index22.js +0 -5
  317. package/dist/index22.js.map +0 -1
  318. package/dist/index220.js +0 -5
  319. package/dist/index220.js.map +0 -1
  320. package/dist/index221.js +0 -31
  321. package/dist/index221.js.map +0 -1
  322. package/dist/index222.js +0 -20
  323. package/dist/index222.js.map +0 -1
  324. package/dist/index223.js +0 -5
  325. package/dist/index223.js.map +0 -1
  326. package/dist/index224.js +0 -12
  327. package/dist/index224.js.map +0 -1
  328. package/dist/index225.js +0 -124
  329. package/dist/index225.js.map +0 -1
  330. package/dist/index226.js +0 -82
  331. package/dist/index226.js.map +0 -1
  332. package/dist/index227.js +0 -7
  333. package/dist/index227.js.map +0 -1
  334. package/dist/index228.js +0 -5
  335. package/dist/index228.js.map +0 -1
  336. package/dist/index229.js +0 -9
  337. package/dist/index229.js.map +0 -1
  338. package/dist/index23.js +0 -116
  339. package/dist/index23.js.map +0 -1
  340. package/dist/index230.js +0 -5
  341. package/dist/index230.js.map +0 -1
  342. package/dist/index231.js +0 -5
  343. package/dist/index231.js.map +0 -1
  344. package/dist/index232.js +0 -5
  345. package/dist/index232.js.map +0 -1
  346. package/dist/index233.js +0 -5
  347. package/dist/index233.js.map +0 -1
  348. package/dist/index234.js +0 -5
  349. package/dist/index234.js.map +0 -1
  350. package/dist/index235.js +0 -5
  351. package/dist/index235.js.map +0 -1
  352. package/dist/index236.js +0 -438
  353. package/dist/index236.js.map +0 -1
  354. package/dist/index237.js +0 -92
  355. package/dist/index237.js.map +0 -1
  356. package/dist/index238.js +0 -203
  357. package/dist/index238.js.map +0 -1
  358. package/dist/index239.js +0 -227
  359. package/dist/index239.js.map +0 -1
  360. package/dist/index24.js +0 -5
  361. package/dist/index24.js.map +0 -1
  362. package/dist/index240.js +0 -261
  363. package/dist/index240.js.map +0 -1
  364. package/dist/index241.js +0 -5
  365. package/dist/index241.js.map +0 -1
  366. package/dist/index242.js +0 -120
  367. package/dist/index242.js.map +0 -1
  368. package/dist/index243.js +0 -109
  369. package/dist/index243.js.map +0 -1
  370. package/dist/index244.js +0 -163
  371. package/dist/index244.js.map +0 -1
  372. package/dist/index245.js +0 -5
  373. package/dist/index245.js.map +0 -1
  374. package/dist/index246.js +0 -72
  375. package/dist/index246.js.map +0 -1
  376. package/dist/index247.js +0 -8
  377. package/dist/index247.js.map +0 -1
  378. package/dist/index248.js +0 -5
  379. package/dist/index248.js.map +0 -1
  380. package/dist/index249.js +0 -41
  381. package/dist/index249.js.map +0 -1
  382. package/dist/index25.js +0 -93
  383. package/dist/index25.js.map +0 -1
  384. package/dist/index250.js +0 -5
  385. package/dist/index250.js.map +0 -1
  386. package/dist/index251.js +0 -5
  387. package/dist/index251.js.map +0 -1
  388. package/dist/index252.js +0 -18
  389. package/dist/index252.js.map +0 -1
  390. package/dist/index253.js +0 -6
  391. package/dist/index253.js.map +0 -1
  392. package/dist/index254.js +0 -5
  393. package/dist/index254.js.map +0 -1
  394. package/dist/index255.js +0 -5
  395. package/dist/index255.js.map +0 -1
  396. package/dist/index26.js +0 -5
  397. package/dist/index26.js.map +0 -1
  398. package/dist/index27.js +0 -150
  399. package/dist/index27.js.map +0 -1
  400. package/dist/index28.js +0 -5
  401. package/dist/index28.js.map +0 -1
  402. package/dist/index29.js +0 -125
  403. package/dist/index29.js.map +0 -1
  404. package/dist/index3.js +0 -81
  405. package/dist/index3.js.map +0 -1
  406. package/dist/index30.js +0 -5
  407. package/dist/index30.js.map +0 -1
  408. package/dist/index31.js +0 -692
  409. package/dist/index31.js.map +0 -1
  410. package/dist/index32.js +0 -5
  411. package/dist/index32.js.map +0 -1
  412. package/dist/index33.js +0 -146
  413. package/dist/index33.js.map +0 -1
  414. package/dist/index34.js +0 -5
  415. package/dist/index34.js.map +0 -1
  416. package/dist/index35.js +0 -119
  417. package/dist/index35.js.map +0 -1
  418. package/dist/index36.js +0 -5
  419. package/dist/index36.js.map +0 -1
  420. package/dist/index37.js +0 -155
  421. package/dist/index37.js.map +0 -1
  422. package/dist/index38.js +0 -5
  423. package/dist/index38.js.map +0 -1
  424. package/dist/index39.js +0 -84
  425. package/dist/index39.js.map +0 -1
  426. package/dist/index4.js +0 -65
  427. package/dist/index4.js.map +0 -1
  428. package/dist/index40.js +0 -5
  429. package/dist/index40.js.map +0 -1
  430. package/dist/index41.js +0 -62
  431. package/dist/index41.js.map +0 -1
  432. package/dist/index42.js +0 -5
  433. package/dist/index42.js.map +0 -1
  434. package/dist/index43.js +0 -66
  435. package/dist/index43.js.map +0 -1
  436. package/dist/index44.js +0 -5
  437. package/dist/index44.js.map +0 -1
  438. package/dist/index45.js +0 -97
  439. package/dist/index45.js.map +0 -1
  440. package/dist/index46.js +0 -5
  441. package/dist/index46.js.map +0 -1
  442. package/dist/index47.js +0 -62
  443. package/dist/index47.js.map +0 -1
  444. package/dist/index48.js +0 -5
  445. package/dist/index48.js.map +0 -1
  446. package/dist/index49.js +0 -50
  447. package/dist/index49.js.map +0 -1
  448. package/dist/index5.js +0 -43
  449. package/dist/index5.js.map +0 -1
  450. package/dist/index50.js +0 -5
  451. package/dist/index50.js.map +0 -1
  452. package/dist/index51.js +0 -63
  453. package/dist/index51.js.map +0 -1
  454. package/dist/index52.js +0 -5
  455. package/dist/index52.js.map +0 -1
  456. package/dist/index53.js +0 -46
  457. package/dist/index53.js.map +0 -1
  458. package/dist/index54.js +0 -5
  459. package/dist/index54.js.map +0 -1
  460. package/dist/index55.js +0 -90
  461. package/dist/index55.js.map +0 -1
  462. package/dist/index56.js +0 -5
  463. package/dist/index56.js.map +0 -1
  464. package/dist/index57.js +0 -121
  465. package/dist/index57.js.map +0 -1
  466. package/dist/index58.js +0 -5
  467. package/dist/index58.js.map +0 -1
  468. package/dist/index59.js +0 -86
  469. package/dist/index59.js.map +0 -1
  470. package/dist/index6.js +0 -177
  471. package/dist/index6.js.map +0 -1
  472. package/dist/index60.js +0 -5
  473. package/dist/index60.js.map +0 -1
  474. package/dist/index61.js +0 -89
  475. package/dist/index61.js.map +0 -1
  476. package/dist/index62.js +0 -5
  477. package/dist/index62.js.map +0 -1
  478. package/dist/index63.js +0 -60
  479. package/dist/index63.js.map +0 -1
  480. package/dist/index64.js +0 -5
  481. package/dist/index64.js.map +0 -1
  482. package/dist/index65.js +0 -314
  483. package/dist/index65.js.map +0 -1
  484. package/dist/index66.js +0 -5
  485. package/dist/index66.js.map +0 -1
  486. package/dist/index67.js +0 -130
  487. package/dist/index67.js.map +0 -1
  488. package/dist/index68.js +0 -5
  489. package/dist/index68.js.map +0 -1
  490. package/dist/index69.js +0 -226
  491. package/dist/index69.js.map +0 -1
  492. package/dist/index7.js +0 -22
  493. package/dist/index7.js.map +0 -1
  494. package/dist/index70.js +0 -5
  495. package/dist/index70.js.map +0 -1
  496. package/dist/index71.js +0 -25
  497. package/dist/index71.js.map +0 -1
  498. package/dist/index72.js +0 -47
  499. package/dist/index72.js.map +0 -1
  500. package/dist/index73.js +0 -96
  501. package/dist/index73.js.map +0 -1
  502. package/dist/index74.js +0 -5
  503. package/dist/index74.js.map +0 -1
  504. package/dist/index75.js +0 -228
  505. package/dist/index75.js.map +0 -1
  506. package/dist/index76.js +0 -5
  507. package/dist/index76.js.map +0 -1
  508. package/dist/index77.js +0 -142
  509. package/dist/index77.js.map +0 -1
  510. package/dist/index78.js +0 -5
  511. package/dist/index78.js.map +0 -1
  512. package/dist/index79.js +0 -214
  513. package/dist/index79.js.map +0 -1
  514. package/dist/index8.js +0 -197
  515. package/dist/index8.js.map +0 -1
  516. package/dist/index80.js +0 -5
  517. package/dist/index80.js.map +0 -1
  518. package/dist/index81.js +0 -36
  519. package/dist/index81.js.map +0 -1
  520. package/dist/index82.js +0 -5
  521. package/dist/index82.js.map +0 -1
  522. package/dist/index83.js +0 -84
  523. package/dist/index83.js.map +0 -1
  524. package/dist/index84.js +0 -5
  525. package/dist/index84.js.map +0 -1
  526. package/dist/index85.js +0 -121
  527. package/dist/index85.js.map +0 -1
  528. package/dist/index86.js +0 -5
  529. package/dist/index86.js.map +0 -1
  530. package/dist/index87.js +0 -84
  531. package/dist/index87.js.map +0 -1
  532. package/dist/index88.js +0 -5
  533. package/dist/index88.js.map +0 -1
  534. package/dist/index89.js +0 -31
  535. package/dist/index89.js.map +0 -1
  536. package/dist/index9.js +0 -66
  537. package/dist/index9.js.map +0 -1
  538. package/dist/index90.js +0 -5
  539. package/dist/index90.js.map +0 -1
  540. package/dist/index91.js +0 -158
  541. package/dist/index91.js.map +0 -1
  542. package/dist/index92.js +0 -5
  543. package/dist/index92.js.map +0 -1
  544. package/dist/index93.js +0 -87
  545. package/dist/index93.js.map +0 -1
  546. package/dist/index94.js +0 -5
  547. package/dist/index94.js.map +0 -1
  548. package/dist/index95.js +0 -90
  549. package/dist/index95.js.map +0 -1
  550. package/dist/index96.js +0 -5
  551. package/dist/index96.js.map +0 -1
  552. package/dist/index97.js +0 -120
  553. package/dist/index97.js.map +0 -1
  554. package/dist/index98.js +0 -5
  555. package/dist/index98.js.map +0 -1
  556. package/dist/index99.js +0 -209
  557. package/dist/index99.js.map +0 -1
  558. package/dist/style.css +0 -1
package/dist/index31.js DELETED
@@ -1,692 +0,0 @@
1
- import { defineComponent as Ne, ref as f, computed as g, onMounted as $e, onBeforeUnmount as De, watch as X, openBlock as b, createElementBlock as y, normalizeClass as x, renderSlot as h, createElementVNode as w, Fragment as D, renderList as j, toDisplayString as L, createBlock as se, withModifiers as B, withCtx as Le, createTextVNode as ee, createCommentVNode as oe, withDirectives as Fe, vModelDynamic as Ae, Teleport as Me, normalizeStyle as Je, createVNode as qe, mergeProps as ze, nextTick as ie } from "vue";
2
- import Pe from "./index115.js";
3
- import "./index158.js";
4
- import He from "./index119.js";
5
- import "./index185.js";
6
- import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./index212.js";
7
- import { deepEqual as re } from "./index123.js";
8
- import { head as le } from "./index220.js";
9
- import { isNotNil as I } from "./index124.js";
10
- import { last as Re } from "./index206.js";
11
- import { useItemText as Ke } from "./index125.js";
12
- import { useItemValue as Ye } from "./index126.js";
13
- import { wait as q } from "./index122.js";
14
- import { waitFor as Ze } from "./index210.js";
15
- import { when as Ge } from "./index198.js";
16
- import { offset as Xe } from "./index217.js";
17
- const el = { class: "bb-base-select__input-container" }, ll = ["id", "autocomplete", "autofocus", "disabled", "placeholder", "readonly"], tl = {
18
- key: 0,
19
- class: "bb-base-select__loading-container"
20
- }, al = {
21
- key: 1,
22
- class: "bb-base-select__no-data-container"
23
- }, nl = ["id", "aria-selected"], ul = { class: "bb-base-select-option__content" }, sl = { class: "bb-base-select-option__text" }, ol = { class: "bb-base-select__chevron" }, il = /* @__PURE__ */ w("svg", {
24
- fill: "none",
25
- viewBox: "0 0 16 8",
26
- xmlns: "http://www.w3.org/2000/svg"
27
- }, [
28
- /* @__PURE__ */ w("path", {
29
- "clip-rule": "evenodd",
30
- d: "M0.851779 0.225802C0.90403 0.173418 0.966103 0.131858 1.03444 0.1035C1.10278 0.0751431 1.17604 0.0605469 1.25003 0.0605469C1.32402 0.0605469 1.39728 0.0751431 1.46562 0.1035C1.53396 0.131858 1.59603 0.173418 1.64828 0.225802L8.00003 6.57868L14.3518 0.225802C14.4041 0.173503 14.4662 0.132017 14.5345 0.103713C14.6028 0.0754093 14.6761 0.0608414 14.75 0.0608414C14.824 0.0608414 14.8972 0.0754093 14.9656 0.103713C15.0339 0.132017 15.096 0.173503 15.1483 0.225802C15.2006 0.278101 15.2421 0.340189 15.2704 0.408521C15.2987 0.476852 15.3132 0.55009 15.3132 0.624052C15.3132 0.698014 15.2987 0.771252 15.2704 0.839584C15.2421 0.907916 15.2006 0.970003 15.1483 1.0223L8.39828 7.7723C8.34603 7.82469 8.28395 7.86625 8.21562 7.8946C8.14728 7.92296 8.07402 7.93756 8.00003 7.93756C7.92604 7.93756 7.85278 7.92296 7.78444 7.8946C7.7161 7.86625 7.65403 7.82469 7.60178 7.7723L0.851779 1.0223C0.799395 0.970051 0.757835 0.907978 0.729477 0.83964C0.70112 0.771302 0.686523 0.69804 0.686523 0.624052C0.686523 0.550064 0.70112 0.476803 0.729477 0.408464C0.757835 0.340126 0.799395 0.278053 0.851779 0.225802Z",
31
- fill: "currentColor",
32
- "fill-rule": "evenodd"
33
- })
34
- ], -1), Ol = /* @__PURE__ */ Ne({
35
- __name: "BaseSelect",
36
- props: {
37
- allowWriting: { type: Boolean, default: !0 },
38
- autocomplete: {},
39
- autofocus: {},
40
- dependencies: {},
41
- depsDebounceTime: { default: 0 },
42
- disabled: { type: Boolean },
43
- enforceCoherence: { type: Boolean },
44
- hasErrors: { type: Boolean },
45
- id: {},
46
- loadingText: { default: "Caricamento..." },
47
- matchStrategy: { default: "string" },
48
- modelValueDebounceTime: { default: 0 },
49
- multiple: { type: Boolean },
50
- name: {},
51
- noDataText: { default: "Nessun elemento da visualizzare" },
52
- placeholder: {},
53
- readonly: {},
54
- transitionDuration: { default: 200 },
55
- items: {},
56
- itemText: {},
57
- itemValue: {},
58
- modelValue: {},
59
- addOptions: { type: Boolean },
60
- comma: { type: Boolean },
61
- filterBy: { type: [String, Array, Boolean, Function, null], default: () => [] },
62
- prefill: { type: [Boolean, String], default: "focus" },
63
- queryDebounceTime: { default: 500 },
64
- resetQueryOnOptionSelected: { type: Boolean },
65
- stash: { type: Boolean },
66
- updateOnAnimationFrame: { type: Boolean, default: !1 }
67
- },
68
- emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
69
- setup(de, { emit: ce }) {
70
- const l = de, c = ce;
71
- if (l.multiple && !Array.isArray(l.modelValue))
72
- throw new Error('Multiple is set to "true" but modelValue is not an array.');
73
- const F = f(null), E = f(null), v = f(null), T = f(null), s = f(""), fe = g(() => i.value.length ? "" : l.placeholder), d = f(0), ve = l.transitionDuration / 1e3 + "s";
74
- let te;
75
- $e(async () => {
76
- E.value && v.value && (te = je(
77
- E.value,
78
- v.value,
79
- ge,
80
- {
81
- ancestorResize: !0,
82
- ancestorScroll: !0,
83
- animationFrame: l.updateOnAnimationFrame,
84
- elementResize: !0
85
- }
86
- ));
87
- }), De(() => {
88
- te();
89
- });
90
- const ae = f([]), m = f([]), V = f([]), { getItemText: me } = Ke(), { getItemValue: pe } = Ye(), be = g(() => ae.value.map((e, a) => {
91
- const t = me(e, l.itemText), n = pe(e, l.itemValue);
92
- if (n === void 0)
93
- throw new Error(
94
- 'The result of extracting "value" from option was undefined. Affected item is ' + JSON.stringify(e) + " please check itemValue property is correct."
95
- );
96
- const u = JSON.stringify(n);
97
- return {
98
- disabled: !!e.disabled,
99
- id: "option_" + u.replace(/\W/g, "_"),
100
- jsonValue: u,
101
- manual: !1,
102
- original: e,
103
- text: t,
104
- value: n
105
- };
106
- })), C = g(() => {
107
- let e = be.value.reduce(
108
- (n, u) => (n[u.id] = u, n),
109
- {}
110
- );
111
- const a = V.value.reduce(
112
- (n, u) => (n[u.id] || (n[u.id] = u), n),
113
- e
114
- ), t = m.value.reduce(
115
- (n, u) => (n[u.id] || (n[u.id] = u), n),
116
- a
117
- );
118
- return Object.values(t).map(
119
- (n, u) => ({
120
- ...n,
121
- selected: I(he.value.get(n.value)),
122
- index: u
123
- })
124
- );
125
- }), k = g(() => {
126
- let e = [];
127
- return s.value && !i.value.some(
128
- (a) => a.text === s.value
129
- ) ? e = C.value.filter((a) => {
130
- let t = !1;
131
- if (l.filterBy) {
132
- if (typeof l.filterBy == "function")
133
- t = l.filterBy(a.value, a.original);
134
- else if (l.filterBy.length) {
135
- const n = [].concat(l.filterBy);
136
- for (let u = 0; u < n.length; u++) {
137
- const S = n[u];
138
- t = t || a.original[S] && a.original[S].toLowerCase().includes(s.value.toLowerCase());
139
- }
140
- }
141
- } else
142
- return !0;
143
- return t || a.text.toLowerCase().includes(s.value.toLowerCase());
144
- }) : e = C.value, e.map((a, t) => ({
145
- ...a,
146
- focused: O.value === t
147
- }));
148
- }), z = g(
149
- () => C.value.reduce(
150
- (e, a) => ({
151
- ...e,
152
- [a.id]: a
153
- }),
154
- {}
155
- )
156
- ), p = g(() => {
157
- if (l.matchStrategy === "string") {
158
- let e = C.value.reduce(
159
- (a, t) => (a[t.jsonValue] = t, a),
160
- {}
161
- );
162
- return {
163
- get: (a) => e[JSON.stringify(a)]
164
- };
165
- } else if (l.matchStrategy === "equality") {
166
- let e = C.value.map((a) => [
167
- a.value,
168
- a
169
- ]);
170
- return {
171
- get: (a) => {
172
- var t;
173
- return (t = e.find((n) => re(n[0], a))) == null ? void 0 : t[1];
174
- }
175
- };
176
- } else
177
- throw new Error("No match strategy has been defined");
178
- }), he = g(() => {
179
- if (l.matchStrategy === "string") {
180
- let e = {};
181
- return [].concat(l.modelValue).forEach((a, t) => {
182
- e[JSON.stringify(a)] = t;
183
- }), {
184
- get: (a) => e[JSON.stringify(a)]
185
- };
186
- } else if (l.matchStrategy === "equality") {
187
- const e = [].concat(l.modelValue).filter(I).map((a, t) => [a, t]);
188
- return {
189
- get: (a) => {
190
- var t;
191
- return (t = e.find((n) => re(n[0], a))) == null ? void 0 : t[1];
192
- }
193
- };
194
- } else
195
- throw new Error("No match strategy has been defined");
196
- }), i = g(() => [].concat(l.modelValue).reduce((e, a) => {
197
- const t = p.value.get(a);
198
- return t && e.push(t), e;
199
- }, [])), A = (e) => {
200
- let a;
201
- r.value = e.index, l.multiple ? (e.selected ? (e.manual && (V.value = V.value.filter(
202
- (t) => t.id !== e.id
203
- )), a = l.modelValue.filter(
204
- (t) => JSON.stringify(t) !== e.jsonValue
205
- ), l.stash && (m.value = m.value.filter((t) => t.id !== e.id))) : (a = l.modelValue.concat(e.value), l.stash && (m.value = m.value.concat(e))), l.resetQueryOnOptionSelected && (s.value = "")) : e.selected ? (e.manual && (V.value = V.value.filter(
206
- (t) => t.id !== e.id
207
- )), a = null, l.stash && (m.value = []), s.value = "") : (a = e.value, l.stash && (m.value = [e]), s.value = e.text), c("update:modelValue", a);
208
- }, N = async ({ prefill: e = !1 }) => {
209
- let a = [];
210
- Array.isArray(l.items) ? a = l.items : typeof l.items == "function" && (d.value++, a = await l.items(s.value, e, l.modelValue), d.value--), ae.value = a;
211
- }, ye = () => {
212
- const e = s.value, a = s.value, t = JSON.stringify(a), n = {
213
- text: e,
214
- value: a,
215
- jsonValue: t,
216
- id: "option_" + t.replace(/\W/g, "_"),
217
- original: a,
218
- manual: !0,
219
- disabled: !1
220
- };
221
- V.value = V.value.concat(n), s.value = "";
222
- }, P = l.prefill === !0 || !l.multiple && I(l.modelValue) || l.multiple && !!l.modelValue.length;
223
- let Q;
224
- X(
225
- () => l.modelValue,
226
- (e, a) => {
227
- Q && clearTimeout(Q), Q = setTimeout(
228
- async () => {
229
- if (l.multiple) {
230
- if (!Array.isArray(l.modelValue))
231
- throw new Error("props.modelValue is not an array.");
232
- let t = l.modelValue.every(
233
- (n) => p.value.get(n)
234
- );
235
- if ((!t || a === void 0) && (await N({ prefill: !0 }), t = l.modelValue.every(
236
- (n) => p.value.get(n)
237
- )), t)
238
- l.stash && (m.value = l.modelValue.map(
239
- (n) => p.value.get(n)
240
- ));
241
- else {
242
- let n = [];
243
- const u = e.filter((S) => {
244
- let J = p.value.get(S);
245
- return J && n.push(J), J;
246
- });
247
- l.stash && (m.value = n), l.enforceCoherence && c("update:modelValue", u);
248
- }
249
- } else {
250
- let t = p.value.get(l.modelValue);
251
- if (!t && I(l.modelValue) || a === void 0) {
252
- const n = s.value;
253
- s.value = "", await N({ prefill: !0 }), s.value = n;
254
- }
255
- t = p.value.get(l.modelValue), t ? (s.value = t.text, l.stash && (m.value = [t])) : l.enforceCoherence && I(e) ? (s.value = "", l.stash && (m.value = []), c("update:modelValue", null)) : s.value = "";
256
- }
257
- },
258
- P ? 0 : l.modelValueDebounceTime
259
- );
260
- },
261
- // Prefill when asked or when items are static
262
- { immediate: P, deep: !0 }
263
- ), X(
264
- () => l.items,
265
- async (e, a) => {
266
- if (typeof e == "function" || // Circumvent arrays defined in the template by the parent
267
- JSON.stringify(e) !== JSON.stringify(a))
268
- if (await N({ prefill: !1 }), l.multiple) {
269
- if (!l.modelValue.every(
270
- (n) => p.value.get(n)
271
- ) && l.enforceCoherence) {
272
- const n = l.modelValue.filter((u) => p.value.get(u));
273
- c("update:modelValue", n);
274
- }
275
- } else
276
- !p.value.get(l.modelValue) && l.enforceCoherence && I(l.modelValue) && c("update:modelValue", null), r.value = null;
277
- }
278
- );
279
- let U;
280
- X(
281
- () => l.dependencies,
282
- (e, a) => {
283
- !P && l.prefill === "focus" && Y || JSON.stringify(e) !== JSON.stringify(a) && (U && clearTimeout(U), U = setTimeout(async () => {
284
- if (JSON.stringify(e) !== JSON.stringify(a)) {
285
- l.enforceCoherence && l.stash && (m.value = []);
286
- let t = s.value;
287
- if (s.value = "", await N({ prefill: !0 }), s.value = t, !l.multiple)
288
- !p.value.get(l.modelValue) && l.enforceCoherence && I(l.modelValue) && (s.value = "", l.stash && (m.value = []), c("update:modelValue", null));
289
- else if (!l.modelValue.every(
290
- (u) => p.value.get(u)
291
- ) && l.enforceCoherence) {
292
- let u = [];
293
- const S = l.modelValue.filter((J) => {
294
- let G = p.value.get(J);
295
- return G && u.push(G), G;
296
- });
297
- l.stash && (m.value = u), c("update:modelValue", S);
298
- }
299
- }
300
- }, l.depsDebounceTime));
301
- },
302
- { deep: !0 }
303
- );
304
- const ge = () => {
305
- E.value && v.value && Qe(E.value, v.value, {
306
- placement: "bottom",
307
- middleware: [Xe(6), Ue(), We()]
308
- }).then((e) => {
309
- var a;
310
- v.value && (v.value.style.left = `${e.x}px`, v.value.style.top = `${e.y}px`, v.value.style.width = `${(a = E.value) == null ? void 0 : a.offsetWidth}px`);
311
- });
312
- }, _ = f(!1), W = f(!1), R = f(!1), K = f(!0), $ = async () => {
313
- K.value = !1, W.value = !0, await q(l.transitionDuration), W.value = !1, _.value = !0;
314
- }, M = async () => {
315
- _.value = !1, R.value = !0, await q(l.transitionDuration), R.value = !1, K.value = !0;
316
- }, H = f(!1);
317
- let Y = !0;
318
- const we = async (e) => {
319
- c("focus", e), H.value = !0, document.addEventListener("click", ue), document.addEventListener("focusin", ne), T.value instanceof HTMLInputElement && T.value.select(), l.prefill === "focus" && Y && !P && (await N({ prefill: !0 }), Y = !1);
320
- }, ne = (e) => {
321
- if (e.target instanceof Node && F.value && v.value && !F.value.contains(e.target) && !v.value.contains(e.target)) {
322
- M(), c("inactive"), document.removeEventListener("focusin", ne), H.value = !1, l.multiple && q(500).then(() => {
323
- s.value = "";
324
- });
325
- return;
326
- }
327
- }, Ve = async (e) => {
328
- if (c("blur", e), !l.multiple) {
329
- let a = !1;
330
- const t = l.modelValue;
331
- if (await Promise.race([
332
- q(250),
333
- Ze(() => t !== l.modelValue).then(() => {
334
- a = !0;
335
- })
336
- ]), !a) {
337
- const n = p.value.get(l.modelValue);
338
- n && (s.value = n.text);
339
- }
340
- }
341
- }, Ce = (e) => c("change", e), ke = (e) => {
342
- c("input", e), s.value === "" && (l.multiple || c("update:modelValue", null)), typeof l.items == "function" && Se();
343
- }, r = f(null), O = g(() => Number.isInteger(r.value) && r.value ? (r.value === -1 && (r.value = k.value.length - 1), r.value % k.value.length) : r.value), o = f(null), _e = () => {
344
- r.value !== null ? r.value++ : r.value = 0, ie().then(() => {
345
- var e;
346
- if (O.value !== null) {
347
- const a = (e = v.value) == null ? void 0 : e.querySelector(
348
- `#${C.value[O.value].id}`
349
- );
350
- a instanceof HTMLElement && a.scrollIntoView({
351
- behavior: "smooth",
352
- block: "nearest",
353
- inline: "start"
354
- });
355
- }
356
- });
357
- }, Oe = () => {
358
- r.value !== null ? r.value-- : r.value = C.value.length - 1, ie().then(() => {
359
- var e;
360
- if (O.value !== null) {
361
- const a = (e = v.value) == null ? void 0 : e.querySelector(
362
- `#${C.value[O.value].id}`
363
- );
364
- a instanceof HTMLElement && a.scrollIntoView({
365
- behavior: "smooth",
366
- block: "nearest",
367
- inline: "start"
368
- });
369
- }
370
- });
371
- }, Te = async (e) => {
372
- var a, t;
373
- if (l.readonly || l.disabled) {
374
- e.preventDefault();
375
- return;
376
- }
377
- switch (e.key) {
378
- case "ArrowUp":
379
- {
380
- if (e.preventDefault(), d.value)
381
- return;
382
- o.value = null, _.value ? Oe() : (i.value.length && (r.value = le(i.value).index), await $());
383
- }
384
- break;
385
- case "ArrowDown":
386
- {
387
- if (e.preventDefault(), d.value)
388
- return;
389
- o.value = null, _.value ? _e() : (i.value.length && (r.value = le(i.value).index), await $());
390
- }
391
- break;
392
- case "ArrowLeft":
393
- {
394
- if (d.value)
395
- return;
396
- if (!s.value && i.value.length && (o.value === null ? o.value = i.value.length - 1 : o.value > 0 ? o.value-- : o.value = null, o.value !== null)) {
397
- let n = i.value[o.value], u = (a = v.value) == null ? void 0 : a.querySelector(
398
- `#${n.id}`
399
- );
400
- u && (u.scrollIntoView({
401
- behavior: "smooth",
402
- block: "nearest",
403
- inline: "start"
404
- }), r.value = z.value[i.value[o.value].id].index);
405
- }
406
- }
407
- break;
408
- case "ArrowRight":
409
- {
410
- if (d.value)
411
- return;
412
- if (!s.value && i.value.length && (o.value === null ? o.value = 0 : o.value < i.value.length - 1 ? o.value++ : o.value = null, o.value !== null)) {
413
- let n = i.value[o.value], u = (t = v.value) == null ? void 0 : t.querySelector(
414
- `#${n.id}`
415
- );
416
- u && (u.scrollIntoView({
417
- behavior: "smooth",
418
- block: "nearest",
419
- inline: "start"
420
- }), r.value = z.value[i.value[o.value].id].index);
421
- }
422
- }
423
- break;
424
- case "Enter":
425
- {
426
- if (e.preventDefault(), d.value)
427
- return;
428
- if (!_.value)
429
- k.value.length && i.value.length && (r.value = le(i.value).index), await $();
430
- else if (O.value !== null) {
431
- if (k.value[O.value].disabled)
432
- return;
433
- l.multiple || await M(), A(
434
- k.value[O.value]
435
- );
436
- } else if (l.addOptions) {
437
- if (l.itemText || l.itemValue) {
438
- console.error(
439
- `Adding an option for mapped items is not supported. You can't create an option while passing "item-text" or "item-value".`
440
- );
441
- return;
442
- }
443
- ye();
444
- const n = Re(V.value);
445
- A(z.value[n.id]);
446
- }
447
- }
448
- break;
449
- case "Tab":
450
- case "Escape":
451
- _.value && await M(), c("inactive"), o.value = null, r.value = null;
452
- break;
453
- case "Shift":
454
- if (d.value)
455
- return;
456
- break;
457
- case "Backspace":
458
- {
459
- if (d.value)
460
- return;
461
- s.value || i.value.length && (o.value === null ? o.value = i.value.length - 1 : (A(
462
- i.value[o.value]
463
- ), i.value.length ? o.value = Math.max(
464
- Math.min(
465
- o.value,
466
- i.value.length - 2
467
- ),
468
- 0
469
- ) : o.value = null)), await $();
470
- }
471
- break;
472
- default:
473
- o.value = null, r.value = null, await $();
474
- break;
475
- }
476
- };
477
- let Z;
478
- const Se = () => {
479
- Z && clearTimeout(Z), Z = setTimeout(async () => {
480
- try {
481
- await N({ prefill: !1 });
482
- } catch (e) {
483
- console.error(e);
484
- }
485
- }, l.queryDebounceTime);
486
- }, xe = (e) => {
487
- c("click", e), !(l.disabled || l.readonly) && (T.value instanceof HTMLElement && T.value.focus(), $());
488
- }, Be = (e) => {
489
- if (e.currentTarget instanceof HTMLElement && e.currentTarget.classList.contains("bb-base-select-option")) {
490
- const a = z.value[e.currentTarget.id];
491
- if (a.disabled)
492
- return;
493
- A(a), T.value instanceof HTMLInputElement && T.value.focus(), l.multiple || M();
494
- }
495
- }, ue = (e) => {
496
- if (e.target instanceof Node && F.value && !F.value.contains(e.target)) {
497
- M(), c("inactive"), document.removeEventListener("click", ue), H.value = !1, l.multiple && q(500).then(() => {
498
- s.value = "";
499
- });
500
- return;
501
- }
502
- }, Ie = Ge(
503
- (e) => typeof e != "string",
504
- JSON.stringify
505
- ), Ee = g(() => [].concat(l.modelValue).map((e) => {
506
- const a = Ie(e);
507
- return {
508
- disabled: l.disabled,
509
- name: l.name,
510
- type: "hidden",
511
- value: a
512
- };
513
- }));
514
- return (e, a) => (b(), y("span", {
515
- ref_key: "outerContainer",
516
- ref: F,
517
- class: x({
518
- "bb-base-select": !0,
519
- "bb-base-select--active": H.value,
520
- "bb-base-select--loading": d.value,
521
- "bb-base-select--disabled": e.disabled,
522
- "bb-base-select--errors": e.hasErrors,
523
- "bb-base-select--readonly": e.readonly
524
- }),
525
- onClick: xe
526
- }, [
527
- h(e.$slots, "prepend-outer"),
528
- w("span", {
529
- ref_key: "innerContainer",
530
- ref: E,
531
- class: "bb-base-select__inner-container"
532
- }, [
533
- h(e.$slots, "prepend"),
534
- w("span", el, [
535
- e.multiple ? (b(), y(D, { key: 0 }, [
536
- e.comma ? (b(!0), y(D, { key: 0 }, j(i.value, (t, n) => (b(), y("span", {
537
- key: t.id,
538
- class: x({
539
- "bb-base-select__selected": !0,
540
- "bb-base-select__selected--comma": !0,
541
- "bb-base-select__selected--focused": n === o.value
542
- })
543
- }, L(t.text) + L(n < i.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(i.value, (t, n) => (b(), se(Pe, {
544
- key: t.id,
545
- class: x({
546
- "bb-base-select__selected": !0,
547
- "bb-base-select__selected--chip": !0,
548
- "bb-base-select__selected--focused": n === o.value
549
- }),
550
- clearable: !0,
551
- text: t.text,
552
- "onClick:clear": B((u) => A(t), ["stop"])
553
- }, {
554
- default: Le(() => [
555
- h(e.$slots, "chip", {
556
- disabled: t.disabled,
557
- hasErrors: e.hasErrors,
558
- index: t.index,
559
- item: t.original,
560
- loading: !!d.value,
561
- manual: t.manual,
562
- selected: t.selected,
563
- text: t.text,
564
- value: t.value
565
- }, () => [
566
- ee(L(t.text), 1)
567
- ])
568
- ]),
569
- _: 2
570
- }, 1032, ["class", "text", "onClick:clear"]))), 128))
571
- ], 64)) : oe("", !0),
572
- Fe(w("input", {
573
- id: e.id,
574
- ref_key: "input",
575
- ref: T,
576
- "onUpdate:modelValue": a[0] || (a[0] = (t) => s.value = t),
577
- autocomplete: e.autocomplete,
578
- autofocus: e.autofocus,
579
- class: x("bb-base-select__text-input"),
580
- disabled: e.disabled,
581
- placeholder: fe.value,
582
- readonly: e.readonly || !e.allowWriting,
583
- type: "text",
584
- onBlur: B(Ve, ["stop"]),
585
- onChange: B(Ce, ["stop"]),
586
- onFocus: B(we, ["stop"]),
587
- onInput: B(ke, ["stop"]),
588
- onKeydown: B(Te, ["stop"])
589
- }, null, 40, ll), [
590
- [Ae, s.value]
591
- ]),
592
- (b(), se(Me, { to: "body" }, [
593
- w("span", {
594
- ref_key: "optionsContainer",
595
- ref: v,
596
- class: x({
597
- "bb-base-select__options-container": !0,
598
- "bb-base-select__options-container--shown": _.value,
599
- "bb-base-select__options-container--showing": W.value,
600
- "bb-base-select__options-container--hiding": R.value,
601
- "bb-base-select__options-container--hidden": K.value
602
- }),
603
- role: "listbox",
604
- style: Je({ transitionDuration: ve }),
605
- tabindex: -1
606
- }, [
607
- h(e.$slots, "options:prepend"),
608
- !k.value.length && d.value ? (b(), y("span", tl, [
609
- h(e.$slots, "loading", { query: s.value }, () => [
610
- ee(L(e.loadingText), 1)
611
- ])
612
- ])) : k.value.length ? oe("", !0) : (b(), y("span", al, [
613
- h(e.$slots, "no-data", { query: s.value }, () => [
614
- ee(L(e.noDataText), 1)
615
- ])
616
- ])),
617
- (b(!0), y(D, null, j(k.value, (t) => (b(), y(D, {
618
- key: t.id
619
- }, [
620
- h(e.$slots, "option:prepend", {
621
- item: t.original
622
- }),
623
- w("span", {
624
- id: t.id,
625
- "aria-selected": t.selected,
626
- class: x({
627
- "bb-base-select-option": !0,
628
- "bb-base-select-option--selected": t.selected,
629
- "bb-base-select-option--focused": t.focused,
630
- "bb-base-select-option--disabled": t.disabled
631
- }),
632
- role: "option",
633
- onClick: B(Be, ["stop"])
634
- }, [
635
- h(e.$slots, "option", {
636
- disabled: t.disabled,
637
- focused: t.focused,
638
- hasErrors: e.hasErrors,
639
- index: t.index,
640
- item: t.original,
641
- loading: !!d.value,
642
- manual: t.manual,
643
- selected: t.selected,
644
- text: t.text,
645
- value: t.value
646
- }, () => [
647
- w("span", ul, [
648
- w("span", sl, L(t.text), 1)
649
- ])
650
- ])
651
- ], 10, nl),
652
- h(e.$slots, "option:append", {
653
- item: t.original
654
- })
655
- ], 64))), 128)),
656
- h(e.$slots, "options:append")
657
- ], 6)
658
- ]))
659
- ]),
660
- w("span", ol, [
661
- h(e.$slots, "chevron", {
662
- loading: !!d.value,
663
- shown: _.value
664
- }, () => [
665
- il
666
- ])
667
- ]),
668
- d.value ? (b(), y("span", {
669
- key: 1,
670
- class: x({
671
- "bb-base-select__spinner": !0,
672
- "bb-base-select__spinner--loading": d.value
673
- })
674
- }, [
675
- h(e.$slots, "spinner", {
676
- loading: !!d.value
677
- }, () => [
678
- qe(He, { size: "sm" })
679
- ])
680
- ], 2)) : h(e.$slots, "append", { key: 0 })
681
- ], 512),
682
- h(e.$slots, "append-outer"),
683
- (b(!0), y(D, null, j(Ee.value, (t) => (b(), y("input", ze({
684
- key: t.value
685
- }, t), null, 16))), 128))
686
- ], 2));
687
- }
688
- });
689
- export {
690
- Ol as default
691
- };
692
- //# sourceMappingURL=index31.js.map