bitboss-ui 2.0.105 → 2.0.107

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 (175) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbRows/BbRows.vue.d.ts +1 -0
  8. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  9. package/dist/components/BbTable/types.d.ts +13 -0
  10. package/dist/components/ListBox.vue.d.ts +0 -2
  11. package/dist/composables/useLocale.d.ts +1 -1
  12. package/dist/i18n/en.d.ts +45 -0
  13. package/dist/i18n/it.d.ts +45 -0
  14. package/dist/index100.js +46 -45
  15. package/dist/index111.js +223 -205
  16. package/dist/index119.js +2 -2
  17. package/dist/index121.js +55 -54
  18. package/dist/index123.js +1 -1
  19. package/dist/index125.js +14 -13
  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 +2 -2
  24. package/dist/index133.js +2 -2
  25. package/dist/index15.js +36 -35
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +63 -64
  28. package/dist/index207.js +8 -2
  29. package/dist/index208.js +3 -4
  30. package/dist/index209.js +53 -2
  31. package/dist/index21.js +110 -103
  32. package/dist/index211.js +13 -16
  33. package/dist/index212.js +3 -16
  34. package/dist/index213.js +40 -18
  35. package/dist/index214.js +6 -19
  36. package/dist/index215.js +7 -27
  37. package/dist/index216.js +12 -3
  38. package/dist/index217.js +13 -2
  39. package/dist/index218.js +2 -8
  40. package/dist/index219.js +4 -250
  41. package/dist/index220.js +2 -52
  42. package/dist/index221.js +3 -44
  43. package/dist/index222.js +20 -5
  44. package/dist/index223.js +4 -60
  45. package/dist/index224.js +281 -84
  46. package/dist/index225.js +18 -0
  47. package/dist/index226.js +16 -8
  48. package/dist/index227.js +18 -24
  49. package/dist/index228.js +14 -16
  50. package/dist/index229.js +18 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +27 -15
  53. package/dist/index231.js +2 -12
  54. package/dist/index232.js +250 -16
  55. package/dist/index233.js +52 -3
  56. package/dist/index234.js +44 -41
  57. package/dist/index235.js +5 -6
  58. package/dist/index236.js +60 -7
  59. package/dist/index237.js +126 -12
  60. package/dist/index238.js +124 -52
  61. package/dist/index239.js +4 -0
  62. package/dist/index240.js +4 -12
  63. package/dist/index241.js +369 -3
  64. package/dist/index242.js +85 -125
  65. package/dist/index244.js +25 -2
  66. package/dist/index245.js +16 -19
  67. package/dist/index246.js +48 -5
  68. package/dist/index247.js +12 -366
  69. package/dist/index248.js +12 -4
  70. package/dist/index249.js +16 -2
  71. package/dist/index25.js +44 -41
  72. package/dist/index250.js +2 -2
  73. package/dist/index251.js +18 -2
  74. package/dist/index252.js +105 -17
  75. package/dist/{index255.js → index254.js} +2 -2
  76. package/dist/index256.js +14 -0
  77. package/dist/index257.js +2 -12
  78. package/dist/index258.js +2 -10
  79. package/dist/index259.js +9 -2
  80. package/dist/index260.js +3 -6
  81. package/dist/index261.js +8 -15
  82. package/dist/index262.js +23 -9
  83. package/dist/index263.js +88 -8
  84. package/dist/index265.js +6 -89
  85. package/dist/index266.js +18 -0
  86. package/dist/index267.js +9 -4
  87. package/dist/index268.js +9 -6
  88. package/dist/index269.js +8 -2
  89. package/dist/index27.js +1 -1
  90. package/dist/index270.js +28 -2
  91. package/dist/index271.js +3 -2
  92. package/dist/index273.js +7 -2
  93. package/dist/index274.js +431 -2
  94. package/dist/index275.js +1 -1
  95. package/dist/index276.js +89 -2
  96. package/dist/index277.js +7 -2
  97. package/dist/index278.js +11 -2
  98. package/dist/index279.js +4 -28
  99. package/dist/index280.js +224 -22
  100. package/dist/index281.js +202 -0
  101. package/dist/index282.js +175 -6
  102. package/dist/index283.js +6 -3
  103. package/dist/index284.js +2 -7
  104. package/dist/index285.js +2 -11
  105. package/dist/index286.js +2 -17
  106. package/dist/index287.js +2 -9
  107. package/dist/index288.js +2 -431
  108. package/dist/index289.js +2 -2
  109. package/dist/index29.js +2 -2
  110. package/dist/index290.js +2 -89
  111. package/dist/index291.js +2 -3
  112. package/dist/index292.js +4 -0
  113. package/dist/index293.js +2 -224
  114. package/dist/index294.js +2 -200
  115. package/dist/index295.js +22 -2
  116. package/dist/index297.js +2 -176
  117. package/dist/index298.js +125 -21
  118. package/dist/index299.js +24 -0
  119. package/dist/index301.js +3 -436
  120. package/dist/index302.js +16 -126
  121. package/dist/index303.js +436 -3
  122. package/dist/index304.js +127 -3
  123. package/dist/index305.js +3 -213
  124. package/dist/index306.js +3 -3
  125. package/dist/index307.js +214 -3
  126. package/dist/index308.js +3 -58
  127. package/dist/index309.js +3 -7
  128. package/dist/index31.js +2 -2
  129. package/dist/index310.js +3 -19
  130. package/dist/index311.js +56 -64
  131. package/dist/index312.js +2 -7
  132. package/dist/index313.js +67 -2
  133. package/dist/index314.js +5 -5
  134. package/dist/index315.js +32 -7
  135. package/dist/index316.js +7 -8
  136. package/dist/index317.js +18 -7
  137. package/dist/index318.js +53 -5
  138. package/dist/index319.js +53 -3
  139. package/dist/index320.js +46 -3
  140. package/dist/index321.js +6 -32
  141. package/dist/index322.js +4 -46
  142. package/dist/index323.js +8 -2
  143. package/dist/index324.js +2 -2
  144. package/dist/index325.js +6 -0
  145. package/dist/index326.js +2 -424
  146. package/dist/index328.js +424 -2
  147. package/dist/index33.js +45 -45
  148. package/dist/index35.js +56 -55
  149. package/dist/index37.js +166 -165
  150. package/dist/index39.js +4 -4
  151. package/dist/index41.js +2 -2
  152. package/dist/index43.js +70 -71
  153. package/dist/index45.js +7 -7
  154. package/dist/index47.js +2 -2
  155. package/dist/index49.js +2 -2
  156. package/dist/index53.js +28 -27
  157. package/dist/index55.js +1 -1
  158. package/dist/index57.js +2 -2
  159. package/dist/index61.js +32 -31
  160. package/dist/index75.js +3 -3
  161. package/dist/index77.js +87 -86
  162. package/dist/index79.js +2 -2
  163. package/dist/index81.js +1 -1
  164. package/dist/index84.js +45 -44
  165. package/dist/index86.js +67 -66
  166. package/dist/index88.js +69 -67
  167. package/package.json +1 -1
  168. package/dist/index210.js +0 -283
  169. package/dist/index243.js +0 -127
  170. package/dist/index253.js +0 -108
  171. package/dist/index264.js +0 -25
  172. package/dist/index296.js +0 -128
  173. package/dist/index300.js +0 -10
  174. /package/dist/{index327.js → index329.js} +0 -0
  175. /package/dist/{index272.js → index330.js} +0 -0
