bitboss-ui 0.2.38 → 0.2.40

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 (451) hide show
  1. package/dist/components/BbButton/BbButton.vue.d.ts +95 -0
  2. package/dist/index.d.ts +125 -0
  3. package/dist/index10.js +1 -4
  4. package/dist/index10.js.map +1 -1
  5. package/dist/index100.js +1 -4
  6. package/dist/index100.js.map +1 -1
  7. package/dist/index101.js +2 -2
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index102.js +1 -4
  10. package/dist/index102.js.map +1 -1
  11. package/dist/index103.js +2 -2
  12. package/dist/index103.js.map +1 -1
  13. package/dist/index104.js +1 -4
  14. package/dist/index104.js.map +1 -1
  15. package/dist/index105.js.map +1 -1
  16. package/dist/index106.js +1 -4
  17. package/dist/index106.js.map +1 -1
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +1 -4
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +1 -1
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index11.js +2 -2
  24. package/dist/index11.js.map +1 -1
  25. package/dist/index110.js +1 -4
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +3 -3
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +1 -4
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +1 -1
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +1 -4
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js.map +1 -1
  36. package/dist/index116.js +1 -1
  37. package/dist/index116.js.map +1 -1
  38. package/dist/index117.js +1 -1
  39. package/dist/index117.js.map +1 -1
  40. package/dist/index118.js +1 -1
  41. package/dist/index118.js.map +1 -1
  42. package/dist/index119.js +1 -1
  43. package/dist/index119.js.map +1 -1
  44. package/dist/index12.js +1 -4
  45. package/dist/index12.js.map +1 -1
  46. package/dist/index125.js +1 -1
  47. package/dist/index126.js +1 -1
  48. package/dist/index127.js +1 -1
  49. package/dist/index13.js.map +1 -1
  50. package/dist/index131.js +2 -2
  51. package/dist/index131.js.map +1 -1
  52. package/dist/index14.js +1 -4
  53. package/dist/index14.js.map +1 -1
  54. package/dist/index15.js +8 -8
  55. package/dist/index15.js.map +1 -1
  56. package/dist/index158.js +1 -4
  57. package/dist/index158.js.map +1 -1
  58. package/dist/index16.js +1 -4
  59. package/dist/index16.js.map +1 -1
  60. package/dist/index160.js +1 -4
  61. package/dist/index160.js.map +1 -1
  62. package/dist/index169.js +1 -4
  63. package/dist/index169.js.map +1 -1
  64. package/dist/index17.js +9 -9
  65. package/dist/index17.js.map +1 -1
  66. package/dist/index18.js +1 -4
  67. package/dist/index18.js.map +1 -1
  68. package/dist/index183.js +1 -4
  69. package/dist/index183.js.map +1 -1
  70. package/dist/index185.js +1 -4
  71. package/dist/index185.js.map +1 -1
  72. package/dist/index19.js +3 -3
  73. package/dist/index19.js.map +1 -1
  74. package/dist/index197.js +10 -2
  75. package/dist/index197.js.map +1 -1
  76. package/dist/index198.js +5 -4
  77. package/dist/index198.js.map +1 -1
  78. package/dist/index199.js +16 -235
  79. package/dist/index199.js.map +1 -1
  80. package/dist/index20.js +1 -4
  81. package/dist/index20.js.map +1 -1
  82. package/dist/index200.js +16 -3
  83. package/dist/index200.js.map +1 -1
  84. package/dist/index201.js +19 -35
  85. package/dist/index201.js.map +1 -1
  86. package/dist/index202.js +20 -6
  87. package/dist/index202.js.map +1 -1
  88. package/dist/index203.js +29 -5
  89. package/dist/index203.js.map +1 -1
  90. package/dist/index204.js +8 -16
  91. package/dist/index204.js.map +1 -1
  92. package/dist/index205.js +2 -16
  93. package/dist/index205.js.map +1 -1
  94. package/dist/index206.js +234 -18
  95. package/dist/index206.js.map +1 -1
  96. package/dist/index207.js +3 -20
  97. package/dist/index207.js.map +1 -1
  98. package/dist/index208.js +34 -28
  99. package/dist/index208.js.map +1 -1
  100. package/dist/index209.js +6 -8
  101. package/dist/index209.js.map +1 -1
  102. package/dist/index21.js +2 -2
  103. package/dist/index21.js.map +1 -1
  104. package/dist/index210.js +2 -2
  105. package/dist/index210.js.map +1 -1
  106. package/dist/index211.js +4 -10
  107. package/dist/index211.js.map +1 -1
  108. package/dist/index212.js +368 -3
  109. package/dist/index212.js.map +1 -1
  110. package/dist/index213.js +134 -3
  111. package/dist/index213.js.map +1 -1
  112. package/dist/index214.js +2 -368
  113. package/dist/index214.js.map +1 -1
  114. package/dist/index215.js +170 -130
  115. package/dist/index215.js.map +1 -1
  116. package/dist/index216.js +23 -2
  117. package/dist/index216.js.map +1 -1
  118. package/dist/index217.js +363 -164
  119. package/dist/index217.js.map +1 -1
  120. package/dist/index218.js +2 -23
  121. package/dist/index218.js.map +1 -1
  122. package/dist/index219.js +3 -373
  123. package/dist/index219.js.map +1 -1
  124. package/dist/index22.js +1 -4
  125. package/dist/index22.js.map +1 -1
  126. package/dist/index220.js +3 -2
  127. package/dist/index220.js.map +1 -1
  128. package/dist/index223.js +4 -4
  129. package/dist/index223.js.map +1 -1
  130. package/dist/index224.js +6 -28
  131. package/dist/index224.js.map +1 -1
  132. package/dist/index226.js +2 -2
  133. package/dist/index226.js.map +1 -1
  134. package/dist/index227.js +2 -4
  135. package/dist/index227.js.map +1 -1
  136. package/dist/index228.js +160 -2
  137. package/dist/index228.js.map +1 -1
  138. package/dist/index229.js +1 -437
  139. package/dist/index229.js.map +1 -1
  140. package/dist/index23.js.map +1 -1
  141. package/dist/index230.js +68 -88
  142. package/dist/index230.js.map +1 -1
  143. package/dist/index231.js +5 -69
  144. package/dist/index231.js.map +1 -1
  145. package/dist/index232.js +294 -159
  146. package/dist/index232.js.map +1 -1
  147. package/dist/index233.js +6 -2
  148. package/dist/index233.js.map +1 -1
  149. package/dist/index234.js +2 -200
  150. package/dist/index234.js.map +1 -1
  151. package/dist/index235.js +2 -5
  152. package/dist/index235.js.map +1 -1
  153. package/dist/index236.js +2 -295
  154. package/dist/index236.js.map +1 -1
  155. package/dist/index237.js +2 -6
  156. package/dist/index237.js.map +1 -1
  157. package/dist/index238.js +2 -2
  158. package/dist/index24.js +1 -4
  159. package/dist/index24.js.map +1 -1
  160. package/dist/index240.js +4 -2
  161. package/dist/index240.js.map +1 -1
  162. package/dist/index241.js +15 -2
  163. package/dist/index241.js.map +1 -1
  164. package/dist/index242.js +435 -2
  165. package/dist/index242.js.map +1 -1
  166. package/dist/index243.js +89 -2
  167. package/dist/index243.js.map +1 -1
  168. package/dist/index244.js +200 -2
  169. package/dist/index244.js.map +1 -1
  170. package/dist/index245.js +2 -224
  171. package/dist/index245.js.map +1 -1
  172. package/dist/index246.js +105 -246
  173. package/dist/index246.js.map +1 -1
  174. package/dist/index247.js +106 -2
  175. package/dist/index247.js.map +1 -1
  176. package/dist/index248.js +218 -111
  177. package/dist/index248.js.map +1 -1
  178. package/dist/index249.js +246 -94
  179. package/dist/index249.js.map +1 -1
  180. package/dist/index25.js +2 -2
  181. package/dist/index25.js.map +1 -1
  182. package/dist/index250.js +2 -38
  183. package/dist/index250.js.map +1 -1
  184. package/dist/index251.js +4 -2
  185. package/dist/index251.js.map +1 -1
  186. package/dist/index252.js +4 -2
  187. package/dist/index252.js.map +1 -1
  188. package/dist/index253.js +60 -14
  189. package/dist/index253.js.map +1 -1
  190. package/dist/index254.js +3 -2
  191. package/dist/index254.js.map +1 -1
  192. package/dist/index255.js +2 -3
  193. package/dist/index255.js.map +1 -1
  194. package/dist/index26.js +1 -4
  195. package/dist/index26.js.map +1 -1
  196. package/dist/index27.js.map +1 -1
  197. package/dist/index28.js +1 -4
  198. package/dist/index28.js.map +1 -1
  199. package/dist/index29.js +2 -2
  200. package/dist/index29.js.map +1 -1
  201. package/dist/index30.js +1 -4
  202. package/dist/index30.js.map +1 -1
  203. package/dist/index31.js +6 -6
  204. package/dist/index31.js.map +1 -1
  205. package/dist/index32.js +1 -4
  206. package/dist/index32.js.map +1 -1
  207. package/dist/index33.js +1 -1
  208. package/dist/index33.js.map +1 -1
  209. package/dist/index34.js +1 -4
  210. package/dist/index34.js.map +1 -1
  211. package/dist/index35.js +2 -2
  212. package/dist/index35.js.map +1 -1
  213. package/dist/index36.js +1 -4
  214. package/dist/index36.js.map +1 -1
  215. package/dist/index37.js.map +1 -1
  216. package/dist/index38.js +1 -4
  217. package/dist/index38.js.map +1 -1
  218. package/dist/index39.js.map +1 -1
  219. package/dist/index40.js +1 -4
  220. package/dist/index40.js.map +1 -1
  221. package/dist/index41.js.map +1 -1
  222. package/dist/index42.js +1 -4
  223. package/dist/index42.js.map +1 -1
  224. package/dist/index43.js.map +1 -1
  225. package/dist/index44.js +1 -4
  226. package/dist/index44.js.map +1 -1
  227. package/dist/index45.js.map +1 -1
  228. package/dist/index46.js +1 -4
  229. package/dist/index46.js.map +1 -1
  230. package/dist/index47.js +1 -1
  231. package/dist/index47.js.map +1 -1
  232. package/dist/index48.js +1 -4
  233. package/dist/index48.js.map +1 -1
  234. package/dist/index49.js +1 -1
  235. package/dist/index49.js.map +1 -1
  236. package/dist/index50.js +1 -4
  237. package/dist/index50.js.map +1 -1
  238. package/dist/index51.js.map +1 -1
  239. package/dist/index52.js +1 -4
  240. package/dist/index52.js.map +1 -1
  241. package/dist/index53.js.map +1 -1
  242. package/dist/index54.js +1 -4
  243. package/dist/index54.js.map +1 -1
  244. package/dist/index55.js.map +1 -1
  245. package/dist/index56.js +1 -4
  246. package/dist/index56.js.map +1 -1
  247. package/dist/index57.js.map +1 -1
  248. package/dist/index58.js +1 -4
  249. package/dist/index58.js.map +1 -1
  250. package/dist/index59.js.map +1 -1
  251. package/dist/index60.js +1 -4
  252. package/dist/index60.js.map +1 -1
  253. package/dist/index61.js.map +1 -1
  254. package/dist/index62.js +1 -4
  255. package/dist/index62.js.map +1 -1
  256. package/dist/index63.js.map +1 -1
  257. package/dist/index64.js +1 -4
  258. package/dist/index64.js.map +1 -1
  259. package/dist/index65.js +3 -3
  260. package/dist/index65.js.map +1 -1
  261. package/dist/index66.js +1 -4
  262. package/dist/index66.js.map +1 -1
  263. package/dist/index67.js.map +1 -1
  264. package/dist/index68.js +1 -4
  265. package/dist/index68.js.map +1 -1
  266. package/dist/index69.js +12 -12
  267. package/dist/index69.js.map +1 -1
  268. package/dist/index70.js +1 -4
  269. package/dist/index70.js.map +1 -1
  270. package/dist/index71.js.map +1 -1
  271. package/dist/index72.js +1 -1
  272. package/dist/index72.js.map +1 -1
  273. package/dist/index73.js.map +1 -1
  274. package/dist/index74.js +1 -4
  275. package/dist/index74.js.map +1 -1
  276. package/dist/index75.js +1 -1
  277. package/dist/index75.js.map +1 -1
  278. package/dist/index76.js +1 -4
  279. package/dist/index76.js.map +1 -1
  280. package/dist/index77.js.map +1 -1
  281. package/dist/index78.js +1 -4
  282. package/dist/index78.js.map +1 -1
  283. package/dist/index79.js +3 -3
  284. package/dist/index79.js.map +1 -1
  285. package/dist/index80.js +1 -4
  286. package/dist/index80.js.map +1 -1
  287. package/dist/index81.js.map +1 -1
  288. package/dist/index82.js +1 -4
  289. package/dist/index82.js.map +1 -1
  290. package/dist/index83.js.map +1 -1
  291. package/dist/index84.js +1 -4
  292. package/dist/index84.js.map +1 -1
  293. package/dist/index85.js.map +1 -1
  294. package/dist/index86.js +1 -4
  295. package/dist/index86.js.map +1 -1
  296. package/dist/index87.js.map +1 -1
  297. package/dist/index88.js +1 -4
  298. package/dist/index88.js.map +1 -1
  299. package/dist/index89.js.map +1 -1
  300. package/dist/index9.js.map +1 -1
  301. package/dist/index90.js +1 -4
  302. package/dist/index90.js.map +1 -1
  303. package/dist/index91.js.map +1 -1
  304. package/dist/index92.js +1 -4
  305. package/dist/index92.js.map +1 -1
  306. package/dist/index93.js.map +1 -1
  307. package/dist/index94.js +1 -4
  308. package/dist/index94.js.map +1 -1
  309. package/dist/index95.js.map +1 -1
  310. package/dist/index96.js +1 -4
  311. package/dist/index96.js.map +1 -1
  312. package/dist/index97.js.map +1 -1
  313. package/dist/index98.js +1 -4
  314. package/dist/index98.js.map +1 -1
  315. package/dist/index99.js.map +1 -1
  316. package/dist/style.css +1 -1
  317. package/package.json +35 -37
  318. package/dist/src/components/BbButton/BbButton.vue.d.ts +0 -22
  319. package/dist/src/index.d.ts +0 -126
  320. /package/dist/{src/components → components}/BaseButton/BaseButton.vue.d.ts +0 -0
  321. /package/dist/{src/components → components}/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -0
  322. /package/dist/{src/components → components}/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -0
  323. /package/dist/{src/components → components}/BaseDatePicker/BaseDatePicker.vue.d.ts +0 -0
  324. /package/dist/{src/components → components}/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -0
  325. /package/dist/{src/components → components}/BaseDialog/BaseDialog.vue.d.ts +0 -0
  326. /package/dist/{src/components → components}/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -0
  327. /package/dist/{src/components → components}/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -0
  328. /package/dist/{src/components → components}/BaseRadio/BaseRadio.vue.d.ts +0 -0
  329. /package/dist/{src/components → components}/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -0
  330. /package/dist/{src/components → components}/BaseRating/BaseRating.vue.d.ts +0 -0
  331. /package/dist/{src/components → components}/BaseSelect/BaseSelect.vue.d.ts +0 -0
  332. /package/dist/{src/components → components}/BaseSlider/BaseSlider.vue.d.ts +0 -0
  333. /package/dist/{src/components → components}/BaseSwitch/BaseSwitch.vue.d.ts +0 -0
  334. /package/dist/{src/components → components}/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -0
  335. /package/dist/{src/components → components}/BaseTag/BaseTag.vue.d.ts +0 -0
  336. /package/dist/{src/components → components}/BaseTextInput/BaseTextInput.vue.d.ts +0 -0
  337. /package/dist/{src/components → components}/BaseTextarea/BaseTextarea.vue.d.ts +0 -0
  338. /package/dist/{src/components → components}/BbAccordion/BbAccordion.vue.d.ts +0 -0
  339. /package/dist/{src/components → components}/BbAlert/BbAlert.vue.d.ts +0 -0
  340. /package/dist/{src/components → components}/BbAvatar/BbAvatar.vue.d.ts +0 -0
  341. /package/dist/{src/components → components}/BbBadge/BbBadge.vue.d.ts +0 -0
  342. /package/dist/{src/components → components}/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -0
  343. /package/dist/{src/components → components}/BbCheckbox/BbCheckbox.vue.d.ts +0 -0
  344. /package/dist/{src/components → components}/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +0 -0
  345. /package/dist/{src/components → components}/BbChip/BbChip.vue.d.ts +0 -0
  346. /package/dist/{src/components → components}/BbCollapsible/BbCollapsible.vue.d.ts +0 -0
  347. /package/dist/{src/components → components}/BbConfirm/BbConfirm.vue.d.ts +0 -0
  348. /package/dist/{src/components → components}/BbDatePickerInput/BbDatePickerInput.vue.d.ts +0 -0
  349. /package/dist/{src/components → components}/BbDialog/BbDialog.vue.d.ts +0 -0
  350. /package/dist/{src/components → components}/BbDropdown/BbDropdown.vue.d.ts +0 -0
  351. /package/dist/{src/components → components}/BbDropdownButton/BbDropdownButton.vue.d.ts +0 -0
  352. /package/dist/{src/components → components}/BbDropzone/BbDropzone.vue.d.ts +0 -0
  353. /package/dist/{src/components → components}/BbHover/BbHover.vue.d.ts +0 -0
  354. /package/dist/{src/components → components}/BbIcon/BbIcon.vue.d.ts +0 -0
  355. /package/dist/{src/components → components}/BbIntersection/BbIntersection.vue.d.ts +0 -0
  356. /package/dist/{src/components → components}/BbNumberInput/BbNumberInput.vue.d.ts +0 -0
  357. /package/dist/{src/components → components}/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -0
  358. /package/dist/{src/components → components}/BbPagination/BbPagination.vue.d.ts +0 -0
  359. /package/dist/{src/components → components}/BbPopover/BbPopover.vue.d.ts +0 -0
  360. /package/dist/{src/components → components}/BbProgress/BbProgress.vue.d.ts +0 -0
  361. /package/dist/{src/components → components}/BbRadio/BbRadio.vue.d.ts +0 -0
  362. /package/dist/{src/components → components}/BbRadioGroup/BbRadioGroup.vue.d.ts +0 -0
  363. /package/dist/{src/components → components}/BbRating/BbRating.vue.d.ts +0 -0
  364. /package/dist/{src/components → components}/BbRatio/BbRatio.vue.d.ts +0 -0
  365. /package/dist/{src/components → components}/BbSelect/BbSelect.vue.d.ts +0 -0
  366. /package/dist/{src/components → components}/BbSlider/BbSlider.vue.d.ts +0 -0
  367. /package/dist/{src/components → components}/BbSmoothHeight/BbSmoothHeight.vue.d.ts +0 -0
  368. /package/dist/{src/components → components}/BbSpinner/BbSpinner.vue.d.ts +0 -0
  369. /package/dist/{src/components → components}/BbSwitch/BbSwitch.vue.d.ts +0 -0
  370. /package/dist/{src/components → components}/BbSwitchGroup/BbSwitchGroup.vue.d.ts +0 -0
  371. /package/dist/{src/components → components}/BbTab/BbTab.vue.d.ts +0 -0
  372. /package/dist/{src/components → components}/BbTable/BbTable.vue.d.ts +0 -0
  373. /package/dist/{src/components → components}/BbTable/types.d.ts +0 -0
  374. /package/dist/{src/components → components}/BbTag/BbTag.vue.d.ts +0 -0
  375. /package/dist/{src/components → components}/BbTextInput/BbTextInput.vue.d.ts +0 -0
  376. /package/dist/{src/components → components}/BbTextarea/BbTextarea.vue.d.ts +0 -0
  377. /package/dist/{src/components → components}/BbToast/BbToast.vue.d.ts +0 -0
  378. /package/dist/{src/components → components}/BbToast/BbToastMessage.vue.d.ts +0 -0
  379. /package/dist/{src/components → components}/BbTooltip/BbTooltip.vue.d.ts +0 -0
  380. /package/dist/{src/components → components}/BbTree/BbTree.vue.d.ts +0 -0
  381. /package/dist/{src/composables → composables}/useBroadcastChannelInstance.d.ts +0 -0
  382. /package/dist/{src/composables → composables}/useConfirm.d.ts +0 -0
  383. /package/dist/{src/composables → composables}/useCountdown.d.ts +0 -0
  384. /package/dist/{src/composables → composables}/useId.d.ts +0 -0
  385. /package/dist/{src/composables → composables}/useItemText.d.ts +0 -0
  386. /package/dist/{src/composables → composables}/useItemValue.d.ts +0 -0
  387. /package/dist/{src/composables → composables}/useOptions.d.ts +0 -0
  388. /package/dist/{src/composables → composables}/useRoute.d.ts +0 -0
  389. /package/dist/{src/composables → composables}/useRouter.d.ts +0 -0
  390. /package/dist/{src/composables → composables}/useToast.d.ts +0 -0
  391. /package/dist/{src/composables → composables}/useWizard.d.ts +0 -0
  392. /package/dist/{src/types → types}/Classes.d.ts +0 -0
  393. /package/dist/{src/types → types}/CommonProps.d.ts +0 -0
  394. /package/dist/{src/types → types}/ExtractGenericFromComputedRef.d.ts +0 -0
  395. /package/dist/{src/types → types}/ExtractGenericFromRef.d.ts +0 -0
  396. /package/dist/{src/types → types}/NestedKeyOf.d.ts +0 -0
  397. /package/dist/{src/types → types}/Simplify.d.ts +0 -0
  398. /package/dist/{src/types → types}/VoidHtmlElements.d.ts +0 -0
  399. /package/dist/{src/utilities → utilities}/functions/add.d.ts +0 -0
  400. /package/dist/{src/utilities → utilities}/functions/booleanishToBoolean.d.ts +0 -0
  401. /package/dist/{src/utilities → utilities}/functions/capitalize.d.ts +0 -0
  402. /package/dist/{src/utilities → utilities}/functions/clamp.d.ts +0 -0
  403. /package/dist/{src/utilities → utilities}/functions/cloneDeep.d.ts +0 -0
  404. /package/dist/{src/utilities → utilities}/functions/curry.d.ts +0 -0
  405. /package/dist/{src/utilities → utilities}/functions/debounce.d.ts +0 -0
  406. /package/dist/{src/utilities → utilities}/functions/deburr.d.ts +0 -0
  407. /package/dist/{src/utilities → utilities}/functions/drop.d.ts +0 -0
  408. /package/dist/{src/utilities → utilities}/functions/empty.d.ts +0 -0
  409. /package/dist/{src/utilities → utilities}/functions/findInTree.d.ts +0 -0
  410. /package/dist/{src/utilities → utilities}/functions/findRight.d.ts +0 -0
  411. /package/dist/{src/utilities → utilities}/functions/findRightIndex.d.ts +0 -0
  412. /package/dist/{src/utilities → utilities}/functions/flattenTree.d.ts +0 -0
  413. /package/dist/{src/utilities → utilities}/functions/flow.d.ts +0 -0
  414. /package/dist/{src/utilities → utilities}/functions/get.d.ts +0 -0
  415. /package/dist/{src/utilities → utilities}/functions/groupBy.d.ts +0 -0
  416. /package/dist/{src/utilities → utilities}/functions/gt.d.ts +0 -0
  417. /package/dist/{src/utilities → utilities}/functions/head.d.ts +0 -0
  418. /package/dist/{src/utilities → utilities}/functions/identity.d.ts +0 -0
  419. /package/dist/{src/utilities → utilities}/functions/includes.d.ts +0 -0
  420. /package/dist/{src/utilities → utilities}/functions/indexBy.d.ts +0 -0
  421. /package/dist/{src/utilities → utilities}/functions/initial.d.ts +0 -0
  422. /package/dist/{src/utilities → utilities}/functions/isCssColor.d.ts +0 -0
  423. /package/dist/{src/utilities → utilities}/functions/isNil.d.ts +0 -0
  424. /package/dist/{src/utilities → utilities}/functions/isNotNil.d.ts +0 -0
  425. /package/dist/{src/utilities → utilities}/functions/last.d.ts +0 -0
  426. /package/dist/{src/utilities → utilities}/functions/lt.d.ts +0 -0
  427. /package/dist/{src/utilities → utilities}/functions/makeUrl.d.ts +0 -0
  428. /package/dist/{src/utilities → utilities}/functions/mapKeys.d.ts +0 -0
  429. /package/dist/{src/utilities → utilities}/functions/mapValues.d.ts +0 -0
  430. /package/dist/{src/utilities → utilities}/functions/matchesPropertyInsensitive.d.ts +0 -0
  431. /package/dist/{src/utilities → utilities}/functions/mean.d.ts +0 -0
  432. /package/dist/{src/utilities → utilities}/functions/merge.d.ts +0 -0
  433. /package/dist/{src/utilities → utilities}/functions/millisecondsTo.d.ts +0 -0
  434. /package/dist/{src/utilities → utilities}/functions/negate.d.ts +0 -0
  435. /package/dist/{src/utilities → utilities}/functions/noop.d.ts +0 -0
  436. /package/dist/{src/utilities → utilities}/functions/omit.d.ts +0 -0
  437. /package/dist/{src/utilities → utilities}/functions/overEvery.d.ts +0 -0
  438. /package/dist/{src/utilities → utilities}/functions/percentage.d.ts +0 -0
  439. /package/dist/{src/utilities → utilities}/functions/pick.d.ts +0 -0
  440. /package/dist/{src/utilities → utilities}/functions/pickBy.d.ts +0 -0
  441. /package/dist/{src/utilities → utilities}/functions/replace.d.ts +0 -0
  442. /package/dist/{src/utilities → utilities}/functions/replaceInTree.d.ts +0 -0
  443. /package/dist/{src/utilities → utilities}/functions/retry.d.ts +0 -0
  444. /package/dist/{src/utilities → utilities}/functions/roundToTheNearest.d.ts +0 -0
  445. /package/dist/{src/utilities → utilities}/functions/set.d.ts +0 -0
  446. /package/dist/{src/utilities → utilities}/functions/snakeCase.d.ts +0 -0
  447. /package/dist/{src/utilities → utilities}/functions/throttle.d.ts +0 -0
  448. /package/dist/{src/utilities → utilities}/functions/tryTo.d.ts +0 -0
  449. /package/dist/{src/utilities → utilities}/functions/wait.d.ts +0 -0
  450. /package/dist/{src/utilities → utilities}/functions/waitFor.d.ts +0 -0
  451. /package/dist/{src/utilities → utilities}/functions/when.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index13.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-checkbox-group__container\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"bb-base-checkbox-group__loading-container\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"bb-base-select__no-data-container\"\n}\n\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 '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\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 * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\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\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'mousedown', event: MouseEvent): void;\n\n\t(e: 'mouseup', event: MouseEvent): void;\n\n\t(e: 'update:modelValue', value: any): void;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseCheckboxGroup',\n props: {\n autofocus: {},\n color: {},\n dependencies: {},\n depsDebounceTime: { default: 0 },\n direction: { default: 'horizontal' },\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n items: { type: [Array, Function], default: () => [] },\n itemText: {},\n itemValue: {},\n loadingText: { default: 'Caricamento...' },\n matchStrategy: { default: 'string' },\n modelValue: {},\n modelValueDebounceTime: { default: 0 },\n name: {},\n noDataText: { default: 'Nessun elemento da visualizzare' },\n readonly: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst { loading, options } = useOptions({\n\tdependencies: toRef(() => props.dependencies),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(() => props.disabled),\n\temitter: (value) => emit('update:modelValue', value),\n\tenforceCoherence: toRef(() => props.enforceCoherence),\n\tid: props.id,\n\timmediate: true,\n\tinitialItems: toRef(() => props.items),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmatchStrategy: props.matchStrategy,\n\tmodelValue: toRef(() => props.modelValue),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n});\n\n/**\n * When selecting an option split behavior based on single or multiple selection\n */\nconst onOptionSelected = (option: Option) => {\n\tlet valueToEmit;\n\tif (option.selected) {\n\t\tvalueToEmit = props.modelValue\n\t\t\t.slice(0, option.selectedIndex)\n\t\t\t.concat(props.modelValue.slice(option.selectedIndex + 1));\n\t} else {\n\t\tvalueToEmit = props.modelValue.concat(option.value);\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tonOptionSelected(option);\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\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n ref_key: \"container\",\n ref: container,\n class: _normalizeClass([\"bb-base-checkbox-group\", {\n\t\t\t'bb-base-checkbox-group--errors': _ctx.hasErrors,\n\t\t\t'bb-base-checkbox-group--horizontal': _ctx.direction === 'horizontal',\n\t\t\t'bb-base-checkbox-group--vertical': _ctx.direction === 'vertical',\n\t\t}])\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"prepend\"),\n (!_unref(options).length && _unref(loading))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n _renderSlot(_ctx.$slots, 'loading', {}, () => [\n _createTextVNode(_toDisplayString(_ctx.loadingText), 1)\n ])\n ]))\n : (!_unref(options).length)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, [\n _renderSlot(_ctx.$slots, 'no-data', {}, () => [\n _createTextVNode(_toDisplayString(_ctx.noDataText), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(options), (option, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: option?.id || option.jsonValue\n }, [\n _renderSlot(_ctx.$slots, \"option:prepend\", {\n item: option.original\n }),\n _createElementVNode(\"label\", {\n class: _normalizeClass([\"bb-base-checkbox-group-option\", {\n\t\t\t\t\t\t'bb-base-checkbox-group-option__selected': option.selected,\n\t\t\t\t\t}])\n }, [\n _createVNode(BaseCheckbox, _mergeProps({\n id: option.id,\n autofocus: _ctx.autofocus && !index,\n checked: option.selected,\n color: _ctx.color,\n disabled: option.disabled,\n \"has-errors\": _ctx.hasErrors,\n name: _ctx.name,\n \"on-change\": (event) => onChange(event, option),\n readonly: _ctx.readonly,\n \"true-value\": option.value\n }, eventListeners), {\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _mergeProps({\n item: option.original,\n text: option.text\n }, data))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"checked\", \"color\", \"disabled\", \"has-errors\", \"name\", \"on-change\", \"readonly\", \"true-value\"]),\n _createElementVNode(\"span\", {\n class: _normalizeClass({\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text--hidden': _ctx.hideLabel,\n\t\t\t\t\t\t})\n }, [\n _renderSlot(_ctx.$slots, \"label\", {\n checked: option.selected,\n item: option.original,\n text: option.text\n }, () => [\n _createTextVNode(_toDisplayString(option.text), 1)\n ])\n ], 2)\n ], 2),\n _renderSlot(_ctx.$slots, \"option:append\", {\n item: option.original\n })\n ], 64))\n }), 128)),\n _renderSlot(_ctx.$slots, \"append\")\n ])\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","__emit","props","emit","container","ref","active","loading","options","useOptions","toRef","value","onOptionSelected","option","valueToEmit","onChange","event","eventListeners","onDocumentFocus","onDocumentClick","_a","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot","_unref","_createTextVNode","_toDisplayString","_createCommentVNode","_Fragment","_renderList","index","_createVNode","BaseCheckbox","_mergeProps","_withCtx","data"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,OAAO,uCACtBC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GAuJ4BC,IA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A,YAAA,GACQ;AAAA,cACDM,EAAYN,EAAK,QAAQ,SAAS;AAAA,gBAChC,SAASR,EAAO;AAAA,gBAChB,MAAMA,EAAO;AAAA,gBACb,MAAMA,EAAO;AAAA,cAAA,GACZ,MAAM;AAAA,gBACPgB,EAAiBC,EAAiBjB,EAAO,IAAI,GAAG,CAAC;AAAA,cAAA,CAClD;AAAA,eACA,CAAC;AAAA,aACH,CAAC;AAAA,UACJc,EAAYN,EAAK,QAAQ,iBAAiB;AAAA,YACxC,MAAMR,EAAO;AAAA,UAAA,CACd;AAAA,WACA,EAAE,EACN,GAAG,GAAG;AAAA,QACPc,EAAYN,EAAK,QAAQ,QAAQ;AAAA,MAAA,CAClC;AAAA,OACA,CAAC;AAAA,EAEN;AAEA,CAAC;"}
