bitboss-ui 2.1.12 → 2.1.13

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 (172) hide show
  1. package/dist/index106.js +7 -7
  2. package/dist/index111.js +1 -1
  3. package/dist/index113.js +1 -1
  4. package/dist/index121.js +9 -9
  5. package/dist/index129.js +1 -1
  6. package/dist/index13.js +1 -1
  7. package/dist/index131.js +4 -4
  8. package/dist/index133.js +1 -1
  9. package/dist/index15.js +8 -8
  10. package/dist/index17.js +3 -3
  11. package/dist/index19.js +8 -8
  12. package/dist/index209.js +34 -5
  13. package/dist/index21.js +16 -16
  14. package/dist/index210.js +86 -5
  15. package/dist/index212.js +29 -5
  16. package/dist/index213.js +17 -5
  17. package/dist/index214.js +51 -5
  18. package/dist/index215.js +15 -2
  19. package/dist/index216.js +3 -2
  20. package/dist/index217.js +12 -2
  21. package/dist/index218.js +16 -13
  22. package/dist/index219.js +4 -11
  23. package/dist/index220.js +13 -20
  24. package/dist/index221.js +11 -66
  25. package/dist/index222.js +22 -0
  26. package/dist/index223.js +197 -13
  27. package/dist/index225.js +68 -0
  28. package/dist/index227.js +13 -2
  29. package/dist/index228.js +113 -4
  30. package/dist/index23.js +15 -15
  31. package/dist/index230.js +12 -85
  32. package/dist/{index226.js → index231.js} +1 -1
  33. package/dist/index232.js +2 -29
  34. package/dist/index233.js +4 -17
  35. package/dist/index234.js +2 -51
  36. package/dist/index235.js +2 -15
  37. package/dist/index236.js +5 -3
  38. package/dist/index237.js +5 -12
  39. package/dist/index238.js +5 -16
  40. package/dist/index239.js +5 -2
  41. package/dist/index240.js +5 -2
  42. package/dist/index241.js +5 -7
  43. package/dist/index242.js +2 -7
  44. package/dist/index243.js +2 -106
  45. package/dist/index244.js +20 -0
  46. package/dist/index245.js +12 -100
  47. package/dist/index246.js +8 -0
  48. package/dist/index247.js +106 -4
  49. package/dist/index249.js +102 -0
  50. package/dist/index25.js +3 -3
  51. package/dist/index251.js +228 -180
  52. package/dist/index252.js +5 -18
  53. package/dist/index253.js +5 -12
  54. package/dist/index254.js +7 -5
  55. package/dist/index255.js +238 -218
  56. package/dist/index256.js +51 -12
  57. package/dist/index257.js +44 -5
  58. package/dist/index258.js +5 -5
  59. package/dist/index259.js +58 -6
  60. package/dist/index260.js +2 -250
  61. package/dist/index261.js +181 -50
  62. package/dist/index262.js +10 -44
  63. package/dist/index263.js +3 -5
  64. package/dist/index264.js +2 -60
  65. package/dist/index265.js +7 -6
  66. package/dist/index266.js +7 -16
  67. package/dist/index269.js +3 -10
  68. package/dist/index27.js +1 -1
  69. package/dist/index270.js +6 -3
  70. package/dist/index271.js +16 -3
  71. package/dist/index273.js +1 -1
  72. package/dist/index275.js +67 -5
  73. package/dist/index277.js +5 -67
  74. package/dist/index278.js +1 -1
  75. package/dist/index279.js +1 -1
  76. package/dist/index280.js +2 -280
  77. package/dist/index281.js +3 -2
  78. package/dist/index282.js +16 -124
  79. package/dist/index283.js +28 -2
  80. package/dist/index284.js +3 -15
  81. package/dist/index285.js +3 -2
  82. package/dist/index287.js +7 -2
  83. package/dist/index288.js +3 -16
  84. package/dist/index289.js +7 -2
  85. package/dist/index29.js +3 -3
  86. package/dist/index290.js +10 -18
  87. package/dist/index291.js +4 -2
  88. package/dist/index292.js +4 -3
  89. package/dist/index293.js +7 -0
  90. package/dist/index294.js +280 -7
  91. package/dist/index295.js +2 -3
  92. package/dist/index296.js +125 -7
  93. package/dist/index297.js +2 -11
  94. package/dist/index298.js +15 -5
  95. package/dist/index299.js +2 -4
  96. package/dist/index300.js +15 -5
  97. package/dist/index301.js +2 -4
  98. package/dist/index302.js +16 -3
  99. package/dist/index303.js +2 -17
  100. package/dist/index304.js +17 -26
  101. package/dist/index305.js +2 -3
  102. package/dist/index306.js +19 -3
  103. package/dist/index307.js +2 -3
  104. package/dist/index308.js +27 -2
  105. package/dist/index309.js +2 -2
  106. package/dist/index31.js +2 -2
  107. package/dist/index310.js +2 -19
  108. package/dist/index311.js +2 -2
  109. package/dist/index312.js +2 -27
  110. package/dist/index313.js +2 -2
  111. package/dist/index314.js +21 -1
  112. package/dist/index316.js +6 -2
  113. package/dist/index317.js +3 -2
  114. package/dist/index318.js +3 -22
  115. package/dist/index319.js +4 -0
  116. package/dist/index320.js +5 -718
  117. package/dist/index321.js +715 -363
  118. package/dist/index322.js +366 -58
  119. package/dist/index323.js +58 -5
  120. package/dist/index324.js +1 -1
  121. package/dist/index325.js +128 -32
  122. package/dist/index326.js +369 -28
  123. package/dist/index327.js +35 -0
  124. package/dist/index328.js +27 -227
  125. package/dist/index33.js +8 -8
  126. package/dist/index330.js +8 -58
  127. package/dist/index331.js +5 -128
  128. package/dist/index332.js +6 -367
  129. package/dist/index333.js +58 -47
  130. package/dist/index334.js +58 -8
  131. package/dist/index335.js +227 -5
  132. package/dist/index336.js +7 -8
  133. package/dist/index337.js +18 -6
  134. package/dist/index338.js +5 -17
  135. package/dist/index339.js +46 -6
  136. package/dist/index340.js +1 -1
  137. package/dist/index341.js +131 -0
  138. package/dist/index343.js +3 -129
  139. package/dist/index344.js +421 -473
  140. package/dist/index345.js +113 -422
  141. package/dist/index346.js +484 -123
  142. package/dist/index35.js +4 -4
  143. package/dist/index37.js +92 -89
  144. package/dist/index39.js +7 -7
  145. package/dist/index41.js +2 -2
  146. package/dist/index43.js +8 -8
  147. package/dist/index45.js +8 -8
  148. package/dist/index47.js +2 -2
  149. package/dist/index49.js +3 -3
  150. package/dist/index53.js +1 -1
  151. package/dist/index55.js +1 -1
  152. package/dist/index57.js +2 -2
  153. package/dist/index61.js +3 -3
  154. package/dist/index67.js +1 -1
  155. package/dist/index79.js +2 -2
  156. package/dist/index81.js +1 -1
  157. package/dist/index83.js +2 -2
  158. package/dist/index85.js +1 -1
  159. package/dist/index87.js +1 -1
  160. package/dist/index90.js +3 -3
  161. package/dist/index92.js +1 -1
  162. package/dist/index94.js +3 -3
  163. package/package.json +2 -2
  164. package/dist/index211.js +0 -7
  165. package/dist/index224.js +0 -115
  166. package/dist/index229.js +0 -4
  167. package/dist/index248.js +0 -199
  168. package/dist/index250.js +0 -36
  169. package/dist/index286.js +0 -18
  170. package/dist/index315.js +0 -4
  171. package/dist/index329.js +0 -60
  172. package/dist/index342.js +0 -5
