bitboss-ui 2.0.38 → 2.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +14 -31
  2. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +19 -50
  3. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +28 -244
  4. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +100 -0
  5. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +6 -28
  6. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +5 -15
  7. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +30 -31
  8. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +4 -14
  9. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +4 -14
  10. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +168 -52
  11. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +25 -45
  12. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +10 -35
  13. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +16 -49
  14. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +15 -34
  15. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +28 -247
  16. package/dist/components/BaseRating/BaseRating.vue.d.ts +15 -46
  17. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +348 -59
  18. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +19 -53
  19. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +15 -46
  20. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +32 -244
  21. package/dist/components/BaseTag/BaseTag.vue.d.ts +214 -50
  22. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +15 -44
  23. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +13 -30
  24. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +31 -45
  25. package/dist/components/BbAlert/BbAlert.vue.d.ts +26 -43
  26. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -28
  27. package/dist/components/BbBadge/BbBadge.vue.d.ts +13 -24
  28. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +51 -66
  29. package/dist/components/BbButton/BbButton.vue.d.ts +13 -31
  30. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +30 -65
  31. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +36 -279
  32. package/dist/components/BbChip/BbChip.vue.d.ts +15 -32
  33. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +13 -30
  34. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +124 -0
  35. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +24 -17
  36. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +36 -51
  37. package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -29
  38. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +169 -193
  39. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +190 -209
  40. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +32 -45
  41. package/dist/components/BbIcon/BbIcon.vue.d.ts +2 -24
  42. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +27 -50
  43. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +102 -54
  44. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +26 -48
  45. package/dist/components/BbPagination/BbPagination.vue.d.ts +35 -55
  46. package/dist/components/BbPopover/BbPopover.vue.d.ts +71 -93
  47. package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -27
  48. package/dist/components/BbRadio/BbRadio.vue.d.ts +30 -63
  49. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -281
  50. package/dist/components/BbRating/BbRating.vue.d.ts +23 -56
  51. package/dist/components/BbRatio/BbRatio.vue.d.ts +14 -31
  52. package/dist/components/BbSelect/BbSelect.vue.d.ts +16 -158
  53. package/dist/components/BbSlider/BbSlider.vue.d.ts +23 -54
  54. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +12 -34
  55. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -24
  56. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +30 -63
  57. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -278
  58. package/dist/components/BbTab/BbTab.vue.d.ts +92 -107
  59. package/dist/components/BbTable/BbTable.vue.d.ts +93 -134
  60. package/dist/components/BbTable/types.d.ts +0 -1
  61. package/dist/components/BbTag/BbTag.vue.d.ts +13 -46
  62. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +21 -40
  63. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +21 -40
  64. package/dist/components/BbToast/BbToast.vue.d.ts +3 -24
  65. package/dist/components/BbToast/BbToastMessage.vue.d.ts +5 -27
  66. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +15 -36
  67. package/dist/components/BbTree/BbTree.vue.d.ts +9 -29
  68. package/dist/components/ChipsBox.vue.d.ts +6 -16
  69. package/dist/components/CommaBox.vue.d.ts +6 -16
  70. package/dist/components/CommonFloating.vue.d.ts +14 -26
  71. package/dist/components/CommonInputInnerContainer.vue.d.ts +16 -15
  72. package/dist/components/CommonInputOuterContainer.vue.d.ts +12 -5
  73. package/dist/components/ErrorIcon.vue.d.ts +1 -1
  74. package/dist/components/ListBox.vue.d.ts +30 -47
  75. package/dist/components/OptionsContainer.vue.d.ts +30 -90
  76. package/dist/components/Transitions/Slide.vue.d.ts +12 -30
  77. package/dist/components/Transitions/SlideBack.vue.d.ts +12 -30
  78. package/dist/composables/useArray.d.ts +0 -1
  79. package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
  80. package/dist/composables/useConfirm.d.ts +0 -1
  81. package/dist/composables/useOptions.d.ts +0 -1
  82. package/dist/composables/useRoute.d.ts +0 -1
  83. package/dist/composables/useRouter.d.ts +0 -1
  84. package/dist/composables/useToast.d.ts +1 -2
  85. package/dist/composables/useWizard.d.ts +1 -2
  86. package/dist/index.d.ts +4 -1
  87. package/dist/index.js +142 -136
  88. package/dist/index100.js +129 -54
  89. package/dist/index102.js +66 -79
  90. package/dist/index104.js +85 -280
  91. package/dist/index106.js +108 -390
  92. package/dist/index108.js +280 -102
  93. package/dist/index11.js +1 -1
  94. package/dist/index110.js +391 -95
  95. package/dist/index112.js +55 -50
  96. package/dist/index114.js +106 -23
  97. package/dist/index116.js +101 -156
  98. package/dist/index118.js +22 -114
  99. package/dist/index12.js +6 -6
  100. package/dist/index120.js +143 -34
  101. package/dist/index122.js +116 -40
  102. package/dist/index124.js +36 -31
  103. package/dist/index125.js +44 -2
  104. package/dist/index126.js +44 -21
  105. package/dist/index127.js +47 -2
  106. package/dist/index128.js +32 -313
  107. package/dist/index129.js +2 -24
  108. package/dist/index13.js +1 -1
  109. package/dist/index130.js +21 -2
  110. package/dist/index131.js +2 -5
  111. package/dist/index132.js +315 -7
  112. package/dist/index133.js +24 -5
  113. package/dist/index134.js +2 -3
  114. package/dist/index135.js +5 -3
  115. package/dist/index136.js +9 -3
  116. package/dist/index137.js +6 -3
  117. package/dist/index138.js +1 -1
  118. package/dist/index139.js +1 -1
  119. package/dist/index140.js +1 -1
  120. package/dist/index141.js +1 -1
  121. package/dist/index142.js +1 -1
  122. package/dist/index143.js +1 -1
  123. package/dist/index144.js +1 -1
  124. package/dist/index145.js +1 -1
  125. package/dist/index146.js +1 -1
  126. package/dist/index147.js +1 -1
  127. package/dist/index148.js +1 -1
  128. package/dist/index149.js +1 -1
  129. package/dist/index15.js +122 -117
  130. package/dist/index150.js +1 -1
  131. package/dist/index151.js +1 -1
  132. package/dist/index152.js +1 -1
  133. package/dist/index153.js +1 -1
  134. package/dist/index154.js +1 -1
  135. package/dist/index155.js +1 -1
  136. package/dist/index156.js +1 -1
  137. package/dist/index157.js +1 -1
  138. package/dist/index158.js +1 -1
  139. package/dist/index159.js +1 -1
  140. package/dist/index160.js +2 -2
  141. package/dist/{index177.js → index161.js} +1 -1
  142. package/dist/index162.js +2 -2
  143. package/dist/{index166.js → index163.js} +1 -1
  144. package/dist/index165.js +2 -2
  145. package/dist/index167.js +2 -2
  146. package/dist/index169.js +1 -1
  147. package/dist/index17.js +119 -118
  148. package/dist/index170.js +2 -2
  149. package/dist/{index168.js → index171.js} +1 -1
  150. package/dist/index172.js +3 -2
  151. package/dist/index173.js +1 -1
  152. package/dist/index174.js +1 -1
  153. package/dist/index175.js +1 -1
  154. package/dist/index176.js +2 -2
  155. package/dist/index178.js +2 -3
  156. package/dist/index179.js +1 -1
  157. package/dist/index180.js +1 -1
  158. package/dist/index181.js +1 -1
  159. package/dist/index182.js +1 -1
  160. package/dist/index183.js +1 -1
  161. package/dist/index184.js +2 -2
  162. package/dist/index185.js +5 -0
  163. package/dist/index186.js +2 -2
  164. package/dist/index187.js +5 -0
  165. package/dist/index19.js +121 -211
  166. package/dist/index190.js +1 -1
  167. package/dist/index192.js +1 -1
  168. package/dist/index194.js +1 -1
  169. package/dist/index195.js +1 -1
  170. package/dist/index196.js +1 -1
  171. package/dist/index197.js +1 -1
  172. package/dist/index198.js +3 -116
  173. package/dist/index199.js +3 -2
  174. package/dist/index200.js +3 -3
  175. package/dist/index201.js +3 -35
  176. package/dist/index202.js +3 -6
  177. package/dist/index203.js +3 -7
  178. package/dist/index204.js +2 -8
  179. package/dist/index205.js +112 -154
  180. package/dist/index206.js +3 -84
  181. package/dist/index207.js +160 -0
  182. package/dist/index208.js +84 -2
  183. package/dist/index21.js +197 -279
  184. package/dist/index210.js +2 -2
  185. package/dist/index211.js +2 -3
  186. package/dist/index212.js +3 -126
  187. package/dist/index213.js +4 -5
  188. package/dist/index214.js +3 -123
  189. package/dist/index215.js +40 -18
  190. package/dist/index216.js +6 -16
  191. package/dist/index217.js +7 -16
  192. package/dist/index218.js +8 -2
  193. package/dist/index219.js +281 -2
  194. package/dist/index220.js +14 -172
  195. package/dist/index221.js +16 -43
  196. package/dist/index222.js +21 -0
  197. package/dist/index223.js +19 -13
  198. package/dist/index224.js +27 -5
  199. package/dist/index225.js +2 -369
  200. package/dist/index226.js +249 -2
  201. package/dist/index227.js +50 -16
  202. package/dist/index228.js +40 -102
  203. package/dist/index229.js +7 -0
  204. package/dist/index23.js +287 -245
  205. package/dist/index230.js +44 -95
  206. package/dist/index231.js +128 -0
  207. package/dist/index232.js +125 -2
  208. package/dist/index233.js +2 -3
  209. package/dist/index234.js +19 -18
  210. package/dist/index235.js +52 -26
  211. package/dist/index237.js +13 -52
  212. package/dist/index238.js +5 -44
  213. package/dist/index239.js +369 -5
  214. package/dist/index240.js +2 -49
  215. package/dist/index241.js +2 -10
  216. package/dist/index242.js +17 -2
  217. package/dist/index243.js +104 -429
  218. package/dist/index245.js +100 -4
  219. package/dist/index247.js +4 -3
  220. package/dist/index248.js +9 -11
  221. package/dist/index249.js +3 -9
  222. package/dist/index25.js +249 -120
  223. package/dist/index250.js +6 -9
  224. package/dist/index251.js +15 -16
  225. package/dist/index252.js +224 -3
  226. package/dist/index253.js +3 -9
  227. package/dist/index254.js +12 -23
  228. package/dist/index255.js +9 -6
  229. package/dist/index256.js +8 -15
  230. package/dist/index257.js +17 -9
  231. package/dist/index258.js +26 -222
  232. package/dist/index259.js +3 -281
  233. package/dist/index260.js +9 -6
  234. package/dist/index261.js +23 -2
  235. package/dist/index262.js +9 -2
  236. package/dist/index263.js +4 -2
  237. package/dist/index264.js +6 -2
  238. package/dist/index265.js +2 -2
  239. package/dist/index266.js +2 -126
  240. package/dist/index267.js +2 -3
  241. package/dist/index268.js +4 -0
  242. package/dist/index269.js +2 -7
  243. package/dist/index27.js +119 -142
  244. package/dist/index270.js +2 -22
  245. package/dist/index271.js +4 -0
  246. package/dist/index272.js +2 -436
  247. package/dist/index273.js +2 -127
  248. package/dist/index274.js +2 -3
  249. package/dist/index275.js +22 -3
  250. package/dist/index277.js +7 -28
  251. package/dist/index278.js +431 -2
  252. package/dist/index279.js +89 -2
  253. package/dist/index280.js +2 -2
  254. package/dist/index281.js +126 -2
  255. package/dist/index282.js +176 -2
  256. package/dist/index283.js +3 -2
  257. package/dist/{index284.js → index285.js} +6 -6
  258. package/dist/index287.js +199 -65
  259. package/dist/index288.js +436 -5
  260. package/dist/index289.js +124 -12
  261. package/dist/index29.js +139 -84
  262. package/dist/index290.js +3 -79
  263. package/dist/{index193.js → index291.js} +1 -1
  264. package/dist/index292.js +211 -4
  265. package/dist/index293.js +66 -4
  266. package/dist/index294.js +2 -59
  267. package/dist/index295.js +4 -11
  268. package/dist/index296.js +4 -35
  269. package/dist/index297.js +57 -45
  270. package/dist/index298.js +5 -7
  271. package/dist/index299.js +4 -18
  272. package/dist/index300.js +7 -6
  273. package/dist/index301.js +79 -2
  274. package/dist/index303.js +6 -0
  275. package/dist/index304.js +6 -420
  276. package/dist/index305.js +18 -46
  277. package/dist/index306.js +7 -2
  278. package/dist/index307.js +37 -0
  279. package/dist/index308.js +13 -0
  280. package/dist/index309.js +49 -0
  281. package/dist/index31.js +85 -115
  282. package/dist/index310.js +4 -0
  283. package/dist/{index302.js → index311.js} +2 -2
  284. package/dist/index313.js +426 -0
  285. package/dist/index314.js +49 -0
  286. package/dist/index315.js +4 -0
  287. package/dist/index33.js +111 -113
  288. package/dist/index35.js +114 -366
  289. package/dist/index37.js +361 -284
  290. package/dist/index39.js +288 -107
  291. package/dist/index41.js +114 -121
  292. package/dist/index43.js +113 -201
  293. package/dist/index45.js +182 -92
  294. package/dist/index47.js +110 -78
  295. package/dist/index49.js +89 -54
  296. package/dist/index51.js +54 -78
  297. package/dist/index53.js +83 -61
  298. package/dist/index55.js +59 -40
  299. package/dist/index57.js +42 -55
  300. package/dist/index59.js +53 -106
  301. package/dist/index6.js +1 -1
  302. package/dist/index61.js +104 -89
  303. package/dist/index63.js +61 -88
  304. package/dist/index65.js +119 -77
  305. package/dist/index67.js +56 -45
  306. package/dist/index69.js +79 -54
  307. package/dist/index7.js +2 -2
  308. package/dist/index71.js +88 -268
  309. package/dist/index73.js +49 -148
  310. package/dist/index75.js +259 -204
  311. package/dist/index77.js +152 -39
  312. package/dist/index79.js +224 -0
  313. package/dist/index8.js +6 -14
  314. package/dist/index81.js +46 -0
  315. package/dist/index82.js +116 -166
  316. package/dist/index84.js +222 -171
  317. package/dist/index86.js +171 -25
  318. package/dist/index88.js +177 -84
  319. package/dist/index9.js +1 -1
  320. package/dist/index90.js +27 -123
  321. package/dist/index92.js +47 -51
  322. package/dist/index94.js +120 -15
  323. package/dist/index96.js +55 -132
  324. package/dist/index98.js +15 -105
  325. package/dist/style.css +1 -1
  326. package/dist/types/CommonProps.d.ts +0 -1
  327. package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -1
  328. package/dist/types/ExtractGenericFromRef.d.ts +0 -1
  329. package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
  330. package/dist/utilities/functions/deburr.d.ts +1 -1
  331. package/dist/utilities/functions/flattenTree.d.ts +1 -1
  332. package/dist/utilities/functions/groupBy.d.ts +1 -1
  333. package/dist/utilities/functions/indexBy.d.ts +1 -1
  334. package/dist/utilities/functions/isHex.d.ts +1 -0
  335. package/dist/utilities/functions/mapValues.d.ts +1 -1
  336. package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
  337. package/dist/utilities/functions/replace.d.ts +1 -1
  338. package/dist/utilities/functions/retry.d.ts +1 -1
  339. package/dist/utilities/functions/throttle.d.ts +2 -2
  340. package/dist/utilities/functions/tryTo.d.ts +0 -1
  341. package/package.json +29 -29
  342. package/dist/index121.js +0 -46
  343. package/dist/index123.js +0 -49
  344. package/dist/index191.js +0 -5
  345. package/dist/index209.js +0 -6
  346. package/dist/index236.js +0 -251
  347. package/dist/index244.js +0 -91
  348. package/dist/index246.js +0 -202
  349. package/dist/index276.js +0 -213
  350. package/dist/index286.js +0 -4
  351. package/dist/index78.js +0 -129
  352. package/dist/index80.js +0 -238
