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
@@ -0,0 +1,95 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ export type BbButtonProps = {
3
+ /**
4
+ * Class to apply when the link is active
5
+ */
6
+ activeClass?: string;
7
+ /**
8
+ * Value passed to the attribute `aria-current` when the link is exact active.
9
+ *
10
+ * @defaultValue `'page'`
11
+ */
12
+ ariaCurrentValue?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
13
+ /**
14
+ * Displays the component as full width.
15
+ */
16
+ block?: boolean;
17
+ data?: object;
18
+ /**
19
+ * Disables the component
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * Class to apply when the link is exact active
24
+ */
25
+ exactActiveClass?: string;
26
+ headers?: object;
27
+ /**
28
+ * Returns the hyperlink's URL.
29
+ *
30
+ * Can be set, to change the URL.
31
+ */
32
+ href?: HTMLAnchorElement['href'];
33
+ method?: 'get' | 'post' | 'put' | 'patch' | 'delete';
34
+ onBefore?: () => void;
35
+ onCancel?: () => void;
36
+ onCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;
37
+ onFinish?: () => void;
38
+ only?: string[];
39
+ onProgress?: (progress: {
40
+ percentage: number | undefined;
41
+ }) => void;
42
+ onStart?: () => void;
43
+ onSuccess?: () => void;
44
+ preserveScroll?: boolean | ((props: {
45
+ [key: string]: unknown;
46
+ }) => boolean);
47
+ preserveState?: boolean | ((props: {
48
+ [key: string]: unknown;
49
+ }) => boolean) | null;
50
+ queryStringArrayFormat?: 'brackets' | 'indices';
51
+ /**
52
+ * Calls `router.replace` instead of `router.push`.
53
+ */
54
+ replace?: boolean;
55
+ /**
56
+ * Any HTML tag corresponding to a non-void HTMl element.
57
+ */
58
+ tag?: string;
59
+ /**
60
+ * Sets or retrieves the window or frame at which to target content.
61
+ */
62
+ target?: HTMLAnchorElement['target'];
63
+ /**
64
+ * Text content of the component.
65
+ */
66
+ text?: string;
67
+ /**
68
+ * Route Location the link should navigate to when clicked on.
69
+ */
70
+ to?: RouteLocationRaw;
71
+ /**
72
+ * Gets the classification and default behavior of the button.
73
+ */
74
+ type?: HTMLButtonElement['type'];
75
+ };
76
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<BbButtonProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BbButtonProps>>>, {}, {}>, Readonly<{
77
+ default?: ((props: {}) => any) | undefined;
78
+ }> & {
79
+ default?: ((props: {}) => any) | undefined;
80
+ }>;
81
+ export default _default;
82
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
83
+ type __VLS_TypePropsToRuntimeProps<T> = {
84
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
85
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
86
+ } : {
87
+ type: import('vue').PropType<T[K]>;
88
+ required: true;
89
+ };
90
+ };
91
+ type __VLS_WithTemplateSlots<T, S> = T & {
92
+ new (): {
93
+ $slots: S;
94
+ };
95
+ };
@@ -0,0 +1,125 @@
1
+ export { useBroadcastChannelInstance } from "./composables/useBroadcastChannelInstance";
2
+ export { useConfirm } from "./composables/useConfirm";
3
+ export { useCountdown } from "./composables/useCountdown";
4
+ export { useToast } from "./composables/useToast";
5
+ export { useOptions } from "./composables/useOptions";
6
+ export { useId } from "./composables/useId";
7
+ export { useWizard, wizardInjectionKey } from "./composables/useWizard";
8
+ export type { Step, WizardState } from "./composables/useWizard";
9
+ export type { BaseOption, Option } from "./composables/useOptions";
10
+ export { default as BaseButton } from "./components/BaseButton/BaseButton.vue";
11
+ export { default as BaseCheckbox } from "./components/BaseCheckbox/BaseCheckbox.vue";
12
+ export { default as BaseCheckboxGroup } from "./components/BaseCheckboxGroup/BaseCheckboxGroup.vue";
13
+ export { default as BaseDatePicker } from "./components/BaseDatePicker/BaseDatePicker.vue";
14
+ export { default as BaseDatePickerInput } from "./components/BaseDatePickerInput/BaseDatePickerInput.vue";
15
+ export { default as BaseDialog } from "./components/BaseDialog/BaseDialog.vue";
16
+ export { default as BaseInputContainer } from "./components/BaseInputContainer/BaseInputContainer.vue";
17
+ export { default as BaseNumberInput } from "./components/BaseNumberInput/BaseNumberInput.vue";
18
+ export { default as BaseRadio } from "./components/BaseRadio/BaseRadio.vue";
19
+ export { default as BaseRadioGroup } from "./components/BaseRadioGroup/BaseRadioGroup.vue";
20
+ export { default as BaseRating } from "./components/BaseRating/BaseRating.vue";
21
+ export { default as BaseSelect } from "./components/BaseSelect/BaseSelect.vue";
22
+ export { default as BaseSlider } from "./components/BaseSlider/BaseSlider.vue";
23
+ export { default as BaseSwitch } from "./components/BaseSwitch/BaseSwitch.vue";
24
+ export { default as BaseSwitchGroup } from "./components/BaseSwitchGroup/BaseSwitchGroup.vue";
25
+ export { default as BaseTextarea } from "./components/BaseTextarea/BaseTextarea.vue";
26
+ export { default as BaseTextInput } from "./components/BaseTextInput/BaseTextInput.vue";
27
+ export { default as BbAccordion } from "./components/BbAccordion/BbAccordion.vue";
28
+ export { default as BbAlert } from "./components/BbAlert/BbAlert.vue";
29
+ export { default as BbAvatar } from "./components/BbAvatar/BbAvatar.vue";
30
+ export { default as BbBadge } from "./components/BbBadge/BbBadge.vue";
31
+ export { default as BbBreadcrumbs } from "./components/BbBreadcrumbs/BbBreadcrumbs.vue";
32
+ export { default as BbButton } from "./components/BbButton/BbButton.vue";
33
+ export { default as BbCheckbox } from "./components/BbCheckbox/BbCheckbox.vue";
34
+ export { default as BbCheckboxGroup } from "./components/BbCheckboxGroup/BbCheckboxGroup.vue";
35
+ export { default as BbChip } from "./components/BbChip/BbChip.vue";
36
+ export { default as BbCollapsible } from "./components/BbCollapsible/BbCollapsible.vue";
37
+ export { default as BbConfirm } from "./components/BbConfirm/BbConfirm.vue";
38
+ export { default as BbDatePickerInput } from "./components/BbDatePickerInput/BbDatePickerInput.vue";
39
+ export { default as BbDialog } from "./components/BbDialog/BbDialog.vue";
40
+ export { default as BbDropdown } from "./components/BbDropdown/BbDropdown.vue";
41
+ export { default as BbDropdownButton } from "./components/BbDropdownButton/BbDropdownButton.vue";
42
+ export { default as BbDropzone } from "./components/BbDropzone/BbDropzone.vue";
43
+ export { default as BbHover } from "./components/BbHover/BbHover.vue";
44
+ export { default as BbIcon } from "./components/BbIcon/BbIcon.vue";
45
+ export { default as BbIntersection } from "./components/BbIntersection/BbIntersection.vue";
46
+ export { default as BbNumberInput } from "./components/BbNumberInput/BbNumberInput.vue";
47
+ export { default as BbOffCanvas } from "./components/BbOffCanvas/BbOffCanvas.vue";
48
+ export { default as BbPagination } from "./components/BbPagination/BbPagination.vue";
49
+ export { default as BbPopover } from "./components/BbPopover/BbPopover.vue";
50
+ export { default as BbProgress } from "./components/BbProgress/BbProgress.vue";
51
+ export { default as BbRadio } from "./components/BbRadio/BbRadio.vue";
52
+ export { default as BbRadioGroup } from "./components/BbRadioGroup/BbRadioGroup.vue";
53
+ export { default as BbRating } from "./components/BbRating/BbRating.vue";
54
+ export { default as BbRatio } from "./components/BbRatio/BbRatio.vue";
55
+ export { default as BbSelect } from "./components/BbSelect/BbSelect.vue";
56
+ export { default as BbSlider } from "./components/BbSlider/BbSlider.vue";
57
+ export { default as BbSmoothHeight } from "./components/BbSmoothHeight/BbSmoothHeight.vue";
58
+ export { default as BbSpinner } from "./components/BbSpinner/BbSpinner.vue";
59
+ export { default as BbSwitch } from "./components/BbSwitch/BbSwitch.vue";
60
+ export { default as BbSwitchGroup } from "./components/BbSwitchGroup/BbSwitchGroup.vue";
61
+ export { default as BbTab } from "./components/BbTab/BbTab.vue";
62
+ export { default as BbTable } from "./components/BbTable/BbTable.vue";
63
+ export { default as BbTag } from "./components/BbTag/BbTag.vue";
64
+ export { default as BbTextarea } from "./components/BbTextarea/BbTextarea.vue";
65
+ export { default as BbTextInput } from "./components/BbTextInput/BbTextInput.vue";
66
+ export { default as BbToast } from "./components/BbToast/BbToast.vue";
67
+ export { default as BbTooltip } from "./components/BbTooltip/BbTooltip.vue";
68
+ export { default as BbTree } from "./components/BbTree/BbTree.vue";
69
+ export type { BaseButtonProps } from "./components/BaseButton/BaseButton.vue";
70
+ export type { BaseCheckboxGroupProps, BaseCheckboxGroupEvents } from "./components/BaseCheckboxGroup/BaseCheckboxGroup.vue";
71
+ export type { BaseCheckboxProps, BaseCheckboxEvents } from "./components/BaseCheckbox/BaseCheckbox.vue";
72
+ export type { BaseDatePickerInputProps, BaseDatePickerInputEvents } from "./components/BaseDatePickerInput/BaseDatePickerInput.vue";
73
+ export type { BaseDatePickerProps } from "./components/BaseDatePicker/BaseDatePicker.vue";
74
+ export type { BaseDialogProps, Sizes as BaseDialogSizes, BaseDialogEvents } from "./components/BaseDialog/BaseDialog.vue";
75
+ export type { BaseInputContainerProps, BaseInputContainerSlots } from "./components/BaseInputContainer/BaseInputContainer.vue";
76
+ export type { BaseNumberInputProps, BaseNumberInputEvents } from "./components/BaseNumberInput/BaseNumberInput.vue";
77
+ export type { BaseRadioGroupProps, BaseRadioGroupEvents } from "./components/BaseRadioGroup/BaseRadioGroup.vue";
78
+ export type { BaseRadioProps, BaseRadioEvents } from "./components/BaseRadio/BaseRadio.vue";
79
+ export type { BaseRatingProps, BaseRatingEvents } from "./components/BaseRating/BaseRating.vue";
80
+ export type { BaseSelectProps, BaseSelectEvents } from "./components/BaseSelect/BaseSelect.vue";
81
+ export type { BaseSliderProps, BaseSliderEvents } from "./components/BaseSlider/BaseSlider.vue";
82
+ export type { BaseSwitchGroupProps, BaseSwitchGroupEvents } from "./components/BaseSwitchGroup/BaseSwitchGroup.vue";
83
+ export type { BaseSwitchProps, BaseSwitchEvents } from "./components/BaseSwitch/BaseSwitch.vue";
84
+ export type { BaseTextareaProps, BaseTextareaEvents } from "./components/BaseTextarea/BaseTextarea.vue";
85
+ export type { BaseTextInputProps, BaseTextInputEvents } from "./components/BaseTextInput/BaseTextInput.vue";
86
+ export type { BbAccordionProps, BbAccordionEvents } from "./components/BbAccordion/BbAccordion.vue";
87
+ export type { BbAlertProps, BbAlertEvents } from "./components/BbAlert/BbAlert.vue";
88
+ export type { BbAvatarProps } from "./components/BbAvatar/BbAvatar.vue";
89
+ export type { BbBadgeProps } from "./components/BbBadge/BbBadge.vue";
90
+ export type { BbBreadcrumbsProps, Item as BbBreadcrumbsItem } from "./components/BbBreadcrumbs/BbBreadcrumbs.vue";
91
+ export type { BbButtonProps } from "./components/BbButton/BbButton.vue";
92
+ export type { BbCheckboxGroupProps, BbCheckboxGroupEvents } from "./components/BbCheckboxGroup/BbCheckboxGroup.vue";
93
+ export type { BbCheckboxProps, BbCheckboxEvents } from "./components/BbCheckbox/BbCheckbox.vue";
94
+ export type { BbChipProps, BbChipEvents } from "./components/BbChip/BbChip.vue";
95
+ export type { BbCollapsibleProps } from "./components/BbCollapsible/BbCollapsible.vue";
96
+ export type { BbDatePickerInputProps, BbDatePickerInputEvents } from "./components/BbDatePickerInput/BbDatePickerInput.vue";
97
+ export type { BbDialogProps, Sizes as BbDialogSizes, BbDialogEvents } from "./components/BbDialog/BbDialog.vue";
98
+ export type { BbDropdownButtonProps } from "./components/BbDropdownButton/BbDropdownButton.vue";
99
+ export type { BbDropdownProps, Item as BbDropdownItem } from "./components/BbDropdown/BbDropdown.vue";
100
+ export type { BbDropzoneProps, DropZoneError, BbDropzoneEvents } from "./components/BbDropzone/BbDropzone.vue";
101
+ export type { BbIconProps, Size as BbIconSizes } from "./components/BbIcon/BbIcon.vue";
102
+ export type { BbIntersectionProps, BbIntersectionEvents } from "./components/BbIntersection/BbIntersection.vue";
103
+ export type { BbNumberInputProps, BbNumberInputEvents } from "./components/BbNumberInput/BbNumberInput.vue";
104
+ export type { BbOffCanvasProps, Sizes as OffCanvasSizes, BbOffCanvasEvents } from "./components/BbOffCanvas/BbOffCanvas.vue";
105
+ export type { BbPaginationProps, BbPaginationEvents } from "./components/BbPagination/BbPagination.vue";
106
+ export type { BbPopoverProps, BbPopoverEvents } from "./components/BbPopover/BbPopover.vue";
107
+ export type { BbProgressProps } from "./components/BbProgress/BbProgress.vue";
108
+ export type { BbRadioGroupEvents, BbRadioGroupProps } from "./components/BbRadioGroup/BbRadioGroup.vue";
109
+ export type { BbRadioProps, BbRadioEvents } from "./components/BbRadio/BbRadio.vue";
110
+ export type { BbRatingProps, BbRatingEvents } from "./components/BbRating/BbRating.vue";
111
+ export type { BbRatioProps } from "./components/BbRatio/BbRatio.vue";
112
+ export type { BbSelectProps, BbSelectEvents, BbSelectSlots } from "./components/BbSelect/BbSelect.vue";
113
+ export type { BbSliderProps, BbSliderEvents } from "./components/BbSlider/BbSlider.vue";
114
+ export type { BbSmoothHeightProps, BbSmoothHeightSlots } from "./components/BbSmoothHeight/BbSmoothHeight.vue";
115
+ export type { BbSpinnerProps, Size as BbSpinnerSizes } from "./components/BbSpinner/BbSpinner.vue";
116
+ export type { BbSwitchGroupEvents, BbSwitchGroupProps } from "./components/BbSwitchGroup/BbSwitchGroup.vue";
117
+ export type { BbSwitchProps, BbSwitchEvents } from "./components/BbSwitch/BbSwitch.vue";
118
+ export type { BbTableProps, TableColumn, BbTableEvents, BbTableSlots } from "./components/BbTable/types";
119
+ export type { BbTabProps, BbTabEvents, BbTabItem } from "./components/BbTab/BbTab.vue";
120
+ export type { BbTagProps, BbTagEvents } from "./components/BbTag/BbTag.vue";
121
+ export type { BbTextareaProps, BbTextareaEvents } from "./components/BbTextarea/BbTextarea.vue";
122
+ export type { BbTextInputProps, BbTextInputEvents } from "./components/BbTextInput/BbTextInput.vue";
123
+ export type { BbToastProps } from "./components/BbToast/BbToast.vue";
124
+ export type { BbTooltipProps } from "./components/BbTooltip/BbTooltip.vue";
125
+ export type { BbTreeProps, TreeItem, BbTreeSlots } from "./components/BbTree/BbTree.vue";
package/dist/index10.js CHANGED
@@ -1,5 +1,2 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
5
2
  //# sourceMappingURL=index10.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index10.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index10.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index100.js CHANGED