package/dist/index37.js CHANGED
@@ -1,40 +1,40 @@
1
- import { defineComponent as Ge, ref as v, computed as h, toRef as L, createBlock as K, openBlock as y, normalizeClass as te, withCtx as s, createElementVNode as T, createElementBlock as O, createVNode as F, unref as g, renderSlot as p, createCommentVNode as le, withDirectives as Je, Fragment as ae, toDisplayString as Qe, withKeys as w, withModifiers as m, normalizeStyle as oe, vModelDynamic as Xe, mergeProps as ne, renderList as Ye, nextTick as j } from "vue";
1
+ import { defineComponent as Ge, ref as v, computed as h, toRef as L, createBlock as T, openBlock as y, normalizeClass as le, withCtx as s, createElementVNode as F, createElementBlock as O, createVNode as j, createCommentVNode as R, unref as g, renderSlot as p, withDirectives as Je, Fragment as ae, toDisplayString as Qe, withKeys as w, withModifiers as m, normalizeStyle as oe, vModelDynamic as Xe, mergeProps as ne, renderList as Ye, nextTick as U } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { useId as Ze } from "./index8.js";
5
5
  import { useMobile as et } from "./index9.js";
6
6
  import tt from "./index111.js";
7
7
  /* empty css */
8
- import { hash as lt } from "./index236.js";
9
- import { isEmpty as at } from "./index216.js";
10
- import { last as ot } from "./index217.js";
11
- import { matchAnyKey as ue } from "./index252.js";
12
- import { useArray as nt } from "./index253.js";
13
- import { useBaseOptions as ut } from "./index234.js";
14
- import { useCoherence as st } from "./index235.js";
15
- import { useHashedWatcher as se } from "./index237.js";
16
- import { useIndexById as ie } from "./index233.js";
8
+ import { hash as lt } from "./index216.js";
9
+ import { isEmpty as at } from "./index242.js";
10
+ import { last as ot } from "./index243.js";
11
+ import { matchAnyKey as ue } from "./index244.js";
12
+ import { useArray as nt } from "./index245.js";
13
+ import { useBaseOptions as ut } from "./index214.js";
14
+ import { useCoherence as st } from "./index215.js";
15
+ import { useHashedWatcher as se } from "./index217.js";
16
+ import { useIndexById as ie } from "./index213.js";
17
17
  import { useMounted as it, useIntersectionObserver as rt } from "./index137.js";