package/dist/index118.js CHANGED
@@ -1,120 +1,28 @@
1
- import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index288.js";
3
- const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
- __name: "BbTree",
1
+ import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
+ import { state as k, useToast as C } from "./index11.js";
3
+ import B from "./index293.js";
4
+ const N = /* @__PURE__ */ s({
5
+ __name: "BbToast",
5
6
  props: {
6
- items: { default: () => [] },
7
- parent: {},
8
- identifier: { default: "id" },
9
- depth: { default: 0 },
10
- expandable: { type: [Boolean, Function] }
7
+ placement: { default: "bottom" }
11
8
  },
12
- setup(c) {
13
- const r = c, u = (n) => typeof n.open > "u" ? !0 : n.open, x = g(() => {
14
- let n = 0;
15
- return r.items.map((d, l) => {
16
- const e = u(d), p = d.expandable ?? r.expandable, a = n + 1;
17
- n = n + T([d], "children").length;
18
- let o = !1;
19
- return typeof p < "u" && (typeof p == "function" ? o = p(d, r.depth, r.parent) : o = p), {
20
- children: d.children,
21
- depth: r.depth,
22
- expandable: o,
23
- identifier: d[r.identifier],
24
- offset: a,
25
- index: l,
26
- open: e,
27
- original: d,
28
- parent: r.parent
29
- };
30
- });
31
- });
32
- return (n, d) => {
33
- const l = y("BbTree", !0);
34
- return f(!0), i(k, null, h(x.value, (e) => (f(), i("div", {
35
- key: e.identifier,
36
- class: b(["bb-tree", {
37
- [`bb-tree--depth-${e.depth}`]: !0,
38
- "bb-tree--open": e.open
39
- }])
9
+ setup(T) {
10
+ const { dismiss: n } = C();
11
+ return (a, h) => (e(), o(l, { to: "body" }, [
12
+ c("div", {
13
+ class: m(["bb-toast", { [`bb-toast--${a.placement}`]: !0 }])
40
14
  }, [
41
- s("div", w, [
42
- s("div", E, [
43
- n.$slots[e.identifier] ? t(n.$slots, e.identifier, {
44
- key: 0,
45
- depth: e.depth,
46
- expandable: e.expandable,
47
- identifier: e.identifier,
48
- index: e.index,
49
- item: e.original,
50
- offset: e.offset,
51
- open: e.open,
52
- parent: e.parent
53
- }) : n.$slots[e.depth] ? t(n.$slots, e.depth, {
54
- key: 1,
55
- depth: e.depth,
56
- expandable: e.expandable,
57
- identifier: e.identifier,
58
- index: e.index,
59
- item: e.original,
60
- offset: e.offset,
61
- open: e.open,
62
- parent: e.parent
63
- }) : t(n.$slots, "default", {
64
- key: 2,
65
- depth: e.depth,
66
- expandable: e.expandable,
67
- identifier: e.identifier,
68
- index: e.index,
69
- item: e.original,
70
- offset: e.offset,
71
- open: e.open,
72
- parent: e.parent
73
- })
74
- ])
75
- ]),
76
- s("div", {
77
- class: b(`bb-tree--depth-${e.depth}-children`)
78
- }, [
79
- t(n.$slots, `${e.identifier}-children`, {
80
- depth: e.depth,
81
- expandable: e.expandable,
82
- identifier: e.identifier,
83
- index: e.index,
84
- item: e.original,
85
- offset: e.offset,
86
- open: e.open,
87
- parent: e.parent
88
- }, () => [
89
- t(n.$slots, `${e.depth}-children`, {
90
- depth: e.depth,
91
- expandable: e.expandable,
92
- identifier: e.identifier,
93
- index: e.index,
94
- item: e.original,
95
- offset: e.offset,
96
- open: e.open,
97
- parent: e.parent
98
- }, () => [
99
- v(l, {
100
- depth: e.depth + 1,
101
- expandable: n.expandable,
102
- identifier: r.identifier,
103
- items: e.children,
104
- parent: e
105
- }, B({ _: 2 }, [
106
- h(n.$slots, (p, a) => ({
107
- name: a,
108
- fn: _((o) => [
109
- t(n.$slots, a, C({ ref_for: !0 }, o))
110
- ])
111
- }))
112
- ]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
113
- ])
114
- ])
115
- ], 2)
116
- ], 2))), 128);
117
- };
15
+ i(p, { name: "toast" }, {
16
+ default: u(() => [
17
+ (e(!0), f(d, null, _(r(k).stack, (t) => (e(), o(B, b({
18
+ key: t.id,
19
+ ref_for: !0
20
+ }, t, { "onClick:close": r(n) }), null, 16, ["onClick:close"]))), 128))
21
+ ]),
22
+ _: 1
23
+ })
24
+ ], 2)
25
+ ]));
118
26
  }
119
27
  });
120
28
  export {
package/dist/index12.js CHANGED
@@ -1,10 +1,10 @@
1
- import { copy as D } from "./index129.js";
1
+ import { copy as D } from "./index133.js";
2
2
  import { reactive as G, watch as v, toValue as H, computed as g, provide as Q } from "vue";
3
- import { isNotNil as a } from "./index130.js";
4
- import { mapValues as X } from "./index131.js";
5
- import { useRoute as Z } from "./index132.js";
6
- import { useRouter as _ } from "./index133.js";
7
- import { useStepper as ee } from "./index128.js";
3
+ import { isNotNil as a } from "./index134.js";
4
+ import { mapValues as X } from "./index135.js";
5
+ import { useRoute as Z } from "./index136.js";
6
+ import { useRouter as _ } from "./index137.js";
7
+ import { useStepper as ee } from "./index132.js";
8
8
  const te = Symbol(), x = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, O = (i) => {
9
9
  var r, u;
10
10
  const e = i.match(x);
package/dist/index120.js CHANGED
@@ -1,42 +1,151 @@
1
- import { defineComponent as c, openBlock as l, createElementBlock as o, createElementVNode as t, renderSlot as r, createTextVNode as i, toDisplayString as p, withModifiers as b, createCommentVNode as _ } from "vue";
2
- const d = { class: "bb-chip" }, m = { class: "bb-chip__content" }, h = ["aria-label"], u = /* @__PURE__ */ t("svg", {
3
- viewBox: "0 0 24 24",
4
- xmlns: "http://www.w3.org/2000/svg"
5
- }, [
6
- /* @__PURE__ */ t("path", {
7
- d: "M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z",
8
- fill: "currentColor"
9
- })
10
- ], -1), f = [
11
- u
12
- ], C = /* @__PURE__ */ c({
13
- __name: "BbChip",
1
+ import { defineComponent as z, defineAsyncComponent as A, ref as a, watch as I, computed as R, openBlock as v, createElementBlock as S, mergeProps as U, createElementVNode as c, renderSlot as E, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as D, withCtx as L, createCommentVNode as M } from "vue";
2
+ import { useFloating as q, arrow as G } from "./index231.js";
3
+ import { useId as J } from "./index8.js";
4
+ import { wait as P } from "./index131.js";
5
+ import K from "./index13.js";
6
+ /* empty css */
7
+ import { throttle as b } from "./index214.js";
8
+ import { waitFor as Q } from "./index216.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index239.js";
10
+ const ue = /* @__PURE__ */ z({
11
+ __name: "BbTooltip",
14
12
  props: {
15
- text: {},
16
- clearable: { type: Boolean, default: !0 },
17
- clearableLabel: { default: "Elimina" }
13
+ arrowPadding: { default: 10 },
14
+ block: { type: Boolean },
15
+ disabled: { type: Boolean },
16
+ eager: { type: Boolean },
17
+ id: {},
18
+ offset: {},
19
+ padding: { default: 10 },
20
+ placement: { default: "top" },
21
+ showClose: { type: Boolean, default: !0 },
22
+ theme: { default: "default" },
23
+ transitionDuration: { default: 250 }
18
24
  },
19
- emits: ["click:clear"],
20
- setup(L, { emit: a }) {
21
- const n = a, s = (e) => {
22
- n("click:clear", e);
25
+ setup(F) {
26
+ const O = A(
27
+ () => import("./index259.js")
28
+ ), t = F, w = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), _ = a(), { placement: g, middlewareData: $ } = q(s, d, {
29
+ placement: t.placement,
30
+ whileElementsMounted: X,
31
+ middleware: [
32
+ Y(),
33
+ Z({ padding: t.padding }),
34
+ G({
35
+ element: _,
36
+ padding: t.arrowPadding
37
+ }),
38
+ x()
39
+ ]
40
+ });
41
+ let h = () => {
23
42
  };
24
- return (e, k) => (l(), o("span", d, [
25
- t("span", m, [
26
- r(e.$slots, "default", {}, () => [
27
- i(p(e.text), 1)
28
- ])
29
- ]),
30
- e.clearable ? (l(), o("button", {
43
+ const k = a(!0), n = a(!1), r = a(!1), l = a(!1), p = a(!0), y = () => {
44
+ r.value || n.value || t.disabled || (N(), document.addEventListener("mouseover", C, { passive: !0 }), document.addEventListener("keydown", B, { passive: !0 }));
45
+ }, T = y, C = b((e) => {
46
+ const o = e.target;
47
+ if (o && o instanceof HTMLElement) {
48
+ let m = !0;
49
+ s.value && s.value.contains(o) && (m = !1), d.value && d.value.contains(o) && (m = !1), m && i();
50
+ }
51
+ }, t.transitionDuration), B = (e) => {
52
+ r.value && e.key === "Escape" && i();
53
+ }, H = () => {
54
+ k.value = !1, i();
55
+ }, f = a(!1), N = b(async () => {
56
+ k.value && (f.value = !0, p.value = !1, l.value = !1, n.value = !0, await P(50), r.value = !0, n.value = !1, h = I(
57
+ () => {
58
+ var e;
59
+ return (e = $.value.hide) == null ? void 0 : e.referenceHidden;
60
+ },
61
+ async (e) => {
62
+ !l.value && !p.value && e && await i();
63
+ }
64
+ ));
65
+ }, t.transitionDuration), i = b(async () => {
66
+ await Q(() => !n.value), document.removeEventListener("mouseover", C), document.removeEventListener("keydown", B), r.value = !1, n.value = !1, l.value = !0, await P(t.transitionDuration), l.value = !1, p.value = !0, h();
67
+ }, t.transitionDuration), V = R(() => ({
68
+ class: {
69
+ "bb-tooltip--block": t.block,
70
+ [`bb-tooltip--theme-${t.theme}`]: t.theme
71
+ }
72
+ }));
73
+ return (e, o) => (v(), S("span", U({ class: "bb-tooltip" }, V.value), [
74
+ c("span", {
75
+ ref_key: "wrapper",
76
+ ref: s,
77
+ class: "bb-tooltip__wrapper"
78
+ }, [
79
+ E(e.$slots, "activator", W(j({
80
+ props: {
81
+ ...f.value ? { "aria-describedby": w } : {},
82
+ onMouseenter: y,
83
+ onFocus: u(T),
84
+ onBlur: u(i),
85
+ disabled: e.disabled
86
+ },
87
+ closed: p.value,
88
+ closing: l.value,
89
+ disabled: e.disabled,
90
+ open: r.value,
91
+ opening: n.value,
92
+ placement: u(g)
93
+ })))
94
+ ], 512),
95
+ f.value || e.eager ? (v(), D(u(O), {
31
96
  key: 0,
32
- "aria-label": e.clearableLabel,
33
- class: "bb-chip__clear-button",
34
- type: "button",
35
- onClick: b(s, ["stop", "prevent"])
36
- }, f, 8, h)) : _("", !0)
37
- ]));
97
+ "arrow-padding": e.arrowPadding,
98
+ "base-class": "bb-tooltip",
99
+ "container-attributes": {
100
+ id: w
101
+ },
102
+ eager: e.eager,
103
+ offset: e.offset,
104
+ open: r.value,
105
+ padding: e.padding,
106
+ placement: u(g),
107
+ theme: e.theme,
108
+ "transition-duration": e.transitionDuration,
109
+ wrapper: s.value
110
+ }, {
111
+ default: L(() => [
112
+ c("span", {
113
+ ref_key: "content",
114
+ ref: d,
115
+ class: "bb-tooltip__content"
116
+ }, [
117
+ e.showClose ? (v(), D(K, {
118
+ key: 0,
119
+ "aria-hidden": "true",
120
+ "aria-label": "Chiudi",
121
+ class: "bb-tooltip__close",
122
+ tabindex: "-1",
123
+ onClick: H
124
+ }, {
125
+ default: L(() => o[0] || (o[0] = [
126
+ c("svg", {
127
+ fill: "none",
128
+ viewBox: "0 0 24 24",
129
+ xmlns: "http://www.w3.org/2000/svg"
130
+ }, [
131
+ c("path", {
132
+ d: "M23 23L1 1M23 1L1 23",
133
+ stroke: "currentColor",
134
+ "stroke-linecap": "round",
135
+ "stroke-width": "2"
136
+ })
137
+ ], -1)
138
+ ])),
139
+ _: 1
140
+ })) : M("", !0),
141
+ E(e.$slots, "default")
142
+ ], 512)
143
+ ]),
144
+ _: 3
145
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : M("", !0)
146
+ ], 16));
38
147
  }
39
148
  });
40
149
  export {
41
- C as default
150
+ ue as default
42
151
  };
package/dist/index122.js CHANGED
@@ -1,46 +1,122 @@
1
- import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as z, openBlock as _, createElementBlock as b, mergeProps as h } from "vue";
2
- import { isCssColor as w } from "./index208.js";
3
- const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
- __name: "BbIcon",
1
+ import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
+ import { flattenTree as T } from "./index298.js";
3
+ const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
+ __name: "BbTree",
5
5
  props: {
6
- size: { default: "md" },
7
- color: {},
8
- type: {}
6
+ items: { default: () => [] },
7
+ parent: {},
8
+ identifier: { default: "id" },
9
+ depth: { default: 0 },
10
+ expandable: { type: [Boolean, Function] }
9
11
  },
10
- setup(p) {
11
- var i, r;
12
- const e = p;
13
- let t;
14
- !!((r = (i = d()) == null ? void 0 : i.proxy) != null && r.$nuxt) ? process.client && (t = useNuxtApp().$icons) : t = x("icons");
15
- const u = {
16
- xs: 12,
17
- sm: 16,
18
- md: 24,
19
- lg: 28,
20
- xl: 36,
21
- xxl: 40
22
- }, f = l(() => {
23
- const s = {
24
- "bb-icon": !0
25
- };
26
- let c = { "--size": l(() => {
27
- let o;
28
- return typeof e.size == "string" ? o = u[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
29
- }).value };
30
- return e.color && (w(e.color) ? c.color = e.color : s[`bb-icon--${e.color}`] = !0), {
31
- class: s,
32
- style: c
33
- };
34
- }), n = y(null);
35
- return z(async () => {
36
- if (t) {
37
- if (typeof t[e.type] > "u")
38
- throw new Error(`Icon "${e.type}" does not exist.`);
39
- n.value = await t[e.type]();
40
- }
41
- }), (s, a) => (_(), b("i", h(f.value, { innerHTML: n.value }), null, 16, g));
12
+ setup(c) {
13
+ const r = c, u = (n) => typeof n.open > "u" ? !0 : n.open, x = g(() => {
14
+ let n = 0;
15
+ return r.items.map((d, l) => {
16
+ const e = u(d), p = d.expandable ?? r.expandable, a = n + 1;
17
+ n = n + T([d], "children").length;
18
+ let o = !1;
19
+ return typeof p < "u" && (typeof p == "function" ? o = p(d, r.depth, r.parent) : o = p), {
20
+ children: d.children,
21
+ depth: r.depth,
22
+ expandable: o,
23
+ identifier: d[r.identifier],
24
+ offset: a,
25
+ index: l,
26
+ open: e,
27
+ original: d,
28
+ parent: r.parent
29
+ };
30
+ });
31
+ });
32
+ return (n, d) => {
33
+ const l = y("BbTree", !0);
34
+ return f(!0), i(k, null, h(x.value, (e) => (f(), i("div", {
35
+ key: e.identifier,
36
+ class: b(["bb-tree", {
37
+ [`bb-tree--depth-${e.depth}`]: !0,
38
+ "bb-tree--open": e.open
39
+ }])
40
+ }, [
41
+ s("div", w, [
42
+ s("div", E, [
43
+ n.$slots[e.identifier] ? t(n.$slots, e.identifier, {
44
+ key: 0,
45
+ depth: e.depth,
46
+ expandable: e.expandable,
47
+ identifier: e.identifier,
48
+ index: e.index,
49
+ item: e.original,
50
+ offset: e.offset,
51
+ open: e.open,
52
+ parent: e.parent
53
+ }) : n.$slots[e.depth] ? t(n.$slots, e.depth, {
54
+ key: 1,
55
+ depth: e.depth,
56
+ expandable: e.expandable,
57
+ identifier: e.identifier,
58
+ index: e.index,
59
+ item: e.original,
60
+ offset: e.offset,
61
+ open: e.open,
62
+ parent: e.parent
63
+ }) : t(n.$slots, "default", {
64
+ key: 2,
65
+ depth: e.depth,
66
+ expandable: e.expandable,
67
+ identifier: e.identifier,
68
+ index: e.index,
69
+ item: e.original,
70
+ offset: e.offset,
71
+ open: e.open,
72
+ parent: e.parent
73
+ })
74
+ ])
75
+ ]),
76
+ s("div", {
77
+ class: b(`bb-tree--depth-${e.depth}-children`)
78
+ }, [
79
+ t(n.$slots, `${e.identifier}-children`, {
80
+ depth: e.depth,
81
+ expandable: e.expandable,
82
+ identifier: e.identifier,
83
+ index: e.index,
84
+ item: e.original,
85
+ offset: e.offset,
86
+ open: e.open,
87
+ parent: e.parent
88
+ }, () => [
89
+ t(n.$slots, `${e.depth}-children`, {
90
+ depth: e.depth,
91
+ expandable: e.expandable,
92
+ identifier: e.identifier,
93
+ index: e.index,
94
+ item: e.original,
95
+ offset: e.offset,
96
+ open: e.open,
97
+ parent: e.parent
98
+ }, () => [
99
+ v(l, {
100
+ depth: e.depth + 1,
101
+ expandable: n.expandable,
102
+ identifier: r.identifier,
103
+ items: e.children,
104
+ parent: e
105
+ }, B({ _: 2 }, [
106
+ h(n.$slots, (p, a) => ({
107
+ name: a,
108
+ fn: _((o) => [
109
+ t(n.$slots, a, C({ ref_for: !0 }, o))
110
+ ])
111
+ }))
112
+ ]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
113
+ ])
114
+ ])
115
+ ], 2)
116
+ ], 2))), 128);
117
+ };
42
118
  }
43
119
  });
44
120
  export {
45
- $ as default
121
+ N as default
46
122
  };
package/dist/index124.js CHANGED
@@ -1,37 +1,42 @@
1
- import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index208.js";
3
- const y = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), d = [
4
- y
5
- ], g = /* @__PURE__ */ p({
6
- __name: "BbSpinner",
1
+ import { defineComponent as c, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as i, createTextVNode as p, toDisplayString as b, withModifiers as d, createCommentVNode as m } from "vue";
2
+ const u = { class: "bb-chip" }, _ = { class: "bb-chip__content" }, f = ["aria-label"], k = /* @__PURE__ */ c({
3
+ __name: "BbChip",
7
4
  props: {
8
- color: {},
9
- size: { default: "md" }
5
+ text: {},
6
+ clearable: { type: Boolean, default: !0 },
7
+ clearableLabel: { default: "Elimina" }
10
8
  },
11
- setup(s) {
12
- const c = s, n = {
13
- xs: 12,
14
- sm: 16,
15
- md: 24,
16
- lg: 28,
17
- xl: 36,
18
- xxl: 40
19
- }, o = l(() => {
20
- const e = {
21
- "bb-spinner": !0
22
- };
23
- let i = { "--size": l(() => {
24
- let r;
25
- return typeof c.size == "string" ? r = n[c.size] ?? parseInt(c.size, 10) : r = c.size, r + "px";
26
- }).value };
27
- return c.color && (u(c.color) ? i.color = c.color : e[`bb-spinner--${c.color}`] = !0), {
28
- class: e,
29
- style: i
30
- };
31
- });
32
- return (e, t) => (_(), a("span", b(x(o.value)), d, 16));
9
+ emits: ["click:clear"],
10
+ setup(h, { emit: r }) {
11
+ const n = r, s = (e) => {
12
+ n("click:clear", e);
13
+ };
14
+ return (e, l) => (o(), a("span", u, [
15
+ t("span", _, [
16
+ i(e.$slots, "default", {}, () => [
17
+ p(b(e.text), 1)
18
+ ])
19
+ ]),
20
+ e.clearable ? (o(), a("button", {
21
+ key: 0,
22
+ "aria-label": e.clearableLabel,
23
+ class: "bb-chip__clear-button",
24
+ type: "button",
25
+ onClick: d(s, ["stop", "prevent"])
26
+ }, l[0] || (l[0] = [
27
+ t("svg", {
28
+ viewBox: "0 0 24 24",
29
+ xmlns: "http://www.w3.org/2000/svg"
30
+ }, [
31
+ t("path", {
32
+ d: "M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z",
33
+ fill: "currentColor"
34
+ })
35
+ ], -1)
36
+ ]), 8, f)) : m("", !0)
37
+ ]));
33
38
  }
34
39
  });
35
40
  export {
36
- g as default
41
+ k as default
37
42
  };
package/dist/index125.js CHANGED
@@ -1,4 +1,46 @@
1
- const r = (e) => typeof e > "u" || e === null;
1
+ import { defineComponent as d, ref as n, watch as m, computed as b, openBlock as s, createBlock as r, resolveDynamicComponent as u, normalizeProps as f, guardReactiveProps as v, withCtx as i, normalizeStyle as y, renderSlot as g, createCommentVNode as V } from "vue";
2
+ const C = /* @__PURE__ */ d({
3
+ __name: "BbCollapsible",
4
+ props: {
5
+ eager: { type: Boolean },
6
+ transitionDuration: { default: 250 },
7
+ modelValue: { type: Boolean },
8
+ tag: { default: "div" }
9
+ },
10
+ setup(c) {
11
+ const l = c, a = n(l.modelValue), t = n(a.value), p = m(
12
+ () => l.modelValue,
13
+ (e) => {
14
+ e && !t.value && (t.value = !0);
15
+ }
16
+ );
17
+ a.value && p();
18
+ const o = b(() => ({
19
+ class: {
20
+ "bb-collapsible": !0,
21
+ "bb-collapsible--open": l.modelValue,
22
+ "bb-collapsible--closed": !l.modelValue
23
+ },
24
+ style: {
25
+ transitionDuration: l.transitionDuration + "ms"
26
+ }
27
+ }));
28
+ return (e, _) => (s(), r(u(e.tag), f(v(o.value)), {
29
+ default: i(() => [
30
+ (s(), r(u(e.tag), {
31
+ class: "bb-collapsible__content",
32
+ style: y(o.value.style)
33
+ }, {
34
+ default: i(() => [
35
+ e.eager || t.value ? g(e.$slots, "default", { key: 0 }) : V("", !0)
36
+ ]),
37
+ _: 3
38
+ }, 8, ["style"]))
39
+ ]),
40
+ _: 3
41
+ }, 16));
42
+ }
43
+ });
2
44
  export {
3
- r as isNil
45
+ C as default
4
46
  };