bitboss-ui 0.1.76 → 0.1.78
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.
- package/dist/components/BaseTag/BaseTag.vue.d.ts +83 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +64 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +119 -116
- package/dist/index.js.map +1 -1
- package/dist/index100.js +46 -41
- package/dist/index100.js.map +1 -1
- package/dist/index102.js +29 -31
- package/dist/index102.js.map +1 -1
- package/dist/index104.js +82 -22
- package/dist/index104.js.map +1 -1
- package/dist/index106.js +22 -115
- package/dist/index106.js.map +1 -1
- package/dist/index108.js +112 -90
- package/dist/index108.js.map +1 -1
- package/dist/index110.js +93 -39
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +2 -38
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +40 -40
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +33 -42
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +30 -29
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +47 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +43 -21
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +20 -9
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +2 -18
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +9 -9
- package/dist/index120.js +10 -13
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +18 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +10 -221
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -3
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +224 -3
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -2
- package/dist/index127.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index129.js +2 -2
- package/dist/index130.js +2 -2
- package/dist/index131.js +2 -2
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +11 -11
- package/dist/index140.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index144.js +2 -2
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -2
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -2
- package/dist/index149.js +3 -2
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index152.js +2 -2
- package/dist/index153.js +2 -3
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +2 -2
- package/dist/index155.js +2 -2
- package/dist/index156.js +2 -2
- package/dist/index157.js +2 -2
- package/dist/index158.js +3 -2
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +2 -2
- package/dist/index16.js +5 -5
- package/dist/index160.js +2 -2
- package/dist/index161.js +3 -2
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -3
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +2 -3
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -2
- package/dist/index165.js +2 -2
- package/dist/index166.js +2 -2
- package/dist/index167.js +2 -2
- package/dist/index168.js +2 -2
- package/dist/index169.js +2 -2
- package/dist/index170.js +2 -2
- package/dist/index171.js +2 -2
- package/dist/index172.js +2 -2
- package/dist/index173.js +2 -2
- package/dist/index174.js +3 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index177.js +2 -2
- package/dist/index178.js +2 -3
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -2
- package/dist/index18.js +6 -6
- package/dist/index180.js +2 -2
- package/dist/index181.js +2 -2
- package/dist/index182.js +2 -2
- package/dist/index183.js +2 -2
- package/dist/index184.js +2 -2
- package/dist/index185.js +2 -2
- package/dist/index186.js +3 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +3 -350
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +3 -134
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +2 -5
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -19
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +2 -2
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +4 -2
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +3 -186
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +3 -23
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +3 -331
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +35 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +6 -3
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +348 -33
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +134 -6
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +1 -1
- package/dist/index20.js +1 -1
- package/dist/index200.js +295 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +19 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -2
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -16
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +184 -14
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +23 -20
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +329 -27
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -8
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +2 -3
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +235 -3
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +16 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +16 -235
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +20 -9
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +27 -94
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +8 -28
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +8 -12
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +89 -72
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +27 -5
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -2
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +78 -294
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +2 -2
- package/dist/index220.js +4 -2
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +224 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +246 -105
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -105
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +434 -10
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +7 -433
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +87 -7
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -88
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -4
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +2 -200
- package/dist/index229.js.map +1 -1
- package/dist/index231.js +117 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +106 -2
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +200 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -9
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -224
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -258
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +9 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +6 -69
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +158 -36
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +2 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +38 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +5 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +72 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +5 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +6 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +5 -0
- package/dist/index249.js.map +1 -0
- package/dist/index250.js +5 -0
- package/dist/index250.js.map +1 -0
- package/dist/index26.js +4 -4
- package/dist/index28.js +69 -70
- package/dist/index28.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +4 -4
- package/dist/index32.js +2 -2
- package/dist/index4.js +2 -2
- package/dist/index40.js +3 -3
- package/dist/index42.js +4 -4
- package/dist/index44.js +1 -1
- package/dist/index46.js +2 -2
- package/dist/index5.js +4 -4
- package/dist/index56.js +2 -2
- package/dist/index62.js +7 -7
- package/dist/index66.js +5 -5
- package/dist/index69.js +1 -1
- package/dist/index72.js +3 -3
- package/dist/index74.js +1 -1
- package/dist/index76.js +6 -6
- package/dist/index78.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index88.js +6 -8
- package/dist/index88.js.map +1 -1
- package/dist/index96.js +4 -4
- package/dist/index98.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index28.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as Ee, ref as f, computed as g, onMounted as $e, onBeforeUnmount as De, watch as X, openBlock as b, createElementBlock as y, normalizeClass as B,
|
|
2
|
-
import { autoUpdate as ze, computePosition as Pe } from "./
|
|
3
|
-
import { deepEqual as re } from "./
|
|
4
|
-
import { head as
|
|
5
|
-
import { isNotNil as T } from "./
|
|
6
|
-
import { last as He } from "./
|
|
7
|
-
import { useItemText as je } from "./
|
|
8
|
-
import { useItemValue as Qe } from "./
|
|
9
|
-
import { wait as
|
|
10
|
-
import { waitFor as Ue } from "./
|
|
11
|
-
import { when as We } from "./
|
|
12
|
-
import Ke from "./
|
|
13
|
-
import "./
|
|
14
|
-
import Re from "./
|
|
15
|
-
import "./
|
|
16
|
-
import { offset as Ye, flip as Ze, shift as Ge } from "./
|
|
1
|
+
import { defineComponent as Ee, ref as f, computed as g, onMounted as $e, onBeforeUnmount as De, watch as X, openBlock as b, createElementBlock as y, normalizeClass as B, renderSlot as h, createElementVNode as w, Fragment as D, renderList as j, toDisplayString as J, createBlock as ue, withModifiers as I, createCommentVNode as oe, withDirectives as Le, vModelDynamic as Fe, Teleport as Ae, normalizeStyle as Me, createTextVNode as se, createVNode as Je, mergeProps as qe, nextTick as ie } from "vue";
|
|
2
|
+
import { autoUpdate as ze, computePosition as Pe } from "./index198.js";
|
|
3
|
+
import { deepEqual as re } from "./index124.js";
|
|
4
|
+
import { head as ee } from "./index207.js";
|
|
5
|
+
import { isNotNil as T } from "./index123.js";
|
|
6
|
+
import { last as He } from "./index203.js";
|
|
7
|
+
import { useItemText as je } from "./index121.js";
|
|
8
|
+
import { useItemValue as Qe } from "./index122.js";
|
|
9
|
+
import { wait as q } from "./index119.js";
|
|
10
|
+
import { waitFor as Ue } from "./index197.js";
|
|
11
|
+
import { when as We } from "./index192.js";
|
|
12
|
+
import Ke from "./index112.js";
|
|
13
|
+
import "./index151.js";
|
|
14
|
+
import Re from "./index116.js";
|
|
15
|
+
import "./index178.js";
|
|
16
|
+
import { offset as Ye, flip as Ze, shift as Ge } from "./index206.js";
|
|
17
17
|
const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "disabled", "id", "placeholder", "readonly", "onBlur", "onFocus", "onChange", "onInput", "onKeydown"], ll = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "bb-base-select__loading-container"
|
|
@@ -69,10 +69,10 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
69
69
|
const l = de, d = ce;
|
|
70
70
|
if (l.multiple && !Array.isArray(l.modelValue))
|
|
71
71
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
|
72
|
-
const
|
|
73
|
-
let
|
|
72
|
+
const L = f(null), N = f(null), v = f(null), S = f(null), o = f(""), fe = g(() => i.value.length ? "" : l.placeholder), c = f(0), ve = l.transitionDuration / 1e3 + "s";
|
|
73
|
+
let le;
|
|
74
74
|
$e(async () => {
|
|
75
|
-
N.value && v.value && (
|
|
75
|
+
N.value && v.value && (le = ze(
|
|
76
76
|
N.value,
|
|
77
77
|
v.value,
|
|
78
78
|
ge,
|
|
@@ -84,9 +84,9 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
84
84
|
}
|
|
85
85
|
));
|
|
86
86
|
}), De(() => {
|
|
87
|
-
|
|
87
|
+
le();
|
|
88
88
|
});
|
|
89
|
-
const
|
|
89
|
+
const te = f([]), m = f([]), V = f([]), { getItemText: me } = je(), { getItemValue: pe } = Qe(), be = g(() => te.value.map((e, a) => {
|
|
90
90
|
const t = me(e, l.itemText), n = pe(e, l.itemValue);
|
|
91
91
|
if (n === void 0)
|
|
92
92
|
throw new Error(
|
|
@@ -140,7 +140,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
140
140
|
...a,
|
|
141
141
|
focused: O.value === t
|
|
142
142
|
}));
|
|
143
|
-
}),
|
|
143
|
+
}), z = g(
|
|
144
144
|
() => C.value.reduce(
|
|
145
145
|
(e, a) => ({
|
|
146
146
|
...e,
|
|
@@ -191,7 +191,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
191
191
|
}), i = g(() => [].concat(l.modelValue).reduce((e, a) => {
|
|
192
192
|
const t = p.value.get(a);
|
|
193
193
|
return t && e.push(t), e;
|
|
194
|
-
}, [])),
|
|
194
|
+
}, [])), F = (e) => {
|
|
195
195
|
let a;
|
|
196
196
|
r.value = e.index, l.multiple ? (e.selected ? (e.manual && (V.value = V.value.filter(
|
|
197
197
|
(t) => t.id !== e.id
|
|
@@ -202,7 +202,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
202
202
|
)), a = null, l.stash && (m.value = []), o.value = "") : (a = e.value, l.stash && (m.value = [e]), o.value = e.text), d("update:modelValue", a);
|
|
203
203
|
}, E = async ({ prefill: e = !1 }) => {
|
|
204
204
|
let a = [];
|
|
205
|
-
Array.isArray(l.items) ? a = l.items : typeof l.items == "function" && (c.value++, a = await l.items(o.value, e, l.modelValue), c.value--),
|
|
205
|
+
Array.isArray(l.items) ? a = l.items : typeof l.items == "function" && (c.value++, a = await l.items(o.value, e, l.modelValue), c.value--), te.value = a;
|
|
206
206
|
}, ye = () => {
|
|
207
207
|
const e = o.value, a = o.value, t = JSON.stringify(a), n = {
|
|
208
208
|
text: e,
|
|
@@ -214,7 +214,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
214
214
|
disabled: !1
|
|
215
215
|
};
|
|
216
216
|
V.value = V.value.concat(n), o.value = "";
|
|
217
|
-
},
|
|
217
|
+
}, P = l.prefill === !0 || !l.multiple && T(l.modelValue) || l.multiple && !!l.modelValue.length;
|
|
218
218
|
let Q;
|
|
219
219
|
X(
|
|
220
220
|
() => l.modelValue,
|
|
@@ -236,8 +236,8 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
236
236
|
else {
|
|
237
237
|
let n = [];
|
|
238
238
|
const u = e.filter((x) => {
|
|
239
|
-
let
|
|
240
|
-
return
|
|
239
|
+
let M = p.value.get(x);
|
|
240
|
+
return M && n.push(M), M;
|
|
241
241
|
});
|
|
242
242
|
l.stash && (m.value = n), l.enforceCoherence && d("update:modelValue", u);
|
|
243
243
|
}
|
|
@@ -250,11 +250,11 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
250
250
|
t = p.value.get(l.modelValue), t ? (o.value = t.text, l.stash && (m.value = [t])) : l.enforceCoherence && T(e) ? (o.value = "", l.stash && (m.value = []), d("update:modelValue", null)) : o.value = "";
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
-
|
|
253
|
+
P ? 0 : l.modelValueDebounceTime
|
|
254
254
|
);
|
|
255
255
|
},
|
|
256
256
|
// Prefill when asked or when items are static
|
|
257
|
-
{ immediate:
|
|
257
|
+
{ immediate: P, deep: !0 }
|
|
258
258
|
), X(
|
|
259
259
|
() => l.items,
|
|
260
260
|
async (e, a) => {
|
|
@@ -275,7 +275,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
275
275
|
X(
|
|
276
276
|
() => l.dependencies,
|
|
277
277
|
(e, a) => {
|
|
278
|
-
!
|
|
278
|
+
!P && l.prefill === "focus" && Y || JSON.stringify(e) !== JSON.stringify(a) && (U && clearTimeout(U), U = setTimeout(async () => {
|
|
279
279
|
if (JSON.stringify(e) !== JSON.stringify(a)) {
|
|
280
280
|
l.enforceCoherence && l.stash && (m.value = []);
|
|
281
281
|
let t = o.value;
|
|
@@ -285,8 +285,8 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
285
285
|
(u) => p.value.get(u)
|
|
286
286
|
) && l.enforceCoherence) {
|
|
287
287
|
let u = [];
|
|
288
|
-
const x = l.modelValue.filter((
|
|
289
|
-
let G = p.value.get(
|
|
288
|
+
const x = l.modelValue.filter((M) => {
|
|
289
|
+
let G = p.value.get(M);
|
|
290
290
|
return G && u.push(G), G;
|
|
291
291
|
});
|
|
292
292
|
l.stash && (m.value = u), d("update:modelValue", x);
|
|
@@ -305,16 +305,16 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
305
305
|
v.value && (v.value.style.left = `${e.x}px`, v.value.style.top = `${e.y}px`, v.value.style.width = `${(a = N.value) == null ? void 0 : a.offsetWidth}px`);
|
|
306
306
|
});
|
|
307
307
|
}, _ = f(!1), W = f(!1), K = f(!1), R = f(!0), $ = async () => {
|
|
308
|
-
R.value = !1, W.value = !0, await
|
|
309
|
-
},
|
|
310
|
-
_.value = !1, K.value = !0, await
|
|
311
|
-
},
|
|
308
|
+
R.value = !1, W.value = !0, await q(l.transitionDuration), W.value = !1, _.value = !0;
|
|
309
|
+
}, A = async () => {
|
|
310
|
+
_.value = !1, K.value = !0, await q(l.transitionDuration), K.value = !1, R.value = !0;
|
|
311
|
+
}, H = f(!1);
|
|
312
312
|
let Y = !0;
|
|
313
313
|
const we = async (e) => {
|
|
314
|
-
d("focus", e),
|
|
315
|
-
},
|
|
316
|
-
if (e.target instanceof Node &&
|
|
317
|
-
|
|
314
|
+
d("focus", e), H.value = !0, document.addEventListener("click", ne), document.addEventListener("focusin", ae), S.value instanceof HTMLInputElement && S.value.select(), l.prefill === "focus" && Y && !P && (await E({ prefill: !0 }), Y = !1);
|
|
315
|
+
}, ae = (e) => {
|
|
316
|
+
if (e.target instanceof Node && L.value && v.value && !L.value.contains(e.target) && !v.value.contains(e.target)) {
|
|
317
|
+
A(), d("inactive"), document.removeEventListener("focusin", ae), H.value = !1, l.multiple && q(500).then(() => {
|
|
318
318
|
o.value = "";
|
|
319
319
|
});
|
|
320
320
|
return;
|
|
@@ -324,7 +324,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
324
324
|
let a = !1;
|
|
325
325
|
const t = l.modelValue;
|
|
326
326
|
if (await Promise.race([
|
|
327
|
-
|
|
327
|
+
q(250),
|
|
328
328
|
Ue(() => t !== l.modelValue).then(() => {
|
|
329
329
|
a = !0;
|
|
330
330
|
})
|
|
@@ -374,14 +374,14 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
374
374
|
{
|
|
375
375
|
if (e.preventDefault(), c.value)
|
|
376
376
|
return;
|
|
377
|
-
s.value = null, _.value ? Oe() : (i.value.length && (r.value =
|
|
377
|
+
s.value = null, _.value ? Oe() : (i.value.length && (r.value = ee(i.value).index), await $());
|
|
378
378
|
}
|
|
379
379
|
break;
|
|
380
380
|
case "ArrowDown":
|
|
381
381
|
{
|
|
382
382
|
if (e.preventDefault(), c.value)
|
|
383
383
|
return;
|
|
384
|
-
s.value = null, _.value ? _e() : (i.value.length && (r.value =
|
|
384
|
+
s.value = null, _.value ? _e() : (i.value.length && (r.value = ee(i.value).index), await $());
|
|
385
385
|
}
|
|
386
386
|
break;
|
|
387
387
|
case "ArrowLeft":
|
|
@@ -396,7 +396,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
396
396
|
behavior: "smooth",
|
|
397
397
|
block: "nearest",
|
|
398
398
|
inline: "start"
|
|
399
|
-
}), r.value =
|
|
399
|
+
}), r.value = z.value[i.value[s.value].id].index);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
break;
|
|
@@ -412,7 +412,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
412
412
|
behavior: "smooth",
|
|
413
413
|
block: "nearest",
|
|
414
414
|
inline: "start"
|
|
415
|
-
}), r.value =
|
|
415
|
+
}), r.value = z.value[i.value[s.value].id].index);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
break;
|
|
@@ -421,11 +421,11 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
421
421
|
if (e.preventDefault(), c.value)
|
|
422
422
|
return;
|
|
423
423
|
if (!_.value)
|
|
424
|
-
k.value.length && i.value.length && (r.value =
|
|
424
|
+
k.value.length && i.value.length && (r.value = ee(i.value).index), await $();
|
|
425
425
|
else if (O.value !== null) {
|
|
426
426
|
if (k.value[O.value].disabled)
|
|
427
427
|
return;
|
|
428
|
-
l.multiple || await
|
|
428
|
+
l.multiple || await A(), F(
|
|
429
429
|
k.value[O.value]
|
|
430
430
|
);
|
|
431
431
|
} else if (l.addOptions) {
|
|
@@ -437,13 +437,13 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
437
437
|
}
|
|
438
438
|
ye();
|
|
439
439
|
const n = He(V.value);
|
|
440
|
-
|
|
440
|
+
F(z.value[n.id]);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
break;
|
|
444
444
|
case "Tab":
|
|
445
445
|
case "Escape":
|
|
446
|
-
_.value && await
|
|
446
|
+
_.value && await A(), d("inactive"), s.value = null, r.value = null;
|
|
447
447
|
break;
|
|
448
448
|
case "Shift":
|
|
449
449
|
if (c.value)
|
|
@@ -453,7 +453,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
453
453
|
{
|
|
454
454
|
if (c.value)
|
|
455
455
|
return;
|
|
456
|
-
o.value || i.value.length && (s.value === null ? s.value = i.value.length - 1 : (
|
|
456
|
+
o.value || i.value.length && (s.value === null ? s.value = i.value.length - 1 : (F(
|
|
457
457
|
i.value[s.value]
|
|
458
458
|
), i.value.length ? s.value = Math.max(
|
|
459
459
|
Math.min(
|
|
@@ -482,14 +482,14 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
482
482
|
d("click", e), !(l.disabled || l.readonly) && (S.value instanceof HTMLElement && S.value.focus(), $());
|
|
483
483
|
}, Be = (e) => {
|
|
484
484
|
if (e.currentTarget instanceof HTMLElement && e.currentTarget.classList.contains("bb-base-select-option")) {
|
|
485
|
-
const a =
|
|
485
|
+
const a = z.value[e.currentTarget.id];
|
|
486
486
|
if (a.disabled)
|
|
487
487
|
return;
|
|
488
|
-
|
|
488
|
+
F(a), S.value instanceof HTMLInputElement && S.value.focus(), l.multiple || A();
|
|
489
489
|
}
|
|
490
|
-
},
|
|
491
|
-
if (e.target instanceof Node &&
|
|
492
|
-
|
|
490
|
+
}, ne = (e) => {
|
|
491
|
+
if (e.target instanceof Node && L.value && !L.value.contains(e.target)) {
|
|
492
|
+
A(), d("inactive"), document.removeEventListener("click", ne), H.value = !1, l.multiple && q(500).then(() => {
|
|
493
493
|
o.value = "";
|
|
494
494
|
});
|
|
495
495
|
return;
|
|
@@ -509,7 +509,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
509
509
|
return (e, a) => (b(), y("span", {
|
|
510
510
|
class: B({
|
|
511
511
|
"bb-base-select": !0,
|
|
512
|
-
"bb-base-select--active":
|
|
512
|
+
"bb-base-select--active": H.value,
|
|
513
513
|
"bb-base-select--loading": c.value,
|
|
514
514
|
"bb-base-select--disabled": e.disabled,
|
|
515
515
|
"bb-base-select--errors": e.hasErrors,
|
|
@@ -517,9 +517,8 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
517
517
|
}),
|
|
518
518
|
onClick: xe,
|
|
519
519
|
ref_key: "outerContainer",
|
|
520
|
-
ref:
|
|
520
|
+
ref: L
|
|
521
521
|
}, [
|
|
522
|
-
ee(D(J.value) + " ", 1),
|
|
523
522
|
h(e.$slots, "prepend-outer"),
|
|
524
523
|
w("span", {
|
|
525
524
|
class: "bb-base-select__inner-container",
|
|
@@ -528,15 +527,15 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
528
527
|
}, [
|
|
529
528
|
h(e.$slots, "prepend"),
|
|
530
529
|
w("span", Xe, [
|
|
531
|
-
e.multiple ? (b(), y(
|
|
532
|
-
e.comma ? (b(!0), y(
|
|
530
|
+
e.multiple ? (b(), y(D, { key: 0 }, [
|
|
531
|
+
e.comma ? (b(!0), y(D, { key: 0 }, j(i.value, (t, n) => (b(), y("span", {
|
|
533
532
|
class: B({
|
|
534
533
|
"bb-base-select__selected": !0,
|
|
535
534
|
"bb-base-select__selected--comma": !0,
|
|
536
535
|
"bb-base-select__selected--focused": n === s.value
|
|
537
536
|
}),
|
|
538
537
|
key: t.id
|
|
539
|
-
},
|
|
538
|
+
}, J(t.text) + J(n < i.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(i.value, (t, n) => (b(), ue(Ke, {
|
|
540
539
|
class: B({
|
|
541
540
|
"bb-base-select__selected": !0,
|
|
542
541
|
"bb-base-select__selected--chip": !0,
|
|
@@ -545,9 +544,9 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
545
544
|
clearable: !0,
|
|
546
545
|
key: t.id,
|
|
547
546
|
text: t.text,
|
|
548
|
-
"onClick:clear": I((u) =>
|
|
547
|
+
"onClick:clear": I((u) => F(t), ["stop"])
|
|
549
548
|
}, null, 8, ["class", "text", "onClick:clear"]))), 128))
|
|
550
|
-
], 64)) :
|
|
549
|
+
], 64)) : oe("", !0),
|
|
551
550
|
Le(w("input", {
|
|
552
551
|
autofocus: e.autofocus,
|
|
553
552
|
class: B("bb-base-select__text-input"),
|
|
@@ -567,7 +566,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
567
566
|
}, null, 40, el), [
|
|
568
567
|
[Fe, o.value]
|
|
569
568
|
]),
|
|
570
|
-
(b(),
|
|
569
|
+
(b(), ue(Ae, { to: "body" }, [
|
|
571
570
|
w("span", {
|
|
572
571
|
class: B({
|
|
573
572
|
"bb-base-select__options-container": !0,
|
|
@@ -585,14 +584,14 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
585
584
|
h(e.$slots, "options:prepend"),
|
|
586
585
|
!k.value.length && c.value ? (b(), y("span", ll, [
|
|
587
586
|
h(e.$slots, "loading", { query: o.value }, () => [
|
|
588
|
-
|
|
587
|
+
se(J(e.loadingText), 1)
|
|
589
588
|
])
|
|
590
|
-
])) : k.value.length ?
|
|
589
|
+
])) : k.value.length ? oe("", !0) : (b(), y("span", tl, [
|
|
591
590
|
h(e.$slots, "no-data", { query: o.value }, () => [
|
|
592
|
-
|
|
591
|
+
se(J(e.noDataText), 1)
|
|
593
592
|
])
|
|
594
593
|
])),
|
|
595
|
-
(b(!0), y(
|
|
594
|
+
(b(!0), y(D, null, j(k.value, (t) => (b(), y(D, {
|
|
596
595
|
key: t.id
|
|
597
596
|
}, [
|
|
598
597
|
h(e.$slots, "option:prepend", {
|
|
@@ -623,7 +622,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
623
622
|
value: t.value
|
|
624
623
|
}, () => [
|
|
625
624
|
w("span", nl, [
|
|
626
|
-
w("span", ul,
|
|
625
|
+
w("span", ul, J(t.text), 1)
|
|
627
626
|
])
|
|
628
627
|
])
|
|
629
628
|
], 10, al),
|
|
@@ -658,7 +657,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
|
658
657
|
], 2)) : h(e.$slots, "append", { key: 0 })
|
|
659
658
|
], 512),
|
|
660
659
|
h(e.$slots, "append-outer"),
|
|
661
|
-
(b(!0), y(
|
|
660
|
+
(b(!0), y(D, null, j(Ne.value, (t) => (b(), y("input", qe({
|
|
662
661
|
key: t.value
|
|
663
662
|
}, t), null, 16))), 128))
|
|
664
663
|
], 2));
|