1
+ {"version":3,"file":"index13.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue"],"sourcesContent":["<template>\n\t<span\n\t\tref=\"container\"\n\t\tclass=\"bb-base-checkbox-group\"\n\t\t:class=\"{\n\t\t\t'bb-base-checkbox-group--errors': hasErrors,\n\t\t\t'bb-base-checkbox-group--horizontal': direction === 'horizontal',\n\t\t\t'bb-base-checkbox-group--vertical': direction === 'vertical',\n\t\t}\"\n\t>\n\t\t<span class=\"bb-base-checkbox-group__container\">\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<span\n\t\t\t\tv-if=\"!options.length && loading\"\n\t\t\t\tclass=\"bb-base-checkbox-group__loading-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'loading'\">{{ loadingText }}</slot>\n\t\t\t</span>\n\t\t\t<span\n\t\t\t\tv-else-if=\"!options.length\"\n\t\t\t\tclass=\"bb-base-select__no-data-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'no-data'\">{{ noDataText }}</slot>\n\t\t\t</span>\n\n\t\t\t<template\n\t\t\t\tv-for=\"(option, index) in options\"\n\t\t\t\t:key=\"option?.id || option.jsonValue\"\n\t\t\t>\n\t\t\t\t<slot :item=\"option.original\" name=\"option:prepend\"></slot>\n\t\t\t\t<label\n\t\t\t\t\tclass=\"bb-base-checkbox-group-option\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'bb-base-checkbox-group-option__selected': option.selected,\n\t\t\t\t\t}\"\n\t\t\t\t>\n\t\t\t\t\t<BaseCheckbox\n\t\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t\t:autofocus=\"autofocus && !index\"\n\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t:color=\"color\"\n\t\t\t\t\t\t:disabled=\"option.disabled\"\n\t\t\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t\t\t:name=\"name\"\n\t\t\t\t\t\t:on-change=\"(event: Event) => onChange(event, option)\"\n\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t:true-value=\"option.value\"\n\t\t\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t\t\t><template #icon=\"data\"\n\t\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\t\tname=\"icon\"\n\t\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t\tv-bind=\"data\" /></template\n\t\t\t\t\t></BaseCheckbox>\n\t\t\t\t\t<span\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text--hidden': hideLabel,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\tname=\"label\"\n\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t>{{ option.text }}</slot\n\t\t\t\t\t\t></span\n\t\t\t\t\t>\n\t\t\t\t</label>\n\t\t\t\t<slot :item=\"option.original\" name=\"option:append\"></slot>\n\t\t\t</template>\n\t\t\t<slot name=\"append\"></slot>\n\t\t</span>\n\t</span>\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 '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\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 * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\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\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'mousedown', event: MouseEvent): void;\n\n\t(e: 'mouseup', event: MouseEvent): void;\n\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\tmatchStrategy: 'string',\n\tmodelValueDebounceTime: 0,\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<BaseCheckboxGroupEvents>();\n\ndefineSlots<{\n\tprepend?: (props: {}) => any;\n\tloading?: (props: {}) => any;\n\t'no-data'?: (props: {}) => any;\n\t'option:prepend'?: (props: { item: 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: { item: T }) => any;\n\tappend?: (props: {}) => any;\n}>();\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst { loading, options } = useOptions({\n\tdependencies: toRef(() => props.dependencies),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(() => props.disabled),\n\temitter: (value) => emit('update:modelValue', value),\n\tenforceCoherence: toRef(() => props.enforceCoherence),\n\tid: props.id,\n\timmediate: true,\n\tinitialItems: toRef(() => props.items),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmatchStrategy: props.matchStrategy,\n\tmodelValue: toRef(() => props.modelValue),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n});\n\n/**\n * When selecting an option split behavior based on single or multiple selection\n */\nconst onOptionSelected = (option: Option) => {\n\tlet valueToEmit;\n\tif (option.selected) {\n\t\tvalueToEmit = props.modelValue\n\t\t\t.slice(0, option.selectedIndex)\n\t\t\t.concat(props.modelValue.slice(option.selectedIndex + 1));\n\t} else {\n\t\tvalueToEmit = props.modelValue.concat(option.value);\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tonOptionSelected(option);\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","useOptions","toRef","value","onOptionSelected","option","valueToEmit","onChange","event","eventListeners","onDocumentFocus","onDocumentClick","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiOA,UAAMA,IAAQC,GAURC,IAAOC,GAkBPC,IAAYC,KACZC,IAASD,EAAI,EAAK,GAElB,EAAE,SAAAE,GAAS,SAAAC,EAAQ,IAAIC,EAAW;AAAA,MACvC,cAAcC,EAAM,MAAMV,EAAM,YAAY;AAAA,MAC5C,kBAAkBA,EAAM;AAAA,MACxB,UAAUU,EAAM,MAAMV,EAAM,QAAQ;AAAA,MACpC,SAAS,CAACW,MAAUT,EAAK,qBAAqBS,CAAK;AAAA,MACnD,kBAAkBD,EAAM,MAAMV,EAAM,gBAAgB;AAAA,MACpD,IAAIA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AAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD,GAGKA,IAAkB,CAACH,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index131.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as B } from "./index211.js";
2
- import { tryOnScopeDispose as E } from "./index211.js";
1
+ import { toValue as B } from "./index197.js";
2
+ import { tryOnScopeDispose as E } from "./index197.js";
3
3
  import { ref as c, computed as t } from "vue";
4
4
  function h(a) {
5
5
  var l;