bitboss-ui 2.0.130 → 2.0.131

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