bitboss-ui 2.0.50 → 2.0.51

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