bitboss-ui 2.0.59 → 2.0.61

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 (143) hide show
  1. package/dist/index110.js +4 -4
  2. package/dist/index118.js +1 -1
  3. package/dist/index120.js +4 -4
  4. package/dist/index126.js +1 -1
  5. package/dist/index127.js +1 -1
  6. package/dist/index128.js +1 -1
  7. package/dist/index13.js +1 -1
  8. package/dist/index130.js +1 -1
  9. package/dist/index132.js +2 -2
  10. package/dist/index15.js +4 -4
  11. package/dist/index17.js +3 -3
  12. package/dist/index19.js +2 -2
  13. package/dist/index204.js +2 -81
  14. package/dist/index205.js +162 -3
  15. package/dist/index206.js +84 -3
  16. package/dist/index208.js +7 -5
  17. package/dist/index209.js +53 -7
  18. package/dist/index21.js +14 -14
  19. package/dist/index211.js +13 -281
  20. package/dist/index212.js +19 -15
  21. package/dist/index213.js +4 -16
  22. package/dist/index214.js +5 -19
  23. package/dist/index215.js +13 -16
  24. package/dist/index216.js +13 -24
  25. package/dist/index217.js +19 -3
  26. package/dist/index218.js +19 -2
  27. package/dist/index219.js +25 -247
  28. package/dist/index220.js +3 -52
  29. package/dist/index221.js +2 -44
  30. package/dist/index222.js +249 -5
  31. package/dist/index223.js +43 -40
  32. package/dist/index224.js +44 -2
  33. package/dist/index225.js +4 -52
  34. package/dist/index226.js +51 -0
  35. package/dist/index227.js +2 -13
  36. package/dist/index228.js +4 -20
  37. package/dist/index229.js +2 -4
  38. package/dist/index23.js +12 -12
  39. package/dist/index230.js +4 -4
  40. package/dist/index231.js +2 -2
  41. package/dist/index233.js +41 -5
  42. package/dist/index234.js +6 -369
  43. package/dist/index235.js +5 -2
  44. package/dist/index236.js +369 -4
  45. package/dist/index237.js +3 -2
  46. package/dist/index238.js +3 -162
  47. package/dist/index239.js +7 -84
  48. package/dist/index240.js +83 -0
  49. package/dist/index241.js +2 -2
  50. package/dist/index242.js +2 -18
  51. package/dist/index243.js +17 -105
  52. package/dist/index244.js +108 -0
  53. package/dist/{index245.js → index246.js} +1 -1
  54. package/dist/index25.js +5 -5
  55. package/dist/index250.js +3 -224
  56. package/dist/index251.js +11 -430
  57. package/dist/index252.js +7 -87
  58. package/dist/index253.js +9 -6
  59. package/dist/index254.js +17 -2
  60. package/dist/index255.js +4 -2
  61. package/dist/index256.js +3 -2
  62. package/dist/index258.js +7 -2
  63. package/dist/index259.js +176 -2
  64. package/dist/index260.js +281 -2
  65. package/dist/index261.js +6 -2
  66. package/dist/index262.js +2 -2
  67. package/dist/index263.js +2 -2
  68. package/dist/index264.js +2 -28
  69. package/dist/index265.js +2 -22
  70. package/dist/index267.js +2 -7
  71. package/dist/index268.js +2 -3
  72. package/dist/index269.js +4 -0
  73. package/dist/index27.js +1 -1
  74. package/dist/index270.js +2 -176
  75. package/dist/index271.js +2 -3
  76. package/dist/index272.js +27 -8
  77. package/dist/index273.js +22 -23
  78. package/dist/index275.js +4 -16
  79. package/dist/index276.js +2 -200
  80. package/dist/index277.js +124 -7
  81. package/dist/index278.js +431 -2
  82. package/dist/index279.js +21 -125
  83. package/dist/index281.js +5 -0
  84. package/dist/index282.js +8 -3
  85. package/dist/index283.js +23 -3
  86. package/dist/index284.js +224 -12
  87. package/dist/index285.js +199 -8
  88. package/dist/index286.js +436 -9
  89. package/dist/index287.js +126 -16
  90. package/dist/index288.js +6 -4
  91. package/dist/index289.js +15 -435
  92. package/dist/index29.js +3 -3
  93. package/dist/index290.js +7 -125
  94. package/dist/index291.js +89 -3
  95. package/dist/index292.js +1 -1
  96. package/dist/index293.js +3 -211
  97. package/dist/index294.js +204 -59
  98. package/dist/index297.js +1 -1
  99. package/dist/index298.js +1 -1
  100. package/dist/index299.js +66 -4
  101. package/dist/index300.js +7 -79
  102. package/dist/index301.js +21 -0
  103. package/dist/index302.js +3 -32
  104. package/dist/index304.js +32 -6
  105. package/dist/index305.js +10 -18
  106. package/dist/index306.js +79 -4
  107. package/dist/index308.js +4 -59
  108. package/dist/index309.js +4 -47
  109. package/dist/index31.js +2 -2
  110. package/dist/index310.js +58 -10
  111. package/dist/index311.js +47 -2
  112. package/dist/index312.js +4 -0
  113. package/dist/index314.js +470 -414
  114. package/dist/index315.js +420 -43
  115. package/dist/index317.js +49 -0
  116. package/dist/index33.js +2 -2
  117. package/dist/index35.js +2 -2
  118. package/dist/index37.js +60 -60
  119. package/dist/index39.js +4 -4
  120. package/dist/index41.js +2 -2
  121. package/dist/index43.js +2 -2
  122. package/dist/index45.js +6 -6
  123. package/dist/index47.js +2 -2
  124. package/dist/index49.js +2 -2
  125. package/dist/index55.js +1 -1
  126. package/dist/index57.js +1 -1
  127. package/dist/index75.js +3 -3
  128. package/dist/index79.js +2 -2
  129. package/dist/index81.js +1 -1
  130. package/dist/index84.js +42 -41
  131. package/dist/index86.js +1 -1
  132. package/dist/index88.js +3 -3
  133. package/dist/index90.js +1 -1
  134. package/dist/style.css +1 -1
  135. package/package.json +1 -1
  136. package/dist/index207.js +0 -43
  137. package/dist/index210.js +0 -10
  138. package/dist/index247.js +0 -4
  139. package/dist/index274.js +0 -8
  140. package/dist/index280.js +0 -24
  141. package/dist/index307.js +0 -6
  142. package/dist/index313.js +0 -482
  143. /package/dist/{index257.js → index266.js} +0 -0
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 s, renderSlot as p, unref as i, createVNode as x, 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 ze, renderList as Qe, mergeProps as Y, Teleport as _e, normalizeStyle as Ke, nextTick as Ue } 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 s, renderSlot as p, unref as i, createVNode as M, 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 ze, renderList as Qe, mergeProps as Y, Teleport as _e, normalizeStyle as Ke, nextTick as Ue } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { useId as We } from "./index8.js";
@@ -6,23 +6,23 @@ import { useMobile as Re } from "./index9.js";
6
6
  import Je from "./index127.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Ye } from "./index134.js";
