bitboss-ui 2.1.87 → 2.1.89
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/BaseSelect/BaseSelect.vue.d.ts +8 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +6 -0
- package/dist/components/ListBox.vue.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index107.js +8 -8
- package/dist/index108.js +5 -3
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +78 -76
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +4 -4
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index139.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -2
- package/dist/index217.js +5 -2
- package/dist/index218.js +8 -2
- package/dist/index219.js +2 -3
- package/dist/index220.js +2 -5
- package/dist/index221.js +3 -8
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index23.js +7 -7
- package/dist/index230.js +6 -6
- package/dist/index231.js +1 -1
- package/dist/index234.js +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +85 -12
- package/dist/index238.js +29 -3
- package/dist/index239.js +17 -4
- package/dist/index240.js +50 -9
- package/dist/index241.js +14 -2
- package/dist/index242.js +12 -4
- package/dist/index243.js +16 -86
- package/dist/index244.js +4 -0
- package/dist/index245.js +2 -29
- package/dist/index246.js +6 -16
- package/dist/index247.js +7 -51
- package/dist/index248.js +32 -14
- package/dist/index249.js +28 -12
- package/dist/index25.js +2 -2
- package/dist/index251.js +4 -9
- package/dist/index252.js +18 -133
- package/dist/index253.js +203 -0
- package/dist/index255.js +131 -19
- package/dist/index257.js +4 -3
- package/dist/index258.js +13 -9
- package/dist/index259.js +4 -106
- package/dist/index260.js +25 -0
- package/dist/index261.js +3 -100
- package/dist/index262.js +5 -0
- package/dist/index263.js +11 -3
- package/dist/index264.js +9 -2
- package/dist/index265.js +13 -5
- package/dist/index266.js +6 -5
- package/dist/index267.js +16 -5
- package/dist/index268.js +5 -20
- package/dist/index269.js +5 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +5 -2
- package/dist/index271.js +2 -7
- package/dist/index272.js +3 -7
- package/dist/index273.js +10 -67
- package/dist/index274.js +2 -32
- package/dist/index275.js +188 -28
- package/dist/index276.js +5 -0
- package/dist/index277.js +67 -7
- package/dist/index278.js +17 -8
- package/dist/index279.js +12 -9
- package/dist/index280.js +104 -51
- package/dist/index282.js +100 -5
- package/dist/index284.js +229 -12
- package/dist/index285.js +7 -225
- package/dist/index286.js +53 -6
- package/dist/index287.js +5 -16
- package/dist/index288.js +34 -8
- package/dist/index289.js +9 -4
- package/dist/index29.js +3 -3
- package/dist/index290.js +7 -201
- package/dist/index291.js +11 -0
- package/dist/index292.js +23 -34
- package/dist/index293.js +8 -3
- package/dist/index295.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -2
- package/dist/index311.js +3 -4
- package/dist/index312.js +3 -5
- package/dist/index313.js +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.js +5 -3
- package/dist/index316.js +4 -3
- package/dist/index317.js +5 -3
- package/dist/index318.js +719 -125
- package/dist/index319.js +366 -2
- package/dist/index320.js +56 -14
- package/dist/index321.js +125 -2
- package/dist/index322.js +2 -19
- package/dist/index323.js +15 -2
- package/dist/index324.js +2 -2
- package/dist/index325.js +18 -5
- package/dist/index326.js +2 -719
- package/dist/index327.js +2 -366
- package/dist/index328.js +3 -57
- package/dist/index329.js +3 -2
- package/dist/index33.js +7 -7
- package/dist/index330.js +2 -4
- package/dist/index331.js +1 -1
- package/dist/index332.js +4 -3
- package/dist/index333.js +6 -5
- package/dist/index334.js +6 -34
- package/dist/index335.js +7 -6
- package/dist/index336.js +17 -127
- package/dist/index337.js +7 -396
- package/dist/index338.js +14 -6
- package/dist/index339.js +5 -7
- package/dist/index340.js +57 -18
- package/dist/index341.js +58 -9
- package/dist/index342.js +90 -12
- package/dist/index343.js +8 -5
- package/dist/index344.js +6 -58
- package/dist/index345.js +7 -57
- package/dist/index346.js +1 -1
- package/dist/index347.js +31 -130
- package/dist/index348.js +5 -21
- package/dist/index349.js +131 -0
- package/dist/index35.js +3 -3
- package/dist/index350.js +395 -44
- package/dist/index351.js +46 -7
- package/dist/index352.js +22 -6
- package/dist/index354.js +130 -89
- package/dist/index37.js +56 -54
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- package/dist/index45.js +5 -5
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +4 -4
- package/dist/index80.js +6 -6
- package/dist/index84.js +2 -2
- package/dist/index86.js +2 -2
- package/dist/index88.js +1 -1
- package/dist/index91.js +2 -2
- package/dist/index93.js +1 -1
- package/dist/index95.js +4 -4
- package/dist/index97.js +1 -1
- package/package.json +1 -1
- package/dist/index237.js +0 -15
- package/dist/index250.js +0 -18
- package/dist/index254.js +0 -25
- package/dist/index256.js +0 -190
- package/dist/index281.js +0 -13
- package/dist/index283.js +0 -20
- package/dist/index353.js +0 -10
package/dist/index354.js
CHANGED
|
@@ -1,95 +1,136 @@
|
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return J(u);
|
|
49
|
-
if (d)
|
|
50
|
-
return i = setTimeout(b, r), v(u);
|
|
51
|
-
}
|
|
52
|
-
return i === void 0 && (i = setTimeout(b, r)), c;
|
|
1
|
+
function c() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function u(t) {
|
|
5
|
+
return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
var e;
|
|
9
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function N(t) {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function p(t) {
|
|
16
|
+
return c() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function m(t) {
|
|
19
|
+
return c() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function w(t) {
|
|
22
|
+
return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function f(t) {
|
|
25
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
const E = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
28
|
+
function y(t) {
|
|
29
|
+
const {
|
|
30
|
+
overflow: e,
|
|
31
|
+
overflowX: n,
|
|
32
|
+
overflowY: o,
|
|
33
|
+
display: r
|
|
34
|
+
} = S(t);
|
|
35
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
|
|
36
|
+
}
|
|
37
|
+
const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
38
|
+
function A(t) {
|
|
39
|
+
return T.has(u(t));
|
|
40
|
+
}
|
|
41
|
+
const v = [":popover-open", ":modal"];
|
|
42
|
+
function L(t) {
|
|
43
|
+
return v.some((e) => {
|
|
44
|
+
try {
|
|
45
|
+
return t.matches(e);
|
|
46
|
+
} catch {
|
|
47
|
+
return !1;
|
|
53
48
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
function m(e) {
|
|
67
|
-
var r = typeof e;
|
|
68
|
-
return !!e && (r == "object" || r == "function");
|
|
69
|
-
}
|
|
70
|
-
function X(e) {
|
|
71
|
-
return !!e && typeof e == "object";
|
|
72
|
-
}
|
|
73
|
-
function z(e) {
|
|
74
|
-
return typeof e == "symbol" || X(e) && G.call(e) == W;
|
|
75
|
-
}
|
|
76
|
-
function O(e) {
|
|
77
|
-
if (typeof e == "number")
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
|
|
52
|
+
function V(t) {
|
|
53
|
+
const e = O(), n = m(t) ? S(t) : t;
|
|
54
|
+
return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
|
|
55
|
+
}
|
|
56
|
+
function B(t) {
|
|
57
|
+
let e = s(t);
|
|
58
|
+
for (; w(e) && !h(e); ) {
|
|
59
|
+
if (V(e))
|
|
78
60
|
return e;
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
61
|
+
if (L(e))
|
|
62
|
+
return null;
|
|
63
|
+
e = s(e);
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function O() {
|
|
68
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
69
|
+
}
|
|
70
|
+
const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
71
|
+
function h(t) {
|
|
72
|
+
return R.has(u(t));
|
|
73
|
+
}
|
|
74
|
+
function S(t) {
|
|
75
|
+
return i(t).getComputedStyle(t);
|
|
76
|
+
}
|
|
77
|
+
function F(t) {
|
|
78
|
+
return m(t) ? {
|
|
79
|
+
scrollLeft: t.scrollLeft,
|
|
80
|
+
scrollTop: t.scrollTop
|
|
81
|
+
} : {
|
|
82
|
+
scrollLeft: t.scrollX,
|
|
83
|
+
scrollTop: t.scrollY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function s(t) {
|
|
87
|
+
if (u(t) === "html")
|
|
88
|
+
return t;
|
|
89
|
+
const e = (
|
|
90
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
+
t.assignedSlot || // DOM Element detected.
|
|
92
|
+
t.parentNode || // ShadowRoot detected.
|
|
93
|
+
f(t) && t.host || // Fallback.
|
|
94
|
+
N(t)
|
|
95
|
+
);
|
|
96
|
+
return f(e) ? e.host : e;
|
|
97
|
+
}
|
|
98
|
+
function b(t) {
|
|
99
|
+
const e = s(t);
|
|
100
|
+
return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
|
|
101
|
+
}
|
|
102
|
+
function d(t, e, n) {
|
|
103
|
+
var o;
|
|
104
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
105
|
+
const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
106
|
+
if (g) {
|
|
107
|
+
const a = _(l);
|
|
108
|
+
return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
|
|
90
109
|
}
|
|
91
|
-
return
|
|
110
|
+
return e.concat(r, d(r, [], n));
|
|
111
|
+
}
|
|
112
|
+
function _(t) {
|
|
113
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
92
114
|
}
|
|
93
115
|
export {
|
|
94
|
-
|
|
116
|
+
S as getComputedStyle,
|
|
117
|
+
B as getContainingBlock,
|
|
118
|
+
N as getDocumentElement,
|
|
119
|
+
_ as getFrameElement,
|
|
120
|
+
b as getNearestOverflowAncestor,
|
|
121
|
+
u as getNodeName,
|
|
122
|
+
F as getNodeScroll,
|
|
123
|
+
d as getOverflowAncestors,
|
|
124
|
+
s as getParentNode,
|
|
125
|
+
i as getWindow,
|
|
126
|
+
V as isContainingBlock,
|
|
127
|
+
m as isElement,
|
|
128
|
+
w as isHTMLElement,
|
|
129
|
+
h as isLastTraversableNode,
|
|
130
|
+
p as isNode,
|
|
131
|
+
y as isOverflowElement,
|
|
132
|
+
f as isShadowRoot,
|
|
133
|
+
A as isTableElement,
|
|
134
|
+
L as isTopLayer,
|
|
135
|
+
O as isWebKit
|
|
95
136
|
};
|
package/dist/index37.js
CHANGED
|
@@ -2,38 +2,38 @@ import { defineComponent as Qe, ref as f, computed as m, toRef as z, createBlock
|
|
|
2
2
|
import tt from "./index112.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { hash as at } from "./index226.js";
|
|
5
|
-
import { isEmpty as lt } from "./
|
|
5
|
+
import { isEmpty as lt } from "./index272.js";
|
|
6
6
|
import { last as ot } from "./index227.js";
|
|
7
|
-
import { matchAnyKey as ne } from "./
|
|
8
|
-
import { useArray as nt } from "./
|
|
9
|
-
import { useBaseOptions as ut } from "./
|
|
10
|
-
import { useCoherence as
|
|
11
|
-
import { useHashedWatcher as ue } from "./
|
|
12
|
-
import { useId as
|
|
13
|
-
import { useIndexById as
|
|
7
|
+
import { matchAnyKey as ne } from "./index278.js";
|
|
8
|
+
import { useArray as nt } from "./index279.js";
|
|
9
|
+
import { useBaseOptions as ut } from "./index240.js";
|
|
10
|
+
import { useCoherence as it } from "./index241.js";
|
|
11
|
+
import { useHashedWatcher as ue } from "./index242.js";
|
|
12
|
+
import { useId as st } from "./index8.js";
|
|
13
|
+
import { useIndexById as ie } from "./index239.js";
|
|
14
14
|
import { useMounted as rt, useElementSize as dt, useIntersectionObserver as ct } from "./index141.js";
|
|
15
|
-
import { useItemsGetter as pt } from "./
|
|
15
|
+
import { useItemsGetter as pt } from "./index238.js";
|
|
16
16
|
import { useLocale as mt } from "./index235.js";
|
|
17
17
|
import { useMobile as ft } from "./index9.js";
|
|
18
|
-
import { usePrefill as vt } from "./
|
|
18
|
+
import { usePrefill as vt } from "./index243.js";
|
|
19
19
|
import { wait as E } from "./index140.js";
|
|
20
|
-
import { when as ht } from "./
|
|
21
|
-
import yt from "./
|
|
20
|
+
import { when as ht } from "./index257.js";
|
|
21
|
+
import yt from "./index280.js";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import bt from "./
|
|
23
|
+
import bt from "./index282.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 "./index284.js";
|
|
31
|
+
import { useUntil as St } from "./index258.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,
|
|
35
35
|
class: "bb-base-select__max-reached"
|
|
36
|
-
}, Dt = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"],
|
|
36
|
+
}, Dt = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ia = /* @__PURE__ */ Qe({
|
|
37
37
|
__name: "BaseSelect",
|
|
38
38
|
props: {
|
|
39
39
|
allowWriting: { type: [Boolean, String], default: !0 },
|
|
@@ -52,6 +52,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
52
52
|
hasErrors: { type: Boolean },
|
|
53
53
|
id: {},
|
|
54
54
|
items: {},
|
|
55
|
+
itemHeight: {},
|
|
55
56
|
itemText: {},
|
|
56
57
|
itemValue: {},
|
|
57
58
|
loading: { type: Boolean },
|
|
@@ -76,15 +77,15 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
76
77
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
|
77
78
|
},
|
|
78
79
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
|
|
79
|
-
setup(
|
|
80
|
-
const t =
|
|
80
|
+
setup(se, { emit: re }) {
|
|
81
|
+
const t = se, o = re;
|
|
81
82
|
if (t.multiple && !Array.isArray(t.modelValue))
|
|
82
83
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
|
83
|
-
const { t: de } = mt(), ce = rt(), F = f(null), D = f(null),
|
|
84
|
-
() => t.comma ?
|
|
84
|
+
const { t: de } = mt(), ce = rt(), F = f(null), D = f(null), i = f(null), R = f(null), _ = f(null), r = m(
|
|
85
|
+
() => t.comma ? R.value : _.value
|
|
85
86
|
), { width: pe } = dt(D), { isMobile: me } = ft(), fe = m(
|
|
86
87
|
() => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
|
|
87
|
-
), j = t.id ||
|
|
88
|
+
), j = t.id || st().id.value, { resume: ve, pause: he } = ct(
|
|
88
89
|
D,
|
|
89
90
|
async ([{ intersectionRatio: e }]) => {
|
|
90
91
|
e !== 1 && n.value && await k();
|
|
@@ -103,34 +104,34 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
103
104
|
}, Be = (e) => o("change", e), Ve = (e) => {
|
|
104
105
|
o("input", e), a.value === "" && (t.multiple || o("update:modelValue", null)), r.value?.blur(), N.value && S(), He(a.value, !1, t.modelValue);
|
|
105
106
|
}, O = async (e) => {
|
|
106
|
-
if (e.target instanceof Node && F.value && !F.value.$el.contains(e.target) && !
|
|
107
|
+
if (e.target instanceof Node && F.value && !F.value.$el.contains(e.target) && !i.value?.$el?.contains(e.target)) {
|
|
107
108
|
k(), Ue(), document.removeEventListener("click", O), document.removeEventListener("focusin", O), await E(t.transitionDuration), y();
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
|
-
}, B = m(() => !(t.readonly || t.disabled || H.value || !r.value && t.multiple &&
|
|
111
|
-
B.value && (r.value?.blur(), n.value ?
|
|
111
|
+
}, B = m(() => !(t.readonly || t.disabled || H.value || !r.value && t.multiple && s.value.length <= t.maxSelectedLabels)), Se = async () => {
|
|
112
|
+
B.value && (r.value?.blur(), n.value ? i.value?.focusPrevious() : (await S(), await E(t.transitionDuration), i.value?.focusLastSelected()));
|
|
112
113
|
}, ke = async () => {
|
|
113
|
-
B.value && (r.value?.blur(), n.value ?
|
|
114
|
+
B.value && (r.value?.blur(), n.value ? i.value?.focusNext() : (await S(), await E(t.transitionDuration), i.value?.focusFirstSelected()));
|
|
114
115
|
}, Ce = (e) => {
|
|
115
|
-
if (!B.value || !t.multiple || a.value || (e.preventDefault(),
|
|
116
|
+
if (!B.value || !t.multiple || a.value || (e.preventDefault(), i.value?.blur(), !s.value.length)) return;
|
|
116
117
|
r.value?.focusPrevious();
|
|
117
118
|
const l = r.value?.getHighlighted();
|
|
118
|
-
l &&
|
|
119
|
+
l && i.value?.focusByHash(l.valueHash);
|
|
119
120
|
}, Ie = (e) => {
|
|
120
|
-
if (!B.value || !t.multiple || a.value || (e.preventDefault(),
|
|
121
|
+
if (!B.value || !t.multiple || a.value || (e.preventDefault(), i.value?.blur(), !s.value.length)) return;
|
|
121
122
|
r.value?.focusNext();
|
|
122
123
|
const l = r.value?.getHighlighted();
|
|
123
|
-
l &&
|
|
124
|
+
l && i.value?.focusByHash(l.valueHash);
|
|
124
125
|
}, De = async () => {
|
|
125
126
|
if (!B.value)
|
|
126
127
|
return;
|
|
127
128
|
if (n.value) {
|
|
128
|
-
if (
|
|
129
|
-
|
|
129
|
+
if (i.value?.getHighlighted()) {
|
|
130
|
+
i.value.confirmOption();
|
|
130
131
|
return;
|
|
131
132
|
}
|
|
132
133
|
} else {
|
|
133
|
-
await S(), await E(t.transitionDuration),
|
|
134
|
+
await S(), await E(t.transitionDuration), s.value.length && i.value?.focusFirstSelected();
|
|
134
135
|
return;
|
|
135
136
|
}
|
|
136
137
|
const e = a.value.trim();
|
|
@@ -138,7 +139,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
138
139
|
}, Oe = async () => {
|
|
139
140
|
n.value && await k();
|
|
140
141
|
}, $e = async () => {
|
|
141
|
-
!B.value || a.value || !
|
|
142
|
+
!B.value || a.value || !s.value.length || (r.value?.getHighlighted() && r.value.confirmOption(), await U(), r.value?.focusPrevious());
|
|
142
143
|
}, a = f(""), {
|
|
143
144
|
getter: q,
|
|
144
145
|
debouncedGetter: He,
|
|
@@ -148,7 +149,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
148
149
|
items: z(t, "items"),
|
|
149
150
|
debounce: t.queryDebounceTime
|
|
150
151
|
}), x = () => {
|
|
151
|
-
t.enforceCoherence && !Z.value && (t.multiple ? o("update:modelValue", Ne.value.coherent) : o("update:modelValue", null), r.value?.blur(),
|
|
152
|
+
t.enforceCoherence && !Z.value && (t.multiple ? o("update:modelValue", Ne.value.coherent) : o("update:modelValue", null), r.value?.blur(), i.value?.blur());
|
|
152
153
|
}, {
|
|
153
154
|
hasPrefilled: J,
|
|
154
155
|
isPrefilling: Te,
|
|
@@ -165,10 +166,10 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
165
166
|
add: X,
|
|
166
167
|
remove: Fe,
|
|
167
168
|
set: Ae
|
|
168
|
-
} = nt(),
|
|
169
|
+
} = nt(), s = m(() => {
|
|
169
170
|
const e = kt(M.value, (l, p) => Y.value[p]);
|
|
170
171
|
return Object.values(e).filter(Boolean);
|
|
171
|
-
}), qe = m(() =>
|
|
172
|
+
}), qe = m(() => s.value.length ? "" : t.placeholder), { data: M, get: xe } = ie({
|
|
172
173
|
// Force model value to be an array
|
|
173
174
|
items: m(() => [].concat(t.modelValue))
|
|
174
175
|
}), { options: $ } = ut({
|
|
@@ -181,7 +182,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
181
182
|
selectedIndexedByHash: M
|
|
182
183
|
}), H = m(() => !!(G.value || t.loading)), Me = m(() => {
|
|
183
184
|
let e = [];
|
|
184
|
-
const l =
|
|
185
|
+
const l = s.value.some(
|
|
185
186
|
(b) => b.text === a.value
|
|
186
187
|
);
|
|
187
188
|
return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = $.value.filter((b) => {
|
|
@@ -194,7 +195,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
194
195
|
return;
|
|
195
196
|
}
|
|
196
197
|
let e;
|
|
197
|
-
|
|
198
|
+
s.value && (e = ot(s.value)), a.value = e?.text || "";
|
|
198
199
|
}, Pe = async (e) => {
|
|
199
200
|
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
201
|
}, P = async (e) => {
|
|
@@ -204,10 +205,10 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
204
205
|
} else
|
|
205
206
|
o("update:modelValue", null), await U(), y();
|
|
206
207
|
v();
|
|
207
|
-
}, { data: Y } =
|
|
208
|
+
}, { data: Y } = ie({
|
|
208
209
|
items: $,
|
|
209
210
|
key: "valueHash"
|
|
210
|
-
}), { coherent: Z, status: Ne } =
|
|
211
|
+
}), { coherent: Z, status: Ne } = it({
|
|
211
212
|
modelValue: z(t, "modelValue"),
|
|
212
213
|
multiple: t.multiple,
|
|
213
214
|
iteratee: (e) => !!Y.value[at(e)]
|
|
@@ -238,13 +239,13 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
238
239
|
W.value = !0;
|
|
239
240
|
}, Ue = () => {
|
|
240
241
|
W.value = !1, o("inactive");
|
|
241
|
-
},
|
|
242
|
+
}, Re = (e) => {
|
|
242
243
|
e.preventDefault(), o("click", e), !(t.disabled || t.readonly) && (v(), ze());
|
|
243
|
-
},
|
|
244
|
+
}, _e = ht(
|
|
244
245
|
(e) => typeof e != "string",
|
|
245
246
|
JSON.stringify
|
|
246
247
|
), je = m(() => [].concat(t.modelValue).map((e) => {
|
|
247
|
-
const l =
|
|
248
|
+
const l = _e(e);
|
|
248
249
|
return {
|
|
249
250
|
disabled: t.disabled,
|
|
250
251
|
name: t.name,
|
|
@@ -268,7 +269,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
268
269
|
"bb-base-select--readonly": e.readonly,
|
|
269
270
|
"bb-base-select--compact": e.compact
|
|
270
271
|
}),
|
|
271
|
-
onClick:
|
|
272
|
+
onClick: Re
|
|
272
273
|
}, {
|
|
273
274
|
"prepend-outer": u(() => [
|
|
274
275
|
d(e.$slots, "prepend-outer", { query: a.value })
|
|
@@ -311,21 +312,21 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
311
312
|
T(tt, { tag: "span" }, {
|
|
312
313
|
default: u(() => [
|
|
313
314
|
L("span", Ct, [
|
|
314
|
-
e.multiple &&
|
|
315
|
+
e.multiple && s.value.length <= e.maxSelectedLabels ? (h(), I(ae, { key: 0 }, [
|
|
315
316
|
e.comma ? (h(), K(bt, {
|
|
316
317
|
key: 0,
|
|
317
318
|
ref_key: "commaBox",
|
|
318
|
-
ref:
|
|
319
|
-
options:
|
|
319
|
+
ref: R,
|
|
320
|
+
options: s.value,
|
|
320
321
|
"onOption:unselected": P
|
|
321
322
|
}, null, 8, ["options"])) : (h(), K(yt, {
|
|
322
323
|
key: 1,
|
|
323
324
|
ref_key: "chipsBox",
|
|
324
|
-
ref:
|
|
325
|
-
options:
|
|
325
|
+
ref: _,
|
|
326
|
+
options: s.value,
|
|
326
327
|
"onOption:unselected": P
|
|
327
328
|
}, null, 8, ["options"]))
|
|
328
|
-
], 64)) : e.multiple ? (h(), I("span", It, Ye(e.selectedLabelsFn ? e.selectedLabelsFn(
|
|
329
|
+
], 64)) : e.multiple ? (h(), I("span", It, Ye(e.selectedLabelsFn ? e.selectedLabelsFn(s.value.length) : g(de)("select.multipleMaxReached", s.value.length)), 1)) : te("", !0),
|
|
329
330
|
Xe((h(), I("input", {
|
|
330
331
|
id: g(j),
|
|
331
332
|
key: `${g(ce)}`,
|
|
@@ -399,7 +400,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
399
400
|
default: u(() => [
|
|
400
401
|
T(Vt, {
|
|
401
402
|
ref_key: "optionsContainer",
|
|
402
|
-
ref:
|
|
403
|
+
ref: i,
|
|
403
404
|
compact: e.compact,
|
|
404
405
|
loading: H.value,
|
|
405
406
|
"loading-text": e.loadingText,
|
|
@@ -408,6 +409,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
408
409
|
open: n.value,
|
|
409
410
|
options: Me.value,
|
|
410
411
|
style: le(ye.value),
|
|
412
|
+
"option-height": e.itemHeight,
|
|
411
413
|
"onOption:selected": Pe,
|
|
412
414
|
"onOption:unselected": P
|
|
413
415
|
}, {
|
|
@@ -433,7 +435,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
433
435
|
}, p))
|
|
434
436
|
]),
|
|
435
437
|
_: 3
|
|
436
|
-
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "style"])
|
|
438
|
+
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "style", "option-height"])
|
|
437
439
|
]),
|
|
438
440
|
_: 3
|
|
439
441
|
}, 8, ["modelValue", "anchor", "transition-duration"]),
|
|
@@ -447,5 +449,5 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
|
447
449
|
}
|
|
448
450
|
});
|
|
449
451
|
export {
|
|
450
|
-
|
|
452
|
+
ia as default
|
|
451
453
|
};
|
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
|
-
import { head as ce } from "./
|
|
3
|
-
import { isCssColor as K } from "./
|
|
4
|
-
import { isNil as x } from "./
|
|
2
|
+
import { head as ce } from "./index244.js";
|
|
3
|
+
import { isCssColor as K } from "./index219.js";
|
|
4
|
+
import { isNil as x } from "./index245.js";
|
|
5
5
|
import { getAsPercentageBetween as S, getAsPercentage as be, getValueFromPercentageInInterval as T } from "./index139.js";
|
|
6
|
-
import { snapToStep as ve } from "./
|
|
6
|
+
import { snapToStep as ve } from "./index246.js";
|
|
7
7
|
import { last as fe } from "./index227.js";
|
|
8
|
-
import { transpose as Q } from "./
|
|
9
|
-
import { clamp as m } from "./
|
|
8
|
+
import { transpose as Q } from "./index247.js";
|
|
9
|
+
import { clamp as m } from "./index216.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 "./index219.js";
|
|
3
|
+
import { when as x } from "./index257.js";
|
|
4
4
|
const M = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ F({
|
|
5
5
|
__name: "BaseSwitch",
|
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as n, renderSlot as s, 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 "./
|
|
4
|
+
import N from "./index236.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { useItemsGetter as U } from "./
|
|
7
|
-
import { useIndexById as T } from "./
|
|
8
|
-
import { useBaseOptions as q } from "./
|
|
9
|
-
import { useCoherence as J } from "./
|
|
6
|
+
import { useItemsGetter as U } from "./index238.js";
|
|
7
|
+
import { useIndexById as T } from "./index239.js";
|
|
8
|
+
import { useBaseOptions as q } from "./index240.js";
|
|
9
|
+
import { useCoherence as J } from "./index241.js";
|
|
10
10
|
import { hash as Q } from "./index226.js";
|
|
11
|
-
import { useHashedWatcher as $ } from "./
|
|
12
|
-
import { usePrefill as X } from "./
|
|
11
|
+
import { useHashedWatcher as $ } from "./index242.js";
|
|
12
|
+
import { usePrefill as X } from "./index243.js";
|
|
13
13
|
const ue = /* @__PURE__ */ j({
|
|
14
14
|
__name: "BaseSwitchGroup",
|
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
|
@@ -2,16 +2,16 @@ import { defineComponent as j, ref as u, computed as m, toRef as C, watch as Q,
|
|
|
2
2
|
import ae from "./index112.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { last as le } from "./index227.js";
|
|
5
|
-
import { useBaseOptions as ne } from "./
|
|
6
|
-
import { useIndexById as re } from "./
|
|
7
|
-
import ie from "./
|
|
5
|
+
import { useBaseOptions as ne } from "./index240.js";
|
|
6
|
+
import { useIndexById as re } from "./index239.js";
|
|
7
|
+
import ie from "./index280.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import ue from "./
|
|
9
|
+
import ue from "./index282.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import se from "./index136.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import de from "./index138.js";
|
|
14
|
-
import { isEmpty as pe } from "./
|
|
14
|
+
import { isEmpty as pe } from "./index272.js";
|
|
15
15
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Oe = /* @__PURE__ */ j({
|
|
16
16
|
__name: "BaseTag",
|
|
17
17
|
props: {
|
package/dist/index49.js
CHANGED
|
@@ -2,8 +2,8 @@ import { defineComponent as V, ref as h, computed as v, onMounted as B, onBefore
|
|
|
2
2
|
import q from "./index136.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import I from "./index138.js";
|
|
5
|
-
import { MaskInput as z } from "./
|
|
6
|
-
import { isNotEmpty as D } from "./
|
|
5
|
+
import { MaskInput as z } from "./index275.js";
|
|
6
|
+
import { isNotEmpty as D } from "./index276.js";
|
|
7
7
|
const N = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
|
|
8
8
|
__name: "BaseTextInput",
|
|
9
9
|
props: {
|
package/dist/index55.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
|
2
|
-
import { isCssColor as y } from "./
|
|
2
|
+
import { isCssColor as y } from "./index219.js";
|
|
3
3
|
import { wait as C } from "./index140.js";
|
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
|
2
|
-
import { isCssColor as l } from "./
|
|
3
|
-
import { isNil as B } from "./
|
|
2
|
+
import { isCssColor as l } from "./index219.js";
|
|
3
|
+
import { isNil as B } from "./index245.js";
|
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
|
5
5
|
__name: "BbBadge",
|
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
|
@@ -7,11 +7,11 @@ import f from "./index86.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import J from "./index114.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { pickBy as K } from "./
|
|
11
|
-
import { noop as Q } from "./
|
|
10
|
+
import { pickBy as K } from "./index273.js";
|
|
11
|
+
import { noop as Q } from "./index274.js";
|
|
12
12
|
import { useLocale as U } from "./index235.js";
|
|
13
|
-
import { extractDomContainer as X } from "./
|
|
14
|
-
import { isEqual as $ } from "./
|
|
13
|
+
import { extractDomContainer as X } from "./index259.js";
|
|
14
|
+
import { isEqual as $ } from "./index221.js";
|
|
15
15
|
const Y = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "bb-button__loading-label sr-only"
|