bitboss-ui 2.1.11 → 2.1.13
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/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +12 -12
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index133.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +33 -12
- package/dist/index21.js +16 -16
- package/dist/index210.js +85 -12
- package/dist/index212.js +29 -2
- package/dist/index213.js +17 -4
- package/dist/index214.js +51 -2
- package/dist/index215.js +15 -66
- package/dist/index216.js +5 -0
- package/dist/index217.js +12 -13
- package/dist/index218.js +15 -182
- package/dist/index219.js +4 -5
- package/dist/index220.js +13 -5
- package/dist/index221.js +11 -5
- package/dist/index222.js +20 -5
- package/dist/index223.js +197 -5
- package/dist/index225.js +66 -2
- package/dist/index227.js +13 -2
- package/dist/index228.js +111 -18
- package/dist/index23.js +15 -15
- package/dist/index230.js +15 -0
- package/dist/index231.js +3 -4
- package/dist/index232.js +2 -197
- package/dist/index233.js +6 -0
- package/dist/index234.js +2 -86
- package/dist/index235.js +4 -0
- package/dist/index236.js +5 -29
- package/dist/index237.js +5 -17
- package/dist/index238.js +5 -51
- package/dist/index239.js +5 -15
- package/dist/index240.js +5 -3
- package/dist/index241.js +5 -12
- package/dist/index242.js +2 -16
- package/dist/index243.js +2 -10
- package/dist/index244.js +17 -2
- package/dist/index245.js +12 -2
- package/dist/index246.js +6 -9
- package/dist/index247.js +106 -23
- package/dist/index249.js +99 -7
- package/dist/index25.js +3 -3
- package/dist/index251.js +214 -89
- package/dist/index252.js +7 -0
- package/dist/index253.js +5 -100
- package/dist/index254.js +10 -0
- package/dist/index255.js +250 -6
- package/dist/index256.js +50 -14
- package/dist/index257.js +42 -32
- package/dist/index258.js +5 -3
- package/dist/index259.js +60 -5
- package/dist/index260.js +2 -5
- package/dist/index261.js +182 -7
- package/dist/index262.js +10 -250
- package/dist/index263.js +3 -52
- package/dist/index264.js +2 -44
- package/dist/index265.js +7 -5
- package/dist/index266.js +7 -60
- package/dist/index267.js +9 -9
- package/dist/index268.js +23 -18
- package/dist/index269.js +3 -12
- package/dist/index27.js +1 -1
- package/dist/index270.js +6 -6
- package/dist/index271.js +15 -229
- package/dist/index272.js +9 -2
- package/dist/index273.js +9 -7
- package/dist/index274.js +8 -7
- package/dist/index275.js +67 -2
- package/dist/index276.js +2 -5
- package/dist/index277.js +5 -67
- package/dist/index278.js +1 -1
- package/dist/index279.js +1 -1
- package/dist/index280.js +2 -4
- package/dist/index281.js +3 -7
- package/dist/index282.js +17 -11
- package/dist/index283.js +28 -3
- package/dist/{index286.js → index284.js} +1 -1
- package/dist/index285.js +3 -7
- package/dist/index287.js +7 -3
- package/dist/index288.js +3 -4
- package/dist/index289.js +7 -280
- package/dist/index29.js +4 -4
- package/dist/index290.js +11 -2
- package/dist/index291.js +3 -124
- package/dist/index292.js +4 -2
- package/dist/index293.js +5 -15
- package/dist/index294.js +280 -2
- package/dist/index295.js +2 -16
- package/dist/index296.js +125 -2
- package/dist/index297.js +2 -16
- package/dist/index298.js +15 -2
- package/dist/index299.js +2 -19
- package/dist/index300.js +16 -2
- package/dist/index301.js +2 -3
- package/dist/index302.js +16 -17
- package/dist/index303.js +2 -28
- package/dist/index304.js +18 -5
- package/dist/index305.js +2 -5
- package/dist/index306.js +19 -3
- package/dist/index307.js +2 -3
- package/dist/index308.js +27 -718
- package/dist/index309.js +2 -366
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -58
- package/dist/index311.js +1 -1
- package/dist/index312.js +2 -5
- package/dist/index313.js +2 -19
- package/dist/index314.js +22 -2
- package/dist/index316.js +6 -2
- package/dist/index317.js +3 -2
- package/dist/index318.js +3 -2
- package/dist/index319.js +1 -1
- package/dist/index320.js +5 -2
- package/dist/index321.js +718 -22
- package/dist/index322.js +368 -0
- package/dist/index323.js +58 -2
- package/dist/index324.js +1 -1
- package/dist/index325.js +128 -32
- package/dist/index326.js +369 -28
- package/dist/index327.js +35 -0
- package/dist/index328.js +27 -128
- package/dist/index33.js +8 -8
- package/dist/index330.js +8 -58
- package/dist/index331.js +6 -58
- package/dist/index332.js +8 -8
- package/dist/index333.js +58 -6
- package/dist/index334.js +57 -7
- package/dist/index335.js +221 -86
- package/dist/index336.js +6 -227
- package/dist/index337.js +18 -6
- package/dist/index338.js +5 -17
- package/dist/index339.js +46 -6
- package/dist/index340.js +92 -46
- package/dist/index341.js +131 -0
- package/dist/index343.js +3 -129
- package/dist/index35.js +4 -4
- package/dist/index37.js +92 -89
- package/dist/index39.js +8 -8
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/dist/index96.js +1 -1
- package/package.json +2 -2
- package/dist/index211.js +0 -13
- package/dist/index224.js +0 -7
- package/dist/index226.js +0 -4
- package/dist/index229.js +0 -115
- package/dist/index248.js +0 -11
- package/dist/index250.js +0 -5
- package/dist/index315.js +0 -29
- package/dist/index329.js +0 -371
- package/dist/index342.js +0 -5
package/dist/index343.js
CHANGED
@@ -1,131 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
4
|
-
function s(n) {
|
5
|
-
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
6
|
-
}
|
7
|
-
function i(n) {
|
8
|
-
var t;
|
9
|
-
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
10
|
-
}
|
11
|
-
function E(n) {
|
12
|
-
var t;
|
13
|
-
return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
14
|
-
}
|
15
|
-
function p(n) {
|
16
|
-
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
|
17
|
-
}
|
18
|
-
function m(n) {
|
19
|
-
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
|
20
|
-
}
|
21
|
-
function w(n) {
|
22
|
-
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
|
23
|
-
}
|
24
|
-
function a(n) {
|
25
|
-
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
26
|
-
}
|
27
|
-
function y(n) {
|
28
|
-
const {
|
29
|
-
overflow: t,
|
30
|
-
overflowX: e,
|
31
|
-
overflowY: o,
|
32
|
-
display: r
|
33
|
-
} = b(n);
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
35
|
-
}
|
36
|
-
function D(n) {
|
37
|
-
return ["table", "td", "th"].includes(s(n));
|
38
|
-
}
|
39
|
-
function N(n) {
|
40
|
-
return [":popover-open", ":modal"].some((t) => {
|
41
|
-
try {
|
42
|
-
return n.matches(t);
|
43
|
-
} catch {
|
44
|
-
return !1;
|
45
|
-
}
|
46
|
-
});
|
47
|
-
}
|
48
|
-
function T(n) {
|
49
|
-
const t = L(), e = m(n) ? b(n) : n;
|
50
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
51
|
-
}
|
52
|
-
function k(n) {
|
53
|
-
let t = u(n);
|
54
|
-
for (; w(t) && !g(t); ) {
|
55
|
-
if (T(t))
|
56
|
-
return t;
|
57
|
-
if (N(t))
|
58
|
-
return null;
|
59
|
-
t = u(t);
|
60
|
-
}
|
61
|
-
return null;
|
62
|
-
}
|
63
|
-
function L() {
|
64
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
65
|
-
}
|
66
|
-
function g(n) {
|
67
|
-
return ["html", "body", "#document"].includes(s(n));
|
68
|
-
}
|
69
|
-
function b(n) {
|
70
|
-
return i(n).getComputedStyle(n);
|
71
|
-
}
|
72
|
-
function C(n) {
|
73
|
-
return m(n) ? {
|
74
|
-
scrollLeft: n.scrollLeft,
|
75
|
-
scrollTop: n.scrollTop
|
76
|
-
} : {
|
77
|
-
scrollLeft: n.scrollX,
|
78
|
-
scrollTop: n.scrollY
|
79
|
-
};
|
80
|
-
}
|
81
|
-
function u(n) {
|
82
|
-
if (s(n) === "html")
|
83
|
-
return n;
|
84
|
-
const t = (
|
85
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
86
|
-
n.assignedSlot || // DOM Element detected.
|
87
|
-
n.parentNode || // ShadowRoot detected.
|
88
|
-
a(n) && n.host || // Fallback.
|
89
|
-
E(n)
|
90
|
-
);
|
91
|
-
return a(t) ? t.host : t;
|
92
|
-
}
|
93
|
-
function h(n) {
|
94
|
-
const t = u(n);
|
95
|
-
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
96
|
-
}
|
97
|
-
function d(n, t, e) {
|
98
|
-
var o;
|
99
|
-
t === void 0 && (t = []), e === void 0 && (e = !0);
|
100
|
-
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
101
|
-
if (S) {
|
102
|
-
const f = v(l);
|
103
|
-
return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
|
104
|
-
}
|
105
|
-
return t.concat(r, d(r, [], e));
|
106
|
-
}
|
107
|
-
function v(n) {
|
108
|
-
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
109
|
-
}
|
1
|
+
import o from "./index328.js";
|
2
|
+
/* empty css */
|
110
3
|
export {
|
111
|
-
|
112
|
-
k as getContainingBlock,
|
113
|
-
E as getDocumentElement,
|
114
|
-
v as getFrameElement,
|
115
|
-
h as getNearestOverflowAncestor,
|
116
|
-
s as getNodeName,
|
117
|
-
C as getNodeScroll,
|
118
|
-
d as getOverflowAncestors,
|
119
|
-
u as getParentNode,
|
120
|
-
i as getWindow,
|
121
|
-
T as isContainingBlock,
|
122
|
-
m as isElement,
|
123
|
-
w as isHTMLElement,
|
124
|
-
g as isLastTraversableNode,
|
125
|
-
p as isNode,
|
126
|
-
y as isOverflowElement,
|
127
|
-
a as isShadowRoot,
|
128
|
-
D as isTableElement,
|
129
|
-
N as isTopLayer,
|
130
|
-
L as isWebKit
|
4
|
+
o as default
|
131
5
|
};
|
package/dist/index35.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as I, ref as v, computed as f, createElementBlock as l, openBlock as r, mergeProps as h, createElementVNode as i, renderSlot as p, Fragment as V, renderList as M, normalizeClass as D, toDisplayString as F, unref as y } from "vue";
|
2
|
-
import { booleanishToBoolean as T } from "./
|
3
|
-
import { identity as $ } from "./
|
4
|
-
import { isCssColor as k } from "./
|
2
|
+
import { booleanishToBoolean as T } from "./index234.js";
|
3
|
+
import { identity as $ } from "./index235.js";
|
4
|
+
import { isCssColor as k } from "./index232.js";
|
5
5
|
import { isNotNil as q } from "./index140.js";
|
6
|
-
import { useLocale as x } from "./
|
6
|
+
import { useLocale as x } from "./index220.js";
|
7
7
|
const H = { class: "bb-base-rating__inner-container" }, S = { class: "bb-base-rating__label-text sr-only" }, N = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], j = ["height", "width"], W = /* @__PURE__ */ I({
|
8
8
|
__name: "BaseRating",
|
9
9
|
props: {
|
package/dist/index37.js
CHANGED
@@ -1,40 +1,40 @@
|
|
1
|
-
import { defineComponent as Ge, ref as v, computed as h, toRef as L, createBlock as
|
1
|
+
import { defineComponent as Ge, ref as v, computed as h, toRef as L, createBlock as T, openBlock as y, normalizeClass as le, withCtx as s, createElementVNode as F, createElementBlock as O, createVNode as j, createCommentVNode as R, unref as g, renderSlot as p, withDirectives as Je, Fragment as ae, toDisplayString as Qe, withKeys as w, withModifiers as m, normalizeStyle as oe, vModelDynamic as Xe, mergeProps as ne, renderList as Ye, nextTick as U } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as Ze } from "./index8.js";
|
5
5
|
import { useMobile as et } from "./index9.js";
|
6
6
|
import tt from "./index111.js";
|
7
7
|
/* empty css */
|
8
|
-
import { hash as lt } from "./
|
9
|
-
import { isEmpty as at } from "./
|
10
|
-
import { last as ot } from "./
|
11
|
-
import { matchAnyKey as ue } from "./
|
12
|
-
import { useArray as nt } from "./
|
13
|
-
import { useBaseOptions as ut } from "./
|
14
|
-
import { useCoherence as st } from "./
|
15
|
-
import { useHashedWatcher as se } from "./
|
16
|
-
import { useIndexById as ie } from "./
|
8
|
+
import { hash as lt } from "./index216.js";
|
9
|
+
import { isEmpty as at } from "./index242.js";
|
10
|
+
import { last as ot } from "./index243.js";
|
11
|
+
import { matchAnyKey as ue } from "./index244.js";
|
12
|
+
import { useArray as nt } from "./index245.js";
|
13
|
+
import { useBaseOptions as ut } from "./index214.js";
|
14
|
+
import { useCoherence as st } from "./index215.js";
|
15
|
+
import { useHashedWatcher as se } from "./index217.js";
|
16
|
+
import { useIndexById as ie } from "./index213.js";
|
17
17
|
import { useMounted as it, useIntersectionObserver as rt } from "./index137.js";
|
18
|
-
import { useItemsGetter as dt } from "./
|
19
|
-
import { useLocale as ct } from "./
|
20
|
-
import { usePrefill as pt } from "./
|
18
|
+
import { useItemsGetter as dt } from "./index212.js";
|
19
|
+
import { useLocale as ct } from "./index220.js";
|
20
|
+
import { usePrefill as pt } from "./index218.js";
|
21
21
|
import { wait as E } from "./index135.js";
|
22
|
-
import { waitFor as mt } from "./
|
23
|
-
import { when as ft } from "./
|
24
|
-
import vt from "./
|
22
|
+
import { waitFor as mt } from "./index246.js";
|
23
|
+
import { when as ft } from "./index233.js";
|
24
|
+
import vt from "./index247.js";
|
25
25
|
/* empty css */
|
26
|
-
import ht from "./
|
26
|
+
import ht from "./index249.js";
|
27
27
|
/* empty css */
|
28
|
-
import yt from "./
|
28
|
+
import yt from "./index225.js";
|
29
29
|
/* empty css */
|
30
|
-
import bt from "./
|
31
|
-
import gt from "./
|
30
|
+
import bt from "./index227.js";
|
31
|
+
import gt from "./index228.js";
|
32
32
|
/* empty css */
|
33
|
-
import wt from "./
|
34
|
-
const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-select__input-container" },
|
33
|
+
import wt from "./index251.js";
|
34
|
+
const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-select__input-container" }, kt = {
|
35
35
|
key: 1,
|
36
36
|
class: "bb-base-select__max-reached"
|
37
|
-
},
|
37
|
+
}, It = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ol = /* @__PURE__ */ Ge({
|
38
38
|
__name: "BaseSelect",
|
39
39
|
props: {
|
40
40
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -81,11 +81,11 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
81
81
|
const t = re, n = de;
|
82
82
|
if (t.multiple && !Array.isArray(t.modelValue))
|
83
83
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
84
|
-
const { t: ce } = ct(), pe = it(), x = v(null), $ = v(null), u = v(null),
|
85
|
-
() => t.comma ?
|
84
|
+
const { t: ce } = ct(), pe = it(), x = v(null), $ = v(null), u = v(null), G = v(null), J = v(null), r = h(
|
85
|
+
() => t.comma ? G.value : J.value
|
86
86
|
), { isMobile: me } = et(), fe = h(
|
87
87
|
() => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
|
88
|
-
),
|
88
|
+
), Q = t.id || Ze().id.value;
|
89
89
|
rt(
|
90
90
|
// @ts-expect-error - wrong inferred type
|
91
91
|
$,
|
@@ -105,12 +105,12 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
105
105
|
}, he = async (e) => {
|
106
106
|
n("focus", e), Ne(), document.addEventListener("click", D), document.addEventListener("focusin", D);
|
107
107
|
}, ye = () => {
|
108
|
-
t.prefill === "focus" && !He.value && !
|
108
|
+
t.prefill === "focus" && !He.value && !Y.value && Le();
|
109
109
|
}, be = async (e) => {
|
110
110
|
n("blur", e);
|
111
111
|
}, ge = (e) => n("change", e), we = (e) => {
|
112
112
|
var l;
|
113
|
-
n("input", e), a.value === "" && (t.multiple || n("update:modelValue", null)), (l = r.value) == null || l.blur(), W.value &&
|
113
|
+
n("input", e), a.value === "" && (t.multiple || n("update:modelValue", null)), (l = r.value) == null || l.blur(), W.value && S(), $e(a.value, !1, t.modelValue);
|
114
114
|
}, D = async (e) => {
|
115
115
|
var l, o;
|
116
116
|
if (e.target instanceof Node && x.value && !x.value.$el.contains(e.target) && !((o = (l = u.value) == null ? void 0 : l.$el) != null && o.contains(e.target))) {
|
@@ -119,23 +119,23 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
119
119
|
}
|
120
120
|
}, B = h(() => !(t.readonly || t.disabled || H.value || !r.value && t.multiple && i.value.length <= t.maxSelectedLabels)), Be = async () => {
|
121
121
|
var e, l, o;
|
122
|
-
B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusPrevious() : (await
|
122
|
+
B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusPrevious() : (await S(), await E(t.transitionDuration), (o = u.value) == null || o.focusLastSelected()));
|
123
123
|
}, Ve = async () => {
|
124
124
|
var e, l, o;
|
125
|
-
B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusNext() : (await
|
126
|
-
},
|
127
|
-
var o, d, f,
|
125
|
+
B.value && ((e = r.value) == null || e.blur(), c.value ? (l = u.value) == null || l.focusNext() : (await S(), await E(t.transitionDuration), (o = u.value) == null || o.focusFirstSelected()));
|
126
|
+
}, ke = (e) => {
|
127
|
+
var o, d, f, k;
|
128
128
|
if (!B.value || !t.multiple || a.value || (e.preventDefault(), (o = u.value) == null || o.blur(), !i.value.length)) return;
|
129
129
|
(d = r.value) == null || d.focusPrevious();
|
130
130
|
const l = (f = r.value) == null ? void 0 : f.getHighlighted();
|
131
|
-
l && ((
|
132
|
-
},
|
133
|
-
var o, d, f,
|
131
|
+
l && ((k = u.value) == null || k.focusByHash(l.valueHash));
|
132
|
+
}, Ie = (e) => {
|
133
|
+
var o, d, f, k;
|
134
134
|
if (!B.value || !t.multiple || a.value || (e.preventDefault(), (o = u.value) == null || o.blur(), !i.value.length)) return;
|
135
135
|
(d = r.value) == null || d.focusNext();
|
136
136
|
const l = (f = r.value) == null ? void 0 : f.getHighlighted();
|
137
|
-
l && ((
|
138
|
-
},
|
137
|
+
l && ((k = u.value) == null || k.focusByHash(l.valueHash));
|
138
|
+
}, Se = async () => {
|
139
139
|
var l, o;
|
140
140
|
if (!B.value)
|
141
141
|
return;
|
@@ -145,7 +145,7 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
145
145
|
return;
|
146
146
|
}
|
147
147
|
} else {
|
148
|
-
await
|
148
|
+
await S(), await E(t.transitionDuration), i.value.length && ((l = u.value) == null || l.focusFirstSelected());
|
149
149
|
return;
|
150
150
|
}
|
151
151
|
const e = a.value.trim();
|
@@ -154,20 +154,20 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
154
154
|
c.value && await C();
|
155
155
|
}, Oe = async () => {
|
156
156
|
var e, l;
|
157
|
-
!B.value || a.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await
|
157
|
+
!B.value || a.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await U(), (l = r.value) == null || l.focusPrevious());
|
158
158
|
}, a = v(""), {
|
159
159
|
getter: M,
|
160
160
|
debouncedGetter: $e,
|
161
161
|
items: De,
|
162
|
-
loading:
|
162
|
+
loading: X
|
163
163
|
} = dt({
|
164
164
|
items: L(t, "items"),
|
165
165
|
debounce: t.queryDebounceTime
|
166
166
|
}), P = () => {
|
167
167
|
var e, l;
|
168
|
-
t.enforceCoherence && !
|
168
|
+
t.enforceCoherence && !te.value && (t.multiple ? n("update:modelValue", Pe.value.coherent) : n("update:modelValue", null), (e = r.value) == null || e.blur(), (l = u.value) == null || l.blur());
|
169
169
|
}, {
|
170
|
-
hasPrefilled:
|
170
|
+
hasPrefilled: Y,
|
171
171
|
isPrefilling: He,
|
172
172
|
prefill: Le
|
173
173
|
} = pt({
|
@@ -175,37 +175,37 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
175
175
|
currentValue: t.modelValue,
|
176
176
|
multiple: t.multiple,
|
177
177
|
fn: async ({ prefill: e }) => {
|
178
|
-
await M(a.value, e, t.modelValue), t.stash &&
|
178
|
+
await M(a.value, e, t.modelValue), t.stash && ee(...I.value.map((l) => l.item)), P(), b();
|
179
179
|
}
|
180
180
|
}), {
|
181
|
-
array:
|
182
|
-
add:
|
181
|
+
array: Z,
|
182
|
+
add: ee,
|
183
183
|
remove: Te,
|
184
184
|
set: Fe
|
185
185
|
} = nt(), i = h(() => {
|
186
186
|
const e = Object.fromEntries(
|
187
187
|
Object.entries(_.value).map(([l], o) => [l, o])
|
188
188
|
);
|
189
|
-
return
|
189
|
+
return I.value.filter((l) => l.selected).sort((l, o) => e[l.valueHash] - e[o.valueHash]);
|
190
190
|
}), Ee = h(() => i.value.length ? "" : t.placeholder), { data: _, get: xe } = ie({
|
191
191
|
items: L(t, "modelValue")
|
192
|
-
}), { options:
|
192
|
+
}), { options: I } = ut({
|
193
193
|
disabled: L(t, "disabled"),
|
194
|
-
items: h(() => [...De.value, ...
|
194
|
+
items: h(() => [...De.value, ...Z.value]),
|
195
195
|
itemText: t.itemText,
|
196
196
|
itemValue: t.itemValue,
|
197
197
|
max: t.max,
|
198
198
|
selectable: !0,
|
199
199
|
selectedIndexedByHash: _
|
200
|
-
}), H = h(() => !!(
|
200
|
+
}), H = h(() => !!(X.value || t.loading)), Ae = h(() => {
|
201
201
|
let e = [];
|
202
202
|
const l = i.value.some(
|
203
203
|
(d) => d.text === a.value
|
204
204
|
);
|
205
|
-
return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e =
|
205
|
+
return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = I.value.filter((d) => {
|
206
206
|
let f = !1;
|
207
|
-
return typeof t.filterBy == "function" ? f = t.filterBy(d.value, d.item, a.value) : t.filterBy === "not_stashed" && a.value ? f = !new Set(
|
208
|
-
}) : e =
|
207
|
+
return typeof t.filterBy == "function" ? f = t.filterBy(d.value, d.item, a.value) : t.filterBy === "not_stashed" && a.value ? f = !new Set(Z.value.map((Ue) => Ue.valueHash)).has(d.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (f = f || ue(d.item, t.filterBy, a.value.trim())), f || ue(d, ["text"], a.value.trim());
|
208
|
+
}) : e = I.value, e;
|
209
209
|
}), b = () => {
|
210
210
|
if (t.multiple) {
|
211
211
|
a.value = "";
|
@@ -214,18 +214,18 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
214
214
|
let e;
|
215
215
|
i.value && (e = ot(i.value)), a.value = (e == null ? void 0 : e.text) || "";
|
216
216
|
}, qe = async (e) => {
|
217
|
-
t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash &&
|
217
|
+
t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && ee(e.item), b()) : (t.stash && Fe(e.item), n("update:modelValue", e.value), await U(), b()), q(), t.multiple || C();
|
218
218
|
}, N = async (e) => {
|
219
219
|
if (Te((l) => l.valueHash !== e.valueHash), t.multiple) {
|
220
220
|
const l = { ..._.value };
|
221
221
|
delete l[e.valueHash], n("update:modelValue", Object.values(l));
|
222
222
|
} else
|
223
|
-
n("update:modelValue", null), await
|
223
|
+
n("update:modelValue", null), await U(), b();
|
224
224
|
q();
|
225
225
|
}, { data: Me } = ie({
|
226
|
-
items:
|
226
|
+
items: I,
|
227
227
|
key: "valueHash"
|
228
|
-
}), { coherent:
|
228
|
+
}), { coherent: te, status: Pe } = st({
|
229
229
|
modelValue: L(t, "modelValue"),
|
230
230
|
multiple: t.multiple,
|
231
231
|
iteratee: (e) => !!Me.value[lt(e)]
|
@@ -234,7 +234,7 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
234
234
|
se(
|
235
235
|
() => t.modelValue,
|
236
236
|
async () => {
|
237
|
-
V++,
|
237
|
+
V++, te.value || (await M(a.value, !1, t.modelValue), P()), V === 1 && b(), V--;
|
238
238
|
},
|
239
239
|
{
|
240
240
|
debounce: t.modelValueDebounceTime
|
@@ -242,21 +242,21 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
242
242
|
), se(
|
243
243
|
() => [t.dependencies, t.items],
|
244
244
|
async () => {
|
245
|
-
|
245
|
+
Y.value && (V++, await M(a.value, !1, t.modelValue), V === 1 && (P(), b()), V--);
|
246
246
|
},
|
247
247
|
{
|
248
248
|
debounce: t.depsDebounceTime
|
249
249
|
}
|
250
250
|
);
|
251
|
-
const c = v(!1), W = v(!0),
|
252
|
-
|
251
|
+
const c = v(!1), W = v(!0), z = v(!1), S = async () => {
|
252
|
+
z.value = !0, await mt(() => !!u.value), W.value = !1, c.value = !0;
|
253
253
|
}, C = async () => {
|
254
254
|
var e;
|
255
255
|
c.value = !1, W.value = !0, (e = r.value) == null || e.blur();
|
256
|
-
}, _e = () => c.value ? C() :
|
257
|
-
|
256
|
+
}, _e = () => c.value ? C() : S(), K = v(!1), Ne = () => {
|
257
|
+
K.value = !0;
|
258
258
|
}, We = () => {
|
259
|
-
|
259
|
+
K.value = !1, n("inactive");
|
260
260
|
}, ze = (e) => {
|
261
261
|
e.preventDefault(), n("click", e), !(t.disabled || t.readonly) && (q(), _e());
|
262
262
|
}, Ke = ft(
|
@@ -274,12 +274,12 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
274
274
|
let e = null;
|
275
275
|
t.multiple && (e = []), n("update:modelValue", e);
|
276
276
|
};
|
277
|
-
return (e, l) => (y(),
|
277
|
+
return (e, l) => (y(), T(bt, {
|
278
278
|
ref_key: "outerContainer",
|
279
279
|
ref: x,
|
280
|
-
class:
|
280
|
+
class: le({
|
281
281
|
"bb-base-select": !0,
|
282
|
-
"bb-base-select--active":
|
282
|
+
"bb-base-select--active": K.value,
|
283
283
|
"bb-base-select--shown": c.value,
|
284
284
|
"bb-base-select--loading": H.value,
|
285
285
|
"bb-base-select--disabled": e.disabled,
|
@@ -296,8 +296,8 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
296
296
|
p(e.$slots, "append-outer", { query: a.value })
|
297
297
|
]),
|
298
298
|
default: s(() => [
|
299
|
-
|
300
|
-
|
299
|
+
F("div", Bt, [
|
300
|
+
j(yt, {
|
301
301
|
ref_key: "innerContainer",
|
302
302
|
ref: $,
|
303
303
|
"append:icon": t["append:icon"],
|
@@ -319,37 +319,37 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
319
319
|
p(e.$slots, "suffix")
|
320
320
|
]),
|
321
321
|
default: s(() => [
|
322
|
-
|
322
|
+
j(g(tt), { tag: "span" }, {
|
323
323
|
default: s(() => [
|
324
|
-
|
324
|
+
F("span", Vt, [
|
325
325
|
e.multiple && i.value.length <= e.maxSelectedLabels ? (y(), O(ae, { key: 0 }, [
|
326
|
-
e.comma ? (y(),
|
326
|
+
e.comma ? (y(), T(ht, {
|
327
327
|
key: 0,
|
328
328
|
ref_key: "commaBox",
|
329
|
-
ref:
|
329
|
+
ref: G,
|
330
330
|
options: i.value,
|
331
331
|
"onOption:unselected": N
|
332
|
-
}, null, 8, ["options"])) : (y(),
|
332
|
+
}, null, 8, ["options"])) : (y(), T(vt, {
|
333
333
|
key: 1,
|
334
334
|
ref_key: "chipsBox",
|
335
|
-
ref:
|
335
|
+
ref: J,
|
336
336
|
options: i.value,
|
337
337
|
"onOption:unselected": N
|
338
338
|
}, null, 8, ["options"]))
|
339
|
-
], 64)) : e.multiple ? (y(), O("span",
|
339
|
+
], 64)) : e.multiple ? (y(), O("span", kt, Qe(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : g(ce)("select.multipleMaxReached", i.value.length)), 1)) : R("", !0),
|
340
340
|
Je((y(), O("input", {
|
341
|
-
id: g(
|
341
|
+
id: g(Q),
|
342
342
|
key: `${g(pe)}`,
|
343
343
|
ref_key: "input",
|
344
344
|
ref: A,
|
345
345
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
|
346
346
|
"aria-autocomplete": "list",
|
347
|
-
"aria-controls":
|
347
|
+
"aria-controls": z.value ? `${g(Q)}_listbox` : void 0,
|
348
348
|
"aria-describedby": e.ariaDescribedby,
|
349
349
|
"aria-expanded": c.value,
|
350
350
|
autocomplete: e.autocomplete,
|
351
351
|
autofocus: e.autofocus,
|
352
|
-
class:
|
352
|
+
class: le("bb-base-select__text-input"),
|
353
353
|
disabled: e.disabled,
|
354
354
|
inputmode: fe.value,
|
355
355
|
placeholder: Ee.value,
|
@@ -366,14 +366,14 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
366
366
|
onInput: m(we, ["stop"]),
|
367
367
|
onKeydown: [
|
368
368
|
w(m(Oe, ["stop"]), ["delete"]),
|
369
|
-
w(m(
|
369
|
+
w(m(ke, ["stop"]), ["left"]),
|
370
370
|
w(m(Ve, ["stop", "prevent"]), ["down"]),
|
371
|
-
w(m(
|
371
|
+
w(m(Se, ["stop", "prevent"]), ["enter"]),
|
372
372
|
w(m(Ce, ["stop", "prevent"]), ["esc"]),
|
373
373
|
w(m(Be, ["stop", "prevent"]), ["up"]),
|
374
|
-
w(m(
|
374
|
+
w(m(Ie, ["stop"]), ["right"])
|
375
375
|
]
|
376
|
-
}, null, 44,
|
376
|
+
}, null, 44, It)), [
|
377
377
|
[Xe, a.value]
|
378
378
|
])
|
379
379
|
])
|
@@ -382,26 +382,29 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
382
382
|
}),
|
383
383
|
e.showChevron ? p(e.$slots, "chevron", {
|
384
384
|
key: 0,
|
385
|
-
loading: !!g(
|
385
|
+
loading: !!g(X),
|
386
386
|
shown: c.value
|
387
387
|
}, () => [
|
388
|
-
l[1] || (l[1] =
|
388
|
+
l[1] || (l[1] = F("svg", {
|
389
389
|
class: "bb-base-select__chevron",
|
390
390
|
viewBox: "0 0 24 24",
|
391
391
|
xmlns: "http://www.w3.org/2000/svg"
|
392
392
|
}, [
|
393
|
-
|
393
|
+
F("path", {
|
394
394
|
d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
|
395
395
|
fill: "currentColor"
|
396
396
|
})
|
397
397
|
], -1))
|
398
|
-
]) :
|
398
|
+
]) : R("", !0)
|
399
399
|
]),
|
400
400
|
_: 3
|
401
401
|
}, 8, ["append:icon", "clearable", "prepend:icon"]),
|
402
|
-
|
402
|
+
z.value ? (y(), T(gt, {
|
403
|
+
key: 0,
|
404
|
+
"model-value": c.value
|
405
|
+
}, {
|
403
406
|
default: s(() => [
|
404
|
-
|
407
|
+
j(wt, {
|
405
408
|
ref_key: "optionsContainer",
|
406
409
|
ref: u,
|
407
410
|
compact: e.compact,
|
@@ -437,7 +440,7 @@ const Bt = { class: "bb-base-select__inner-wrapper" }, Vt = { class: "bb-base-se
|
|
437
440
|
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "style"])
|
438
441
|
]),
|
439
442
|
_: 3
|
440
|
-
}, 8, ["model-value"])
|
443
|
+
}, 8, ["model-value"])) : R("", !0)
|
441
444
|
]),
|
442
445
|
(y(!0), O(ae, null, Ye(je.value, (o) => (y(), O("input", ne({
|
443
446
|
key: o.value,
|
package/dist/index39.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as te, ref as d, computed as p, onMounted as le, watch as oe, createElementBlock as y, openBlock as g, mergeProps as L, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as ne, renderList as se, normalizeProps as ie, guardReactiveProps as ue, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
|
2
|
-
import { head as de } from "./
|
3
|
-
import { isCssColor as Y } from "./
|
4
|
-
import { isNil as S } from "./
|
2
|
+
import { head as de } from "./index264.js";
|
3
|
+
import { isCssColor as Y } from "./index232.js";
|
4
|
+
import { isNil as S } from "./index260.js";
|
5
5
|
import { getAsPercentageBetween as T, getAsPercentage as me, getValueFromPercentageInInterval as x } from "./index136.js";
|
6
|
-
import { hash as j } from "./
|
7
|
-
import { snapToStep as ce } from "./
|
8
|
-
import { last as be } from "./
|
9
|
-
import { transpose as J } from "./
|
10
|
-
import { clamp as f } from "./
|
6
|
+
import { hash as j } from "./index216.js";
|
7
|
+
import { snapToStep as ce } from "./index265.js";
|
8
|
+
import { last as be } from "./index243.js";
|
9
|
+
import { transpose as J } from "./index266.js";
|
10
|
+
import { clamp as f } from "./index207.js";
|
11
11
|
const ve = { class: "bb-base-slider__slider-container" }, fe = {
|
12
12
|
key: 0,
|
13
13
|
class: "bb-base-slider__ticks-container"
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index232.js";
|
3
|
+
import { when as N } from "./index233.js";
|
4
4
|
const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index210.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 "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as $ } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index212.js";
|
7
|
+
import { useIndexById as T } from "./index213.js";
|
8
|
+
import { useBaseOptions as q } from "./index214.js";
|
9
|
+
import { useCoherence as J } from "./index215.js";
|
10
|
+
import { hash as Q } from "./index216.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index217.js";
|
12
|
+
import { usePrefill as X } from "./index218.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
|
|
3
3
|
/* empty css */
|
4
4
|
import ae from "./index111.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as le } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as re } from "./
|
9
|
-
import ie from "./
|
6
|
+
import { last as le } from "./index243.js";
|
7
|
+
import { useBaseOptions as ne } from "./index214.js";
|
8
|
+
import { useIndexById as re } from "./index213.js";
|
9
|
+
import ie from "./index247.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index249.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index225.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index227.js";
|
16
|
+
import { isEmpty as pe } from "./index242.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
|
18
18
|
__name: "BaseTag",
|
19
19
|
props: {
|