bitboss-ui 2.0.150 → 2.0.152

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