bitboss-ui 2.0.105 → 2.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  8. package/dist/components/ListBox.vue.d.ts +0 -2
  9. package/dist/composables/useLocale.d.ts +1 -1
  10. package/dist/i18n/en.d.ts +45 -0
  11. package/dist/i18n/it.d.ts +45 -0
  12. package/dist/index100.js +9 -9
  13. package/dist/index111.js +109 -108
  14. package/dist/index119.js +2 -2
  15. package/dist/index121.js +55 -54
  16. package/dist/index123.js +1 -1
  17. package/dist/index125.js +14 -13
  18. package/dist/index127.js +1 -1
  19. package/dist/index128.js +1 -1
  20. package/dist/index129.js +1 -1
  21. package/dist/index13.js +1 -1
  22. package/dist/index131.js +1 -1
  23. package/dist/index132.js +2 -2
  24. package/dist/index133.js +2 -2
  25. package/dist/index15.js +36 -35
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +63 -64
  28. package/dist/index205.js +2 -115
  29. package/dist/index206.js +86 -2
  30. package/dist/index208.js +25 -4
  31. package/dist/index209.js +17 -2
  32. package/dist/index21.js +110 -103
  33. package/dist/index210.js +46 -279
  34. package/dist/index211.js +15 -16
  35. package/dist/index212.js +3 -16
  36. package/dist/index213.js +12 -19
  37. package/dist/index214.js +16 -19
  38. package/dist/index215.js +2 -27
  39. package/dist/index216.js +4 -3
  40. package/dist/index217.js +2 -2
  41. package/dist/index219.js +3 -250
  42. package/dist/index220.js +41 -52
  43. package/dist/index221.js +5 -43
  44. package/dist/index222.js +7 -5
  45. package/dist/index223.js +10 -58
  46. package/dist/index224.js +12 -83
  47. package/dist/index225.js +55 -0
  48. package/dist/index227.js +13 -25
  49. package/dist/index228.js +5 -17
  50. package/dist/index229.js +15 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +16 -15
  53. package/dist/index231.js +19 -12
  54. package/dist/index232.js +15 -16
  55. package/dist/index233.js +19 -3
  56. package/dist/index234.js +26 -40
  57. package/dist/index235.js +2 -6
  58. package/dist/index236.js +250 -7
  59. package/dist/index237.js +50 -10
  60. package/dist/index238.js +39 -48
  61. package/dist/index239.js +7 -0
  62. package/dist/index240.js +60 -13
  63. package/dist/index241.js +20 -3
  64. package/dist/index242.js +3 -125
  65. package/dist/index243.js +123 -122
  66. package/dist/index244.js +125 -2
  67. package/dist/index245.js +2 -20
  68. package/dist/index246.js +2 -2
  69. package/dist/index247.js +2 -2
  70. package/dist/index248.js +114 -3
  71. package/dist/index249.js +3 -2
  72. package/dist/index25.js +44 -41
  73. package/dist/index250.js +2 -2
  74. package/dist/index251.js +18 -2
  75. package/dist/index252.js +105 -17
  76. package/dist/{index255.js → index254.js} +2 -2
  77. package/dist/index256.js +14 -0
  78. package/dist/index257.js +2 -12
  79. package/dist/index258.js +2 -10
  80. package/dist/index259.js +9 -2
  81. package/dist/index260.js +3 -6
  82. package/dist/index261.js +3 -16
  83. package/dist/index262.js +17 -9
  84. package/dist/index263.js +8 -8
  85. package/dist/index264.js +28 -23
  86. package/dist/index265.js +4 -89
  87. package/dist/index266.js +433 -0
  88. package/dist/index267.js +2 -4
  89. package/dist/index268.js +88 -5
  90. package/dist/index269.js +7 -2
  91. package/dist/index27.js +1 -1
  92. package/dist/index270.js +11 -2
  93. package/dist/index271.js +3 -2
  94. package/dist/index273.js +7 -2
  95. package/dist/index274.js +200 -2
  96. package/dist/index275.js +281 -2
  97. package/dist/index276.js +6 -2
  98. package/dist/index277.js +2 -2
  99. package/dist/index278.js +2 -2
  100. package/dist/index279.js +2 -28
  101. package/dist/index280.js +2 -22
  102. package/dist/index282.js +2 -7
  103. package/dist/index283.js +2 -3
  104. package/dist/index284.js +2 -7
  105. package/dist/index285.js +2 -11
  106. package/dist/index286.js +2 -17
  107. package/dist/index287.js +2 -9
  108. package/dist/index288.js +20 -429
  109. package/dist/index29.js +3 -3
  110. package/dist/index290.js +8 -88
  111. package/dist/index291.js +23 -3
  112. package/dist/index292.js +91 -0
  113. package/dist/index294.js +171 -195
  114. package/dist/index297.js +22 -176
  115. package/dist/index299.js +11 -0
  116. package/dist/index300.js +6 -8
  117. package/dist/index301.js +15 -435
  118. package/dist/index302.js +8 -127
  119. package/dist/index303.js +224 -3
  120. package/dist/index304.js +436 -3
  121. package/dist/index305.js +126 -212
  122. package/dist/index306.js +3 -3
  123. package/dist/index307.js +3 -3
  124. package/dist/index308.js +212 -56
  125. package/dist/index309.js +67 -7
  126. package/dist/index31.js +2 -2
  127. package/dist/index310.js +2 -19
  128. package/dist/index311.js +5 -66
  129. package/dist/index312.js +4 -6
  130. package/dist/index313.js +8 -2
  131. package/dist/index314.js +6 -4
  132. package/dist/index315.js +18 -7
  133. package/dist/index316.js +45 -0
  134. package/dist/index317.js +47 -2
  135. package/dist/index318.js +7 -5
  136. package/dist/index319.js +32 -2
  137. package/dist/index321.js +2 -32
  138. package/dist/index322.js +3 -47
  139. package/dist/index323.js +3 -2
  140. package/dist/index324.js +49 -471
  141. package/dist/index325.js +49 -0
  142. package/dist/index326.js +2 -424
  143. package/dist/index327.js +479 -46
  144. package/dist/index329.js +426 -0
  145. package/dist/index33.js +45 -45
  146. package/dist/index330.js +49 -0
  147. package/dist/index35.js +56 -55
  148. package/dist/index37.js +166 -165
  149. package/dist/index39.js +5 -5
  150. package/dist/index41.js +2 -2
  151. package/dist/index43.js +70 -71
  152. package/dist/index45.js +7 -7
  153. package/dist/index47.js +2 -2
  154. package/dist/index49.js +2 -2
  155. package/dist/index53.js +28 -27
  156. package/dist/index55.js +1 -1
  157. package/dist/index57.js +2 -2
  158. package/dist/index61.js +32 -31
  159. package/dist/index75.js +3 -3
  160. package/dist/index77.js +87 -86
  161. package/dist/index79.js +2 -2
  162. package/dist/index81.js +1 -1
  163. package/dist/index84.js +45 -44
  164. package/dist/index86.js +67 -66
  165. package/dist/index88.js +69 -67
  166. package/dist/index90.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/index207.js +0 -4
  169. package/dist/index226.js +0 -10
  170. package/dist/index253.js +0 -108
  171. package/dist/index289.js +0 -4
  172. package/dist/index293.js +0 -226
  173. package/dist/index298.js +0 -24
  174. /package/dist/{index272.js → index281.js} +0 -0
  175. /package/dist/{index328.js → index331.js} +0 -0
