bitboss-ui 2.0.94 → 2.0.96

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 (181) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  3. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +9 -4
  5. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
  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 +8 -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/BbRows/BbRows.vue.d.ts +1 -1
  26. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  27. package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
  28. package/dist/components/BbTable/types.d.ts +1 -1
  29. package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
  30. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
  31. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
  32. package/dist/components/ListBox.vue.d.ts +4 -0
  33. package/dist/index100.js +10 -10
  34. package/dist/index101.js +18 -15
  35. package/dist/index103.js +11 -9
  36. package/dist/index105.js +10 -10
  37. package/dist/index107.js +16 -14
  38. package/dist/index111.js +5 -5
  39. package/dist/index113.js +12 -9
  40. package/dist/index115.js +27 -24
  41. package/dist/index117.js +27 -24
  42. package/dist/index119.js +1 -1
  43. package/dist/index121.js +5 -5
  44. package/dist/index123.js +1 -1
  45. package/dist/index128.js +1 -1
  46. package/dist/index13.js +1 -1
  47. package/dist/index134.js +2 -2
  48. package/dist/index15.js +24 -22
  49. package/dist/index17.js +14 -15
  50. package/dist/index19.js +57 -51
  51. package/dist/index208.js +7 -125
  52. package/dist/index209.js +126 -5
  53. package/dist/index21.js +77 -72
  54. package/dist/index210.js +5 -125
  55. package/dist/index211.js +123 -17
  56. package/dist/index212.js +18 -15
  57. package/dist/index213.js +10 -10
  58. package/dist/index214.js +16 -2
  59. package/dist/index215.js +2 -2
  60. package/dist/index216.js +2 -41
  61. package/dist/index217.js +41 -20
  62. package/dist/index218.js +20 -6
  63. package/dist/index219.js +5 -52
  64. package/dist/index220.js +55 -0
  65. package/dist/index222.js +12 -4
  66. package/dist/index223.js +5 -12
  67. package/dist/index224.js +12 -369
  68. package/dist/index225.js +369 -3
  69. package/dist/index226.js +19 -4
  70. package/dist/index227.js +22 -14
  71. package/dist/index228.js +3 -27
  72. package/dist/index229.js +250 -3
  73. package/dist/index23.js +28 -26
  74. package/dist/index230.js +50 -6
  75. package/dist/index231.js +36 -241
  76. package/dist/index232.js +5 -52
  77. package/dist/index233.js +47 -31
  78. package/dist/index234.js +164 -5
  79. package/dist/index235.js +78 -54
  80. package/dist/index237.js +3 -84
  81. package/dist/index238.js +9 -0
  82. package/dist/index240.js +1 -1
  83. package/dist/index242.js +4 -3
  84. package/dist/index243.js +3 -7
  85. package/dist/index246.js +1 -1
  86. package/dist/index248.js +1 -1
  87. package/dist/index25.js +6 -6
  88. package/dist/index253.js +9 -224
  89. package/dist/index254.js +23 -281
  90. package/dist/index255.js +89 -6
  91. package/dist/index257.js +6 -2
  92. package/dist/index258.js +16 -2
  93. package/dist/index259.js +9 -2
  94. package/dist/index260.js +9 -2
  95. package/dist/index261.js +8 -126
  96. package/dist/index262.js +3 -431
  97. package/dist/index263.js +11 -175
  98. package/dist/index264.js +9 -3
  99. package/dist/index265.js +19 -0
  100. package/dist/index266.js +4 -7
  101. package/dist/index267.js +281 -22
  102. package/dist/index268.js +8 -0
  103. package/dist/index269.js +2 -2
  104. package/dist/index27.js +9 -7
  105. package/dist/index270.js +2 -6
  106. package/dist/index271.js +2 -16
  107. package/dist/index272.js +2 -9
  108. package/dist/index273.js +2 -23
  109. package/dist/index274.js +2 -89
  110. package/dist/index275.js +4 -0
  111. package/dist/index276.js +2 -9
  112. package/dist/index277.js +2 -2
  113. package/dist/index278.js +2 -2
  114. package/dist/index279.js +28 -2
  115. package/dist/index280.js +21 -1
  116. package/dist/index282.js +7 -2
  117. package/dist/index283.js +2 -28
  118. package/dist/index284.js +125 -21
  119. package/dist/index285.js +433 -0
  120. package/dist/index286.js +167 -427
  121. package/dist/index287.js +3 -127
  122. package/dist/index289.js +22 -3
  123. package/dist/index29.js +10 -8
  124. package/dist/index291.js +2 -9
  125. package/dist/index292.js +4 -9
  126. package/dist/index293.js +197 -14
  127. package/dist/index294.js +435 -3
  128. package/dist/index295.js +127 -8
  129. package/dist/index296.js +88 -3
  130. package/dist/index297.js +218 -83
  131. package/dist/index300.js +23 -21
  132. package/dist/index302.js +5 -2
  133. package/dist/index303.js +2 -5
  134. package/dist/index304.js +3 -5
  135. package/dist/index305.js +3 -8
  136. package/dist/index306.js +3 -3
  137. package/dist/index307.js +58 -3
  138. package/dist/index308.js +10 -57
  139. package/dist/index309.js +6 -3
  140. package/dist/index31.js +4 -4
  141. package/dist/index310.js +19 -3
  142. package/dist/index311.js +6 -6
  143. package/dist/index312.js +32 -18
  144. package/dist/index313.js +46 -32
  145. package/dist/index314.js +4 -6
  146. package/dist/index315.js +7 -10
  147. package/dist/index316.js +2 -47
  148. package/dist/index317.js +4 -2
  149. package/dist/{index319.js → index318.js} +1 -1
  150. package/dist/index33.js +12 -12
  151. package/dist/index35.js +33 -33
  152. package/dist/index37.js +54 -50
  153. package/dist/index39.js +2 -2
  154. package/dist/index41.js +1 -1
  155. package/dist/index43.js +3 -3
  156. package/dist/index45.js +44 -42
  157. package/dist/index47.js +31 -29
  158. package/dist/index49.js +18 -16
  159. package/dist/index63.js +9 -9
  160. package/dist/index65.js +11 -9
  161. package/dist/index67.js +24 -21
  162. package/dist/index71.js +8 -5
  163. package/dist/index75.js +3 -3
  164. package/dist/index79.js +2 -2
  165. package/dist/index81.js +1 -1
  166. package/dist/index82.js +24 -21
  167. package/dist/index84.js +3 -3
  168. package/dist/index86.js +1 -1
  169. package/dist/index88.js +3 -3
  170. package/dist/index92.js +6 -6
  171. package/dist/index94.js +11 -9
  172. package/dist/index96.js +13 -11
  173. package/dist/style.css +1 -1
  174. package/dist/types/CommonProps.d.ts +1 -1
  175. package/package.json +2 -2
  176. package/dist/index221.js +0 -15
  177. package/dist/index236.js +0 -166
  178. package/dist/index256.js +0 -4
  179. package/dist/index281.js +0 -4
  180. package/dist/index288.js +0 -202
  181. package/dist/index290.js +0 -14