18
- import { useItemsGetter as dt } from "./index232.js";
19
- import { useLocale as ct } from "./index218.js";
20
- import { usePrefill as pt } from "./index238.js";
18
+ import { useItemsGetter as dt } from "./index212.js";
19
+ import { useLocale as ct } from "./index220.js";
20
+ import { usePrefill as pt } from "./index218.js";
21
21
  import { wait as E } from "./index135.js";
22
- import { waitFor as mt } from "./index254.js";
23
- import { when as ft } from "./index228.js";
24
- import vt from "./index243.js";
22
+ import { waitFor as mt } from "./index246.js";
23
+ import { when as ft } from "./index233.js";
24
+ import vt from "./index247.js";
25
25
  /* empty css */
26
- import ht from "./index245.js";
26
+ import ht from "./index249.js";
27
27
  /* empty css */
28
- import yt from "./index221.js";
28
+ import yt from "./index225.js";
29
29
  /* empty css */
30
- import bt from "./index223.js";
31
- import gt from "./index224.js";
30
+ import bt from "./index227.js";
31
+ import gt from "./index228.js";
32
32
  /* empty css */
33
- import wt from "./index255.js";
34
- const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-select__input-container" }, It = {
33
+ import wt from "./index251.js";
34
+ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-select__input-container" }, kt = {
35
35
  key: 1,
36
36
  class: "bb-base-select__max-reached"
