bitboss-ui 0.2.76 → 1.0.1

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 (491) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +4 -0
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +10 -3
  3. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -1
  4. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +10 -4
  5. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +9 -0
  6. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  7. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +4 -0
  8. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +10 -3
  9. package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -1
  10. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
  11. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +48 -11
  12. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -3
  13. package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -0
  14. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +10 -6
  15. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
  16. package/dist/components/BbButton/BbButton.vue.d.ts +12 -0
  17. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +35 -27
  18. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +38 -24
  19. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +15 -3
  20. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +33 -25
  21. package/dist/components/BbRadio/BbRadio.vue.d.ts +33 -25
  22. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -24
  23. package/dist/components/BbRating/BbRating.vue.d.ts +9 -1
  24. package/dist/components/BbSelect/BbSelect.vue.d.ts +18 -4
  25. package/dist/components/BbSlider/BbSlider.vue.d.ts +44 -11
  26. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +9 -3
  27. package/dist/components/BbTag/BbTag.vue.d.ts +11 -3
  28. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +33 -25
  29. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +9 -1
  30. package/dist/composables/useQueue.d.ts +58 -0
  31. package/dist/index.js +186 -185
  32. package/dist/index.js.map +1 -1
  33. package/dist/index10.js +65 -1
  34. package/dist/index10.js.map +1 -1
  35. package/dist/index100.js +227 -1
  36. package/dist/index100.js.map +1 -1
  37. package/dist/index101.js +1 -437
  38. package/dist/index101.js.map +1 -1
  39. package/dist/index102.js +437 -1
  40. package/dist/index102.js.map +1 -1
  41. package/dist/index103.js +1 -94
  42. package/dist/index103.js.map +1 -1
  43. package/dist/index104.js +103 -1
  44. package/dist/index104.js.map +1 -1
  45. package/dist/index105.js +1 -88
  46. package/dist/index105.js.map +1 -1
  47. package/dist/index106.js +97 -1
  48. package/dist/index106.js.map +1 -1
  49. package/dist/index107.js +1 -89
  50. package/dist/index107.js.map +1 -1
  51. package/dist/index108.js +98 -1
  52. package/dist/index108.js.map +1 -1
  53. package/dist/index109.js +1 -29
  54. package/dist/index109.js.map +1 -1
  55. package/dist/index11.js +1 -131
  56. package/dist/index11.js.map +1 -1
  57. package/dist/index110.js +29 -1
  58. package/dist/index110.js.map +1 -1
  59. package/dist/index111.js +1 -151
  60. package/dist/index111.js.map +1 -1
  61. package/dist/index112.js +151 -1
  62. package/dist/index112.js.map +1 -1
  63. package/dist/index113.js +1 -122
  64. package/dist/index113.js.map +1 -1
  65. package/dist/index114.js +122 -1
  66. package/dist/index114.js.map +1 -1
  67. package/dist/index115.js +1 -46
  68. package/dist/index115.js.map +1 -1
  69. package/dist/index116.js +40 -33
  70. package/dist/index116.js.map +1 -1
  71. package/dist/index117.js +32 -39
  72. package/dist/index117.js.map +1 -1
  73. package/dist/index118.js +39 -42
  74. package/dist/index118.js.map +1 -1
  75. package/dist/index119.js +43 -39
  76. package/dist/index119.js.map +1 -1
  77. package/dist/index12.js +128 -1
  78. package/dist/index12.js.map +1 -1
  79. package/dist/index120.js +43 -2
  80. package/dist/index120.js.map +1 -1
  81. package/dist/index121.js +2 -21
  82. package/dist/index121.js.map +1 -1
  83. package/dist/index122.js +21 -2
  84. package/dist/index122.js.map +1 -1
  85. package/dist/index123.js +2 -224
  86. package/dist/index123.js.map +1 -1
  87. package/dist/index124.js +224 -2
  88. package/dist/index124.js.map +1 -1
  89. package/dist/index125.js +2 -18
  90. package/dist/index125.js.map +1 -1
  91. package/dist/index126.js +16 -10
  92. package/dist/index126.js.map +1 -1
  93. package/dist/index127.js +12 -24
  94. package/dist/index127.js.map +1 -1
  95. package/dist/index128.js +24 -5
  96. package/dist/index128.js.map +1 -1
  97. package/dist/index129.js +5 -9
  98. package/dist/index129.js.map +1 -1
  99. package/dist/index13.js +1 -159
  100. package/dist/index13.js.map +1 -1
  101. package/dist/index130.js +8 -5
  102. package/dist/index130.js.map +1 -1
  103. package/dist/index131.js +5 -69
  104. package/dist/index131.js.map +1 -1
  105. package/dist/index132.js +70 -3
  106. package/dist/index132.js.map +1 -1
  107. package/dist/index133.js +2 -2
  108. package/dist/index134.js +2 -2
  109. package/dist/index135.js +2 -2
  110. package/dist/index136.js +2 -2
  111. package/dist/index137.js +2 -2
  112. package/dist/index138.js +2 -2
  113. package/dist/index139.js +2 -2
  114. package/dist/index14.js +161 -1
  115. package/dist/index14.js.map +1 -1
  116. package/dist/index140.js +2 -2
  117. package/dist/index141.js +2 -2
  118. package/dist/index142.js +2 -2
  119. package/dist/index143.js +2 -2
  120. package/dist/index144.js +2 -2
  121. package/dist/index145.js +2 -2
  122. package/dist/index146.js +2 -2
  123. package/dist/index147.js +2 -2
  124. package/dist/index148.js +2 -2
  125. package/dist/index149.js +2 -2
  126. package/dist/index15.js +1 -457
  127. package/dist/index15.js.map +1 -1
  128. package/dist/index150.js +2 -2
  129. package/dist/index151.js +2 -2
  130. package/dist/index152.js +2 -2
  131. package/dist/index153.js +2 -2
  132. package/dist/index154.js +2 -2
  133. package/dist/index155.js +2 -2
  134. package/dist/index156.js +2 -2
  135. package/dist/index157.js +2 -2
  136. package/dist/index158.js +5 -1
  137. package/dist/index158.js.map +1 -1
  138. package/dist/index159.js +1 -5
  139. package/dist/index159.js.map +1 -1
  140. package/dist/index16.js +514 -1
  141. package/dist/index16.js.map +1 -1
  142. package/dist/index160.js +5 -1
  143. package/dist/index160.js.map +1 -1
  144. package/dist/index161.js +1 -5
  145. package/dist/index161.js.map +1 -1
  146. package/dist/index162.js +2 -2
  147. package/dist/index163.js +2 -2
  148. package/dist/index164.js +2 -2
  149. package/dist/index165.js +2 -2
  150. package/dist/index166.js +2 -2
  151. package/dist/index167.js +3 -2
  152. package/dist/index167.js.map +1 -1
  153. package/dist/index168.js +2 -3
  154. package/dist/index168.js.map +1 -1
  155. package/dist/index169.js +5 -1
  156. package/dist/index169.js.map +1 -1
  157. package/dist/index17.js +1 -211
  158. package/dist/index17.js.map +1 -1
  159. package/dist/index170.js +1 -4
  160. package/dist/index170.js.map +1 -1
  161. package/dist/index171.js +2 -3
  162. package/dist/index171.js.map +1 -1
  163. package/dist/index172.js +2 -2
  164. package/dist/index173.js +2 -2
  165. package/dist/index174.js +2 -2
  166. package/dist/index175.js +2 -2
  167. package/dist/index176.js +2 -2
  168. package/dist/index177.js +2 -2
  169. package/dist/index178.js +2 -2
  170. package/dist/index179.js +2 -2
  171. package/dist/index18.js +220 -1
  172. package/dist/index18.js.map +1 -1
  173. package/dist/index180.js +2 -2
  174. package/dist/index181.js +2 -2
  175. package/dist/index182.js +2 -2
  176. package/dist/index183.js +5 -1
  177. package/dist/index183.js.map +1 -1
  178. package/dist/index184.js +1 -5
  179. package/dist/index184.js.map +1 -1
  180. package/dist/index185.js +5 -1
  181. package/dist/index185.js.map +1 -1
  182. package/dist/index186.js +1 -5
  183. package/dist/index186.js.map +1 -1
  184. package/dist/index187.js +2 -2
  185. package/dist/index188.js +2 -2
  186. package/dist/index189.js +2 -2
  187. package/dist/index19.js +1 -239
  188. package/dist/index19.js.map +1 -1
  189. package/dist/index190.js +2 -2
  190. package/dist/index191.js +2 -2
  191. package/dist/index192.js +2 -2
  192. package/dist/index193.js +2 -2
  193. package/dist/index194.js +2 -2
  194. package/dist/index195.js +2 -2
  195. package/dist/index196.js +3 -10
  196. package/dist/index196.js.map +1 -1
  197. package/dist/index197.js +3 -2
  198. package/dist/index197.js.map +1 -1
  199. package/dist/index198.js +3 -3
  200. package/dist/index198.js.map +1 -1
  201. package/dist/index199.js +2 -3
  202. package/dist/index199.js.map +1 -1
  203. package/dist/index2.js +1 -42
  204. package/dist/index2.js.map +1 -1
  205. package/dist/index20.js +239 -1
  206. package/dist/index20.js.map +1 -1
  207. package/dist/index200.js +4 -368
  208. package/dist/index200.js.map +1 -1
  209. package/dist/index201.js +2 -134
  210. package/dist/index201.js.map +1 -1
  211. package/dist/index202.js +2 -5
  212. package/dist/index202.js.map +1 -1
  213. package/dist/index203.js +2 -19
  214. package/dist/index203.js.map +1 -1
  215. package/dist/index204.js +121 -2
  216. package/dist/index204.js.map +1 -1
  217. package/dist/index205.js +2 -2
  218. package/dist/index205.js.map +1 -1
  219. package/dist/index206.js +2 -174
  220. package/dist/index206.js.map +1 -1
  221. package/dist/index207.js +6 -23
  222. package/dist/index207.js.map +1 -1
  223. package/dist/index208.js +345 -350
  224. package/dist/index208.js.map +1 -1
  225. package/dist/index209.js +371 -14
  226. package/dist/index209.js.map +1 -1
  227. package/dist/index21.js +1 -115
  228. package/dist/index21.js.map +1 -1
  229. package/dist/index210.js +3 -16
  230. package/dist/index210.js.map +1 -1
  231. package/dist/index211.js +35 -20
  232. package/dist/index211.js.map +1 -1
  233. package/dist/index212.js +130 -25
  234. package/dist/index212.js.map +1 -1
  235. package/dist/index213.js +5 -8
  236. package/dist/index213.js.map +1 -1
  237. package/dist/index214.js +18 -234
  238. package/dist/index214.js.map +1 -1
  239. package/dist/index215.js +174 -3
  240. package/dist/index215.js.map +1 -1
  241. package/dist/index216.js +16 -35
  242. package/dist/index216.js.map +1 -1
  243. package/dist/index217.js +16 -6
  244. package/dist/index217.js.map +1 -1
  245. package/dist/index218.js +20 -2
  246. package/dist/index218.js.map +1 -1
  247. package/dist/index219.js +29 -2
  248. package/dist/index219.js.map +1 -1
  249. package/dist/index22.js +131 -1
  250. package/dist/index22.js.map +1 -1
  251. package/dist/index220.js +8 -4
  252. package/dist/index220.js.map +1 -1
  253. package/dist/index221.js +226 -112
  254. package/dist/index221.js.map +1 -1
  255. package/dist/index222.js +10 -2
  256. package/dist/index222.js.map +1 -1
  257. package/dist/index224.js +23 -6
  258. package/dist/index224.js.map +1 -1
  259. package/dist/index225.js +224 -17
  260. package/dist/index225.js.map +1 -1
  261. package/dist/index226.js +253 -74
  262. package/dist/index226.js.map +1 -1
  263. package/dist/index227.js +4 -2
  264. package/dist/index227.js.map +1 -1
  265. package/dist/index228.js +6 -160
  266. package/dist/index228.js.map +1 -1
  267. package/dist/index229.js +19 -1
  268. package/dist/index229.js.map +1 -1
  269. package/dist/index23.js +1 -115
  270. package/dist/index23.js.map +1 -1
  271. package/dist/index230.js +106 -5
  272. package/dist/index230.js.map +1 -1
  273. package/dist/index231.js +433 -67
  274. package/dist/index231.js.map +1 -1
  275. package/dist/index232.js +83 -218
  276. package/dist/index232.js.map +1 -1
  277. package/dist/index233.js +74 -253
  278. package/dist/index233.js.map +1 -1
  279. package/dist/index234.js +2 -6
  280. package/dist/index234.js.map +1 -1
  281. package/dist/index235.js +69 -2
  282. package/dist/index235.js.map +1 -1
  283. package/dist/index236.js +163 -294
  284. package/dist/index236.js.map +1 -1
  285. package/dist/index237.js +1 -4
  286. package/dist/index237.js.map +1 -1
  287. package/dist/index238.js +117 -2
  288. package/dist/index238.js.map +1 -1
  289. package/dist/index239.js +199 -116
  290. package/dist/index239.js.map +1 -1
  291. package/dist/index24.js +119 -1
  292. package/dist/index24.js.map +1 -1
  293. package/dist/index240.js +5 -105
  294. package/dist/index240.js.map +1 -1
  295. package/dist/index241.js +2 -15
  296. package/dist/index241.js.map +1 -1
  297. package/dist/index242.js +295 -2
  298. package/dist/index242.js.map +1 -1
  299. package/dist/index243.js +2 -2
  300. package/dist/index245.js +5 -2
  301. package/dist/index245.js.map +1 -1
  302. package/dist/index246.js +2 -435
  303. package/dist/index246.js.map +1 -1
  304. package/dist/index247.js +2 -89
  305. package/dist/index247.js.map +1 -1
  306. package/dist/index248.js +2 -200
  307. package/dist/index248.js.map +1 -1
  308. package/dist/index249.js +2 -4
  309. package/dist/index249.js.map +1 -1
  310. package/dist/index25.js +1 -92
  311. package/dist/index25.js.map +1 -1
  312. package/dist/index250.js +1 -1
  313. package/dist/index251.js +15 -4
  314. package/dist/index251.js.map +1 -1
  315. package/dist/index252.js +4 -4
  316. package/dist/index252.js.map +1 -1
  317. package/dist/index253.js +4 -61
  318. package/dist/index253.js.map +1 -1
  319. package/dist/index254.js +61 -2
  320. package/dist/index254.js.map +1 -1
  321. package/dist/index255.js +2 -3
  322. package/dist/index255.js.map +1 -1
  323. package/dist/index256.js +3 -2
  324. package/dist/index256.js.map +1 -1
  325. package/dist/index257.js +5 -0
  326. package/dist/index257.js.map +1 -0
  327. package/dist/index26.js +94 -1
  328. package/dist/index26.js.map +1 -1
  329. package/dist/index27.js +1 -157
  330. package/dist/index27.js.map +1 -1
  331. package/dist/index28.js +160 -1
  332. package/dist/index28.js.map +1 -1
  333. package/dist/index29.js +1 -124
  334. package/dist/index29.js.map +1 -1
  335. package/dist/index3.js +38 -76
  336. package/dist/index3.js.map +1 -1
  337. package/dist/index30.js +126 -1
  338. package/dist/index30.js.map +1 -1
  339. package/dist/index31.js +1 -691
  340. package/dist/index31.js.map +1 -1
  341. package/dist/index32.js +693 -1
  342. package/dist/index32.js.map +1 -1
  343. package/dist/index33.js +1 -145
  344. package/dist/index33.js.map +1 -1
  345. package/dist/index34.js +302 -1
  346. package/dist/index34.js.map +1 -1
  347. package/dist/index35.js +1 -118
  348. package/dist/index35.js.map +1 -1
  349. package/dist/index36.js +120 -1
  350. package/dist/index36.js.map +1 -1
  351. package/dist/index37.js +1 -154
  352. package/dist/index37.js.map +1 -1
  353. package/dist/index38.js +156 -1
  354. package/dist/index38.js.map +1 -1
  355. package/dist/index39.js +1 -83
  356. package/dist/index39.js.map +1 -1
  357. package/dist/index4.js +78 -62
  358. package/dist/index4.js.map +1 -1
  359. package/dist/index40.js +87 -1
  360. package/dist/index40.js.map +1 -1
  361. package/dist/index41.js +1 -61
  362. package/dist/index41.js.map +1 -1
  363. package/dist/index42.js +64 -1
  364. package/dist/index42.js.map +1 -1
  365. package/dist/index43.js +1 -65
  366. package/dist/index43.js.map +1 -1
  367. package/dist/index44.js +65 -1
  368. package/dist/index44.js.map +1 -1
  369. package/dist/index45.js +1 -96
  370. package/dist/index45.js.map +1 -1
  371. package/dist/index46.js +96 -1
  372. package/dist/index46.js.map +1 -1
  373. package/dist/index47.js +1 -61
  374. package/dist/index47.js.map +1 -1
  375. package/dist/index48.js +61 -1
  376. package/dist/index48.js.map +1 -1
  377. package/dist/index49.js +1 -49
  378. package/dist/index49.js.map +1 -1
  379. package/dist/index5.js +60 -38
  380. package/dist/index5.js.map +1 -1
  381. package/dist/index50.js +49 -1
  382. package/dist/index50.js.map +1 -1
  383. package/dist/index51.js +1 -62
  384. package/dist/index51.js.map +1 -1
  385. package/dist/index52.js +62 -1
  386. package/dist/index52.js.map +1 -1
  387. package/dist/index53.js +1 -45
  388. package/dist/index53.js.map +1 -1
  389. package/dist/index54.js +69 -1
  390. package/dist/index54.js.map +1 -1
  391. package/dist/index55.js +1 -89
  392. package/dist/index55.js.map +1 -1
  393. package/dist/index56.js +98 -1
  394. package/dist/index56.js.map +1 -1
  395. package/dist/index57.js +1 -120
  396. package/dist/index57.js.map +1 -1
  397. package/dist/index58.js +129 -1
  398. package/dist/index58.js.map +1 -1
  399. package/dist/index59.js +1 -85
  400. package/dist/index59.js.map +1 -1
  401. package/dist/index6.js +37 -171
  402. package/dist/index6.js.map +1 -1
  403. package/dist/index60.js +85 -1
  404. package/dist/index60.js.map +1 -1
  405. package/dist/index61.js +1 -88
  406. package/dist/index61.js.map +1 -1
  407. package/dist/index62.js +98 -1
  408. package/dist/index62.js.map +1 -1
  409. package/dist/index63.js +1 -59
  410. package/dist/index63.js.map +1 -1
  411. package/dist/index64.js +59 -1
  412. package/dist/index64.js.map +1 -1
  413. package/dist/index65.js +1 -313
  414. package/dist/index65.js.map +1 -1
  415. package/dist/index66.js +313 -1
  416. package/dist/index66.js.map +1 -1
  417. package/dist/index67.js +1 -129
  418. package/dist/index67.js.map +1 -1
  419. package/dist/index68.js +129 -1
  420. package/dist/index68.js.map +1 -1
  421. package/dist/index69.js +1 -225
  422. package/dist/index69.js.map +1 -1
  423. package/dist/index7.js +172 -18
  424. package/dist/index7.js.map +1 -1
  425. package/dist/index70.js +225 -1
  426. package/dist/index70.js.map +1 -1
  427. package/dist/index71.js +1 -24
  428. package/dist/index71.js.map +1 -1
  429. package/dist/index72.js +19 -41
  430. package/dist/index72.js.map +1 -1
  431. package/dist/index73.js +37 -86
  432. package/dist/index73.js.map +1 -1
  433. package/dist/index74.js +104 -1
  434. package/dist/index74.js.map +1 -1
  435. package/dist/index75.js +1 -227
  436. package/dist/index75.js.map +1 -1
  437. package/dist/index76.js +227 -1
  438. package/dist/index76.js.map +1 -1
  439. package/dist/index77.js +1 -143
  440. package/dist/index77.js.map +1 -1
  441. package/dist/index78.js +165 -1
  442. package/dist/index78.js.map +1 -1
  443. package/dist/index79.js +1 -213
  444. package/dist/index79.js.map +1 -1
  445. package/dist/index8.js +18 -192
  446. package/dist/index8.js.map +1 -1
  447. package/dist/index80.js +213 -1
  448. package/dist/index80.js.map +1 -1
  449. package/dist/index81.js +1 -35
  450. package/dist/index81.js.map +1 -1
  451. package/dist/index82.js +35 -1
  452. package/dist/index82.js.map +1 -1
  453. package/dist/index83.js +1 -83
  454. package/dist/index83.js.map +1 -1
  455. package/dist/index84.js +92 -1
  456. package/dist/index84.js.map +1 -1
  457. package/dist/index85.js +1 -120
  458. package/dist/index85.js.map +1 -1
  459. package/dist/index86.js +129 -1
  460. package/dist/index86.js.map +1 -1
  461. package/dist/index87.js +1 -83
  462. package/dist/index87.js.map +1 -1
  463. package/dist/index88.js +92 -1
  464. package/dist/index88.js.map +1 -1
  465. package/dist/index89.js +1 -30
  466. package/dist/index89.js.map +1 -1
  467. package/dist/index9.js +192 -61
  468. package/dist/index9.js.map +1 -1
  469. package/dist/index90.js +30 -1
  470. package/dist/index90.js.map +1 -1
  471. package/dist/index91.js +1 -157
  472. package/dist/index91.js.map +1 -1
  473. package/dist/index92.js +166 -1
  474. package/dist/index92.js.map +1 -1
  475. package/dist/index93.js +1 -86
  476. package/dist/index93.js.map +1 -1
  477. package/dist/index94.js +112 -1
  478. package/dist/index94.js.map +1 -1
  479. package/dist/index95.js +1 -89
  480. package/dist/index95.js.map +1 -1
  481. package/dist/index96.js +98 -1
  482. package/dist/index96.js.map +1 -1
  483. package/dist/index97.js +1 -119
  484. package/dist/index97.js.map +1 -1
  485. package/dist/index98.js +129 -1
  486. package/dist/index98.js.map +1 -1
  487. package/dist/index99.js +1 -227
  488. package/dist/index99.js.map +1 -1
  489. package/dist/style.css +1 -1
  490. package/dist/utilities/functions/last.d.ts +1 -1
  491. package/package.json +2 -2
package/dist/index217.js CHANGED
@@ -1,9 +1,19 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
5
- });
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index240.js";
2
+ import { __module as t } from "./index247.js";
3
+ (function(s, a) {
4
+ (function(f, o) {
5
+ s.exports = o();
6
+ })(n, function() {
7
+ return function(f, o) {
8
+ o.prototype.isSameOrBefore = function(e, r) {
9
+ return this.isSame(e, r) || this.isBefore(e, r);
10
+ };
11
+ };
12
+ });
13
+ })(t);
14
+ var m = t.exports;
15
+ const c = /* @__PURE__ */ i(m);
6
16
  export {
7
- o as waitFor
17
+ c as default
8
18
  };
9
19
  //# sourceMappingURL=index217.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index217.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n\titeratee: () => boolean,\n\tinterval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n\tnew Promise((resolve) => {\n\t\tconst i = setInterval(() => {\n\t\t\tif (iteratee()) {\n\t\t\t\tclearInterval(i);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t}, interval);\n\t});\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OAC1C,IAAI,QAAQ,CAACC,MAAY;AAClB,QAAAC,IAAI,YAAY,MAAM;AAC3B,IAAIH,QACH,cAAcG,CAAC,GACPD;KAEPD,CAAQ;AACZ,CAAC;"}
1
+ {"version":3,"file":"index217.js","sources":["../node_modules/dayjs/plugin/isSameOrBefore.js"],"sourcesContent":["!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){\"use strict\";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));"],"names":["e","i","module","this"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAyI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAE;AAAC,MAAAA,EAAE,UAAU,iBAAe,SAAS,GAAEA,GAAE;AAAC,eAAO,KAAK,OAAO,GAAEA,CAAC,KAAG,KAAK,SAAS,GAAEA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index218.js CHANGED
@@ -1,5 +1,23 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index240.js";
2
+ import { __module as n } from "./index248.js";
3
+ (function(u, l) {
4
+ (function(c, e) {
5
+ u.exports = e();
6
+ })(s, function() {
7
+ return function(c, e, r) {
8
+ r.updateLocale = function(f, o) {
9
+ var t = r.Ls[f];
10
+ if (t)
11
+ return (o ? Object.keys(o) : []).forEach(function(a) {
12
+ t[a] = o[a];
13
+ }), t;
14
+ };
15
+ };
16
+ });
17
+ })(n);
18
+ var i = n.exports;
19
+ const x = /* @__PURE__ */ p(i);
2
20
  export {
3
- o as booleanishToBoolean
21
+ x as default
4
22
  };
5
23
  //# sourceMappingURL=index218.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index218.js","sources":["../src/utilities/functions/booleanishToBoolean.ts"],"sourcesContent":["/**\n * Accepts a booleanish input and returns a boolean value\n * @param input booleanish input\n * @returns\n */\nexport const booleanishToBoolean = (input: boolean | 'true' | 'false') => {\n\tif (typeof input === 'boolean') return input;\n\telse return input === 'true';\n};\n"],"names":["booleanishToBoolean","input"],"mappings":"AAKa,MAAAA,IAAsB,CAACC,MAC/B,OAAOA,KAAU,YAAkBA,IAC3BA,MAAU;"}
1
+ {"version":3,"file":"index218.js","sources":["../node_modules/dayjs/plugin/updateLocale.js"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=n()}(this,(function(){\"use strict\";return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return(n?Object.keys(n):[]).forEach((function(e){o[e]=n[e]})),o}}}));"],"names":["e","n","module","this","t","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAuI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,MAAAA,EAAE,eAAa,SAASJ,GAAEC,GAAE;AAAC,YAAII,IAAED,EAAE,GAAGJ,CAAC;AAAE,YAAGK;AAAE,kBAAOJ,IAAE,OAAO,KAAKA,CAAC,IAAE,CAAA,GAAI,QAAS,SAASD,GAAE;AAAC,YAAAK,EAAEL,CAAC,IAAEC,EAAED,CAAC;AAAA,UAAC,IAAIK;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
package/dist/index219.js CHANGED
@@ -1,5 +1,32 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index240.js";
2
+ import { __module as n } from "./index249.js";
3
+ (function(f, p) {
4
+ (function(r, e) {
5
+ f.exports = e();
6
+ })(k, function() {
7
+ var r = "week", e = "year";
8
+ return function(w, u, a) {
9
+ var o = u.prototype;
10
+ o.week = function(t) {
11
+ if (t === void 0 && (t = null), t !== null)
12
+ return this.add(7 * (t - this.week()), "day");
13
+ var s = this.$locale().yearStart || 1;
14
+ if (this.month() === 11 && this.date() > 25) {
15
+ var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
16
+ if (l.isBefore(d))
17
+ return 1;
18
+ }
19
+ var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
20
+ return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
21
+ }, o.weeks = function(t) {
22
+ return t === void 0 && (t = null), this.week(t);
23
+ };
24
+ };
25
+ });
26
+ })(n);
27
+ var m = n.exports;
28
+ const x = /* @__PURE__ */ c(m);
2
29
  export {
3
- s as isCssColor
30
+ x as default
4
31
  };
5
32
  //# sourceMappingURL=index219.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index219.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n\treturn !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MACnB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
1
+ {"version":3,"file":"index219.js","sources":["../node_modules/dayjs/plugin/weekOfYear.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));"],"names":["e","t","module","this","i","n","r","f","s","a","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAqI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,QAAOC,IAAE;AAAO,WAAO,SAASG,GAAEC,GAAEC,GAAE;AAAC,UAAIC,IAAEF,EAAE;AAAU,MAAAE,EAAE,OAAK,SAASH,GAAE;AAAC,YAAYA,MAAT,WAAaA,IAAE,OAAaA,MAAP;AAAS,iBAAO,KAAK,IAAI,KAAGA,IAAE,KAAK,KAAI,IAAI,KAAK;AAAE,YAAIC,IAAE,KAAK,QAAO,EAAG,aAAW;AAAE,YAAQ,KAAK,MAAO,MAAjB,MAAmB,KAAK,KAAI,IAAG,IAAG;AAAC,cAAIE,IAAED,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,IAAI,GAAEA,CAAC,EAAE,KAAKI,CAAC,GAAEG,IAAEF,EAAE,IAAI,EAAE,MAAMN,CAAC;AAAE,cAAGO,EAAE,SAASC,CAAC;AAAE,mBAAO;AAAA,QAAC;AAAC,YAAIC,IAAEH,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,KAAKI,CAAC,EAAE,QAAQL,CAAC,EAAE,SAAS,GAAE,aAAa,GAAEU,IAAE,KAAK,KAAKD,GAAET,GAAE,EAAE;AAAE,eAAOU,IAAE,IAAEJ,EAAE,IAAI,EAAE,QAAQ,MAAM,EAAE,KAAI,IAAG,KAAK,KAAKI,CAAC;AAAA,MAAC,GAAEH,EAAE,QAAM,SAASP,GAAE;AAAC,eAAgBA,MAAT,WAAaA,IAAE,OAAM,KAAK,KAAKA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
package/dist/index22.js CHANGED
@@ -1,2 +1,132 @@
1
-
1
+ import { defineComponent as V, computed as n, openBlock as i, createElementBlock as b, normalizeClass as H, createBlock as y, resolveDynamicComponent as w, normalizeProps as o, guardReactiveProps as s, withCtx as c, renderSlot as B, createTextVNode as N, toDisplayString as p, createElementVNode as d, unref as h, createCommentVNode as S, createVNode as T, Fragment as D, renderList as I } from "vue";
2
+ import { deburr as F } from "./index197.js";
3
+ import { getAsPercentage as E } from "./index122.js";
4
+ import { snakeCase as R } from "./index198.js";
5
+ import { useId as j } from "./index8.js";
6
+ import q from "./index119.js";
7
+ import "./index184.js";
8
+ const G = {
9
+ key: 0,
10
+ class: "bb-base-input-container__hint-container"
11
+ }, J = ["id"], K = { class: "bb-base-input-container__errors" }, Z = /* @__PURE__ */ V({
12
+ __name: "BaseInputContainer",
13
+ props: {
14
+ direction: { default: "vertical" },
15
+ errors: {},
16
+ hasErrors: { type: Boolean },
17
+ hideLabel: { type: Boolean },
18
+ hint: {},
19
+ id: {},
20
+ inputPosition: { default: "right" },
21
+ label: {},
22
+ labelPosition: { default: "left" },
23
+ labelTag: { default: "label" },
24
+ modelValue: {},
25
+ name: {},
26
+ reverse: { type: Boolean, default: !1 },
27
+ showHint: { type: Boolean },
28
+ tag: { default: "span" }
29
+ },
30
+ setup(P) {
31
+ const e = P, l = e.id || j().id.value, m = e.hint ? `hint_${l}` : void 0, k = n(() => e.showHint && !!e.hint), C = n(() => {
32
+ if (e.name)
33
+ return e.name;
34
+ let t = F(e.label);
35
+ return R(t).toLowerCase();
36
+ }), $ = n(() => {
37
+ const t = {
38
+ class: {
39
+ "bb-base-input-container": !0,
40
+ "bb-base-input-container--hidden-label": e.reverse,
41
+ "bb-base-input-container--horizontal": e.direction !== "vertical",
42
+ "bb-base-input-container--reverse": e.reverse,
43
+ "bb-base-input-container--vertical": e.direction === "vertical",
44
+ "bb-base-input-container--errors": u.value
45
+ }
46
+ };
47
+ return e.tag === "label" && (t.for = l), t;
48
+ }), L = n(() => {
49
+ let t = {
50
+ class: {
51
+ "bb-base-input-container__label": !0,
52
+ "bb-base-input-container__label--hidden": e.hideLabel,
53
+ [`bb-base-input-container__label--${e.labelPosition}`]: e.labelPosition
54
+ },
55
+ style: {
56
+ width: f.value.label
57
+ }
58
+ };
59
+ return e.labelTag === "label" && (t.for = l), t;
60
+ }), z = n(() => ({
61
+ class: {
62
+ "bb-base-input-container__input": !0,
63
+ [`bb-base-input-container__input--${e.inputPosition}`]: e.inputPosition
64
+ },
65
+ style: {
66
+ width: f.value.input
67
+ }
68
+ })), f = n(() => {
69
+ let t = {
70
+ label: "auto",
71
+ input: "auto"
72
+ };
73
+ if (e.direction !== "auto")
74
+ if (e.direction === "vertical")
75
+ t.label = t.input = "100%";
76
+ else if (e.direction === "horizontal")
77
+ t.label = t.input = "50%";
78
+ else if (/^[\S]+\s[\S]+$/g.test(e.direction)) {
79
+ const [r, a] = e.direction.split(/\s+/).map((A) => A.length), _ = E(r, r + a) + "%", g = E(a, a + r) + "%";
80
+ e.reverse ? (t.label = g, t.input = _) : (t.label = _, t.input = g);
81
+ } else
82
+ throw new Error("Horizontal pattern is malformed");
83
+ return t;
84
+ }), v = n(() => e.errors ? [].concat(e.errors) : []), u = n(
85
+ () => !!v.value.length || e.hasErrors
86
+ );
87
+ return (t, r) => (i(), b("div", {
88
+ class: H(["bb-base-input-outer-container", {
89
+ "bb-base-input-outer-container--errors": u.value,
90
+ "bb-base-input-outer-container--hint": k.value
91
+ }])
92
+ }, [
93
+ (i(), y(w(t.tag), o(s($.value)), {
94
+ default: c(() => [
95
+ (i(), y(w(t.labelTag), o(s(L.value)), {
96
+ default: c(() => [
97
+ B(t.$slots, "label", o(s({ text: t.label, hasErrors: u.value })), () => [
98
+ N(p(t.label), 1)
99
+ ])
100
+ ]),
101
+ _: 3
102
+ }, 16)),
103
+ d("span", o(s(z.value)), [
104
+ B(t.$slots, "input", o(s({ id: h(l), name: C.value, hasErrors: u.value, ariaDescribedby: h(m) })))
105
+ ], 16)
106
+ ]),
107
+ _: 3
108
+ }, 16)),
109
+ t.hint ? (i(), b("span", G, [
110
+ d("span", {
111
+ class: "bb-base-input-container__hint",
112
+ id: h(m)
113
+ }, p(t.hint), 9, J)
114
+ ])) : S("", !0),
115
+ d("span", K, [
116
+ T(q, { tag: "span" }, {
117
+ default: c(() => [
118
+ (i(!0), b(D, null, I(v.value, (a) => (i(), b("span", {
119
+ key: a,
120
+ class: "bb-base-input-container__error"
121
+ }, p(a), 1))), 128))
122
+ ]),
123
+ _: 1
124
+ })
125
+ ])
126
+ ], 2));
127
+ }
128
+ });
129
+ export {
130
+ Z as default
131
+ };
2
132
  //# sourceMappingURL=index22.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index22.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index22.js","sources":["../src/components/BaseInputContainer/BaseInputContainer.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"bb-base-input-outer-container\"\n\t\t:class=\"{\n\t\t\t'bb-base-input-outer-container--errors': hasErrors,\n\t\t\t'bb-base-input-outer-container--hint': showHint,\n\t\t}\"\n\t>\n\t\t<component :is=\"tag\" v-bind=\"containerAttributes\">\n\t\t\t<component :is=\"labelTag\" v-bind=\"labelAttributes\">\n\t\t\t\t<slot name=\"label\" v-bind=\"{ text: label, hasErrors }\">{{\n\t\t\t\t\tlabel\n\t\t\t\t}}</slot>\n\t\t\t</component>\n\t\t\t<span v-bind=\"inputAttributes\">\n\t\t\t\t<slot\n\t\t\t\t\tname=\"input\"\n\t\t\t\t\tv-bind=\"{ id, name, hasErrors, ariaDescribedby: hintId }\"\n\t\t\t\t></slot>\n\t\t\t</span>\n\t\t</component>\n\t\t<span class=\"bb-base-input-container__hint-container\" v-if=\"hint\">\n\t\t\t<span class=\"bb-base-input-container__hint\" :id=\"hintId\">{{ hint }}</span>\n\t\t</span>\n\t\t<span class=\"bb-base-input-container__errors\">\n\t\t\t<BbSmoothHeight tag=\"span\">\n\t\t\t\t<span\n\t\t\t\t\tv-for=\"error in computedErrors\"\n\t\t\t\t\t:key=\"error\"\n\t\t\t\t\tclass=\"bb-base-input-container__error\"\n\t\t\t\t\t>{{ error }}</span\n\t\t\t\t>\n\t\t\t</BbSmoothHeight>\n\t\t</span>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { deburr } from '@/utilities/functions/deburr';\nimport { getAsPercentage } from '@/utilities/functions/percentage';\nimport { noop } from '@/utilities/functions/noop';\nimport { snakeCase } from '@/utilities/functions/snakeCase';\nimport { useId } from '@/composables/useId';\nimport BbSmoothHeight from '../BbSmoothHeight/BbSmoothHeight.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BaseInputContainerProps = {\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 * 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 * Text box to be displayed near the input, usually to indicate instructions.\n\t */\n\thint?: string;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.\n\t */\n\tinputPosition?: 'left' | 'center' | 'right';\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 * Defines the HTML tag of the label element.\n\t * Usually is a `label` but for certain component like checkboxes\n\t * that have their own label it should be a `legend`.\n\t * It is important for accessibility reasons.\n\t */\n\tlabelTag?: string;\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue?: any;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\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\t/**\n\t * Displays the passed hint.\n\t */\n\tshowHint?: boolean;\n\n\t/**\n\t * HTML tag of the container, it is by default a `span` so\n\t * it can be used inline without breaking HTML validation.\n\t */\n\ttag?: string;\n};\n\nconst props = withDefaults(defineProps<BaseInputContainerProps>(), {\n\tdirection: 'vertical',\n\tinputPosition: 'right',\n\tlabelPosition: 'left',\n\tlabelTag: 'label',\n\treverse: false,\n\ttag: 'span',\n});\n\nexport type BaseInputContainerSlots = {\n\tinput?: (props: {\n\t\tid: string;\n\t\tname: string;\n\t\thasErrors: boolean;\n\t\tariaDescribedby: string | undefined;\n\t}) => any;\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\ndefineSlots<BaseInputContainerSlots>();\n\n// Always provide an id so that inputs can be focussed by clicking oin the label\nconst id = props.id || useId().id.value;\n\n/**\n * Hint management\n */\nconst hintId = props.hint ? `hint_${id}` : undefined;\nconst showHint = computed(() => props.showHint && !!props.hint);\n\n// If no name is passed use a normalized version of the label\nconst name = computed(() => {\n\tif (props.name) return props.name;\n\tlet noAccents = deburr(props.label);\n\tlet snaked = snakeCase(noAccents);\n\treturn snaked.toLowerCase();\n});\n\nconst containerAttributes = computed(() => {\n\tconst initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container': true,\n\t\t\t'bb-base-input-container--hidden-label': props.reverse,\n\t\t\t'bb-base-input-container--horizontal': props.direction !== 'vertical',\n\t\t\t'bb-base-input-container--reverse': props.reverse,\n\t\t\t'bb-base-input-container--vertical': props.direction === 'vertical',\n\t\t\t'bb-base-input-container--errors': hasErrors.value,\n\t\t},\n\t};\n\tif (props.tag === 'label') initial.for = id;\n\treturn initial;\n});\n\nconst labelAttributes = computed(() => {\n\tlet initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container__label': true,\n\t\t\t'bb-base-input-container__label--hidden': props.hideLabel,\n\t\t\t[`bb-base-input-container__label--${props.labelPosition}`]:\n\t\t\t\tprops.labelPosition,\n\t\t},\n\t\tstyle: {\n\t\t\twidth: widths.value.label,\n\t\t},\n\t};\n\tif (props.labelTag === 'label') initial.for = id;\n\treturn initial;\n});\n\nconst inputAttributes = computed(() => {\n\tlet initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container__input': true,\n\t\t\t[`bb-base-input-container__input--${props.inputPosition}`]:\n\t\t\t\tprops.inputPosition,\n\t\t},\n\t\tstyle: {\n\t\t\twidth: widths.value.input,\n\t\t},\n\t};\n\treturn initial;\n});\n\nconst widths = computed(() => {\n\tlet initial: { [target: string]: string } = {\n\t\tlabel: 'auto',\n\t\tinput: 'auto',\n\t};\n\tif (props.direction === 'auto') {\n\t\tnoop();\n\t} else if (props.direction === 'vertical') {\n\t\tinitial.label = initial.input = 100 + '%';\n\t} else if (props.direction === 'horizontal') {\n\t\tinitial.label = initial.input = 50 + '%';\n\t} else if (/^[\\S]+\\s[\\S]+$/g.test(props.direction)) {\n\t\tconst [firstLength, secondLength] = props.direction\n\t\t\t.split(/\\s+/)\n\t\t\t.map((string) => string.length);\n\t\tconst first =\n\t\t\tgetAsPercentage(firstLength, firstLength + secondLength) + '%';\n\t\tconst second =\n\t\t\tgetAsPercentage(secondLength, secondLength + firstLength) + '%';\n\t\tif (props.reverse) {\n\t\t\tinitial.label = second;\n\t\t\tinitial.input = first;\n\t\t} else {\n\t\t\tinitial.label = first;\n\t\t\tinitial.input = second;\n\t\t}\n\t} else {\n\t\tthrow new Error('Horizontal pattern is malformed');\n\t}\n\treturn initial;\n});\n\nconst computedErrors = computed(() => {\n\treturn props.errors ? ([] as string[]).concat(props.errors) : [];\n});\n\nconst hasErrors = computed(\n\t() => Boolean(computedErrors.value.length) || props.hasErrors\n);\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseInputContainer';\n</style>\n"],"names":["props","__props","id","useId","hintId","showHint","computed","name","noAccents","deburr","snakeCase","containerAttributes","initial","hasErrors","labelAttributes","widths","inputAttributes","firstLength","secondLength","string","first","getAsPercentage","second","computedErrors"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiIA,UAAMA,IAAQC,GAsBRC,IAAKF,EAAM,MAAMG,IAAQ,GAAG,OAK5BC,IAASJ,EAAM,OAAO,QAAQE,CAAE,KAAK,QACrCG,IAAWC,EAAS,MAAMN,EAAM,YAAY,CAAC,CAACA,EAAM,IAAI,GAGxDO,IAAOD,EAAS,MAAM;AAC3B,UAAIN,EAAM;AAAM,eAAOA,EAAM;AACzB,UAAAQ,IAAYC,EAAOT,EAAM,KAAK;AAElC,aADaU,EAAUF,CAAS,EAClB;IAAY,CAC1B,GAEKG,IAAsBL,EAAS,MAAM;AAC1C,YAAMM,IAAmC;AAAA,QACxC,OAAO;AAAA,UACN,2BAA2B;AAAA,UAC3B,yCAAyCZ,EAAM;AAAA,UAC/C,uCAAuCA,EAAM,cAAc;AAAA,UAC3D,oCAAoCA,EAAM;AAAA,UAC1C,qCAAqCA,EAAM,cAAc;AAAA,UACzD,mCAAmCa,EAAU;AAAA,QAC9C;AAAA,MAAA;AAED,aAAIb,EAAM,QAAQ,YAASY,EAAQ,MAAMV,IAClCU;AAAA,IAAA,CACP,GAEKE,IAAkBR,EAAS,MAAM;AACtC,UAAIM,IAAmC;AAAA,QACtC,OAAO;AAAA,UACN,kCAAkC;AAAA,UAClC,0CAA0CZ,EAAM;AAAA,UAChD,CAAC,mCAAmCA,EAAM,aAAa,EAAE,GACxDA,EAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACN,OAAOe,EAAO,MAAM;AAAA,QACrB;AAAA,MAAA;AAED,aAAIf,EAAM,aAAa,YAASY,EAAQ,MAAMV,IACvCU;AAAA,IAAA,CACP,GAEKI,IAAkBV,EAAS,OACO;AAAA,MACtC,OAAO;AAAA,QACN,kCAAkC;AAAA,QAClC,CAAC,mCAAmCN,EAAM,aAAa,EAAE,GACxDA,EAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACN,OAAOe,EAAO,MAAM;AAAA,MACrB;AAAA,IAAA,EAGD,GAEKA,IAAST,EAAS,MAAM;AAC7B,UAAIM,IAAwC;AAAA,QAC3C,OAAO;AAAA,QACP,OAAO;AAAA,MAAA;AAEJ,UAAAZ,EAAM,cAAc;AAExB,YAAWA,EAAM,cAAc;AACtB,UAAAY,EAAA,QAAQA,EAAQ,QAAQ;AAAA,iBACtBZ,EAAM,cAAc;AACtB,UAAAY,EAAA,QAAQA,EAAQ,QAAQ;AAAA,iBACtB,kBAAkB,KAAKZ,EAAM,SAAS,GAAG;AACnD,gBAAM,CAACiB,GAAaC,CAAY,IAAIlB,EAAM,UACxC,MAAM,KAAK,EACX,IAAI,CAACmB,MAAWA,EAAO,MAAM,GACzBC,IACLC,EAAgBJ,GAAaA,IAAcC,CAAY,IAAI,KACtDI,IACLD,EAAgBH,GAAcA,IAAeD,CAAW,IAAI;AAC7D,UAAIjB,EAAM,WACTY,EAAQ,QAAQU,GAChBV,EAAQ,QAAQQ,MAEhBR,EAAQ,QAAQQ,GAChBR,EAAQ,QAAQU;AAAA,QACjB;AAEM,gBAAA,IAAI,MAAM,iCAAiC;AAE3C,aAAAV;AAAA,IAAA,CACP,GAEKW,IAAiBjB,EAAS,MACxBN,EAAM,SAAU,CAAC,EAAe,OAAOA,EAAM,MAAM,IAAI,EAC9D,GAEKa,IAAYP;AAAA,MACjB,MAAM,EAAQiB,EAAe,MAAM,UAAWvB,EAAM;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index220.js CHANGED
@@ -1,7 +1,11 @@
1
- import { curry as e } from "./index249.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ const s = (t, o) => t.reduce(
2
+ (e, r, u, p) => {
3
+ const n = o(r, u, p);
4
+ return n in e || (e[n] = []), e[n].push(r), e;
5
+ },
6
+ {}
7
+ );
3
8
  export {
4
- t as baseWhen,
5
- s as when
9
+ s as groupBy
6
10
  };
7
11
  //# sourceMappingURL=index220.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index220.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from './curry';\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n\titeratee: (item: T) => boolean,\n\tfn: (item: T) => U,\n\titem: T\n) => {\n\tif (iteratee(item)) return fn(item);\n\treturn item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACvBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGKC,IAAOC,EAAML,CAAQ;"}
1
+ {"version":3,"file":"index220.js","sources":["../src/utilities/functions/groupBy.ts"],"sourcesContent":["/**\n * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items\n */\n\nexport const groupBy = <T>(\n\tarr: T[],\n\titeratee: (item: T, index: number, arr: T[]) => string | number | symbol\n): Record<ReturnType<typeof iteratee>, T[]> => {\n\treturn arr.reduce(\n\t\t(acc: { [key: ReturnType<typeof iteratee>]: T[] }, curr, index, arr) => {\n\t\t\tconst key = iteratee(curr, index, arr);\n\t\t\tif (!(key in acc)) {\n\t\t\t\tacc[key] = [];\n\t\t\t}\n\t\t\tacc[key].push(curr);\n\t\t\treturn acc;\n\t\t},\n\t\t{}\n\t);\n};\n"],"names":["groupBy","arr","iteratee","acc","curr","index","key"],"mappings":"AAIa,MAAAA,IAAU,CACtBC,GACAC,MAEOD,EAAI;AAAA,EACV,CAACE,GAAkDC,GAAMC,GAAOJ,MAAQ;AACvE,UAAMK,IAAMJ,EAASE,GAAMC,GAAOJ,CAAG;AACjC,WAAEK,KAAOH,MACRA,EAAAG,CAAG,IAAI,KAERH,EAAAG,CAAG,EAAE,KAAKF,CAAI,GACXD;AAAA,EACR;AAAA,EACA,CAAC;AAAA;"}
package/dist/index221.js CHANGED
@@ -1,124 +1,238 @@
1
- import { arrow as j, computePosition as A } from "./index200.js";
2
- import { autoUpdate as T, flip as W, platform as X, shift as Y } from "./index200.js";
3
- import { unref as o, computed as r, ref as f, shallowRef as B, watch as h, getCurrentScope as F, onScopeDispose as I, shallowReadonly as a } from "vue";
4
- import { isNode as U, getNodeName as k } from "./index240.js";
5
- import { getOverflowAncestors as ee } from "./index240.js";
6
- function q(n) {
7
- return n != null && typeof n == "object" && "$el" in n;
8
- }
9
- function g(n) {
10
- if (q(n)) {
11
- const l = n.$el;
12
- return U(l) && k(l) === "#comment" ? null : l;
13
- }
14
- return n;
15
- }
16
- function J(n) {
17
- return {
18
- name: "arrow",
19
- options: n,
20
- fn(l) {
21
- const t = g(o(n.element));
22
- return t == null ? {} : j({
23
- element: t,
24
- padding: n.padding
25
- }).fn(l);
1
+ import { commonjsGlobal as f, getDefaultExportFromCjs as $ } from "./index240.js";
2
+ var D = "Expected a function", O = "__lodash_hash_undefined__", j = 1 / 0, F = "[object Function]", N = "[object GeneratorFunction]", H = "[object Symbol]", G = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, R = /^\w*$/, A = /^\./, M = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, K = /[\\^$.*+?()[\]{}|]/g, L = /\\(\\)?/g, z = /^\[object .+?Constructor\]$/, U = typeof f == "object" && f && f.Object === Object && f, q = typeof self == "object" && self && self.Object === Object && self, d = U || q || Function("return this")();
3
+ function J(t, e) {
4
+ return t == null ? void 0 : t[e];
5
+ }
6
+ function V(t) {
7
+ var e = !1;
8
+ if (t != null && typeof t.toString != "function")
9
+ try {
10
+ e = !!(t + "");
11
+ } catch {
26
12
  }
27
- };
13
+ return e;
14
+ }
15
+ var X = Array.prototype, Y = Function.prototype, w = Object.prototype, l = d["__core-js_shared__"], m = function() {
16
+ var t = /[^.]+$/.exec(l && l.keys && l.keys.IE_PROTO || "");
17
+ return t ? "Symbol(src)_1." + t : "";
18
+ }(), x = Y.toString, _ = w.hasOwnProperty, P = w.toString, B = RegExp(
19
+ "^" + x.call(_).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
20
+ ), C = d.Symbol, Q = X.splice, W = T(d, "Map"), u = T(Object, "create"), v = C ? C.prototype : void 0, S = v ? v.toString : void 0;
21
+ function a(t) {
22
+ var e = -1, r = t ? t.length : 0;
23
+ for (this.clear(); ++e < r; ) {
24
+ var n = t[e];
25
+ this.set(n[0], n[1]);
26
+ }
27
+ }
28
+ function Z() {
29
+ this.__data__ = u ? u(null) : {};
30
+ }
31
+ function k(t) {
32
+ return this.has(t) && delete this.__data__[t];
33
+ }
34
+ function tt(t) {
35
+ var e = this.__data__;
36
+ if (u) {
37
+ var r = e[t];
38
+ return r === O ? void 0 : r;
39
+ }
40
+ return _.call(e, t) ? e[t] : void 0;
41
+ }
42
+ function et(t) {
43
+ var e = this.__data__;
44
+ return u ? e[t] !== void 0 : _.call(e, t);
45
+ }
46
+ function rt(t, e) {
47
+ var r = this.__data__;
48
+ return r[t] = u && e === void 0 ? O : e, this;
28
49
  }
29
- function S(n) {
30
- return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
31
- }
32
- function M(n, l) {
33
- const t = S(n);
34
- return Math.round(l * t) / t;
35
- }
36
- function K(n, l, t) {
37
- t === void 0 && (t = {});
38
- const x = t.whileElementsMounted, D = r(() => {
39
- var e;
40
- return (e = o(t.open)) != null ? e : !0;
41
- }), O = r(() => o(t.middleware)), d = r(() => {
42
- var e;
43
- return (e = o(t.placement)) != null ? e : "bottom";
44
- }), v = r(() => {
45
- var e;
46
- return (e = o(t.strategy)) != null ? e : "absolute";
47
- }), _ = r(() => {
48
- var e;
49
- return (e = o(t.transform)) != null ? e : !0;
50
- }), i = r(() => g(n.value)), u = r(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), P = f(d.value), E = B({}), y = f(!1), N = r(() => {
51
- const e = {
52
- position: c.value,
53
- left: "0",
54
- top: "0"
55
- };
56
- if (!u.value)
57
- return e;
58
- const b = M(u.value, p.value), C = M(u.value, w.value);
59
- return _.value ? {
60
- ...e,
61
- transform: "translate(" + b + "px, " + C + "px)",
62
- ...S(u.value) >= 1.5 && {
63
- willChange: "transform"
64
- }
65
- } : {
66
- position: c.value,
67
- left: b + "px",
68
- top: C + "px"
69
- };
70
- });
71
- let s;
72
- function m() {
73
- i.value == null || u.value == null || A(i.value, u.value, {
74
- middleware: O.value,
75
- placement: d.value,
76
- strategy: v.value
77
- }).then((e) => {
78
- p.value = e.x, w.value = e.y, c.value = e.strategy, P.value = e.placement, E.value = e.middlewareData, y.value = !0;
79
- });
50
+ a.prototype.clear = Z;
51
+ a.prototype.delete = k;
52
+ a.prototype.get = tt;
53
+ a.prototype.has = et;
54
+ a.prototype.set = rt;
55
+ function i(t) {
56
+ var e = -1, r = t ? t.length : 0;
57
+ for (this.clear(); ++e < r; ) {
58
+ var n = t[e];
59
+ this.set(n[0], n[1]);
80
60
  }
81
- function R() {
82
- typeof s == "function" && (s(), s = void 0);
61
+ }
62
+ function nt() {
63
+ this.__data__ = [];
64
+ }
65
+ function at(t) {
66
+ var e = this.__data__, r = h(e, t);
67
+ if (r < 0)
68
+ return !1;
69
+ var n = e.length - 1;
70
+ return r == n ? e.pop() : Q.call(e, r, 1), !0;
71
+ }
72
+ function ot(t) {
73
+ var e = this.__data__, r = h(e, t);
74
+ return r < 0 ? void 0 : e[r][1];
75
+ }
76
+ function it(t) {
77
+ return h(this.__data__, t) > -1;
78
+ }
79
+ function ct(t, e) {
80
+ var r = this.__data__, n = h(r, t);
81
+ return n < 0 ? r.push([t, e]) : r[n][1] = e, this;
82
+ }
83
+ i.prototype.clear = nt;
84
+ i.prototype.delete = at;
85
+ i.prototype.get = ot;
86
+ i.prototype.has = it;
87
+ i.prototype.set = ct;
88
+ function o(t) {
89
+ var e = -1, r = t ? t.length : 0;
90
+ for (this.clear(); ++e < r; ) {
91
+ var n = t[e];
92
+ this.set(n[0], n[1]);
83
93
  }
84
- function V() {
85
- if (R(), x === void 0) {
86
- m();
87
- return;
94
+ }
95
+ function st() {
96
+ this.__data__ = {
97
+ hash: new a(),
98
+ map: new (W || i)(),
99
+ string: new a()
100
+ };
101
+ }
102
+ function ut(t) {
103
+ return p(this, t).delete(t);
104
+ }
105
+ function ft(t) {
106
+ return p(this, t).get(t);
107
+ }
108
+ function ht(t) {
109
+ return p(this, t).has(t);
110
+ }
111
+ function pt(t, e) {
112
+ return p(this, t).set(t, e), this;
113
+ }
114
+ o.prototype.clear = st;
115
+ o.prototype.delete = ut;
116
+ o.prototype.get = ft;
117
+ o.prototype.has = ht;
118
+ o.prototype.set = pt;
119
+ function h(t, e) {
120
+ for (var r = t.length; r--; )
121
+ if (Ot(t[r][0], e))
122
+ return r;
123
+ return -1;
124
+ }
125
+ function lt(t, e) {
126
+ e = gt(e, t) ? [e] : yt(e);
127
+ for (var r = 0, n = e.length; t != null && r < n; )
128
+ t = t[vt(e[r++])];
129
+ return r && r == n ? t : void 0;
130
+ }
131
+ function dt(t) {
132
+ if (!E(t) || mt(t))
133
+ return !1;
134
+ var e = jt(t) || V(t) ? B : z;
135
+ return e.test(St(t));
136
+ }
137
+ function _t(t) {
138
+ if (typeof t == "string")
139
+ return t;
140
+ if (g(t))
141
+ return S ? S.call(t) : "";
142
+ var e = t + "";
143
+ return e == "0" && 1 / t == -j ? "-0" : e;
144
+ }
145
+ function yt(t) {
146
+ return I(t) ? t : Ct(t);
147
+ }
148
+ function p(t, e) {
149
+ var r = t.__data__;
150
+ return bt(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
151
+ }
152
+ function T(t, e) {
153
+ var r = J(t, e);
154
+ return dt(r) ? r : void 0;
155
+ }
156
+ function gt(t, e) {
157
+ if (I(t))
158
+ return !1;
159
+ var r = typeof t;
160
+ return r == "number" || r == "symbol" || r == "boolean" || t == null || g(t) ? !0 : R.test(t) || !G.test(t) || e != null && t in Object(e);
161
+ }
162
+ function bt(t) {
163
+ var e = typeof t;
164
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
165
+ }
166
+ function mt(t) {
167
+ return !!m && m in t;
168
+ }
169
+ var Ct = y(function(t) {
170
+ t = xt(t);
171
+ var e = [];
172
+ return A.test(t) && e.push(""), t.replace(M, function(r, n, c, s) {
173
+ e.push(c ? s.replace(L, "$1") : n || r);
174
+ }), e;
175
+ });
176
+ function vt(t) {
177
+ if (typeof t == "string" || g(t))
178
+ return t;
179
+ var e = t + "";
180
+ return e == "0" && 1 / t == -j ? "-0" : e;
181
+ }
182
+ function St(t) {
183
+ if (t != null) {
184
+ try {
185
+ return x.call(t);
186
+ } catch {
88
187
  }
89
- if (i.value != null && u.value != null) {
90
- s = x(i.value, u.value, m);
91
- return;
188
+ try {
189
+ return t + "";
190
+ } catch {
92
191
  }
93
192
  }
94
- function $() {
95
- D.value || (y.value = !1);
96
- }
97
- return h([O, d, v], m, {
98
- flush: "sync"
99
- }), h([i, u], V, {
100
- flush: "sync"
101
- }), h(D, $, {
102
- flush: "sync"
103
- }), F() && I(R), {
104
- x: a(p),
105
- y: a(w),
106
- strategy: a(c),
107
- placement: a(P),
108
- middlewareData: a(E),
109
- isPositioned: a(y),
110
- floatingStyles: N,
111
- update: m
193
+ return "";
194
+ }
195
+ function y(t, e) {
196
+ if (typeof t != "function" || e && typeof e != "function")
197
+ throw new TypeError(D);
198
+ var r = function() {
199
+ var n = arguments, c = e ? e.apply(this, n) : n[0], s = r.cache;
200
+ if (s.has(c))
201
+ return s.get(c);
202
+ var b = t.apply(this, n);
203
+ return r.cache = s.set(c, b), b;
112
204
  };
205
+ return r.cache = new (y.Cache || o)(), r;
206
+ }
207
+ y.Cache = o;
208
+ function Ot(t, e) {
209
+ return t === e || t !== t && e !== e;
210
+ }
211
+ var I = Array.isArray;
212
+ function jt(t) {
213
+ var e = E(t) ? P.call(t) : "";
214
+ return e == F || e == N;
215
+ }
216
+ function E(t) {
217
+ var e = typeof t;
218
+ return !!t && (e == "object" || e == "function");
219
+ }
220
+ function wt(t) {
221
+ return !!t && typeof t == "object";
222
+ }
223
+ function g(t) {
224
+ return typeof t == "symbol" || wt(t) && P.call(t) == H;
225
+ }
226
+ function xt(t) {
227
+ return t == null ? "" : _t(t);
228
+ }
229
+ function Pt(t, e, r) {
230
+ var n = t == null ? void 0 : lt(t, e);
231
+ return n === void 0 ? r : n;
113
232
  }
233
+ var Tt = Pt;
234
+ const Et = /* @__PURE__ */ $(Tt);
114
235
  export {
115
- J as arrow,
116
- T as autoUpdate,
117
- A as computePosition,
118
- W as flip,
119
- ee as getOverflowAncestors,
120
- X as platform,
121
- Y as shift,
122
- K as useFloating
236
+ Et as default
123
237
  };
124
238
  //# sourceMappingURL=index221.js.map