bitboss-ui 2.0.96 → 2.0.98

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 (244) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -2
  2. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +13 -1
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +65 -19
  4. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -29
  5. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  6. package/dist/composables/useBbConfig.d.ts +3 -0
  7. package/dist/composables/useConfirm.d.ts +67 -32
  8. package/dist/composables/useLocale.d.ts +5 -0
  9. package/dist/i18n/en.d.ts +8 -0
  10. package/dist/i18n/index.d.ts +3 -0
  11. package/dist/i18n/it.d.ts +8 -0
  12. package/dist/index100.js +5 -5
  13. package/dist/index109.js +4 -4
  14. package/dist/index11.js +1 -1
  15. package/dist/index111.js +7 -7
  16. package/dist/index119.js +2 -2
  17. package/dist/index12.js +6 -6
  18. package/dist/index121.js +6 -6
  19. package/dist/index123.js +1 -1
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index129.js +1 -1
  23. package/dist/index13.js +1 -1
  24. package/dist/index130.js +2 -2
  25. package/dist/index131.js +1 -1
  26. package/dist/index132.js +340 -2
  27. package/dist/index133.js +22 -337
  28. package/dist/index134.js +2 -25
  29. package/dist/index135.js +5 -2
  30. package/dist/index136.js +9 -5
  31. package/dist/index137.js +5 -8
  32. package/dist/index138.js +3 -6
  33. package/dist/index139.js +1 -1
  34. package/dist/index140.js +1 -1
  35. package/dist/index141.js +1 -1
  36. package/dist/index142.js +1 -1
  37. package/dist/index143.js +1 -1
  38. package/dist/index144.js +1 -1
  39. package/dist/index145.js +1 -1
  40. package/dist/index146.js +1 -1
  41. package/dist/index147.js +1 -1
  42. package/dist/index148.js +1 -1
  43. package/dist/index149.js +1 -1
  44. package/dist/index15.js +4 -4
  45. package/dist/index150.js +1 -1
  46. package/dist/index151.js +1 -1
  47. package/dist/index152.js +1 -1
  48. package/dist/index153.js +1 -1
  49. package/dist/index154.js +1 -1
  50. package/dist/index155.js +1 -1
  51. package/dist/index156.js +1 -1
  52. package/dist/index157.js +1 -1
  53. package/dist/index158.js +1 -1
  54. package/dist/index159.js +1 -1
  55. package/dist/index160.js +1 -1
  56. package/dist/index161.js +1 -1
  57. package/dist/index162.js +1 -1
  58. package/dist/index163.js +1 -1
  59. package/dist/index164.js +1 -1
  60. package/dist/index165.js +2 -2
  61. package/dist/index169.js +5 -0
  62. package/dist/index17.js +3 -3
  63. package/dist/index170.js +1 -1
  64. package/dist/index171.js +1 -1
  65. package/dist/index172.js +1 -1
  66. package/dist/index173.js +1 -1
  67. package/dist/index174.js +1 -1
  68. package/dist/index175.js +1 -1
  69. package/dist/index176.js +2 -2
  70. package/dist/index178.js +4 -0
  71. package/dist/index179.js +3 -2
  72. package/dist/index180.js +1 -1
  73. package/dist/index181.js +1 -1
  74. package/dist/index182.js +1 -1
  75. package/dist/index183.js +1 -1
  76. package/dist/index184.js +1 -1
  77. package/dist/index185.js +1 -1
  78. package/dist/index186.js +1 -1
  79. package/dist/index187.js +1 -1
  80. package/dist/index188.js +2 -3
  81. package/dist/index189.js +3 -2
  82. package/dist/index19.js +49 -48
  83. package/dist/index190.js +1 -1
  84. package/dist/index191.js +1 -1
  85. package/dist/{index166.js → index195.js} +1 -1
  86. package/dist/index196.js +1 -1
  87. package/dist/index197.js +1 -1
  88. package/dist/index198.js +1 -1
  89. package/dist/index199.js +1 -1
  90. package/dist/index200.js +1 -1
  91. package/dist/index201.js +1 -1
  92. package/dist/index202.js +1 -1
  93. package/dist/index203.js +1 -1
  94. package/dist/index204.js +1 -1
  95. package/dist/index205.js +81 -3
  96. package/dist/index206.js +2 -81
  97. package/dist/index207.js +53 -2
  98. package/dist/index209.js +13 -126
  99. package/dist/index21.js +63 -56
  100. package/dist/index210.js +20 -5
  101. package/dist/index211.js +4 -125
  102. package/dist/index212.js +5 -19
  103. package/dist/index213.js +2 -2
  104. package/dist/index214.js +2 -2
  105. package/dist/index215.js +19 -2
  106. package/dist/index216.js +19 -2
  107. package/dist/index217.js +26 -40
  108. package/dist/index218.js +3 -20
  109. package/dist/index219.js +2 -6
  110. package/dist/index220.js +6 -51
  111. package/dist/index221.js +252 -0
  112. package/dist/index222.js +52 -13
  113. package/dist/index223.js +44 -5
  114. package/dist/index224.js +4 -11
  115. package/dist/index225.js +59 -368
  116. package/dist/index226.js +3 -19
  117. package/dist/index227.js +40 -26
  118. package/dist/index228.js +6 -3
  119. package/dist/index229.js +7 -250
  120. package/dist/index23.js +31 -31
  121. package/dist/index230.js +10 -50
  122. package/dist/index231.js +125 -43
  123. package/dist/index232.js +125 -5
  124. package/dist/index233.js +2 -60
  125. package/dist/index234.js +5 -164
  126. package/dist/index235.js +368 -83
  127. package/dist/index236.js +166 -0
  128. package/dist/index237.js +84 -3
  129. package/dist/index239.js +8 -2
  130. package/dist/index240.js +3 -4
  131. package/dist/index241.js +2 -2
  132. package/dist/index242.js +4 -4
  133. package/dist/index243.js +2 -3
  134. package/dist/index244.js +1 -1
  135. package/dist/index245.js +1 -1
  136. package/dist/index246.js +2 -2
  137. package/dist/index248.js +2 -2
  138. package/dist/index25.js +33 -32
  139. package/dist/index251.js +2 -10
  140. package/dist/index252.js +9 -2
  141. package/dist/index253.js +2 -8
  142. package/dist/index254.js +9 -23
  143. package/dist/index255.js +23 -89
  144. package/dist/index256.js +91 -0
  145. package/dist/index258.js +6 -16
  146. package/dist/index259.js +16 -9
  147. package/dist/index260.js +3 -9
  148. package/dist/index262.js +7 -3
  149. package/dist/index263.js +175 -11
  150. package/dist/index264.js +280 -8
  151. package/dist/index265.js +6 -17
  152. package/dist/index266.js +2 -4
  153. package/dist/index267.js +2 -281
  154. package/dist/index268.js +2 -6
  155. package/dist/index269.js +2 -2
  156. package/dist/index27.js +5 -2
  157. package/dist/index272.js +2 -2
  158. package/dist/index273.js +2 -2
  159. package/dist/index274.js +2 -2
  160. package/dist/index275.js +1 -1
  161. package/dist/index276.js +28 -2
  162. package/dist/index277.js +21 -1
  163. package/dist/index279.js +427 -24
  164. package/dist/index280.js +1 -21
  165. package/dist/index281.js +91 -0
  166. package/dist/index282.js +9 -7
  167. package/dist/index285.js +20 -429
  168. package/dist/index287.js +200 -3
  169. package/dist/index288.js +11 -0
  170. package/dist/index289.js +7 -21
  171. package/dist/index29.js +3 -3
  172. package/dist/index290.js +438 -0
  173. package/dist/index291.js +127 -2
  174. package/dist/index292.js +3 -4
  175. package/dist/index293.js +11 -199
  176. package/dist/index294.js +7 -434
  177. package/dist/index295.js +16 -126
  178. package/dist/index296.js +3 -88
  179. package/dist/index297.js +7 -224
  180. package/dist/index298.js +11 -3
  181. package/dist/index299.js +224 -3
  182. package/dist/index300.js +4 -213
  183. package/dist/index301.js +2 -66
  184. package/dist/index302.js +3 -5
  185. package/dist/index303.js +3 -2
  186. package/dist/index304.js +213 -3
  187. package/dist/index305.js +5 -3
  188. package/dist/index306.js +66 -3
  189. package/dist/index307.js +6 -57
  190. package/dist/index308.js +18 -10
  191. package/dist/index309.js +6 -6
  192. package/dist/index31.js +2 -2
  193. package/dist/index310.js +4 -18
  194. package/dist/index311.js +7 -6
  195. package/dist/index312.js +2 -32
  196. package/dist/index313.js +32 -46
  197. package/dist/index314.js +3 -5
  198. package/dist/index315.js +3 -8
  199. package/dist/index316.js +58 -2
  200. package/dist/index318.js +7 -479
  201. package/dist/index319.js +10 -0
  202. package/dist/index320.js +43 -420
  203. package/dist/index321.js +2 -47
  204. package/dist/index323.js +482 -0
  205. package/dist/index324.js +426 -0
  206. package/dist/index325.js +49 -0
  207. package/dist/index33.js +2 -2
  208. package/dist/index35.js +4 -4
  209. package/dist/index37.js +13 -13
  210. package/dist/index39.js +5 -5
  211. package/dist/index4.js +5 -4
  212. package/dist/index41.js +2 -2
  213. package/dist/index43.js +2 -2
  214. package/dist/index45.js +5 -5
  215. package/dist/index47.js +2 -2
  216. package/dist/index49.js +2 -2
  217. package/dist/index55.js +2 -2
  218. package/dist/index57.js +2 -2
  219. package/dist/index6.js +65 -51
  220. package/dist/index61.js +2 -2
  221. package/dist/index69.js +51 -59
  222. package/dist/index7.js +1 -1
  223. package/dist/index75.js +5 -5
  224. package/dist/index77.js +36 -34
  225. package/dist/index79.js +2 -2
  226. package/dist/index81.js +1 -1
  227. package/dist/index84.js +4 -4
  228. package/dist/index86.js +1 -1
  229. package/dist/index88.js +5 -5
  230. package/dist/index9.js +1 -1
  231. package/dist/index90.js +1 -1
  232. package/dist/style.css +1 -1
  233. package/package.json +2 -2
  234. package/dist/index177.js +0 -5
  235. package/dist/index192.js +0 -5
  236. package/dist/index208.js +0 -10
  237. package/dist/index238.js +0 -9
  238. package/dist/index257.js +0 -8
  239. package/dist/index261.js +0 -10
  240. package/dist/index278.js +0 -4
  241. package/dist/index286.js +0 -178
  242. /package/dist/{index168.js → index167.js} +0 -0
  243. /package/dist/{index194.js → index193.js} +0 -0
  244. /package/dist/{index322.js → index326.js} +0 -0