37
- }, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ol = /* @__PURE__ */ Ge({
37
+ }, It = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ol = /* @__PURE__ */ Ge({
38
38
  __name: "BaseSelect",
39
39
  props: {
40
40
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -81,11 +81,11 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
81
81
  const t = re, n = de;
82
82
  if (t.multiple && !Array.isArray(t.modelValue))
83
83
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
84
- const { t: ce } = ct(), pe = it(), x = v(null), $ = v(null), u = v(null), R = v(null), U = v(null), r = h(
85
- () => t.comma ? R.value : U.value
84
+ const { t: ce } = ct(), pe = it(), x = v(null), $ = v(null), u = v(null), G = v(null), J = v(null), r = h(
85
+ () => t.comma ? G.value : J.value
86
86
  ), { isMobile: me } = et(), fe = h(
87
87
  () => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
88
- ), G = t.id || Ze().id.value;
88
+ ), Q = t.id || Ze().id.value;
89
89
  rt(
90
90
  // @ts-expect-error - wrong inferred type
91
91
  $,
@@ -105,12 +105,12 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
105
105
  }, he = async (e) => {
106
106
  n("focus", e), Ne(), document.addEventListener("click", D), document.addEventListener("focusin", D);
107
107
  }, ye = () => {
108
- t.prefill === "focus" && !He.value && !Q.value && Le();
108
+ t.prefill === "focus" && !He.value && !Y.value && Le();
109
109
  }, be = async (e) => {
110
110
  n("blur", e);
111
111
  }, ge = (e) => n("change", e), we = (e) => {
112
112
  var l;
113
- n("input", e), a.value === "" && (t.multiple || n("update:modelValue", null)), (l = r.value) == null || l.blur(), W.value && k(), $e(a.value, !1, t.modelValue);
113
+ n("input", e), a.value === "" && (t.multiple || n("update:modelValue", null)), (l = r.value) == null || l.blur(), W.value && S(), $e(a.value, !1, t.modelValue);
114
114
  }, D = async (e) => {
115
115
  var l, o;
116
116
  if (e.target instanceof Node && x.value && !x.value.$el.contains(e.target) && !((o = (l = u.value) == null ? void 0 : l.$el) != null && o.contains(e.target))) {
@@ -119,23 +119,23 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
119
119
  }
120
120
  }, B = h(() => !(t.readonly || t.disabled || H.value || !r.value && t.multiple && i.value.length <= t.maxSelectedLabels)), Be = async () => {
121
121
  var e, l, o;
122
- B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusPrevious() : (await k(), await E(t.transitionDuration), (o = u.value) == null || o.focusLastSelected()));
122
+ B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusPrevious() : (await S(), await E(t.transitionDuration), (o = u.value) == null || o.focusLastSelected()));
123
123
  }, Ve = async () => {
124
124
  var e, l, o;
125
- B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusNext() : (await k(), await E(t.transitionDuration), (o = u.value) == null || o.focusFirstSelected()));
126
- }, Ie = (e) => {
127
- var o, d, f, I;
125
+ B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusNext() : (await S(), await E(t.transitionDuration), (o = u.value) == null || o.focusFirstSelected()));
126
+ }, ke = (e) => {
127
+ var o, d, f, k;
128
128
  if (!B.value || !t.multiple || a.value || (e.preventDefault(), (o = u.value) == null || o.blur(), !i.value.length)) return;
129
129
  (d = r.value) == null || d.focusPrevious();
130
130
  const l = (f = r.value) == null ? void 0 : f.getHighlighted();
131
- l && ((I = u.value) == null || I.focusByHash(l.valueHash));
132
- }, Se = (e) => {
133
- var o, d, f, I;
131
+ l && ((k = u.value) == null || k.focusByHash(l.valueHash));
132
+ }, Ie = (e) => {
133
+ var o, d, f, k;
134
134
  if (!B.value || !t.multiple || a.value || (e.preventDefault(), (o = u.value) == null || o.blur(), !i.value.length)) return;
135
135
  (d = r.value) == null || d.focusNext();
136
136
  const l = (f = r.value) == null ? void 0 : f.getHighlighted();
137
- l && ((I = u.value) == null || I.focusByHash(l.valueHash));
138
- }, ke = async () => {
137
+ l && ((k = u.value) == null || k.focusByHash(l.valueHash));
138
+ }, Se = async () => {
139
139
  var l, o;
140
140
  if (!B.value)
141
141
  return;
@@ -145,7 +145,7 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
145
145
  return;
146
146
  }
147
147
  } else {
148
- await k(), await E(t.transitionDuration), i.value.length && ((l = u.value) == null || l.focusFirstSelected());
148
+ await S(), await E(t.transitionDuration), i.value.length && ((l = u.value) == null || l.focusFirstSelected());
149
149
  return;
150
150
  }
151
151
  const e = a.value.trim();
@@ -154,20 +154,20 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
154
154
  c.value && await C();
155
155
  }, Oe = async () => {
156
156
  var e, l;
157
- !B.value || a.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await j(), (l = r.value) == null || l.focusPrevious());
157
+ !B.value || a.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await U(), (l = r.value) == null || l.focusPrevious());
158
158
  }, a = v(""), {
159
159
  getter: M,
160
160
  debouncedGetter: $e,
161
161
  items: De,
162
- loading: J
162
+ loading: X
163
163
  } = dt({
164
164
  items: L(t, "items"),
165
165
  debounce: t.queryDebounceTime
166
166
  }), P = () => {
167
167
  var e, l;
168
- t.enforceCoherence && !Z.value && (t.multiple ? n("update:modelValue", Pe.value.coherent) : n("update:modelValue", null), (e = r.value) == null || e.blur(), (l = u.value) == null || l.blur());
168
+ t.enforceCoherence && !te.value && (t.multiple ? n("update:modelValue", Pe.value.coherent) : n("update:modelValue", null), (e = r.value) == null || e.blur(), (l = u.value) == null || l.blur());
169
169
  }, {
170
- hasPrefilled: Q,
170
+ hasPrefilled: Y,
171
171
  isPrefilling: He,
172
172
  prefill: Le
173
173
  } = pt({
@@ -175,37 +175,37 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
175
175
  currentValue: t.modelValue,
176
176
  multiple: t.multiple,
177
177
  fn: async ({ prefill: e }) => {
178
- await M(a.value, e, t.modelValue), t.stash && Y(...S.value.map((l) => l.item)), P(), b();
178
+ await M(a.value, e, t.modelValue), t.stash && ee(...I.value.map((l) => l.item)), P(), b();
179
179
  }
180
180
  }), {
181
- array: X,
182
- add: Y,
181
+ array: Z,
182
+ add: ee,
183
183
  remove: Te,
184
184
  set: Fe
185
185
  } = nt(), i = h(() => {
186
186
  const e = Object.fromEntries(
187
187
  Object.entries(_.value).map(([l], o) => [l, o])
188
188
  );
189
- return S.value.filter((l) => l.selected).sort((l, o) => e[l.valueHash] - e[o.valueHash]);
189
+ return I.value.filter((l) => l.selected).sort((l, o) => e[l.valueHash] - e[o.valueHash]);
190
190
  }), Ee = h(() => i.value.length ? "" : t.placeholder), { data: _, get: xe } = ie({
191
191
  items: L(t, "modelValue")
192
- }), { options: S } = ut({
192
+ }), { options: I } = ut({
193
193
  disabled: L(t, "disabled"),
194
- items: h(() => [...De.value, ...X.value]),
194
+ items: h(() => [...De.value, ...Z.value]),
195
195
  itemText: t.itemText,
196
196
  itemValue: t.itemValue,
197
197
  max: t.max,
198
198
  selectable: !0,
199
199
  selectedIndexedByHash: _
200
- }), H = h(() => !!(J.value || t.loading)), Ae = h(() => {
200
+ }), H = h(() => !!(X.value || t.loading)), Ae = h(() => {
201
201
  let e = [];
202
202
  const l = i.value.some(
203
203
  (d) => d.text === a.value
204
204
  );
205
- return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = S.value.filter((d) => {
205
+ return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = I.value.filter((d) => {
206
206
  let f = !1;
207
- return typeof t.filterBy == "function" ? f = t.filterBy(d.value, d.item, a.value) : t.filterBy === "not_stashed" && a.value ? f = !new Set(X.value.map((Ue) => Ue.valueHash)).has(d.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (f = f || ue(d.item, t.filterBy, a.value.trim())), f || ue(d, ["text"], a.value.trim());
208
- }) : e = S.value, e;
207
+ return typeof t.filterBy == "function" ? f = t.filterBy(d.value, d.item, a.value) : t.filterBy === "not_stashed" && a.value ? f = !new Set(Z.value.map((Ue) => Ue.valueHash)).has(d.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (f = f || ue(d.item, t.filterBy, a.value.trim())), f || ue(d, ["text"], a.value.trim());
208
+ }) : e = I.value, e;
209
209
  }), b = () => {
210
210
  if (t.multiple) {
211
211
  a.value = "";
@@ -214,18 +214,18 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
214
214
  let e;
215
215
  i.value && (e = ot(i.value)), a.value = (e == null ? void 0 : e.text) || "";
216
216
  }, qe = async (e) => {
217
- t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && Y(e.item), b()) : (t.stash && Fe(e.item), n("update:modelValue", e.value), await j(), b()), q(), t.multiple || C();
217
+ t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && ee(e.item), b()) : (t.stash && Fe(e.item), n("update:modelValue", e.value), await U(), b()), q(), t.multiple || C();
218
218
  }, N = async (e) => {
219
219
  if (Te((l) => l.valueHash !== e.valueHash), t.multiple) {
220
220
  const l = { ..._.value };
221
221
  delete l[e.valueHash], n("update:modelValue", Object.values(l));
222
222
  } else
223
- n("update:modelValue", null), await j(), b();
223
+ n("update:modelValue", null), await U(), b();
224
224
  q();
225
225
  }, { data: Me } = ie({
226
- items: S,
226
+ items: I,
227
227
  key: "valueHash"
228
- }), { coherent: Z, status: Pe } = st({
228
+ }), { coherent: te, status: Pe } = st({
229
229
  modelValue: L(t, "modelValue"),
230
230
  multiple: t.multiple,
231
231
  iteratee: (e) => !!Me.value[lt(e)]
@@ -234,7 +234,7 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
234
234
  se(
235
235
  () => t.modelValue,
236
236
  async () => {
237
- V++, Z.value || (await M(a.value, !1, t.modelValue), P()), V === 1 && b(), V--;
237
+ V++, te.value || (await M(a.value, !1, t.modelValue), P()), V === 1 && b(), V--;
238
238
  },
239
239
  {
240
240
  debounce: t.modelValueDebounceTime
@@ -242,21 +242,21 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
242
242
  ), se(
243
243
  () => [t.dependencies, t.items],
244
244
  async () => {
245
- Q.value && (V++, await M(a.value, !1, t.modelValue), V === 1 && (P(), b()), V--);
245
+ Y.value && (V++, await M(a.value, !1, t.modelValue), V === 1 && (P(), b()), V--);
246
246
  },
247
247
  {
248
248
  debounce: t.depsDebounceTime
249
249
  }
250
250
  );
251
- const c = v(!1), W = v(!0), ee = v(!1), k = async () => {
252
- ee.value = !0, await mt(() => !!u.value), W.value = !1, c.value = !0;
251
+ const c = v(!1), W = v(!0), z = v(!1), S = async () => {
252
+ z.value = !0, await mt(() => !!u.value), W.value = !1, c.value = !0;
253
253
  }, C = async () => {
254
254
  var e;
255
255
  c.value = !1, W.value = !0, (e = r.value) == null || e.blur();
256
- }, _e = () => c.value ? C() : k(), z = v(!1), Ne = () => {
257
- z.value = !0;
256
+ }, _e = () => c.value ? C() : S(), K = v(!1), Ne = () => {
257
+ K.value = !0;
258
258
  }, We = () => {
259
- z.value = !1, n("inactive");
259
+ K.value = !1, n("inactive");
260
260
  }, ze = (e) => {
261
261
  e.preventDefault(), n("click", e), !(t.disabled || t.readonly) && (q(), _e());
262
262
  }, Ke = ft(
@@ -274,12 +274,12 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
274
274
  let e = null;
275
275
  t.multiple && (e = []), n("update:modelValue", e);
276
276
  };
277
- return (e, l) => (y(), K(bt, {
277
+ return (e, l) => (y(), T(bt, {
278
278
  ref_key: "outerContainer",
279
279
  ref: x,
280
- class: te({
280
+ class: le({
281
281
  "bb-base-select": !0,
282
- "bb-base-select--active": z.value,
282
+ "bb-base-select--active": K.value,
283
283
  "bb-base-select--shown": c.value,
284
284
  "bb-base-select--loading": H.value,
285
285
  "bb-base-select--disabled": e.disabled,
@@ -296,8 +296,8 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
296
296
  p(e.$slots, "append-outer", { query: a.value })
297
297
  ]),
298
298
  default: s(() => [
299
- T("div", Bt, [
300
- F(yt, {
299
+ F("div", Bt, [
300
+ j(yt, {
301
301
  ref_key: "innerContainer",
302
302
  ref: $,
303
303
  "append:icon": t["append:icon"],
@@ -319,37 +319,37 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
319
319
  p(e.$slots, "suffix")
320
320
  ]),
321
321
  default: s(() => [
322
- F(g(tt), { tag: "span" }, {
322
+ j(g(tt), { tag: "span" }, {
323
323
  default: s(() => [
324
- T("span", Vt, [
324
+ F("span", Vt, [
325
325
  e.multiple && i.value.length <= e.maxSelectedLabels ? (y(), O(ae, { key: 0 }, [
326
- e.comma ? (y(), K(ht, {
326
+ e.comma ? (y(), T(ht, {
327
327
  key: 0,
328
328
  ref_key: "commaBox",
329
- ref: R,
329
+ ref: G,
330
330
  options: i.value,
331
331
  "onOption:unselected": N
332
- }, null, 8, ["options"])) : (y(), K(vt, {
332
+ }, null, 8, ["options"])) : (y(), T(vt, {
333
333
  key: 1,
334
334
  ref_key: "chipsBox",
335
- ref: U,
335
+ ref: J,
336
336
  options: i.value,
337
337
  "onOption:unselected": N
338
338
  }, null, 8, ["options"]))
339
- ], 64)) : e.multiple ? (y(), O("span", It, Qe(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : g(ce)("select.multipleMaxReached", i.value.length)), 1)) : le("", !0),
339
+ ], 64)) : e.multiple ? (y(), O("span", kt, Qe(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : g(ce)("select.multipleMaxReached", i.value.length)), 1)) : R("", !0),
340
340
  Je((y(), O("input", {
341
- id: g(G),
341
+ id: g(Q),
342
342
  key: `${g(pe)}`,
343
343
  ref_key: "input",
344
344
  ref: A,
345
345
  "onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
346
346
  "aria-autocomplete": "list",
347
- "aria-controls": ee.value ? `${g(G)}_listbox` : void 0,
347
+ "aria-controls": z.value ? `${g(Q)}_listbox` : void 0,
348
348
  "aria-describedby": e.ariaDescribedby,
349
349
  "aria-expanded": c.value,
350
350
  autocomplete: e.autocomplete,
351
351
  autofocus: e.autofocus,
352
- class: te("bb-base-select__text-input"),
352
+ class: le("bb-base-select__text-input"),
353
353
  disabled: e.disabled,
354
354
  inputmode: fe.value,
355
355
  placeholder: Ee.value,
@@ -366,14 +366,14 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
366
366
  onInput: m(we, ["stop"]),
367
367
  onKeydown: [
368
368
  w(m(Oe, ["stop"]), ["delete"]),
369
- w(m(Ie, ["stop"]), ["left"]),
369
+ w(m(ke, ["stop"]), ["left"]),
370
370
  w(m(Ve, ["stop", "prevent"]), ["down"]),
371
- w(m(ke, ["stop", "prevent"]), ["enter"]),
371
+ w(m(Se, ["stop", "prevent"]), ["enter"]),
372
372
  w(m(Ce, ["stop", "prevent"]), ["esc"]),
373
373
  w(m(Be, ["stop", "prevent"]), ["up"]),
374
- w(m(Se, ["stop"]), ["right"])
374
+ w(m(Ie, ["stop"]), ["right"])
375
375
  ]
376
- }, null, 44, St)), [
376
+ }, null, 44, It)), [
377
377
  [Xe, a.value]
378
378
  ])
379
379
  ])
@@ -382,26 +382,29 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
382
382
  }),
383
383
  e.showChevron ? p(e.$slots, "chevron", {
384
384
  key: 0,
385
- loading: !!g(J),
385
+ loading: !!g(X),
386
386
  shown: c.value
387
387
  }, () => [
388
- l[1] || (l[1] = T("svg", {
388
+ l[1] || (l[1] = F("svg", {
389
389
  class: "bb-base-select__chevron",
390
390
  viewBox: "0 0 24 24",
391
391
  xmlns: "http://www.w3.org/2000/svg"
392
392
  }, [
393
- T("path", {
393
+ F("path", {
394
394
  d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
395
395
  fill: "currentColor"
396
396
  })
397
397
  ], -1))
398
- ]) : le("", !0)
398
+ ]) : R("", !0)
399
399
  ]),
400
400
  _: 3
401
401
  }, 8, ["append:icon", "clearable", "prepend:icon"]),
402
- F(gt, { "model-value": c.value }, {
402
+ z.value ? (y(), T(gt, {
403
+ key: 0,
404
+ "model-value": c.value
405
+ }, {
403
406
  default: s(() => [
404
- F(wt, {
407
+ j(wt, {
405
408
  ref_key: "optionsContainer",
406
409
  ref: u,
407
410
  compact: e.compact,
@@ -437,7 +440,7 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
437
440
  }, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "style"])
438
441
  ]),
439
442
  _: 3
440
- }, 8, ["model-value"])
443
+ }, 8, ["model-value"])) : R("", !0)
441
444
  ]),
442
445
  (y(!0), O(ae, null, Ye(je.value, (o) => (y(), O("input", ne({
443
446
  key: o.value,
package/dist/index39.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as te, ref as d, computed as p, onMounted as le, watch as oe, createElementBlock as y, openBlock as g, mergeProps as L, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as ne, renderList as se, normalizeProps as ie, guardReactiveProps as ue, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
2
- import { head as de } from "./index239.js";
3
- import { isCssColor as Y } from "./index227.js";
4
- import { isNil as S } from "./index240.js";
2
+ import { head as de } from "./index264.js";
3
+ import { isCssColor as Y } from "./index232.js";
4
+ import { isNil as S } from "./index260.js";
5
5
  import { getAsPercentageBetween as T, getAsPercentage as me, getValueFromPercentageInInterval as x } from "./index136.js";
6
- import { hash as j } from "./index236.js";
7
- import { snapToStep as ce } from "./index241.js";
8
- import { last as be } from "./index217.js";
9
- import { transpose as J } from "./index242.js";
6
+ import { hash as j } from "./index216.js";
7
+ import { snapToStep as ce } from "./index265.js";
8
+ import { last as be } from "./index243.js";
9
+ import { transpose as J } from "./index266.js";
10
10
  import { clamp as f } from "./index207.js";
11
11
  const ve = { class: "bb-base-slider__slider-container" }, fe = {
12
12
  key: 0,
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index227.js";
3
- import { when as N } from "./index228.js";
2
+ import { isCssColor as b } from "./index232.js";
3
+ import { when as N } from "./index233.js";
4
4
  const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
2
2
  import K from "./index41.js";
3
3
  /* empty css */
4
- import N from "./index230.js";
4
+ import N from "./index210.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index232.js";
7
- import { useIndexById as T } from "./index233.js";
8
- import { useBaseOptions as q } from "./index234.js";
9
- import { useCoherence as J } from "./index235.js";
10
- import { hash as Q } from "./index236.js";
11
- import { useHashedWatcher as $ } from "./index237.js";
12
- import { usePrefill as X } from "./index238.js";
6
+ import { useItemsGetter as U } from "./index212.js";
7
+ import { useIndexById as T } from "./index213.js";
8
+ import { useBaseOptions as q } from "./index214.js";
9
+ import { useCoherence as J } from "./index215.js";
10
+ import { hash as Q } from "./index216.js";
11
+ import { useHashedWatcher as $ } from "./index217.js";
12
+ import { usePrefill as X } from "./index218.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
3
3
  /* empty css */
4
4
  import ae from "./index111.js";
5
5
  /* empty css */
6
- import { last as le } from "./index217.js";
7
- import { useBaseOptions as ne } from "./index234.js";
8
- import { useIndexById as re } from "./index233.js";
9
- import ie from "./index243.js";
6
+ import { last as le } from "./index243.js";
7
+ import { useBaseOptions as ne } from "./index214.js";
8
+ import { useIndexById as re } from "./index213.js";
9
+ import ie from "./index247.js";
10
10
  /* empty css */
11
- import ue from "./index245.js";
11
+ import ue from "./index249.js";
12
12
  /* empty css */
13
- import se from "./index221.js";
13
+ import se from "./index225.js";
14
14
  /* empty css */
15
- import de from "./index223.js";
16
- import { isEmpty as pe } from "./index216.js";
15
+ import de from "./index227.js";
16
+ import { isEmpty as pe } from "./index242.js";
17
17
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
2
- import E from "./index223.js";
3
- import G from "./index221.js";
2
+ import E from "./index227.js";
3
+ import G from "./index225.js";
4
4
  /* empty css */
5
5
  import M from "./index111.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
2
- import E from "./index221.js";
2
+ import E from "./index225.js";
3
3
  /* empty css */
4
- import I from "./index223.js";
4
+ import I from "./index227.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index251.js";
6
+ import { MaskInput as z } from "./index261.js";
7
7
  const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
8
8
  __name: "BaseTextInput",
9
9
  props: {
package/dist/index53.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index69.js";
3
3
  /* empty css */
4
4
  import L from "./index85.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index218.js";
6
+ import { useLocale as g } from "./index220.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index227.js";
2
+ import { isCssColor as y } from "./index232.js";
3
3
  import { wait as C } from "./index135.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as l } from "./index227.js";
3
- import { isNil as B } from "./index240.js";
2
+ import { isCssColor as l } from "./index232.js";
3
+ import { isNil as B } from "./index260.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
7
7
  /* empty css */
8
8
  import T from "./index113.js";
9
9
  /* empty css */
10
- import { pickBy as W } from "./index269.js";
11
- import { noop as w } from "./index270.js";
12
- import { useLocale as D } from "./index218.js";
10
+ import { pickBy as W } from "./index262.js";
11
+ import { noop as w } from "./index263.js";
12
+ import { useLocale as D } from "./index220.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index67.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
2
- import { useLocale as f } from "./index218.js";
2
+ import { useLocale as f } from "./index220.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index79.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
2
2
  import { findRightIndex as T } from "./index267.js";
3
3
  import { useId as te } from "./index8.js";
4
- import { useUntil as ne } from "./index219.js";
4
+ import { useUntil as ne } from "./index221.js";
5
5
  import { wait as oe } from "./index135.js";
6
6
  import ae from "./index13.js";
7
7
  /* empty css */
8
8
  import B from "./index85.js";
9
9
  /* empty css */
10
- import le from "./index224.js";
10
+ import le from "./index228.js";
11
11
  /* empty css */
12
12
  import K from "./index268.js";
13
13
  const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
package/dist/index81.js CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
9
9
  /* empty css */
10
10
  import I from "./index113.js";
11
11
  /* empty css */
12
- import { useLocale as M } from "./index218.js";
12
+ import { useLocale as M } from "./index220.js";
13
13
  const O = { class: "bb-dropdown-button__content" }, R = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index83.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, 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 "./index266.js";
2
+ import { findInTree as ae } from "./index271.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index111.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index265.js")).default);
56
+ b || (b = (await import("./index270.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index85.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index227.js";
2
+ import { isCssColor as I } from "./index232.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index87.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index271.js";
2
+ import { throttle as c } from "./index269.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {