bitboss-ui 2.0.51 → 2.0.52

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 (153) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +7 -0
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +6 -1
  3. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +3 -0
  4. package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -0
  5. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -0
  6. package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -0
  7. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +3 -0
  8. package/dist/components/BbTable/BbTable.vue.d.ts +1 -0
  9. package/dist/components/BbTable/types.d.ts +4 -0
  10. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  11. package/dist/composables/useOptions.d.ts +1 -0
  12. package/dist/index100.js +12 -10
  13. package/dist/index106.js +3 -1
  14. package/dist/index108.js +1 -1
  15. package/dist/index110.js +66 -64
  16. package/dist/index112.js +3 -1
  17. package/dist/index118.js +1 -1
  18. package/dist/index120.js +4 -4
  19. package/dist/index122.js +1 -1
  20. package/dist/index126.js +1 -1
  21. package/dist/index127.js +1 -1
  22. package/dist/index128.js +1 -1
  23. package/dist/index13.js +1 -1
  24. package/dist/index130.js +1 -1
  25. package/dist/index132.js +2 -2
  26. package/dist/index133.js +2 -2
  27. package/dist/index15.js +4 -4
  28. package/dist/index17.js +3 -3
  29. package/dist/index19.js +6 -4
  30. package/dist/index204.js +116 -2
  31. package/dist/index205.js +281 -116
  32. package/dist/index206.js +14 -124
  33. package/dist/index207.js +16 -5
  34. package/dist/index208.js +17 -123
  35. package/dist/index209.js +18 -18
  36. package/dist/index21.js +14 -14
  37. package/dist/index210.js +24 -13
  38. package/dist/index211.js +3 -16
  39. package/dist/index212.js +2 -2
  40. package/dist/index213.js +8 -2
  41. package/dist/index214.js +248 -40
  42. package/dist/index215.js +50 -18
  43. package/dist/index216.js +43 -5
  44. package/dist/index217.js +4 -52
  45. package/dist/index218.js +51 -0
  46. package/dist/index219.js +2 -13
  47. package/dist/index220.js +4 -5
  48. package/dist/index221.js +2 -369
  49. package/dist/index222.js +162 -3
  50. package/dist/index223.js +84 -4
  51. package/dist/index225.js +3 -7
  52. package/dist/index226.js +41 -8
  53. package/dist/index227.js +6 -2
  54. package/dist/index228.js +7 -4
  55. package/dist/index229.js +2 -2
  56. package/dist/index23.js +15 -15
  57. package/dist/index230.js +3 -19
  58. package/dist/index231.js +124 -25
  59. package/dist/index232.js +125 -3
  60. package/dist/index233.js +2 -249
  61. package/dist/index234.js +18 -50
  62. package/dist/index235.js +48 -39
  63. package/dist/index237.js +13 -49
  64. package/dist/index238.js +5 -158
  65. package/dist/index239.js +368 -83
  66. package/dist/index240.js +6 -0
  67. package/dist/index241.js +2 -2
  68. package/dist/index242.js +2 -18
  69. package/dist/index243.js +17 -105
  70. package/dist/index244.js +108 -0
  71. package/dist/{index245.js → index246.js} +1 -1
  72. package/dist/index25.js +5 -5
  73. package/dist/index250.js +1 -1
  74. package/dist/index253.js +3 -3
  75. package/dist/index255.js +8 -280
  76. package/dist/index258.js +2 -2
  77. package/dist/index262.js +2 -126
  78. package/dist/index263.js +2 -431
  79. package/dist/index264.js +2 -176
  80. package/dist/index265.js +2 -3
  81. package/dist/index266.js +4 -0
  82. package/dist/index267.js +28 -7
  83. package/dist/index268.js +6 -6
  84. package/dist/index27.js +1 -1
  85. package/dist/index270.js +7 -224
  86. package/dist/index271.js +3 -199
  87. package/dist/index272.js +3 -436
  88. package/dist/index273.js +11 -126
  89. package/dist/index274.js +7 -87
  90. package/dist/index275.js +9 -4
  91. package/dist/index276.js +17 -9
  92. package/dist/index277.js +4 -2
  93. package/dist/index278.js +431 -2
  94. package/dist/index279.js +89 -2
  95. package/dist/index280.js +224 -2
  96. package/dist/index281.js +200 -2
  97. package/dist/index282.js +3 -2
  98. package/dist/index284.js +2 -22
  99. package/dist/index285.js +128 -0
  100. package/dist/index286.js +176 -3
  101. package/dist/index287.js +22 -12
  102. package/dist/index289.js +5 -9
  103. package/dist/index29.js +3 -3
  104. package/dist/index290.js +64 -15
  105. package/dist/index291.js +2 -3
  106. package/dist/index292.js +436 -3
  107. package/dist/index293.js +126 -210
  108. package/dist/index294.js +2 -65
  109. package/dist/index295.js +3 -2
  110. package/dist/index296.js +211 -33
  111. package/dist/index297.js +79 -5
  112. package/dist/index299.js +4 -79
  113. package/dist/index300.js +6 -0
  114. package/dist/index301.js +59 -4
  115. package/dist/index302.js +7 -4
  116. package/dist/index303.js +6 -58
  117. package/dist/index304.js +18 -3
  118. package/dist/index305.js +5 -5
  119. package/dist/index306.js +7 -6
  120. package/dist/index307.js +3 -6
  121. package/dist/index308.js +32 -18
  122. package/dist/index309.js +10 -46
  123. package/dist/index31.js +2 -2
  124. package/dist/index310.js +2 -11
  125. package/dist/index311.js +47 -2
  126. package/dist/{index313.js → index312.js} +1 -1
  127. package/dist/index314.js +1 -1
  128. package/dist/index315.js +2 -47
  129. package/dist/index316.js +47 -2
  130. package/dist/index33.js +2 -2
  131. package/dist/index35.js +3 -3
  132. package/dist/index37.js +72 -70
  133. package/dist/index39.js +4 -4
  134. package/dist/index41.js +2 -2
  135. package/dist/index43.js +4 -2
  136. package/dist/index45.js +53 -46
  137. package/dist/index47.js +2 -2
  138. package/dist/index49.js +2 -2
  139. package/dist/index55.js +1 -1
  140. package/dist/index57.js +1 -1
  141. package/dist/index65.js +3 -1
  142. package/dist/index81.js +1 -1
  143. package/dist/index84.js +2 -2
  144. package/dist/index86.js +1 -1
  145. package/dist/index88.js +2 -2
  146. package/dist/index90.js +1 -1
  147. package/package.json +2 -2
  148. package/dist/index224.js +0 -5
  149. package/dist/index236.js +0 -7
  150. package/dist/index247.js +0 -4
  151. package/dist/index283.js +0 -30
  152. package/dist/index288.js +0 -11
  153. package/dist/index298.js +0 -10
package/dist/index37.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Fe, defineAsyncComponent as xe, ref as v, computed as y, toRef as I, openBlock as h, createBlock as $, normalizeClass as W, withCtx as s, renderSlot as p, unref as i, createVNode as x, createElementVNode as S, createElementBlock as T, Fragment as R, toDisplayString as Me, withDirectives as Ne, isRef as He, withModifiers as d, withKeys as g, vModelDynamic as Pe, renderList as ze, mergeProps as J, Teleport as _e, normalizeStyle as Qe, createCommentVNode as Ke, nextTick as Ue } from "vue";
1
+ import { defineComponent as xe, defineAsyncComponent as Fe, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as s, renderSlot as p, unref as i, createVNode as F, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Me, withDirectives as Ne, isRef as He, withModifiers as d, withKeys as g, vModelDynamic as Pe, renderList as ze, mergeProps as J, Teleport as _e, normalizeStyle as Qe, createCommentVNode as Ke, nextTick as Ue } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { useId as We } from "./index8.js";
@@ -6,27 +6,27 @@ import { useMobile as Re } from "./index9.js";
6
6
  import Je from "./index127.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Ye } from "./index134.js";
9
- import { last as je } from "./index213.js";
10
- import { matchAnyKey as Y } from "./index242.js";
11
- import { useFloating as Ge } from "./index206.js";
9
+ import { last as je } from "./index212.js";
10
+ import { matchAnyKey as Y } from "./index243.js";
11
+ import { useFloating as Ge } from "./index231.js";
12
12
  import { useIntersectionObserver as Xe } from "./index132.js";
13
- import { useLogger as Ze } from "./index226.js";
14
- import { useOptions as et } from "./index238.js";
15
- import { wait as A } from "./index131.js";
16
- import { when as tt } from "./index228.js";
17
- import ot from "./index243.js";
13
+ import { useLogger as Ze } from "./index213.js";
14
+ import { useOptions as et } from "./index222.js";
15
+ import { wait as L } from "./index131.js";
16
+ import { when as tt } from "./index220.js";
17
+ import ot from "./index244.js";
18
18
  /* empty css */
19
- import nt from "./index245.js";
19
+ import nt from "./index246.js";
20
20
  /* empty css */
21
- import lt from "./index217.js";
21
+ import lt from "./index235.js";
22
22
  /* empty css */
23
- import at from "./index219.js";
24
- import { waitFor as it } from "./index216.js";
25
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index221.js";
23
+ import at from "./index237.js";
24
+ import { waitFor as it } from "./index227.js";
25
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index239.js";
26
26
  const dt = { class: "bb-base-select__input-container" }, ct = {
27
27
  key: 1,
28
28
  class: "bb-base-select__max-reached"
29
- }, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Ht = /* @__PURE__ */ Fe({
29
+ }, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Ht = /* @__PURE__ */ xe({
30
30
  __name: "BaseSelect",
31
31
  props: {
32
32
  addOptions: { type: Boolean },
@@ -49,6 +49,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
49
49
  loading: { type: Boolean },
50
50
  loadingText: { default: "Caricamento..." },
51
51
  max: { default: 1 / 0 },
52
+ maxSelectedLabels: { default: 1 / 0 },
52
53
  modelValue: {},
53
54
  modelValueDebounceTime: { default: 0 },
54
55
  multiple: { type: Boolean },
@@ -67,10 +68,10 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
67
68
  },
68
69
  emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
69
70
  setup(j, { emit: G }) {
70
- const t = j, b = G;
71
+ const t = j, h = G;
71
72
  if (t.multiple && !Array.isArray(t.modelValue))
72
73
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
73
- const X = xe(() => import("./index241.js")), q = v(null), B = v(null), a = v(null), M = v(null), N = v(null), u = y(
74
+ const X = Fe(() => import("./index242.js")), A = v(null), B = v(null), a = v(null), M = v(null), N = v(null), u = y(
74
75
  () => t.comma ? M.value : N.value
75
76
  ), { isMobile: Z } = Re(), ee = y(
76
77
  () => t.allowWriting === "not-mobile" && Z.value ? "none" : void 0
@@ -97,28 +98,28 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
97
98
  zIndex: "10"
98
99
  };
99
100
  return B.value && (e.width = `${(o = B.value) == null ? void 0 : o.$el.clientWidth}px`), e;
100
- }), E = v(null), L = () => {
101
- E.value instanceof HTMLInputElement && E.value.focus();
101
+ }), q = v(null), E = () => {
102
+ q.value instanceof HTMLInputElement && q.value.focus();
102
103
  }, ne = async (e) => {
103
- b("focus", e), Te(), document.addEventListener("click", k), document.addEventListener("focusin", k);
104
+ h("focus", e), Te(), document.addEventListener("click", k), document.addEventListener("focusin", k);
104
105
  }, le = () => {
105
106
  t.prefill === "focus" && !Be.value && !Oe.value && we();
106
107
  }, ae = async (e) => {
107
- b("blur", e);
108
- }, ie = (e) => b("change", e), re = (e) => {
108
+ h("blur", e);
109
+ }, ie = (e) => h("change", e), re = (e) => {
109
110
  var o;
110
- b("input", e), l.value === "" && (t.multiple || Ce(null)), (o = u.value) == null || o.blur(), Ve();
111
+ h("input", e), l.value === "" && (t.multiple || Ce(null)), (o = u.value) == null || o.blur(), Ie();
111
112
  }, k = async (e) => {
112
- if (e.target instanceof Node && q.value && a.value && !q.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
113
- O(), Ae(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await A(t.transitionDuration), ye();
113
+ if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
114
+ O(), Le(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await L(t.transitionDuration), ye();
114
115
  return;
115
116
  }
116
117
  }, w = y(() => !(t.readonly || t.disabled || D.value || !u.value && t.multiple)), se = async () => {
117
118
  var e, o, n;
118
- w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await V(), await A(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
119
+ w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await I(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
119
120
  }, ue = async () => {
120
121
  var e, o, n;
121
- w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await V(), await A(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
122
+ w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await I(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
122
123
  }, pe = (e) => {
123
124
  var n, r, m, C;
124
125
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
@@ -135,7 +136,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
135
136
  var e, o;
136
137
  if (w.value) {
137
138
  if (!c.value)
138
- await V(), await A(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
139
+ await I(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
139
140
  else if ((o = a.value) != null && o.getHighlighted())
140
141
  a.value.confirmOption();
141
142
  else if (t.addOptions) {
@@ -148,7 +149,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
148
149
  }
149
150
  const n = l.value.trim();
150
151
  if (ke(n)) return;
151
- he(), _(je(De.value));
152
+ be(), _(je(De.value));
152
153
  }
153
154
  }
154
155
  }, fe = async () => {
@@ -159,11 +160,11 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
159
160
  }, ve = t.prefill === !0 || !t.multiple && Ye(t.modelValue) || t.multiple && !!t.modelValue.length, {
160
161
  query: l,
161
162
  alignQueryToState: ye,
162
- addCurrentQueryToManualItems: he,
163
+ addCurrentQueryToManualItems: be,
163
164
  innerLoading: P,
164
165
  options: z,
165
166
  selectedOptions: f,
166
- selectOption: be,
167
+ selectOption: he,
167
168
  unselectOption: ge,
168
169
  prefillItems: we,
169
170
  isPrefilling: Be,
@@ -171,24 +172,25 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
171
172
  updateModelValue: Ce,
172
173
  valueIsSelected: ke,
173
174
  manualItems: De,
174
- searchByQuery: Ve
175
+ searchByQuery: Ie
175
176
  } = et({
176
- emit: b,
177
+ emit: h,
177
178
  itemText: t.itemText,
178
179
  itemValue: t.itemValue,
179
- modelValue: I(t, "modelValue"),
180
+ modelValue: V(t, "modelValue"),
181
+ max: t.max,
180
182
  multiple: t.multiple,
181
183
  resetQueryOnOptionSelected: t.resetQueryOnOptionSelected,
182
184
  stash: t.stash,
183
- items: I(t, "items"),
185
+ items: V(t, "items"),
184
186
  enforceCoherence: t.enforceCoherence,
185
187
  prefill: ve,
186
188
  modelValueDebounceTime: t.modelValueDebounceTime,
187
- dependencies: I(t, "dependencies"),
189
+ dependencies: V(t, "dependencies"),
188
190
  depsDebounceTime: t.depsDebounceTime,
189
191
  queryDebounceTime: t.queryDebounceTime,
190
- disabled: I(t, "disabled")
191
- }), Ie = y(() => f.value.length ? "" : t.placeholder), D = y(() => !!(P.value || t.loading)), $e = y(() => {
192
+ disabled: V(t, "disabled")
193
+ }), Ve = y(() => f.value.length ? "" : t.placeholder), D = y(() => !!(P.value || t.loading)), Se = y(() => {
192
194
  let e = [];
193
195
  const o = f.value.some(
194
196
  (r) => r.text === l.value
@@ -198,25 +200,25 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
198
200
  return typeof t.filterBy == "function" ? m = t.filterBy(r.value, r.item) : Array.isArray(t.filterBy) && t.filterBy.length && (m = m || Y(r.item, t.filterBy, l.value.trim())), m || Y(r, ["text"], l.value.trim());
199
201
  }) : e = z.value, e;
200
202
  }), _ = (e) => {
201
- be(e), L(), t.multiple || O();
203
+ he(e), E(), t.multiple || O();
202
204
  }, Q = (e) => {
203
- ge(e), L();
204
- }, c = v(!1), K = v(!0), U = v(!1), V = async () => {
205
+ ge(e), E();
206
+ }, c = v(!1), K = v(!0), U = v(!1), I = async () => {
205
207
  U.value = !0, await it(() => !!a.value), K.value = !1, c.value = !0;
206
208
  }, O = async () => {
207
209
  var e;
208
210
  c.value = !1, K.value = !0, (e = u.value) == null || e.blur();
209
- }, Se = () => c.value ? O() : V(), F = v(!1), Te = () => {
210
- F.value = !0;
211
- }, Ae = () => {
212
- F.value = !1, b("inactive");
213
- }, qe = (e) => {
214
- e.preventDefault(), b("click", e), !(t.disabled || t.readonly) && (L(), Se());
215
- }, Ee = tt(
211
+ }, $e = () => c.value ? O() : I(), x = v(!1), Te = () => {
212
+ x.value = !0;
213
+ }, Le = () => {
214
+ x.value = !1, h("inactive");
215
+ }, Ae = (e) => {
216
+ e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (E(), $e());
217
+ }, qe = tt(
216
218
  (e) => typeof e != "string",
217
219
  JSON.stringify
218
- ), Le = y(() => [].concat(t.modelValue).map((e) => {
219
- const o = Ee(e);
220
+ ), Ee = y(() => [].concat(t.modelValue).map((e) => {
221
+ const o = qe(e);
220
222
  return {
221
223
  disabled: t.disabled,
222
224
  name: t.name,
@@ -224,19 +226,19 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
224
226
  value: o
225
227
  };
226
228
  }));
227
- return (e, o) => (h(), $(at, {
229
+ return (e, o) => (b(), S(at, {
228
230
  ref_key: "outerContainer",
229
- ref: q,
231
+ ref: A,
230
232
  class: W({
231
233
  "bb-base-select": !0,
232
- "bb-base-select--active": F.value,
234
+ "bb-base-select--active": x.value,
233
235
  "bb-base-select--shown": c.value,
234
236
  "bb-base-select--loading": D.value,
235
237
  "bb-base-select--disabled": e.disabled,
236
238
  "bb-base-select--errors": e.hasErrors,
237
239
  "bb-base-select--readonly": e.readonly
238
240
  }),
239
- onClick: qe
241
+ onClick: Ae
240
242
  }, {
241
243
  "prepend-outer": s(() => [
242
244
  p(e.$slots, "prepend-outer", { query: i(l) })
@@ -245,7 +247,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
245
247
  p(e.$slots, "append-outer", { query: i(l) })
246
248
  ]),
247
249
  default: s(() => [
248
- x(lt, {
250
+ F(lt, {
249
251
  ref_key: "innerContainer",
250
252
  ref: B,
251
253
  "append:icon": t["append:icon"],
@@ -265,27 +267,27 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
265
267
  p(e.$slots, "suffix")
266
268
  ]),
267
269
  default: s(() => [
268
- x(i(Je), { tag: "span" }, {
270
+ F(i(Je), { tag: "span" }, {
269
271
  default: s(() => [
270
- S("span", dt, [
271
- e.multiple && i(f).length <= e.max ? (h(), T(R, { key: 0 }, [
272
- e.comma ? (h(), $(nt, {
272
+ $("span", dt, [
273
+ e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
274
+ e.comma ? (b(), S(nt, {
273
275
  key: 0,
274
276
  ref_key: "commaBox",
275
277
  ref: M,
276
278
  options: i(f)
277
- }, null, 8, ["options"])) : (h(), $(ot, {
279
+ }, null, 8, ["options"])) : (b(), S(ot, {
278
280
  key: 1,
279
281
  ref_key: "chipsBox",
280
282
  ref: N,
281
283
  options: i(f),
282
284
  "onOption:unselected": Q
283
285
  }, null, 8, ["options"]))
284
- ], 64)) : (h(), T("span", ct, Me(i(f).length) + " elementi selezionati ", 1)),
285
- Ne(S("input", {
286
+ ], 64)) : (b(), T("span", ct, Me(i(f).length) + " elementi selezionati ", 1)),
287
+ Ne($("input", {
286
288
  id: i(H),
287
289
  ref_key: "input",
288
- ref: E,
290
+ ref: q,
289
291
  "onUpdate:modelValue": o[0] || (o[0] = (n) => He(l) ? l.value = n : null),
290
292
  "aria-autocomplete": "list",
291
293
  "aria-controls": `${i(H)}_listbox`,
@@ -296,7 +298,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
296
298
  class: W("bb-base-select__text-input"),
297
299
  disabled: e.disabled,
298
300
  inputmode: ee.value,
299
- placeholder: Ie.value,
301
+ placeholder: Ve.value,
300
302
  readonly: e.readonly || !e.allowWriting,
301
303
  required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
302
304
  role: "combobox",
@@ -326,12 +328,12 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
326
328
  loading: !!i(P),
327
329
  shown: c.value
328
330
  }, () => [
329
- o[1] || (o[1] = S("svg", {
331
+ o[1] || (o[1] = $("svg", {
330
332
  class: "bb-base-select__chevron",
331
333
  viewBox: "0 0 24 24",
332
334
  xmlns: "http://www.w3.org/2000/svg"
333
335
  }, [
334
- S("path", {
336
+ $("path", {
335
337
  d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
336
338
  fill: "currentColor"
337
339
  })
@@ -340,20 +342,20 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
340
342
  ]),
341
343
  _: 3
342
344
  }, 8, ["append:icon", "prepend:icon"]),
343
- (h(!0), T(R, null, ze(Le.value, (n) => (h(), T("input", J({
345
+ (b(!0), T(R, null, ze(Ee.value, (n) => (b(), T("input", J({
344
346
  key: n.value,
345
347
  ref_for: !0
346
348
  }, n), null, 16))), 128)),
347
- U.value ? (h(), $(_e, {
349
+ U.value ? (b(), S(_e, {
348
350
  key: 0,
349
351
  to: "body"
350
352
  }, [
351
- x(i(X), {
353
+ F(i(X), {
352
354
  ref_key: "optionsContainer",
353
355
  ref: a,
354
356
  loading: D.value,
355
357
  open: c.value,
356
- options: $e.value,
358
+ options: Se.value,
357
359
  style: Qe(oe.value),
358
360
  "onOption:selected": _,
359
361
  "onOption:unselected": Q
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index204.js";
3
- import { head as O } from "./index247.js";
4
- import { isCssColor as Y } from "./index227.js";
2
+ import { clamp as le } from "./index229.js";
3
+ import { head as O } from "./index241.js";
4
+ import { isCssColor as Y } from "./index219.js";
5
5
  import { isNil as P } from "./index129.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index130.js";
8
- import { hash as J } from "./index232.js";
8
+ import { hash as J } from "./index211.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as b } from "./index227.js";
3
- import { when as F } from "./index228.js";
2
+ import { isCssColor as b } from "./index219.js";
3
+ import { when as F } from "./index220.js";
4
4
  const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index238.js";
2
+ import { useOptions as F } from "./index222.js";
3
3
  import M from "./index41.js";
4
4
  /* empty css */
5
- import S from "./index239.js";
5
+ import S from "./index223.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ $({
8
8
  __name: "BaseSwitchGroup",
@@ -22,6 +22,7 @@ const I = /* @__PURE__ */ $({
22
22
  itemText: {},
23
23
  itemValue: {},
24
24
  loadingText: { default: "Caricamento..." },
25
+ max: {},
25
26
  modelValue: {},
26
27
  modelValueDebounceTime: { default: 0 },
27
28
  name: {},
@@ -44,6 +45,7 @@ const I = /* @__PURE__ */ $({
44
45
  items: l(a, "items"),
45
46
  itemText: a.itemText,
46
47
  itemValue: a.itemValue,
48
+ max: a.max,
47
49
  modelValue: l(a, "modelValue"),
48
50
  modelValueDebounceTime: a.modelValueDebounceTime,
49
51
  multiple: !0,
package/dist/index45.js CHANGED
@@ -1,18 +1,18 @@
1
- import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as m, createBlock as C, normalizeClass as x, withCtx as a, renderSlot as u, createVNode as O, unref as v, createElementVNode as $, createElementBlock as ee, Fragment as te, createCommentVNode as oe, withDirectives as ne, mergeProps as le, isRef as ae, withModifiers as s, withKeys as y, vModelDynamic as ie, nextTick as re } from "vue";
1
+ import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as f, createBlock as C, normalizeClass as x, withCtx as a, renderSlot as s, createVNode as O, unref as v, createElementVNode as $, createElementBlock as ee, Fragment as te, createCommentVNode as oe, withDirectives as ne, mergeProps as le, isRef as ae, withModifiers as d, withKeys as y, vModelDynamic as re, nextTick as ie } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import ue from "./index127.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index134.js";
7
- import { last as de } from "./index213.js";
8
- import { useOptions as pe } from "./index238.js";
9
- import ce from "./index243.js";
7
+ import { last as de } from "./index212.js";
8
+ import { useOptions as pe } from "./index222.js";
9
+ import ce from "./index244.js";
10
10
  /* empty css */
11
- import fe from "./index245.js";
11
+ import me from "./index246.js";
12
12
  /* empty css */
13
- import me from "./index217.js";
13
+ import fe from "./index235.js";
14
14
  /* empty css */
15
- import ve from "./index219.js";
15
+ import ve from "./index237.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
@@ -26,6 +26,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
26
26
  hasErrors: { type: Boolean },
27
27
  id: {},
28
28
  loading: { type: Boolean },
29
+ max: {},
29
30
  modelValue: {},
30
31
  multiple: { type: Boolean, default: !0 },
31
32
  name: {},
@@ -39,15 +40,15 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
39
40
  const t = I, l = D;
40
41
  if (t.multiple && !Array.isArray(t.modelValue))
41
42
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
42
- const b = r(null), T = r(null), L = k(() => t.placeholder), V = r(null), w = r(null), i = k(
43
+ const b = i(null), T = i(null), L = k(() => t.placeholder), V = i(null), w = i(null), r = k(
43
44
  () => t.comma ? V.value : w.value
44
- ), d = r(null), E = () => {
45
- d.value instanceof HTMLInputElement && d.value.focus();
46
- }, K = !t.multiple && se(t.modelValue) || t.multiple && !!t.modelValue.length, N = r([]), {
45
+ ), p = i(null), E = () => {
46
+ p.value instanceof HTMLInputElement && p.value.focus();
47
+ }, K = !t.multiple && se(t.modelValue) || t.multiple && !!t.modelValue.length, N = i([]), {
47
48
  query: o,
48
49
  alignQueryToState: q,
49
50
  addCurrentQueryToManualItems: A,
50
- selectedOptions: p,
51
+ selectedOptions: u,
51
52
  selectOption: M,
52
53
  unselectOption: P,
53
54
  valueIsSelected: _,
@@ -68,40 +69,46 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
68
69
  depsDebounceTime: 0,
69
70
  queryDebounceTime: 0,
70
71
  disabled: B(t, "disabled")
71
- }), g = r(!1), F = () => {
72
+ }), g = i(!1), F = () => {
72
73
  g.value = !0;
73
74
  }, H = () => {
74
75
  g.value = !1, l("inactive");
75
- }, h = k(() => !(t.readonly || t.disabled || !i.value && t.multiple)), Q = (e) => {
76
+ }, h = k(() => !(t.readonly || t.disabled || !r.value && t.multiple)), Q = (e) => {
76
77
  var n;
77
- h.value && (!t.multiple || o.value || (e.preventDefault(), p.value.length && ((n = i.value) == null || n.focusPrevious())));
78
+ h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusPrevious())));
78
79
  }, R = (e) => {
79
80
  var n;
80
- h.value && (!t.multiple || o.value || (e.preventDefault(), p.value.length && ((n = i.value) == null || n.focusNext())));
81
+ h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusNext())));
81
82
  }, U = async () => {
82
83
  var e, n;
83
- !h.value || o.value || !p.value.length || ((e = i.value) != null && e.getHighlighted() && i.value.confirmOption(), await re(), (n = i.value) == null || n.focusPrevious());
84
+ !h.value || o.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await ie(), (n = r.value) == null || n.focusPrevious());
84
85
  }, z = () => {
85
86
  var e;
86
- (e = i.value) == null || e.blur();
87
+ (e = r.value) == null || e.blur();
87
88
  }, Z = async (e) => {
88
89
  var n;
89
90
  if (l("keyup", e), t.readonly || t.disabled) {
90
91
  e.preventDefault();
91
92
  return;
92
93
  }
93
- if (/^[A-Za-z0-9]$/.test(e.key) && ((n = i.value) == null || n.blur()), e.key === t.divider || e.key === "Unidentified" && o.value.includes(t.divider)) {
94
+ if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key === t.divider || e.key === "Unidentified" && o.value.includes(t.divider)) {
94
95
  if (t.divider.length === 1 && o.value.includes(t.divider)) {
95
- const f = o.value.split(t.divider)[0];
96
- if (f)
97
- o.value = f;
96
+ const m = o.value.split(t.divider)[0];
97
+ if (m)
98
+ o.value = m;
98
99
  else {
99
100
  o.value = "";
100
101
  return;
101
102
  }
102
103
  }
103
104
  if (!o.value) return;
104
- _(o.value) ? (l("duplicate", o.value), o.value = "") : (A(), j(de(S.value)));
105
+ if (_(o.value))
106
+ l("duplicate", o.value), o.value = "";
107
+ else {
108
+ if (t.max && u.value.length >= t.max)
109
+ return;
110
+ A(), j(de(S.value));
111
+ }
105
112
  }
106
113
  }, j = (e) => {
107
114
  M(e), E();
@@ -110,7 +117,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
110
117
  }, J = (e) => {
111
118
  l("focus", e), F(), document.addEventListener("click", c), document.addEventListener("focusin", c);
112
119
  }, W = (e) => {
113
- l("click", e), !(t.disabled || t.readonly) && d.value instanceof HTMLElement && d.value.focus();
120
+ l("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
114
121
  }, c = async (e) => {
115
122
  if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
116
123
  H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), q();
@@ -122,7 +129,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
122
129
  onKeydown: (e) => l("keydown", e),
123
130
  onInput: (e) => l("input", e)
124
131
  };
125
- return (e, n) => (m(), C(ve, {
132
+ return (e, n) => (f(), C(ve, {
126
133
  ref_key: "outerContainer",
127
134
  ref: b,
128
135
  class: x({
@@ -136,13 +143,13 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
136
143
  onClick: W
137
144
  }, {
138
145
  "prepend-outer": a(() => [
139
- u(e.$slots, "prepend-outer")
146
+ s(e.$slots, "prepend-outer")
140
147
  ]),
141
148
  "append-outer": a(() => [
142
- u(e.$slots, "append-outer")
149
+ s(e.$slots, "append-outer")
143
150
  ]),
144
151
  default: a(() => [
145
- O(me, {
152
+ O(fe, {
146
153
  ref_key: "innerContainer",
147
154
  ref: T,
148
155
  "append:icon": t["append:icon"],
@@ -150,41 +157,41 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
150
157
  "prevent-focus": !0
151
158
  }, {
152
159
  prepend: a(() => [
153
- u(e.$slots, "prepend")
160
+ s(e.$slots, "prepend")
154
161
  ]),
155
162
  prefix: a(() => [
156
- u(e.$slots, "prefix")
163
+ s(e.$slots, "prefix")
157
164
  ]),
158
165
  append: a(() => [
159
- u(e.$slots, "append")
166
+ s(e.$slots, "append")
160
167
  ]),
161
168
  suffix: a(() => [
162
- u(e.$slots, "suffix")
169
+ s(e.$slots, "suffix")
163
170
  ]),
164
171
  default: a(() => [
165
172
  O(v(ue), { tag: "span" }, {
166
173
  default: a(() => [
167
174
  $("span", ye, [
168
- e.multiple ? (m(), ee(te, { key: 0 }, [
169
- e.comma ? (m(), C(fe, {
175
+ e.multiple ? (f(), ee(te, { key: 0 }, [
176
+ e.comma ? (f(), C(me, {
170
177
  key: 0,
171
178
  ref_key: "commaBox",
172
179
  ref: V,
173
- options: v(p)
174
- }, null, 8, ["options"])) : (m(), C(ce, {
180
+ options: v(u)
181
+ }, null, 8, ["options"])) : (f(), C(ce, {
175
182
  key: 1,
176
183
  ref_key: "chipsBox",
177
184
  ref: w,
178
- options: v(p),
185
+ options: v(u),
179
186
  "onOption:unselected": G
180
187
  }, null, 8, ["options"]))
181
188
  ], 64)) : oe("", !0),
182
189
  ne($("input", le({
183
190
  id: e.id,
184
191
  ref_key: "input",
185
- ref: d
192
+ ref: p
186
193
  }, X, {
187
- "onUpdate:modelValue": n[0] || (n[0] = (f) => ae(o) ? o.value = f : null),
194
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => ae(o) ? o.value = m : null),
188
195
  "aria-describedby": e.ariaDescribedby,
189
196
  autocomplete: e.autocomplete,
190
197
  autofocus: e.autofocus,
@@ -196,16 +203,16 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
196
203
  readonly: e.readonly,
197
204
  required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
198
205
  type: "text",
199
- onFocus: s(J, ["stop"]),
206
+ onFocus: d(J, ["stop"]),
200
207
  onKeydown: [
201
- y(s(U, ["stop"]), ["delete"]),
202
- y(s(Q, ["stop"]), ["left"]),
203
- y(s(z, ["stop", "prevent"]), ["esc"]),
204
- y(s(R, ["stop"]), ["right"])
208
+ y(d(U, ["stop"]), ["delete"]),
209
+ y(d(Q, ["stop"]), ["left"]),
210
+ y(d(z, ["stop", "prevent"]), ["esc"]),
211
+ y(d(R, ["stop"]), ["right"])
205
212
  ],
206
- onKeyup: s(Z, ["stop"])
213
+ onKeyup: d(Z, ["stop"])
207
214
  }), null, 16, be), [
208
- [ie, v(o)]
215
+ [re, v(o)]
209
216
  ])
210
217
  ])
211
218
  ]),
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index219.js";
3
- import E from "./index217.js";
2
+ import v from "./index237.js";
3
+ import E from "./index235.js";
4
4
  /* empty css */
5
5
  import G from "./index127.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index217.js";
2
+ import B from "./index235.js";
3
3
  /* empty css */
4
- import k from "./index219.js";
4
+ import k from "./index237.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/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 "./index227.js";
2
+ import { isCssColor as _ } from "./index219.js";
3
3
  import { wait as C } from "./index131.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
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 "./index227.js";
2
+ import { isCssColor as r } from "./index219.js";
3
3
  import { isNil as B } from "./index129.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",