bitboss-ui 2.1.78 → 2.1.80
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/BaseDialog/BaseDialog.vue.d.ts +7 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +9 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +22 -2
- package/dist/components/BbDialog/BbDialog.vue.d.ts +6 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +12 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -2
- package/dist/index.css +1 -1
- package/dist/index107.js +9 -9
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +13 -13
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index141.js +2 -2
- package/dist/index142.js +1 -1
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +14 -14
- package/dist/index214.js +2 -138
- package/dist/index215.js +138 -2
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index220.js +1 -1
- package/dist/index222.js +5 -4
- package/dist/index223.js +5 -13
- package/dist/index224.js +5 -20
- package/dist/index225.js +5 -201
- package/dist/index226.js +7 -0
- package/dist/index227.js +3 -135
- package/dist/index228.js +4 -0
- package/dist/index229.js +6 -2
- package/dist/index23.js +11 -11
- package/dist/index230.js +8 -51
- package/dist/index231.js +268 -17
- package/dist/index232.js +46 -100
- package/dist/index233.js +54 -0
- package/dist/index234.js +28 -96
- package/dist/index235.js +62 -0
- package/dist/index236.js +13 -3
- package/dist/index237.js +86 -5
- package/dist/index239.js +29 -5
- package/dist/index240.js +17 -5
- package/dist/index241.js +51 -5
- package/dist/index242.js +15 -5
- package/dist/index243.js +12 -2
- package/dist/index244.js +15 -187
- package/dist/index245.js +10 -3
- package/dist/index246.js +3 -2
- package/dist/index247.js +3 -10
- package/dist/index248.js +3 -8
- package/dist/index249.js +5 -13
- package/dist/index25.js +41 -40
- package/dist/index250.js +5 -13
- package/dist/index251.js +5 -4
- package/dist/index252.js +2 -23
- package/dist/index253.js +3 -3
- package/dist/index254.js +20 -3
- package/dist/index255.js +134 -17
- package/dist/index257.js +187 -14
- package/dist/index258.js +3 -12
- package/dist/index259.js +12 -28
- package/dist/index260.js +12 -15
- package/dist/index261.js +9 -4
- package/dist/index262.js +2 -229
- package/dist/index263.js +11 -10
- package/dist/index264.js +6 -3
- package/dist/index265.js +15 -66
- package/dist/index266.js +9 -2
- package/dist/index267.js +2 -3
- package/dist/index268.js +8 -9
- package/dist/index27.js +1 -1
- package/dist/index271.js +23 -5
- package/dist/index272.js +2 -6
- package/dist/index273.js +4 -16
- package/dist/index274.js +201 -3
- package/dist/index276.js +3 -9
- package/dist/index277.js +3 -5
- package/dist/index278.js +4 -6
- package/dist/index279.js +40 -267
- package/dist/index280.js +7 -52
- package/dist/index281.js +17 -51
- package/dist/index282.js +12 -32
- package/dist/index283.js +100 -54
- package/dist/index285.js +95 -81
- package/dist/index287.js +227 -7
- package/dist/index288.js +34 -8
- package/dist/index289.js +8 -6
- package/dist/index29.js +3 -3
- package/dist/index293.js +66 -40
- package/dist/index296.js +7 -4
- package/dist/index297.js +280 -7
- package/dist/index298.js +2 -3
- package/dist/index299.js +16 -3
- package/dist/index300.js +2 -17
- package/dist/index301.js +16 -2
- package/dist/index302.js +2 -3
- package/dist/index303.js +27 -2
- package/dist/index304.js +2 -28
- package/dist/index305.js +2 -4
- package/dist/index306.js +2 -3
- package/dist/index307.js +2 -5
- package/dist/index308.js +2 -280
- package/dist/index309.js +28 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -125
- package/dist/index311.js +3 -2
- package/dist/index312.js +17 -15
- package/dist/index313.js +125 -2
- package/dist/index314.js +2 -16
- package/dist/index315.js +15 -2
- package/dist/index316.js +2 -16
- package/dist/index317.js +19 -2
- package/dist/index318.js +2 -19
- package/dist/index319.js +3 -2
- package/dist/index320.js +3 -5
- package/dist/index321.js +719 -27
- package/dist/index322.js +366 -2
- package/dist/index323.js +57 -2
- package/dist/index324.js +4 -2
- package/dist/index325.js +5 -2
- package/dist/index326.js +5 -2
- package/dist/index327.js +3 -2
- package/dist/index328.js +3 -719
- package/dist/index329.js +2 -366
- package/dist/index33.js +8 -8
- package/dist/index330.js +2 -57
- package/dist/index331.js +6 -2
- package/dist/index332.js +2 -3
- package/dist/index333.js +5 -6
- package/dist/index334.js +6 -34
- package/dist/index335.js +19 -6
- package/dist/index336.js +7 -127
- package/dist/index337.js +12 -395
- package/dist/index338.js +6 -46
- package/dist/index339.js +58 -8
- package/dist/index340.js +58 -6
- package/dist/index341.js +4 -8
- package/dist/index342.js +35 -58
- package/dist/index343.js +6 -58
- package/dist/index344.js +123 -222
- package/dist/index345.js +388 -83
- package/dist/index346.js +8 -5
- package/dist/index347.js +5 -6
- package/dist/index348.js +8 -19
- package/dist/index349.js +22 -9
- package/dist/index35.js +4 -4
- package/dist/index351.js +133 -6
- package/dist/index352.js +89 -130
- package/dist/index353.js +222 -514
- package/dist/index354.js +47 -22
- package/dist/index355.js +522 -0
- package/dist/index356.js +435 -44
- package/dist/index357.js +114 -427
- package/dist/index358.js +48 -126
- package/dist/index37.js +108 -99
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +74 -58
- package/dist/index67.js +1 -1
- package/dist/index78.js +28 -25
- package/dist/index80.js +4 -4
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +60 -60
- package/dist/index93.js +2 -2
- package/dist/index95.js +5 -5
- package/dist/index97.js +1 -1
- package/package.json +1 -1
- package/dist/index238.js +0 -7
- package/dist/index256.js +0 -14
- package/dist/index275.js +0 -36
- package/dist/index284.js +0 -4
- package/dist/index350.js +0 -17
package/dist/index358.js
CHANGED
|
@@ -1,130 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const A = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
32
|
-
function P(t) {
|
|
33
|
-
return A.has(g(t)) ? "y" : "x";
|
|
34
|
-
}
|
|
35
|
-
function y(t) {
|
|
36
|
-
return b(P(t));
|
|
37
|
-
}
|
|
38
|
-
function k(t, e, n) {
|
|
39
|
-
n === void 0 && (n = !1);
|
|
40
|
-
const r = a(t), i = y(t), o = d(i);
|
|
41
|
-
let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
42
|
-
return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
|
|
43
|
-
}
|
|
44
|
-
function q(t) {
|
|
45
|
-
const e = f(t);
|
|
46
|
-
return [s(t), e, s(e)];
|
|
47
|
-
}
|
|
48
|
-
function s(t) {
|
|
49
|
-
return t.replace(/start|end/g, (e) => x[e]);
|
|
50
|
-
}
|
|
51
|
-
const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
|
|
52
|
-
function S(t, e, n) {
|
|
53
|
-
switch (t) {
|
|
54
|
-
case "top":
|
|
55
|
-
case "bottom":
|
|
56
|
-
return n ? e ? l : u : e ? u : l;
|
|
57
|
-
case "left":
|
|
58
|
-
case "right":
|
|
59
|
-
return e ? M : O;
|
|
60
|
-
default:
|
|
61
|
-
return [];
|
|
1
|
+
function T(n, l, e) {
|
|
2
|
+
let i = e.initialDeps ?? [], t, c = !0;
|
|
3
|
+
function h() {
|
|
4
|
+
var d, m, f;
|
|
5
|
+
let g;
|
|
6
|
+
e.key && ((d = e.debug) != null && d.call(e)) && (g = Date.now());
|
|
7
|
+
const o = n();
|
|
8
|
+
if (!(o.length !== i.length || o.some((r, a) => i[a] !== r)))
|
|
9
|
+
return t;
|
|
10
|
+
i = o;
|
|
11
|
+
let s;
|
|
12
|
+
if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = l(...o), e.key && ((f = e.debug) != null && f.call(e))) {
|
|
13
|
+
const r = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (u, D) => {
|
|
14
|
+
for (u = String(u); u.length < D; )
|
|
15
|
+
u = " " + u;
|
|
16
|
+
return u;
|
|
17
|
+
};
|
|
18
|
+
console.info(
|
|
19
|
+
`%c⏱ ${w(a, 5)} /${w(r, 5)} ms`,
|
|
20
|
+
`
|
|
21
|
+
font-size: .6rem;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
color: hsl(${Math.max(
|
|
24
|
+
0,
|
|
25
|
+
Math.min(120 - 120 * b, 120)
|
|
26
|
+
)}deg 100% 31%);`,
|
|
27
|
+
e?.key
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
return e?.onChange && !(c && e.skipInitialOnChange) && e.onChange(t), c = !1, t;
|
|
62
31
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
bottom: 0,
|
|
77
|
-
left: 0,
|
|
78
|
-
...t
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function B(t) {
|
|
82
|
-
return typeof t != "number" ? w(t) : {
|
|
83
|
-
top: t,
|
|
84
|
-
right: t,
|
|
85
|
-
bottom: t,
|
|
86
|
-
left: t
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function D(t) {
|
|
90
|
-
const {
|
|
91
|
-
x: e,
|
|
92
|
-
y: n,
|
|
93
|
-
width: r,
|
|
94
|
-
height: i
|
|
95
|
-
} = t;
|
|
96
|
-
return {
|
|
97
|
-
width: r,
|
|
98
|
-
height: i,
|
|
99
|
-
top: n,
|
|
100
|
-
left: e,
|
|
101
|
-
right: e + r,
|
|
102
|
-
bottom: n + i,
|
|
103
|
-
x: e,
|
|
104
|
-
y: n
|
|
32
|
+
return h.updateDeps = (d) => {
|
|
33
|
+
i = d;
|
|
34
|
+
}, h;
|
|
35
|
+
}
|
|
36
|
+
function k(n, l) {
|
|
37
|
+
if (n === void 0)
|
|
38
|
+
throw new Error("Unexpected undefined");
|
|
39
|
+
return n;
|
|
40
|
+
}
|
|
41
|
+
const y = (n, l) => Math.abs(n - l) < 1.01, C = (n, l, e) => {
|
|
42
|
+
let i;
|
|
43
|
+
return function(...t) {
|
|
44
|
+
n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
|
|
105
45
|
};
|
|
106
|
-
}
|
|
46
|
+
};
|
|
107
47
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
T as
|
|
111
|
-
|
|
112
|
-
L as floor,
|
|
113
|
-
a as getAlignment,
|
|
114
|
-
y as getAlignmentAxis,
|
|
115
|
-
k as getAlignmentSides,
|
|
116
|
-
d as getAxisLength,
|
|
117
|
-
q as getExpandedPlacements,
|
|
118
|
-
s as getOppositeAlignmentPlacement,
|
|
119
|
-
b as getOppositeAxis,
|
|
120
|
-
z as getOppositeAxisPlacements,
|
|
121
|
-
f as getOppositePlacement,
|
|
122
|
-
B as getPaddingObject,
|
|
123
|
-
g as getSide,
|
|
124
|
-
P as getSideAxis,
|
|
125
|
-
p as max,
|
|
126
|
-
m as min,
|
|
127
|
-
D as rectToClientRect,
|
|
128
|
-
C as round,
|
|
129
|
-
j as sides
|
|
48
|
+
y as approxEqual,
|
|
49
|
+
C as debounce,
|
|
50
|
+
T as memo,
|
|
51
|
+
k as notUndefined
|
|
130
52
|
};
|
package/dist/index37.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as Qe, ref as f, computed as m, toRef as z, createBlock as K, openBlock as
|
|
1
|
+
import { defineComponent as Qe, ref as f, computed as m, toRef as z, createBlock as K, openBlock as h, normalizeClass as ee, withCtx as u, createElementVNode as L, createVNode as T, createElementBlock as I, unref as g, renderSlot as d, createCommentVNode as te, withDirectives as Xe, Fragment as ae, toDisplayString as Ye, withKeys as w, withModifiers as c, normalizeStyle as le, vModelDynamic as Ze, mergeProps as oe, renderList as et, nextTick as U } from "vue";
|
|
2
2
|
import tt from "./index112.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { hash as at } from "./
|
|
5
|
-
import { isEmpty as lt } from "./
|
|
6
|
-
import { last as ot } from "./
|
|
7
|
-
import { matchAnyKey as ne } from "./
|
|
8
|
-
import { useArray as nt } from "./
|
|
9
|
-
import { useBaseOptions as ut } from "./
|
|
10
|
-
import { useCoherence as st } from "./
|
|
11
|
-
import { useHashedWatcher as ue } from "./
|
|
4
|
+
import { hash as at } from "./index227.js";
|
|
5
|
+
import { isEmpty as lt } from "./index253.js";
|
|
6
|
+
import { last as ot } from "./index228.js";
|
|
7
|
+
import { matchAnyKey as ne } from "./index281.js";
|
|
8
|
+
import { useArray as nt } from "./index282.js";
|
|
9
|
+
import { useBaseOptions as ut } from "./index241.js";
|
|
10
|
+
import { useCoherence as st } from "./index242.js";
|
|
11
|
+
import { useHashedWatcher as ue } from "./index243.js";
|
|
12
12
|
import { useId as it } from "./index8.js";
|
|
13
|
-
import { useIndexById as se } from "./
|
|
13
|
+
import { useIndexById as se } from "./index240.js";
|
|
14
14
|
import { useMounted as rt, useElementSize as dt, useIntersectionObserver as ct } from "./index141.js";
|
|
15
|
-
import { useItemsGetter as pt } from "./
|
|
16
|
-
import { useLocale as mt } from "./
|
|
15
|
+
import { useItemsGetter as pt } from "./index239.js";
|
|
16
|
+
import { useLocale as mt } from "./index236.js";
|
|
17
17
|
import { useMobile as ft } from "./index9.js";
|
|
18
|
-
import { usePrefill as vt } from "./
|
|
19
|
-
import { wait as
|
|
20
|
-
import { when as ht } from "./
|
|
21
|
-
import yt from "./
|
|
18
|
+
import { usePrefill as vt } from "./index244.js";
|
|
19
|
+
import { wait as E } from "./index140.js";
|
|
20
|
+
import { when as ht } from "./index278.js";
|
|
21
|
+
import yt from "./index283.js";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import bt from "./
|
|
23
|
+
import bt from "./index285.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import gt from "./index136.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import wt from "./index138.js";
|
|
28
|
-
import Bt from "./
|
|
28
|
+
import Bt from "./index255.js";
|
|
29
29
|
/* empty css */
|
|
30
|
-
import Vt from "./
|
|
31
|
-
import { useUntil as St } from "./
|
|
30
|
+
import Vt from "./index287.js";
|
|
31
|
+
import { useUntil as St } from "./index260.js";
|
|
32
32
|
import { mapValues as kt } from "./index145.js";
|
|
33
33
|
const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
34
34
|
key: 1,
|
|
@@ -80,49 +80,49 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
80
80
|
const t = ie, o = re;
|
|
81
81
|
if (t.multiple && !Array.isArray(t.modelValue))
|
|
82
82
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
|
83
|
-
const { t: de } = mt(), ce = rt(),
|
|
83
|
+
const { t: de } = mt(), ce = rt(), F = f(null), D = f(null), s = f(null), _ = f(null), R = f(null), r = m(
|
|
84
84
|
() => t.comma ? _.value : R.value
|
|
85
|
-
), { width: pe } = dt(
|
|
85
|
+
), { width: pe } = dt(D), { isMobile: me } = ft(), fe = m(
|
|
86
86
|
() => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
|
|
87
87
|
), j = t.id || it().id.value, { resume: ve, pause: he } = ct(
|
|
88
|
-
|
|
88
|
+
D,
|
|
89
89
|
async ([{ intersectionRatio: e }]) => {
|
|
90
|
-
e !== 1 && n.value && await
|
|
90
|
+
e !== 1 && n.value && await k();
|
|
91
91
|
},
|
|
92
92
|
{ threshold: [0, 1], immediate: !1 }
|
|
93
93
|
), ye = m(() => ({
|
|
94
94
|
width: `${pe.value ?? 0}px`
|
|
95
|
-
})),
|
|
96
|
-
|
|
95
|
+
})), A = f(null), v = () => {
|
|
96
|
+
A.value instanceof HTMLInputElement && A.value.focus();
|
|
97
97
|
}, be = async (e) => {
|
|
98
|
-
o("focus", e), Ke(), document.addEventListener("click",
|
|
98
|
+
o("focus", e), Ke(), document.addEventListener("click", O), document.addEventListener("focusin", O);
|
|
99
99
|
}, ge = () => {
|
|
100
100
|
t.prefill === "focus" && !Te.value && !J.value && Ee();
|
|
101
101
|
}, we = async (e) => {
|
|
102
102
|
o("blur", e);
|
|
103
103
|
}, Be = (e) => o("change", e), Ve = (e) => {
|
|
104
|
-
o("input", e), a.value === "" && (t.multiple || o("update:modelValue", null)), r.value?.blur(), N.value &&
|
|
105
|
-
},
|
|
106
|
-
if (e.target instanceof Node &&
|
|
107
|
-
|
|
104
|
+
o("input", e), a.value === "" && (t.multiple || o("update:modelValue", null)), r.value?.blur(), N.value && S(), He(a.value, !1, t.modelValue);
|
|
105
|
+
}, O = async (e) => {
|
|
106
|
+
if (e.target instanceof Node && F.value && !F.value.$el.contains(e.target) && !s.value?.$el?.contains(e.target)) {
|
|
107
|
+
k(), Ue(), document.removeEventListener("click", O), document.removeEventListener("focusin", O), await E(t.transitionDuration), y();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
},
|
|
111
|
-
|
|
110
|
+
}, B = m(() => !(t.readonly || t.disabled || H.value || !r.value && t.multiple && i.value.length <= t.maxSelectedLabels)), Se = async () => {
|
|
111
|
+
B.value && (r.value?.blur(), n.value ? s.value?.focusPrevious() : (await S(), await E(t.transitionDuration), s.value?.focusLastSelected()));
|
|
112
112
|
}, ke = async () => {
|
|
113
|
-
|
|
113
|
+
B.value && (r.value?.blur(), n.value ? s.value?.focusNext() : (await S(), await E(t.transitionDuration), s.value?.focusFirstSelected()));
|
|
114
114
|
}, Ce = (e) => {
|
|
115
|
-
if (!
|
|
115
|
+
if (!B.value || !t.multiple || a.value || (e.preventDefault(), s.value?.blur(), !i.value.length)) return;
|
|
116
116
|
r.value?.focusPrevious();
|
|
117
117
|
const l = r.value?.getHighlighted();
|
|
118
118
|
l && s.value?.focusByHash(l.valueHash);
|
|
119
119
|
}, Ie = (e) => {
|
|
120
|
-
if (!
|
|
120
|
+
if (!B.value || !t.multiple || a.value || (e.preventDefault(), s.value?.blur(), !i.value.length)) return;
|
|
121
121
|
r.value?.focusNext();
|
|
122
122
|
const l = r.value?.getHighlighted();
|
|
123
123
|
l && s.value?.focusByHash(l.valueHash);
|
|
124
124
|
}, De = async () => {
|
|
125
|
-
if (!
|
|
125
|
+
if (!B.value)
|
|
126
126
|
return;
|
|
127
127
|
if (n.value) {
|
|
128
128
|
if (s.value?.getHighlighted()) {
|
|
@@ -130,15 +130,15 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
} else {
|
|
133
|
-
await
|
|
133
|
+
await S(), await E(t.transitionDuration), i.value.length && s.value?.focusFirstSelected();
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
const e = a.value.trim();
|
|
137
137
|
xe(e) || (o("option:add", e), a.value = "");
|
|
138
138
|
}, Oe = async () => {
|
|
139
|
-
n.value && await
|
|
139
|
+
n.value && await k();
|
|
140
140
|
}, $e = async () => {
|
|
141
|
-
!
|
|
141
|
+
!B.value || a.value || !i.value.length || (r.value?.getHighlighted() && r.value.confirmOption(), await U(), r.value?.focusPrevious());
|
|
142
142
|
}, a = f(""), {
|
|
143
143
|
getter: q,
|
|
144
144
|
debouncedGetter: He,
|
|
@@ -158,7 +158,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
158
158
|
currentValue: t.modelValue,
|
|
159
159
|
multiple: t.multiple,
|
|
160
160
|
fn: async ({ prefill: e }) => {
|
|
161
|
-
await q(a.value, e, t.modelValue), t.stash && X(
|
|
161
|
+
await q(a.value, e, t.modelValue), t.stash && X(...$.value.map((l) => l.item)), x(), y();
|
|
162
162
|
}
|
|
163
163
|
}), {
|
|
164
164
|
array: Q,
|
|
@@ -171,7 +171,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
171
171
|
}), qe = m(() => i.value.length ? "" : t.placeholder), { data: M, get: xe } = se({
|
|
172
172
|
// Force model value to be an array
|
|
173
173
|
items: m(() => [].concat(t.modelValue))
|
|
174
|
-
}), { options:
|
|
174
|
+
}), { options: $ } = ut({
|
|
175
175
|
disabled: z(t, "disabled"),
|
|
176
176
|
items: m(() => [...Le.value, ...Q.value]),
|
|
177
177
|
itemText: t.itemText,
|
|
@@ -179,16 +179,16 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
179
179
|
max: t.max,
|
|
180
180
|
selectable: !0,
|
|
181
181
|
selectedIndexedByHash: M
|
|
182
|
-
}),
|
|
182
|
+
}), H = m(() => !!(G.value || t.loading)), Me = m(() => {
|
|
183
183
|
let e = [];
|
|
184
184
|
const l = i.value.some(
|
|
185
|
-
(
|
|
185
|
+
(b) => b.text === a.value
|
|
186
186
|
);
|
|
187
|
-
return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e =
|
|
188
|
-
let
|
|
189
|
-
return typeof t.filterBy == "function" ?
|
|
190
|
-
}) : e =
|
|
191
|
-
}),
|
|
187
|
+
return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = $.value.filter((b) => {
|
|
188
|
+
let C = !1;
|
|
189
|
+
return typeof t.filterBy == "function" ? C = t.filterBy(b.value, b.item, a.value) : t.filterBy === "not_stashed" && a.value ? C = !new Set(Q.value.map((Je) => Je.valueHash)).has(b.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (C = C || ne(b.item, t.filterBy, a.value.trim())), C || ne(b, ["text"], a.value.trim());
|
|
190
|
+
}) : e = $.value, e;
|
|
191
|
+
}), y = () => {
|
|
192
192
|
if (t.multiple) {
|
|
193
193
|
a.value = "";
|
|
194
194
|
return;
|
|
@@ -196,27 +196,27 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
196
196
|
let e;
|
|
197
197
|
i.value && (e = ot(i.value)), a.value = e?.text || "";
|
|
198
198
|
}, Pe = async (e) => {
|
|
199
|
-
t.multiple ? (o("update:modelValue", t.modelValue.concat(e.value)), t.stash && X(e.item),
|
|
199
|
+
t.multiple ? (o("update:modelValue", t.modelValue.concat(e.value)), t.stash && X(e.item), y()) : (t.stash && Ae(e.item), o("update:modelValue", e.value), await U(), y()), v(), t.multiple || k();
|
|
200
200
|
}, P = async (e) => {
|
|
201
201
|
if (Fe((l) => l.valueHash !== e.valueHash), t.multiple) {
|
|
202
202
|
const l = { ...M.value };
|
|
203
203
|
delete l[e.valueHash], o("update:modelValue", Object.values(l));
|
|
204
204
|
} else
|
|
205
|
-
o("update:modelValue", null), await U(),
|
|
206
|
-
|
|
205
|
+
o("update:modelValue", null), await U(), y();
|
|
206
|
+
v();
|
|
207
207
|
}, { data: Y } = se({
|
|
208
|
-
items:
|
|
208
|
+
items: $,
|
|
209
209
|
key: "valueHash"
|
|
210
210
|
}), { coherent: Z, status: Ne } = st({
|
|
211
211
|
modelValue: z(t, "modelValue"),
|
|
212
212
|
multiple: t.multiple,
|
|
213
213
|
iteratee: (e) => !!Y.value[at(e)]
|
|
214
214
|
});
|
|
215
|
-
let
|
|
215
|
+
let V = 0;
|
|
216
216
|
ue(
|
|
217
217
|
() => t.modelValue,
|
|
218
218
|
async () => {
|
|
219
|
-
|
|
219
|
+
V++, Z.value || (await q(a.value, !0, t.modelValue), x()), V === 1 && y(), V--;
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
debounce: t.modelValueDebounceTime
|
|
@@ -224,22 +224,22 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
224
224
|
), ue(
|
|
225
225
|
() => [t.dependencies, t.items],
|
|
226
226
|
async () => {
|
|
227
|
-
J.value && (
|
|
227
|
+
J.value && (V++, await q(a.value, !0, t.modelValue), V === 1 && (x(), y()), V--);
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
debounce: t.depsDebounceTime
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
|
-
const n = f(!1), N = f(!0), We = St(n),
|
|
233
|
+
const n = f(!1), N = f(!0), We = St(n), S = async () => {
|
|
234
234
|
ve(), N.value = !1, n.value = !0;
|
|
235
|
-
},
|
|
235
|
+
}, k = async () => {
|
|
236
236
|
n.value = !1, N.value = !0, r.value?.blur(), he();
|
|
237
|
-
}, ze = () => n.value ?
|
|
237
|
+
}, ze = () => n.value ? k() : S(), W = f(!1), Ke = () => {
|
|
238
238
|
W.value = !0;
|
|
239
239
|
}, Ue = () => {
|
|
240
240
|
W.value = !1, o("inactive");
|
|
241
241
|
}, _e = (e) => {
|
|
242
|
-
e.preventDefault(), o("click", e), !(t.disabled || t.readonly) && (
|
|
242
|
+
e.preventDefault(), o("click", e), !(t.disabled || t.readonly) && (v(), ze());
|
|
243
243
|
}, Re = ht(
|
|
244
244
|
(e) => typeof e != "string",
|
|
245
245
|
JSON.stringify
|
|
@@ -255,14 +255,14 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
255
255
|
let e = null;
|
|
256
256
|
t.multiple && (e = []), o("update:modelValue", e);
|
|
257
257
|
};
|
|
258
|
-
return (e, l) => (
|
|
258
|
+
return (e, l) => (h(), K(wt, {
|
|
259
259
|
ref_key: "outerContainer",
|
|
260
|
-
ref:
|
|
260
|
+
ref: F,
|
|
261
261
|
class: ee({
|
|
262
262
|
"bb-base-select": !0,
|
|
263
263
|
"bb-base-select--active": W.value,
|
|
264
264
|
"bb-base-select--shown": n.value,
|
|
265
|
-
"bb-base-select--loading":
|
|
265
|
+
"bb-base-select--loading": H.value,
|
|
266
266
|
"bb-base-select--disabled": e.disabled,
|
|
267
267
|
"bb-base-select--errors": e.hasErrors,
|
|
268
268
|
"bb-base-select--readonly": e.readonly,
|
|
@@ -277,57 +277,63 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
277
277
|
d(e.$slots, "append-outer", { query: a.value })
|
|
278
278
|
]),
|
|
279
279
|
default: u(() => [
|
|
280
|
-
|
|
280
|
+
L("span", {
|
|
281
281
|
ref_key: "innerContainer",
|
|
282
|
-
ref:
|
|
282
|
+
ref: D,
|
|
283
283
|
class: "bb-base-select__inner-wrapper"
|
|
284
284
|
}, [
|
|
285
|
-
|
|
285
|
+
T(gt, {
|
|
286
286
|
"append:icon": t["append:icon"],
|
|
287
|
-
clearable: e.clearable && !
|
|
287
|
+
clearable: e.clearable && !g(lt)(e.modelValue),
|
|
288
288
|
"prepend:icon": t["prepend:icon"],
|
|
289
289
|
"prevent-focus": !0,
|
|
290
290
|
"onClick:clear": Ge
|
|
291
291
|
}, {
|
|
292
292
|
prepend: u(() => [
|
|
293
|
-
d(e.$slots, "prepend", {
|
|
293
|
+
d(e.$slots, "prepend", {
|
|
294
|
+
query: a.value,
|
|
295
|
+
focus: v
|
|
296
|
+
})
|
|
294
297
|
]),
|
|
295
298
|
prefix: u(() => [
|
|
296
299
|
d(e.$slots, "prefix")
|
|
297
300
|
]),
|
|
298
301
|
append: u(() => [
|
|
299
|
-
d(e.$slots, "append", {
|
|
302
|
+
d(e.$slots, "append", {
|
|
303
|
+
query: a.value,
|
|
304
|
+
focus: v
|
|
305
|
+
})
|
|
300
306
|
]),
|
|
301
307
|
suffix: u(() => [
|
|
302
308
|
d(e.$slots, "suffix")
|
|
303
309
|
]),
|
|
304
310
|
default: u(() => [
|
|
305
|
-
|
|
311
|
+
T(tt, { tag: "span" }, {
|
|
306
312
|
default: u(() => [
|
|
307
|
-
|
|
308
|
-
e.multiple && i.value.length <= e.maxSelectedLabels ? (
|
|
309
|
-
e.comma ? (
|
|
313
|
+
L("span", Ct, [
|
|
314
|
+
e.multiple && i.value.length <= e.maxSelectedLabels ? (h(), I(ae, { key: 0 }, [
|
|
315
|
+
e.comma ? (h(), K(bt, {
|
|
310
316
|
key: 0,
|
|
311
317
|
ref_key: "commaBox",
|
|
312
318
|
ref: _,
|
|
313
319
|
options: i.value,
|
|
314
320
|
"onOption:unselected": P
|
|
315
|
-
}, null, 8, ["options"])) : (
|
|
321
|
+
}, null, 8, ["options"])) : (h(), K(yt, {
|
|
316
322
|
key: 1,
|
|
317
323
|
ref_key: "chipsBox",
|
|
318
324
|
ref: R,
|
|
319
325
|
options: i.value,
|
|
320
326
|
"onOption:unselected": P
|
|
321
327
|
}, null, 8, ["options"]))
|
|
322
|
-
], 64)) : e.multiple ? (
|
|
323
|
-
Xe((
|
|
324
|
-
id:
|
|
325
|
-
key: `${
|
|
328
|
+
], 64)) : e.multiple ? (h(), I("span", It, Ye(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : g(de)("select.multipleMaxReached", i.value.length)), 1)) : te("", !0),
|
|
329
|
+
Xe((h(), I("input", {
|
|
330
|
+
id: g(j),
|
|
331
|
+
key: `${g(ce)}`,
|
|
326
332
|
ref_key: "input",
|
|
327
|
-
ref:
|
|
333
|
+
ref: A,
|
|
328
334
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p),
|
|
329
335
|
"aria-autocomplete": "list",
|
|
330
|
-
"aria-controls":
|
|
336
|
+
"aria-controls": g(We) ? `${g(j)}_listbox` : void 0,
|
|
331
337
|
"aria-describedby": e.ariaDescribedby,
|
|
332
338
|
"aria-expanded": n.value,
|
|
333
339
|
autocomplete: e.autocomplete,
|
|
@@ -348,13 +354,13 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
348
354
|
onFocus: c(be, ["stop"]),
|
|
349
355
|
onInput: c(Ve, ["stop"]),
|
|
350
356
|
onKeydown: [
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
357
|
+
w(c($e, ["stop"]), ["delete"]),
|
|
358
|
+
w(c(Ce, ["stop"]), ["left"]),
|
|
359
|
+
w(c(ke, ["stop", "prevent"]), ["down"]),
|
|
360
|
+
w(c(De, ["stop", "prevent"]), ["enter"]),
|
|
361
|
+
w(c(Oe, ["stop", "prevent"]), ["esc"]),
|
|
362
|
+
w(c(Se, ["stop", "prevent"]), ["up"]),
|
|
363
|
+
w(c(Ie, ["stop"]), ["right"])
|
|
358
364
|
]
|
|
359
365
|
}, null, 44, Dt)), [
|
|
360
366
|
[Ze, a.value]
|
|
@@ -365,15 +371,15 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
365
371
|
}),
|
|
366
372
|
e.showChevron ? d(e.$slots, "chevron", {
|
|
367
373
|
key: 0,
|
|
368
|
-
loading: !!
|
|
374
|
+
loading: !!g(G),
|
|
369
375
|
shown: n.value
|
|
370
376
|
}, () => [
|
|
371
|
-
l[2] || (l[2] =
|
|
377
|
+
l[2] || (l[2] = L("svg", {
|
|
372
378
|
class: "bb-base-select__chevron",
|
|
373
379
|
viewBox: "0 0 24 24",
|
|
374
380
|
xmlns: "http://www.w3.org/2000/svg"
|
|
375
381
|
}, [
|
|
376
|
-
|
|
382
|
+
L("path", {
|
|
377
383
|
d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
|
|
378
384
|
fill: "currentColor"
|
|
379
385
|
})
|
|
@@ -383,19 +389,19 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
383
389
|
_: 3
|
|
384
390
|
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
|
385
391
|
], 512),
|
|
386
|
-
|
|
392
|
+
T(Bt, {
|
|
387
393
|
modelValue: n.value,
|
|
388
394
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => n.value = p),
|
|
389
|
-
anchor:
|
|
395
|
+
anchor: D.value,
|
|
390
396
|
offset: 4,
|
|
391
397
|
"transition-duration": e.transitionDuration
|
|
392
398
|
}, {
|
|
393
399
|
default: u(() => [
|
|
394
|
-
|
|
400
|
+
T(Vt, {
|
|
395
401
|
ref_key: "optionsContainer",
|
|
396
402
|
ref: s,
|
|
397
403
|
compact: e.compact,
|
|
398
|
-
loading:
|
|
404
|
+
loading: H.value,
|
|
399
405
|
"loading-text": e.loadingText,
|
|
400
406
|
multiple: e.multiple,
|
|
401
407
|
"no-data-text": e.noDataText,
|
|
@@ -406,21 +412,24 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
406
412
|
"onOption:unselected": P
|
|
407
413
|
}, {
|
|
408
414
|
"options:prepend": u(() => [
|
|
409
|
-
d(e.$slots, "options:prepend")
|
|
415
|
+
d(e.$slots, "options:prepend", { focus: v })
|
|
410
416
|
]),
|
|
411
417
|
loading: u(() => [
|
|
412
418
|
d(e.$slots, "loading", { query: a.value })
|
|
413
419
|
]),
|
|
414
420
|
"no-data": u(() => [
|
|
415
|
-
d(e.$slots, "no-data", {
|
|
421
|
+
d(e.$slots, "no-data", {
|
|
422
|
+
query: a.value,
|
|
423
|
+
focus: v
|
|
424
|
+
})
|
|
416
425
|
]),
|
|
417
426
|
"options:append": u(() => [
|
|
418
|
-
d(e.$slots, "options:append")
|
|
427
|
+
d(e.$slots, "options:append", { focus: v })
|
|
419
428
|
]),
|
|
420
429
|
option: u((p) => [
|
|
421
430
|
d(e.$slots, "option", oe({
|
|
422
431
|
hasErrors: e.hasErrors,
|
|
423
|
-
loading:
|
|
432
|
+
loading: H.value
|
|
424
433
|
}, p))
|
|
425
434
|
]),
|
|
426
435
|
_: 3
|
|
@@ -428,7 +437,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
428
437
|
]),
|
|
429
438
|
_: 3
|
|
430
439
|
}, 8, ["modelValue", "anchor", "transition-duration"]),
|
|
431
|
-
(
|
|
440
|
+
(h(!0), I(ae, null, et(je.value, (p) => (h(), I("input", oe({
|
|
432
441
|
key: p.value,
|
|
433
442
|
ref_for: !0
|
|
434
443
|
}, p), null, 16))), 128))
|
package/dist/index39.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as d, computed as f, onMounted as se, watch as ue, createElementBlock as y, openBlock as g, normalizeProps as G, guardReactiveProps as O, renderSlot as p, createElementVNode as c, mergeProps as N, createCommentVNode as Y, Fragment as de, renderList as me, unref as b, normalizeStyle as j, normalizeClass as J } from "vue";
|
|
2
2
|
import { head as ce } from "./index290.js";
|
|
3
|
-
import { isCssColor as K } from "./
|
|
4
|
-
import { isNil as x } from "./
|
|
3
|
+
import { isCssColor as K } from "./index262.js";
|
|
4
|
+
import { isNil as x } from "./index267.js";
|
|
5
5
|
import { getAsPercentageBetween as S, getAsPercentage as be, getValueFromPercentageInInterval as T } from "./index139.js";
|
|
6
6
|
import { snapToStep as ve } from "./index291.js";
|
|
7
|
-
import { last as fe } from "./
|
|
7
|
+
import { last as fe } from "./index228.js";
|
|
8
8
|
import { transpose as Q } from "./index292.js";
|
|
9
|
-
import { clamp as m } from "./
|
|
9
|
+
import { clamp as m } from "./index214.js";
|
|
10
10
|
const pe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bb-base-slider__ticks-container"
|
package/dist/index41.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, ref as b, computed as s, watch as S, createElementBlock as y, openBlock as V, normalizeProps as l, guardReactiveProps as m, createCommentVNode as A, createElementVNode as r, mergeProps as v, renderSlot as N } from "vue";
|
|
2
|
-
import { isCssColor as p } from "./
|
|
3
|
-
import { when as x } from "./
|
|
2
|
+
import { isCssColor as p } from "./index262.js";
|
|
3
|
+
import { when as x } from "./index278.js";
|
|
4
4
|
const M = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ F({
|
|
5
5
|
__name: "BaseSwitch",
|
|
6
6
|
props: {
|