bitboss-ui 2.0.105 → 2.0.106

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/BbTable/BbTable.vue.d.ts +2 -7
  8. package/dist/components/ListBox.vue.d.ts +0 -2
  9. package/dist/composables/useLocale.d.ts +1 -1
  10. package/dist/i18n/en.d.ts +45 -0
  11. package/dist/i18n/it.d.ts +45 -0
  12. package/dist/index100.js +9 -9
  13. package/dist/index111.js +109 -108
  14. package/dist/index119.js +2 -2
  15. package/dist/index121.js +55 -54
  16. package/dist/index123.js +1 -1
  17. package/dist/index125.js +14 -13
  18. package/dist/index127.js +1 -1
  19. package/dist/index128.js +1 -1
  20. package/dist/index129.js +1 -1
  21. package/dist/index13.js +1 -1
  22. package/dist/index131.js +1 -1
  23. package/dist/index132.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/index205.js +2 -115
  29. package/dist/index206.js +86 -2
  30. package/dist/index208.js +25 -4
  31. package/dist/index209.js +17 -2
  32. package/dist/index21.js +110 -103
  33. package/dist/index210.js +46 -279
  34. package/dist/index211.js +15 -16
  35. package/dist/index212.js +3 -16
  36. package/dist/index213.js +12 -19
  37. package/dist/index214.js +16 -19
  38. package/dist/index215.js +2 -27
  39. package/dist/index216.js +4 -3
  40. package/dist/index217.js +2 -2
  41. package/dist/index219.js +3 -250
  42. package/dist/index220.js +41 -52
  43. package/dist/index221.js +5 -43
  44. package/dist/index222.js +7 -5
  45. package/dist/index223.js +10 -58
  46. package/dist/index224.js +12 -83
  47. package/dist/index225.js +55 -0
  48. package/dist/index227.js +13 -25
  49. package/dist/index228.js +5 -17
  50. package/dist/index229.js +15 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +16 -15
  53. package/dist/index231.js +19 -12
  54. package/dist/index232.js +15 -16
  55. package/dist/index233.js +19 -3
  56. package/dist/index234.js +26 -40
  57. package/dist/index235.js +2 -6
  58. package/dist/index236.js +250 -7
  59. package/dist/index237.js +50 -10
  60. package/dist/index238.js +39 -48
  61. package/dist/index239.js +7 -0
  62. package/dist/index240.js +60 -13
  63. package/dist/index241.js +20 -3
  64. package/dist/index242.js +3 -125
  65. package/dist/index243.js +123 -122
  66. package/dist/index244.js +125 -2
  67. package/dist/index245.js +2 -20
  68. package/dist/index246.js +2 -2
  69. package/dist/index247.js +2 -2
  70. package/dist/index248.js +114 -3
  71. package/dist/index249.js +3 -2
  72. package/dist/index25.js +44 -41
  73. package/dist/index250.js +2 -2
  74. package/dist/index251.js +18 -2
  75. package/dist/index252.js +105 -17
  76. package/dist/{index255.js → index254.js} +2 -2
  77. package/dist/index256.js +14 -0
  78. package/dist/index257.js +2 -12
  79. package/dist/index258.js +2 -10
  80. package/dist/index259.js +9 -2
  81. package/dist/index260.js +3 -6
  82. package/dist/index261.js +3 -16
  83. package/dist/index262.js +17 -9
  84. package/dist/index263.js +8 -8
  85. package/dist/index264.js +28 -23
  86. package/dist/index265.js +4 -89
  87. package/dist/index266.js +433 -0
  88. package/dist/index267.js +2 -4
  89. package/dist/index268.js +88 -5
  90. package/dist/index269.js +7 -2
  91. package/dist/index27.js +1 -1
  92. package/dist/index270.js +11 -2
  93. package/dist/index271.js +3 -2
  94. package/dist/index273.js +7 -2
  95. package/dist/index274.js +200 -2
  96. package/dist/index275.js +281 -2
  97. package/dist/index276.js +6 -2
  98. package/dist/index277.js +2 -2
  99. package/dist/index278.js +2 -2
  100. package/dist/index279.js +2 -28
  101. package/dist/index280.js +2 -22
  102. package/dist/index282.js +2 -7
  103. package/dist/index283.js +2 -3
  104. package/dist/index284.js +2 -7
  105. package/dist/index285.js +2 -11
  106. package/dist/index286.js +2 -17
  107. package/dist/index287.js +2 -9
  108. package/dist/index288.js +20 -429
  109. package/dist/index29.js +3 -3
  110. package/dist/index290.js +8 -88
  111. package/dist/index291.js +23 -3
  112. package/dist/index292.js +91 -0
  113. package/dist/index294.js +171 -195
  114. package/dist/index297.js +22 -176
  115. package/dist/index299.js +11 -0
  116. package/dist/index300.js +6 -8
  117. package/dist/index301.js +15 -435
  118. package/dist/index302.js +8 -127
  119. package/dist/index303.js +224 -3
  120. package/dist/index304.js +436 -3
  121. package/dist/index305.js +126 -212
  122. package/dist/index306.js +3 -3
  123. package/dist/index307.js +3 -3
  124. package/dist/index308.js +212 -56
  125. package/dist/index309.js +67 -7
  126. package/dist/index31.js +2 -2
  127. package/dist/index310.js +2 -19
  128. package/dist/index311.js +5 -66
  129. package/dist/index312.js +4 -6
  130. package/dist/index313.js +8 -2
  131. package/dist/index314.js +6 -4
  132. package/dist/index315.js +18 -7
  133. package/dist/index316.js +45 -0
  134. package/dist/index317.js +47 -2
  135. package/dist/index318.js +7 -5
  136. package/dist/index319.js +32 -2
  137. package/dist/index321.js +2 -32
  138. package/dist/index322.js +3 -47
  139. package/dist/index323.js +3 -2
  140. package/dist/index324.js +49 -471
  141. package/dist/index325.js +49 -0
  142. package/dist/index326.js +2 -424
  143. package/dist/index327.js +479 -46
  144. package/dist/index329.js +426 -0
  145. package/dist/index33.js +45 -45
  146. package/dist/index330.js +49 -0
  147. package/dist/index35.js +56 -55
  148. package/dist/index37.js +166 -165
  149. package/dist/index39.js +5 -5
  150. package/dist/index41.js +2 -2
  151. package/dist/index43.js +70 -71
  152. package/dist/index45.js +7 -7
  153. package/dist/index47.js +2 -2
  154. package/dist/index49.js +2 -2
  155. package/dist/index53.js +28 -27
  156. package/dist/index55.js +1 -1
  157. package/dist/index57.js +2 -2
  158. package/dist/index61.js +32 -31
  159. package/dist/index75.js +3 -3
  160. package/dist/index77.js +87 -86
  161. package/dist/index79.js +2 -2
  162. package/dist/index81.js +1 -1
  163. package/dist/index84.js +45 -44
  164. package/dist/index86.js +67 -66
  165. package/dist/index88.js +69 -67
  166. package/dist/index90.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/index207.js +0 -4
  169. package/dist/index226.js +0 -10
  170. package/dist/index253.js +0 -108
  171. package/dist/index289.js +0 -4
  172. package/dist/index293.js +0 -226
  173. package/dist/index298.js +0 -24
  174. /package/dist/{index272.js → index281.js} +0 -0
  175. /package/dist/{index328.js → index331.js} +0 -0
