bitboss-ui 2.0.165 → 2.0.166

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 (377) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +2 -1
  2. package/dist/components/BaseButton/RouterComponent.vue.d.ts +2 -1
  3. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +5 -2
  4. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -4
  5. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +106 -4
  6. package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +5 -1
  7. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -3
  8. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
  9. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +5 -2
  10. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
  11. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +3 -1
  12. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +200 -10
  13. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +10 -2
  14. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -2
  15. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -2
  16. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +3 -2
  17. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +2 -4
  18. package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -2
  19. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -4
  20. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +8 -2
  21. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +5 -2
  22. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +2 -4
  23. package/dist/components/BaseTag/BaseTag.vue.d.ts +207 -6
  24. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -2
  25. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -2
  26. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -2
  27. package/dist/components/BbAlert/BbAlert.vue.d.ts +2 -1
  28. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -2
  29. package/dist/components/BbBadge/BbBadge.vue.d.ts +3 -2
  30. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +3 -2
  31. package/dist/components/BbButton/BbButton.vue.d.ts +2 -1
  32. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -2
  33. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -4
  34. package/dist/components/BbChip/BbChip.vue.d.ts +3 -2
  35. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
  36. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
  37. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
  38. package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -1
  39. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +241 -100
  40. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +69 -126
  41. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -2
  42. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +5 -2
  43. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +100 -9
  44. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +10 -2
  45. package/dist/components/BbPagination/BbPagination.vue.d.ts +10 -6
  46. package/dist/components/BbPopover/BbPopover.vue.d.ts +168 -15
  47. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  48. package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -2
  49. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +2 -4
  50. package/dist/components/BbRating/BbRating.vue.d.ts +3 -2
  51. package/dist/components/BbRatio/BbRatio.vue.d.ts +2 -1
  52. package/dist/components/BbRows/BbRows.vue.d.ts +3 -5
  53. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -4
  54. package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -2
  55. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +6 -2
  56. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  57. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +3 -2
  58. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +2 -4
  59. package/dist/components/BbTab/BbTab.vue.d.ts +6 -2
  60. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  61. package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
  62. package/dist/components/BbTeleport.vue.d.ts +2 -1
  63. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
  64. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
  65. package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
  66. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +175 -7
  67. package/dist/components/BbTree/BbTree.vue.d.ts +2 -1
  68. package/dist/components/ClearableButton.vue.d.ts +1 -1
  69. package/dist/components/CommonFloating.vue.d.ts +6 -2
  70. package/dist/components/CommonInputInnerContainer.vue.d.ts +5 -2
  71. package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -4
  72. package/dist/components/CommonPopover.vue.d.ts +42 -0
  73. package/dist/components/ErrorIcon.vue.d.ts +1 -1
  74. package/dist/components/ListBox.vue.d.ts +4 -6
  75. package/dist/components/OptionsContainer.vue.d.ts +4 -6
  76. package/dist/components/Transitions/Slide.vue.d.ts +2 -1
  77. package/dist/composables/useUntil.d.ts +7 -0
  78. package/dist/{style.css → index.css} +1 -1
  79. package/dist/index.js +148 -143
  80. package/dist/index100.js +122 -135
  81. package/dist/index102.js +100 -0
  82. package/dist/index104.js +24 -0
  83. package/dist/index106.js +144 -0
  84. package/dist/index107.js +106 -59
  85. package/dist/index109.js +101 -289
  86. package/dist/index11.js +2 -2
  87. package/dist/index111.js +37 -476
  88. package/dist/index113.js +31 -118
  89. package/dist/index115.js +43 -61
  90. package/dist/index117.js +86 -78
  91. package/dist/index119.js +296 -26
  92. package/dist/index12.js +6 -6
  93. package/dist/index121.js +470 -138
  94. package/dist/index123.js +117 -115
  95. package/dist/index125.js +110 -35
  96. package/dist/index127.js +115 -45
  97. package/dist/index129.js +28 -31
  98. package/dist/index13.js +5 -5
  99. package/dist/index131.js +117 -21
  100. package/dist/index133.js +120 -9
  101. package/dist/index135.js +2 -2
  102. package/dist/index136.js +21 -5
  103. package/dist/index137.js +375 -7
  104. package/dist/index138.js +9 -6
  105. package/dist/index139.js +25 -3
  106. package/dist/index140.js +2 -3
  107. package/dist/index141.js +5 -3
  108. package/dist/index142.js +9 -3
  109. package/dist/index143.js +6 -3
  110. package/dist/index144.js +1 -1
  111. package/dist/index145.js +1 -1
  112. package/dist/index146.js +1 -1
  113. package/dist/index147.js +1 -1
  114. package/dist/index148.js +1 -1
  115. package/dist/index149.js +1 -1
  116. package/dist/index15.js +15 -15
  117. package/dist/index150.js +1 -1
  118. package/dist/index151.js +1 -1
  119. package/dist/index152.js +1 -1
  120. package/dist/index153.js +1 -1
  121. package/dist/index154.js +1 -1
  122. package/dist/index155.js +1 -1
  123. package/dist/index156.js +1 -1
  124. package/dist/index157.js +1 -1
  125. package/dist/index158.js +1 -1
  126. package/dist/index159.js +1 -1
  127. package/dist/index160.js +1 -1
  128. package/dist/index161.js +1 -1
  129. package/dist/index162.js +1 -1
  130. package/dist/index163.js +1 -1
  131. package/dist/index164.js +1 -1
  132. package/dist/index165.js +1 -1
  133. package/dist/index166.js +2 -2
  134. package/dist/index167.js +5 -0
  135. package/dist/index168.js +2 -2
  136. package/dist/index169.js +5 -0
  137. package/dist/index17.js +6 -6
  138. package/dist/index170.js +1 -1
  139. package/dist/index171.js +1 -1
  140. package/dist/index172.js +1 -1
  141. package/dist/index173.js +1 -1
  142. package/dist/index174.js +1 -1
  143. package/dist/index175.js +1 -1
  144. package/dist/index176.js +1 -1
  145. package/dist/index177.js +2 -2
  146. package/dist/index178.js +5 -0
  147. package/dist/index179.js +3 -2
  148. package/dist/index180.js +1 -1
  149. package/dist/index181.js +2 -3
  150. package/dist/index182.js +1 -1
  151. package/dist/index183.js +1 -1
  152. package/dist/index184.js +1 -1
  153. package/dist/index185.js +1 -1
  154. package/dist/index186.js +1 -1
  155. package/dist/index187.js +1 -1
  156. package/dist/index188.js +2 -2
  157. package/dist/index189.js +3 -2
  158. package/dist/index19.js +10 -10
  159. package/dist/index190.js +1 -1
  160. package/dist/index191.js +2 -3
  161. package/dist/index192.js +1 -1
  162. package/dist/index193.js +5 -0
  163. package/dist/index194.js +1 -1
  164. package/dist/index195.js +5 -0
  165. package/dist/index196.js +1 -1
  166. package/dist/index197.js +1 -1
  167. package/dist/index198.js +1 -1
  168. package/dist/index199.js +1 -1
  169. package/dist/index200.js +1 -1
  170. package/dist/index201.js +1 -1
  171. package/dist/index202.js +1 -1
  172. package/dist/index203.js +1 -1
  173. package/dist/index204.js +1 -1
  174. package/dist/index205.js +1 -1
  175. package/dist/index206.js +100 -77
  176. package/dist/index207.js +2 -2
  177. package/dist/index208.js +2 -4
  178. package/dist/index209.js +2 -41
  179. package/dist/index21.js +17 -17
  180. package/dist/index210.js +4 -20
  181. package/dist/index211.js +2 -94
  182. package/dist/index212.js +43 -0
  183. package/dist/index213.js +5 -199
  184. package/dist/index215.js +11 -62
  185. package/dist/index216.js +15 -0
  186. package/dist/index217.js +34 -13
  187. package/dist/index218.js +4 -13
  188. package/dist/index219.js +20 -5
  189. package/dist/index220.js +94 -16
  190. package/dist/index222.js +199 -18
  191. package/dist/index224.js +65 -18
  192. package/dist/index226.js +13 -3
  193. package/dist/index227.js +2 -2
  194. package/dist/index228.js +6 -8
  195. package/dist/index229.js +14 -248
  196. package/dist/index23.js +25 -25
  197. package/dist/index230.js +8 -51
  198. package/dist/index231.js +11 -44
  199. package/dist/index232.js +101 -5
  200. package/dist/index234.js +23 -3
  201. package/dist/index235.js +2 -86
  202. package/dist/index236.js +179 -0
  203. package/dist/index237.js +3 -29
  204. package/dist/index238.js +5 -17
  205. package/dist/index239.js +5 -51
  206. package/dist/index240.js +5 -15
  207. package/dist/index241.js +5 -12
  208. package/dist/index242.js +5 -16
  209. package/dist/index243.js +5 -125
  210. package/dist/index244.js +2 -2
  211. package/dist/index245.js +2 -6
  212. package/dist/index246.js +9 -2
  213. package/dist/index247.js +3 -9
  214. package/dist/index248.js +51 -2
  215. package/dist/index249.js +17 -4
  216. package/dist/index25.js +8 -8
  217. package/dist/index250.js +106 -2
  218. package/dist/index252.js +96 -11
  219. package/dist/index254.js +2 -2
  220. package/dist/index255.js +3 -2
  221. package/dist/index256.js +86 -2
  222. package/dist/index258.js +26 -123
  223. package/dist/index259.js +15 -106
  224. package/dist/index260.js +14 -0
  225. package/dist/index261.js +16 -100
  226. package/dist/index262.js +12 -0
  227. package/dist/index263.js +2 -11
  228. package/dist/index264.js +17 -227
  229. package/dist/index265.js +112 -353
  230. package/dist/index266.js +11 -175
  231. package/dist/index267.js +228 -10
  232. package/dist/index268.js +367 -2
  233. package/dist/index269.js +5 -9
  234. package/dist/index27.js +18 -18
  235. package/dist/index270.js +5 -23
  236. package/dist/index271.js +8 -3
  237. package/dist/index272.js +250 -6
  238. package/dist/index273.js +50 -14
  239. package/dist/index274.js +43 -280
  240. package/dist/index275.js +5 -6
  241. package/dist/index276.js +60 -2
  242. package/dist/index277.js +9 -2
  243. package/dist/index278.js +8 -2
  244. package/dist/index279.js +2 -2
  245. package/dist/index280.js +5 -2
  246. package/dist/index281.js +67 -2
  247. package/dist/index282.js +4 -2
  248. package/dist/index283.js +471 -2
  249. package/dist/index284.js +1 -1
  250. package/dist/index285.js +7 -2
  251. package/dist/index286.js +11 -2
  252. package/dist/index287.js +2 -28
  253. package/dist/index288.js +3 -22
  254. package/dist/index289.js +5 -0
  255. package/dist/index29.js +6 -6
  256. package/dist/index290.js +3 -7
  257. package/dist/index292.js +7 -11
  258. package/dist/index293.js +189 -420
  259. package/dist/index294.js +701 -3
  260. package/dist/index295.js +354 -3
  261. package/dist/index296.js +58 -3
  262. package/dist/index297.js +5 -0
  263. package/dist/index298.js +5 -224
  264. package/dist/index299.js +280 -3
  265. package/dist/index300.js +2 -17
  266. package/dist/index301.js +125 -9
  267. package/dist/index302.js +2 -200
  268. package/dist/index303.js +16 -2
  269. package/dist/index304.js +2 -4
  270. package/dist/index305.js +16 -2
  271. package/dist/index306.js +2 -2
  272. package/dist/index307.js +19 -8
  273. package/dist/index308.js +2 -126
  274. package/dist/index309.js +15 -3
  275. package/dist/index31.js +4 -4
  276. package/dist/index310.js +2 -3
  277. package/dist/index311.js +5 -2
  278. package/dist/index312.js +3 -436
  279. package/dist/index313.js +3 -127
  280. package/dist/index314.js +17 -2
  281. package/dist/index315.js +6 -67
  282. package/dist/index316.js +5 -5
  283. package/dist/index317.js +7 -88
  284. package/dist/index318.js +28 -3
  285. package/dist/index319.js +3 -3
  286. package/dist/index320.js +3 -57
  287. package/dist/index321.js +18 -32
  288. package/dist/index322.js +2 -28
  289. package/dist/index323.js +29 -0
  290. package/dist/index324.js +2 -480
  291. package/dist/index325.js +2 -7
  292. package/dist/index326.js +2 -7
  293. package/dist/index327.js +2 -19
  294. package/dist/index328.js +2 -8
  295. package/dist/index329.js +22 -6
  296. package/dist/index33.js +10 -10
  297. package/dist/index331.js +128 -57
  298. package/dist/index332.js +2 -58
  299. package/dist/index333.js +381 -4
  300. package/dist/index334.js +125 -7
  301. package/dist/index335.js +2 -4
  302. package/dist/index336.js +92 -46
  303. package/dist/index337.js +58 -2
  304. package/dist/index338.js +60 -0
  305. package/dist/index339.js +228 -3
  306. package/dist/index340.js +8 -2
  307. package/dist/index341.js +5 -423
  308. package/dist/index342.js +6 -45
  309. package/dist/index343.js +9 -0
  310. package/dist/index344.js +7 -0
  311. package/dist/index345.js +35 -0
  312. package/dist/index346.js +30 -0
  313. package/dist/index348.js +9 -0
  314. package/dist/index349.js +21 -0
  315. package/dist/index35.js +9 -9
  316. package/dist/index350.js +49 -0
  317. package/dist/index352.js +5 -0
  318. package/dist/index353.js +483 -0
  319. package/dist/index354.js +4 -0
  320. package/dist/index355.js +484 -0
  321. package/dist/index356.js +49 -0
  322. package/dist/index37.js +33 -33
  323. package/dist/index39.js +16 -16
  324. package/dist/index41.js +5 -5
  325. package/dist/index43.js +10 -10
  326. package/dist/index45.js +25 -25
  327. package/dist/index47.js +6 -6
  328. package/dist/index49.js +15 -15
  329. package/dist/index51.js +4 -4
  330. package/dist/index53.js +6 -6
  331. package/dist/index55.js +6 -6
  332. package/dist/index57.js +16 -16
  333. package/dist/index59.js +3 -3
  334. package/dist/index6.js +1 -1
  335. package/dist/index61.js +11 -11
  336. package/dist/index63.js +5 -5
  337. package/dist/index65.js +2 -2
  338. package/dist/index67.js +35 -107
  339. package/dist/index69.js +42 -85
  340. package/dist/index7.js +2 -2
  341. package/dist/index71.js +47 -56
  342. package/dist/index73.js +83 -54
  343. package/dist/index75.js +113 -273
  344. package/dist/index77.js +50 -158
  345. package/dist/index79.js +228 -194
  346. package/dist/index81.js +148 -40
  347. package/dist/index83.js +221 -0
  348. package/dist/index85.js +53 -0
  349. package/dist/index87.js +46 -0
  350. package/dist/index88.js +125 -184
  351. package/dist/index9.js +1 -1
  352. package/dist/index90.js +240 -26
  353. package/dist/index92.js +230 -86
  354. package/dist/index94.js +135 -117
  355. package/dist/index96.js +27 -94
  356. package/dist/index98.js +85 -15
  357. package/package.json +26 -27
  358. package/dist/index101.js +0 -178
  359. package/dist/index103.js +0 -116
  360. package/dist/index105.js +0 -100
  361. package/dist/index126.js +0 -46
  362. package/dist/index128.js +0 -49
  363. package/dist/index130.js +0 -4
  364. package/dist/index132.js +0 -346
  365. package/dist/index134.js +0 -27
  366. package/dist/index221.js +0 -18
  367. package/dist/index223.js +0 -17
  368. package/dist/index225.js +0 -29
  369. package/dist/index233.js +0 -62
  370. package/dist/index253.js +0 -36
  371. package/dist/index257.js +0 -20
  372. package/dist/index291.js +0 -9
  373. package/dist/index330.js +0 -10
  374. package/dist/index82.js +0 -136
  375. package/dist/index84.js +0 -247
  376. package/dist/index86.js +0 -238
  377. /package/dist/{index251.js → index214.js} +0 -0