package/dist/index6.js CHANGED
@@ -1,26 +1,22 @@
1
- import { ref as u, watch as c, reactive as x, computed as f } from "vue";
2
- import { isNil as l } from "./index130.js";
3
- let r = [];
4
- const i = u(null);
5
- c(
6
- () => i.value,
7
- () => {
8
- typeof i.value == "boolean" && (r.forEach((s) => s()), r = []);
9
- }
10
- );
11
- const o = {
1
+ import { ref as i, computed as v, watch as m } from "vue";
2
+ import { wait as y } from "./index130.js";
3
+ const t = i(null), r = {
12
4
  actions: !0,
13
5
  description: "",
14
6
  loading: !1,
15
7
  no: !0,
16
8
  noText: "",
9
+ noBusy: !1,
17
10
  open: !1,
18
11
  size: "sm",
19
12
  text: "",
20
13
  theme: "default",
21
14
  title: "",
22
15
  yes: !0,
23
- yesText: ""
16
+ yesText: "",
17
+ onYes: null,
18
+ onNo: null,
19
+ yesBusy: !1
24
20
  }, d = {
25
21
  actions: !0,
26
22
  description: "",
@@ -30,51 +26,69 @@ const o = {
30
26
  theme: "default",
31
27
  title: "",
32
28
  yes: !0,
33
- yesText: "OK"
34
- }, e = x({
35
- ...o
36
- }), m = f(() => [
29
+ yesText: "OK",
30
+ size: "sm",
31
+ onYes: null,
32
+ onNo: null,
33
+ timeout: void 0
34
+ }, e = i({
35
+ ...r
36
+ }), T = v(() => [
37
37
  {
38
- text: e.noText,
39
- handler: () => {
40
- i.value = !1;
38
+ text: e.value.noText,
39
+ handler: async () => {
40
+ e.value.noBusy || (e.value.onNo && (e.value.noBusy = !0, await e.value.onNo(), e.value.noBusy = !1), t.value = !1);
41
41
  }
42
42
  },
43
43
  {
44
- text: e.yesText,
45
- handler: () => {
46
- i.value = !0;
44
+ text: e.value.yesText,
45
+ handler: async () => {
46
+ e.value.yesBusy || (e.value.onYes && (e.value.yesBusy = !0, await e.value.onYes(), e.value.yesBusy = !1), t.value = !0);
47
47
  }
48
48
  }
49
- ]), y = () => ({
50
- /**
51
- * The confirm function. It accepts a set of options defining
52
- * the behavior of the modal and returns `Promise<boolean>`
53
- * when the user accepts, declines, or ignores the modal.
54
- */
55
- confirm: (s) => {
56
- i.value = null;
57
- const n = { ...d, ...s }, t = { ...o };
58
- return t.title = n.title, t.text = n.text, n.description && (t.description = n.description), n.noText && (t.noText = n.noText), n.yesText && (t.yesText = n.yesText), n.size && (t.size = n.size), n.theme && (t.theme = n.theme), l(n.yes) || (t.yes = !!n.yes), l(n.no) || (t.no = !!n.no), l(n.actions) || (t.actions = !!n.actions), e.actions = t.actions, e.description = t.description, e.no = t.no, e.noText = t.noText, e.open = !0, e.size = t.size, e.text = t.text, e.theme = t.theme, e.title = t.title, e.yes = t.yes, e.yesText = t.yesText, new Promise((a) => {
59
- r.push(() => a(i.value));
60
- });
61
- },
62
- /**
63
- * Sets the state of the confirm to loading and displays a spinner.
64
- */
65
- setLoading: (s = !0) => {
66
- e.loading = s;
67
- },
68
- /**
69
- * Closes the confirmation modal. It is a manual operation
70
- * so you can update the state while the modal is still open.
71
- */
72
- close: () => (e.description = o.description, e.loading = o.loading, e.noText = o.noText, e.open = o.open, e.text = o.text, e.theme = o.theme, e.title = o.title, e.yesText = o.yesText, i.value = !1, Promise.resolve().then(() => {
73
- i.value = null;
74
- }))
75
- });
49
+ ]), w = () => {
50
+ const n = async () => {
51
+ e.value.open = !1, await y(300), e.value = r, t.value = null;
52
+ };
53
+ return {
54
+ /**
55
+ * The confirm function. It accepts a set of options defining
56
+ * the behavior of the modal and returns `Promise<boolean>`
57
+ * when the user accepts, declines, or ignores the modal.
58
+ */
59
+ confirm: (l) => {
60
+ const u = { ...d, ...l };
61
+ return e.value = { ...e.value, ...u }, e.value.open = !0, new Promise((c) => {
62
+ let a;
63
+ const s = (o) => {
64
+ clearTimeout(a), c(o), t.value = null, f(), u.autoClose && n();
65
+ }, f = m(
66
+ t,
67
+ (o) => {
68
+ o !== null && s(o);
69
+ },
70
+ { once: !0 }
71
+ );
72
+ u.timeout && (a = setTimeout(() => {
73
+ s(!1);
74
+ }, u.timeout));
75
+ });
76
+ },
77
+ /**
78
+ * Sets the state of the confirm to loading and displays a spinner.
79
+ */
80
+ setLoading: (l = !0) => {
81
+ e.value.loading = l;
82
+ },
83
+ /**
84
+ * Closes the confirmation modal. It is a manual operation
85
+ * so you can update the state while the modal is still open.
86
+ */
87
+ close: n
88
+ };
89
+ };
76
90
  export {
77
- m as actions,
91
+ T as actions,
78
92
  e as state,
79
- y as useConfirm
93
+ w as useConfirm
80
94
  };
package/dist/index61.js CHANGED
@@ -7,8 +7,8 @@ import r from "./index127.js";
7
7
  /* empty css */
8
8
  import P from "./index129.js";
9
9
  /* empty css */
10
- import { pickBy as $ } from "./index251.js";
11
- import { noop as A } from "./index252.js";
10
+ import { pickBy as $ } from "./index252.js";
11
+ import { noop as A } from "./index253.js";
12
12
  const T = {
13
13
  key: 2,
14
14
  class: "bb-button__loading-label sr-only"
package/dist/index69.js CHANGED
@@ -1,85 +1,77 @@
1
- import { defineComponent as k, computed as _, openBlock as n, createBlock as l, unref as e, createSlots as h, withCtx as s, createElementBlock as f, toDisplayString as c, createCommentVNode as m, renderSlot as d, createElementVNode as g, createVNode as C, renderList as $, normalizeProps as x, guardReactiveProps as V, mergeProps as z, createTextVNode as u } from "vue";
2
- import { actions as p, state as o } from "./index6.js";
3
- import A from "./index25.js";
1
+ import { defineComponent as y, computed as d, openBlock as t, createBlock as a, unref as e, createSlots as v, withCtx as n, createElementBlock as l, toDisplayString as r, createCommentVNode as c, createVNode as b, createTextVNode as _ } from "vue";
2
+ import { actions as u, state as o } from "./index6.js";
3
+ import k from "./index25.js";
4
4
  /* empty css */
5
- import B from "./index129.js";
5
+ import h from "./index129.js";
6
6
  /* empty css */
7
- import v from "./index61.js";
7
+ import f from "./index61.js";
8
8
  /* empty css */
9
- const N = {
9
+ const B = {
10
10
  key: 0,
11
11
  class: "bb-confirm__content"
12
- }, P = {
12
+ }, x = {
13
13
  key: 0,
14
14
  class: "bb-confirm__text"
15
- }, S = { class: "bb-confirm__spinner" }, F = /* @__PURE__ */ k({
15
+ }, g = {
16
+ key: 1,
17
+ class: "bb-confirm__spinner"
18
+ }, E = /* @__PURE__ */ y({
16
19
  __name: "BbConfirm",
17
- setup(E) {
18
- const i = _(() => p.value[0]), r = _(() => p.value[1]), b = (t) => {
19
- t ? r.value.handler() : i.value.handler();
20
+ setup(C) {
21
+ const s = d(() => u.value[0]), i = d(() => u.value[1]), p = (m) => {
22
+ m ? i.value.handler() : s.value.handler();
20
23
  };
21
- return (t, U) => (n(), l(A, {
24
+ return (m, V) => (t(), a(k, {
22
25
  "model-value": e(o).open || e(o).loading,
23
26
  "overlay-classes": ["bb-confirm", `bb-confirm--${e(o).theme}`],
27
+ persistent: e(o).yesBusy || e(o).noBusy || e(o).loading,
28
+ "show-close": !(e(o).yesBusy || e(o).noBusy || e(o).loading),
24
29
  size: e(o).size,
25
30
  title: e(o).title,
26
- "onUpdate:modelValue": b
27
- }, h({
28
- default: s(() => [
29
- e(o).loading ? d(t.$slots, "spinner", { key: 1 }, () => [
30
- g("div", S, [
31
- C(B, { size: "36" })
32
- ])
33
- ]) : (n(), f("div", N, [
34
- e(o).text ? (n(), f("div", P, c(e(o).text), 1)) : m("", !0)
31
+ "onUpdate:modelValue": p
32
+ }, v({
33
+ default: n(() => [
34
+ e(o).loading ? (t(), l("div", g, [
35
+ b(h, { size: "36" })
36
+ ])) : (t(), l("div", B, [
37
+ e(o).text ? (t(), l("div", x, r(e(o).text), 1)) : c("", !0)
35
38
  ]))
36
39
  ]),
37
40
  _: 2
38
41
  }, [
39
- $(["header", "title", "close", "description"], (a) => ({
40
- name: a,
41
- fn: s((y) => [
42
- d(t.$slots, a, x(V(y)))
43
- ])
44
- })),
45
42
  !e(o).loading && e(o).actions ? {
46
43
  name: "footer",
47
- fn: s((a) => [
48
- d(t.$slots, "footer", z({
49
- actions: e(o).actions,
50
- loading: e(o).loading,
51
- no: e(o).no,
52
- noAction: i.value,
53
- yes: e(o).yes,
54
- yesAction: r.value
55
- }, a), () => [
56
- e(o).no ? (n(), l(v, {
57
- key: 0,
58
- class: "bb-confirm__no",
59
- onClick: i.value.handler
60
- }, {
61
- default: s(() => [
62
- u(c(i.value.text), 1)
63
- ]),
64
- _: 1
65
- }, 8, ["onClick"])) : m("", !0),
66
- e(o).yes ? (n(), l(v, {
67
- key: 1,
68
- class: "bb-confirm__yes",
69
- onClick: r.value.handler
70
- }, {
71
- default: s(() => [
72
- u(c(r.value.text), 1)
73
- ]),
74
- _: 1
75
- }, 8, ["onClick"])) : m("", !0)
76
- ])
44
+ fn: n(() => [
45
+ e(o).no ? (t(), a(f, {
46
+ key: 0,
47
+ "auto-loading": "",
48
+ class: "bb-confirm__no",
49
+ inert: e(o).yesBusy,
50
+ onClick: s.value.handler
51
+ }, {
52
+ default: n(() => [
53
+ _(r(s.value.text), 1)
54
+ ]),
55
+ _: 1
56
+ }, 8, ["inert", "onClick"])) : c("", !0),
57
+ e(o).yes ? (t(), a(f, {
58
+ key: 1,
59
+ "auto-loading": "",
60
+ class: "bb-confirm__yes",
61
+ inert: e(o).noBusy,
62
+ onClick: i.value.handler
63
+ }, {
64
+ default: n(() => [
65
+ _(r(i.value.text), 1)
66
+ ]),
67
+ _: 1
68
+ }, 8, ["inert", "onClick"])) : c("", !0)
77
69
  ]),
78
70
  key: "0"
79
71
  } : void 0
80
- ]), 1032, ["model-value", "overlay-classes", "size", "title"]));
72
+ ]), 1032, ["model-value", "overlay-classes", "persistent", "show-close", "size", "title"]));
81
73
  }
82
74
  });
83
75
  export {
84
- F as default
76
+ E as default
85
77
  };
package/dist/index7.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getAsPercentage as p } from "./index131.js";
2
- import { wait as w } from "./index132.js";
2
+ import { wait as w } from "./index130.js";
3
3
  import { ref as c, computed as o, onBeforeUnmount as H } from "vue";
4
4
  const Y = ({
5
5
  duration: t,
package/dist/index75.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as X, computed as A, ref as y, openBlock as h, createElementBlock as T, mergeProps as B, createElementVNode as H, renderSlot as w, normalizeProps as Y, guardReactiveProps as Z, unref as $, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
2
- import { findRightIndex as I } from "./index253.js";
2
+ import { findRightIndex as I } from "./index254.js";
3
3
  import { useId as ne } from "./index8.js";
4
- import { wait as oe } from "./index132.js";
5
- import { useIntersectionObserver as ae } from "./index133.js";
4
+ import { wait as oe } from "./index130.js";
5
+ import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import V from "./index254.js";
9
- import se from "./index255.js";
8
+ import V from "./index255.js";
9
+ import se from "./index256.js";
10
10
  /* empty css */
11
11
  import j from "./index127.js";
12
12
  /* empty css */
package/dist/index77.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, ref as E, computed as B, openBlock as s, createElementBlock as $, normalizeClass as W, createVNode as l, mergeProps as C, withCtx as t, unref as m, createBlock as L, createCommentVNode as w, createElementVNode as u, toDisplayString as P, createSlots as A, renderSlot as a, normalizeProps as d, guardReactiveProps as r, renderList as I } from "vue";
1
+ import { defineComponent as z, ref as E, computed as f, openBlock as s, createElementBlock as $, normalizeClass as W, createVNode as l, mergeProps as C, withCtx as t, unref as w, createBlock as L, createCommentVNode as g, createElementVNode as m, toDisplayString as P, createSlots as A, renderSlot as a, normalizeProps as d, guardReactiveProps as r, renderList as I } from "vue";
2
2
  import D from "./index13.js";
3
3
  /* empty css */
4
4
  import M from "./index75.js";
@@ -34,38 +34,40 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
34
34
  "prepend:icon": {}
35
35
  },
36
36
  setup(S) {
37
- const n = S, b = E(0), c = B(
38
- () => n.loading || !!b.value && n.autoLoading
37
+ const n = S, u = E(0), b = f(
38
+ () => n.loading || !!u.value && n.autoLoading
39
39
  ), V = (e) => async (...p) => {
40
- c.value && n.disabledWhileLoading || (b.value++, await e(...p), b.value--);
41
- }, g = n.items.map((e) => e.onClick ? {
42
- ...e,
43
- onClick: V(e.onClick)
44
- } : e), y = B(() => {
45
- const e = { ...g[0] };
40
+ b.value && n.disabledWhileLoading || (u.value++, await e(...p), u.value--);
41
+ }, y = f(
42
+ () => n.items.map((e) => e.onClick ? {
43
+ ...e,
44
+ onClick: V(e.onClick)
45
+ } : e)
46
+ ), _ = f(() => {
47
+ const e = { ...y.value[0] };
46
48
  return e.disabled = e.disabled || n.disabled, e;
47
49
  });
48
50
  return (e, p) => (s(), $("span", {
49
51
  class: W(["bb-dropdown-button", {
50
52
  "bb-dropdown-button--block": e.block,
51
- "bb-dropdown-button--loading": c.value
53
+ "bb-dropdown-button--loading": b.value
52
54
  }])
53
55
  }, [
54
- l(D, C(y.value, { class: "bb-dropdown-button__main-btn" }), {
56
+ l(D, C(_.value, { class: "bb-dropdown-button__main-btn" }), {
55
57
  default: t(() => [
56
- l(m(R), { class: "bb-dropdown-button__spinner" }),
57
- n["prepend:icon"] ? (s(), L(m(N), {
58
+ l(w(R), { class: "bb-dropdown-button__spinner" }),
59
+ n["prepend:icon"] ? (s(), L(w(N), {
58
60
  key: 0,
59
61
  class: "bb-dropdown-button__prepend-icon",
60
62
  type: n["prepend:icon"]
61
- }, null, 8, ["type"])) : w("", !0),
62
- u("span", Z, P(y.value.text), 1),
63
- c.value ? (s(), $("span", j, "caricamento")) : w("", !0),
64
- n["append:icon"] ? (s(), L(m(N), {
63
+ }, null, 8, ["type"])) : g("", !0),
64
+ m("span", Z, P(_.value.text), 1),
65
+ b.value ? (s(), $("span", j, "caricamento")) : g("", !0),
66
+ n["append:icon"] ? (s(), L(w(N), {
65
67
  key: 2,
66
68
  class: "bb-dropdown-button__append-icon",
67
69
  type: n["append:icon"]
68
- }, null, 8, ["type"])) : w("", !0)
70
+ }, null, 8, ["type"])) : g("", !0)
69
71
  ]),
70
72
  _: 1
71
73
  }, 16),
@@ -74,7 +76,7 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
74
76
  "arrow-padding": e.arrowPadding,
75
77
  disabled: e.disabled,
76
78
  eager: e.eager,
77
- items: m(g),
79
+ items: y.value,
78
80
  offset: e.offset,
79
81
  padding: e.padding,
80
82
  placement: e.placement,
@@ -85,38 +87,38 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
85
87
  activator: t(({
86
88
  props: o,
87
89
  opening: i,
88
- open: f,
89
- closed: _,
90
- closing: h,
90
+ open: c,
91
+ closed: h,
92
+ closing: v,
91
93
  disabled: k,
92
- placement: v
94
+ placement: B
93
95
  }) => [
94
96
  a(e.$slots, "activator", {
95
- closed: _,
96
- closing: h,
97
+ closed: h,
98
+ closing: v,
97
99
  disabled: k,
98
- open: f,
100
+ open: c,
99
101
  opening: i,
100
- placement: v,
102
+ placement: B,
101
103
  props: o
102
104
  }, () => [
103
105
  l(D, C(o, { class: "bb-dropdown-button__dropdown-btn" }), {
104
106
  default: t(() => [
105
- u("span", q, P(f || i ? "Chiudi" : "Apri") + " il menu", 1),
107
+ m("span", q, P(c || i ? "Chiudi" : "Apri") + " il menu", 1),
106
108
  a(e.$slots, "right-btn", {
107
- closed: _,
108
- closing: h,
109
+ closed: h,
110
+ closing: v,
109
111
  disabled: k,
110
- open: f,
112
+ open: c,
111
113
  opening: i,
112
- placement: v
114
+ placement: B
113
115
  }, () => [
114
- p[0] || (p[0] = u("svg", {
116
+ p[0] || (p[0] = m("svg", {
115
117
  class: "bb-dropdown-button__dropdown-chevron",
116
118
  viewBox: "0 0 24 24",
117
119
  xmlns: "http://www.w3.org/2000/svg"
118
120
  }, [
119
- u("path", {
121
+ m("path", {
120
122
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
121
123
  fill: "currentColor"
122
124
  })
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index258.js";
2
+ import { findInTree as ae } from "./index259.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index257.js")).default);
56
+ b || (b = (await import("./index258.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index237.js";
2
+ import { throttle as c } from "./index226.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as le, ref as l, useAttrs as se, computed as u, getCurrentInstance as ae, nextTick as ne, onBeforeUnmount as O, onMounted as ie, watch as re, openBlock as g, createBlock as ue, withCtx as ce, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as de, toDisplayString as A, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as fe } from "./index217.js";
2
+ import { useFocusTrap as fe } from "./index227.js";
3
3
  import { useId as E } from "./index8.js";
4
- import { wait as H } from "./index132.js";
5
- import { useModalsState as b } from "./index238.js";
6
- import ve from "./index224.js";
4
+ import { wait as H } from "./index130.js";
5
+ import { useModalsState as b } from "./index229.js";
6
+ import ve from "./index230.js";
7
7
  import { useMobile as pe } from "./index9.js";
8
8
  const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"], Ve = /* @__PURE__ */ le({
9
9
  __name: "BbOffCanvas",
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index259.js";
2
+ import { debounce as F } from "./index282.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index217.js";
2
+ import { useFocusTrap as z } from "./index227.js";
3
3
  import { useId as A } from "./index8.js";
4
- import { useIntersectionObserver as R } from "./index133.js";
5
- import { waitFor as j } from "./index219.js";
4
+ import { useIntersectionObserver as R } from "./index132.js";
5
+ import { waitFor as j } from "./index228.js";
6
6
  import G from "./index13.js";
7
7
  /* empty css */
8
- import J from "./index255.js";
8
+ import J from "./index256.js";
9
9
  /* empty css */
10
- import { useDebounceFn as K } from "./index206.js";
10
+ import { useDebounceFn as K } from "./index205.js";
11
11
  const re = /* @__PURE__ */ M({
12
12
  __name: "BbPopover",
13
13
  props: {
package/dist/index9.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useWindowSize as i } from "./index133.js";
1
+ import { useWindowSize as i } from "./index132.js";
2
2
  import { computed as e } from "vue";
3
3
  import { _config as t } from "./index4.js";
4
4
  const c = () => {
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index207.js";
2
+ import { clamp as p } from "./index206.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",