package/dist/index121.js CHANGED
@@ -1,15 +1,16 @@
1
- import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
2
- import { useFloating as q, arrow as A } from "./index242.js";
3
- import { useId as G } from "./index8.js";
4
- import { wait as _ } from "./index130.js";
5
- import J from "./index13.js";
1
+ import { defineComponent as V, ref as a, watch as H, computed as z, openBlock as B, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as E, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as C, createBlock as j, createCommentVNode as q } from "vue";
2
+ import { useFloating as A, arrow as G } from "./index243.js";
3
+ import { useId as J } from "./index8.js";
4
+ import { wait as L } from "./index130.js";
5
+ import K from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index233.js";
8
- import { waitFor as K } from "./index235.js";
9
- import Q from "./index265.js";
7
+ import { throttle as m } from "./index219.js";
8
+ import { waitFor as Q } from "./index221.js";
9
+ import X from "./index292.js";
10
10
  /* empty css */
11
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index247.js";
12
- const pe = /* @__PURE__ */ N({
11
+ import { useLocale as Y } from "./index224.js";
12
+ import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./index247.js";
13
+ const me = /* @__PURE__ */ V({
13
14
  __name: "BbTooltip",
14
15
  props: {
15
16
  arrowPadding: { default: 10 },
@@ -24,75 +25,75 @@ const pe = /* @__PURE__ */ N({
24
25
  theme: { default: "default" },
25
26
  transitionDuration: { default: 250 }
26
27
  },
27
- setup(D) {
28
- const t = D, v = `bb_${t.id ?? G().id.value}`, s = a(), u = a(), L = a(), { placement: b, middlewareData: M } = q(s, u, {
28
+ setup(_) {
29
+ const t = _, { t: D } = Y(), v = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), M = a(), { placement: b, middlewareData: P } = A(s, d, {
29
30
  placement: t.placement,
30
- whileElementsMounted: X,
31
+ whileElementsMounted: Z,
31
32
  middleware: [
32
- Y(),
33
- Z({ padding: t.padding }),
34
- A({
35
- element: L,
33
+ x(),
34
+ ee({ padding: t.padding }),
35
+ G({
36
+ element: M,
36
37
  padding: t.arrowPadding
37
38
  }),
38
- x()
39
+ te()
39
40
  ]
40
41
  });
41
42
  let w = () => {
42
43
  };
43
- const g = a(!0), n = a(!1), r = a(!1), i = a(!1), d = a(!0), h = () => {
44
- r.value || n.value || t.disabled || (F(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", y, { passive: !0 }));
45
- }, P = h, k = m((e) => {
44
+ const g = a(!0), n = a(!1), r = a(!1), l = a(!1), p = a(!0), h = () => {
45
+ r.value || n.value || t.disabled || (T(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", y, { passive: !0 }));
46
+ }, $ = h, k = m((e) => {
46
47
  const o = e.target;
47
48
  if (o && o instanceof HTMLElement) {
48
49
  let f = !0;
49
- s.value && s.value.contains(o) && (f = !1), u.value && u.value.contains(o) && (f = !1), f && l();
50
+ s.value && s.value.contains(o) && (f = !1), d.value && d.value.contains(o) && (f = !1), f && i();
50
51
  }
51
52
  }, t.transitionDuration), y = (e) => {
52
- r.value && e.key === "Escape" && l();
53
- }, $ = () => {
54
- g.value = !1, l();
55
- }, O = a(!1), F = m(async () => {
56
- g.value && (O.value = !0, d.value = !1, i.value = !1, n.value = !0, await _(50), r.value = !0, n.value = !1, w = V(
53
+ r.value && e.key === "Escape" && i();
54
+ }, O = () => {
55
+ g.value = !1, i();
56
+ }, F = a(!1), T = m(async () => {
57
+ g.value && (F.value = !0, p.value = !1, l.value = !1, n.value = !0, await L(50), r.value = !0, n.value = !1, w = H(
57
58
  () => {
58
59
  var e;
59
- return (e = M.value.hide) == null ? void 0 : e.referenceHidden;
60
+ return (e = P.value.hide) == null ? void 0 : e.referenceHidden;
60
61
  },
61
62
  async (e) => {
62
- !i.value && !d.value && e && await l();
63
+ !l.value && !p.value && e && await i();
63
64
  }
64
65
  ));
65
- }, t.transitionDuration), l = m(async () => {
66
- await K(() => !n.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", y), r.value = !1, n.value = !1, i.value = !0, await _(t.transitionDuration), i.value = !1, d.value = !0, w();
67
- }, t.transitionDuration), T = H(() => ({
66
+ }, t.transitionDuration), i = m(async () => {
67
+ await Q(() => !n.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", y), r.value = !1, n.value = !1, l.value = !0, await L(t.transitionDuration), l.value = !1, p.value = !0, w();
68
+ }, t.transitionDuration), N = z(() => ({
68
69
  class: {
69
70
  "bb-tooltip--block": t.block,
70
71
  [`bb-tooltip--${t.theme}`]: t.theme
71
72
  }
72
73
  }));
73
- return (e, o) => (B(), z("span", I({ class: "bb-tooltip" }, T.value), [
74
- p("span", {
74
+ return (e, o) => (B(), I("span", R({ class: "bb-tooltip" }, N.value), [
75
+ c("span", {
75
76
  ref_key: "wrapper",
76
77
  ref: s,
77
78
  class: "bb-tooltip__wrapper"
78
79
  }, [
79
- C(e.$slots, "activator", R(S({
80
+ E(e.$slots, "activator", S(U({
80
81
  props: {
81
82
  "aria-describedby": v,
82
83
  onMouseenter: h,
83
- onFocus: c(P),
84
- onBlur: c(l),
84
+ onFocus: u($),
85
+ onBlur: u(i),
85
86
  disabled: e.disabled
86
87
  },
87
- closed: d.value,
88
- closing: i.value,
88
+ closed: p.value,
89
+ closing: l.value,
89
90
  disabled: e.disabled,
90
91
  open: r.value,
91
92
  opening: n.value,
92
- placement: c(b)
93
+ placement: u(b)
93
94
  })))
94
95
  ], 512),
95
- U(Q, {
96
+ W(X, {
96
97
  "arrow-padding": e.arrowPadding,
97
98
  "base-class": "bb-tooltip",
98
99
  "container-attributes": {
@@ -102,32 +103,32 @@ const pe = /* @__PURE__ */ N({
102
103
  offset: e.offset,
103
104
  open: r.value,
104
105
  padding: e.padding,
105
- placement: c(b),
106
+ placement: u(b),
106
107
  theme: e.theme,
107
108
  "transition-duration": e.transitionDuration,
108
109
  wrapper: s.value
109
110
  }, {
110
- default: E(() => [
111
- p("span", {
111
+ default: C(() => [
112
+ c("span", {
112
113
  ref_key: "content",
113
- ref: u,
114
+ ref: d,
114
115
  class: "bb-tooltip__content"
115
116
  }, [
116
- e.showClose ? (B(), W(J, {
117
+ e.showClose ? (B(), j(K, {
117
118
  key: 0,
118
119
  "aria-hidden": "true",
119
- "aria-label": "Chiudi",
120
+ "aria-label": u(D)("common.closeLabel").value,
120
121
  class: "bb-tooltip__close",
121
122
  tabindex: "-1",
122
- onClick: $
123
+ onClick: O
123
124
  }, {
124
- default: E(() => o[0] || (o[0] = [
125
- p("svg", {
125
+ default: C(() => o[0] || (o[0] = [
126
+ c("svg", {
126
127
  fill: "none",
127
128
  viewBox: "0 0 24 24",
128
129
  xmlns: "http://www.w3.org/2000/svg"
129
130
  }, [
130
- p("path", {
131
+ c("path", {
131
132
  d: "M23 23L1 1M23 1L1 23",
132
133
  stroke: "currentColor",
133
134
  "stroke-linecap": "round",
@@ -136,8 +137,8 @@ const pe = /* @__PURE__ */ N({
136
137
  ], -1)
137
138
  ])),
138
139
  _: 1
139
- })) : j("", !0),
140
- C(e.$slots, "default")
140
+ }, 8, ["aria-label"])) : q("", !0),
141
+ E(e.$slots, "default")
141
142
  ], 512)
142
143
  ]),
143
144
  _: 3
@@ -146,5 +147,5 @@ const pe = /* @__PURE__ */ N({
146
147
  }
147
148
  });
148
149
  export {
149
- pe as default
150
+ me as default
150
151
  };
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
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 "./index318.js";
2
+ import { flattenTree as T } from "./index311.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index125.js CHANGED
@@ -1,28 +1,29 @@
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({
1
+ import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
2
+ import { useLocale as f } from "./index224.js";
3
+ const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
3
4
  __name: "BbChip",
4
5
  props: {
5
6
  text: {},
6
7
  clearable: { type: Boolean, default: !0 },
7
- clearableLabel: { default: "Elimina" }
8
+ clearableLabel: {}
8
9
  },
9
10
  emits: ["click:clear"],
10
- setup(h, { emit: r }) {
11
- const n = r, s = (e) => {
11
+ setup(w, { emit: r }) {
12
+ const n = r, { t: s } = f(), c = (e) => {
12
13
  n("click:clear", e);
13
14
  };
14
- return (e, l) => (o(), a("span", u, [
15
- t("span", _, [
16
- i(e.$slots, "default", {}, () => [
17
- p(b(e.text), 1)
15
+ return (e, l) => (o(), a("span", h, [
16
+ t("span", L, [
17
+ p(e.$slots, "default", {}, () => [
18
+ b(m(e.text), 1)
18
19
  ])
19
20
  ]),
20
21
  e.clearable ? (o(), a("button", {
21
22
  key: 0,
22
- "aria-label": e.clearableLabel,
23
+ "aria-label": e.clearableLabel || u(s)("chip.clearLabel").value,
23
24
  class: "bb-chip__clear-button",
24
25
  type: "button",
25
- onClick: d(s, ["stop", "prevent"])
26
+ onClick: d(c, ["stop", "prevent"])
26
27
  }, l[0] || (l[0] = [
27
28
  t("svg", {
28
29
  viewBox: "0 0 24 24",
@@ -33,10 +34,10 @@ const u = { class: "bb-chip" }, _ = { class: "bb-chip__content" }, f = ["aria-la
33
34
  fill: "currentColor"
34
35
  })
35
36
  ], -1)
36
- ]), 8, f)) : m("", !0)
37
+ ]), 8, k)) : _("", !0)
37
38
  ]));
38
39
  }
39
40
  });
40
41
  export {
41
- k as default
42
+ B as default
42
43
  };
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index207.js";
2
+ import { isCssColor as I } from "./index215.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index233.js";
2
+ import { throttle as g } from "./index219.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index129.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index207.js";
2
+ import { isCssColor as u } from "./index215.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, getCurrentInstance as p, shallowRef as C, watch as x, computed as d, openBlock as S, createBlock as L, resolveDynamicComponent as B, unref as N, mergeProps as $, withCtx as F, renderSlot as w, createTextVNode as A, toDisplayString as P, resolveComponent as f } from "vue";
2
2
  import { _config as a } from "./index4.js";
3
3
  import { useLogger as m } from "./index218.js";
4
- import { hash as v } from "./index216.js";
4
+ import { hash as v } from "./index212.js";
5
5
  const q = /* @__PURE__ */ h({
6
6
  __name: "BaseButton",
7
7
  props: {
package/dist/index131.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index206.js";
1
+ import { clamp as o } from "./index205.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index132.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index205.js";
2
- import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./index205.js";
1
+ import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index248.js";
2
+ import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./index248.js";
3
3
  import { computed as w, watch as z, ref as S, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function L(l) {
5
5
  var o;
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index314.js";
2
- import { isPlainObject as c } from "./index315.js";
1
+ import { isArray as p } from "./index312.js";
2
+ import { isPlainObject as c } from "./index313.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,10 +1,11 @@
1
- import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as B, withCtx as n, renderSlot as r, createElementVNode as s, normalizeStyle as V, withModifiers as H, withDirectives as E, mergeProps as q, unref as $ } from "vue";
2
- import z from "./index238.js";
1
+ import { defineComponent as v, ref as h, computed as g, watchPostEffect as C, openBlock as w, createElementBlock as B, Fragment as V, createVNode as t, normalizeClass as H, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as E, withModifiers as q, withDirectives as I, mergeProps as $, unref as d } from "vue";
2
+ import M from "./index225.js";
3
3
  /* empty css */
4
- import I from "./index240.js";
5
- import { vMaska as M } from "./index245.js";
6
- import { isHex as D } from "./index248.js";
7
- const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
4
+ import L from "./index227.js";
5
+ import { vMaska as z } from "./index241.js";
6
+ import { isHex as D } from "./index242.js";
7
+ import { useLocale as F } from "./index224.js";
8
+ const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], N = ["aria-invalid", "aria-label", "disabled", "required"], J = /* @__PURE__ */ v({
8
9
  __name: "BaseColorInput",
9
10
  props: {
10
11
  "append:icon": {},
@@ -24,15 +25,15 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
24
25
  required: { type: Boolean }
25
26
  },
26
27
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
27
- setup(t, { emit: p }) {
28
- const a = t, o = p, i = y(), u = v(() => ({
28
+ setup(p, { emit: u }) {
29
+ const a = p, o = u, { t: c } = F(), i = h(), m = g(() => ({
29
30
  "bb-base-color-input": !0,
30
31
  "bb-base-color-input--disabled": a.disabled,
31
32
  "bb-base-color-input--errors": a.hasErrors,
32
33
  "bb-base-color-input--loading": a.loading,
33
34
  "bb-base-color-input--readonly": a.readonly,
34
35
  "bb-base-color-input--compact": a.compact
35
- })), c = {
36
+ })), b = {
36
37
  onBlur: (e) => o("blur", e),
37
38
  onChange: (e) => o("change", e),
38
39
  onClick: (e) => o("click", e),
@@ -44,57 +45,57 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
44
45
  onMousedown: (e) => o("mousedown", e),
45
46
  onMouseup: (e) => o("mouseup", e),
46
47
  onMaska: (e) => {
47
- const l = e.detail;
48
- D(l.masked) ? o("update:modelValue", l.masked) : l.masked === "" && o("update:modelValue", null);
48
+ const r = e.detail;
49
+ D(r.masked) ? o("update:modelValue", r.masked) : r.masked === "" && o("update:modelValue", null);
49
50
  }
50
- }, m = () => {
51
+ }, f = () => {
51
52
  var e;
52
53
  (e = i.value) == null || e.click();
53
- }, b = {
54
+ }, k = {
54
55
  mask: "!#HHHHHH",
55
56
  tokens: {
56
57
  H: { pattern: /[0-9a-fA-F]/ }
57
58
  },
58
59
  eager: !0
59
- }, f = (e) => {
60
+ }, y = (e) => {
60
61
  e.target instanceof HTMLInputElement && o("update:modelValue", e.target.value);
61
62
  };
62
- return h(() => {
63
+ return C(() => {
63
64
  i.value && (i.value.value = a.modelValue ?? "");
64
- }), (e, l) => (g(), C(w, null, [
65
- d(I, {
66
- class: B(u.value)
65
+ }), (e, r) => (w(), B(V, null, [
66
+ t(L, {
67
+ class: H(m.value)
67
68
  }, {
68
69
  "prepend-outer": n(() => [
69
- r(e.$slots, "prepend-outer")
70
+ l(e.$slots, "prepend-outer")
70
71
  ]),
71
72
  "append-outer": n(() => [
72
- r(e.$slots, "append-outer")
73
+ l(e.$slots, "append-outer")
73
74
  ]),
74
75
  default: n(() => [
75
- d(z, {
76
+ t(M, {
76
77
  "append:icon": a["append:icon"],
77
78
  "prepend:icon": a["prepend:icon"]
78
79
  }, {
79
80
  prepend: n(() => [
80
- r(e.$slots, "prepend")
81
+ l(e.$slots, "prepend")
81
82
  ]),
82
83
  prefix: n(() => [
83
- r(e.$slots, "prefix")
84
+ l(e.$slots, "prefix")
84
85
  ]),
85
86
  append: n(() => [
86
87
  s("span", {
87
88
  class: "bb-base-color-input__indicator",
88
- style: V({ backgroundColor: a.modelValue ?? void 0 }),
89
- onClick: H(m, ["stop"])
89
+ style: E({ backgroundColor: a.modelValue ?? void 0 }),
90
+ onClick: q(f, ["stop"])
90
91
  }, null, 4),
91
- r(e.$slots, "append")
92
+ l(e.$slots, "append")
92
93
  ]),
93
94
  suffix: n(() => [
94
- r(e.$slots, "suffix")
95
+ l(e.$slots, "suffix")
95
96
  ]),
96
97
  default: n(() => [
97
- E(s("input", q(c, {
98
+ I(s("input", $(b, {
98
99
  id: e.id,
99
100
  ref: "input",
100
101
  "aria-describedby": e.ariaDescribedby,
@@ -109,32 +110,32 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
109
110
  required: e.required,
110
111
  size: "1",
111
112
  value: e.modelValue
112
- }), null, 16, F), [
113
- [$(M), b]
113
+ }), null, 16, P), [
114
+ [d(z), k]
114
115
  ]),
115
116
  s("input", {
116
117
  ref_key: "picker",
117
118
  ref: i,
118
119
  "aria-hidden": "true",
119
120
  "aria-invalid": e.hasErrors ? !0 : void 0,
120
- "aria-label": "Seleziona il colore dalla tavolozza",
121
+ "aria-label": d(c)("colorInput.paletteLabel").value,
121
122
  class: "bb-base-color-input__picker",
122
123
  disabled: e.disabled || e.readonly,
123
124
  required: e.required,
124
125
  tabindex: "-1",
125
126
  type: "color",
126
- onInput: f
127
- }, null, 40, P)
127
+ onInput: y
128
+ }, null, 40, N)
128
129
  ]),
129
130
  _: 3
130
131
  }, 8, ["append:icon", "prepend:icon"])
131
132
  ]),
132
133
  _: 3
133
134
  }, 8, ["class"]),
134
- l[0] || (l[0] = s("span", null, null, -1))
135
+ r[0] || (r[0] = s("span", null, null, -1))
135
136
  ], 64));
136
137
  }
137
138
  });
138
139
  export {
139
- T as default
140
+ J as default
140
141
  };
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index207.js";
3
- import { when as N } from "./index208.js";
4
- import { booleanishToBoolean as S } from "./index209.js";
2
+ import { isCssColor as y } from "./index215.js";
3
+ import { when as N } from "./index216.js";
4
+ import { booleanishToBoolean as S } from "./index217.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"