package/dist/index43.js CHANGED
@@ -1,17 +1,16 @@
1
- import { defineComponent as z, ref as B, toRef as d, openBlock as G, createBlock as R, unref as u, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as W, mergeProps as w, createSlots as K } from "vue";
2
- import N from "./index41.js";
1
+ import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as v, createVNode as R, mergeProps as w, createSlots as W } from "vue";
2
+ import K from "./index41.js";
3
3
  /* empty css */
4
- import U from "./index224.js";
4
+ import N from "./index242.js";
5
5
  /* empty css */
6
- import { useLocale as q } from "./index226.js";
7
- import { useItemsGetter as J } from "./index227.js";
8
- import { useIndexById as E } from "./index228.js";
9
- import { useBaseOptions as Q } from "./index229.js";
10
- import { useCoherence as X } from "./index230.js";
11
- import { hash as Y } from "./index216.js";
12
- import { useHashedWatcher as L } from "./index231.js";
13
- import { usePrefill as Z } from "./index232.js";
14
- const pe = /* @__PURE__ */ z({
6
+ import { useItemsGetter as U } from "./index244.js";
7
+ import { useIndexById as T } from "./index245.js";
8
+ import { useBaseOptions as q } from "./index246.js";
9
+ import { useCoherence as J } from "./index247.js";
10
+ import { hash as Q } from "./index208.js";
11
+ import { useHashedWatcher as E } from "./index248.js";
12
+ import { usePrefill as X } from "./index249.js";
13
+ const ue = /* @__PURE__ */ j({
15
14
  __name: "BaseSwitchGroup",
16
15
  props: {
17
16
  ariaDescribedby: {},
@@ -37,98 +36,98 @@ const pe = /* @__PURE__ */ z({
37
36
  readonly: { type: Boolean }
38
37
  },
39
38
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
40
- setup(C, { emit: D }) {
41
- const o = C, t = D;
39
+ setup(C, { emit: L }) {
40
+ const o = C, a = L;
42
41
  if (!Array.isArray(o.modelValue))
43
42
  throw new Error("Model value must be an array in checkbox group.");
44
- const { t: y } = q(), g = B(), r = B(!1), {
45
- getter: c,
43
+ const b = k(), r = k(!1), {
44
+ getter: u,
46
45
  items: $,
47
- loading: I
48
- } = J({
46
+ loading: D
47
+ } = U({
49
48
  items: d(o, "items"),
50
49
  debounce: 0
51
- }), m = () => {
52
- o.enforceCoherence && !T.value && t("update:modelValue", P.value.coherent);
53
- }, { hasPrefilled: H } = Z({
50
+ }), c = () => {
51
+ o.enforceCoherence && !V.value && a("update:modelValue", P.value.coherent);
52
+ }, { hasPrefilled: I } = X({
54
53
  onStart: !0,
55
54
  currentValue: o.modelValue,
56
55
  multiple: !0,
57
56
  fn: async ({ prefill: e }) => {
58
- await c(e, o.modelValue), m();
57
+ await u(e, o.modelValue), c();
59
58
  }
60
- }), { data: V } = E({
59
+ }), { data: y } = T({
61
60
  items: d(o, "modelValue")
62
- }), { options: k } = Q({
61
+ }), { options: g } = q({
63
62
  disabled: d(o, "disabled"),
64
63
  items: $,
65
64
  itemText: o.itemText,
66
65
  itemValue: o.itemValue,
67
66
  max: o.max,
68
67
  selectable: !0,
69
- selectedIndexedByHash: V
70
- }), x = async (e) => {
71
- t("update:modelValue", o.modelValue.concat(e.value));
68
+ selectedIndexedByHash: y
69
+ }), H = async (e) => {
70
+ a("update:modelValue", o.modelValue.concat(e.value));
72
71
  }, S = async (e) => {
73
- const a = { ...V.value };
74
- delete a[e.valueHash], t("update:modelValue", Object.values(a));
75
- }, { data: M } = E({
76
- items: k,
72
+ const t = { ...y.value };
73
+ delete t[e.valueHash], a("update:modelValue", Object.values(t));
74
+ }, { data: M } = T({
75
+ items: g,
77
76
  key: "valueHash"
78
- }), { coherent: T, status: P } = X({
77
+ }), { coherent: V, status: P } = J({
79
78
  modelValue: d(o, "modelValue"),
80
79
  multiple: !0,
81
- iteratee: (e) => !!M.value[Y(e)]
80
+ iteratee: (e) => !!M.value[Q(e)]
82
81
  });
83
82
  let i = 0;
84
- L(
83
+ E(
85
84
  () => o.modelValue,
86
85
  async () => {
87
- i++, T.value || (await c(!1, o.modelValue), m()), i--;
86
+ i++, V.value || (await u(!1, o.modelValue), c()), i--;
88
87
  },
89
88
  {
90
89
  debounce: o.modelValueDebounceTime
91
90
  }
92
- ), L(
91
+ ), E(
93
92
  () => [o.dependencies, o.items],
94
93
  async () => {
95
- H.value && (i++, await c(!1, o.modelValue), i === 1 && m(), i--);
94
+ I.value && (i++, await u(!1, o.modelValue), i === 1 && c(), i--);
96
95
  },
97
96
  {
98
97
  debounce: o.depsDebounceTime
99
98
  }
100
99
  );
101
- const F = (e) => {
100
+ const x = (e) => {
102
101
  if (o.id)
103
102
  return [o.id, e.valueHash].filter(Boolean).join("-");
104
- }, O = (e, a) => {
105
- t("change", e), a.selected ? S(a) : x(a);
106
- }, A = {
107
- onBlur: (e) => t("blur", e),
108
- onClick: (e) => t("click", e),
103
+ }, F = (e, t) => {
104
+ a("change", e), t.selected ? S(t) : H(t);
105
+ }, O = {
106
+ onBlur: (e) => a("blur", e),
107
+ onClick: (e) => a("click", e),
109
108
  onFocus: (e) => {
110
- t("focus", e), r.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), r.value = !0);
109
+ a("focus", e), r.value || (document.addEventListener("focusin", m, { passive: !0 }), document.addEventListener("click", p, { passive: !0 }), r.value = !0);
111
110
  },
112
- onInput: (e) => t("input", e),
113
- onKeydown: (e) => t("keydown", e),
114
- onMousedown: (e) => t("mousedown", e),
115
- onMouseup: (e) => t("mouseup", e)
111
+ onInput: (e) => a("input", e),
112
+ onKeydown: (e) => a("keydown", e),
113
+ onMousedown: (e) => a("mousedown", e),
114
+ onMouseup: (e) => a("mouseup", e)
115
+ }, m = (e) => {
116
+ var t;
117
+ e.target instanceof HTMLElement && ((t = b.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
116
118
  }, p = (e) => {
117
- var a;
118
- e.target instanceof HTMLElement && ((a = g.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
119
- }, f = (e) => {
120
- var a;
121
- e.target instanceof HTMLElement && ((a = g.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
119
+ var t;
120
+ e.target instanceof HTMLElement && ((t = b.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
122
121
  };
123
- return (e, a) => (G(), R(U, {
122
+ return (e, t) => (z(), G(N, {
124
123
  class: "bb-base-switch-group",
125
124
  direction: e.direction,
126
125
  "has-errors": e.hasErrors,
127
126
  "hide-label": e.hideLabel,
128
- loading: !!u(I),
129
- "loading-text": e.loadingText || u(y)("common.loadingText"),
130
- "no-data-text": e.noDataText || u(y)("common.noDataText"),
131
- options: u(k)
127
+ loading: !!B(D),
128
+ "loading-text": e.loadingText,
129
+ "no-data-text": e.noDataText,
130
+ options: B(g)
132
131
  }, {
133
132
  prepend: s(() => [
134
133
  l(e.$slots, "prepend")
@@ -140,16 +139,16 @@ const pe = /* @__PURE__ */ z({
140
139
  l(e.$slots, "no-data")
141
140
  ]),
142
141
  label: s((n) => [
143
- l(e.$slots, "label", v(b(n)))
142
+ l(e.$slots, "label", h(v(n)))
144
143
  ]),
145
144
  "option:prepend": s((n) => [
146
- l(e.$slots, "option:prepend", v(b(n)))
145
+ l(e.$slots, "option:prepend", h(v(n)))
147
146
  ]),
148
- input: s(({ option: n, index: j }) => [
149
- W(N, w({
150
- id: F(n),
147
+ input: s(({ option: n, index: A }) => [
148
+ R(K, w({
149
+ id: x(n),
151
150
  "aria-describedby": e.ariaDescribedby,
152
- autofocus: e.autofocus && !j,
151
+ autofocus: e.autofocus && !A,
153
152
  checked: n.selected,
154
153
  color: e.color,
155
154
  disabled: n.disabled,
@@ -157,23 +156,23 @@ const pe = /* @__PURE__ */ z({
157
156
  name: e.name,
158
157
  readonly: e.readonly,
159
158
  "true-value": n.value
160
- }, A, {
161
- onChange: (h) => O(h, n)
162
- }), K({ _: 2 }, [
159
+ }, O, {
160
+ onChange: (f) => F(f, n)
161
+ }), W({ _: 2 }, [
163
162
  e.$slots.icon ? {
164
163
  name: "icon",
165
- fn: s((h) => [
164
+ fn: s((f) => [
166
165
  l(e.$slots, "icon", w({
167
166
  item: n.item,
168
167
  text: n.text
169
- }, h))
168
+ }, f))
170
169
  ]),
171
170
  key: "0"
172
171
  } : void 0
173
172
  ]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
174
173
  ]),
175
174
  "option:append": s((n) => [
176
- l(e.$slots, "option:append", v(b(n)))
175
+ l(e.$slots, "option:append", h(v(n)))
177
176
  ]),
178
177
  append: s(() => [
179
178
  l(e.$slots, "append")
@@ -183,5 +182,5 @@ const pe = /* @__PURE__ */ z({
183
182
  }
184
183
  });
185
184
  export {
186
- pe as default
185
+ ue as default
187
186
  };
package/dist/index45.js CHANGED
@@ -3,16 +3,16 @@ import { defineComponent as R, ref as u, computed as f, toRef as E, watch as j,
3
3
  /* empty css */
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
6
- import { last as ae } from "./index217.js";
7
- import { useBaseOptions as ne } from "./index229.js";
8
- import { useIndexById as le } from "./index228.js";
9
- import re from "./index253.js";
6
+ import { last as ae } from "./index231.js";
7
+ import { useBaseOptions as ne } from "./index246.js";
8
+ import { useIndexById as le } from "./index245.js";
9
+ import re from "./index252.js";
10
10
  /* empty css */
11
- import ie from "./index255.js";
11
+ import ie from "./index254.js";
12
12
  /* empty css */
13
- import ue from "./index238.js";
13
+ import ue from "./index209.js";
14
14
  /* empty css */
15
- import se from "./index240.js";
15
+ import se from "./index211.js";
16
16
  const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], $e = /* @__PURE__ */ R({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as y, computed as u, onMounted as g, watch as B, nextTick as x, openBlock as V, createBlock as k, normalizeClass as $, withCtx as t, renderSlot as r, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index240.js";
3
- import E from "./index238.js";
2
+ import v from "./index211.js";
3
+ import E from "./index209.js";
4
4
  /* empty css */
5
5
  import G from "./index128.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as c, openBlock as b, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as h, withCtx as n, renderSlot as t, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index238.js";
2
+ import B from "./index209.js";
3
3
  /* empty css */
4
- import k from "./index240.js";
4
+ import k from "./index211.js";
5
5
  const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
6
6
  __name: "BaseTextInput",
7
7
  props: {
package/dist/index53.js CHANGED
@@ -1,15 +1,16 @@
1
- import { defineComponent as h, ref as v, watch as k, openBlock as s, createBlock as i, normalizeClass as C, withCtx as w, createElementVNode as t, createCommentVNode as r, createElementBlock as V, renderSlot as n, normalizeProps as c, guardReactiveProps as d, createTextVNode as m, toDisplayString as u } from "vue";
2
- import y from "./index126.js";
1
+ import { defineComponent as h, ref as k, watch as w, openBlock as s, createBlock as r, normalizeClass as C, withCtx as V, createElementVNode as t, createCommentVNode as i, createElementBlock as y, unref as z, renderSlot as n, normalizeProps as c, guardReactiveProps as m, createTextVNode as d, toDisplayString as u } from "vue";
2
+ import B from "./index126.js";
3
3
  /* empty css */
4
- import z from "./index127.js";
4
+ import L from "./index127.js";
5
5
  /* empty css */
6
- const B = {
6
+ import { useLocale as g } from "./index217.js";
7
+ const $ = {
7
8
  class: "bb-alert__inner-container",
8
9
  role: "alert"
9
- }, g = { class: "bb-alert__icon-container" }, $ = { class: "bb-alert__content" }, L = ["aria-label"], S = { class: "bb-alert__title" }, N = { class: "bb-alert__text" }, R = /* @__PURE__ */ h({
10
+ }, S = { class: "bb-alert__icon-container" }, N = { class: "bb-alert__content" }, E = ["aria-label"], M = { class: "bb-alert__title" }, P = { class: "bb-alert__text" }, x = /* @__PURE__ */ h({
10
11
  __name: "BbAlert",
11
12
  props: {
12
- closeLabel: { default: "Chiudi" },
13
+ closeLabel: {},
13
14
  showClose: { type: Boolean },
14
15
  text: {},
15
16
  theme: { default: "default" },
@@ -20,40 +21,40 @@ const B = {
20
21
  },
21
22
  emits: ["update:modelValue"],
22
23
  setup(b, { emit: p }) {
23
- const l = b, _ = p, o = v(
24
+ const l = b, _ = p, { t: f } = g(), o = k(
24
25
  l.modelValue === void 0 ? !0 : !!l.modelValue
25
26
  );
26
- k(
27
+ w(
27
28
  () => l.modelValue,
28
29
  (e) => {
29
30
  o.value !== !!e && (o.value = !!e);
30
31
  }
31
32
  );
32
- const f = () => {
33
+ const v = () => {
33
34
  o.value = !1, _("update:modelValue", !1);
34
35
  };
35
- return (e, a) => (s(), i(y, {
36
+ return (e, a) => (s(), r(B, {
36
37
  class: C(["bb-alert", { [`bb-alert--${e.theme}`]: e.theme }]),
37
38
  "model-value": o.value
38
39
  }, {
39
- default: w(() => [
40
- t("div", B, [
41
- t("div", g, [
42
- e.icon ? (s(), i(z, {
40
+ default: V(() => [
41
+ t("div", $, [
42
+ t("div", S, [
43
+ e.icon ? (s(), r(L, {
43
44
  key: 0,
44
45
  class: "bb-alert__icon",
45
46
  size: e.iconSize,
46
47
  type: e.icon
47
- }, null, 8, ["size", "type"])) : r("", !0)
48
+ }, null, 8, ["size", "type"])) : i("", !0)
48
49
  ]),
49
- t("div", $, [
50
- e.showClose ? (s(), V("button", {
50
+ t("div", N, [
51
+ e.showClose ? (s(), y("button", {
51
52
  key: 0,
52
- "aria-label": e.closeLabel,
53
+ "aria-label": e.closeLabel || z(f)("common.closeLabel").value,
53
54
  block: "",
54
55
  class: "bb-alert__close",
55
56
  type: "button",
56
- onClick: f
57
+ onClick: v
57
58
  }, a[0] || (a[0] = [
58
59
  t("svg", {
59
60
  fill: "none",
@@ -67,15 +68,15 @@ const B = {
67
68
  "stroke-width": "2"
68
69
  })
69
70
  ], -1)
70
- ]), 8, L)) : r("", !0),
71
- t("div", S, [
72
- n(e.$slots, "title", c(d({ text: e.title })), () => [
73
- m(u(e.title), 1)
71
+ ]), 8, E)) : i("", !0),
72
+ t("div", M, [
73
+ n(e.$slots, "title", c(m({ text: e.title })), () => [
74
+ d(u(e.title), 1)
74
75
  ])
75
76
  ]),
76
- t("div", N, [
77
- n(e.$slots, "text", c(d({ text: e.text })), () => [
78
- m(u(e.text), 1)
77
+ t("div", P, [
78
+ n(e.$slots, "text", c(m({ text: e.text })), () => [
79
+ d(u(e.text), 1)
79
80
  ])
80
81
  ])
81
82
  ])
@@ -86,5 +87,5 @@ const B = {
86
87
  }
87
88
  });
88
89
  export {
89
- R as default
90
+ x as default
90
91
  };
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index207.js";
2
+ import { isCssColor as _ } from "./index218.js";
3
3
  import { wait as C } from "./index130.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index207.js";
3
- import { isNil as B } from "./index250.js";
2
+ import { isCssColor as r } from "./index218.js";
3
+ import { isNil as B } from "./index257.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -1,18 +1,19 @@
1
- import { defineComponent as f, ref as _, computed as p, useAttrs as g, toRef as v, openBlock as t, createBlock as a, unref as c, mergeProps as B, withCtx as k, createVNode as C, createCommentVNode as l, createElementVNode as h, normalizeClass as L, renderSlot as S, createTextVNode as V, toDisplayString as x, createElementBlock as F } from "vue";
1
+ import { defineComponent as g, ref as v, computed as c, useAttrs as B, toRef as k, openBlock as t, createBlock as a, unref as l, mergeProps as C, withCtx as h, createVNode as L, createCommentVNode as r, createElementVNode as S, normalizeClass as x, renderSlot as V, createTextVNode as F, toDisplayString as d, createElementBlock as N } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import N from "./index13.js";
4
+ import P from "./index13.js";
5
5
  /* empty css */
6
- import r from "./index127.js";
6
+ import s from "./index127.js";
7
7
  /* empty css */
8
- import P from "./index129.js";
8
+ import T from "./index129.js";
9
9
  /* empty css */
10
- import { pickBy as $ } from "./index258.js";
11
- import { noop as A } from "./index259.js";
12
- const T = {
10
+ import { pickBy as $ } from "./index259.js";
11
+ import { noop as A } from "./index260.js";
12
+ import { useLocale as W } from "./index217.js";
13
+ const w = {
13
14
  key: 2,
14
15
  class: "bb-button__loading-label sr-only"
15
- }, H = /* @__PURE__ */ f({
16
+ }, M = /* @__PURE__ */ g({
16
17
  __name: "BbButton",
17
18
  props: {
18
19
  autoLoading: { type: Boolean },
@@ -49,19 +50,19 @@ const T = {
49
50
  to: {},
50
51
  type: {}
51
52
  },
52
- setup(d) {
53
- const e = d, i = _(0), n = p(
53
+ setup(u) {
54
+ const e = u, { t: b } = W(), i = v(0), n = c(
54
55
  () => e.loading || !!i.value && e.autoLoading
55
- ), u = p(() => e.disabled), { onClick: b = A } = g(), m = async (o) => {
56
+ ), m = c(() => e.disabled), { onClick: y = A } = B(), f = async (o) => {
56
57
  if (o.stopImmediatePropagation(), n.value && e.disabledWhileLoading) {
57
58
  e.type === "submit" && o.preventDefault();
58
59
  return;
59
60
  }
60
- i.value++, await b(o), i.value--;
61
- }, y = v(() => ({
61
+ i.value++, await y(o), i.value--;
62
+ }, _ = k(() => ({
62
63
  ...$(
63
64
  e,
64
- (o, s) => ![
65
+ (o, p) => ![
65
66
  "append:icon",
66
67
  "disabled",
67
68
  "autoLoading",
@@ -69,49 +70,49 @@ const T = {
69
70
  "icon",
70
71
  "loading",
71
72
  "prepend:icon"
72
- ].includes(s)
73
+ ].includes(p)
73
74
  )
74
75
  }));
75
- return (o, s) => (t(), a(c(N), B(y.value, {
76
+ return (o, p) => (t(), a(l(P), C(_.value, {
76
77
  "aria-disabled": n.value ? !0 : void 0,
77
78
  class: {
78
79
  "bb-button": !0,
79
80
  "bb-button--loading": n.value,
80
81
  "bb-button--icon": !!o.icon
81
82
  },
82
- disabled: u.value,
83
+ disabled: m.value,
83
84
  tabindex: n.value ? -1 : void 0,
84
- onClick: m
85
+ onClick: f
85
86
  }), {
86
- default: k(() => [
87
- C(c(P), { class: "bb-button__spinner" }),
88
- e.icon ? (t(), a(r, {
87
+ default: h(() => [
88
+ L(l(T), { class: "bb-button__spinner" }),
89
+ e.icon ? (t(), a(s, {
89
90
  key: 0,
90
91
  class: "bb-button__icon",
91
92
  type: e.icon
92
- }, null, 8, ["type"])) : e["prepend:icon"] ? (t(), a(r, {
93
+ }, null, 8, ["type"])) : e["prepend:icon"] ? (t(), a(s, {
93
94
  key: 1,
94
95
  class: "bb-button__prepend-icon",
95
96
  type: e["prepend:icon"]
96
- }, null, 8, ["type"])) : l("", !0),
97
- h("span", {
98
- class: L(["bb-button__content", { "sr-only": !!o.icon }])
97
+ }, null, 8, ["type"])) : r("", !0),
98
+ S("span", {
99
+ class: x(["bb-button__content", { "sr-only": !!o.icon }])
99
100
  }, [
100
- S(o.$slots, "default", {}, () => [
101
- V(x(o.text), 1)
101
+ V(o.$slots, "default", {}, () => [
102
+ F(d(o.text), 1)
102
103
  ])
103
104
  ], 2),
104
- n.value ? (t(), F("span", T, "caricamento")) : l("", !0),
105
- !o.icon && e["append:icon"] ? (t(), a(r, {
105
+ n.value ? (t(), N("span", w, d(l(b)("common.loadingText")), 1)) : r("", !0),
106
+ !o.icon && e["append:icon"] ? (t(), a(s, {
106
107
  key: 3,
107
108
  class: "bb-button__append-icon",
108
109
  type: e["append:icon"]
109
- }, null, 8, ["type"])) : l("", !0)
110
+ }, null, 8, ["type"])) : r("", !0)
110
111
  ]),
111
112
  _: 3
112
113
  }, 16, ["aria-disabled", "class", "disabled", "tabindex"]));
113
114
  }
114
115
  });
115
116
  export {
116
- H as default
117
+ M as default
117
118
  };
package/dist/index75.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as T, mergeProps as B, createElementVNode as H, renderSlot as w, normalizeProps as Y, guardReactiveProps as Z, unref as h, 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 "./index263.js";
2
+ import { findRightIndex as I } from "./index261.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index130.js";
5
5
  import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import V from "./index264.js";
9
- import se from "./index265.js";
8
+ import V from "./index262.js";
9
+ import se from "./index263.js";
10
10
  /* empty css */
11
11
  import j from "./index127.js";
12
12
  /* empty css */