@@ -1,5 +1,2 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
5
2
  //# sourceMappingURL=index100.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index100.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index100.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index101.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ie, ref as O, computed as p, onMounted as de, watch as q, openBlock as c, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as pe, mergeProps as fe } from "vue";
2
- import { add as me } from "./index228.js";
2
+ import { add as me } from "./index227.js";
3
3
  import { clamp as ye } from "./index196.js";
4
4
  import { deepEqual as he } from "./index123.js";
5
5
  import { isNil as j } from "./index120.js";
6
6
  import { isNotNil as _e } from "./index124.js";
7
7
  import { useId as ke } from "./index7.js";
8
8
  import { useItemValue as ge } from "./index126.js";
9
- import { when as ve } from "./index198.js";
9
+ import { when as ve } from "./index211.js";
10
10
  import G from "./index11.js";
11
11
  import "./index12.js";
12
12
  import Ce from "./index25.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index101.js","sources":["../src/components/BbTable/BbTable.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, renderSlot as _renderSlot, createVNode as _createVNode, unref as _unref, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"bb-table-header-row\" }\nconst _hoisted_3 = { class: \"bb-table-header__content\" }\nconst _hoisted_4 = { class: \"bb-table-check__label-text\" }\nconst _hoisted_5 = {\n key: 1,\n class: \"bb-table-radio__label-text\"\n}\nconst _hoisted_6 = { class: \"bb-table-header__content\" }\nconst _hoisted_7 = { class: \"bb-table-header__content\" }\nconst _hoisted_8 = { class: \"bb-table-loading__row\" }\nconst _hoisted_9 = [\"colspan\"]\nconst _hoisted_10 = { class: \"bb-table-loading__text\" }\nconst _hoisted_11 = {\n class: \"bb-table-skeleton__container\",\n role: \"status\"\n}\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"bb-table-skeleton-item__avatar-container\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"bb-table-skeleton-item__avatar\" })\n], -1)\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"bb-table-skeleton-item__text\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"bb-table-skeleton-item__line\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"bb-table-skeleton-item__line\" })\n], -1)\nconst _hoisted_14 = [\n _hoisted_12,\n _hoisted_13\n]\nconst _hoisted_15 = { class: \"bb-table-no-data__row\" }\nconst _hoisted_16 = [\"colspan\"]\nconst _hoisted_17 = { class: \"bb-table-no-data__text\" }\nconst _hoisted_18 = [\"onClick\", \"onContextmenu\", \"onDblclick\"]\nconst _hoisted_19 = { class: \"bb-table-check__label-text\" }\nconst _hoisted_20 = { class: \"bb-table-radio__label-text\" }\n\nimport { add } from '@/utilities/functions/add';\nimport { clamp } from '@/utilities/functions/clamp';\nimport { deepEqual } from 'fast-equals';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport { type Ref, computed, onMounted, ref, watch } from 'vue';\nimport { useId } from '@/composables/useId';\nimport { useItemValue } from '@/composables/useItemValue';\nimport { when } from '@/utilities/functions/when';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport BaseRadio from '../BaseRadio/BaseRadio.vue';\nimport type {\n\tBbTableProps,\n\tMappedCell,\n\tMappedHeader,\n\tMappedItem,\n\tTableColumn,\n\tBbTableEvents,\n\tBbTableSlots,\n} from './types';\nimport type { Classes } from '@/types/Classes';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTable',\n props: {\n accessibleLabel: { type: Function, default: (columns: MappedCell[]) =>\n\t\t['Seleziona'].concat(columns.map((col) => col.content)).join(' ') },\n actions: { type: Boolean },\n actionsText: { default: 'Azioni' },\n align: { default: 'left' },\n allowSelectAll: { type: Boolean, default: true },\n caption: {},\n columns: { default: () => [] },\n compact: { type: Boolean },\n dependencies: { default: () => [] },\n depsDebounceTime: { default: 0 },\n disabled: { type: Boolean },\n displayCaption: { type: Boolean },\n fixed: { type: Boolean },\n fixedColumns: { default: () => [] },\n fixedHeader: { type: Boolean },\n items: { type: [Array, Function], default: () => [] },\n itemValue: {},\n legend: {},\n loading: { type: Boolean },\n loadingText: { default: 'Caricamento' },\n matchStrategy: { default: 'string' },\n modelValue: {},\n multiple: { type: Boolean, default: true },\n name: {},\n noDataText: { default: 'Non ci sono elementi da visualizzare' },\n readonly: {},\n selectable: { type: [Boolean, Function] },\n selectAll: { type: Boolean },\n selectAllText: { default: 'Seleziona tutti gli elementi di questa pagina' },\n selectText: { default: 'Seleziona un elemento' },\n tdClass: {},\n thClass: {}\n },\n emits: [\"click:row\", \"contextmenu:row\", \"dblclick:row\", \"update:modelValue\", \"update:selectAll\"],\n setup(__props: any, { emit: __emit }) {\n\nconst { getItemValue } = useItemValue();\n\n/**\n * We do not allow the use of the checkbox or radio themselves as\n * they would not be submitted if the user has changed\n * page in the meantime, rather we provide a temporary\n * name so radio still work but we later add hidden inputs for submission\n */\nconst randomName = useId().id.value;\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst container = ref<HTMLElement>();\n\nconst accessibleLabel = props.accessibleLabel;\nconst loadingText = props.loadingText;\nconst noDataText = props.noDataText;\nconst selectAllText = props.selectAllText;\nconst selectText = props.selectText;\n\n// We render the table in a fieldset to group checkbox / radios if the table is selectable\nconst containerTag = computed(() => (props.selectable ? 'fieldset' : 'div'));\nconst internalLoading = ref(false);\nconst loading = computed(() => props.loading || internalLoading.value);\n\nconst replacementContentSpan = computed(() => {\n\treturn [!!props.selectable, !!props.actions].reduce(\n\t\t(acc: number, current) => acc + Number(!!current),\n\t\tprops.columns.length\n\t);\n});\n\n/**\n * Indexes modelValue to a map so when can easily know which values are selected\n * (using JSON to circumvent identical object not being equal in JS)\n */\nconst modelValueIndexed = computed(() => {\n\tif (props.matchStrategy === 'string') {\n\t\tlet map: { [key: string]: number } = {};\n\t\t[].concat(props.modelValue).forEach((value: any, index: number) => {\n\t\t\tmap[JSON.stringify(value)] = index;\n\t\t});\n\t\treturn {\n\t\t\tget: (value: any) => map[JSON.stringify(value)],\n\t\t};\n\t} else if (props.matchStrategy === 'equality') {\n\t\tconst map = []\n\t\t\t.concat(props.modelValue)\n\t\t\t.map((value, index) => [value, index]);\n\n\t\treturn {\n\t\t\tget: (key: any) => {\n\t\t\t\treturn map.find((pairs) => deepEqual(pairs[0], key))?.[1];\n\t\t\t},\n\t\t};\n\t} else {\n\t\tthrow new Error('No match strategy has been defined');\n\t}\n});\n\n/**\n * Map column identifiers to slot names\n */\nconst slotNames = computed(() =>\n\tprops.columns.reduce((acc: { [key: string]: string }, curr: TableColumn) => {\n\t\tconst mapped = curr.key.split(/\\W+/g).join('_');\n\t\tacc[curr.key] = mapped;\n\t\treturn acc;\n\t}, {})\n);\n\n/**\n * Items as loaded from the function or from the outside\n */\nconst internalItems = ref<any[]>([]);\n\nconst getItems = async () => {\n\tlet items: any[] = [];\n\tif (Array.isArray(props.items)) {\n\t\titems = props.items;\n\t} else {\n\t\tif (typeof props.items === 'function') {\n\t\t\tinternalLoading.value = true;\n\t\t\titems = await props.items(true);\n\t\t\tinternalLoading.value = false;\n\t\t}\n\t}\n\tinternalItems.value = items;\n};\n\nonMounted(getItems);\n\n/**\n * When item changes update internal items and\n * deselect everything\n */\nwatch(\n\t() => props.items,\n\tasync () => {\n\t\tawait getItems();\n\t\tif (props.multiple) {\n\t\t\temit('update:modelValue', []);\n\t\t} else {\n\t\t\temit('update:modelValue', null);\n\t\t}\n\t}\n);\n/* Prevent vue from sharing this function across instances */\nlet timeout: ReturnType<typeof setTimeout>;\nconst onDependencyChange = async (curr: any[], previous?: any[]) => {\n\tif (JSON.stringify(curr) !== JSON.stringify(previous)) {\n\t\tif (timeout) {\n\t\t\tclearTimeout(timeout);\n\t\t}\n\t\ttimeout = setTimeout(async () => {\n\t\t\tawait getItems();\n\t\t\tif (props.multiple) {\n\t\t\t\temit('update:modelValue', []);\n\t\t\t} else {\n\t\t\t\temit('update:modelValue', null);\n\t\t\t}\n\t\t}, props.depsDebounceTime);\n\t}\n};\nwatch(() => props.dependencies, onDependencyChange);\n\n/**\n * Take the columns and generate a simplified array for headers display\n */\nconst mappedHeaders = computed(() =>\n\tprops.columns.map((column: TableColumn): MappedHeader => {\n\t\tconst align = column.align || 'left';\n\t\tconst { label, key } = column;\n\t\tconst slotName = `header_${slotNames.value[column.key]}`;\n\t\t// Create a single merged array of all the passed classes\n\t\tlet classes: Classes = [`bb-table-header--${align}`];\n\t\tif (props.thClass) {\n\t\t\tclasses = classes.concat(props.thClass);\n\t\t}\n\t\tif (column.thClass) {\n\t\t\tclasses = classes.concat(column.thClass);\n\t\t}\n\t\treturn {\n\t\t\talign,\n\t\t\tkey,\n\t\t\tlabel,\n\t\t\tslotName,\n\t\t\tclasses,\n\t\t};\n\t})\n);\n\n/**\n * Map items to an an array that represents the entire row.\n * Track every logic here so we don't have inline callbacks in the template.\n */\nconst mappedItems = computed<MappedItem[]>(() => {\n\treturn internalItems.value.map((item: any) => {\n\t\t// By default the value if the item is the item.\n\t\tconst value = getItemValue(item, props.itemValue);\n\t\tconst jsonValue = JSON.stringify(value);\n\n\t\t/**\n\t\t * Item is selectable only if the table allows or item\n\t\t * passes iteratee and the selection is not disabled\n\t\t */\n\t\tlet selectable = !!props.selectable;\n\t\tif (typeof props.selectable === 'function') {\n\t\t\tselectable = !!props.selectable(item);\n\t\t}\n\t\tselectable = selectable && !props.disabled;\n\n\t\t//Track the index at which the item has been selected for easy of removal\n\t\tconst selectedIndex = modelValueIndexed.value.get(value);\n\t\tconst selected = !isNil(selectedIndex);\n\n\t\t// Create a projection of the columns and run all formatter logic so\n\t\t// we just display content in the template\n\t\tconst cols: MappedCell[] = props.columns.map((column) => {\n\t\t\t// Slot identifier\n\t\t\tconst slotName = slotNames.value[column.key];\n\t\t\tconst align = column.align || 'left';\n\t\t\tconst { label, key } = column;\n\t\t\t// The content\n\t\t\tlet content = getItemValue(item, column.key);\n\t\t\tif (\n\t\t\t\tcolumn.formatter &&\n\t\t\t\t// By default the formatter runs anyway\n\t\t\t\t(!isNil(content) || column.formatOnNull !== false)\n\t\t\t) {\n\t\t\t\tcontent = column.formatter(content, column.key, item);\n\t\t\t}\n\t\t\tif (column.placeholder && isNil(content)) {\n\t\t\t\tcontent = column.placeholder;\n\t\t\t}\n\n\t\t\t// Merge global and specific classes\n\t\t\tlet classes: Classes = [`bb-table-data__cell--${align}`];\n\t\t\tif (props.tdClass) {\n\t\t\t\tif (typeof props.tdClass === 'function') {\n\t\t\t\t\tlet temp = props.tdClass(content, column.key, item);\n\t\t\t\t\tif (temp) {\n\t\t\t\t\t\tclasses = classes.concat(temp);\n\t\t\t\t\t}\n\t\t\t\t} else classes = classes.concat(props.tdClass);\n\t\t\t}\n\t\t\tif (column.tdClass) {\n\t\t\t\tif (typeof column.tdClass === 'function') {\n\t\t\t\t\tlet temp = column.tdClass(content, column.key, item);\n\t\t\t\t\tif (temp) {\n\t\t\t\t\t\tclasses = classes.concat(temp);\n\t\t\t\t\t}\n\t\t\t\t} else classes = classes.concat(column.tdClass);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\talign,\n\t\t\t\tclasses,\n\t\t\t\tcontent,\n\t\t\t\tkey,\n\t\t\t\tlabel,\n\t\t\t\tslotName,\n\t\t\t};\n\t\t});\n\n\t\tconst accessibleLabelText = accessibleLabel(cols, item);\n\n\t\tif (isNotNil(selectedIndex)) {\n\t\t\treturn {\n\t\t\t\taccessibleLabel: accessibleLabelText,\n\t\t\t\tcols,\n\t\t\t\tjsonValue,\n\t\t\t\toriginal: item,\n\t\t\t\tselectable,\n\t\t\t\tselected: true,\n\t\t\t\tselectedIndex,\n\t\t\t\tvalue,\n\t\t\t\tonRowClick: (event: MouseEvent) =>\n\t\t\t\t\temit('click:row', event, item, selected),\n\t\t\t\tonRowContextMenu: (event: MouseEvent) =>\n\t\t\t\t\temit('contextmenu:row', event, item, selected),\n\t\t\t\tonRowDblClick: (event: MouseEvent) =>\n\t\t\t\t\temit('dblclick:row', event, item, selected),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\taccessibleLabel: accessibleLabelText,\n\t\t\tcols,\n\t\t\tjsonValue,\n\t\t\toriginal: item,\n\t\t\tselectable,\n\t\t\tselected: false,\n\t\t\tselectedIndex,\n\t\t\tvalue,\n\t\t\tonRowClick: (event: MouseEvent) =>\n\t\t\t\temit('click:row', event, item, selected),\n\t\t\tonRowContextMenu: (event: MouseEvent) =>\n\t\t\t\temit('contextmenu:row', event, item, selected),\n\t\t\tonRowDblClick: (event: MouseEvent) =>\n\t\t\t\temit('dblclick:row', event, item, selected),\n\t\t};\n\t});\n});\n\n/**\n * Same behavior as GMail.\n * If anything is selected remove it.\n * Then when empty you select all items of this page\n */\nconst onChangeSelectAll = (value: boolean) => {\n\tlet selectAllValue = value;\n\tlet modelValue: any[] = [];\n\n\tif (selectAllValue) {\n\t\tmodelValue = mappedItems.value.reduce((acc: any[], curr) => {\n\t\t\tif (curr.selectable) acc.push(curr.value);\n\t\t\treturn acc;\n\t\t}, []);\n\t}\n\temit('update:modelValue', modelValue);\n\temit('update:selectAll', value);\n};\n\nconst allSelected = computed(\n\t() =>\n\t\t!!(\n\t\t\tmappedItems.value.length &&\n\t\t\tmappedItems.value.every((item) => item.selectable && item.selected)\n\t\t)\n);\nconst indeterminate = computed(\n\t() =>\n\t\tmappedItems.value.some((item) => !item.selected) &&\n\t\t!!props.modelValue?.length\n);\n/**\n * Whenever an input changes update modelValue if any\n */\nconst onInputChange = (item: MappedItem) => {\n\tlet valueToEmit;\n\tif (props.multiple) {\n\t\tif (item.selected) {\n\t\t\tvalueToEmit = props.modelValue\n\t\t\t\t.slice(0, item.selectedIndex)\n\t\t\t\t.concat(props.modelValue.slice([item.selectedIndex + 1]));\n\t\t} else {\n\t\t\tvalueToEmit = props.modelValue.concat(item.value);\n\t\t}\n\t} else {\n\t\tvalueToEmit = item.value;\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\n/**\n * When using this component for submission we add a bunch of hidden inputs\n * so the submitted inputs is on par with v-model\n */\n\n/**\n * This is used to keep the value compatible to common html expected values.\n * Convert to string everything that's not but do not double encode strings\n */\nconst makeInputValue = when(\n\t(item: unknown) => typeof item !== 'string',\n\tJSON.stringify\n);\nconst hiddenInputs = computed(() => {\n\treturn [].concat(props.modelValue).map((current) => {\n\t\tconst value = makeInputValue(current);\n\t\treturn {\n\t\t\tdisabled: props.disabled,\n\t\t\tname: props.name,\n\t\t\ttype: 'hidden',\n\t\t\tvalue: value,\n\t\t};\n\t});\n});\n\nconst skeletonLength = computed(() => {\n\treturn clamp(internalItems.value.length, 4, 10);\n});\n\nwatch(\n\t() => mappedItems.value,\n\t() => {\n\t\tif (props.fixedColumns.length && props.items) {\n\t\t\tif (container.value) {\n\t\t\t\t// Get all the headers\n\t\t\t\tconst headers = Array.from(\n\t\t\t\t\tcontainer.value.querySelectorAll<HTMLElement>('thead th')\n\t\t\t\t);\n\n\t\t\t\ttype MappedColumn = {\n\t\t\t\t\tindex: number;\n\t\t\t\t\tposition: 'left' | 'right';\n\t\t\t\t\twidth: number;\n\t\t\t\t\toffset: number;\n\t\t\t\t};\n\n\t\t\t\t/**\n\t\t\t\t * For each of the columns to fix create an helper object\n\t\t\t\t */\n\t\t\t\tconst mappedColumns = props.fixedColumns.reduce((acc, curr) => {\n\t\t\t\t\tconst index = typeof curr === 'number' ? curr : curr.index;\n\t\t\t\t\tconst position = typeof curr === 'number' ? 'left' : curr.position;\n\t\t\t\t\tconst clientRect = headers[index].getBoundingClientRect();\n\t\t\t\t\tconst width = Math.floor(clientRect.width);\n\t\t\t\t\tconst offset = acc\n\t\t\t\t\t\t.filter((el) => el.position === position)\n\t\t\t\t\t\t.map((el) => el.width)\n\t\t\t\t\t\t.reduce(add, 0);\n\n\t\t\t\t\tconst mapped: MappedColumn = {\n\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\tposition: position,\n\t\t\t\t\t\twidth: width,\n\t\t\t\t\t\toffset: offset,\n\t\t\t\t\t};\n\t\t\t\t\tacc.push(mapped);\n\t\t\t\t\treturn acc;\n\t\t\t\t}, [] as MappedColumn[]);\n\n\t\t\t\tconst rows = Array.from(container.value?.querySelectorAll('tr'));\n\t\t\t\tconst affectedCells = rows.map((row) =>\n\t\t\t\t\tArray.from(\n\t\t\t\t\t\trow.querySelectorAll<HTMLElement>(\n\t\t\t\t\t\t\tmappedColumns\n\t\t\t\t\t\t\t\t.map((el) => `:scope > :nth-child(${el.index + 1})`)\n\t\t\t\t\t\t\t\t.join(', ')\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\taffectedCells.forEach((row) => {\n\t\t\t\t\trow.forEach((cell, index) => {\n\t\t\t\t\t\tcell.style.position = 'sticky';\n\n\t\t\t\t\t\tif (mappedColumns[index].position === 'left') {\n\t\t\t\t\t\t\tcell.style.left = `${mappedColumns[index].offset}px`;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.style.right = `${mappedColumns[index].offset}px`;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(containerTag.value), {\n ref_key: \"container\",\n ref: container,\n class: _normalizeClass({\n\t\t\t'bb-table': true,\n\t\t\t[`bb-table--align-${_ctx.align}`]: true,\n\t\t\t'bb-table--compact': _ctx.compact,\n\t\t\t'bb-table--fixed': _ctx.fixed,\n\t\t\t'bb-table--fixed-header': _ctx.fixedHeader,\n\t\t\t'bb-table--loading': loading.value,\n\t\t\t'bb-table--empty': !internalItems.value.length,\n\t\t\t'bb-table--selectable': _ctx.selectable,\n\t\t})\n }, {\n default: _withCtx(() => [\n (_ctx.selectable)\n ? (_openBlock(), _createElementBlock(\"legend\", _hoisted_1, _toDisplayString(_ctx.legend), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"table\", null, [\n (_ctx.caption)\n ? (_openBlock(), _createElementBlock(\"caption\", {\n key: 0,\n class: _normalizeClass({\n\t\t\t\t\t'bb-table-caption': true,\n\t\t\t\t\t'bb-table-caption--hidden': !_ctx.displayCaption,\n\t\t\t\t})\n }, _toDisplayString(_ctx.caption), 3))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"thead\", null, [\n _renderSlot(_ctx.$slots, \"thead\", {}, () => [\n _createElementVNode(\"tr\", _hoisted_2, [\n (_ctx.selectable)\n ? (_openBlock(), _createElementBlock(\"th\", {\n key: 0,\n class: _normalizeClass([\"bb-table-header bb-table-header--select\", _ctx.thClass]),\n scope: \"col\"\n }, [\n _renderSlot(_ctx.$slots, 'header_select', {\n multiple: _ctx.multiple,\n selectAll: !!_ctx.selectAll\n }, () => [\n _createElementVNode(\"span\", _hoisted_3, [\n (_ctx.allowSelectAll && _ctx.multiple)\n ? (_openBlock(), _createElementBlock(\"label\", {\n key: 0,\n class: _normalizeClass([\"bb-table-check__label\", {\n\t\t\t\t\t\t\t\t\t\t\t'bb-table-check__label--disabled': _ctx.disabled,\n\t\t\t\t\t\t\t\t\t\t}])\n }, [\n _createVNode(BaseCheckbox, {\n class: \"bb-table-check\",\n disabled: _ctx.disabled,\n indeterminate: indeterminate.value,\n \"model-value\": allSelected.value,\n name: `select_all_${_ctx.name || ''}`,\n readonly: _ctx.readonly,\n \"onUpdate:modelValue\": onChangeSelectAll\n }, null, 8, [\"disabled\", \"indeterminate\", \"model-value\", \"name\", \"readonly\"]),\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(_unref(selectAllText)), 1)\n ], 2))\n : (!_ctx.multiple)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_5, _toDisplayString(_unref(selectText)), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 2))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(mappedHeaders.value, (header, index) => {\n return (_openBlock(), _createElementBlock(\"th\", {\n key: header.key,\n class: _normalizeClass([\"bb-table-header\", header.classes]),\n scope: \"col\"\n }, [\n _renderSlot(_ctx.$slots, header.slotName, {\n classes: header.classes,\n item: undefined as unknown,\n items: internalItems.value,\n label: header.label\n }, () => [\n _createElementVNode(\"span\", _hoisted_6, _toDisplayString(header.label), 1)\n ])\n ], 2))\n }), 128)),\n (_ctx.actions)\n ? (_openBlock(), _createElementBlock(\"th\", {\n key: 1,\n class: _normalizeClass([\"bb-table-header bb-table-header--actions\", _ctx.thClass]),\n scope: \"col\"\n }, [\n _renderSlot(_ctx.$slots, \"header_actions\", { text: _ctx.actionsText }, () => [\n _createElementVNode(\"span\", _hoisted_7, _toDisplayString(_ctx.actionsText), 1)\n ])\n ], 2))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createElementVNode(\"tbody\", null, [\n (loading.value)\n ? _renderSlot(_ctx.$slots, \"loading\", {\n key: 0,\n items: internalItems.value\n }, () => [\n _createElementVNode(\"tr\", _hoisted_8, [\n _createElementVNode(\"td\", {\n class: \"bb-table-loading__cell\",\n colspan: replacementContentSpan.value\n }, [\n _createElementVNode(\"span\", _hoisted_10, _toDisplayString(_unref(loadingText)), 1),\n _createElementVNode(\"div\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(skeletonLength.value, (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: item,\n class: \"bb-table-skeleton-item\"\n }, _hoisted_14))\n }), 128))\n ])\n ], 8, _hoisted_9)\n ])\n ])\n : (!internalItems.value.length)\n ? _renderSlot(_ctx.$slots, 'no-data', { key: 1 }, () => [\n _createElementVNode(\"tr\", _hoisted_15, [\n _createElementVNode(\"td\", {\n class: \"bb-table-no-data__cell\",\n colspan: replacementContentSpan.value\n }, [\n _createElementVNode(\"span\", _hoisted_17, _toDisplayString(_unref(noDataText)), 1)\n ], 8, _hoisted_16)\n ])\n ])\n : _renderSlot(_ctx.$slots, \"tbody\", { key: 2 }, () => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(mappedItems.value, (item) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: item.jsonValue,\n class: \"bb-table-data__row\",\n onClick: item.onRowClick,\n onContextmenu: item.onRowContextMenu,\n onDblclick: item.onRowDblClick\n }, [\n (_ctx.selectable)\n ? (_openBlock(), _createElementBlock(\"td\", {\n key: 0,\n class: _normalizeClass([\"bb-table-data__cell bb-table-data__cell--select\", _ctx.tdClass])\n }, [\n _renderSlot(_ctx.$slots, 'select', {\n checked: item.selected,\n disabled: !item.selectable,\n inputName: _unref(randomName),\n item: item.original,\n readonly: !!_ctx.readonly,\n value: item.value\n }, () => [\n (_ctx.multiple)\n ? (_openBlock(), _createElementBlock(\"label\", {\n key: 0,\n class: _normalizeClass([\"bb-table-check__label\", {\n\t\t\t\t\t\t\t\t\t\t'bb-table-check__label--disabled': !item.selectable,\n\t\t\t\t\t\t\t\t\t}])\n }, [\n _createVNode(BaseCheckbox, {\n checked: item.selected || allSelected.value,\n class: \"bb-table-check\",\n disabled: !item.selectable,\n name: _unref(randomName),\n readonly: _ctx.readonly,\n onChange: () => onInputChange(item)\n }, null, 8, [\"checked\", \"disabled\", \"name\", \"readonly\", \"onChange\"]),\n _createElementVNode(\"span\", _hoisted_19, _toDisplayString(item.accessibleLabel), 1)\n ], 2))\n : (_openBlock(), _createElementBlock(\"label\", {\n key: 1,\n class: _normalizeClass([\"bb-table-radio__label\", {\n\t\t\t\t\t\t\t\t\t\t'bb-table-radio__label--disabled': !item.selectable,\n\t\t\t\t\t\t\t\t\t}])\n }, [\n _createVNode(BaseRadio, {\n checked: item.selected,\n class: \"bb-table-radio\",\n disabled: !item.selectable,\n name: _unref(randomName),\n readonly: _ctx.readonly,\n value: item.value,\n onChange: () => onInputChange(item)\n }, null, 8, [\"checked\", \"disabled\", \"name\", \"readonly\", \"value\", \"onChange\"]),\n _createElementVNode(\"span\", _hoisted_20, _toDisplayString(item.accessibleLabel), 1)\n ], 2))\n ])\n ], 2))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.cols, (col) => {\n return (_openBlock(), _createElementBlock(\"td\", {\n key: col.key,\n class: _normalizeClass([\"bb-table-data__cell\", col.classes])\n }, [\n _renderSlot(_ctx.$slots, col.slotName, {\n classes: col.classes,\n content: col.content,\n item: item.original,\n value: item.value\n }, () => [\n _createTextVNode(_toDisplayString(col.content), 1)\n ])\n ], 2))\n }), 128)),\n (_ctx.actions)\n ? (_openBlock(), _createElementBlock(\"td\", {\n key: 1,\n class: _normalizeClass([\"bb-table__cell bb-table__cell--actions\", _ctx.tdClass])\n }, [\n _renderSlot(_ctx.$slots, 'actions', {\n item: item.original,\n value: item.value\n })\n ], 2))\n : _createCommentVNode(\"\", true)\n ], 40, _hoisted_18))\n }), 128))\n ])\n ]),\n _createElementVNode(\"tfoot\", null, [\n _renderSlot(_ctx.$slots, \"tfoot\")\n ])\n ]),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(hiddenInputs.value, (input) => {\n return (_openBlock(), _createElementBlock(\"input\", _mergeProps({\n key: input.value\n }, input), null, 16))\n }), 128))\n ]),\n _: 3\n }, 8, [\"class\"]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_createElementVNode","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_sfc_main","_defineComponent","columns","col","__props","__emit","getItemValue","useItemValue","randomName","useId","props","emit","container","ref","accessibleLabel","loadingText","noDataText","selectAllText","selectText","containerTag","computed","internalLoading","loading","replacementContentSpan","acc","current","modelValueIndexed","map","value","index","key","_a","pairs","deepEqual","slotNames","curr","mapped","internalItems","getItems","items","onMounted","watch","timeout","previous","mappedHeaders","column","align","label","slotName","classes","mappedItems","item","jsonValue","selectable","selectedIndex","selected","isNil","cols","content","temp","accessibleLabelText","isNotNil","event","onChangeSelectAll","selectAllValue","modelValue","allSelected","indeterminate","onInputChange","valueToEmit","makeInputValue","when","hiddenInputs","skeletonLength","clamp","headers","mappedColumns","position","clientRect","width","offset","el","add","row","cell","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeClass","_withCtx","_createElementBlock","_toDisplayString","_createCommentVNode","_renderSlot","_createVNode","BaseCheckbox","_unref","_Fragment","_renderList","header","BaseRadio","_createTextVNode","input","_mergeProps"],"mappings":";;;;;;;;;;;;;AAGA,MAAMA,KAAa,EAAE,KAAK,KACpBC,KAAa,EAAE,OAAO,yBACtBC,KAAa,EAAE,OAAO,8BACtBC,KAAa,EAAE,OAAO,gCACtBC,KAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,KAAa,EAAE,OAAO,8BACtBC,KAAa,EAAE,OAAO,8BACtBC,KAAa,EAAE,OAAO,2BACtBC,KAAa,CAAC,SAAS,GACvBC,KAAc,EAAE,OAAO,4BACvBC,KAAc;AAAA,EAClB,OAAO;AAAA,EACP,MAAM;AACR,GACMC,KAA+CC,gBAAAA,EAAA,OAAO,EAAE,OAAO,8CAA8C;AAAA,EAChFA,gBAAAA,EAAA,OAAO,EAAE,OAAO,kCAAkC;AACrF,GAAG,EAAE,GACCC,KAA+CD,gBAAAA,EAAA,OAAO,EAAE,OAAO,kCAAkC;AAAA,EACpEA,gBAAAA,EAAA,OAAO,EAAE,OAAO,gCAAgC;AAAA,EAChDA,gBAAAA,EAAA,OAAO,EAAE,OAAO,gCAAgC;AACnF,GAAG,EAAE,GACCE,KAAc;AAAA,EAClBH;AAAA,EACAE;AACF,GACME,KAAc,EAAE,OAAO,2BACvBC,KAAc,CAAC,SAAS,GACxBC,KAAc,EAAE,OAAO,4BACvBC,KAAc,CAAC,WAAW,iBAAiB,YAAY,GACvDC,KAAc,EAAE,OAAO,gCACvBC,KAAc,EAAE,OAAO,gCAyBDC,KAAiBC,gBAAAA,GAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,iBAAiB,EAAE,MAAM,UAAU,SAAS,CAACC,MAC/C,CAAC,WAAW,EAAE,OAAOA,EAAQ,IAAI,CAACC,MAAQA,EAAI,OAAO,CAAC,EAAE,KAAK,GAAG,EAAE;AAAA,IAChE,SAA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W;AAAA,cAAA,CAClB;AAAA,YAAA,CACF;AAAA,UAwFA,CACR;AAAA,UACDJ,EAAoB,SAAS,MAAM;AAAA,YACjCwG,EAAYV,EAAK,QAAQ,OAAO;AAAA,UAAA,CACjC;AAAA,QAAA,CACF;AAAA,SACAE,EAAW,EAAI,GAAGK,EAAoBO,GAAW,MAAMC,EAAY5B,GAAa,OAAO,CAACgC,OAC/EjB,EAAW,GAAGK,EAAoB,SAASa,GAAY;AAAA,UAC7D,KAAKD,EAAM;AAAA,QACV,GAAAA,CAAK,GAAG,MAAM,EAAE,EACpB,GAAG,GAAG;AAAA,MAAA,CACR;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,OAAO,CAAC;AAAA,EAEjB;AAEA,CAAC;"}
1
+ {"version":3,"file":"index101.js","sources":["../src/components/BbTable/BbTable.vue"],"sourcesContent":["<template>\n\t<component\n\t\t:is=\"containerTag\"\n\t\tref=\"container\"\n\t\t:class=\"{\n\t\t\t'bb-table': true,\n\t\t\t[`bb-table--align-${align}`]: true,\n\t\t\t'bb-table--compact': compact,\n\t\t\t'bb-table--fixed': fixed,\n\t\t\t'bb-table--fixed-header': fixedHeader,\n\t\t\t'bb-table--loading': loading,\n\t\t\t'bb-table--empty': !internalItems.length,\n\t\t\t'bb-table--selectable': selectable,\n\t\t}\"\n\t>\n\t\t<legend v-if=\"selectable\">{{ legend }}</legend>\n\t\t<table>\n\t\t\t<caption\n\t\t\t\tv-if=\"caption\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'bb-table-caption': true,\n\t\t\t\t\t'bb-table-caption--hidden': !displayCaption,\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t{{\n\t\t\t\t\tcaption\n\t\t\t\t}}\n\t\t\t</caption>\n\t\t\t<thead>\n\t\t\t\t<slot name=\"thead\">\n\t\t\t\t\t<tr class=\"bb-table-header-row\">\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\tv-if=\"selectable\"\n\t\t\t\t\t\t\tclass=\"bb-table-header bb-table-header--select\"\n\t\t\t\t\t\t\t:class=\"thClass\"\n\t\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:multiple=\"multiple\"\n\t\t\t\t\t\t\t\t:name=\"'header_select'\"\n\t\t\t\t\t\t\t\t:select-all=\"!!selectAll\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"bb-table-header__content\">\n\t\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\t\tv-if=\"allowSelectAll && multiple\"\n\t\t\t\t\t\t\t\t\t\tclass=\"bb-table-check__label\"\n\t\t\t\t\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t\t\t\t\t'bb-table-check__label--disabled': disabled,\n\t\t\t\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<BaseCheckbox\n\t\t\t\t\t\t\t\t\t\t\tclass=\"bb-table-check\"\n\t\t\t\t\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t\t\t\t\t:indeterminate=\"indeterminate\"\n\t\t\t\t\t\t\t\t\t\t\t:model-value=\"allSelected\"\n\t\t\t\t\t\t\t\t\t\t\t:name=\"`select_all_${name || ''}`\"\n\t\t\t\t\t\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t\t\t\t\t\t@update:model-value=\"onChangeSelectAll\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<span class=\"bb-table-check__label-text\"\n\t\t\t\t\t\t\t\t\t\t\t>{{ selectAllText }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tv-else-if=\"!multiple\"\n\t\t\t\t\t\t\t\t\t\tclass=\"bb-table-radio__label-text\"\n\t\t\t\t\t\t\t\t\t\t>{{ selectText }}</span\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\tv-for=\"(header, index) in mappedHeaders\"\n\t\t\t\t\t\t\t:key=\"header.key\"\n\t\t\t\t\t\t\tclass=\"bb-table-header\"\n\t\t\t\t\t\t\t:class=\"header.classes\"\n\t\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:classes=\"header.classes\"\n\t\t\t\t\t\t\t\t:item=\"undefined as unknown\"\n\t\t\t\t\t\t\t\t:items=\"internalItems\"\n\t\t\t\t\t\t\t\t:label=\"header.label\"\n\t\t\t\t\t\t\t\t:name=\"header.slotName\"\n\t\t\t\t\t\t\t\t><span class=\"bb-table-header__content\">{{\n\t\t\t\t\t\t\t\t\theader.label\n\t\t\t\t\t\t\t\t}}</span></slot\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\tv-if=\"actions\"\n\t\t\t\t\t\t\tclass=\"bb-table-header bb-table-header--actions\"\n\t\t\t\t\t\t\t:class=\"thClass\"\n\t\t\t\t\t\t\tscope=\"col\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot name=\"header_actions\" :text=\"actionsText\">\n\t\t\t\t\t\t\t\t<span class=\"bb-table-header__content\">\n\t\t\t\t\t\t\t\t\t{{ actionsText }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</slot>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t\t<slot v-if=\"loading\" :items=\"internalItems\" name=\"loading\">\n\t\t\t\t\t<tr class=\"bb-table-loading__row\">\n\t\t\t\t\t\t<td\n\t\t\t\t\t\t\tclass=\"bb-table-loading__cell\"\n\t\t\t\t\t\t\t:colspan=\"replacementContentSpan\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"bb-table-loading__text\">{{ loadingText }}</span>\n\n\t\t\t\t\t\t\t<div class=\"bb-table-skeleton__container\" role=\"status\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tv-for=\"item in skeletonLength\"\n\t\t\t\t\t\t\t\t\t:key=\"item\"\n\t\t\t\t\t\t\t\t\tclass=\"bb-table-skeleton-item\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<div class=\"bb-table-skeleton-item__avatar-container\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bb-table-skeleton-item__avatar\"></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"bb-table-skeleton-item__text\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bb-table-skeleton-item__line\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bb-table-skeleton-item__line\"></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</slot>\n\t\t\t\t<slot v-else-if=\"!internalItems.length\" :name=\"'no-data'\">\n\t\t\t\t\t<tr class=\"bb-table-no-data__row\">\n\t\t\t\t\t\t<td\n\t\t\t\t\t\t\tclass=\"bb-table-no-data__cell\"\n\t\t\t\t\t\t\t:colspan=\"replacementContentSpan\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"bb-table-no-data__text\">{{ noDataText }}</span>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</slot>\n\t\t\t\t<slot v-else name=\"tbody\">\n\t\t\t\t\t<tr\n\t\t\t\t\t\tv-for=\"item in mappedItems\"\n\t\t\t\t\t\t:key=\"item.jsonValue\"\n\t\t\t\t\t\tclass=\"bb-table-data__row\"\n\t\t\t\t\t\t@click=\"item.onRowClick\"\n\t\t\t\t\t\t@contextmenu=\"item.onRowContextMenu\"\n\t\t\t\t\t\t@dblclick=\"item.onRowDblClick\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<td\n\t\t\t\t\t\t\tv-if=\"selectable\"\n\t\t\t\t\t\t\tclass=\"bb-table-data__cell bb-table-data__cell--select\"\n\t\t\t\t\t\t\t:class=\"tdClass\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:checked=\"item.selected\"\n\t\t\t\t\t\t\t\t:disabled=\"!item.selectable\"\n\t\t\t\t\t\t\t\t:input-name=\"randomName\"\n\t\t\t\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t\t\t\t:name=\"'select'\"\n\t\t\t\t\t\t\t\t:readonly=\"!!readonly\"\n\t\t\t\t\t\t\t\t:value=\"item.value\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<!-- We use temp names for these inputs because we don't submit them -->\n\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\tv-if=\"multiple\"\n\t\t\t\t\t\t\t\t\tclass=\"bb-table-check__label\"\n\t\t\t\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t\t\t\t'bb-table-check__label--disabled': !item.selectable,\n\t\t\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<BaseCheckbox\n\t\t\t\t\t\t\t\t\t\t:checked=\"item.selected || allSelected\"\n\t\t\t\t\t\t\t\t\t\tclass=\"bb-table-check\"\n\t\t\t\t\t\t\t\t\t\t:disabled=\"!item.selectable\"\n\t\t\t\t\t\t\t\t\t\t:name=\"randomName\"\n\t\t\t\t\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t\t\t\t\t@change=\"() => onInputChange(item)\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<span class=\"bb-table-check__label-text\">{{\n\t\t\t\t\t\t\t\t\t\titem.accessibleLabel\n\t\t\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\tv-else\n\t\t\t\t\t\t\t\t\tclass=\"bb-table-radio__label\"\n\t\t\t\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t\t\t\t'bb-table-radio__label--disabled': !item.selectable,\n\t\t\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<BaseRadio\n\t\t\t\t\t\t\t\t\t\t:checked=\"item.selected\"\n\t\t\t\t\t\t\t\t\t\tclass=\"bb-table-radio\"\n\t\t\t\t\t\t\t\t\t\t:disabled=\"!item.selectable\"\n\t\t\t\t\t\t\t\t\t\t:name=\"randomName\"\n\t\t\t\t\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t\t\t\t\t:value=\"item.value\"\n\t\t\t\t\t\t\t\t\t\t@change=\"() => onInputChange(item)\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<span class=\"bb-table-radio__label-text\">{{\n\t\t\t\t\t\t\t\t\t\titem.accessibleLabel\n\t\t\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td\n\t\t\t\t\t\t\tv-for=\"col in item.cols\"\n\t\t\t\t\t\t\t:key=\"col.key\"\n\t\t\t\t\t\t\tclass=\"bb-table-data__cell\"\n\t\t\t\t\t\t\t:class=\"col.classes\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:classes=\"col.classes\"\n\t\t\t\t\t\t\t\t:content=\"col.content\"\n\t\t\t\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t\t\t\t:name=\"col.slotName\"\n\t\t\t\t\t\t\t\t:value=\"item.value\"\n\t\t\t\t\t\t\t\t>{{ col.content }}</slot\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td\n\t\t\t\t\t\t\tv-if=\"actions\"\n\t\t\t\t\t\t\tclass=\"bb-table__cell bb-table__cell--actions\"\n\t\t\t\t\t\t\t:class=\"tdClass\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t\t\t\t:name=\"'actions'\"\n\t\t\t\t\t\t\t\t:value=\"item.value\"\n\t\t\t\t\t\t\t></slot>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</slot>\n\t\t\t</tbody>\n\t\t\t<tfoot>\n\t\t\t\t<slot name=\"tfoot\"></slot>\n\t\t\t</tfoot>\n\t\t</table>\n\t\t<input v-for=\"input in hiddenInputs\" :key=\"input.value\" v-bind=\"input\" />\n\t</component>\n</template>\n\n<script setup lang=\"ts\">\nimport { add } from '@/utilities/functions/add';\nimport { clamp } from '@/utilities/functions/clamp';\nimport { deepEqual } from 'fast-equals';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport { type Ref, computed, onMounted, ref, watch } from 'vue';\nimport { useId } from '@/composables/useId';\nimport { useItemValue } from '@/composables/useItemValue';\nimport { when } from '@/utilities/functions/when';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport BaseRadio from '../BaseRadio/BaseRadio.vue';\nimport type {\n\tBbTableProps,\n\tMappedCell,\n\tMappedHeader,\n\tMappedItem,\n\tTableColumn,\n\tBbTableEvents,\n\tBbTableSlots,\n} from './types';\nimport type { Classes } from '@/types/Classes';\n\nconst { getItemValue } = useItemValue();\n\n/**\n * We do not allow the use of the checkbox or radio themselves as\n * they would not be submitted if the user has changed\n * page in the meantime, rather we provide a temporary\n * name so radio still work but we later add hidden inputs for submission\n */\nconst randomName = useId().id.value;\n\nconst props = withDefaults(defineProps<BbTableProps>(), {\n\talign: 'left',\n\taccessibleLabel: (columns: MappedCell[]) =>\n\t\t['Seleziona'].concat(columns.map((col) => col.content)).join(' '),\n\tactionsText: 'Azioni',\n\tallowSelectAll: true,\n\tcolumns: () => [],\n\tdependencies: () => [],\n\tdepsDebounceTime: 0,\n\tfixedColumns: () => [],\n\titems: () => [],\n\tloadingText: 'Caricamento',\n\tmatchStrategy: 'string',\n\tmultiple: true,\n\tnoDataText: 'Non ci sono elementi da visualizzare',\n\tselectAllText: 'Seleziona tutti gli elementi di questa pagina',\n\tselectText: 'Seleziona un elemento',\n});\n\nconst emit = defineEmits<BbTableEvents>();\n\ndefineSlots<BbTableSlots>();\n\nconst container = ref<HTMLElement>();\n\nconst accessibleLabel = props.accessibleLabel;\nconst loadingText = props.loadingText;\nconst noDataText = props.noDataText;\nconst selectAllText = props.selectAllText;\nconst selectText = props.selectText;\n\n// We render the table in a fieldset to group checkbox / radios if the table is selectable\nconst containerTag = computed(() => (props.selectable ? 'fieldset' : 'div'));\nconst internalLoading = ref(false);\nconst loading = computed(() => props.loading || internalLoading.value);\n\nconst replacementContentSpan = computed(() => {\n\treturn [!!props.selectable, !!props.actions].reduce(\n\t\t(acc: number, current) => acc + Number(!!current),\n\t\tprops.columns.length\n\t);\n});\n\n/**\n * Indexes modelValue to a map so when can easily know which values are selected\n * (using JSON to circumvent identical object not being equal in JS)\n */\nconst modelValueIndexed = computed(() => {\n\tif (props.matchStrategy === 'string') {\n\t\tlet map: { [key: string]: number } = {};\n\t\t[].concat(props.modelValue).forEach((value: any, index: number) => {\n\t\t\tmap[JSON.stringify(value)] = index;\n\t\t});\n\t\treturn {\n\t\t\tget: (value: any) => map[JSON.stringify(value)],\n\t\t};\n\t} else if (props.matchStrategy === 'equality') {\n\t\tconst map = []\n\t\t\t.concat(props.modelValue)\n\t\t\t.map((value, index) => [value, index]);\n\n\t\treturn {\n\t\t\tget: (key: any) => {\n\t\t\t\treturn map.find((pairs) => deepEqual(pairs[0], key))?.[1];\n\t\t\t},\n\t\t};\n\t} else {\n\t\tthrow new Error('No match strategy has been defined');\n\t}\n});\n\n/**\n * Map column identifiers to slot names\n */\nconst slotNames = computed(() =>\n\tprops.columns.reduce((acc: { [key: string]: string }, curr: TableColumn) => {\n\t\tconst mapped = curr.key.split(/\\W+/g).join('_');\n\t\tacc[curr.key] = mapped;\n\t\treturn acc;\n\t}, {})\n);\n\n/**\n * Items as loaded from the function or from the outside\n */\nconst internalItems = ref<any[]>([]);\n\nconst getItems = async () => {\n\tlet items: any[] = [];\n\tif (Array.isArray(props.items)) {\n\t\titems = props.items;\n\t} else {\n\t\tif (typeof props.items === 'function') {\n\t\t\tinternalLoading.value = true;\n\t\t\titems = await props.items(true);\n\t\t\tinternalLoading.value = false;\n\t\t}\n\t}\n\tinternalItems.value = items;\n};\n\nonMounted(getItems);\n\n/**\n * When item changes update internal items and\n * deselect everything\n */\nwatch(\n\t() => props.items,\n\tasync () => {\n\t\tawait getItems();\n\t\tif (props.multiple) {\n\t\t\temit('update:modelValue', []);\n\t\t} else {\n\t\t\temit('update:modelValue', null);\n\t\t}\n\t}\n);\n/* Prevent vue from sharing this function across instances */\nlet timeout: ReturnType<typeof setTimeout>;\nconst onDependencyChange = async (curr: any[], previous?: any[]) => {\n\tif (JSON.stringify(curr) !== JSON.stringify(previous)) {\n\t\tif (timeout) {\n\t\t\tclearTimeout(timeout);\n\t\t}\n\t\ttimeout = setTimeout(async () => {\n\t\t\tawait getItems();\n\t\t\tif (props.multiple) {\n\t\t\t\temit('update:modelValue', []);\n\t\t\t} else {\n\t\t\t\temit('update:modelValue', null);\n\t\t\t}\n\t\t}, props.depsDebounceTime);\n\t}\n};\nwatch(() => props.dependencies, onDependencyChange);\n\n/**\n * Take the columns and generate a simplified array for headers display\n */\nconst mappedHeaders = computed(() =>\n\tprops.columns.map((column: TableColumn): MappedHeader => {\n\t\tconst align = column.align || 'left';\n\t\tconst { label, key } = column;\n\t\tconst slotName = `header_${slotNames.value[column.key]}`;\n\t\t// Create a single merged array of all the passed classes\n\t\tlet classes: Classes = [`bb-table-header--${align}`];\n\t\tif (props.thClass) {\n\t\t\tclasses = classes.concat(props.thClass);\n\t\t}\n\t\tif (column.thClass) {\n\t\t\tclasses = classes.concat(column.thClass);\n\t\t}\n\t\treturn {\n\t\t\talign,\n\t\t\tkey,\n\t\t\tlabel,\n\t\t\tslotName,\n\t\t\tclasses,\n\t\t};\n\t})\n);\n\n/**\n * Map items to an an array that represents the entire row.\n * Track every logic here so we don't have inline callbacks in the template.\n */\nconst mappedItems = computed<MappedItem[]>(() => {\n\treturn internalItems.value.map((item: any) => {\n\t\t// By default the value if the item is the item.\n\t\tconst value = getItemValue(item, props.itemValue);\n\t\tconst jsonValue = JSON.stringify(value);\n\n\t\t/**\n\t\t * Item is selectable only if the table allows or item\n\t\t * passes iteratee and the selection is not disabled\n\t\t */\n\t\tlet selectable = !!props.selectable;\n\t\tif (typeof props.selectable === 'function') {\n\t\t\tselectable = !!props.selectable(item);\n\t\t}\n\t\tselectable = selectable && !props.disabled;\n\n\t\t//Track the index at which the item has been selected for easy of removal\n\t\tconst selectedIndex = modelValueIndexed.value.get(value);\n\t\tconst selected = !isNil(selectedIndex);\n\n\t\t// Create a projection of the columns and run all formatter logic so\n\t\t// we just display content in the template\n\t\tconst cols: MappedCell[] = props.columns.map((column) => {\n\t\t\t// Slot identifier\n\t\t\tconst slotName = slotNames.value[column.key];\n\t\t\tconst align = column.align || 'left';\n\t\t\tconst { label, key } = column;\n\t\t\t// The content\n\t\t\tlet content = getItemValue(item, column.key);\n\t\t\tif (\n\t\t\t\tcolumn.formatter &&\n\t\t\t\t// By default the formatter runs anyway\n\t\t\t\t(!isNil(content) || column.formatOnNull !== false)\n\t\t\t) {\n\t\t\t\tcontent = column.formatter(content, column.key, item);\n\t\t\t}\n\t\t\tif (column.placeholder && isNil(content)) {\n\t\t\t\tcontent = column.placeholder;\n\t\t\t}\n\n\t\t\t// Merge global and specific classes\n\t\t\tlet classes: Classes = [`bb-table-data__cell--${align}`];\n\t\t\tif (props.tdClass) {\n\t\t\t\tif (typeof props.tdClass === 'function') {\n\t\t\t\t\tlet temp = props.tdClass(content, column.key, item);\n\t\t\t\t\tif (temp) {\n\t\t\t\t\t\tclasses = classes.concat(temp);\n\t\t\t\t\t}\n\t\t\t\t} else classes = classes.concat(props.tdClass);\n\t\t\t}\n\t\t\tif (column.tdClass) {\n\t\t\t\tif (typeof column.tdClass === 'function') {\n\t\t\t\t\tlet temp = column.tdClass(content, column.key, item);\n\t\t\t\t\tif (temp) {\n\t\t\t\t\t\tclasses = classes.concat(temp);\n\t\t\t\t\t}\n\t\t\t\t} else classes = classes.concat(column.tdClass);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\talign,\n\t\t\t\tclasses,\n\t\t\t\tcontent,\n\t\t\t\tkey,\n\t\t\t\tlabel,\n\t\t\t\tslotName,\n\t\t\t};\n\t\t});\n\n\t\tconst accessibleLabelText = accessibleLabel(cols, item);\n\n\t\tif (isNotNil(selectedIndex)) {\n\t\t\treturn {\n\t\t\t\taccessibleLabel: accessibleLabelText,\n\t\t\t\tcols,\n\t\t\t\tjsonValue,\n\t\t\t\toriginal: item,\n\t\t\t\tselectable,\n\t\t\t\tselected: true,\n\t\t\t\tselectedIndex,\n\t\t\t\tvalue,\n\t\t\t\tonRowClick: (event: MouseEvent) =>\n\t\t\t\t\temit('click:row', event, item, selected),\n\t\t\t\tonRowContextMenu: (event: MouseEvent) =>\n\t\t\t\t\temit('contextmenu:row', event, item, selected),\n\t\t\t\tonRowDblClick: (event: MouseEvent) =>\n\t\t\t\t\temit('dblclick:row', event, item, selected),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\taccessibleLabel: accessibleLabelText,\n\t\t\tcols,\n\t\t\tjsonValue,\n\t\t\toriginal: item,\n\t\t\tselectable,\n\t\t\tselected: false,\n\t\t\tselectedIndex,\n\t\t\tvalue,\n\t\t\tonRowClick: (event: MouseEvent) =>\n\t\t\t\temit('click:row', event, item, selected),\n\t\t\tonRowContextMenu: (event: MouseEvent) =>\n\t\t\t\temit('contextmenu:row', event, item, selected),\n\t\t\tonRowDblClick: (event: MouseEvent) =>\n\t\t\t\temit('dblclick:row', event, item, selected),\n\t\t};\n\t});\n});\n\n/**\n * Same behavior as GMail.\n * If anything is selected remove it.\n * Then when empty you select all items of this page\n */\nconst onChangeSelectAll = (value: boolean) => {\n\tlet selectAllValue = value;\n\tlet modelValue: any[] = [];\n\n\tif (selectAllValue) {\n\t\tmodelValue = mappedItems.value.reduce((acc: any[], curr) => {\n\t\t\tif (curr.selectable) acc.push(curr.value);\n\t\t\treturn acc;\n\t\t}, []);\n\t}\n\temit('update:modelValue', modelValue);\n\temit('update:selectAll', value);\n};\n\nconst allSelected = computed(\n\t() =>\n\t\t!!(\n\t\t\tmappedItems.value.length &&\n\t\t\tmappedItems.value.every((item) => item.selectable && item.selected)\n\t\t)\n);\nconst indeterminate = computed(\n\t() =>\n\t\tmappedItems.value.some((item) => !item.selected) &&\n\t\t!!props.modelValue?.length\n);\n/**\n * Whenever an input changes update modelValue if any\n */\nconst onInputChange = (item: MappedItem) => {\n\tlet valueToEmit;\n\tif (props.multiple) {\n\t\tif (item.selected) {\n\t\t\tvalueToEmit = props.modelValue\n\t\t\t\t.slice(0, item.selectedIndex)\n\t\t\t\t.concat(props.modelValue.slice([item.selectedIndex + 1]));\n\t\t} else {\n\t\t\tvalueToEmit = props.modelValue.concat(item.value);\n\t\t}\n\t} else {\n\t\tvalueToEmit = item.value;\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\n/**\n * When using this component for submission we add a bunch of hidden inputs\n * so the submitted inputs is on par with v-model\n */\n\n/**\n * This is used to keep the value compatible to common html expected values.\n * Convert to string everything that's not but do not double encode strings\n */\nconst makeInputValue = when(\n\t(item: unknown) => typeof item !== 'string',\n\tJSON.stringify\n);\nconst hiddenInputs = computed(() => {\n\treturn [].concat(props.modelValue).map((current) => {\n\t\tconst value = makeInputValue(current);\n\t\treturn {\n\t\t\tdisabled: props.disabled,\n\t\t\tname: props.name,\n\t\t\ttype: 'hidden',\n\t\t\tvalue: value,\n\t\t};\n\t});\n});\n\nconst skeletonLength = computed(() => {\n\treturn clamp(internalItems.value.length, 4, 10);\n});\n\nwatch(\n\t() => mappedItems.value,\n\t() => {\n\t\tif (props.fixedColumns.length && props.items) {\n\t\t\tif (container.value) {\n\t\t\t\t// Get all the headers\n\t\t\t\tconst headers = Array.from(\n\t\t\t\t\tcontainer.value.querySelectorAll<HTMLElement>('thead th')\n\t\t\t\t);\n\n\t\t\t\ttype MappedColumn = {\n\t\t\t\t\tindex: number;\n\t\t\t\t\tposition: 'left' | 'right';\n\t\t\t\t\twidth: number;\n\t\t\t\t\toffset: number;\n\t\t\t\t};\n\n\t\t\t\t/**\n\t\t\t\t * For each of the columns to fix create an helper object\n\t\t\t\t */\n\t\t\t\tconst mappedColumns = props.fixedColumns.reduce((acc, curr) => {\n\t\t\t\t\tconst index = typeof curr === 'number' ? curr : curr.index;\n\t\t\t\t\tconst position = typeof curr === 'number' ? 'left' : curr.position;\n\t\t\t\t\tconst clientRect = headers[index].getBoundingClientRect();\n\t\t\t\t\tconst width = Math.floor(clientRect.width);\n\t\t\t\t\tconst offset = acc\n\t\t\t\t\t\t.filter((el) => el.position === position)\n\t\t\t\t\t\t.map((el) => el.width)\n\t\t\t\t\t\t.reduce(add, 0);\n\n\t\t\t\t\tconst mapped: MappedColumn = {\n\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\tposition: position,\n\t\t\t\t\t\twidth: width,\n\t\t\t\t\t\toffset: offset,\n\t\t\t\t\t};\n\t\t\t\t\tacc.push(mapped);\n\t\t\t\t\treturn acc;\n\t\t\t\t}, [] as MappedColumn[]);\n\n\t\t\t\tconst rows = Array.from(container.value?.querySelectorAll('tr'));\n\t\t\t\tconst affectedCells = rows.map((row) =>\n\t\t\t\t\tArray.from(\n\t\t\t\t\t\trow.querySelectorAll<HTMLElement>(\n\t\t\t\t\t\t\tmappedColumns\n\t\t\t\t\t\t\t\t.map((el) => `:scope > :nth-child(${el.index + 1})`)\n\t\t\t\t\t\t\t\t.join(', ')\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\taffectedCells.forEach((row) => {\n\t\t\t\t\trow.forEach((cell, index) => {\n\t\t\t\t\t\tcell.style.position = 'sticky';\n\n\t\t\t\t\t\tif (mappedColumns[index].position === 'left') {\n\t\t\t\t\t\t\tcell.style.left = `${mappedColumns[index].offset}px`;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.style.right = `${mappedColumns[index].offset}px`;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTable';\n</style>\n"],"names":["getItemValue","useItemValue","randomName","useId","props","__props","emit","__emit","container","ref","accessibleLabel","loadingText","noDataText","selectAllText","selectText","containerTag","computed","internalLoading","loading","replacementContentSpan","acc","current","modelValueIndexed","map","value","index","key","_a","pairs","deepEqual","slotNames","curr","mapped","internalItems","getItems","items","onMounted","watch","timeout","previous","mappedHeaders","column","align","label","slotName","classes","mappedItems","item","jsonValue","selectable","selectedIndex","selected","isNil","cols","content","temp","accessibleLabelText","isNotNil","event","onChangeSelectAll","selectAllValue","modelValue","allSelected","indeterminate","onInputChange","valueToEmit","makeInputValue","when","hiddenInputs","skeletonLength","clamp","headers","mappedColumns","position","clientRect","width","offset","el","add","row","cell"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0QM,UAAA,EAAE,cAAAA,MAAiBC,MAQnBC,IAAaC,KAAQ,GAAG,OAExBC,IAAQC,GAmBRC,IAAOC,GAIPC,IAAYC,KAEZC,IAAkBN,EAAM,i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,GAAMvD,MAAU;AAC5B,cAAAuD,EAAK,MAAM,WAAW,UAElBR,EAAc/C,CAAK,EAAE,aAAa,SACrCuD,EAAK,MAAM,OAAO,GAAGR,EAAc/C,CAAK,EAAE,MAAM,OAEhDuD,EAAK,MAAM,QAAQ,GAAGR,EAAc/C,CAAK,EAAE,MAAM;AAAA,YAClD,CACA;AAAA,UAAA,CACD;AAAA,QACF;AAAA,MAEF;AAAA,MACA;AAAA,QACC,OAAO;AAAA,MACR;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index102.js CHANGED
@@ -1,5 +1,2 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
5
2
  //# sourceMappingURL=index102.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index102.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index102.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index103.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as m, openBlock as c, createBlock as b, withCtx as a, renderSlot as r, normalizeProps as i, guardReactiveProps as n, createVNode as h, mergeProps as v } from "vue";
2
2
  import y from "./index21.js";
3
3
  import "./index22.js";
4
- import f from "./index232.js";
5
- import "./index233.js";
4
+ import f from "./index228.js";
5
+ import "./index229.js";
6
6
  const C = /* @__PURE__ */ m({
7
7
  __name: "BbTag",
8
8
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"index103.js","sources":["../src/components/BbTag/BbTag.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseTag from '../BaseTag/BaseTag.vue';\nimport type { BaseTagEvents } from '../BaseTag/BaseTag.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbTagProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Sets the display model for selected values to a list\n\t * of comma separated string. In this mode the user\n\t * cannot deselect an option by pressing the close button.\n\t */\n\tcomma?: boolean;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * The divider key used to separate values from one another. By default it is \"Enter\"\n\t */\n\tdivider?: KeyboardEvent['key'];\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\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 * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue: any;\n\n\t/**\n\t * Allows the selection of multiple items.\n\t */\n\tmultiple?: boolean;\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's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n};\n\nexport type BbTagEvents = BaseTagEvents;\n\nexport type BbTagSlots = {\n\tappend?: (props: {}) => any;\n\n\t'append-outer'?: (props: {}) => any;\n\n\tprepend?: (props: {}) => any;\n\n\t'prepend-outer'?: (props: {}) => any;\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTag',\n props: {\n autocomplete: {},\n autofocus: {},\n comma: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n divider: {},\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n multiple: { type: Boolean, default: true },\n name: {},\n placeholder: {},\n readonly: {},\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"duplicate\", \"focus\", \"inactive\", \"input\", \"keydown\", \"keyup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonDuplicate: (string: string) => emit('duplicate', string),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonInactive: () => emit('inactive'),\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonKeyup: (event: KeyboardEvent) => emit('keyup', event),\n\t'onUpdate:modelValue': (value: any) => emit('update:modelValue', value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-tag\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n label: _ctx.label,\n \"label-position\": _ctx.labelPosition,\n \"model-value\": _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTag, _mergeProps({\n id: id,\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n comma: _ctx.comma,\n disabled: _ctx.disabled,\n divider: _ctx.divider,\n \"has-errors\": hasErrors,\n \"model-value\": _ctx.modelValue,\n multiple: _ctx.multiple,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly\n }, eventListeners), {\n \"prepend-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"append-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"id\", \"autocomplete\", \"autofocus\", \"comma\", \"disabled\", \"divider\", \"has-errors\", \"model-value\", \"multiple\", \"name\", \"placeholder\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"id\", \"direction\", \"errors\", \"has-errors\", \"hide-label\", \"label\", \"label-position\", \"model-value\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","string","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTag","_mergeProps"],"mappings":";;;;;AAqHA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,SAAS,CAAC;AAAA,IACV,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,UAAU,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IACzC,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,IACX,SAAS,EAAE,MAAM,QAAQ;AAAA,EAC3B;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,aAAa,SAAS,YAAY,SAAS,WAAW,SAAS,mBAAmB;AAAA,EACrH,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAIxC,UAAMC,IAAOD,GAIPE,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsBF,EAAK,QAAQE,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBF,EAAK,UAAUE,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBF,EAAK,SAASE,CAAK;AAAA,MACnD,aAAa,CAACC,MAAmBH,EAAK,aAAaG,CAAM;AAAA,MACzD,SAAS,CAACD,MAAsBF,EAAK,SAASE,CAAK;AAAA,MACnD,YAAY,MAAMF,EAAK,UAAU;AAAA,MACjC,SAAS,CAACE,MAAiBF,EAAK,SAASE,C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AS,CAACC,MAAS;AAAA,YAC1BC,EAAYP,EAAK,QAAQ,WAAWQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,gBAAgBD,EAAS,CAACC,MAAS;AAAA,YACjCC,EAAYP,EAAK,QAAQ,gBAAgBQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CACpF;AAAA,UACD,QAAQD,EAAS,CAACC,MAAS;AAAA,YACzBC,EAAYP,EAAK,QAAQ,UAAUQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC9E;AAAA,UACD,GAAG;AAAA,QAAA,GACF,MAAM,CAAC,MAAM,gBAAgB,aAAa,SAAS,YAAY,WAAW,cAAc,eAAe,YAAY,QAAQ,eAAe,UAAU,CAAC;AAAA,MAAA,CACzJ;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,MAAM,aAAa,UAAU,cAAc,cAAc,SAAS,kBAAkB,eAAe,QAAQ,SAAS,CAAC;AAAA,EAE9H;AAEA,CAAC;"}
1
+ {"version":3,"file":"index103.js","sources":["../src/components/BbTag/BbTag.vue"],"sourcesContent":["<template>\n\t<BaseInputContainer\n\t\t:id=\"id\"\n\t\tclass=\"bb-tag\"\n\t\t:direction=\"direction\"\n\t\t:errors=\"errors\"\n\t\t:has-errors=\"hasErrors\"\n\t\t:hide-label=\"hideLabel\"\n\t\t:label=\"label\"\n\t\t:label-position=\"labelPosition\"\n\t\t:model-value=\"modelValue\"\n\t\t:name=\"name\"\n\t\t:reverse=\"reverse\"\n\t>\n\t\t<template #label=\"data\"><slot name=\"label\" v-bind=\"data\"></slot></template>\n\t\t<template #input=\"{ id, name, hasErrors }\">\n\t\t\t<BaseTag\n\t\t\t\t:id=\"id\"\n\t\t\t\t:autocomplete=\"autocomplete\"\n\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t:comma=\"comma\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:divider=\"divider\"\n\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t:multiple=\"multiple\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t>\n\t\t\t\t<template #prepend-outer=\"data\"\n\t\t\t\t\t><slot name=\"prepend-outer\" v-bind=\"data\"\n\t\t\t\t/></template>\n\t\t\t\t<template #prepend=\"data\"\n\t\t\t\t\t><slot name=\"prepend\" v-bind=\"data\"\n\t\t\t\t/></template>\n\t\t\t\t<template #append-outer=\"data\"\n\t\t\t\t\t><slot name=\"append-outer\" v-bind=\"data\"\n\t\t\t\t/></template>\n\t\t\t\t<template #append=\"data\"><slot name=\"append\" v-bind=\"data\" /></template>\n\t\t\t</BaseTag>\n\t\t</template>\n\t</BaseInputContainer>\n</template>\n\n<script setup lang=\"ts\">\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseTag from '../BaseTag/BaseTag.vue';\nimport type { BaseTagEvents } from '../BaseTag/BaseTag.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbTagProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Sets the display model for selected values to a list\n\t * of comma separated string. In this mode the user\n\t * cannot deselect an option by pressing the close button.\n\t */\n\tcomma?: boolean;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * The divider key used to separate values from one another. By default it is \"Enter\"\n\t */\n\tdivider?: KeyboardEvent['key'];\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\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 * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue: any;\n\n\t/**\n\t * Allows the selection of multiple items.\n\t */\n\tmultiple?: boolean;\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's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n};\n\nwithDefaults(defineProps<BbTagProps>(), {\n\tmultiple: true,\n});\n\nexport type BbTagEvents = BaseTagEvents;\n\nconst emit = defineEmits<BbTagEvents>();\n\nexport type BbTagSlots = {\n\tappend?: (props: {}) => any;\n\n\t'append-outer'?: (props: {}) => any;\n\n\tprepend?: (props: {}) => any;\n\n\t'prepend-outer'?: (props: {}) => any;\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\ndefineSlots<BbTagSlots>();\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonDuplicate: (string: string) => emit('duplicate', string),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonInactive: () => emit('inactive'),\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonKeyup: (event: KeyboardEvent) => emit('keyup', event),\n\t'onUpdate:modelValue': (value: any) => emit('update:modelValue', value),\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTag';\n</style>\n"],"names":["emit","__emit","eventListeners","event","string","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJA,UAAMA,IAAOC,GAePC,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsBH,EAAK,QAAQG,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBH,EAAK,UAAUG,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBH,EAAK,SAASG,CAAK;AAAA,MACnD,aAAa,CAACC,MAAmBJ,EAAK,aAAaI,CAAM;AAAA,MACzD,SAAS,CAACD,MAAsBH,EAAK,SAASG,CAAK;AAAA,MACnD,YAAY,MAAMH,EAAK,UAAU;AAAA,MACjC,SAAS,CAACG,MAAiBH,EAAK,SAASG,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBH,EAAK,WAAWG,CAAK;AAAA,MAC1D,SAAS,CAACA,MAAyBH,EAAK,SAASG,CAAK;AAAA,MACtD,uBAAuB,CAACE,MAAeL,EAAK,qBAAqBK,CAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index104.js CHANGED
@@ -1,5 +1,2 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
5
2
  //# sourceMappingURL=index104.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index104.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index104.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index105.js","sources":["../src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseTextarea from '../BaseTextarea/BaseTextarea.vue';\nimport type {\n\tBaseTextareaEvents,\n\tBaseTextareaSlots,\n} from '../BaseTextarea/BaseTextarea.vue';\nimport type { BaseInputContainerSlots } from '../BaseInputContainer/BaseInputContainer.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbTextareaProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Expands the textarea to match its content\n\t */\n\tautoGrow?: boolean;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\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 * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Used by v-model\n\t */\n\tmodelValue: string | null;\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's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n};\n\nexport type BbTextareaEvents = BaseTextareaEvents;\nexport type BbTextareaSlots = BaseTextareaSlots & {\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTextarea',\n props: {\n autocomplete: {},\n autofocus: {},\n autoGrow: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n placeholder: {},\n readonly: {},\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\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\t'onUpdate:modelValue': (value: string | null) =>\n\t\temit('update:modelValue', value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-textarea\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n label: _ctx.label,\n \"label-position\": _ctx.labelPosition,\n \"model-value\": _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTextarea, _mergeProps({\n id: id,\n \"auto-grow\": _ctx.autoGrow,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n \"has-errors\": hasErrors,\n \"model-value\": _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly\n }, eventListeners), {\n \"append-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append-outer\")\n ]),\n append: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n prepend: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend\")\n ]),\n \"prepend-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend-outer\")\n ]),\n _: 2\n }, 1040, [\"id\", \"auto-grow\", \"autofocus\", \"disabled\", \"has-errors\", \"model-value\", \"name\", \"placeholder\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"id\", \"direction\", \"errors\", \"has-errors\", \"hide-label\", \"label\", \"label-position\", \"model-value\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTextarea","_mergeProps"],"mappings":";;;;;AAqGA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,WAAW,CAAC;AAAA,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105.js","sources":["../src/components/BbTextarea/BbTextarea.vue"],"sourcesContent":["<template>\n\t<BaseInputContainer\n\t\t:id=\"id\"\n\t\tclass=\"bb-textarea\"\n\t\t:direction=\"direction\"\n\t\t:errors=\"errors\"\n\t\t:has-errors=\"hasErrors\"\n\t\t:hide-label=\"hideLabel\"\n\t\t:label=\"label\"\n\t\t:label-position=\"labelPosition\"\n\t\t:model-value=\"modelValue\"\n\t\t:name=\"name\"\n\t\t:reverse=\"reverse\"\n\t>\n\t\t<template #label=\"data\"><slot name=\"label\" v-bind=\"data\"></slot></template>\n\t\t<template #input=\"{ id, name, hasErrors }\">\n\t\t\t<BaseTextarea\n\t\t\t\t:id=\"id\"\n\t\t\t\t:auto-grow=\"autoGrow\"\n\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t>\n\t\t\t\t<template #append-outer><slot name=\"append-outer\" /></template>\n\t\t\t\t<template #append><slot name=\"append\" /></template>\n\t\t\t\t<template #prepend><slot name=\"prepend\" /></template>\n\t\t\t\t<template #prepend-outer><slot name=\"prepend-outer\" /></template>\n\t\t\t</BaseTextarea>\n\t\t</template>\n\t</BaseInputContainer>\n</template>\n\n<script setup lang=\"ts\">\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseTextarea from '../BaseTextarea/BaseTextarea.vue';\nimport type {\n\tBaseTextareaEvents,\n\tBaseTextareaSlots,\n} from '../BaseTextarea/BaseTextarea.vue';\nimport type { BaseInputContainerSlots } from '../BaseInputContainer/BaseInputContainer.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbTextareaProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Expands the textarea to match its content\n\t */\n\tautoGrow?: boolean;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\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 * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Used by v-model\n\t */\n\tmodelValue: string | null;\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's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n};\n\ndefineProps<BbTextareaProps>();\n\nexport type BbTextareaEvents = BaseTextareaEvents;\nconst emit = defineEmits<BbTextareaEvents>();\n\nexport type BbTextareaSlots = BaseTextareaSlots & {\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\ndefineSlots<BbTextareaSlots>();\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\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\t'onUpdate:modelValue': (value: string | null) =>\n\t\temit('update:modelValue', value),\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTextarea';\n</style>\n"],"names":["emit","__emit","eventListeners","event","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIA,UAAMA,IAAOC,GAWPC,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsBH,EAAK,QAAQG,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBH,EAAK,UAAUG,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBH,EAAK,SAASG,CAAK;AAAA,MACnD,SAAS,CAACA,MAAsBH,EAAK,SAASG,CAAK;AAAA,MACnD,SAAS,CAACA,MAAiBH,EAAK,SAASG,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBH,EAAK,WAAWG,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBH,EAAK,aAAaG,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBH,EAAK,WAAWG,CAAK;AAAA,MACvD,uBAAuB,CAACC,MACvBJ,EAAK,qBAAqBI,CAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index106.js CHANGED
@@ -1,5 +1,2 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
1
+
5
2
  //# sourceMappingURL=index106.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index106.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index106.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}