bitboss-ui 0.2.32 → 0.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (558) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +2 -2
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +7 -7
  3. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
  4. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
  5. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -2
  6. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +7 -7
  7. package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
  8. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +20 -13
  9. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +2 -2
  10. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -6
  11. package/dist/components/BaseTag/BaseTag.vue.d.ts +1 -1
  12. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  13. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  14. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  15. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  16. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
  17. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -7
  18. package/dist/components/BbChip/BbChip.vue.d.ts +1 -1
  19. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
  20. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  21. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
  22. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  23. package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
  24. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +1 -1
  25. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
  26. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  27. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  28. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +7 -7
  29. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  30. package/dist/components/BbRatio/BbRatio.vue.d.ts +1 -1
  31. package/dist/components/BbSelect/BbSelect.vue.d.ts +20 -13
  32. package/dist/components/BbSlider/BbSlider.vue.d.ts +2 -2
  33. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
  34. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  35. package/dist/components/BbStep/BbStep.vue.d.ts +143 -0
  36. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +6 -6
  37. package/dist/components/BbTab/BbTab.vue.d.ts +6 -6
  38. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  39. package/dist/components/BbTable/types.d.ts +1 -1
  40. package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
  41. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
  42. package/dist/components/HDAddressSelect.vue.d.ts +89 -0
  43. package/dist/composables/useConfirm.d.ts +1 -1
  44. package/dist/composables/useOptions.d.ts +1 -1
  45. package/dist/composables/useToast.d.ts +1 -1
  46. package/dist/composables/useWizard.d.ts +32 -20
  47. package/package.json +1 -1
  48. package/dist/index.js +0 -188
  49. package/dist/index.js.map +0 -1
  50. package/dist/index10.js +0 -5
  51. package/dist/index10.js.map +0 -1
  52. package/dist/index100.js +0 -5
  53. package/dist/index100.js.map +0 -1
  54. package/dist/index101.js +0 -438
  55. package/dist/index101.js.map +0 -1
  56. package/dist/index102.js +0 -5
  57. package/dist/index102.js.map +0 -1
  58. package/dist/index103.js +0 -95
  59. package/dist/index103.js.map +0 -1
  60. package/dist/index104.js +0 -5
  61. package/dist/index104.js.map +0 -1
  62. package/dist/index105.js +0 -89
  63. package/dist/index105.js.map +0 -1
  64. package/dist/index106.js +0 -5
  65. package/dist/index106.js.map +0 -1
  66. package/dist/index107.js +0 -90
  67. package/dist/index107.js.map +0 -1
  68. package/dist/index108.js +0 -5
  69. package/dist/index108.js.map +0 -1
  70. package/dist/index109.js +0 -30
  71. package/dist/index109.js.map +0 -1
  72. package/dist/index11.js +0 -132
  73. package/dist/index11.js.map +0 -1
  74. package/dist/index110.js +0 -5
  75. package/dist/index110.js.map +0 -1
  76. package/dist/index111.js +0 -152
  77. package/dist/index111.js.map +0 -1
  78. package/dist/index112.js +0 -5
  79. package/dist/index112.js.map +0 -1
  80. package/dist/index113.js +0 -123
  81. package/dist/index113.js.map +0 -1
  82. package/dist/index114.js +0 -5
  83. package/dist/index114.js.map +0 -1
  84. package/dist/index115.js +0 -47
  85. package/dist/index115.js.map +0 -1
  86. package/dist/index116.js +0 -41
  87. package/dist/index116.js.map +0 -1
  88. package/dist/index117.js +0 -47
  89. package/dist/index117.js.map +0 -1
  90. package/dist/index118.js +0 -50
  91. package/dist/index118.js.map +0 -1
  92. package/dist/index119.js +0 -46
  93. package/dist/index119.js.map +0 -1
  94. package/dist/index12.js +0 -5
  95. package/dist/index12.js.map +0 -1
  96. package/dist/index120.js +0 -5
  97. package/dist/index120.js.map +0 -1
  98. package/dist/index121.js +0 -24
  99. package/dist/index121.js.map +0 -1
  100. package/dist/index122.js +0 -5
  101. package/dist/index122.js.map +0 -1
  102. package/dist/index123.js +0 -227
  103. package/dist/index123.js.map +0 -1
  104. package/dist/index124.js +0 -5
  105. package/dist/index124.js.map +0 -1
  106. package/dist/index125.js +0 -21
  107. package/dist/index125.js.map +0 -1
  108. package/dist/index126.js +0 -15
  109. package/dist/index126.js.map +0 -1
  110. package/dist/index127.js +0 -27
  111. package/dist/index127.js.map +0 -1
  112. package/dist/index128.js +0 -8
  113. package/dist/index128.js.map +0 -1
  114. package/dist/index129.js +0 -12
  115. package/dist/index129.js.map +0 -1
  116. package/dist/index13.js +0 -152
  117. package/dist/index13.js.map +0 -1
  118. package/dist/index130.js +0 -9
  119. package/dist/index130.js.map +0 -1
  120. package/dist/index131.js +0 -73
  121. package/dist/index131.js.map +0 -1
  122. package/dist/index132.js +0 -6
  123. package/dist/index132.js.map +0 -1
  124. package/dist/index133.js +0 -6
  125. package/dist/index133.js.map +0 -1
  126. package/dist/index134.js +0 -6
  127. package/dist/index134.js.map +0 -1
  128. package/dist/index135.js +0 -6
  129. package/dist/index135.js.map +0 -1
  130. package/dist/index136.js +0 -6
  131. package/dist/index136.js.map +0 -1
  132. package/dist/index137.js +0 -6
  133. package/dist/index137.js.map +0 -1
  134. package/dist/index138.js +0 -6
  135. package/dist/index138.js.map +0 -1
  136. package/dist/index139.js +0 -6
  137. package/dist/index139.js.map +0 -1
  138. package/dist/index14.js +0 -5
  139. package/dist/index14.js.map +0 -1
  140. package/dist/index140.js +0 -6
  141. package/dist/index140.js.map +0 -1
  142. package/dist/index141.js +0 -6
  143. package/dist/index141.js.map +0 -1
  144. package/dist/index142.js +0 -6
  145. package/dist/index142.js.map +0 -1
  146. package/dist/index143.js +0 -6
  147. package/dist/index143.js.map +0 -1
  148. package/dist/index144.js +0 -6
  149. package/dist/index144.js.map +0 -1
  150. package/dist/index145.js +0 -6
  151. package/dist/index145.js.map +0 -1
  152. package/dist/index146.js +0 -6
  153. package/dist/index146.js.map +0 -1
  154. package/dist/index147.js +0 -6
  155. package/dist/index147.js.map +0 -1
  156. package/dist/index148.js +0 -6
  157. package/dist/index148.js.map +0 -1
  158. package/dist/index149.js +0 -6
  159. package/dist/index149.js.map +0 -1
  160. package/dist/index15.js +0 -458
  161. package/dist/index15.js.map +0 -1
  162. package/dist/index150.js +0 -6
  163. package/dist/index150.js.map +0 -1
  164. package/dist/index151.js +0 -6
  165. package/dist/index151.js.map +0 -1
  166. package/dist/index152.js +0 -6
  167. package/dist/index152.js.map +0 -1
  168. package/dist/index153.js +0 -6
  169. package/dist/index153.js.map +0 -1
  170. package/dist/index154.js +0 -6
  171. package/dist/index154.js.map +0 -1
  172. package/dist/index155.js +0 -6
  173. package/dist/index155.js.map +0 -1
  174. package/dist/index156.js +0 -6
  175. package/dist/index156.js.map +0 -1
  176. package/dist/index157.js +0 -6
  177. package/dist/index157.js.map +0 -1
  178. package/dist/index158.js +0 -5
  179. package/dist/index158.js.map +0 -1
  180. package/dist/index159.js +0 -6
  181. package/dist/index159.js.map +0 -1
  182. package/dist/index16.js +0 -5
  183. package/dist/index16.js.map +0 -1
  184. package/dist/index160.js +0 -5
  185. package/dist/index160.js.map +0 -1
  186. package/dist/index161.js +0 -6
  187. package/dist/index161.js.map +0 -1
  188. package/dist/index162.js +0 -6
  189. package/dist/index162.js.map +0 -1
  190. package/dist/index163.js +0 -6
  191. package/dist/index163.js.map +0 -1
  192. package/dist/index164.js +0 -6
  193. package/dist/index164.js.map +0 -1
  194. package/dist/index165.js +0 -6
  195. package/dist/index165.js.map +0 -1
  196. package/dist/index166.js +0 -6
  197. package/dist/index166.js.map +0 -1
  198. package/dist/index167.js +0 -5
  199. package/dist/index167.js.map +0 -1
  200. package/dist/index168.js +0 -6
  201. package/dist/index168.js.map +0 -1
  202. package/dist/index169.js +0 -5
  203. package/dist/index169.js.map +0 -1
  204. package/dist/index17.js +0 -212
  205. package/dist/index17.js.map +0 -1
  206. package/dist/index170.js +0 -5
  207. package/dist/index170.js.map +0 -1
  208. package/dist/index171.js +0 -6
  209. package/dist/index171.js.map +0 -1
  210. package/dist/index172.js +0 -6
  211. package/dist/index172.js.map +0 -1
  212. package/dist/index173.js +0 -6
  213. package/dist/index173.js.map +0 -1
  214. package/dist/index174.js +0 -6
  215. package/dist/index174.js.map +0 -1
  216. package/dist/index175.js +0 -6
  217. package/dist/index175.js.map +0 -1
  218. package/dist/index176.js +0 -6
  219. package/dist/index176.js.map +0 -1
  220. package/dist/index177.js +0 -6
  221. package/dist/index177.js.map +0 -1
  222. package/dist/index178.js +0 -6
  223. package/dist/index178.js.map +0 -1
  224. package/dist/index179.js +0 -6
  225. package/dist/index179.js.map +0 -1
  226. package/dist/index18.js +0 -5
  227. package/dist/index18.js.map +0 -1
  228. package/dist/index180.js +0 -6
  229. package/dist/index180.js.map +0 -1
  230. package/dist/index181.js +0 -6
  231. package/dist/index181.js.map +0 -1
  232. package/dist/index182.js +0 -6
  233. package/dist/index182.js.map +0 -1
  234. package/dist/index183.js +0 -5
  235. package/dist/index183.js.map +0 -1
  236. package/dist/index184.js +0 -6
  237. package/dist/index184.js.map +0 -1
  238. package/dist/index185.js +0 -5
  239. package/dist/index185.js.map +0 -1
  240. package/dist/index186.js +0 -6
  241. package/dist/index186.js.map +0 -1
  242. package/dist/index187.js +0 -6
  243. package/dist/index187.js.map +0 -1
  244. package/dist/index188.js +0 -6
  245. package/dist/index188.js.map +0 -1
  246. package/dist/index189.js +0 -6
  247. package/dist/index189.js.map +0 -1
  248. package/dist/index19.js +0 -240
  249. package/dist/index19.js.map +0 -1
  250. package/dist/index190.js +0 -6
  251. package/dist/index190.js.map +0 -1
  252. package/dist/index191.js +0 -6
  253. package/dist/index191.js.map +0 -1
  254. package/dist/index192.js +0 -6
  255. package/dist/index192.js.map +0 -1
  256. package/dist/index193.js +0 -6
  257. package/dist/index193.js.map +0 -1
  258. package/dist/index194.js +0 -6
  259. package/dist/index194.js.map +0 -1
  260. package/dist/index195.js +0 -6
  261. package/dist/index195.js.map +0 -1
  262. package/dist/index196.js +0 -5
  263. package/dist/index196.js.map +0 -1
  264. package/dist/index197.js +0 -5
  265. package/dist/index197.js.map +0 -1
  266. package/dist/index198.js +0 -7
  267. package/dist/index198.js.map +0 -1
  268. package/dist/index199.js +0 -298
  269. package/dist/index199.js.map +0 -1
  270. package/dist/index2.js +0 -43
  271. package/dist/index2.js.map +0 -1
  272. package/dist/index20.js +0 -5
  273. package/dist/index20.js.map +0 -1
  274. package/dist/index200.js +0 -19
  275. package/dist/index200.js.map +0 -1
  276. package/dist/index201.js +0 -19
  277. package/dist/index201.js.map +0 -1
  278. package/dist/index202.js +0 -22
  279. package/dist/index202.js.map +0 -1
  280. package/dist/index203.js +0 -23
  281. package/dist/index203.js.map +0 -1
  282. package/dist/index204.js +0 -32
  283. package/dist/index204.js.map +0 -1
  284. package/dist/index205.js +0 -11
  285. package/dist/index205.js.map +0 -1
  286. package/dist/index206.js +0 -5
  287. package/dist/index206.js.map +0 -1
  288. package/dist/index207.js +0 -238
  289. package/dist/index207.js.map +0 -1
  290. package/dist/index208.js +0 -6
  291. package/dist/index208.js.map +0 -1
  292. package/dist/index209.js +0 -38
  293. package/dist/index209.js.map +0 -1
  294. package/dist/index21.js +0 -116
  295. package/dist/index21.js.map +0 -1
  296. package/dist/index210.js +0 -9
  297. package/dist/index210.js.map +0 -1
  298. package/dist/index211.js +0 -13
  299. package/dist/index211.js.map +0 -1
  300. package/dist/index212.js +0 -381
  301. package/dist/index212.js.map +0 -1
  302. package/dist/index213.js +0 -137
  303. package/dist/index213.js.map +0 -1
  304. package/dist/index214.js +0 -5
  305. package/dist/index214.js.map +0 -1
  306. package/dist/index215.js +0 -177
  307. package/dist/index215.js.map +0 -1
  308. package/dist/index216.js +0 -26
  309. package/dist/index216.js.map +0 -1
  310. package/dist/index217.js +0 -376
  311. package/dist/index217.js.map +0 -1
  312. package/dist/index218.js +0 -6
  313. package/dist/index218.js.map +0 -1
  314. package/dist/index219.js +0 -6
  315. package/dist/index219.js.map +0 -1
  316. package/dist/index22.js +0 -5
  317. package/dist/index22.js.map +0 -1
  318. package/dist/index220.js +0 -5
  319. package/dist/index220.js.map +0 -1
  320. package/dist/index221.js +0 -31
  321. package/dist/index221.js.map +0 -1
  322. package/dist/index222.js +0 -20
  323. package/dist/index222.js.map +0 -1
  324. package/dist/index223.js +0 -5
  325. package/dist/index223.js.map +0 -1
  326. package/dist/index224.js +0 -12
  327. package/dist/index224.js.map +0 -1
  328. package/dist/index225.js +0 -124
  329. package/dist/index225.js.map +0 -1
  330. package/dist/index226.js +0 -82
  331. package/dist/index226.js.map +0 -1
  332. package/dist/index227.js +0 -7
  333. package/dist/index227.js.map +0 -1
  334. package/dist/index228.js +0 -5
  335. package/dist/index228.js.map +0 -1
  336. package/dist/index229.js +0 -9
  337. package/dist/index229.js.map +0 -1
  338. package/dist/index23.js +0 -116
  339. package/dist/index23.js.map +0 -1
  340. package/dist/index230.js +0 -5
  341. package/dist/index230.js.map +0 -1
  342. package/dist/index231.js +0 -5
  343. package/dist/index231.js.map +0 -1
  344. package/dist/index232.js +0 -5
  345. package/dist/index232.js.map +0 -1
  346. package/dist/index233.js +0 -5
  347. package/dist/index233.js.map +0 -1
  348. package/dist/index234.js +0 -5
  349. package/dist/index234.js.map +0 -1
  350. package/dist/index235.js +0 -5
  351. package/dist/index235.js.map +0 -1
  352. package/dist/index236.js +0 -438
  353. package/dist/index236.js.map +0 -1
  354. package/dist/index237.js +0 -92
  355. package/dist/index237.js.map +0 -1
  356. package/dist/index238.js +0 -203
  357. package/dist/index238.js.map +0 -1
  358. package/dist/index239.js +0 -227
  359. package/dist/index239.js.map +0 -1
  360. package/dist/index24.js +0 -5
  361. package/dist/index24.js.map +0 -1
  362. package/dist/index240.js +0 -261
  363. package/dist/index240.js.map +0 -1
  364. package/dist/index241.js +0 -5
  365. package/dist/index241.js.map +0 -1
  366. package/dist/index242.js +0 -120
  367. package/dist/index242.js.map +0 -1
  368. package/dist/index243.js +0 -109
  369. package/dist/index243.js.map +0 -1
  370. package/dist/index244.js +0 -163
  371. package/dist/index244.js.map +0 -1
  372. package/dist/index245.js +0 -5
  373. package/dist/index245.js.map +0 -1
  374. package/dist/index246.js +0 -72
  375. package/dist/index246.js.map +0 -1
  376. package/dist/index247.js +0 -8
  377. package/dist/index247.js.map +0 -1
  378. package/dist/index248.js +0 -5
  379. package/dist/index248.js.map +0 -1
  380. package/dist/index249.js +0 -41
  381. package/dist/index249.js.map +0 -1
  382. package/dist/index25.js +0 -93
  383. package/dist/index25.js.map +0 -1
  384. package/dist/index250.js +0 -5
  385. package/dist/index250.js.map +0 -1
  386. package/dist/index251.js +0 -5
  387. package/dist/index251.js.map +0 -1
  388. package/dist/index252.js +0 -18
  389. package/dist/index252.js.map +0 -1
  390. package/dist/index253.js +0 -6
  391. package/dist/index253.js.map +0 -1
  392. package/dist/index254.js +0 -5
  393. package/dist/index254.js.map +0 -1
  394. package/dist/index255.js +0 -5
  395. package/dist/index255.js.map +0 -1
  396. package/dist/index26.js +0 -5
  397. package/dist/index26.js.map +0 -1
  398. package/dist/index27.js +0 -150
  399. package/dist/index27.js.map +0 -1
  400. package/dist/index28.js +0 -5
  401. package/dist/index28.js.map +0 -1
  402. package/dist/index29.js +0 -125
  403. package/dist/index29.js.map +0 -1
  404. package/dist/index3.js +0 -81
  405. package/dist/index3.js.map +0 -1
  406. package/dist/index30.js +0 -5
  407. package/dist/index30.js.map +0 -1
  408. package/dist/index31.js +0 -692
  409. package/dist/index31.js.map +0 -1
  410. package/dist/index32.js +0 -5
  411. package/dist/index32.js.map +0 -1
  412. package/dist/index33.js +0 -146
  413. package/dist/index33.js.map +0 -1
  414. package/dist/index34.js +0 -5
  415. package/dist/index34.js.map +0 -1
  416. package/dist/index35.js +0 -119
  417. package/dist/index35.js.map +0 -1
  418. package/dist/index36.js +0 -5
  419. package/dist/index36.js.map +0 -1
  420. package/dist/index37.js +0 -155
  421. package/dist/index37.js.map +0 -1
  422. package/dist/index38.js +0 -5
  423. package/dist/index38.js.map +0 -1
  424. package/dist/index39.js +0 -84
  425. package/dist/index39.js.map +0 -1
  426. package/dist/index4.js +0 -65
  427. package/dist/index4.js.map +0 -1
  428. package/dist/index40.js +0 -5
  429. package/dist/index40.js.map +0 -1
  430. package/dist/index41.js +0 -62
  431. package/dist/index41.js.map +0 -1
  432. package/dist/index42.js +0 -5
  433. package/dist/index42.js.map +0 -1
  434. package/dist/index43.js +0 -66
  435. package/dist/index43.js.map +0 -1
  436. package/dist/index44.js +0 -5
  437. package/dist/index44.js.map +0 -1
  438. package/dist/index45.js +0 -97
  439. package/dist/index45.js.map +0 -1
  440. package/dist/index46.js +0 -5
  441. package/dist/index46.js.map +0 -1
  442. package/dist/index47.js +0 -62
  443. package/dist/index47.js.map +0 -1
  444. package/dist/index48.js +0 -5
  445. package/dist/index48.js.map +0 -1
  446. package/dist/index49.js +0 -50
  447. package/dist/index49.js.map +0 -1
  448. package/dist/index5.js +0 -43
  449. package/dist/index5.js.map +0 -1
  450. package/dist/index50.js +0 -5
  451. package/dist/index50.js.map +0 -1
  452. package/dist/index51.js +0 -63
  453. package/dist/index51.js.map +0 -1
  454. package/dist/index52.js +0 -5
  455. package/dist/index52.js.map +0 -1
  456. package/dist/index53.js +0 -46
  457. package/dist/index53.js.map +0 -1
  458. package/dist/index54.js +0 -5
  459. package/dist/index54.js.map +0 -1
  460. package/dist/index55.js +0 -90
  461. package/dist/index55.js.map +0 -1
  462. package/dist/index56.js +0 -5
  463. package/dist/index56.js.map +0 -1
  464. package/dist/index57.js +0 -121
  465. package/dist/index57.js.map +0 -1
  466. package/dist/index58.js +0 -5
  467. package/dist/index58.js.map +0 -1
  468. package/dist/index59.js +0 -86
  469. package/dist/index59.js.map +0 -1
  470. package/dist/index6.js +0 -177
  471. package/dist/index6.js.map +0 -1
  472. package/dist/index60.js +0 -5
  473. package/dist/index60.js.map +0 -1
  474. package/dist/index61.js +0 -89
  475. package/dist/index61.js.map +0 -1
  476. package/dist/index62.js +0 -5
  477. package/dist/index62.js.map +0 -1
  478. package/dist/index63.js +0 -60
  479. package/dist/index63.js.map +0 -1
  480. package/dist/index64.js +0 -5
  481. package/dist/index64.js.map +0 -1
  482. package/dist/index65.js +0 -314
  483. package/dist/index65.js.map +0 -1
  484. package/dist/index66.js +0 -5
  485. package/dist/index66.js.map +0 -1
  486. package/dist/index67.js +0 -130
  487. package/dist/index67.js.map +0 -1
  488. package/dist/index68.js +0 -5
  489. package/dist/index68.js.map +0 -1
  490. package/dist/index69.js +0 -226
  491. package/dist/index69.js.map +0 -1
  492. package/dist/index7.js +0 -22
  493. package/dist/index7.js.map +0 -1
  494. package/dist/index70.js +0 -5
  495. package/dist/index70.js.map +0 -1
  496. package/dist/index71.js +0 -25
  497. package/dist/index71.js.map +0 -1
  498. package/dist/index72.js +0 -47
  499. package/dist/index72.js.map +0 -1
  500. package/dist/index73.js +0 -96
  501. package/dist/index73.js.map +0 -1
  502. package/dist/index74.js +0 -5
  503. package/dist/index74.js.map +0 -1
  504. package/dist/index75.js +0 -228
  505. package/dist/index75.js.map +0 -1
  506. package/dist/index76.js +0 -5
  507. package/dist/index76.js.map +0 -1
  508. package/dist/index77.js +0 -142
  509. package/dist/index77.js.map +0 -1
  510. package/dist/index78.js +0 -5
  511. package/dist/index78.js.map +0 -1
  512. package/dist/index79.js +0 -214
  513. package/dist/index79.js.map +0 -1
  514. package/dist/index8.js +0 -197
  515. package/dist/index8.js.map +0 -1
  516. package/dist/index80.js +0 -5
  517. package/dist/index80.js.map +0 -1
  518. package/dist/index81.js +0 -36
  519. package/dist/index81.js.map +0 -1
  520. package/dist/index82.js +0 -5
  521. package/dist/index82.js.map +0 -1
  522. package/dist/index83.js +0 -84
  523. package/dist/index83.js.map +0 -1
  524. package/dist/index84.js +0 -5
  525. package/dist/index84.js.map +0 -1
  526. package/dist/index85.js +0 -121
  527. package/dist/index85.js.map +0 -1
  528. package/dist/index86.js +0 -5
  529. package/dist/index86.js.map +0 -1
  530. package/dist/index87.js +0 -84
  531. package/dist/index87.js.map +0 -1
  532. package/dist/index88.js +0 -5
  533. package/dist/index88.js.map +0 -1
  534. package/dist/index89.js +0 -31
  535. package/dist/index89.js.map +0 -1
  536. package/dist/index9.js +0 -66
  537. package/dist/index9.js.map +0 -1
  538. package/dist/index90.js +0 -5
  539. package/dist/index90.js.map +0 -1
  540. package/dist/index91.js +0 -158
  541. package/dist/index91.js.map +0 -1
  542. package/dist/index92.js +0 -5
  543. package/dist/index92.js.map +0 -1
  544. package/dist/index93.js +0 -87
  545. package/dist/index93.js.map +0 -1
  546. package/dist/index94.js +0 -5
  547. package/dist/index94.js.map +0 -1
  548. package/dist/index95.js +0 -90
  549. package/dist/index95.js.map +0 -1
  550. package/dist/index96.js +0 -5
  551. package/dist/index96.js.map +0 -1
  552. package/dist/index97.js +0 -120
  553. package/dist/index97.js.map +0 -1
  554. package/dist/index98.js +0 -5
  555. package/dist/index98.js.map +0 -1
  556. package/dist/index99.js +0 -209
  557. package/dist/index99.js.map +0 -1
  558. package/dist/style.css +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index111.js","sources":["../src/components/BbTooltip/BbTooltip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, createElementVNode as _createElementVNode, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, Teleport as _Teleport } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-tooltip__bubble\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"svg\", {\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-width\": \"2\"\n })\n], -1)\n\nimport { computed, ref } from 'vue';\nimport { useFloating, autoUpdate, flip, shift, arrow } from '@floating-ui/vue';\nimport { useId } from '@/composables/useId';\nimport { wait } from '@/utilities/functions/wait';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport type { CommonProps } from '@/types/CommonProps';\nimport type { Placement } from '@floating-ui/vue';\nimport { throttle } from '@/utilities/functions/throttle';\nimport { waitFor } from '@/utilities/functions/waitFor';\n\nexport type BbTooltipProps = Pick<\n\tCommonProps,\n\t| 'arrowPadding'\n\t| 'block'\n\t| 'disabled'\n\t| 'eager'\n\t| 'id'\n\t| 'padding'\n\t| 'placement'\n\t| 'showClose'\n\t| 'theme'\n\t| 'transitionDuration'\n>;\n\ntype BbTooltipSlots = {\n\tactivator?: (props: {\n\t\tprops: {\n\t\t\t'aria-describedby': string;\n\t\t\tonMouseenter: typeof onMouseenter;\n\t\t\tonFocus: typeof onFocus;\n\t\t\tonBlur: typeof closeTooltip;\n\t\t};\n\t\tclosed: boolean;\n\t\tclosing: boolean;\n\t\tdisabled?: boolean;\n\t\topen: boolean;\n\t\topening: boolean;\n\t\tplacement: Placement;\n\t}) => any;\n\tdefault?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTooltip',\n props: {\n arrowPadding: { default: 10 },\n block: { type: Boolean },\n disabled: { type: Boolean },\n eager: { type: Boolean },\n id: {},\n padding: { default: 10 },\n placement: { default: 'top' },\n showClose: { type: Boolean, default: true },\n theme: { default: 'default' },\n transitionDuration: { default: 150 }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst id = `bb_${props.id ?? useId().id.value}`;\n\nconst wrapper = ref<HTMLElement>();\nconst content = ref<HTMLElement>();\nconst bubblearrow = ref<HTMLElement>();\n\nconst { floatingStyles, placement, middlewareData } = useFloating(\n\twrapper,\n\tcontent,\n\t{\n\t\tplacement: props.placement,\n\t\twhileElementsMounted: autoUpdate,\n\t\tmiddleware: [\n\t\t\tflip(),\n\t\t\tshift({ padding: props.padding }),\n\t\t\tarrow({\n\t\t\t\telement: bubblearrow,\n\t\t\t\tpadding: props.arrowPadding,\n\t\t\t}),\n\t\t],\n\t}\n);\n\nconst canOpen = ref(true);\n\nconst opening = ref(false);\nconst open = ref(false);\nconst closing = ref(false);\nconst closed = ref(true);\n\nconst arrowAttributes = computed(() => {\n\tif (middlewareData.value.arrow) {\n\t\tconst { x, y } = middlewareData.value.arrow;\n\t\treturn {\n\t\t\tstyle: {\n\t\t\t\tleft: `${x}px`,\n\t\t\t\ttop: `${y}px`,\n\t\t\t},\n\t\t};\n\t}\n});\n\nconst onMouseenter = () => {\n\tif (open.value || opening.value || props.disabled) return;\n\topenTooltip();\n\tdocument.addEventListener('mouseover', onMouseOver, { passive: true });\n\tdocument.addEventListener('keydown', onEsc, { passive: true });\n};\n\nconst onFocus = onMouseenter;\n\nconst onMouseOver = throttle((event: Event) => {\n\tconst target = event.target;\n\tif (!target) return;\n\tif (target instanceof HTMLElement) {\n\t\tlet isOutside = true;\n\n\t\tif (wrapper.value) {\n\t\t\tif (wrapper.value.contains(target)) {\n\t\t\t\tisOutside = false;\n\t\t\t}\n\t\t}\n\t\tif (content.value) {\n\t\t\tif (content.value.contains(target)) {\n\t\t\t\tisOutside = false;\n\t\t\t}\n\t\t}\n\n\t\tif (isOutside) {\n\t\t\tcloseTooltip();\n\t\t}\n\t}\n}, props.transitionDuration);\n\nconst onEsc = (event: KeyboardEvent) => {\n\tif (open.value) {\n\t\tif (event.key === 'Escape') {\n\t\t\tcloseTooltip();\n\t\t}\n\t}\n};\n\n/* On click of close button tooltip is disallowed from reappearing */\nconst onClickClose = () => {\n\tcanOpen.value = false;\n\tcloseTooltip();\n};\n\nconst hasOpenedOnce = ref(false);\nconst openTooltip = throttle(async () => {\n\tif (!canOpen.value) return;\n\thasOpenedOnce.value = true;\n\tclosed.value = false;\n\tclosing.value = false;\n\topening.value = true;\n\tawait wait(50);\n\topen.value = true;\n\topening.value = false;\n}, props.transitionDuration);\n\nconst closeTooltip = throttle(async () => {\n\tawait waitFor(() => !opening.value);\n\tdocument.removeEventListener('mouseover', onMouseOver);\n\tdocument.removeEventListener('keydown', onEsc);\n\topen.value = false;\n\topening.value = false;\n\tclosing.value = true;\n\tawait wait(props.transitionDuration);\n\tclosing.value = false;\n\tclosed.value = true;\n}, props.transitionDuration);\n\nconst attributes = computed(() => {\n\tconst classes = {\n\t\t'bb-tooltip--block': props.block,\n\t\t[`bb-tooltip--theme-${props.theme}`]: props.theme,\n\t};\n\treturn {\n\t\tclass: classes,\n\t};\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({ class: \"bb-tooltip\" }, attributes.value), [\n _createElementVNode(\"span\", {\n ref_key: \"wrapper\",\n ref: wrapper,\n class: \"bb-tooltip__wrapper\"\n }, [\n _renderSlot(_ctx.$slots, \"activator\", _normalizeProps(_guardReactiveProps({\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t...(hasOpenedOnce.value ? { 'aria-describedby': id } : {}),\n\t\t\t\t\t\tonMouseenter: onMouseenter,\n\t\t\t\t\t\tonFocus: _unref(onFocus),\n\t\t\t\t\t\tonBlur: _unref(closeTooltip),\n\t\t\t\t\t\tdisabled: _ctx.disabled,\n\t\t\t\t\t},\n\t\t\t\t\tclosed: closed.value,\n\t\t\t\t\tclosing: closing.value,\n\t\t\t\t\tdisabled: _ctx.disabled,\n\t\t\t\t\topen: open.value,\n\t\t\t\t\topening: opening.value,\n\t\t\t\t\tplacement: _unref(placement),\n\t\t\t\t})))\n ], 512),\n (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n (hasOpenedOnce.value || _ctx.eager)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n id: id,\n ref_key: \"content\",\n ref: content,\n class: _normalizeClass([\"bb-tooltip__bubble-container\", {\n\t\t\t\t\t[`bb-tooltip__bubble-container--${_unref(placement)}`]: true,\n\t\t\t\t\t[`bb-tooltip__bubble-container--${_ctx.theme}`]: _ctx.theme,\n\t\t\t\t\t'bb-tooltip__bubble-container--hidden': closed.value,\n\t\t\t\t\t'bb-tooltip__bubble-container--closing': closing.value,\n\t\t\t\t\t'bb-tooltip__bubble-container--opening': opening.value,\n\t\t\t\t\t'bb-tooltip__bubble-container--open': open.value,\n\t\t\t\t}]),\n style: _normalizeStyle({\n\t\t\t\t\t..._unref(floatingStyles),\n\t\t\t\t\ttransitionDuration: `${props.transitionDuration}ms`,\n\t\t\t\t})\n }, [\n _createElementVNode(\"span\", _mergeProps({\n ref_key: \"bubblearrow\",\n ref: bubblearrow,\n class: \"bb-tooltip__arrow\"\n }, arrowAttributes.value), null, 16),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n \"aria-hidden\": \"true\",\n class: \"bb-tooltip__close\",\n tabindex: \"-1\",\n onClick: onClickClose\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ])\n ], 6))\n : _createCommentVNode(\"\", true)\n ]))\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","id","useId","wrapper","ref","content","bubblearrow","floatingStyles","placement","middlewareData","useFloating","autoUpdate","flip","shift","arrow","canOpen","opening","open","closing","closed","arrowAttributes","computed","x","y","onMouseenter","openTooltip","onMouseOver","onEsc","onFocus","throttle","event","target","isOutside","closeTooltip","onClickClose","hasOpenedOnce","wait","waitFor","attributes","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_renderSlot","_normalizeProps","_guardReactiveProps","_unref","_createBlock","_Teleport","_normalizeClass","_normalizeStyle","BaseButton","_withCtx","_createCommentVNode"],"mappings":";;;;;;;;;AAGA,MAAMA,KAAa,EAAE,OAAO,wBACtBC,uBAA8C,OAAO;AAAA,EACzD,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACT,GAAG;AAAA,oBACgC,QAAQ;AAAA,IACvC,GAAG;AAAA,IACH,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAAA,CACjB;AACH,GAAG,EAAE,GA6CuBC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,EAAE,SAAS,GAAG;AAAA,IAC5B,OAAO,EAAE,MA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yCF,EAAQ;AAAA,YACjD,sCAAsCC,EAAK;AAAA,UAAA,CAC3C,CAAC;AAAA,UACM,OAAOmC,EAAgB;AAAA,YAC9B,GAAGJ,EAAOzC,CAAc;AAAA,YACxB,oBAAoB,GAAGP,EAAM,kBAAkB;AAAA,UAAA,CAC/C;AAAA,QAAA,GACQ;AAAA,UACD4C,EAAoB,QAAQD,EAAY;AAAA,YACtC,SAAS;AAAA,YACT,KAAKrC;AAAA,YACL,OAAO;AAAA,UACN,GAAAc,EAAgB,KAAK,GAAG,MAAM,EAAE;AAAA,UACnCwB,EAAoB,QAAQjD,IAAY;AAAA,YACrC4C,EAAK,aACDE,KAAcQ,EAAaI,GAAY;AAAA,cACtC,KAAK;AAAA,cACL,eAAe;AAAA,cACf,OAAO;AAAA,cACP,UAAU;AAAA,cACV,SAASnB;AAAA,YAAA,GACR;AAAA,cACD,SAASoB,EAAS,MAAM;AAAA,gBACtB1D;AAAA,cAAA,CACD;AAAA,cACD,GAAG;AAAA,YAAA,CACJ,KACD2D,EAAoB,IAAI,EAAI;AAAA,YAChCV,EAAYN,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,QACA,GAAA,CAAC,KACJgB,EAAoB,IAAI,EAAI;AAAA,MAAA,CACjC;AAAA,OACA,EAAE;AAAA,EAEP;AAEA,CAAC;"}