package/dist/index37.js CHANGED
@@ -1,38 +1,39 @@
1
- import { defineComponent as Ue, defineAsyncComponent as Ge, ref as f, computed as y, toRef as x, openBlock as h, createBlock as T, normalizeClass as Z, withCtx as i, renderSlot as c, createVNode as K, unref as S, createElementVNode as H, createElementBlock as A, Fragment as ee, toDisplayString as Re, createCommentVNode as te, withDirectives as je, withModifiers as p, withKeys as g, vModelDynamic as Je, renderList as Qe, mergeProps as le, normalizeStyle as Xe, nextTick as _ } from "vue";
1
+ import { defineComponent as Re, defineAsyncComponent as Ge, ref as f, computed as y, toRef as x, openBlock as h, createBlock as T, normalizeClass as Z, withCtx as i, renderSlot as c, createVNode as K, unref as V, createElementVNode as H, createElementBlock as A, Fragment as ee, toDisplayString as je, createCommentVNode as te, withDirectives as Je, withModifiers as p, withKeys as g, vModelDynamic as Qe, renderList as Xe, mergeProps as le, normalizeStyle as Ye, nextTick as _ } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { useId as Ye } from "./index8.js";
5
- import { useMobile as Ze } from "./index9.js";
6
- import et from "./index128.js";
4
+ import { useId as Ze } from "./index8.js";
5
+ import { useMobile as et } from "./index9.js";
6
+ import tt from "./index128.js";
7
7
  /* empty css */
