bitboss-ui 2.0.95 → 2.0.97

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 (207) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +3 -3
  3. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +22 -5
  5. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +69 -19
  7. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +4 -0
  8. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -1
  9. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -1
  10. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  11. package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
  12. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +7 -0
  13. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
  14. package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -1
  15. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -1
  16. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -1
  17. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
  18. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +5 -1
  19. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +5 -1
  20. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  21. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
  22. package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
  23. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +5 -1
  24. package/dist/components/BbRating/BbRating.vue.d.ts +5 -1
  25. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  26. package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
  27. package/dist/components/BbTable/types.d.ts +1 -1
  28. package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
  29. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
  30. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
  31. package/dist/components/ListBox.vue.d.ts +4 -0
  32. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  33. package/dist/composables/useBbConfig.d.ts +3 -0
  34. package/dist/composables/useLocale.d.ts +5 -0
  35. package/dist/i18n/en.d.ts +8 -0
  36. package/dist/i18n/index.d.ts +3 -0
  37. package/dist/i18n/it.d.ts +8 -0
  38. package/dist/index100.js +4 -4
  39. package/dist/index101.js +18 -15
  40. package/dist/index103.js +11 -9
  41. package/dist/index105.js +10 -10
  42. package/dist/index107.js +16 -14
  43. package/dist/index111.js +6 -6
  44. package/dist/index113.js +12 -9
  45. package/dist/index115.js +27 -24
  46. package/dist/index117.js +27 -24
  47. package/dist/index119.js +2 -2
  48. package/dist/index121.js +5 -5
  49. package/dist/index123.js +1 -1
  50. package/dist/index127.js +1 -1
  51. package/dist/index128.js +1 -1
  52. package/dist/index129.js +1 -1
  53. package/dist/index13.js +1 -1
  54. package/dist/index134.js +2 -2
  55. package/dist/index15.js +22 -20
  56. package/dist/index17.js +15 -16
  57. package/dist/index19.js +72 -65
  58. package/dist/index208.js +1 -1
  59. package/dist/index21.js +84 -72
  60. package/dist/index210.js +1 -1
  61. package/dist/index211.js +5 -20
  62. package/dist/index212.js +16 -4
  63. package/dist/index213.js +16 -5
  64. package/dist/index214.js +18 -15
  65. package/dist/index215.js +16 -13
  66. package/dist/index216.js +26 -18
  67. package/dist/index217.js +3 -19
  68. package/dist/index218.js +2 -27
  69. package/dist/index219.js +8 -3
  70. package/dist/index220.js +250 -2
  71. package/dist/index221.js +50 -6
  72. package/dist/index222.js +36 -241
  73. package/dist/index223.js +5 -52
  74. package/dist/index224.js +47 -31
  75. package/dist/index225.js +2 -5
  76. package/dist/index226.js +4 -60
  77. package/dist/index227.js +2 -2
  78. package/dist/index228.js +126 -4
  79. package/dist/index229.js +125 -2
  80. package/dist/index23.js +28 -26
  81. package/dist/index230.js +2 -3
  82. package/dist/index231.js +1 -1
  83. package/dist/index232.js +20 -6
  84. package/dist/index233.js +6 -7
  85. package/dist/index234.js +5 -12
  86. package/dist/index235.js +12 -164
  87. package/dist/index236.js +368 -83
  88. package/dist/index237.js +166 -0
  89. package/dist/index238.js +83 -125
  90. package/dist/index240.js +8 -2
  91. package/dist/index241.js +3 -5
  92. package/dist/index242.js +7 -369
  93. package/dist/index243.js +1 -1
  94. package/dist/index244.js +4 -2
  95. package/dist/index245.js +1 -1
  96. package/dist/index247.js +1 -1
  97. package/dist/index249.js +2 -2
  98. package/dist/index25.js +5 -5
  99. package/dist/index250.js +2 -18
  100. package/dist/index251.js +17 -9
  101. package/dist/index252.js +9 -2
  102. package/dist/index253.js +2 -8
  103. package/dist/index254.js +3 -23
  104. package/dist/index256.js +9 -0
  105. package/dist/index257.js +4 -9
  106. package/dist/index258.js +281 -6
  107. package/dist/index259.js +6 -16
  108. package/dist/index260.js +2 -3
  109. package/dist/index261.js +4 -0
  110. package/dist/index262.js +2 -7
  111. package/dist/index263.js +2 -176
  112. package/dist/index264.js +2 -281
  113. package/dist/index265.js +2 -6
  114. package/dist/index266.js +2 -2
  115. package/dist/index267.js +2 -2
  116. package/dist/index268.js +2 -2
  117. package/dist/index269.js +2 -2
  118. package/dist/index27.js +8 -6
  119. package/dist/index270.js +28 -2
  120. package/dist/index271.js +22 -2
  121. package/dist/index273.js +89 -2
  122. package/dist/index275.js +9 -2
  123. package/dist/index276.js +6 -28
  124. package/dist/index277.js +15 -21
  125. package/dist/index278.js +11 -0
  126. package/dist/index279.js +23 -4
  127. package/dist/index280.js +3 -431
  128. package/dist/index281.js +12 -2
  129. package/dist/index282.js +7 -87
  130. package/dist/index283.js +9 -3
  131. package/dist/index284.js +17 -12
  132. package/dist/index285.js +3 -8
  133. package/dist/index286.js +7 -9
  134. package/dist/index287.js +11 -17
  135. package/dist/index288.js +2 -4
  136. package/dist/index289.js +122 -196
  137. package/dist/index29.js +8 -6
  138. package/dist/index290.js +431 -2
  139. package/dist/index291.js +171 -121
  140. package/dist/index294.js +2 -8
  141. package/dist/index295.js +83 -218
  142. package/dist/index296.js +219 -431
  143. package/dist/index297.js +8 -127
  144. package/dist/index298.js +200 -3
  145. package/dist/index299.js +436 -3
  146. package/dist/index300.js +126 -210
  147. package/dist/index301.js +1 -1
  148. package/dist/index302.js +2 -32
  149. package/dist/index303.js +2 -5
  150. package/dist/index304.js +5 -8
  151. package/dist/index305.js +66 -3
  152. package/dist/index306.js +213 -3
  153. package/dist/index307.js +32 -57
  154. package/dist/index308.js +5 -2
  155. package/dist/index309.js +7 -6
  156. package/dist/index31.js +6 -6
  157. package/dist/index310.js +2 -65
  158. package/dist/index311.js +4 -5
  159. package/dist/index312.js +3 -7
  160. package/dist/index313.js +3 -19
  161. package/dist/index314.js +57 -10
  162. package/dist/index315.js +6 -3
  163. package/dist/index316.js +6 -46
  164. package/dist/index317.js +19 -480
  165. package/dist/index318.js +10 -0
  166. package/dist/index319.js +8 -2
  167. package/dist/index320.js +43 -420
  168. package/dist/index321.js +2 -47
  169. package/dist/index322.js +480 -2
  170. package/dist/index324.js +426 -0
  171. package/dist/index325.js +49 -0
  172. package/dist/index326.js +4 -0
  173. package/dist/index33.js +12 -12
  174. package/dist/index35.js +35 -35
  175. package/dist/index37.js +54 -50
  176. package/dist/index39.js +4 -4
  177. package/dist/index4.js +5 -4
  178. package/dist/index41.js +3 -3
  179. package/dist/index43.js +3 -3
  180. package/dist/index45.js +42 -40
  181. package/dist/index47.js +29 -27
  182. package/dist/index49.js +16 -14
  183. package/dist/index55.js +1 -1
  184. package/dist/index57.js +1 -1
  185. package/dist/index61.js +2 -2
  186. package/dist/index63.js +9 -9
  187. package/dist/index65.js +11 -9
  188. package/dist/index67.js +24 -21
  189. package/dist/index71.js +8 -5
  190. package/dist/index75.js +3 -3
  191. package/dist/index77.js +36 -34
  192. package/dist/index79.js +2 -2
  193. package/dist/index81.js +1 -1
  194. package/dist/index82.js +24 -21
  195. package/dist/index84.js +2 -2
  196. package/dist/index86.js +1 -1
  197. package/dist/index88.js +2 -2
  198. package/dist/index92.js +6 -6
  199. package/dist/index94.js +11 -9
  200. package/dist/index96.js +13 -11
  201. package/dist/style.css +1 -1
  202. package/dist/types/CommonProps.d.ts +1 -1
  203. package/package.json +2 -2
  204. package/dist/index239.js +0 -127
  205. package/dist/index255.js +0 -91
  206. package/dist/index272.js +0 -4
  207. package/dist/index274.js +0 -4