package/dist/index112.js DELETED
@@ -1,5 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
5
- //# sourceMappingURL=index112.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index112.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index113.js DELETED
@@ -1,123 +0,0 @@
1
- import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
2
- import { flattenTree as P } from "./index247.js";
3
- const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
4
- __name: "BbTree",
5
- props: {
6
- items: { default: () => [] },
7
- parent: {},
8
- identifier: { default: "id" },
9
- depth: { default: 0 },
10
- expandable: { type: [Boolean, Function] }
11
- },
12
- setup(c) {
13
- const r = c, u = (n) => typeof n.open > "u" ? !0 : n.open, x = g(() => {
14
- let n = 0;
15
- return r.items.map((d, l) => {
16
- const e = u(d), t = d.expandable ?? r.expandable, a = n + 1;
17
- n = n + P([d], "children").length;
18
- let o = !1;
19
- return typeof t < "u" && (typeof t == "function" ? o = t(d, r.depth, r.parent) : o = t), {
20
- children: d.children,
21
- depth: r.depth,
22
- expandable: o,
23
- identifier: d[r.identifier],
24
- offset: a,
25
- index: l,
26
- open: e,
27
- original: d,
28
- parent: r.parent
29
- };
30
- });
31
- });
32
- return (n, d) => {
33
- const l = y("BbTree", !0);
34
- return f(!0), i(v, null, h(x.value, (e) => (f(), i("div", {
35
- key: e.identifier,
36
- class: b(["bb-tree", {
37
- [`bb-tree--depth-${e.depth}`]: !0,
38
- "bb-tree--open": e.open
39
- }])
40
- }, [
41
- s("div", w, [
42
- s("div", z, [
43
- n.$slots[e.identifier] ? p(n.$slots, e.identifier, {
44
- key: 0,
45
- depth: e.depth,
46
- expandable: e.expandable,
47
- identifier: e.identifier,
48
- index: e.index,
49
- item: e.original,
50
- offset: e.offset,
51
- open: e.open,
52
- parent: e.parent
53
- }) : n.$slots[e.depth] ? p(n.$slots, e.depth, {
54
- key: 1,
55
- depth: e.depth,
56
- expandable: e.expandable,
57
- identifier: e.identifier,
58
- index: e.index,
59
- item: e.original,
60
- offset: e.offset,
61
- open: e.open,
62
- parent: e.parent
63
- }) : p(n.$slots, "default", {
64
- key: 2,
65
- depth: e.depth,
66
- expandable: e.expandable,
67
- identifier: e.identifier,
68
- index: e.index,
69
- item: e.original,
70
- offset: e.offset,
71
- open: e.open,
72
- parent: e.parent
73
- })
74
- ])
75
- ]),
76
- s("div", {
77
- class: b(`bb-tree--depth-${e.depth}-children`)
78
- }, [
79
- p(n.$slots, `${e.depth}-children`, {
80
- depth: e.depth,
81
- expandable: e.expandable,
82
- identifier: e.identifier,
83
- index: e.index,
84
- item: e.original,
85
- offset: e.offset,
86
- open: e.open,
87
- parent: e.parent
88
- }, () => [
89
- p(n.$slots, `${e.identifier}-children`, {
90
- depth: e.depth,
91
- expandable: e.expandable,
92
- identifier: e.identifier,
93
- index: e.index,
94
- item: e.original,
95
- offset: e.offset,
96
- open: e.open,
97
- parent: e.parent
98
- }, () => [
99
- k(l, {
100
- depth: e.depth + 1,
101
- expandable: n.expandable,
102
- identifier: r.identifier,
103
- items: e.children,
104
- parent: e
105
- }, B({ _: 2 }, [
106
- h(n.$slots, (t, a) => ({
107
- name: a,
108
- fn: C((o) => [
109
- p(n.$slots, a, T(_(o)))
110
- ])
111
- }))
112
- ]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
113
- ])
114
- ])
115
- ], 2)
116
- ], 2))), 128);
117
- };
118
- }
119
- });
120
- export {
121
- I as default
122
- };
123
- //# sourceMappingURL=index113.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index113.js","sources":["../src/components/BbTree/BbTree.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, resolveComponent as _resolveComponent, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-tree-row\" }\nconst _hoisted_2 = { class: \"bb-tree-main-content\" }\n\nimport { flattenTree } from '@/utilities/functions/flattenTree';\nimport { computed } from 'vue';\n\nexport type TreeItem = {\n\t/**\n\t * Array of children of the current item. Is the key\n\t * with which we can identify whther the node is nested or not.\n\t */\n\tchildren?: TreeItem[];\n\t/**\n\t * Status of the current node. When a node is open\n\t * it's children are displayed. Otherwise its children\n\t * are hidden.\n\t */\n\topen?: boolean;\n\t[key: symbol | string]: any;\n} & Pick<BbTreeProps, 'expandable'>;\n\nexport type BbTreeProps = {\n\t/**\n\t * Array containing the tree like structure of the items.\n\t */\n\titems: TreeItem[];\n\t/**\n\t * Parent of the current node. `undefined` for the first level.\n\t */\n\tparent?: TreeItem;\n\t/**\n\t * Identifier of the item.\n\t */\n\tidentifier?: string | number;\n\t/**\n\t * Current depth of the tree. Starting at 0 for\n\t * the first level increasing at every level down.\n\t */\n\tdepth?: number;\n\t/**\n\t * Defines the item as expandable. It can be a\n\t * global boolean defining all items as expandable.\n\t * Or it can be a function that receives the item,\n\t * depth, and parent of the current node and returns a boolean.\n\t */\n\texpandable?:\n\t\t| boolean\n\t\t| ((item: TreeItem, depth: number, parent?: TreeItem) => boolean);\n};\n\nexport type BbTreeSlots = {\n\t[key: string]: (props: {\n\t\titem: any;\n\t\tparent?: any;\n\t\tindex: number;\n\t\toffset: number;\n\t\topen: boolean;\n\t\tdepth: number;\n\t\tidentifier?: string | number;\n\t\texpandable: boolean;\n\t}) => any;\n};\ntype MappedItem = {\n\tchildren: TreeItem['children'];\n\tdepth: NonNullable<BbTreeProps['depth']>;\n\texpandable: boolean;\n\tidentifier: any;\n\tindex: number;\n\toffset: number;\n\topen: boolean;\n\toriginal: any;\n\tparent: BbTreeProps['parent'];\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTree',\n props: {\n items: { default: () => [] as TreeItem[] },\n parent: {},\n identifier: { default: 'id' },\n depth: { default: 0 },\n expandable: { type: [Boolean, Function] }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst itemIsOpen = (item: TreeItem) => {\n\t/* If the item is not expandable it must be open */\n\tif (typeof item.open === 'undefined') return true;\n\treturn item.open;\n};\n\nconst internalItems = computed<MappedItem[]>(() => {\n\tlet currentOffset = 0;\n\n\treturn props.items.map((item: TreeItem, index) => {\n\t\tconst open = itemIsOpen(item);\n\t\tconst expandableProp = item.expandable ?? props.expandable;\n\t\tconst offset = currentOffset + 1;\n\n\t\tcurrentOffset = currentOffset + flattenTree([item], 'children').length;\n\n\t\tlet expandable = false;\n\t\tif (typeof expandableProp !== 'undefined') {\n\t\t\tif (typeof expandableProp === 'function')\n\t\t\t\texpandable = expandableProp(item, props.depth, props.parent);\n\t\t\telse expandable = expandableProp;\n\t\t}\n\t\treturn {\n\t\t\tchildren: item.children,\n\t\t\tdepth: props.depth,\n\t\t\texpandable: expandable,\n\t\t\tidentifier: item[props.identifier],\n\t\t\toffset,\n\t\t\tindex,\n\t\t\topen,\n\t\t\toriginal: item,\n\t\t\tparent: props.parent,\n\t\t};\n\t});\n});\n\nreturn (_ctx: any,_cache: any) => {\n const _component_BbTree = _resolveComponent(\"BbTree\", true)!\n\n return (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(internalItems.value, (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: item.identifier,\n class: _normalizeClass([\"bb-tree\", {\n\t\t\t[`bb-tree--depth-${item.depth}`]: true,\n\t\t\t'bb-tree--open': item.open,\n\t\t}])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_ctx.$slots[item.identifier])\n ? _renderSlot(_ctx.$slots, item.identifier, {\n key: 0,\n depth: item.depth,\n expandable: item.expandable,\n identifier: item.identifier,\n index: item.index,\n item: item.original,\n offset: item.offset,\n open: item.open,\n parent: item.parent\n })\n : (_ctx.$slots[item.depth])\n ? _renderSlot(_ctx.$slots, item.depth, {\n key: 1,\n depth: item.depth,\n expandable: item.expandable,\n identifier: item.identifier,\n index: item.index,\n item: item.original,\n offset: item.offset,\n open: item.open,\n parent: item.parent\n })\n : _renderSlot(_ctx.$slots, 'default', {\n key: 2,\n depth: item.depth,\n expandable: item.expandable,\n identifier: item.identifier,\n index: item.index,\n item: item.original,\n offset: item.offset,\n open: item.open,\n parent: item.parent\n })\n ])\n ]),\n _createElementVNode(\"div\", {\n class: _normalizeClass(`bb-tree--depth-${item.depth}-children`)\n }, [\n _renderSlot(_ctx.$slots, `${item.depth}-children`, {\n depth: item.depth,\n expandable: item.expandable,\n identifier: item.identifier,\n index: item.index,\n item: item.original,\n offset: item.offset,\n open: item.open,\n parent: item.parent\n }, () => [\n _renderSlot(_ctx.$slots, `${item.identifier}-children`, {\n depth: item.depth,\n expandable: item.expandable,\n identifier: item.identifier,\n index: item.index,\n item: item.original,\n offset: item.offset,\n open: item.open,\n parent: item.parent\n }, () => [\n _createVNode(_component_BbTree, {\n depth: item.depth + 1,\n expandable: _ctx.expandable,\n identifier: props.identifier,\n items: item.children,\n parent: item\n }, _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1032, [\"depth\", \"expandable\", \"identifier\", \"items\", \"parent\"])\n ])\n ])\n ], 2)\n ], 2))\n }), 128))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","itemIsOpen","item","internalItems","computed","currentOffset","index","open","expandableProp","offset","flattenTree","expandable","_ctx","_cache","_component_BbTree","_resolveComponent","_openBlock","_createElementBlock","_Fragment","_renderList","_normalizeClass","_createElementVNode","_renderSlot","_createVNode","_createSlots","_","name","_withCtx","data","_normalizeProps","_guardReactiveProps"],"mappings":";;AAGA,MAAMA,IAAa,EAAE,OAAO,iBACtBC,IAAa,EAAE,OAAO,0BA0EAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,SAAS,MAAM,GAAiB;AAAA,IACzC,QAAQ,CAAC;AAAA,IACT,YAAY,EAAE,SAAS,KAAK;AAAA,IAC5B,OAAO,EAAE,SAA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AAA,YACZ,MAAMA,EAAK;AAAA,YACX,QAAQA,EAAK;AAAA,YACb,MAAMA,EAAK;AAAA,YACX,QAAQA,EAAK;AAAA,UAAA,GACZ,MAAM;AAAA,YACPoB,EAAYV,EAAK,QAAQ,GAAGV,EAAK,UAAU,aAAa;AAAA,cACtD,OAAOA,EAAK;AAAA,cACZ,YAAYA,EAAK;AAAA,cACjB,YAAYA,EAAK;AAAA,cACjB,OAAOA,EAAK;AAAA,cACZ,MAAMA,EAAK;AAAA,cACX,QAAQA,EAAK;AAAA,cACb,MAAMA,EAAK;AAAA,cACX,QAAQA,EAAK;AAAA,YAAA,GACZ,MAAM;AAAA,cACPqB,EAAaT,GAAmB;AAAA,gBAC9B,OAAOZ,EAAK,QAAQ;AAAA,gBACpB,YAAYU,EAAK;AAAA,gBACjB,YAAYZ,EAAM;AAAA,gBAClB,OAAOE,EAAK;AAAA,gBACZ,QAAQA;AAAA,cACP,GAAAsB,EAAa,EAAE,GAAG,KAAK;AAAA,gBACxBL,EAAYP,EAAK,QAAQ,CAACa,GAAGC,OACpB;AAAA,kBACL,MAAAA;AAAA,kBACA,IAAIC,EAAS,CAACC,MAAS;AAAA,oBACrBN,EAAYV,EAAK,QAAQc,GAAMG,EAAgBC,EAAoBF,CAAI,CAAC,CAAC;AAAA,kBAAA,CAC1E;AAAA,gBAAA,EAEJ;AAAA,cAAA,CACF,GAAG,MAAM,CAAC,SAAS,cAAc,cAAc,SAAS,QAAQ,CAAC;AAAA,YAAA,CACnE;AAAA,UAAA,CACF;AAAA,WACA,CAAC;AAAA,SACH,CAAC,EACL,GAAG,GAAG;AAAA,IAAA;AAAA,EAET;AAEA,CAAC;"}
package/dist/index114.js DELETED
@@ -1,5 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
5
- //# sourceMappingURL=index114.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index114.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index115.js DELETED
@@ -1,47 +0,0 @@
1
- import { defineComponent as c, openBlock as t, createElementBlock as o, createElementVNode as l, renderSlot as r, createTextVNode as i, toDisplayString as p, withModifiers as _, createCommentVNode as d } from "vue";
2
- const b = { class: "bb-chip" }, h = { class: "bb-chip__content" }, m = ["aria-label"], u = {
3
- "aria-hidden": "true",
4
- class: "v-icon__svg",
5
- role: "img",
6
- style: { height: "20px", width: "20px" },
7
- viewBox: "0 0 20 20",
8
- xmlns: "http://www.w3.org/2000/svg"
9
- }, L = /* @__PURE__ */ l("path", {
10
- d: "M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z",
11
- fill: "currentColor"
12
- }, null, -1), f = [
13
- L
14
- ], v = /* @__PURE__ */ c({
15
- __name: "BbChip",
16
- props: {
17
- text: {},
18
- clearable: { type: Boolean, default: !0 },
19
- clearableLabel: { default: "Elimina" }
20
- },
21
- emits: ["click:clear"],
22
- setup(g, { emit: a }) {
23
- const s = a, n = (e) => {
24
- s("click:clear", e);
25
- };
26
- return (e, w) => (t(), o("span", b, [
27
- l("span", h, [
28
- r(e.$slots, "default", {}, () => [
29
- i(p(e.text), 1)
30
- ])
31
- ]),
32
- e.clearable ? (t(), o("button", {
33
- key: 0,
34
- "aria-label": e.clearableLabel,
35
- class: "bb-chip__clear-button",
36
- type: "button",
37
- onClick: _(n, ["stop", "prevent"])
38
- }, [
39
- (t(), o("svg", u, f))
40
- ], 8, m)) : d("", !0)
41
- ]));
42
- }
43
- });
44
- export {
45
- v as default
46
- };
47
- //# sourceMappingURL=index115.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index115.js","sources":["../src/components/BbChip/BbChip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-chip\" }\nconst _hoisted_2 = { class: \"bb-chip__content\" }\nconst _hoisted_3 = [\"aria-label\"]\nconst _hoisted_4 = {\n \"aria-hidden\": \"true\",\n class: \"v-icon__svg\",\n role: \"img\",\n style: {\"height\":\"20px\",\"width\":\"20px\"},\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z\",\n fill: \"currentColor\"\n}, null, -1)\nconst _hoisted_6 = [\n _hoisted_5\n]\n\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbChipProps = Pick<CommonProps, 'text'> & {\n\t/**\n\t * Renders a button with a close icon. Used to indicate the possibility of deleting the item.\n\t */\n\tclearable?: boolean;\n\t/**\n\t * The label the clearing button must have\n\t */\n\tclearableLabel?: string;\n};\n\nexport type BbChipEvents = {\n\t(e: 'click:clear', event: MouseEvent): void;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbChip',\n props: {\n text: {},\n clearable: { type: Boolean, default: true },\n clearableLabel: { default: 'Elimina' }\n },\n emits: ['click:clear'],\n setup(__props: any, { emit: __emit }) {\n\n\n\n\n\nconst emit = __emit;\nconst onClear = (event: MouseEvent) => {\n\temit('click:clear', event);\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n _createElementVNode(\"span\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n (_ctx.clearable)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n \"aria-label\": _ctx.clearableLabel,\n class: \"bb-chip__clear-button\",\n type: \"button\",\n onClick: _withModifiers(onClear, [\"stop\",\"prevent\"])\n }, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_4, _hoisted_6))\n ], 8, _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_sfc_main","_defineComponent","__props","__emit","emit","onClear","event","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_renderSlot","_createTextVNode","_toDisplayString","_withModifiers","_createCommentVNode"],"mappings":";AAGA,MAAMA,IAAa,EAAE,OAAO,aACtBC,IAAa,EAAE,OAAO,sBACtBC,IAAa,CAAC,YAAY,GAC1BC,IAAa;AAAA,EACjB,eAAe;AAAA,EACf,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO,EAAC,QAAS,QAAO,OAAQ,OAAM;AAAA,EACtC,SAAS;AAAA,EACT,OAAO;AACT,GACMC,sBAA8C,QAAQ;AAAA,EAC1D,GAAG;AAAA,EACH,MAAM;AACR,GAAG,MAAM,EAAE,GACLC,IAAa;AAAA,EACjBD;AACF,GAoB4BE,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,MAAM,CAAC;AAAA,IACP,WAAW,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC1C,gBAAgB,EAAE,SAAS,UAAU;AAAA,EACvC;AAAA,EACA,OAAO,CAAC,aAAa;AAAA,EACrB,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAMxC,UAAMC,IAAOD,GACPE,IAAU,CAACC,MAAsB;AACtC,MAAAF,EAAK,eAAeE,CAAK;AAAA,IAAA;AAGnB,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,QAAQhB,GAAY;AAAA,MAC5DiB,EAAoB,QAAQhB,GAAY;AAAA,QACtCiB,EAAYL,EAAK,QAAQ,WAAW,IAAI,MAAM;AAAA,UAC5CM,EAAiBC,EAAiBP,EAAK,IAAI,GAAG,CAAC;AAAA,QAAA,CAChD;AAAA,MAAA,CACF;AAAA,MACAA,EAAK,aACDE,KAAcC,EAAoB,UAAU;AAAA,QAC3C,KAAK;AAAA,QACL,cAAcH,EAAK;AAAA,QACnB,OAAO;AAAA,QACP,MAAM;AAAA,QACN,SAASQ,EAAeV,GAAS,CAAC,QAAO,SAAS,CAAC;AAAA,MAAA,GAClD;AAAA,SACAI,EAAW,GAAGC,EAAoB,OAAOb,GAAYE,CAAU;AAAA,SAC/D,GAAGH,CAAU,KAChBoB,EAAoB,IAAI,EAAI;AAAA,IAAA,CACjC;AAAA,EAEH;AAEA,CAAC;"}
package/dist/index116.js DELETED
@@ -1,41 +0,0 @@
1
- import { defineComponent as i, ref as a, watch as s, computed as u, openBlock as c, createElementBlock as p, normalizeProps as d, guardReactiveProps as m, createElementVNode as b, renderSlot as v, createCommentVNode as f } from "vue";
2
- import { wait as V } from "./index122.js";
3
- import { throttle as _ } from "./index208.js";
4
- const h = { class: "bb-collapsible__content" }, k = /* @__PURE__ */ i({
5
- __name: "BbCollapsible",
6
- props: {
7
- eager: { type: Boolean },
8
- transitionDuration: { default: 250 },
9
- modelValue: { type: Boolean }
10
- },
11
- setup(n) {
12
- const e = n, l = a(e.modelValue), t = a(l.value);
13
- s(
14
- () => e.modelValue,
15
- _(async (o) => {
16
- o ? (t.value = !0, l.value = !0) : (await V(e.transitionDuration), l.value = !1);
17
- }, e.transitionDuration)
18
- );
19
- const r = u(() => ({
20
- "aria-expanded": e.modelValue,
21
- class: {
22
- "bb-collapsible": !0,
23
- "bb-collapsible--open": e.modelValue,
24
- "bb-collapsible--closed": !e.modelValue,
25
- "bb-collapsible--invisible": !l.value
26
- },
27
- style: {
28
- transitionDuration: e.transitionDuration + "ms"
29
- }
30
- }));
31
- return (o, y) => (c(), p("div", d(m(r.value)), [
32
- b("div", h, [
33
- o.eager || t.value ? v(o.$slots, "default", { key: 0 }) : f("", !0)
34
- ])
35
- ], 16));
36
- }
37
- });
38
- export {
39
- k as default
40
- };
41
- //# sourceMappingURL=index116.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index116.js","sources":["../src/components/BbCollapsible/BbCollapsible.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-collapsible__content\" }\n\nimport { wait } from '@/utilities/functions/wait';\nimport { throttle } from '@/utilities/functions/throttle';\nimport { computed, ref, watch } from 'vue';\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbCollapsibleProps = Pick<\n\tCommonProps,\n\t'eager' | 'transitionDuration'\n> & {\n\t/**\n\t * Used by v-model to trigger opening / closing the collapsible\n\t */\n\tmodelValue: boolean;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbCollapsible',\n props: {\n eager: { type: Boolean },\n transitionDuration: { default: 250 },\n modelValue: { type: Boolean }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst visible = ref(props.modelValue);\nconst hasRenderedOnce = ref(visible.value);\n\n/**\n * Every time model value changes if content is going to be expanded\n * make it visible straight away.\n * If content id going to be collapsed wait for end of\n * transition before hiding from keyboard navigation\n */\nwatch(\n\t() => props.modelValue,\n\tthrottle(async (value) => {\n\t\tif (value) {\n\t\t\thasRenderedOnce.value = true;\n\t\t\tvisible.value = true;\n\t\t} else {\n\t\t\tawait wait(props.transitionDuration);\n\t\t\tvisible.value = false;\n\t\t}\n\t}, props.transitionDuration)\n);\nconst collapsibleAttributes = computed(() => {\n\treturn {\n\t\t'aria-expanded': props.modelValue,\n\t\tclass: {\n\t\t\t'bb-collapsible': true,\n\t\t\t'bb-collapsible--open': props.modelValue,\n\t\t\t'bb-collapsible--closed': !props.modelValue,\n\t\t\t'bb-collapsible--invisible': !visible.value,\n\t\t},\n\t\tstyle: {\n\t\t\ttransitionDuration: props.transitionDuration + 'ms',\n\t\t},\n\t};\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _normalizeProps(_guardReactiveProps(collapsibleAttributes.value)), [\n _createElementVNode(\"div\", _hoisted_1, [\n (_ctx.eager || hasRenderedOnce.value)\n ? _renderSlot(_ctx.$slots, \"default\", { key: 0 })\n : _createCommentVNode(\"\", true)\n ])\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","visible","ref","hasRenderedOnce","watch","throttle","value","wait","collapsibleAttributes","computed","_ctx","_cache","_openBlock","_createElementBlock","_normalizeProps","_guardReactiveProps","_createElementVNode","_renderSlot","_createCommentVNode"],"mappings":";;;AAGA,MAAMA,IAAa,EAAE,OAAO,6BAkBAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,oBAAoB,EAAE,SAAS,IAAI;AAAA,IACnC,YAAY,EAAE,MAAM,QAAQ;AAAA,EAC9B;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIRE,IAAUC,EAAIF,EAAM,UAAU,GAC9BG,IAAkBD,EAAID,EAAQ,KAAK;AAQzC,IAAAG;AAAA,MACC,MAAMJ,EAAM;AAAA,MACZK,EAAS,OAAOC,MAAU;AACzB,QAAIA,KACHH,EAAgB,QAAQ,IACxBF,EAAQ,QAAQ,OAEV,MAAAM,EAAKP,EAAM,kBAAkB,GACnCC,EAAQ,QAAQ;AAAA,MACjB,GACED,EAAM,kBAAkB;AAAA,IAAA;AAEtB,UAAAQ,IAAwBC,EAAS,OAC/B;AAAA,MACN,iBAAiBT,EAAM;AAAA,MACvB,OAAO;AAAA,QACN,kBAAkB;AAAA,QAClB,wBAAwBA,EAAM;AAAA,QAC9B,0BAA0B,CAACA,EAAM;AAAA,QACjC,6BAA6B,CAACC,EAAQ;AAAA,MACvC;AAAA,MACA,OAAO;AAAA,QACN,oBAAoBD,EAAM,qBAAqB;AAAA,MAChD;AAAA,IAAA,EAED;AAEM,WAAA,CAACU,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAOC,EAAgBC,EAAoBP,EAAsB,KAAK,CAAC,GAAG;AAAA,MAClHQ,EAAoB,OAAOpB,GAAY;AAAA,QACpCc,EAAK,SAASP,EAAgB,QAC3Bc,EAAYP,EAAK,QAAQ,WAAW,EAAE,KAAK,EAAG,CAAA,IAC9CQ,EAAoB,IAAI,EAAI;AAAA,MAAA,CACjC;AAAA,OACA,EAAE;AAAA,EAEP;AAEA,CAAC;"}
package/dist/index117.js DELETED
@@ -1,47 +0,0 @@
1
- import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index197.js";
3
- const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
- __name: "BbIcon",
5
- props: {
6
- size: { default: "md" },
7
- color: {},
8
- type: {}
9
- },
10
- setup(p) {
11
- var i, r;
12
- const e = p;
13
- let t;
14
- !!((r = (i = d()) == null ? void 0 : i.proxy) != null && r.$nuxt) ? process.client && (t = useNuxtApp().$icons) : t = x("icons");
15
- const u = {
16
- xs: 12,
17
- sm: 16,
18
- md: 24,
19
- lg: 28,
20
- xl: 36,
21
- xxl: 40
22
- }, f = l(() => {
23
- const s = {
24
- "bb-icon": !0
25
- };
26
- let c = { width: l(() => {
27
- let o;
28
- return typeof e.size == "string" ? o = u[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
29
- }).value };
30
- return e.color && (z(e.color) ? c.color = e.color : s[`bb-icon-${e.color}`] = !0), {
31
- class: s,
32
- style: c
33
- };
34
- }), n = y(null);
35
- return _(async () => {
36
- if (t) {
37
- if (typeof t[e.type] > "u")
38
- throw new Error(`Icon "${e.type}" does not exist.`);
39
- n.value = await t[e.type]();
40
- }
41
- }), (s, a) => (b(), h("i", w(f.value, { innerHTML: n.value }), null, 16, g));
42
- }
43
- });
44
- export {
45
- $ as default
46
- };
47
- //# sourceMappingURL=index117.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index117.js","sources":["../src/components/BbIcon/BbIcon.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { computed, getCurrentInstance, inject, ref, watchEffect } from 'vue';\nimport { isCssColor } from '@/utilities/functions/isCssColor';\nimport type { Size as S } from '@/types/CommonProps';\n\nexport type Size = {\n\txs: number;\n\tsm: number;\n\tmd: number;\n\tlg: number;\n\txl: number;\n\txxl: number;\n};\n\nexport type BbIconProps = S<Size> & {\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\t/**\n\t * Name of the icon to use\n\t */\n\ttype: string;\n};\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbIcon',\n props: {\n size: { default: 'md' },\n color: {},\n type: {}\n },\n setup(__props: any) {\n\nconst props = __props;\nlet icons: Record<string, () => Promise<string>> | undefined;\n// @ts-ignore\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nif (isNuxt) {\n\t// @ts-ignore\n\tif (process.client) {\n\t\t// @ts-ignore\n\t\ticons = useNuxtApp()[`$icons`] as typeof icons;\n\t}\n} else {\n\ticons = inject('icons');\n}\n\nconst sizeMap: Size = {\n\txs: 12,\n\tsm: 16,\n\tmd: 24,\n\tlg: 28,\n\txl: 36,\n\txxl: 40,\n};\n\nconst iconAttributes = computed(() => {\n\tconst classes: any = {\n\t\t'bb-icon': true,\n\t};\n\tconst width = computed(() => {\n\t\tlet dimension: number;\n\t\tif (typeof props.size === 'string') {\n\t\t\tdimension = sizeMap[props.size as keyof Size] ?? parseInt(props.size, 10);\n\t\t} else if (typeof props.size === 'number') {\n\t\t\tdimension = props.size;\n\t\t} else {\n\t\t\tdimension = 24;\n\t\t}\n\t\treturn dimension + `px`;\n\t});\n\tlet style: { [key: string]: any } = { width: width.value };\n\n\tif (props.color) {\n\t\tif (isCssColor(props.color)) {\n\t\t\tstyle.color = props.color;\n\t\t} else {\n\t\t\tclasses[`bb-icon-${props.color}`] = true;\n\t\t}\n\t}\n\treturn {\n\t\tclass: classes,\n\t\tstyle,\n\t};\n});\n\nconst icon = ref<string | null>(null);\n\nwatchEffect(async () => {\n\tif (icons) {\n\t\tif (typeof icons[props.type] === 'undefined')\n\t\t\tthrow new Error(`Icon \"${props.type}\" does not exist.`);\n\t\ticon.value = await icons[props.type]();\n\t}\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"i\", _mergeProps(iconAttributes.value, { innerHTML: icon.value }), null, 16, _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","icons","_b","_a","getCurrentInstance","inject","sizeMap","iconAttributes","computed","classes","style","dimension","isCssColor","icon","ref","watchEffect","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps"],"mappings":";;AAGA,MAAMA,IAAa,CAAC,WAAW,GA4BHC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,MAAM,EAAE,SAAS,KAAK;AAAA,IACtB,OAAO,CAAC;AAAA,IACR,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;;AAEtB,UAAMC,IAAQD;AACV,QAAAE;AAIJ,IAFe,CAAC,GAACC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,QAAAD,EAA6B,SAI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ock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index208.js";
3
- const O = /* @__PURE__ */ v({
4
- __name: "BbSmoothHeight",
5
- props: {
6
- mutationOptions: { default: () => ({ childList: !0 }) },
7
- resizeOptions: {},
8
- strategy: { default: "resize" },
9
- tag: { default: "div" },
10
- transitionDuration: { default: 200 }
11
- },
12
- setup(c) {
13
- const n = c, s = r(null), e = r(null), t = r(null);
14
- globalThis.ResizeObserver && (p(() => {
15
- n.strategy === "resize" ? e.value && (t.value = new ResizeObserver(a), t.value.observe(e.value, n.resizeOptions)) : n.strategy === "mutation" && e.value && (t.value = new MutationObserver(a), t.value.observe(e.value, n.mutationOptions)), a();
16
- }), h(() => {
17
- t.value && t.value.disconnect();
18
- }));
19
- const a = g(() => {
20
- if (s.value && e.value) {
21
- const o = e.value.scrollHeight + 2;
22
- s.value.style.height = "0px", s.value.style.height = `${o}px`;
23
- }
24
- }, 200);
25
- return (o, y) => (i(), l(u(o.tag), {
26
- ref_key: "container",
27
- ref: s,
28
- class: "bb-smooth-height",
29
- style: m({ "transition-duration": n.transitionDuration / 1e3 + "s" })
30
- }, {
31
- default: f(() => [
32
- (i(), l(u(o.tag), {
33
- ref_key: "content",
34
- ref: e,
35
- class: "content"
36
- }, {
37
- default: f(() => [
38
- d(o.$slots, "default")
39
- ]),
40
- _: 3
41
- }, 512))
42
- ]),
43
- _: 3
44
- }, 8, ["style"]));
45
- }
46
- });
47
- export {
48
- O as default
49
- };
50
- //# sourceMappingURL=index118.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index118.js","sources":["../src/components/BbSmoothHeight/BbSmoothHeight.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle } from \"vue\"\n\nimport type { CommonProps, NonVoidElementTag } from '@/types/CommonProps';\nimport { throttle } from '@/utilities/functions/throttle';\nimport { ref, onMounted, onBeforeUnmount } from 'vue';\n\nexport type BbSmoothHeightProps = {\n\t/**\n\t * Options to pass to the MutationObserver\n\t */\n\tmutationOptions?: MutationObserverInit;\n\t/**\n\t * Options to pass to the ResizeObserver\n\t */\n\tresizeOptions?: ResizeObserverOptions;\n\t/**\n\t * Define which strategy to use. By default is used 'resize' which means the\n\t * component will update on resizing.\n\t * You can also define 'mutation' to use a MutationObserver\n\t */\n\tstrategy?: 'resize' | 'mutation';\n} & NonVoidElementTag &\n\tPick<CommonProps, 'transitionDuration'>;\n\nexport type BbSmoothHeightSlots = {\n\tdefault?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSmoothHeight',\n props: {\n mutationOptions: { default: () => ({ childList: true }) },\n resizeOptions: {},\n strategy: { default: 'resize' },\n tag: { default: 'div' },\n transitionDuration: { default: 200 }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst container = ref<HTMLElement | null>(null);\nconst content = ref<HTMLElement | null>(null);\nconst observer = ref<ResizeObserver | MutationObserver | null>(null);\n\nif (globalThis.ResizeObserver) {\n\tonMounted(() => {\n\t\tif (props.strategy === 'resize') {\n\t\t\tif (content.value) {\n\t\t\t\tobserver.value = new ResizeObserver(onContentGrow);\n\t\t\t\tobserver.value.observe(content.value, props.resizeOptions);\n\t\t\t}\n\t\t} else if (props.strategy === 'mutation') {\n\t\t\tif (content.value) {\n\t\t\t\tobserver.value = new MutationObserver(onContentGrow);\n\t\t\t\tobserver.value.observe(content.value, props.mutationOptions);\n\t\t\t}\n\t\t}\n\t\tonContentGrow();\n\t});\n\tonBeforeUnmount(() => {\n\t\tif (observer.value) {\n\t\t\tobserver.value.disconnect();\n\t\t}\n\t});\n}\n\n/**\n * This is called when content changes.\n * It could be called numerous times so throttle every 200ms\n */\nconst onContentGrow = throttle(() => {\n\tif (container.value && content.value) {\n\t\tconst contentHeight = content.value.scrollHeight + 2;\n\t\tcontainer.value.style.height = '0px';\n\t\tcontainer.value.style.height = `${contentHeight}px`;\n\t}\n}, 200);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {\n ref_key: \"container\",\n ref: container,\n class: \"bb-smooth-height\",\n style: _normalizeStyle({ 'transition-duration': props.transitionDuration / 1000 + 's' })\n }, {\n default: _withCtx(() => [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {\n ref_key: \"content\",\n ref: content,\n class: \"content\"\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 512))\n ]),\n _: 3\n }, 8, [\"style\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","container","ref","content","observer","onMounted","onContentGrow","onBeforeUnmount","throttle","contentHeight","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeStyle","_withCtx","_renderSlot"],"mappings":";;AA8BA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,iBAAiB,EAAE,SAAS,OAAO,EAAE,WAAW,GAAQ,GAAA;AAAA,IACxD,eAAe,CAAC;AAAA,IAChB,UAAU,EAAE,SAAS,SAAS;AAAA,IAC9B,KAAK,EAAE,SAAS,MAAM;AAAA,IACtB,oBAAoB,EAAE,SAAS,IAAI;AAAA,EACrC;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIRE,IAAYC,EAAwB,IAAI,GACxCC,IAAUD,EAAwB,IAAI,GACtCE,IAAWF,EAA8C,IAAI;AAEnE,IAAI,WAAW,mBACdG,EAAU,MAAM;AACX,MAAAL,EAAM,aAAa,WAClBG,EAAQ,UACFC,EAAA,QAAQ,IAAI,eAAeE,CAAa,GACjDF,EAAS,MAAM,QAAQD,EAAQ,OAAOH,EAAM,aAAa,KAEhDA,EAAM,aAAa,cACzBG,EAAQ,UACFC,EAAA,QAAQ,IAAI,iBAAiBE,CAAa,GACnDF,EAAS,MAAM,QAAQD,EAAQ,OAAOH,EAAM,eAAe,IAG/CM;IAAA,CACd,GACDC,EAAgB,MAAM;AACrB,MAAIH,EAAS,SACZA,EAAS,MAAM;IAChB,CACA;AAOI,UAAAE,IAAgBE,EAAS,MAAM;AAChC,UAAAP,EAAU,SAASE,EAAQ,OAAO;AAC/B,cAAAM,IAAgBN,EAAQ,MAAM,eAAe;AACzC,QAAAF,EAAA,MAAM,MAAM,SAAS,OAC/BA,EAAU,MAAM,MAAM,SAAS,GAAGQ,CAAa;AAAA,MAChD;AAAA,OACE,GAAG;AAEC,WAAA,CAACC,GAAUC,OACRC,EAAc,GAAAC,EAAaC,EAAyBJ,EAAK,GAAG,GAAG;AAAA,MACrE,SAAS;AAAA,MACT,KAAKT;AAAA,MACL,OAAO;AAAA,MACP,OAAOc,EAAgB,EAAE,uBAAuBf,EAAM,qBAAqB,MAAO,KAAK;AAAA,IAAA,GACtF;AAAA,MACD,SAASgB,EAAS,MAAM;AAAA,SACrBJ,EAAc,GAAAC,EAAaC,EAAyBJ,EAAK,GAAG,GAAG;AAAA,UAC9D,SAAS;AAAA,UACT,KAAKP;AAAA,UACL,OAAO;AAAA,QAAA,GACN;AAAA,UACD,SAASa,EAAS,MAAM;AAAA,YACtBC,EAAYP,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,UACD,GAAG;AAAA,WACF,GAAG;AAAA,MAAA,CACP;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,OAAO,CAAC;AAAA,EAEjB;AAEA,CAAC;"}
package/dist/index119.js DELETED
@@ -1,46 +0,0 @@
1
- import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
2
- import { isCssColor as f } from "./index197.js";
3
- const _ = /* @__PURE__ */ c("svg", {
4
- viewBox: "0 0 512 512",
5
- xmlns: "http://www.w3.org/2000/svg"
6
- }, [
7
- /* @__PURE__ */ c("path", {
8
- d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z",
9
- fill: "currentColor"
10
- })
11
- ], -1), x = [
12
- _
13
- ], b = /* @__PURE__ */ m({
14
- __name: "BbSpinner",
15
- props: {
16
- color: {},
17
- size: { default: "md" }
18
- },
19
- setup(n) {
20
- const e = n, i = {
21
- xs: 12,
22
- sm: 16,
23
- md: 24,
24
- lg: 28,
25
- xl: 36,
26
- xxl: 40
27
- }, l = r(() => {
28
- const s = {
29
- "bb-spinner": !0
30
- };
31
- let t = { width: r(() => {
32
- let o;
33
- return typeof e.size == "string" ? o = i[e.size] ?? parseInt(e.size, 10) : o = e.size, o + "px";
34
- }).value };
35
- return e.color && (f(e.color) ? t.color = e.color : s[`bb-spinner--${e.color}`] = !0), {
36
- class: s,
37
- style: t
38
- };
39
- });
40
- return (s, p) => (a(), d("span", u(z(l.value)), x, 16));
41
- }
42
- });
43
- export {
44
- b as default
45
- };
46
- //# sourceMappingURL=index119.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index119.js","sources":["../src/components/BbSpinner/BbSpinner.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 512 512\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z\",\n fill: \"currentColor\"\n })\n], -1)\nconst _hoisted_2 = [\n _hoisted_1\n]\n\nimport { computed } from 'vue';\nimport { isCssColor } from '@/utilities/functions/isCssColor';\nimport type { Classes } from '@/types/Classes';\nimport type { CommonProps, Size as S } from '@/types/CommonProps';\nimport type { Size as IconSize } from '../BbIcon/BbIcon.vue';\n\nexport type Size = IconSize;\nexport type BbSpinnerProps = Pick<CommonProps, 'color'> & S<IconSize>;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSpinner',\n props: {\n color: {},\n size: { default: 'md' }\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst sizeMap: IconSize = {\n\txs: 12,\n\tsm: 16,\n\tmd: 24,\n\tlg: 28,\n\txl: 36,\n\txxl: 40,\n};\n\nconst iconAttributes = computed(() => {\n\tconst classes: Classes = {\n\t\t'bb-spinner': true,\n\t};\n\tconst width = computed(() => {\n\t\tlet dimension: number;\n\t\tif (typeof props.size === 'string') {\n\t\t\tdimension =\n\t\t\t\tsizeMap[props.size as keyof IconSize] ?? parseInt(props.size, 10);\n\t\t} else {\n\t\t\tdimension = props.size;\n\t\t}\n\t\treturn dimension + `px`;\n\t});\n\tlet style: { [key: string]: any } = { width: width.value };\n\n\tif (props.color) {\n\t\tif (isCssColor(props.color)) {\n\t\t\tstyle.color = props.color;\n\t\t} else {\n\t\t\tclasses[`bb-spinner--${props.color}`] = true;\n\t\t}\n\t}\n\treturn {\n\t\tclass: classes,\n\t\tstyle,\n\t};\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _normalizeProps(_guardReactiveProps(iconAttributes.value)), _hoisted_2, 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","sizeMap","iconAttributes","computed","classes","style","dimension","isCssColor","_ctx","_cache","_openBlock","_createElementBlock","_normalizeProps","_guardReactiveProps"],"mappings":";;AAGA,MAAMA,sBAA8C,OAAO;AAAA,EACzD,SAAS;AAAA,EACT,OAAO;AACT,GAAG;AAAA,oBACgC,QAAQ;AAAA,IACvC,GAAG;AAAA,IACH,MAAM;AAAA,EAAA,CACP;AACH,GAAG,EAAE,GACCC,IAAa;AAAA,EACjBD;AACF,GAY4BE,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,MAAM,EAAE,SAAS,KAAK;AAAA,EACxB;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAERE,IAAoB;AAAA,MACzB,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA,IAAA,GAGAC,IAAiBC,EAAS,MAAM;AACrC,YAAMC,IAAmB;AAAA,QACxB,cAAc;AAAA,MAAA;AAYf,UAAIC,IAAgC,EAAE,OAVxBF,EAAS,MAAM;AACxB,YAAAG;AACA,eAAA,OAAON,EAAM,QAAS,WACzBM,IACCL,EAAQD,EAAM,IAAsB,KAAK,SAASA,EAAM,MAAM,EAAE,IAEjEM,IAAYN,EAAM,MAEZM,IAAY;AAAA,MAAA,CACnB,EACkD,MAAM;AAEzD,aAAIN,EAAM,UACLO,EAAWP,EAAM,KAAK,IACzBK,EAAM,QAAQL,EAAM,QAEpBI,EAAQ,eAAeJ,EAAM,KAAK,EAAE,IAAI,KAGnC;AAAA,QACN,OAAOI;AAAA,QACP,OAAAC;AAAA,MAAA;AAAA,IACD,CACA;AAEM,WAAA,CAACG,GAAUC,OACRC,EAAc,GAAAC,EAAoB,QAAQC,EAAgBC,EAAoBX,EAAe,KAAK,CAAC,GAAGN,GAAY,EAAE;AAAA,EAE9H;AAEA,CAAC;"}
package/dist/index12.js DELETED
@@ -1,5 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
5
- //# sourceMappingURL=index12.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index12.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index120.js DELETED
@@ -1,5 +0,0 @@
1
- const r = (e) => typeof e > "u" || e === null;
2
- export {
3
- r as isNil
4
- };
5
- //# sourceMappingURL=index120.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index120.js","sources":["../src/utilities/functions/isNil.ts"],"sourcesContent":["/**\n * Returns true if the item is not null or undefined\n * @param value The item to check\n * @returns true | false\n */\nexport const isNil = (value: unknown) => {\n\tif (typeof value === 'undefined') return true;\n\tif (value === null) return true;\n\treturn false;\n};\n"],"names":["isNil","value"],"mappings":"AAKa,MAAAA,IAAQ,CAACC,MACjB,OAAOA,IAAU,OACjBA,MAAU;"}
package/dist/index121.js DELETED
@@ -1,24 +0,0 @@
1
- import { clamp as o } from "./index196.js";
2
- const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
- value: t = 0,
4
- originalBounds: e,
5
- targetBounds: n,
6
- step: c = 1
7
- }) => {
8
- const a = l(
9
- t,
10
- e.min,
11
- e.max
12
- ), m = p(
13
- a,
14
- n.max - n.min
15
- ) + n.min, s = Math.round(m / c) * c;
16
- return o(s, n.min, n.max);
17
- };
18
- export {
19
- r as getAsPercentage,
20
- l as getAsPercentageBetween,
21
- p as getPercentageFrom,
22
- P as transposeValue
23
- };
24
- //# sourceMappingURL=index121.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index121.js","sources":["../src/utilities/functions/percentage.ts"],"sourcesContent":["import { clamp } from './clamp';\n\n/**\n * Get the percentage \"a\" represents in total\n * @returns\n */\nexport const getAsPercentage = (a: number, total: number) => (a * 100) / total;\n/**\n * Get \"a\" knowing the percentage\n * @returns\n */\nexport const getPercentageFrom = (a: number, total: number) =>\n\t(a / 100) * total;\n\n/**\n * Normalize the bounds of a value\n */\nexport const getAsPercentageBetween = (a: number, min: number, max: number) =>\n\tgetAsPercentage(a - min, max - min);\n\n/**\n * Get a value \"b\" that is the same percentage as \"a\" into it's target bounds.\n * EG 40% = 4 for a bound 0, 10 is transposed to 40% = 8\n * for bounds 0, 20, or again 40% = 4 for bound 10, 20\n */\ntype TransposeValueParameters = {\n\tvalue: number;\n\toriginalBounds: {\n\t\tmin: number;\n\t\tmax: number;\n\t};\n\ttargetBounds: {\n\t\tmin: number;\n\t\tmax: number;\n\t};\n\tstep: number;\n};\nexport const transposeValue: (params: TransposeValueParameters) => number = ({\n\tvalue = 0,\n\toriginalBounds,\n\ttargetBounds,\n\tstep = 1,\n}) => {\n\tconst percentageOfOriginal = getAsPercentageBetween(\n\t\tvalue,\n\t\toriginalBounds.min,\n\t\toriginalBounds.max\n\t);\n\tconst transposedValue = getPercentageFrom(\n\t\tpercentageOfOriginal,\n\t\ttargetBounds.max - targetBounds.min\n\t);\n\tconst adjusted = transposedValue + targetBounds.min;\n\tconst withStep = Math.round(adjusted / step) * step;\n\n\tconst clamped = clamp(withStep, targetBounds.min, targetBounds.max);\n\treturn clamped;\n};\n"],"names":["getAsPercentage","a","total","getPercentageFrom","getAsPercentageBetween","min","max","transposeValue","value","originalBounds","targetBounds","step","percentageOfOriginal","adjusted","withStep","clamp"],"mappings":";AAMO,MAAMA,IAAkB,CAACC,GAAWC,MAAmBD,IAAI,MAAOC,GAK5DC,IAAoB,CAACF,GAAWC,MAC3CD,IAAI,MAAOC,GAKAE,IAAyB,CAACH,GAAWI,GAAaC,MAC9DN,EAAgBC,IAAII,GAAKC,IAAMD,CAAG,GAmBtBE,IAA+D,CAAC;AAAA,EAC5E,OAAAC,IAAQ;AAAA,EACR,gBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAAC,IAAO;AACR,MAAM;AACL,QAAMC,IAAuBR;AAAA,IAC5BI;AAAA,IACAC,EAAe;AAAA,IACfA,EAAe;AAAA,EAAA,GAMVI,IAJkBV;AAAA,IACvBS;AAAA,IACAF,EAAa,MAAMA,EAAa;AAAA,EAAA,IAEEA,EAAa,KAC1CI,IAAW,KAAK,MAAMD,IAAWF,CAAI,IAAIA;AAGxC,SADSI,EAAMD,GAAUJ,EAAa,KAAKA,EAAa,GAAG;AAEnE;"}
package/dist/index122.js DELETED
@@ -1,5 +0,0 @@
1
- const o = (e) => new Promise((t) => setTimeout(t, e));
2
- export {
3
- o as wait
4
- };
5
- //# sourceMappingURL=index122.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index122.js","sources":["../src/utilities/functions/wait.ts"],"sourcesContent":["/** Wait a specified amount of time before resolving a promise */\nexport const wait: (ms: number) => Promise<void> = (ms) =>\n\tnew Promise((resolve) => setTimeout(resolve, ms));\n"],"names":["wait","ms","resolve"],"mappings":"AACa,MAAAA,IAAsC,CAACC,MACnD,IAAI,QAAQ,CAACC,MAAY,WAAWA,GAASD,CAAE,CAAC;"}