package/dist/index316.js CHANGED
@@ -1,49 +1,4 @@
1
- import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index320.js";
2
- import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index320.js";
3
- import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
- function w(e) {
5
- const t = new p(l(e)), a = E(t), u = t._didMount();
6
- return o(
7
- () => l(e).getScrollElement(),
8
- (r) => {
9
- r && t._willUpdate();
10
- },
11
- {
12
- immediate: !0
13
- }
14
- ), o(
15
- () => l(e),
16
- (r) => {
17
- t.setOptions({
18
- ...r,
19
- onChange: (c, m) => {
20
- var n;
21
- i(a), (n = r.onChange) == null || n.call(r, c, m);
22
- }
23
- }), t._willUpdate(), i(a);
24
- },
25
- {
26
- immediate: !0
27
- }
28
- ), v(u), a;
29
- }
30
- function z(e) {
31
- return w(
32
- g(() => ({
33
- observeElementRect: f,
34
- observeElementOffset: s,
35
- scrollToFn: d,
36
- ...l(e)
37
- }))
38
- );
39
- }
1
+ import f from "./index301.js";
40
2
  export {
41
- p as Virtualizer,
42
- S as defaultKeyExtractor,
43
- V as defaultRangeExtractor,
44
- d as elementScroll,
45
- b as measureElement,
46
- s as observeElementOffset,
47
- f as observeElementRect,
48
- z as useVirtualizer
3
+ f as default
49
4
  };