9
- import { last as je } from "./index218.js";
10
- import { matchAnyKey as j } from "./index242.js";
9
+ import { last as je } from "./index221.js";
10
+ import { matchAnyKey as j } from "./index243.js";
11
11
  import { useFloating as Ge } from "./index230.js";
12
12
  import { useIntersectionObserver as Xe } from "./index132.js";
13
- import { useLogger as Ze } from "./index210.js";
14
- import { useOptions as et } from "./index238.js";
13
+ import { useLogger as Ze } from "./index208.js";
14
+ import { useOptions as et } from "./index205.js";
15
15
  import { wait as L } from "./index131.js";
16
- import { when as tt } from "./index236.js";
17
- import ot from "./index243.js";
16
+ import { when as tt } from "./index228.js";
17
+ import ot from "./index244.js";
18
18
  /* empty css */
19
- import nt from "./index245.js";
19
+ import nt from "./index246.js";
20
20
  /* empty css */
21
- import lt from "./index225.js";
21
+ import lt from "./index209.js";
22
22
  /* empty css */
23
- import at from "./index227.js";
24
- import { waitFor as it } from "./index208.js";
25
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index234.js";
23
+ import at from "./index211.js";
24
+ import { waitFor as it } from "./index234.js";
25
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index236.js";
26
26
  const dt = { class: "bb-base-select__input-container" }, ct = {
27
27
  key: 1,
28
28
  class: "bb-base-select__max-reached"
@@ -71,15 +71,15 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
71
71
  const t = G, h = X;
72
72
  if (t.multiple && !Array.isArray(t.modelValue))
73
73
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
74
- const Z = Me(() => import("./index241.js")), A = v(null), B = v(null), a = v(null), M = v(null), N = v(null), u = y(
75
- () => t.comma ? M.value : N.value
74
+ const Z = Me(() => import("./index242.js")), A = v(null), B = v(null), a = v(null), N = v(null), H = v(null), u = y(
75
+ () => t.comma ? N.value : H.value
76
76
  ), { isMobile: ee } = Re(), te = y(
77
77
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
78
- ), H = t.id || We().id.value;
78
+ ), P = t.id || We().id.value;
79
79
  Xe(
80
80
  B,
81
81
  ([{ intersectionRatio: e }]) => {
82
- e !== 1 && O();
82
+ e !== 1 && C();
83
83
  },
84
84
  { threshold: [0, 1] }
85
85
  );
@@ -101,42 +101,42 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
101
101
  }), q = v(null), E = () => {
102
102
  q.value instanceof HTMLInputElement && q.value.focus();
103
103
  }, le = async (e) => {
104
- h("focus", e), Le(), document.addEventListener("click", k), document.addEventListener("focusin", k);
104
+ h("focus", e), Le(), document.addEventListener("click", D), document.addEventListener("focusin", D);
105
105
  }, ae = () => {
106
106
  t.prefill === "focus" && !Oe.value && !Ce.value && Be();
107
107
  }, ie = async (e) => {
108
108
  h("blur", e);
109
109
  }, re = (e) => h("change", e), se = (e) => {
110
110
  var o;
111
- h("input", e), l.value === "" && (t.multiple || ke(null)), (o = u.value) == null || o.blur(), Ve();
112
- }, k = async (e) => {
111
+ h("input", e), l.value === "" && (t.multiple || ke(null)), (o = u.value) == null || o.blur(), F.value && O(), Ve();
112
+ }, D = async (e) => {
113
113
  if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
114
- O(), Ae(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await L(t.transitionDuration), be();
114
+ C(), Ae(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), be();
115
115
  return;
116
116
  }
117
- }, w = y(() => !(t.readonly || t.disabled || D.value || !u.value && t.multiple)), ue = async () => {
117
+ }, w = y(() => !(t.readonly || t.disabled || I.value || !u.value && t.multiple)), ue = async () => {
118
118
  var e, o, n;
119
- w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await I(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
119
+ 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()));
120
120
  }, pe = async () => {
121
121
  var e, o, n;
122
- w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await I(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
122
+ 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()));
123
123
  }, de = (e) => {
124
- var n, r, m, C;
124
+ var n, r, m, k;
125
125
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
126
126
  (r = u.value) == null || r.focusPrevious();
127
127
  const o = (m = u.value) == null ? void 0 : m.getHighlighted();
128
- o && ((C = a.value) == null || C.focusByHash(o.valueHash));
128
+ o && ((k = a.value) == null || k.focusByHash(o.valueHash));
129
129
  }, ce = (e) => {
130
- var n, r, m, C;
130
+ var n, r, m, k;
131
131
  if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
132
132
  (r = u.value) == null || r.focusNext();
133
133
  const o = (m = u.value) == null ? void 0 : m.getHighlighted();
134
- o && ((C = a.value) == null || C.focusByHash(o.valueHash));
134
+ o && ((k = a.value) == null || k.focusByHash(o.valueHash));
135
135
  }, fe = async () => {
136
136
  var e, o;
137
137
  if (w.value) {
138
138
  if (!c.value)
139
- await I(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
139
+ await O(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
140
140
  else if ((o = a.value) != null && o.getHighlighted())
141
141
  a.value.confirmOption();
142
142
  else if (t.addOptions) {
@@ -149,11 +149,11 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
149
149
  }
150
150
  const n = l.value.trim();
151
151
  if (De(n)) return;
152
- he(), Q(je(Ie.value));
152
+ he(), _(je(Ie.value));
153
153
  }
154
154
  }
155
155
  }, me = async () => {
156
- c.value && await O();
156
+ c.value && await C();
157
157
  }, ve = async () => {
158
158
  var e, o;
159
159
  !w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await Ue(), (o = u.value) == null || o.focusPrevious());
@@ -161,8 +161,8 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
161
161
  query: l,
162
162
  alignQueryToState: be,
163
163
  addCurrentQueryToManualItems: he,
164
- innerLoading: P,
165
- options: z,
164
+ innerLoading: z,
165
+ options: Q,
166
166
  selectedOptions: f,
167
167
  selectOption: ge,
168
168
  unselectOption: we,
@@ -190,28 +190,28 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
190
190
  depsDebounceTime: t.depsDebounceTime,
191
191
  queryDebounceTime: t.queryDebounceTime,
192
192
  disabled: V(t, "disabled")
193
- }), Se = y(() => f.value.length ? "" : t.placeholder), D = y(() => !!(P.value || t.loading)), $e = y(() => {
193
+ }), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(z.value || t.loading)), $e = y(() => {
194
194
  let e = [];
195
195
  const o = f.value.some(
196
196
  (r) => r.text === l.value
197
197
  );
198
- return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = z.value.filter((r) => {
198
+ return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = Q.value.filter((r) => {
199
199
  let m = !1;
200
200
  return typeof t.filterBy == "function" ? m = t.filterBy(r.value, r.item) : Array.isArray(t.filterBy) && t.filterBy.length && (m = m || j(r.item, t.filterBy, l.value.trim())), m || j(r, ["text"], l.value.trim());
201
- }) : e = z.value, e;
202
- }), Q = (e) => {
203
- ge(e), E(), t.multiple || O();
204
- }, _ = (e) => {
201
+ }) : e = Q.value, e;
202
+ }), _ = (e) => {
203
+ ge(e), E(), t.multiple || C();
204
+ }, K = (e) => {
205
205
  we(e), E();
206
- }, c = v(!1), K = v(!0), U = v(!1), I = async () => {
207
- U.value = !0, await it(() => !!a.value), K.value = !1, c.value = !0;
208
- }, O = async () => {
206
+ }, c = v(!1), F = v(!0), U = v(!1), O = async () => {
207
+ U.value = !0, await it(() => !!a.value), F.value = !1, c.value = !0;
208
+ }, C = async () => {
209
209
  var e;
210
- c.value = !1, K.value = !0, (e = u.value) == null || e.blur();
211
- }, Te = () => c.value ? O() : I(), F = v(!1), Le = () => {
212
- F.value = !0;
210
+ c.value = !1, F.value = !0, (e = u.value) == null || e.blur();
211
+ }, Te = () => c.value ? C() : O(), x = v(!1), Le = () => {
212
+ x.value = !0;
213
213
  }, Ae = () => {
214
- F.value = !1, h("inactive");
214
+ x.value = !1, h("inactive");
215
215
  }, qe = (e) => {
216
216
  e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (E(), Te());
217
217
  }, Ee = tt(
@@ -231,9 +231,9 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
231
231
  ref: A,
232
232
  class: W({
233
233
  "bb-base-select": !0,
234
- "bb-base-select--active": F.value,
234
+ "bb-base-select--active": x.value,
235
235
  "bb-base-select--shown": c.value,
236
- "bb-base-select--loading": D.value,
236
+ "bb-base-select--loading": I.value,
237
237
  "bb-base-select--disabled": e.disabled,
238
238
  "bb-base-select--errors": e.hasErrors,
239
239
  "bb-base-select--readonly": e.readonly
@@ -247,7 +247,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
247
247
  p(e.$slots, "append-outer", { query: i(l) })
248
248
  ]),
249
249
  default: s(() => [
250
- x(lt, {
250
+ M(lt, {
251
251
  ref_key: "innerContainer",
252
252
  ref: B,
253
253
  "append:icon": t["append:icon"],
@@ -267,30 +267,30 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
267
267
  p(e.$slots, "suffix")
268
268
  ]),
269
269
  default: s(() => [
270
- x(i(Je), { tag: "span" }, {
270
+ M(i(Je), { tag: "span" }, {
271
271
  default: s(() => [
272
272
  $("span", dt, [
273
273
  e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
274
274
  e.comma ? (b(), S(nt, {
275
275
  key: 0,
276
276
  ref_key: "commaBox",
277
- ref: M,
277
+ ref: N,
278
278
  options: i(f)
279
279
  }, null, 8, ["options"])) : (b(), S(ot, {
280
280
  key: 1,
281
281
  ref_key: "chipsBox",
282
- ref: N,
282
+ ref: H,
283
283
  options: i(f),
284
- "onOption:unselected": _
284
+ "onOption:unselected": K
285
285
  }, null, 8, ["options"]))
286
286
  ], 64)) : e.multiple ? (b(), T("span", ct, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
287
287
  He($("input", {
288
- id: i(H),
288
+ id: i(P),
289
289
  ref_key: "input",
290
290
  ref: q,
291
291
  "onUpdate:modelValue": o[0] || (o[0] = (n) => Pe(l) ? l.value = n : null),
292
292
  "aria-autocomplete": "list",
293
- "aria-controls": `${i(H)}_listbox`,
293
+ "aria-controls": `${i(P)}_listbox`,
294
294
  "aria-describedby": e.ariaDescribedby,
295
295
  "aria-expanded": c.value,
296
296
  autocomplete: e.autocomplete,
@@ -325,7 +325,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
325
325
  _: 1
326
326
  }),
327
327
  p(e.$slots, "chevron", {
328
- loading: !!i(P),
328
+ loading: !!i(z),
329
329
  shown: c.value
330
330
  }, () => [
331
331
  o[1] || (o[1] = $("svg", {
@@ -350,15 +350,15 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
350
350
  key: 0,
351
351
  to: "body"
352
352
  }, [
353
- x(i(Z), {
353
+ M(i(Z), {
354
354
  ref_key: "optionsContainer",
355
355
  ref: a,
356
- loading: D.value,
356
+ loading: I.value,
357
357
  open: c.value,
358
358
  options: $e.value,
359
359
  style: Ke(ne.value),
360
- "onOption:selected": Q,
361
- "onOption:unselected": _
360
+ "onOption:selected": _,
361
+ "onOption:unselected": K
362
362
  }, {
363
363
  "options:prepend": s(() => [
364
364
  p(e.$slots, "options:prepend")
@@ -375,7 +375,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
375
375
  option: s((n) => [
376
376
  p(e.$slots, "option", Y({
377
377
  hasErrors: e.hasErrors,
378
- loading: D.value
378
+ loading: I.value
379
379
  }, n))
380
380
  ]),
381
381
  _: 3
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 "./index224.js";
3
- import { head as O } from "./index247.js";
4
- import { isCssColor as Y } from "./index235.js";
2
+ import { clamp as le } from "./index204.js";
3
+ import { head as O } from "./index241.js";
4
+ import { isCssColor as Y } from "./index227.js";
5
5
  import { isNil as P } from "./index129.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index130.js";
8
- import { hash as J } from "./index217.js";
8
+ import { hash as J } from "./index220.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as b } from "./index235.js";
3
- import { when as F } from "./index236.js";
2
+ import { isCssColor as b } from "./index227.js";
3
+ import { when as F } from "./index228.js";
4
4
  const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index238.js";
2
+ import { useOptions as F } from "./index205.js";
3
3
  import M from "./index41.js";
4
4
  /* empty css */
5
- import S from "./index239.js";
5
+ import S from "./index206.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ $({
8
8
  __name: "BaseSwitchGroup",
package/dist/index45.js CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index127.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index134.js";
7
- import { last as de } from "./index218.js";
8
- import { useOptions as pe } from "./index238.js";
9
- import ce from "./index243.js";
7
+ import { last as de } from "./index221.js";
8
+ import { useOptions as pe } from "./index205.js";
9
+ import ce from "./index244.js";
10
10
  /* empty css */
11
- import me from "./index245.js";
11
+ import me from "./index246.js";
12
12
  /* empty css */
13
- import fe from "./index225.js";
13
+ import fe from "./index209.js";
14
14
  /* empty css */
15
- import ve from "./index227.js";
15
+ import ve from "./index211.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index227.js";
3
- import E from "./index225.js";
2
+ import v from "./index211.js";
3
+ import E from "./index209.js";
4
4
  /* empty css */
5
5
  import G from "./index127.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index225.js";
2
+ import B from "./index209.js";
3
3
  /* empty css */
4
- import k from "./index227.js";
4
+ import k from "./index211.js";
5
5
  const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
6
6
  __name: "BaseTextInput",
7
7
  props: {
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index235.js";
2
+ import { isCssColor as _ } from "./index227.js";
3
3
  import { wait as C } from "./index131.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index235.js";
2
+ import { isCssColor as r } from "./index227.js";
3
3
  import { isNil as B } from "./index129.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index75.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
2
- import { findRightIndex as H } from "./index272.js";
2
+ import { findRightIndex as H } from "./index282.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index131.js";
5
5
  import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import N from "./index273.js";
8
+ import N from "./index283.js";
9
9
  const me = /* @__PURE__ */ Q({
10
10
  __name: "BbDropdown",
11
11
  props: {
@@ -24,7 +24,7 @@ const me = /* @__PURE__ */ Q({
24
24
  },
25
25
  setup(V) {
26
26
  const j = W(
27
- () => import("./index271.js")
27
+ () => import("./index281.js")
28
28
  ), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
29
29
  let e = r.items.findIndex((t) => !t.disabled), o = H(
30
30
  r.items,
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index275.js";
2
+ import { findInTree as ae } from "./index289.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index127.js";
5
5
  /* empty css */
@@ -56,7 +56,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
56
56
  const r = a.accept[t];
57
57
  if (r.includes("/")) e.push(r);
58
58
  else {
59
- b || (b = (await import("./index274.js")).default);
59
+ b || (b = (await import("./index288.js")).default);
60
60
  const o = b.getType(r);
61
61
  if (!o)
62
62
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index206.js";
2
+ import { throttle as c } from "./index238.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as te, ref as s, useAttrs as oe, getCurrentInstance as se, computed as v, nextTick as le, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as l, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index207.js";
1
+ import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
+ import { useFocusTrap as ce } from "./index233.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { wait as E } from "./index131.js";
5
- import { useModalsState as p } from "./index209.js";
5
+ import { useModalsState as b } from "./index239.js";
6
6
  const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
7
7
  __name: "BbOffCanvas",
8
8
  props: {
@@ -27,17 +27,18 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
27
27
  emits: ["shown", "hidden", "update:modelValue"],
28
28
  setup(H, { emit: I }) {
29
29
  var L, N;
30
- const e = H, u = I, k = `title_${A().id.value}`, _ = `description_${A().id.value}`, b = s(null), T = s(null), W = s(null), F = s(null), R = s(null), K = s(null), P = oe(), $ = !!((N = (L = se()) == null ? void 0 : L.proxy) != null && N.$nuxt), c = s(0), U = v(() => {
31
- const { openedModals: t } = p();
32
- return !t.value || t.value === c.value;
30
+ const e = H, u = I, k = `title_${A().id.value}`, C = `description_${A().id.value}`, c = l(null), T = l(null), W = l(null), F = l(null), R = l(null), K = l(null), P = oe(), $ = !!((N = (L = le()) == null ? void 0 : L.proxy) != null && N.$nuxt), d = l(0), U = p(() => {
31
+ const { openedModals: t } = b();
32
+ return !t.value || t.value === d.value;
33
33
  }), { activate: j, deactivate: q } = ce(T, {
34
34
  initialFocus: e.focusTarget ?? void 0,
35
- clickOutsideDeactivates: !0,
35
+ clickOutsideDeactivates: (t) => t.target === c.value,
36
+ allowOutsideClick: !0,
36
37
  /* On esc deactivate the trap, return focus and then close the modal */
37
- escapeDeactivates: () => (le(() => {
38
+ escapeDeactivates: () => (se(() => {
38
39
  u("update:modelValue", !1);
39
40
  }), !0)
40
- }), G = v(() => e.closeLabel), C = s(!1), d = s(!1), m = s(!0), f = s(!1), i = s(e.eager || e.modelValue), D = s(null), J = v(() => d.value || f.value), Q = () => {
41
+ }), G = p(() => e.closeLabel), _ = l(!1), f = l(!1), m = l(!0), v = l(!1), i = l(e.eager || e.modelValue), D = l(null), J = p(() => f.value || v.value), Q = () => {
41
42
  if (!globalThis.document) return;
42
43
  const t = window.innerWidth - document.documentElement.clientWidth;
43
44
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`;
@@ -46,15 +47,15 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
46
47
  };
47
48
  x(() => {
48
49
  if (e.modelValue) {
49
- const { openedModals: t, modalHasClosed: o } = p();
50
- t.value && (o(), c.value = 0, w());
50
+ const { openedModals: t, modalHasClosed: o } = b();
51
+ t.value && (o(), d.value = 0, w());
51
52
  }
52
53
  }), ae(() => {
53
54
  !e.modelValue && !i.value || $ && !globalThis.document || M();
54
55
  }), x(() => {
55
56
  if (e.modelValue) {
56
- const { openedModals: t, modalHasClosed: o } = p();
57
- t.value && (o(), c.value = 0, w());
57
+ const { openedModals: t, modalHasClosed: o } = b();
58
+ t.value && (o(), d.value = 0, w());
58
59
  }
59
60
  }), ne(
60
61
  () => e.modelValue,
@@ -65,30 +66,30 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
65
66
  );
66
67
  const M = async () => {
67
68
  if (e.modelValue) {
68
- i.value || (i.value = !0), m.value = !1, f.value = !1, d.value = !0;
69
- const { modalHasOpened: t, openedModals: o } = p();
70
- t(), c.value = o.value, Q(), await E(e.transitionDuration), d.value = !1, C.value = !0, u("shown"), j();
69
+ i.value || (i.value = !0), m.value = !1, v.value = !1, f.value = !0;
70
+ const { modalHasOpened: t, openedModals: o } = b();
71
+ t(), d.value = o.value, Q(), await E(e.transitionDuration), f.value = !1, _.value = !0, u("shown"), j();
71
72
  } else {
72
- q(), d.value = !1, C.value = !1, f.value = !0;
73
- const { modalHasClosed: t, openedModals: o } = p();
74
- t(), c.value = 0, o.value || w(), await E(e.transitionDuration), f.value = !1, m.value = !0, u("hidden"), D.value instanceof HTMLElement && D.value.focus();
73
+ q(), f.value = !1, _.value = !1, v.value = !0;
74
+ const { modalHasClosed: t, openedModals: o } = b();
75
+ t(), d.value = 0, o.value || w(), await E(e.transitionDuration), v.value = !1, m.value = !0, u("hidden"), D.value instanceof HTMLElement && D.value.focus();
75
76
  }
76
77
  }, y = (t) => {
77
- t.target === b.value && t.preventDefault();
78
+ t.target === c.value && t.preventDefault();
78
79
  }, X = (t) => {
79
- e.disabled || J.value || b.value && t.target === b.value && (e.persistent || u("update:modelValue", !1));
80
+ e.disabled || J.value || c.value && t.target === c.value && (e.persistent || u("update:modelValue", !1));
80
81
  }, B = () => {
81
82
  e.disabled || u("update:modelValue", !1);
82
- }, Y = v(() => {
83
+ }, Y = p(() => {
83
84
  const t = [
84
85
  {
85
86
  "bb-offcanvas bb-offcanvas__overlay": !0,
86
87
  "bb-offcanvas--fullscreen": e.fullscreen,
87
88
  "bb-offcanvas--faded": !U.value,
88
- "bb-offcanvas--open": C.value,
89
- "bb-offcanvas--opening": d.value,
89
+ "bb-offcanvas--open": _.value,
90
+ "bb-offcanvas--opening": f.value,
90
91
  "bb-offcanvas--closed": m.value,
91
- "bb-offcanvas--closing": f.value,
92
+ "bb-offcanvas--closing": v.value,
92
93
  [`bb-offcanvas--transition-${e.transition}`]: !0,
93
94
  [`bb-offcanvas--${e.direction}`]: !0
94
95
  },
@@ -108,7 +109,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
108
109
  ...o,
109
110
  ...P
110
111
  };
111
- }), Z = v(() => {
112
+ }), Z = p(() => {
112
113
  const t = [
113
114
  {
114
115
  "bb-offcanvas__panel": !0,
@@ -119,7 +120,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
119
120
  role: "dialog",
120
121
  "aria-modal": !0
121
122
  };
122
- i.value && (o["aria-labelledby"] = k, e.description && (o["aria-describedby"] = _));
123
+ i.value && (o["aria-labelledby"] = k, e.description && (o["aria-describedby"] = C));
123
124
  let a, r;
124
125
  const h = {
125
126
  sm: 384,
@@ -139,12 +140,12 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
139
140
  };
140
141
  });
141
142
  return (t, o) => (g(), ie(re, { to: "body" }, [
142
- l("div", O(Y.value, {
143
+ s("div", O(Y.value, {
143
144
  ref_key: "overlay",
144
- ref: b,
145
+ ref: c,
145
146
  inert: m.value
146
147
  }), [
147
- l("div", O(Z.value, {
148
+ s("div", O(Z.value, {
148
149
  ref_key: "panel",
149
150
  ref: T
150
151
  }), [
@@ -155,7 +156,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
155
156
  class: "bb-offcanvas__content"
156
157
  }, [
157
158
  n(t.$slots, "content", { close: B }, () => [
158
- l("div", {
159
+ s("div", {
159
160
  ref_key: "header",
160
161
  ref: F,
161
162
  class: "bb-offcanvas__header"
@@ -165,7 +166,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
165
166
  title: t.title,
166
167
  titleId: k
167
168
  }, () => [
168
- l("span", {
169
+ s("span", {
169
170
  id: k,
170
171
  class: "bb-offcanvas__title"
171
172
  }, [
@@ -173,7 +174,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
173
174
  ue(S(t.title), 1)
174
175
  ])
175
176
  ]),
176
- l("span", fe, [
177
+ s("span", fe, [
177
178
  t.showClose ? (g(), V("button", {
178
179
  key: 0,
179
180
  "aria-label": G.value,
@@ -181,14 +182,14 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
181
182
  onClick: B
182
183
  }, [
183
184
  n(t.$slots, "close", {}, () => [
184
- o[0] || (o[0] = l("span", { class: "bb-offcanvas-close__icon" }, [
185
- l("svg", {
185
+ o[0] || (o[0] = s("span", { class: "bb-offcanvas-close__icon" }, [
186
+ s("svg", {
186
187
  "aria-hidden": "true",
187
188
  fill: "none",
188
189
  viewBox: "0 0 24 24",
189
190
  xmlns: "http://www.w3.org/2000/svg"
190
191
  }, [
191
- l("path", {
192
+ s("path", {
192
193
  d: "M23 23L1 1M23 1L1 23",
193
194
  stroke: "currentColor",
194
195
  "stroke-linecap": "round",
@@ -201,25 +202,25 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
201
202
  ])
202
203
  ])
203
204
  ], 512),
204
- l("div", {
205
+ s("div", {
205
206
  ref_key: "body",
206
207
  ref: R,
207
208
  class: "bb-offcanvas__body scrollbar-border"
208
209
  }, [
209
210
  n(t.$slots, "description", {
210
- descriptionId: _,
211
+ descriptionId: C,
211
212
  text: t.description
212
213
  }, () => [
213
214
  t.description ? (g(), V("div", {
214
215
  key: 0,
215
- id: _,
216
+ id: C,
216
217
  class: "bb-offcanvas__description sr-only"
217
218
  }, S(t.description), 1)) : z("", !0)
218
219
  ]),
219
220
  n(t.$slots, "default")
220
221
  ], 512),
221
- o[1] || (o[1] = l("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
222
- l("div", {
222
+ o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
223
+ s("div", {
223
224
  ref_key: "footer",
224
225
  ref: K,
225
226
  class: "bb-offcanvas__footer"