package/dist/index75.js CHANGED
@@ -1,284 +1,124 @@
1
- import { defineComponent as X, computed as F, ref as y, openBlock as h, createElementBlock as D, mergeProps as A, createElementVNode as _, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as $, createVNode as B, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as j, toDisplayString as te } from "vue";
2
- import { findRightIndex as H } from "./index269.js";
3
- import { useId as ne } from "./index8.js";
4
- import { wait as oe } from "./index130.js";
5
- import { useIntersectionObserver as ae } from "./index132.js";
6
- import le from "./index13.js";
1
+ import { defineComponent as u, ref as c, computed as f, createBlock as b, openBlock as h, withCtx as o, createVNode as v, mergeProps as y, renderSlot as a, normalizeProps as w, guardReactiveProps as g } from "vue";
2
+ import B from "./index23.js";
7
3
  /* empty css */
8
- import N from "./index270.js";
9
- import se from "./index211.js";
10
- /* empty css */
11
- import V from "./index127.js";
12
- /* empty css */
13
- const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
14
- __name: "BbDropdown",
4
+ import $ from "./index27.js";
5
+ /* empty css */
6
+ const E = /* @__PURE__ */ u({
7
+ __name: "BbDatePickerInput",
15
8
  props: {
16
- arrowPadding: { default: 10 },
17
- block: { type: Boolean },
9
+ allowWriting: { type: [Boolean, String], default: !0 },
10
+ "append:icon": {},
11
+ autocomplete: {},
12
+ autofocus: {},
13
+ clearable: { type: Boolean },
14
+ compact: { type: Boolean },
15
+ direction: {},
18
16
  disabled: { type: Boolean },
19
- eager: { type: Boolean },
17
+ errors: {},
18
+ firstDayOfWeek: {},
19
+ hasErrors: { type: Boolean },
20
+ hideLabel: { type: Boolean },
21
+ hint: {},
20
22
  id: {},
21
- offset: { default: 3 },
22
- padding: { default: 6 },
23
- placement: { default: "bottom" },
24
- theme: { default: "default" },
25
- transitionDuration: { default: 300 },
26
- teleportTarget: {},
27
- items: {},
28
- width: { default: 200 }
23
+ label: {},
24
+ labelPosition: {},
25
+ loading: { type: Boolean },
26
+ max: {},
27
+ min: {},
28
+ modelValue: {},
29
+ name: {},
30
+ persistentHint: { type: Boolean },
31
+ placeholder: {},
32
+ "prepend:icon": {},
33
+ range: { type: Boolean },
34
+ readonly: { type: Boolean },
35
+ required: { type: Boolean },
36
+ reverse: { type: Boolean },
37
+ selectable: {},
38
+ width: {}
29
39
  },
30
- setup(z) {
31
- const r = z, u = r.id ?? `bb_${ne().id.value}`, m = F(() => {
32
- let e = r.items.findIndex((t) => !t.disabled), o = H(
33
- r.items,
34
- (t) => !t.disabled
35
- );
36
- return r.items.map((t, n) => {
37
- const i = `${u}-item-${t.key}`, { onClick: q, ...C } = t, J = async () => {
38
- await b();
39
- const l = document.querySelector(`#${u}`);
40
- if (l) l instanceof HTMLElement && l.focus();
41
- else return;
42
- q && q();
43
- }, Q = (l) => {
44
- if (l.target instanceof HTMLElement && l.target.dataset.dropdownItem) {
45
- if (!a.value) return;
46
- if (l.key === "ArrowDown") {
47
- if (l.preventDefault(), a.value && n !== o) {
48
- const d = a.value.querySelector(
49
- N.map((w) => `#${i} ~ ${w}`).join(",")
50
- );
51
- d && d instanceof HTMLElement && d.focus();
52
- }
53
- } else if (l.key === "ArrowUp") {
54
- if (l.preventDefault(), a.value && n !== e) {
55
- const d = H(r.items, (E, T) => T < n && !E.disabled), k = Array.from(
56
- a.value.querySelectorAll(".bb-dropdown__item")
57
- )[d];
58
- k && k instanceof HTMLElement && k.focus();
59
- }
60
- } else if (l.key === "Tab") {
61
- if (n === o && !l.shiftKey) {
62
- const d = N.join(","), w = Array.from(
63
- document.querySelectorAll(d)
64
- ), k = w.findIndex(
65
- (T) => T.id === u
66
- ), E = w[k + 1];
67
- if (E) E instanceof HTMLElement && (l.preventDefault(), b(), E.focus());
68
- else return;
69
- } else if (n === e && l.shiftKey) {
70
- const d = document.querySelector(`#${u}`);
71
- if (d) d instanceof HTMLElement && (l.preventDefault(), d.focus());
72
- else return;
73
- }
74
- }
75
- }
76
- };
77
- return {
78
- ...C,
79
- original: t,
80
- key: t.key.split(/\W+/g).join("_").toLowerCase(),
81
- disabled: C.disabled || r.disabled,
82
- id: i,
83
- onClick: J,
84
- onKeydown: Q
85
- };
86
- });
87
- }), v = y(), a = y();
88
- ae(
89
- v,
90
- ([{ intersectionRatio: e }]) => {
91
- e !== 1 && s.value && b();
40
+ emits: ["active", "error", "focus", "inactive", "update:modelValue"],
41
+ setup(i, { emit: p }) {
42
+ const s = i, r = p, l = c(!1), t = f(() => s.persistentHint || l.value), d = {
43
+ onError: (e) => r("error", e),
44
+ onFocus: (e) => r("focus", e),
45
+ onActive: () => {
46
+ l.value = !0, r("active");
47
+ },
48
+ onInactive: () => {
49
+ l.value = !1, r("inactive");
92
50
  },
93
- { threshold: [0, 1] }
94
- );
95
- const c = y(!1), s = y(!1), p = y(!1), f = y(!0), R = () => {
96
- c.value || p.value || (s.value ? b() : L());
97
- }, U = async (e) => {
98
- let o = r.items.findIndex((n) => !n.disabled), t = H(
99
- r.items,
100
- (n) => !n.disabled
101
- );
102
- if (e.key === "ArrowDown") {
103
- if (e.preventDefault(), p.value || c.value) return;
104
- if (f.value && await L(), a.value && m.value.length && o !== -1) {
105
- const n = m.value[o].id, i = a.value.querySelector(`#${n}`);
106
- i && i instanceof HTMLElement && i.focus();
107
- }
108
- } else if (e.key === "ArrowUp") {
109
- if (e.preventDefault(), p.value || c.value) return;
110
- if (f.value && await L(), a.value && m.value.length && t !== -1) {
111
- const n = m.value[t].id, i = a.value.querySelector(`#${n}`);
112
- i && i instanceof HTMLElement && i.focus();
113
- }
114
- } else if (e.key === "Tab" && s.value && !e.shiftKey && (e.preventDefault(), a.value && m.value.length && o !== -1)) {
115
- const n = m.value[o].id, i = a.value.querySelector(`#${n}`);
116
- i && i instanceof HTMLElement && i.focus();
117
- }
118
- }, I = (e) => {
119
- const o = e.target;
120
- if (o && o instanceof HTMLElement) {
121
- let t = !0;
122
- v.value && v.value.contains(o) && (t = !1), a.value && a.value.contains(o) && (t = !1), t && b();
123
- }
124
- }, M = (e) => {
125
- const o = e.target;
126
- if (o && o instanceof HTMLElement) {
127
- let t = !0;
128
- v.value && v.value.contains(o) && (t = !1), a.value && a.value.contains(o) && (t = !1), t && b();
129
- }
130
- }, S = (e) => {
131
- var o;
132
- if (s.value && e.key === "Escape") {
133
- if (((o = document.activeElement) == null ? void 0 : o.id) !== u) {
134
- const t = document.querySelector(`#${u}`);
135
- t instanceof HTMLElement && t.focus();
136
- }
137
- b();
138
- }
139
- }, W = y(!1), L = async () => {
140
- W.value = !0, await oe(50), s.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
141
- }, b = async () => {
142
- s.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
143
- }, G = F(() => ({
144
- class: {
145
- "bb-dropdown--block": r.block,
146
- [`bb-dropdown--${r.theme}`]: r.theme
147
- }
148
- }));
149
- return (e, o) => (h(), D("span", A({ class: "bb-dropdown" }, G.value), [
150
- _("span", {
151
- ref_key: "wrapper",
152
- ref: v,
153
- class: "bb-dropdown__wrapper"
154
- }, [
155
- g(e.$slots, "activator", Y(Z({
156
- props: {
157
- "aria-expanded": s.value,
158
- "aria-controls": `menu_${$(u)}`,
159
- id: $(u),
160
- onClick: R,
161
- onKeydown: U,
162
- disabled: e.disabled
163
- },
164
- closed: f.value,
165
- closing: p.value,
51
+ "onUpdate:modelValue": (e) => r("update:modelValue", e)
52
+ };
53
+ return (e, k) => (h(), b($, {
54
+ id: e.id,
55
+ class: "bb-date-picker-input",
56
+ compact: e.compact,
57
+ direction: e.direction,
58
+ errors: e.errors,
59
+ "has-errors": e.hasErrors,
60
+ "hide-label": e.hideLabel,
61
+ hint: e.hint,
62
+ label: e.label,
63
+ "label-position": e.labelPosition,
64
+ "model-value": e.modelValue,
65
+ name: e.name,
66
+ reverse: e.reverse,
67
+ "show-hint": t.value
68
+ }, {
69
+ label: o((n) => [
70
+ a(e.$slots, "label", w(g(n)))
71
+ ]),
72
+ input: o(({ id: n, hasErrors: m }) => [
73
+ v(B, y({
74
+ id: n,
75
+ "allow-writing": e.allowWriting,
76
+ "append:icon": e.$props["append:icon"],
77
+ autocomplete: e.autocomplete,
78
+ autofocus: e.autofocus,
79
+ clearable: e.clearable,
80
+ compact: e.compact,
166
81
  disabled: e.disabled,
167
- open: s.value,
168
- opening: c.value,
169
- placement: e.placement
170
- })))
171
- ], 512),
172
- B(se, {
173
- "arrow-padding": e.arrowPadding,
174
- "base-class": "bb-dropdown",
175
- "container-attributes": {
176
- id: `menu_${$(u)}`,
177
- "aria-labelledby": $(u),
178
- "aria-role": "menu"
179
- },
180
- eager: e.eager,
181
- offset: e.offset,
182
- open: s.value,
183
- padding: e.padding,
184
- placement: e.placement,
185
- "teleport-target": e.teleportTarget,
186
- theme: e.theme,
187
- "transition-duration": e.transitionDuration,
188
- wrapper: v.value
189
- }, {
190
- default: O(() => [
191
- _("span", {
192
- ref_key: "content",
193
- ref: a,
194
- class: "bb-dropdown__items-container",
195
- style: x({ width: `${e.width}px` })
196
- }, [
197
- g(e.$slots, "prepend", {
198
- closed: f.value,
199
- closing: p.value,
200
- disabled: e.disabled,
201
- open: s.value,
202
- opening: c.value,
203
- placement: e.placement
204
- }),
205
- (h(!0), D(K, null, ee(m.value, (t, n) => (h(), D(K, {
206
- key: t.key
207
- }, [
208
- g(e.$slots, "item:prepend", {
209
- closed: f.value,
210
- closing: p.value,
211
- disabled: t.disabled,
212
- index: n,
213
- item: e.items[n],
214
- open: s.value,
215
- opening: c.value,
216
- placement: e.placement,
217
- text: t.text
218
- }),
219
- B(le, A({
220
- "aria-role": "menuitem",
221
- class: ["bb-dropdown__item", {
222
- "bb-dropdown__item--first": n === 0,
223
- "bb-dropdown__item--last": n === e.items.length - 1
224
- }],
225
- "data-dropdown-item": !0,
226
- ref_for: !0
227
- }, t), {
228
- default: O(() => [
229
- g(e.$slots, t.key, {
230
- closed: f.value,
231
- closing: p.value,
232
- disabled: t.disabled,
233
- index: n,
234
- item: t.original,
235
- open: s.value,
236
- opening: c.value,
237
- placement: e.placement,
238
- text: t.text
239
- }, () => [
240
- t["prepend:icon"] ? (h(), P(V, {
241
- key: 0,
242
- class: "item__prepend-icon",
243
- type: t["prepend:icon"]
244
- }, null, 8, ["type"])) : j("", !0),
245
- _("span", ie, te(t.text), 1),
246
- t["append:icon"] ? (h(), P(V, {
247
- key: 1,
248
- class: "item__append-icon",
249
- type: t["append:icon"]
250
- }, null, 8, ["type"])) : j("", !0)
251
- ])
252
- ]),
253
- _: 2
254
- }, 1040, ["class"]),
255
- g(e.$slots, "item:append", {
256
- closed: f.value,
257
- closing: p.value,
258
- disabled: t.disabled,
259
- index: n,
260
- item: e.items[n],
261
- open: s.value,
262
- opening: c.value,
263
- placement: e.placement,
264
- text: t.text
265
- })
266
- ], 64))), 128)),
267
- g(e.$slots, "append", {
268
- closed: f.value,
269
- closing: p.value,
270
- disabled: e.disabled,
271
- open: s.value,
272
- opening: c.value,
273
- placement: e.placement
274
- })
275
- ], 4)
276
- ]),
277
- _: 3
278
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
279
- ], 16));
82
+ "first-day-of-week": e.firstDayOfWeek,
83
+ "has-errors": m,
84
+ loading: e.loading,
85
+ max: e.max,
86
+ min: e.min,
87
+ "model-value": e.modelValue,
88
+ name: e.name,
89
+ placeholder: e.placeholder,
90
+ "prepend:icon": e.$props["prepend:icon"],
91
+ range: e.range,
92
+ readonly: e.readonly,
93
+ required: e.required,
94
+ selectable: e.selectable,
95
+ width: e.width
96
+ }, d), {
97
+ "prepend-outer": o(() => [
98
+ a(e.$slots, "prepend-outer")
99
+ ]),
100
+ prepend: o(() => [
101
+ a(e.$slots, "prepend")
102
+ ]),
103
+ prefix: o(() => [
104
+ a(e.$slots, "prefix")
105
+ ]),
106
+ suffix: o(() => [
107
+ a(e.$slots, "suffix")
108
+ ]),
109
+ append: o(() => [
110
+ a(e.$slots, "append")
111
+ ]),
112
+ "append-outer": o(() => [
113
+ a(e.$slots, "append-outer")
114
+ ]),
115
+ _: 2
116
+ }, 1040, ["id", "allow-writing", "append:icon", "autocomplete", "autofocus", "clearable", "compact", "disabled", "first-day-of-week", "has-errors", "loading", "max", "min", "model-value", "name", "placeholder", "prepend:icon", "range", "readonly", "required", "selectable", "width"])
117
+ ]),
118
+ _: 3
119
+ }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
280
120
  }
281
121
  });
282
122
  export {
283
- ke as default
123
+ E as default
284
124
  };
package/dist/index77.js CHANGED
@@ -1,168 +1,60 @@
1
- import { defineComponent as E, ref as A, computed as y, openBlock as l, createElementBlock as z, mergeProps as _, unref as d, createVNode as u, withCtx as n, createBlock as P, createCommentVNode as v, createElementVNode as b, toDisplayString as h, createSlots as I, renderSlot as r, normalizeProps as s, guardReactiveProps as p, renderList as M } from "vue";
2
- import D from "./index13.js";
1
+ import { defineComponent as d, computed as u, createBlock as m, openBlock as f, mergeProps as y, withCtx as l, renderSlot as t, normalizeProps as a, guardReactiveProps as r } from "vue";
2
+ import $ from "./index25.js";
3
3
  /* empty css */
4
- import O from "./index75.js";
5
- /* empty css */
6
- /* empty css */
7
- /* empty css */
8
- import S from "./index127.js";
9
- /* empty css */
10
- import R from "./index129.js";
11
- /* empty css */
12
- import { useLocale as T } from "./index218.js";
13
- const Z = { class: "bb-dropdown-button__content" }, q = {
14
- key: 1,
15
- class: "bb-dropdown-button__loading-label sr-only"
16
- }, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, ne = /* @__PURE__ */ E({
17
- __name: "BbDropdownButton",
4
+ const g = /* @__PURE__ */ d({
5
+ __name: "BbDialog",
18
6
  props: {
19
- arrowPadding: {},
20
- block: { type: Boolean },
7
+ closeLabel: {},
8
+ compact: { type: Boolean },
21
9
  disabled: { type: Boolean },
22
10
  eager: { type: Boolean },
23
- id: {},
24
- items: {},
25
- offset: {},
26
- padding: {},
27
- placement: {},
28
- theme: { default: "default" },
11
+ panelClasses: {},
12
+ overlayClasses: {},
13
+ persistent: { type: Boolean },
14
+ showClose: { type: Boolean, default: !0 },
15
+ title: {},
16
+ transition: {},
29
17
  transitionDuration: {},
30
- width: {},
31
- autoLoading: { type: Boolean, default: !0 },
32
- "append:icon": {},
33
- disabledWhileLoading: { type: Boolean, default: !0 },
34
- loading: { type: Boolean },
35
- "prepend:icon": {},
36
- size: {}
18
+ size: {},
19
+ description: {},
20
+ focusTarget: {},
21
+ fullscreen: { type: [Boolean, String] },
22
+ modelValue: { type: [Boolean, null] }
37
23
  },
38
- setup(W) {
39
- const t = W, { t: m } = T(), c = A(0), f = y(
40
- () => t.loading || !!c.value && t.autoLoading
41
- ), j = (e) => async (...a) => {
42
- f.value && t.disabledWhileLoading || (c.value++, await e(...a), c.value--);
43
- }, w = y(
44
- () => t.items.map((e) => e.onClick ? {
45
- ...e,
46
- key: e.key.split(/\W+/g).join("_").toLowerCase(),
47
- onClick: j(e.onClick)
48
- } : {
49
- ...e,
50
- key: e.key.split(/\W+/g).join("_").toLowerCase()
51
- })
52
- ), k = y(() => {
53
- const e = { ...w.value[0] };
54
- return e.disabled = e.disabled || t.disabled, e;
55
- }), N = typeof t.size == "string" ? { default: t.size } : { default: "md", ...t.size }, V = Object.entries(N).reduce(
56
- (e, [a, o]) => (a === "default" ? e[`data-${o}`] = "" : e[`data-${a}:${o}`] = "", e),
57
- {}
58
- );
59
- return (e, a) => (l(), z("span", _({
60
- class: ["bb-dropdown-button", {
61
- "bb-dropdown-button--block": e.block,
62
- "bb-dropdown-button--loading": f.value,
63
- [`bb-dropdown-button--${e.theme}`]: !0
64
- }]
65
- }, d(V)), [
66
- u(D, _(k.value, { class: "bb-dropdown-button__main-btn" }), {
67
- default: n(() => [
68
- u(d(R), { class: "bb-dropdown-button__spinner" }),
69
- t["prepend:icon"] ? (l(), P(d(S), {
70
- key: 0,
71
- class: "bb-dropdown-button__prepend-icon",
72
- type: t["prepend:icon"]
73
- }, null, 8, ["type"])) : v("", !0),
74
- b("span", Z, h(k.value.text), 1),
75
- f.value ? (l(), z("span", q, h(d(m)("common.loadingText").value), 1)) : v("", !0),
76
- t["append:icon"] ? (l(), P(d(S), {
77
- key: 2,
78
- class: "bb-dropdown-button__append-icon",
79
- type: t["append:icon"]
80
- }, null, 8, ["type"])) : v("", !0)
81
- ]),
82
- _: 1
83
- }, 16),
84
- u(O, {
85
- id: e.id,
86
- "arrow-padding": e.arrowPadding,
87
- disabled: e.disabled,
88
- eager: e.eager,
89
- items: w.value,
90
- offset: e.offset,
91
- padding: e.padding,
92
- placement: e.placement,
93
- theme: e.theme,
94
- "transition-duration": e.transitionDuration,
95
- width: e.width
96
- }, I({
97
- activator: n(({
98
- props: o,
99
- opening: i,
100
- open: g,
101
- closed: B,
102
- closing: $,
103
- disabled: L,
104
- placement: C
105
- }) => [
106
- r(e.$slots, "activator", {
107
- closed: B,
108
- closing: $,
109
- disabled: L,
110
- open: g,
111
- opening: i,
112
- placement: C,
113
- props: o
114
- }, () => [
115
- u(D, _(o, { class: "bb-dropdown-button__dropdown-btn" }), {
116
- default: n(() => [
117
- b("span", F, h(g || i ? d(m)("dropdownButton.close").value : d(m)("dropdownButton.open").value), 1),
118
- r(e.$slots, "right-btn", {
119
- closed: B,
120
- closing: $,
121
- disabled: L,
122
- open: g,
123
- opening: i,
124
- placement: C
125
- }, () => [
126
- a[0] || (a[0] = b("svg", {
127
- class: "bb-dropdown-button__dropdown-chevron",
128
- viewBox: "0 0 24 24",
129
- xmlns: "http://www.w3.org/2000/svg"
130
- }, [
131
- b("path", {
132
- d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
133
- fill: "currentColor"
134
- })
135
- ], -1))
136
- ])
137
- ]),
138
- _: 2
139
- }, 1040)
140
- ])
141
- ]),
142
- prepend: n((o) => [
143
- r(e.$slots, "prepend", s(p(o)))
144
- ]),
145
- "item:prepend": n((o) => [
146
- r(e.$slots, "item:prepend", s(p(o)))
147
- ]),
148
- "item:append": n((o) => [
149
- r(e.$slots, "item:append", s(p(o)))
150
- ]),
151
- append: n((o) => [
152
- r(e.$slots, "append", s(p(o)))
153
- ]),
154
- _: 2
155
- }, [
156
- M(w.value, (o) => ({
157
- name: o.key,
158
- fn: n((i) => [
159
- r(e.$slots, o.key, s(p(i)))
160
- ])
161
- }))
162
- ]), 1032, ["id", "arrow-padding", "disabled", "eager", "items", "offset", "padding", "placement", "theme", "transition-duration", "width"])
163
- ], 16));
24
+ emits: ["shown", "hidden", "update:modelValue"],
25
+ setup(i) {
26
+ const n = i, p = u(() => {
27
+ let e = ["bb-dialog"];
28
+ return n.overlayClasses && (e = e.concat(n.overlayClasses)), e;
29
+ });
30
+ return (e, s) => (f(), m($, y(e.$props, {
31
+ "overlay-classes": p.value,
32
+ onHidden: s[0] || (s[0] = () => e.$emit("hidden")),
33
+ onShown: s[1] || (s[1] = () => e.$emit("shown")),
34
+ "onUpdate:modelValue": s[2] || (s[2] = (o) => e.$emit("update:modelValue", o))
35
+ }), {
36
+ close: l((o) => [
37
+ t(e.$slots, "close", a(r(o)))
38
+ ]),
39
+ default: l((o) => [
40
+ t(e.$slots, "default", a(r(o)))
41
+ ]),
42
+ description: l((o) => [
43
+ t(e.$slots, "description", a(r(o)))
44
+ ]),
45
+ footer: l((o) => [
46
+ t(e.$slots, "footer", a(r(o)))
47
+ ]),
48
+ header: l((o) => [
49
+ t(e.$slots, "header", a(r(o)))
50
+ ]),
51
+ title: l((o) => [
52
+ t(e.$slots, "title", a(r(o)))
53
+ ]),
54
+ _: 3
55
+ }, 16, ["overlay-classes"]));
164
56
  }
165
57
  });
166
58
  export {
167
- ne as default
59
+ g as default
168
60
  };