package/dist/index37.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as r, renderSlot as p, unref as i, createVNode as N, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as d, withKeys as g, vModelDynamic as _e, renderList as ze, mergeProps as Y, normalizeStyle as Qe, nextTick as Ke } from "vue";
1
+ import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as r, renderSlot as p, unref as i, createVNode as N, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as c, withKeys as g, vModelDynamic as ze, renderList as _e, mergeProps as Y, normalizeStyle as Qe, nextTick as Ke } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { useId as Ue } from "./index8.js";
@@ -6,14 +6,14 @@ import { useMobile as We } from "./index9.js";
6
6
  import Re from "./index128.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Je } from "./index135.js";
9
- import { last as Ye } from "./index220.js";
10
- import { matchAnyKey as j } from "./index250.js";
11
- import { useFloating as je } from "./index238.js";
9
+ import { last as Ye } from "./index218.js";
10
+ import { matchAnyKey as j } from "./index251.js";
11
+ import { useFloating as je } from "./index228.js";
12
12
  import { useIntersectionObserver as Ge } from "./index133.js";
13
- import { useLogger as Xe } from "./index221.js";
14
- import { useOptions as Ze } from "./index235.js";
13
+ import { useLogger as Xe } from "./index219.js";
14
+ import { useOptions as Ze } from "./index237.js";
15
15
  import { wait as L } from "./index132.js";
16
- import { when as et } from "./index228.js";
16
+ import { when as et } from "./index226.js";
17
17
  import tt from "./index245.js";
18
18
  /* empty css */
19
19
  import ot from "./index247.js";
@@ -21,10 +21,10 @@ import ot from "./index247.js";
21
21
  import nt from "./index208.js";
22
22
  /* empty css */
23
23
  import lt from "./index210.js";
24
- import { waitFor as at } from "./index232.js";
25
- import it from "./index234.js";
26
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index242.js";
27
- const dt = { class: "bb-base-select__input-container" }, ct = {
24
+ import { waitFor as at } from "./index233.js";
25
+ import it from "./index235.js";
26
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index236.js";
27
+ const ct = { class: "bb-base-select__input-container" }, dt = {
28
28
  key: 1,
29
29
  class: "bb-base-select__max-reached"
30
30
  }, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Pt = /* @__PURE__ */ xe({
@@ -37,6 +37,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
37
37
  autocomplete: { default: "off" },
38
38
  autofocus: {},
39
39
  comma: { type: Boolean },
40
+ compact: { type: Boolean },
40
41
  dependencies: { default: () => [] },
41
42
  depsDebounceTime: { default: 0 },
42
43
  disabled: { type: Boolean },
@@ -72,11 +73,11 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
72
73
  const t = G, h = X;
73
74
  if (t.multiple && !Array.isArray(t.modelValue))
74
75
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
75
- const Z = Me(() => import("./index249.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
76
+ const Z = Me(() => import("./index250.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
76
77
  () => t.comma ? H.value : P.value
77
78
  ), { isMobile: ee } = We(), te = y(
78
79
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
79
- ), _ = t.id || Ue().id.value;
80
+ ), z = t.id || Ue().id.value;
80
81
  Ge(
81
82
  B,
82
83
  ([{ intersectionRatio: e }]) => {
@@ -117,17 +118,17 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
117
118
  }
118
119
  }, w = y(() => !(t.readonly || t.disabled || I.value || !u.value && t.multiple)), ue = async () => {
119
120
  var e, o, n;
120
- w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
121
+ w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
121
122
  }, pe = async () => {
122
123
  var e, o, n;
123
- w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
124
- }, de = (e) => {
124
+ w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
125
+ }, ce = (e) => {
125
126
  var n, s, m, k;
126
127
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
127
128
  (s = u.value) == null || s.focusPrevious();
128
129
  const o = (m = u.value) == null ? void 0 : m.getHighlighted();
129
130
  o && ((k = a.value) == null || k.focusByHash(o.valueHash));
130
- }, ce = (e) => {
131
+ }, de = (e) => {
131
132
  var n, s, m, k;
132
133
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
133
134
  (s = u.value) == null || s.focusNext();
@@ -136,7 +137,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
136
137
  }, fe = async () => {
137
138
  var e, o;
138
139
  if (w.value) {
139
- if (!c.value)
140
+ if (!d.value)
140
141
  await O(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
141
142
  else if ((o = a.value) != null && o.getHighlighted())
142
143
  a.value.confirmOption();
@@ -154,7 +155,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
154
155
  }
155
156
  }
156
157
  }, me = async () => {
157
- c.value && await C();
158
+ d.value && await C();
158
159
  }, ve = async () => {
159
160
  var e, o;
160
161
  !w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await Ke(), (o = u.value) == null || o.focusPrevious());
@@ -162,7 +163,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
162
163
  query: l,
163
164
  alignQueryToState: be,
164
165
  addCurrentQueryToManualItems: he,
165
- innerLoading: z,
166
+ innerLoading: _,
166
167
  options: Q,
167
168
  selectedOptions: f,
168
169
  selectOption: ge,
@@ -191,7 +192,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
191
192
  depsDebounceTime: t.depsDebounceTime,
192
193
  queryDebounceTime: t.queryDebounceTime,
193
194
  disabled: V(t, "disabled")
194
- }), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(z.value || t.loading)), $e = y(() => {
195
+ }), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(_.value || t.loading)), $e = y(() => {
195
196
  let e = [];
196
197
  const o = f.value.some(
197
198
  (s) => s.text === l.value
@@ -204,12 +205,12 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
204
205
  ge(e), E(), t.multiple || C();
205
206
  }, U = (e) => {
206
207
  we(e), E();
207
- }, c = v(!1), F = v(!0), x = v(!1), O = async () => {
208
- x.value = !0, await at(() => !!a.value), F.value = !1, c.value = !0;
208
+ }, d = v(!1), F = v(!0), x = v(!1), O = async () => {
209
+ x.value = !0, await at(() => !!a.value), F.value = !1, d.value = !0;
209
210
  }, C = async () => {
210
211
  var e;
211
- c.value = !1, F.value = !0, (e = u.value) == null || e.blur();
212
- }, Te = () => c.value ? C() : O(), M = v(!1), Le = () => {
212
+ d.value = !1, F.value = !0, (e = u.value) == null || e.blur();
213
+ }, Te = () => d.value ? C() : O(), M = v(!1), Le = () => {
213
214
  M.value = !0;
214
215
  }, Ae = () => {
215
216
  M.value = !1, h("inactive");
@@ -233,11 +234,12 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
233
234
  class: W({
234
235
  "bb-base-select": !0,
235
236
  "bb-base-select--active": M.value,
236
- "bb-base-select--shown": c.value,
237
+ "bb-base-select--shown": d.value,
237
238
  "bb-base-select--loading": I.value,
238
239
  "bb-base-select--disabled": e.disabled,
239
240
  "bb-base-select--errors": e.hasErrors,
240
- "bb-base-select--readonly": e.readonly
241
+ "bb-base-select--readonly": e.readonly,
242
+ "bb-base-select--compact": e.compact
241
243
  }),
242
244
  onClick: qe
243
245
  }, {
@@ -270,7 +272,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
270
272
  default: r(() => [
271
273
  N(i(Re), { tag: "span" }, {
272
274
  default: r(() => [
273
- $("span", dt, [
275
+ $("span", ct, [
274
276
  e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
275
277
  e.comma ? (b(), S(ot, {
276
278
  key: 0,
@@ -284,16 +286,16 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
284
286
  options: i(f),
285
287
  "onOption:unselected": U
286
288
  }, null, 8, ["options"]))
287
- ], 64)) : e.multiple ? (b(), T("span", ct, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
289
+ ], 64)) : e.multiple ? (b(), T("span", dt, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
288
290
  He($("input", {
289
- id: i(_),
291
+ id: i(z),
290
292
  ref_key: "input",
291
293
  ref: q,
292
294
  "onUpdate:modelValue": o[0] || (o[0] = (n) => Pe(l) ? l.value = n : null),
293
295
  "aria-autocomplete": "list",
294
- "aria-controls": x.value ? `${i(_)}_listbox` : void 0,
296
+ "aria-controls": x.value ? `${i(z)}_listbox` : void 0,
295
297
  "aria-describedby": e.ariaDescribedby,
296
- "aria-expanded": c.value,
298
+ "aria-expanded": d.value,
297
299
  autocomplete: e.autocomplete,
298
300
  autofocus: e.autofocus,
299
301
  class: W("bb-base-select__text-input"),
@@ -303,31 +305,32 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
303
305
  readonly: e.readonly || !e.allowWriting,
304
306
  required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
305
307
  role: "combobox",
308
+ size: "1",
306
309
  type: "text",
307
- onBlur: d(ie, ["stop"]),
308
- onChange: d(re, ["stop"]),
309
- onFocusOnce: d(ae, ["stop"]),
310
- onFocus: d(le, ["stop"]),
311
- onInput: d(se, ["stop"]),
310
+ onBlur: c(ie, ["stop"]),
311
+ onChange: c(re, ["stop"]),
312
+ onFocusOnce: c(ae, ["stop"]),
313
+ onFocus: c(le, ["stop"]),
314
+ onInput: c(se, ["stop"]),
312
315
  onKeydown: [
313
- g(d(ve, ["stop"]), ["delete"]),
314
- g(d(de, ["stop"]), ["left"]),
315
- g(d(pe, ["stop", "prevent"]), ["down"]),
316
- g(d(fe, ["stop", "prevent"]), ["enter"]),
317
- g(d(me, ["stop", "prevent"]), ["esc"]),
318
- g(d(ue, ["stop", "prevent"]), ["up"]),
319
- g(d(ce, ["stop"]), ["right"])
316
+ g(c(ve, ["stop"]), ["delete"]),
317
+ g(c(ce, ["stop"]), ["left"]),
318
+ g(c(pe, ["stop", "prevent"]), ["down"]),
319
+ g(c(fe, ["stop", "prevent"]), ["enter"]),
320
+ g(c(me, ["stop", "prevent"]), ["esc"]),
321
+ g(c(ue, ["stop", "prevent"]), ["up"]),
322
+ g(c(de, ["stop"]), ["right"])
320
323
  ]
321
324
  }, null, 40, ft), [
322
- [_e, i(l)]
325
+ [ze, i(l)]
323
326
  ])
324
327
  ])
325
328
  ]),
326
329
  _: 1
327
330
  }),
328
331
  p(e.$slots, "chevron", {
329
- loading: !!i(z),
330
- shown: c.value
332
+ loading: !!i(_),
333
+ shown: d.value
331
334
  }, () => [
332
335
  o[1] || (o[1] = $("svg", {
333
336
  class: "bb-base-select__chevron",
@@ -343,7 +346,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
343
346
  ]),
344
347
  _: 3
345
348
  }, 8, ["append:icon", "prepend:icon"]),
346
- (b(!0), T(R, null, ze(Fe.value, (n) => (b(), T("input", Y({
349
+ (b(!0), T(R, null, _e(Fe.value, (n) => (b(), T("input", Y({
347
350
  key: n.value,
348
351
  ref_for: !0
349
352
  }, n), null, 16))), 128)),
@@ -352,8 +355,9 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
352
355
  N(i(Z), {
353
356
  ref_key: "optionsContainer",
354
357
  ref: a,
358
+ compact: e.compact,
355
359
  loading: I.value,
356
- open: c.value,
360
+ open: d.value,
357
361
  options: $e.value,
358
362
  style: Qe(ne.value),
359
363
  "onOption:selected": K,
@@ -378,7 +382,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
378
382
  }, n))
379
383
  ]),
380
384
  _: 3
381
- }, 8, ["loading", "open", "options", "style"])
385
+ }, 8, ["compact", "loading", "open", "options", "style"])
382
386
  ]),
383
387
  _: 3
384
388
  })) : J("", !0)
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 "./index206.js";
3
- import { head as O } from "./index244.js";
4
- import { isCssColor as Y } from "./index227.js";
3
+ import { head as O } from "./index249.js";
4
+ import { isCssColor as Y } from "./index225.js";
5
5
  import { isNil as P } from "./index130.js";
6
6
  import { isNotNil as ne } from "./index135.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
- import { hash as J } from "./index219.js";
8
+ import { hash as J } from "./index217.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
@@ -23,7 +23,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
23
23
  modelValue: { default: 0 },
24
24
  name: {},
25
25
  range: { type: Boolean },
26
- readonly: {},
26
+ readonly: { type: Boolean },
27
27
  required: { type: Boolean },
28
28
  step: { default: 1 },
29
29
  ticks: { type: Boolean },
package/dist/index4.js CHANGED
@@ -3,11 +3,12 @@ const c = i({
3
3
  inertiaLinkName: "Link",
4
4
  nuxtLinkName: "NuxtLink",
5
5
  mobileMaxWidth: 768,
6
- documentationURL: "https://ui-components-docs.vercel.app/it"
6
+ documentationURL: "https://ui-components-docs.vercel.app/it",
7
+ locale: "it"
7
8
  }), s = (t) => {
8
- Object.keys(t).forEach((e) => {
9
- const n = e, o = t[n];
10
- c[n] = o;
9
+ Object.keys(t).forEach((n) => {
10
+ const e = n, o = t[e];
11
+ c[e] = o;
11
12
  });
12
13
  }, r = () => ({ setConfig: s });
13
14
  export {
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 "./index225.js";
3
+ import { when as F } from "./index226.js";
4
4
  const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
@@ -14,7 +14,7 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
14
14
  id: {},
15
15
  indeterminate: {},
16
16
  name: {},
17
- readonly: {},
17
+ readonly: { type: Boolean },
18
18
  required: { type: Boolean },
19
19
  submitWhenFalse: { type: Boolean },
20
20
  trueValue: { default: !0 },
package/dist/index43.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as V, 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 "./index235.js";
2
+ import { useOptions as F } from "./index237.js";
3
3
  import M from "./index41.js";
4
4
  /* empty css */
5
- import S from "./index236.js";
5
+ import S from "./index238.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ V({
8
8
  __name: "BaseSwitchGroup",
@@ -27,7 +27,7 @@ const I = /* @__PURE__ */ V({
27
27
  modelValueDebounceTime: { default: 0 },
28
28
  name: {},
29
29
  noDataText: { default: "Nessun elemento da visualizzare" },
30
- readonly: {}
30
+ readonly: { type: Boolean }
31
31
  },
32
32
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
33
  setup(g, { emit: y }) {
package/dist/index45.js CHANGED
@@ -1,11 +1,11 @@
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";
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 oe, createCommentVNode as te, 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 "./index128.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index135.js";
7
- import { last as de } from "./index220.js";
8
- import { useOptions as pe } from "./index235.js";
7
+ import { last as de } from "./index218.js";
8
+ import { useOptions as pe } from "./index237.js";
9
9
  import ce from "./index245.js";
10
10
  /* empty css */
11
11
  import me from "./index247.js";
@@ -18,9 +18,10 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
18
18
  props: {
19
19
  "append:icon": {},
20
20
  ariaDescribedby: {},
21
- autocomplete: {},
21
+ autocomplete: { default: "off" },
22
22
  autofocus: {},
23
23
  comma: { type: Boolean },
24
+ compact: { type: Boolean },
24
25
  disabled: { type: Boolean },
25
26
  divider: { default: "Enter" },
26
27
  hasErrors: { type: Boolean },
@@ -32,85 +33,85 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
32
33
  name: {},
33
34
  placeholder: {},
34
35
  "prepend:icon": {},
35
- readonly: {},
36
+ readonly: { type: Boolean },
36
37
  required: { type: Boolean }
37
38
  },
38
39
  emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
39
40
  setup(D, { emit: I }) {
40
- const t = D, l = I;
41
- if (t.multiple && !Array.isArray(t.modelValue))
41
+ const o = D, l = I;
42
+ if (o.multiple && !Array.isArray(o.modelValue))
42
43
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
43
- const b = i(null), T = i(null), L = k(() => t.placeholder), V = i(null), w = i(null), r = k(
44
- () => t.comma ? V.value : w.value
44
+ const b = i(null), T = i(null), L = k(() => o.placeholder), V = i(null), w = i(null), r = k(
45
+ () => o.comma ? V.value : w.value
45
46
  ), p = i(null), E = () => {
46
47
  p.value instanceof HTMLInputElement && p.value.focus();
47
- }, N = !t.multiple && se(t.modelValue) || t.multiple && !!t.modelValue.length, q = i([]), {
48
- query: o,
48
+ }, N = !o.multiple && se(o.modelValue) || o.multiple && !!o.modelValue.length, q = i([]), {
49
+ query: t,
49
50
  alignQueryToState: A,
50
51
  addCurrentQueryToManualItems: K,
51
52
  selectedOptions: u,
52
53
  selectOption: M,
53
54
  unselectOption: P,
54
- valueIsSelected: _,
55
- manualItems: S
55
+ valueIsSelected: S,
56
+ manualItems: _
56
57
  } = pe({
57
58
  emit: l,
58
59
  itemText: void 0,
59
60
  itemValue: void 0,
60
- modelValue: B(t, "modelValue"),
61
- multiple: t.multiple,
61
+ modelValue: B(o, "modelValue"),
62
+ multiple: o.multiple,
62
63
  resetQueryOnOptionSelected: !0,
63
64
  stash: !1,
64
- items: B(t, "modelValue"),
65
+ items: B(o, "modelValue"),
65
66
  enforceCoherence: !1,
66
67
  prefill: N,
67
68
  modelValueDebounceTime: 0,
68
69
  dependencies: q,
69
70
  depsDebounceTime: 0,
70
71
  queryDebounceTime: 0,
71
- disabled: B(t, "disabled")
72
+ disabled: B(o, "disabled")
72
73
  }), g = i(!1), F = () => {
73
74
  g.value = !0;
74
75
  }, H = () => {
75
76
  g.value = !1, l("inactive");
76
- }, h = k(() => !(t.readonly || t.disabled || !r.value && t.multiple)), Q = (e) => {
77
+ }, h = k(() => !(o.readonly || o.disabled || !r.value && o.multiple)), Q = (e) => {
77
78
  var n;
78
- h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusPrevious())));
79
+ h.value && (!o.multiple || t.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusPrevious())));
79
80
  }, R = (e) => {
80
81
  var n;
81
- h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusNext())));
82
+ h.value && (!o.multiple || t.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusNext())));
82
83
  }, U = async () => {
83
84
  var e, n;
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());
85
+ !h.value || t.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await ie(), (n = r.value) == null || n.focusPrevious());
85
86
  }, z = () => {
86
87
  var e;
87
88
  (e = r.value) == null || e.blur();
88
89
  }, Z = async (e) => {
89
90
  var n;
90
- if (l("keydown", e), t.readonly || t.disabled) {
91
+ if (l("keydown", e), o.readonly || o.disabled) {
91
92
  e.preventDefault();
92
93
  return;
93
94
  }
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)) {
95
- if (t.divider.length === 1 && o.value.includes(t.divider)) {
96
- const m = o.value.split(t.divider)[0];
95
+ if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key === o.divider || e.key === "Unidentified" && t.value.includes(o.divider)) {
96
+ if (o.divider.length === 1 && t.value.includes(o.divider)) {
97
+ const m = t.value.split(o.divider)[0];
97
98
  if (m)
98
- o.value = m;
99
+ t.value = m;
99
100
  else {
100
- o.value = "";
101
+ t.value = "";
101
102
  return;
102
103
  }
103
104
  }
104
- if (!o.value) {
105
+ if (!t.value) {
105
106
  l("keydown", e);
106
107
  return;
107
108
  }
108
- if (e.preventDefault(), _(o.value))
109
- l("duplicate", o.value), o.value = "";
109
+ if (e.preventDefault(), S(t.value))
110
+ l("duplicate", t.value), t.value = "";
110
111
  else {
111
- if (t.max && u.value.length >= t.max)
112
+ if (o.max && u.value.length >= o.max)
112
113
  return;
113
- K(), j(de(S.value));
114
+ K(), j(de(_.value));
114
115
  }
115
116
  }
116
117
  }, j = (e) => {
@@ -120,7 +121,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
120
121
  }, J = (e) => {
121
122
  l("focus", e), F(), document.addEventListener("click", c), document.addEventListener("focusin", c);
122
123
  }, W = (e) => {
123
- l("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
124
+ l("click", e), !(o.disabled || o.readonly) && p.value instanceof HTMLElement && p.value.focus();
124
125
  }, c = async (e) => {
125
126
  if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
126
127
  H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), A();
@@ -141,7 +142,8 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
141
142
  "bb-base-tag--disabled": e.disabled,
142
143
  "bb-base-tag--loading": e.loading,
143
144
  "bb-base-tag--errors": e.hasErrors,
144
- "bb-base-tag--readonly": e.readonly
145
+ "bb-base-tag--readonly": e.readonly,
146
+ "bb-base-tag--compact": e.compact
145
147
  }),
146
148
  onClick: W
147
149
  }, {
@@ -155,8 +157,8 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
155
157
  O(fe, {
156
158
  ref_key: "innerContainer",
157
159
  ref: T,
158
- "append:icon": t["append:icon"],
159
- "prepend:icon": t["prepend:icon"],
160
+ "append:icon": o["append:icon"],
161
+ "prepend:icon": o["prepend:icon"],
160
162
  "prevent-focus": !0
161
163
  }, {
162
164
  prepend: a(() => [
@@ -175,7 +177,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
175
177
  O(v(ue), { tag: "span" }, {
176
178
  default: a(() => [
177
179
  $("span", ye, [
178
- e.multiple ? (f(), ee(te, { key: 0 }, [
180
+ e.multiple ? (f(), ee(oe, { key: 0 }, [
179
181
  e.comma ? (f(), C(me, {
180
182
  key: 0,
181
183
  ref_key: "commaBox",
@@ -188,13 +190,13 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
188
190
  options: v(u),
189
191
  "onOption:unselected": G
190
192
  }, null, 8, ["options"]))
191
- ], 64)) : oe("", !0),
193
+ ], 64)) : te("", !0),
192
194
  ne($("input", le({
193
195
  id: e.id,
194
196
  ref_key: "input",
195
197
  ref: p
196
198
  }, X, {
197
- "onUpdate:modelValue": n[0] || (n[0] = (m) => ae(o) ? o.value = m : null),
199
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => ae(t) ? t.value = m : null),
198
200
  "aria-describedby": e.ariaDescribedby,
199
201
  autocomplete: e.autocomplete,
200
202
  autofocus: e.autofocus,
@@ -214,7 +216,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
214
216
  y(d(R, ["stop"]), ["right"])
215
217
  ]
216
218
  }), null, 16, be), [
217
- [re, v(o)]
219
+ [re, v(t)]
218
220
  ])
219
221
  ])
220
222
  ]),