package/dist/index317.js CHANGED
@@ -1,4 +1,6 @@
1
- import f from "./index301.js";
1
+ function e(t) {
2
+ return Object.prototype.toString.call(t).slice(8, -1);
3
+ }
2
4
  export {
3
- f as default
5
+ e as getType
4
6
  };
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as dr, commonjsGlobal as D } from "./index255.js";
1
+ import { getDefaultExportFromCjs as dr, commonjsGlobal as D } from "./index268.js";
2
2
  import { __module as M } from "./index322.js";
3
3
  M.exports;
4
4
  (function(j, F) {
package/dist/index33.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as L, ref as m, toRef as d, openBlock as $, createBlock as E, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
- import { useOptions as w } from "./index236.js";
1
+ import { defineComponent as L, ref as m, toRef as l, openBlock as $, createBlock as E, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
+ import { useOptions as w } from "./index234.js";
3
3
  import q from "./index31.js";
4
4
  /* empty css */
5
- import z from "./index237.js";
5
+ import z from "./index235.js";
6
6
  /* empty css */
7
7
  const N = /* @__PURE__ */ L({
8
8
  __name: "BaseRadioGroup",
@@ -26,21 +26,21 @@ const N = /* @__PURE__ */ L({
26
26
  modelValueDebounceTime: { default: 0 },
27
27
  name: {},
28
28
  noDataText: { default: "Nessun elemento da visualizzare" },
29
- readonly: {},
29
+ readonly: { type: Boolean },
30
30
  required: { type: Boolean }
31
31
  },
32
32
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
33
  setup(h, { emit: y }) {
34
34
  const n = h, o = y, c = m(), r = m(!1), { innerLoading: g, options: T } = w({
35
- dependencies: d(n, "dependencies"),
35
+ dependencies: l(n, "dependencies"),
36
36
  depsDebounceTime: n.depsDebounceTime,
37
- disabled: d(n, "disabled"),
37
+ disabled: l(n, "disabled"),
38
38
  emit: o,
39
39
  enforceCoherence: n.enforceCoherence,
40
- items: d(n, "items"),
40
+ items: l(n, "items"),
41
41
  itemText: n.itemText,
42
42
  itemValue: n.itemValue,
43
- modelValue: d(n, "modelValue"),
43
+ modelValue: l(n, "modelValue"),
44
44
  modelValueDebounceTime: n.modelValueDebounceTime,
45
45
  multiple: !1,
46
46
  prefill: !0,
@@ -52,19 +52,19 @@ const N = /* @__PURE__ */ L({
52
52
  onChange: (e) => o("change", e),
53
53
  onClick: (e) => o("click", e),
54
54
  onFocus: (e) => {
55
- o("focus", e), r.value || (document.addEventListener("focusin", l, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
55
+ o("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
56
56
  },
57
57
  onInput: (e) => o("input", e),
58
58
  onKeydown: (e) => o("keydown", e),
59
59
  onMousedown: (e) => o("mousedown", e),
60
60
  onMouseup: (e) => o("mouseup", e),
61
61
  "onUpdate:modelValue": (e) => o("update:modelValue", e)
62
- }, l = (e) => {
62
+ }, d = (e) => {
63
63
  var s;
64
- e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", l), document.removeEventListener("click", u)));
64
+ e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
65
65
  }, u = (e) => {
66
66
  var s;
67
- e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", l), document.removeEventListener("click", u)));
67
+ e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
68
68
  };
69
69
  return (e, s) => ($(), E(z, {
70
70
  class: "bb-base-radio-group",
package/dist/index35.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as M } from "vue";
1
+ import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as B, renderList as I, normalizeClass as V, toDisplayString as M } from "vue";
2
2
  import { booleanishToBoolean as D } from "./index241.js";
3
- import { identity as F } from "./index214.js";
3
+ import { identity as F } from "./index215.js";
4
4
  import { isCssColor as v } from "./index239.js";
5
5
  import { isNotNil as T } from "./index135.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
@@ -14,34 +14,34 @@ const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-ra
14
14
  id: {},
15
15
  modelValue: {},
16
16
  name: {},
17
- readonly: {},
17
+ readonly: { type: Boolean },
18
18
  required: { type: Boolean },
19
19
  stars: { default: 5 },
20
20
  size: {}
21
21
  },
22
22
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
23
- setup(k, { emit: y }) {
24
- const a = k, n = y, u = g(), o = g(!1), _ = {
25
- onBlur: (e) => n("blur", e),
23
+ setup(y, { emit: k }) {
24
+ const a = y, s = k, u = g(), o = g(!1), _ = {
25
+ onBlur: (e) => s("blur", e),
26
26
  onChange: (e) => {
27
- n("change", e), e.target instanceof HTMLInputElement && e.target.checked && n("update:modelValue", +e.target.value);
27
+ s("change", e), e.target instanceof HTMLInputElement && e.target.checked && s("update:modelValue", +e.target.value);
28
28
  },
29
29
  onClick: (e) => {
30
- n("click", e), e.target instanceof HTMLInputElement && e.target.checked && +e.target.value === a.modelValue && n("update:modelValue", null);
30
+ s("click", e), e.target instanceof HTMLInputElement && e.target.checked && +e.target.value === a.modelValue && s("update:modelValue", null);
31
31
  },
32
32
  onFocus: (e) => {
33
- n("focus", e), o.value || (document.addEventListener("focusin", c, { passive: !0 }), document.addEventListener("click", d, { passive: !0 }), o.value = !0);
33
+ s("focus", e), o.value || (document.addEventListener("focusin", c, { passive: !0 }), document.addEventListener("click", d, { passive: !0 }), o.value = !0);
34
34
  },
35
- onInput: (e) => n("input", e),
36
- onKeydown: (e) => n("keydown", e),
37
- onMousedown: (e) => n("mousedown", e),
38
- onMouseup: (e) => n("mouseup", e)
35
+ onInput: (e) => s("input", e),
36
+ onKeydown: (e) => s("keydown", e),
37
+ onMousedown: (e) => s("mousedown", e),
38
+ onMouseup: (e) => s("mouseup", e)
39
39
  }, c = (e) => {
40
40
  var t;
41
- e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (n("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
41
+ e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (s("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
42
42
  }, d = (e) => {
43
43
  var t;
44
- e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (n("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
44
+ e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (s("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
45
45
  }, z = {
46
46
  xs: 12,
47
47
  sm: 16,
@@ -53,9 +53,9 @@ const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-ra
53
53
  let e;
54
54
  return typeof a.size == "string" ? e = z[a.size] ?? parseInt(a.size, 10) : e = a.size, e;
55
55
  }), w = f(() => new Array(a.stars).fill(0).map((e, t) => t + 1).map((e) => {
56
- const t = a.id ? [a.id, e].filter(F).join("_") : void 0, s = e === a.modelValue, b = !!(a.modelValue && e <= a.modelValue), L = !!(a.disabled || T(a.readonly) && D(a.readonly));
56
+ const t = a.id ? [a.id, e].filter(F).join("_") : void 0, n = e === a.modelValue, b = !!(a.modelValue && e <= a.modelValue), L = !!(a.disabled || T(a.readonly) && D(a.readonly));
57
57
  return {
58
- checked: s,
58
+ checked: n,
59
59
  disabled: L,
60
60
  highlighted: b,
61
61
  id: t,
@@ -83,35 +83,35 @@ const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-ra
83
83
  }), [
84
84
  r("span", $, [
85
85
  p(e.$slots, "prepend"),
86
- (l(!0), i(I, null, V(w.value, (s, b) => (l(), i("label", {
87
- key: s.value,
88
- class: B(["bb-base-rating__option", { "bb-base-rating__option--highlighted": s.highlighted }])
86
+ (l(!0), i(B, null, I(w.value, (n, b) => (l(), i("label", {
87
+ key: n.value,
88
+ class: V(["bb-base-rating__option", { "bb-base-rating__option--highlighted": n.highlighted }])
89
89
  }, [
90
- r("span", q, M(s.value), 1),
90
+ r("span", q, M(n.value), 1),
91
91
  r("input", h({
92
- id: s.id,
92
+ id: n.id,
93
93
  "aria-describedby": e.ariaDescribedby,
94
94
  autofocus: e.autofocus && !b,
95
- checked: s.checked,
95
+ checked: n.checked,
96
96
  class: "sr-only",
97
- disabled: s.disabled,
98
- name: s.name,
97
+ disabled: n.disabled,
98
+ name: n.name,
99
99
  required: e.required,
100
100
  type: "radio",
101
- value: s.value,
101
+ value: n.value,
102
102
  ref_for: !0
103
103
  }, _), null, 16, x),
104
104
  p(e.$slots, "icon", {
105
- id: s.id,
106
- checked: s.checked,
107
- disabled: s.disabled,
108
- size: s.size,
109
- value: s.value
105
+ id: n.id,
106
+ checked: n.checked,
107
+ disabled: n.disabled,
108
+ size: n.size,
109
+ value: n.value
110
110
  }, () => [
111
111
  (l(), i("svg", {
112
- height: s.size,
112
+ height: n.size,
113
113
  viewBox: "0 0 24 24",
114
- width: s.size,
114
+ width: n.size,
115
115
  xmlns: "http://www.w3.org/2000/svg"
116
116
  }, t[0] || (t[0] = [
117
117
  r("path", {
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,25 +6,25 @@ 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 "./index215.js";
9
+ import { last as Ye } from "./index216.js";
10
10
  import { matchAnyKey as j } from "./index245.js";
11
- import { useFloating as je } from "./index208.js";
11
+ import { useFloating as je } from "./index209.js";
12
12
  import { useIntersectionObserver as Ge } from "./index133.js";
13
- import { useLogger as Xe } from "./index230.js";
14
- import { useOptions as Ze } from "./index236.js";
13
+ import { useLogger as Xe } from "./index208.js";
14
+ import { useOptions as Ze } from "./index234.js";
15
15
  import { wait as L } from "./index132.js";
16
16
  import { when as et } from "./index240.js";
17
17
  import tt from "./index246.js";
18
18
  /* empty css */
19
19
  import ot from "./index248.js";
20
20
  /* empty css */
21
- import nt from "./index219.js";
21
+ import nt from "./index220.js";
22
22
  /* empty css */
23
- import lt from "./index221.js";
24
- import { waitFor as at } from "./index218.js";
25
- import it from "./index223.js";
26
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index224.js";
27
- const dt = { class: "bb-base-select__input-container" }, ct = {
23
+ import lt from "./index222.js";
24
+ import { waitFor as at } from "./index219.js";
25
+ import it from "./index224.js";
26
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index225.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({
@@ -34,9 +34,10 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
34
34
  allowWriting: { type: [Boolean, String], default: !0 },
35
35
  "append:icon": {},
36
36
  ariaDescribedby: {},
37
- autocomplete: {},
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 },
@@ -76,7 +77,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
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
@@ -5,7 +5,7 @@ import { isCssColor as Y } from "./index239.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 "./index229.js";
8
+ import { hash as J } from "./index228.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/index41.js CHANGED
@@ -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 "./index236.js";
2
+ import { useOptions as F } from "./index234.js";
3
3
  import M from "./index41.js";
4
4
  /* empty css */
5
- import S from "./index237.js";
5
+ import S from "./index235.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 }) {