8
- import { last as tt } from "./index217.js";
9
- import { matchAnyKey as ae } from "./index252.js";
10
- import { useFloating as lt } from "./index242.js";
8
+ import { last as lt } from "./index235.js";
9
+ import { matchAnyKey as oe } from "./index251.js";
10
+ import { useFloating as ot } from "./index243.js";
11
11
  import { useIntersectionObserver as at } from "./index132.js";
12
- import { wait as E } from "./index130.js";
13
- import { when as ot } from "./index208.js";
14
- import nt from "./index253.js";
12
+ import { wait as L } from "./index130.js";
13
+ import { when as nt } from "./index216.js";
14
+ import it from "./index252.js";
15
15
  /* empty css */
16
- import it from "./index255.js";
16
+ import ut from "./index254.js";
17
17
  /* empty css */
18
- import ut from "./index238.js";
18
+ import rt from "./index225.js";
19
19
  /* empty css */
20
- import rt from "./index240.js";
21
- import { waitFor as st } from "./index235.js";
22
- import dt from "./index237.js";
23
- import { useItemsGetter as ct } from "./index227.js";
24
- import { usePrefill as pt } from "./index232.js";
25
- import { useArray as mt } from "./index257.js";
26
- import { useBaseOptions as ft } from "./index229.js";
27
- import { useIndexById as oe } from "./index228.js";
28
- import { useCoherence as vt } from "./index230.js";
29
- import { hash as yt } from "./index216.js";
30
- import { useHashedWatcher as ne } from "./index231.js";
31
- import { autoUpdate as ht, flip as bt, offset as gt, shift as wt } from "./index247.js";
32
- const Bt = { class: "bb-base-select__input-container" }, Vt = {
20
+ import st from "./index227.js";
21
+ import { waitFor as dt } from "./index221.js";
22
+ import ct from "./index223.js";
23
+ import { useItemsGetter as pt } from "./index208.js";
24
+ import { usePrefill as mt } from "./index214.js";
25
+ import { useArray as ft } from "./index256.js";
26
+ import { useBaseOptions as vt } from "./index210.js";
27
+ import { useIndexById as ae } from "./index209.js";
28
+ import { useCoherence as yt } from "./index211.js";
29
+ import { hash as ht } from "./index212.js";
30
+ import { useHashedWatcher as ne } from "./index213.js";
31
+ import { useLocale as bt } from "./index224.js";
32
+ import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./index247.js";
33
+ const It = { class: "bb-base-select__input-container" }, kt = {
33
34
  key: 1,
34
35
  class: "bb-base-select__max-reached"
35
- }, It = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], tl = /* @__PURE__ */ Ue({
36
+ }, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], al = /* @__PURE__ */ Re({
36
37
  __name: "BaseSelect",
37
38
  props: {
38
39
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -53,14 +54,14 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
53
54
  itemText: {},
54
55
  itemValue: {},
55
56
  loading: { type: Boolean },
56
- loadingText: { default: "Caricamento..." },
57
+ loadingText: {},
57
58
  max: { default: 1 / 0 },
58
59
  maxSelectedLabels: { default: 1 / 0 },
59
60
  modelValue: {},
60
61
  modelValueDebounceTime: { default: 0 },
61
62
  multiple: { type: Boolean },
62
63
  name: {},
63
- noDataText: { default: "Nessun elemento da visualizzare" },
64
+ noDataText: {},
64
65
  placeholder: {},
65
66
  prefill: { type: [Boolean, String], default: "focus" },
66
67
  "prepend:icon": {},
@@ -76,119 +77,119 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
76
77
  const t = ie, u = ue;
77
78
  if (t.multiple && !Array.isArray(t.modelValue))
78
79
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
79
- const re = Ge(() => import("./index251.js")), F = f(null), V = f(null), n = f(null), U = f(null), G = f(null), r = y(
80
- () => t.comma ? U.value : G.value
81
- ), { isMobile: se } = Ze(), de = y(
82
- () => t.allowWriting === "not-mobile" && se.value ? "none" : void 0
83
- ), R = t.id || Ye().id.value;
80
+ const { t: re } = bt(), se = Ge(() => import("./index250.js")), E = f(null), I = f(null), n = f(null), U = f(null), R = f(null), r = y(
81
+ () => t.comma ? U.value : R.value
82
+ ), { isMobile: de } = et(), ce = y(
83
+ () => t.allowWriting === "not-mobile" && de.value ? "none" : void 0
84
+ ), G = t.id || Ze().id.value;
84
85
  at(
85
- V,
86
+ I,
86
87
  ([{ intersectionRatio: e }]) => {
87
- e !== 1 && k();
88
+ e !== 1 && S();
88
89
  },
89
90
  { threshold: [0, 1] }
90
91
  );
91
- const { floatingStyles: ce } = lt(
92
- V,
92
+ const { floatingStyles: pe } = ot(
93
+ I,
93
94
  n,
94
95
  {
95
96
  placement: "bottom",
96
- whileElementsMounted: ht,
97
- middleware: [bt(), gt(5), wt()]
97
+ whileElementsMounted: gt,
98
+ middleware: [wt(), Bt(5), Vt()]
98
99
  }
99
- ), pe = y(() => {
100
+ ), me = y(() => {
100
101
  var l;
101
102
  const e = {
102
- ...ce.value,
103
+ ...pe.value,
103
104
  zIndex: "10"
104
105
  };
105
- return V.value && (e.width = `${(l = V.value) == null ? void 0 : l.$el.clientWidth}px`), e;
106
- }), L = f(null), q = () => {
107
- L.value instanceof HTMLInputElement && L.value.focus();
108
- }, me = async (e) => {
109
- u("focus", e), ze(), document.addEventListener("click", D), document.addEventListener("focusin", D);
110
- }, fe = () => {
111
- t.prefill === "focus" && !De.value && !J.value && $e();
112
- }, ve = async (e) => {
106
+ return I.value && (e.width = `${(l = I.value) == null ? void 0 : l.$el.clientWidth}px`), e;
107
+ }), F = f(null), q = () => {
108
+ F.value instanceof HTMLInputElement && F.value.focus();
109
+ }, fe = async (e) => {
110
+ u("focus", e), We(), document.addEventListener("click", D), document.addEventListener("focusin", D);
111
+ }, ve = () => {
112
+ t.prefill === "focus" && !$e.value && !J.value && Oe();
113
+ }, ye = async (e) => {
113
114
  u("blur", e);
114
- }, ye = (e) => u("change", e), he = (e) => {
115
+ }, he = (e) => u("change", e), be = (e) => {
115
116
  var l;
116
- u("input", e), a.value === "" && (t.multiple || u("update:modelValue", null)), (l = r.value) == null || l.blur(), z.value && I(), Ce(a.value, !1, t.modelValue);
117
+ u("input", e), o.value === "" && (t.multiple || u("update:modelValue", null)), (l = r.value) == null || l.blur(), N.value && k(), Ce(o.value, !1, t.modelValue);
117
118
  }, D = async (e) => {
118
- if (e.target instanceof Node && F.value && n.value && !F.value.$el.contains(e.target) && !n.value.$el.contains(e.target)) {
119
- k(), Ne(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await E(t.transitionDuration), b();
119
+ if (e.target instanceof Node && E.value && n.value && !E.value.$el.contains(e.target) && !n.value.$el.contains(e.target)) {
120
+ S(), ze(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), b();
120
121
  return;
121
122
  }
122
- }, w = y(() => !(t.readonly || t.disabled || O.value || !r.value && t.multiple)), be = async () => {
123
- var e, l, o;
124
- w.value && ((e = r.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusPrevious() : (await I(), await E(t.transitionDuration), (o = n.value) == null || o.focusLastSelected()));
125
- }, ge = async () => {
126
- var e, l, o;
127
- w.value && ((e = r.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusNext() : (await I(), await E(t.transitionDuration), (o = n.value) == null || o.focusFirstSelected()));
128
- }, we = (e) => {
129
- var o, d, v, C;
130
- if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !s.value.length)) return;
123
+ }, w = y(() => !(t.readonly || t.disabled || O.value || !r.value && t.multiple)), ge = async () => {
124
+ var e, l, a;
125
+ w.value && ((e = r.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusPrevious() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusLastSelected()));
126
+ }, we = async () => {
127
+ var e, l, a;
128
+ w.value && ((e = r.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusNext() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusFirstSelected()));
129
+ }, Be = (e) => {
130
+ var a, d, v, C;
131
+ if (!w.value || !t.multiple || o.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
131
132
  (d = r.value) == null || d.focusPrevious();
132
133
  const l = (v = r.value) == null ? void 0 : v.getHighlighted();
133
134
  l && ((C = n.value) == null || C.focusByHash(l.valueHash));
134
- }, Be = (e) => {
135
- var o, d, v, C;
136
- if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !s.value.length)) return;
135
+ }, Ve = (e) => {
136
+ var a, d, v, C;
137
+ if (!w.value || !t.multiple || o.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
137
138
  (d = r.value) == null || d.focusNext();
138
139
  const l = (v = r.value) == null ? void 0 : v.getHighlighted();
139
140
  l && ((C = n.value) == null || C.focusByHash(l.valueHash));
140
- }, Ve = async () => {
141
- var l, o;
141
+ }, Ie = async () => {
142
+ var l, a;
142
143
  if (!w.value)
143
144
  return;
144
145
  if (m.value) {
145
- if ((o = n.value) != null && o.getHighlighted()) {
146
+ if ((a = n.value) != null && a.getHighlighted()) {
146
147
  n.value.confirmOption();
147
148
  return;
148
149
  }
149
150
  } else {
150
- await I(), await E(t.transitionDuration), s.value.length && ((l = n.value) == null || l.focusFirstSelected());
151
+ await k(), await L(t.transitionDuration), s.value.length && ((l = n.value) == null || l.focusFirstSelected());
151
152
  return;
152
153
  }
153
- const e = a.value.trim();
154
- Ee(e) || (u("option:add", e), a.value = "");
155
- }, Ie = async () => {
156
- m.value && await k();
154
+ const e = o.value.trim();
155
+ Ee(e) || (u("option:add", e), o.value = "");
157
156
  }, ke = async () => {
157
+ m.value && await S();
158
+ }, Se = async () => {
158
159
  var e, l;
159
- !w.value || a.value || !s.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await _(), (l = r.value) == null || l.focusPrevious());
160
- }, a = f(""), {
160
+ !w.value || o.value || !s.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await _(), (l = r.value) == null || l.focusPrevious());
161
+ }, o = f(""), {
161
162
  getter: M,
162
163
  debouncedGetter: Ce,
163
- items: Se,
164
+ items: De,
164
165
  loading: j
165
- } = ct({
166
+ } = pt({
166
167
  items: x(t, "items"),
167
168
  debounce: t.queryDebounceTime
168
169
  }), P = () => {
169
170
  var e, l;
170
- t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Me.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (l = n.value) == null || l.blur());
171
+ t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (l = n.value) == null || l.blur());
171
172
  }, {
172
173
  hasPrefilled: J,
173
- isPrefilling: De,
174
- prefill: $e
175
- } = pt({
174
+ isPrefilling: $e,
175
+ prefill: Oe
176
+ } = mt({
176
177
  onStart: t.prefill === !0,
177
178
  currentValue: t.modelValue,
178
179
  multiple: t.multiple,
179
180
  fn: async ({ prefill: e }) => {
180
- await M(a.value, e, t.modelValue), P(), b();
181
+ await M(o.value, e, t.modelValue), P(), b();
181
182
  }
182
183
  }), {
183
- array: Oe,
184
- add: xe,
185
- remove: Te,
186
- set: He
187
- } = mt(), s = y(() => $.value.filter((e) => e.selected)), Ae = y(() => s.value.length ? "" : t.placeholder), { data: Q, get: Ee } = oe({
184
+ array: xe,
185
+ add: Te,
186
+ remove: He,
187
+ set: Ae
188
+ } = ft(), s = y(() => $.value.filter((e) => e.selected)), Le = y(() => s.value.length ? "" : t.placeholder), { data: Q, get: Ee } = ae({
188
189
  items: x(t, "modelValue")
189
- }), { options: $ } = ft({
190
+ }), { options: $ } = vt({
190
191
  disabled: x(t, "disabled"),
191
- items: y(() => [...Se.value, ...Oe.value]),
192
+ items: y(() => [...De.value, ...xe.value]),
192
193
  itemText: t.itemText,
193
194
  itemValue: t.itemValue,
194
195
  max: t.max,
@@ -197,41 +198,41 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
197
198
  }), O = y(() => !!(j.value || t.loading)), Fe = y(() => {
198
199
  let e = [];
199
200
  const l = s.value.some(
200
- (d) => d.text === a.value
201
+ (d) => d.text === o.value
201
202
  );
202
- return (t.multiple && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = $.value.filter((d) => {
203
+ return (t.multiple && o.value || o.value && !l && !t.multiple) && t.filterBy ? e = $.value.filter((d) => {
203
204
  let v = !1;
204
- return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || ae(d.item, t.filterBy, a.value.trim())), v || ae(d, ["text"], a.value.trim());
205
+ return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || oe(d.item, t.filterBy, o.value.trim())), v || oe(d, ["text"], o.value.trim());
205
206
  }) : e = $.value, e;
206
207
  }), b = () => {
207
208
  if (t.multiple) {
208
- a.value = "";
209
+ o.value = "";
209
210
  return;
210
211
  }
211
212
  let e;
212
- s.value && (e = tt(s.value)), a.value = (e == null ? void 0 : e.text) || "";
213
- }, Le = async (e) => {
214
- t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && xe(e.item), b()) : (t.stash && He(e.item), u("update:modelValue", e.value), await _(), b()), q(), t.multiple || k();
213
+ s.value && (e = lt(s.value)), o.value = (e == null ? void 0 : e.text) || "";
214
+ }, qe = async (e) => {
215
+ t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && Te(e.item), b()) : (t.stash && Ae(e.item), u("update:modelValue", e.value), await _(), b()), q(), t.multiple || S();
215
216
  }, X = async (e) => {
216
- if (Te((l) => l.valueHash !== e.valueHash), t.multiple) {
217
+ if (He((l) => l.valueHash !== e.valueHash), t.multiple) {
217
218
  const l = { ...Q.value };
218
219
  delete l[e.valueHash], u("update:modelValue", Object.values(l));
219
220
  } else
220
221
  u("update:modelValue", null), await _(), b();
221
222
  q();
222
- }, { data: qe } = oe({
223
+ }, { data: Me } = ae({
223
224
  items: $,
224
225
  key: "valueHash"
225
- }), { coherent: Y, status: Me } = vt({
226
+ }), { coherent: Y, status: Pe } = yt({
226
227
  modelValue: x(t, "modelValue"),
227
228
  multiple: t.multiple,
228
- iteratee: (e) => !!qe.value[yt(e)]
229
+ iteratee: (e) => !!Me.value[ht(e)]
229
230
  });
230
231
  let B = 0;
231
232
  ne(
232
233
  () => t.modelValue,
233
234
  async () => {
234
- B++, Y.value || (await M(a.value, !1, t.modelValue), P()), B === 1 && b(), B--;
235
+ B++, Y.value || (await M(o.value, !1, t.modelValue), P()), B === 1 && b(), B--;
235
236
  },
236
237
  {
237
238
  debounce: t.modelValueDebounceTime
@@ -239,28 +240,28 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
239
240
  ), ne(
240
241
  () => [t.dependencies, t.items],
241
242
  async () => {
242
- J.value && (B++, await M(a.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
243
+ J.value && (B++, await M(o.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
243
244
  },
244
245
  {
245
246
  debounce: t.depsDebounceTime
246
247
  }
247
248
  );
248
- const m = f(!1), z = f(!0), N = f(!1), I = async () => {
249
- N.value = !0, await st(() => !!n.value), z.value = !1, m.value = !0;
250
- }, k = async () => {
249
+ const m = f(!1), N = f(!0), W = f(!1), k = async () => {
250
+ W.value = !0, await dt(() => !!n.value), N.value = !1, m.value = !0;
251
+ }, S = async () => {
251
252
  var e;
252
- m.value = !1, z.value = !0, (e = r.value) == null || e.blur();
253
- }, Pe = () => m.value ? k() : I(), W = f(!1), ze = () => {
254
- W.value = !0;
255
- }, Ne = () => {
256
- W.value = !1, u("inactive");
257
- }, We = (e) => {
258
- e.preventDefault(), u("click", e), !(t.disabled || t.readonly) && (q(), Pe());
259
- }, Ke = ot(
253
+ m.value = !1, N.value = !0, (e = r.value) == null || e.blur();
254
+ }, Ne = () => m.value ? S() : k(), z = f(!1), We = () => {
255
+ z.value = !0;
256
+ }, ze = () => {
257
+ z.value = !1, u("inactive");
258
+ }, Ke = (e) => {
259
+ e.preventDefault(), u("click", e), !(t.disabled || t.readonly) && (q(), Ne());
260
+ }, _e = nt(
260
261
  (e) => typeof e != "string",
261
262
  JSON.stringify
262
- ), _e = y(() => [].concat(t.modelValue).map((e) => {
263
- const l = Ke(e);
263
+ ), Ue = y(() => [].concat(t.modelValue).map((e) => {
264
+ const l = _e(e);
264
265
  return {
265
266
  disabled: t.disabled,
266
267
  name: t.name,
@@ -268,12 +269,12 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
268
269
  value: l
269
270
  };
270
271
  }));
271
- return (e, l) => (h(), T(rt, {
272
+ return (e, l) => (h(), T(st, {
272
273
  ref_key: "outerContainer",
273
- ref: F,
274
+ ref: E,
274
275
  class: Z({
275
276
  "bb-base-select": !0,
276
- "bb-base-select--active": W.value,
277
+ "bb-base-select--active": z.value,
277
278
  "bb-base-select--shown": m.value,
278
279
  "bb-base-select--loading": O.value,
279
280
  "bb-base-select--disabled": e.disabled,
@@ -281,95 +282,95 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
281
282
  "bb-base-select--readonly": e.readonly,
282
283
  "bb-base-select--compact": e.compact
283
284
  }),
284
- onClick: We
285
+ onClick: Ke
285
286
  }, {
286
287
  "prepend-outer": i(() => [
287
- c(e.$slots, "prepend-outer", { query: a.value })
288
+ c(e.$slots, "prepend-outer", { query: o.value })
288
289
  ]),
289
290
  "append-outer": i(() => [
290
- c(e.$slots, "append-outer", { query: a.value })
291
+ c(e.$slots, "append-outer", { query: o.value })
291
292
  ]),
292
293
  default: i(() => [
293
- K(ut, {
294
+ K(rt, {
294
295
  ref_key: "innerContainer",
295
- ref: V,
296
+ ref: I,
296
297
  "append:icon": t["append:icon"],
297
298
  "prepend:icon": t["prepend:icon"],
298
299
  "prevent-focus": !0
299
300
  }, {
300
301
  prepend: i(() => [
301
- c(e.$slots, "prepend", { query: a.value })
302
+ c(e.$slots, "prepend", { query: o.value })
302
303
  ]),
303
304
  prefix: i(() => [
304
305
  c(e.$slots, "prefix")
305
306
  ]),
306
307
  append: i(() => [
307
- c(e.$slots, "append", { query: a.value })
308
+ c(e.$slots, "append", { query: o.value })
308
309
  ]),
309
310
  suffix: i(() => [
310
311
  c(e.$slots, "suffix")
311
312
  ]),
312
313
  default: i(() => [
313
- K(S(et), { tag: "span" }, {
314
+ K(V(tt), { tag: "span" }, {
314
315
  default: i(() => [
315
- H("span", Bt, [
316
+ H("span", It, [
316
317
  e.multiple && s.value.length <= e.maxSelectedLabels ? (h(), A(ee, { key: 0 }, [
317
- e.comma ? (h(), T(it, {
318
+ e.comma ? (h(), T(ut, {
318
319
  key: 0,
319
320
  ref_key: "commaBox",
320
321
  ref: U,
321
322
  options: s.value
322
- }, null, 8, ["options"])) : (h(), T(nt, {
323
+ }, null, 8, ["options"])) : (h(), T(it, {
323
324
  key: 1,
324
325
  ref_key: "chipsBox",
325
- ref: G,
326
+ ref: R,
326
327
  options: s.value,
327
328
  "onOption:unselected": X
328
329
  }, null, 8, ["options"]))
329
- ], 64)) : e.multiple ? (h(), A("span", Vt, Re(s.value.length) + " elementi selezionati ", 1)) : te("", !0),
330
- je(H("input", {
331
- id: S(R),
330
+ ], 64)) : e.multiple ? (h(), A("span", kt, je(V(re)("select.multipleMaxReached", s.value.length)), 1)) : te("", !0),
331
+ Je(H("input", {
332
+ id: V(G),
332
333
  ref_key: "input",
333
- ref: L,
334
- "onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
334
+ ref: F,
335
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => o.value = a),
335
336
  "aria-autocomplete": "list",
336
- "aria-controls": N.value ? `${S(R)}_listbox` : void 0,
337
+ "aria-controls": W.value ? `${V(G)}_listbox` : void 0,
337
338
  "aria-describedby": e.ariaDescribedby,
338
339
  "aria-expanded": m.value,
339
340
  autocomplete: e.autocomplete,
340
341
  autofocus: e.autofocus,
341
342
  class: Z("bb-base-select__text-input"),
342
343
  disabled: e.disabled,
343
- inputmode: de.value,
344
- placeholder: Ae.value,
344
+ inputmode: ce.value,
345
+ placeholder: Le.value,
345
346
  readonly: e.readonly || !e.allowWriting,
346
347
  required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
347
348
  role: "combobox",
348
349
  size: "1",
349
350
  type: "text",
350
- onBlur: p(ve, ["stop"]),
351
- onChange: p(ye, ["stop"]),
352
- onFocusOnce: p(fe, ["stop"]),
353
- onFocus: p(me, ["stop"]),
354
- onInput: p(he, ["stop"]),
351
+ onBlur: p(ye, ["stop"]),
352
+ onChange: p(he, ["stop"]),
353
+ onFocusOnce: p(ve, ["stop"]),
354
+ onFocus: p(fe, ["stop"]),
355
+ onInput: p(be, ["stop"]),
355
356
  onKeydown: [
356
- g(p(ke, ["stop"]), ["delete"]),
357
- g(p(we, ["stop"]), ["left"]),
358
- g(p(ge, ["stop", "prevent"]), ["down"]),
359
- g(p(Ve, ["stop", "prevent"]), ["enter"]),
360
- g(p(Ie, ["stop", "prevent"]), ["esc"]),
361
- g(p(be, ["stop", "prevent"]), ["up"]),
362
- g(p(Be, ["stop"]), ["right"])
357
+ g(p(Se, ["stop"]), ["delete"]),
358
+ g(p(Be, ["stop"]), ["left"]),
359
+ g(p(we, ["stop", "prevent"]), ["down"]),
360
+ g(p(Ie, ["stop", "prevent"]), ["enter"]),
361
+ g(p(ke, ["stop", "prevent"]), ["esc"]),
362
+ g(p(ge, ["stop", "prevent"]), ["up"]),
363
+ g(p(Ve, ["stop"]), ["right"])
363
364
  ]
364
- }, null, 40, It), [
365
- [Je, a.value]
365
+ }, null, 40, St), [
366
+ [Qe, o.value]
366
367
  ])
367
368
  ])
368
369
  ]),
369
370
  _: 1
370
371
  }),
371
372
  c(e.$slots, "chevron", {
372
- loading: !!S(j),
373
+ loading: !!V(j),
373
374
  shown: m.value
374
375
  }, () => [
375
376
  l[1] || (l[1] = H("svg", {
@@ -386,13 +387,13 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
386
387
  ]),
387
388
  _: 3
388
389
  }, 8, ["append:icon", "prepend:icon"]),
389
- (h(!0), A(ee, null, Qe(_e.value, (o) => (h(), A("input", le({
390
- key: o.value,
390
+ (h(!0), A(ee, null, Xe(Ue.value, (a) => (h(), A("input", le({
391
+ key: a.value,
391
392
  ref_for: !0
392
- }, o), null, 16))), 128)),
393
- N.value ? (h(), T(dt, { key: 0 }, {
393
+ }, a), null, 16))), 128)),
394
+ W.value ? (h(), T(ct, { key: 0 }, {
394
395
  default: i(() => [
395
- K(S(re), {
396
+ K(V(se), {
396
397
  ref_key: "optionsContainer",
397
398
  ref: n,
398
399
  compact: e.compact,
@@ -401,27 +402,27 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
401
402
  "no-data-text": e.noDataText,
402
403
  open: m.value,
403
404
  options: Fe.value,
404
- style: Xe(pe.value),
405
- "onOption:selected": Le,
405
+ style: Ye(me.value),
406
+ "onOption:selected": qe,
406
407
  "onOption:unselected": X
407
408
  }, {
408
409
  "options:prepend": i(() => [
409
410
  c(e.$slots, "options:prepend")
410
411
  ]),
411
412
  loading: i(() => [
412
- c(e.$slots, "loading", { query: a.value })
413
+ c(e.$slots, "loading", { query: o.value })
413
414
  ]),
414
415
  "no-data": i(() => [
415
- c(e.$slots, "no-data", { query: a.value })
416
+ c(e.$slots, "no-data", { query: o.value })
416
417
  ]),
417
418
  "options:append": i(() => [
418
419
  c(e.$slots, "options:append")
419
420
  ]),
420
- option: i((o) => [
421
+ option: i((a) => [
421
422
  c(e.$slots, "option", le({
422
423
  hasErrors: e.hasErrors,
423
424
  loading: O.value
424
- }, o))
425
+ }, a))
425
426
  ]),
426
427
  _: 3
427
428
  }, 8, ["compact", "loading", "loading-text", "no-data-text", "open", "options", "style"])
@@ -434,5 +435,5 @@ const Bt = { class: "bb-base-select__input-container" }, Vt = {
434
435
  }
435
436
  });
436
437
  export {
437
- tl as default
438
+ al as default
438
439
  };
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index206.js";
3
- import { head as O } from "./index249.js";
4
- import { isCssColor as Y } from "./index207.js";
5
- import { isNil as P } from "./index250.js";
2
+ import { clamp as le } from "./index205.js";
3
+ import { head as O } from "./index257.js";
4
+ import { isCssColor as Y } from "./index215.js";
5
+ import { isNil as P } from "./index258.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
- import { hash as J } from "./index216.js";
8
+ import { hash as J } from "./index212.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 A, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index207.js";
3
- import { when as N } from "./index208.js";
2
+ import { isCssColor as b } from "./index215.js";
3
+ import { when as N } from "./index216.js";
4
4
  const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {