bitboss-ui 2.0.174 → 2.0.175
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/index106.js +7 -7
- package/dist/index113.js +1 -1
- package/dist/index121.js +9 -9
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +3 -3
- package/dist/index133.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +86 -2
- package/dist/index21.js +16 -16
- package/dist/index211.js +29 -2
- package/dist/index212.js +17 -13
- package/dist/index213.js +50 -65
- package/dist/index214.js +17 -0
- package/dist/index215.js +3 -34
- package/dist/index216.js +12 -4
- package/dist/index217.js +16 -13
- package/dist/index218.js +2 -11
- package/dist/index219.js +2 -20
- package/dist/index220.js +16 -198
- package/dist/index221.js +14 -0
- package/dist/index222.js +12 -119
- package/dist/index223.js +8 -0
- package/dist/index224.js +4 -2
- package/dist/index225.js +106 -2
- package/dist/index227.js +100 -5
- package/dist/index229.js +66 -5
- package/dist/index23.js +15 -15
- package/dist/index231.js +13 -5
- package/dist/index232.js +120 -5
- package/dist/index234.js +228 -2
- package/dist/index235.js +2 -2
- package/dist/index236.js +2 -51
- package/dist/index237.js +2 -17
- package/dist/index238.js +41 -106
- package/dist/index239.js +9 -0
- package/dist/index240.js +11 -96
- package/dist/index241.js +12 -0
- package/dist/index242.js +3 -86
- package/dist/index243.js +5 -0
- package/dist/index244.js +33 -28
- package/dist/index245.js +176 -15
- package/dist/index246.js +5 -15
- package/dist/index247.js +5 -12
- package/dist/index248.js +5 -41
- package/dist/index249.js +5 -6
- package/dist/index25.js +5 -5
- package/dist/index250.js +5 -7
- package/dist/index251.js +5 -15
- package/dist/index252.js +5 -177
- package/dist/index253.js +8 -5
- package/dist/index254.js +250 -5
- package/dist/index255.js +50 -6
- package/dist/index256.js +36 -242
- package/dist/index257.js +5 -52
- package/dist/index258.js +47 -31
- package/dist/index259.js +4 -5
- package/dist/index260.js +11 -60
- package/dist/index261.js +18 -16
- package/dist/index262.js +200 -12
- package/dist/index264.js +5 -3
- package/dist/index265.js +2 -6
- package/dist/index266.js +2 -16
- package/dist/index267.js +6 -10
- package/dist/index268.js +16 -3
- package/dist/index269.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -9
- package/dist/index271.js +23 -9
- package/dist/index272.js +9 -23
- package/dist/index273.js +1 -1
- package/dist/index275.js +67 -5
- package/dist/index276.js +5 -67
- package/dist/index278.js +1 -1
- package/dist/index279.js +1 -1
- package/dist/index280.js +3 -4
- package/dist/index281.js +19 -0
- package/dist/index282.js +28 -7
- package/dist/index283.js +471 -3
- package/dist/index284.js +1 -1
- package/dist/index285.js +7 -3
- package/dist/index286.js +11 -3
- package/dist/index287.js +3 -6
- package/dist/index288.js +3 -10
- package/dist/index289.js +5 -4
- package/dist/index29.js +2 -2
- package/dist/index290.js +197 -25
- package/dist/index291.js +3 -280
- package/dist/index292.js +3 -2
- package/dist/index293.js +3 -125
- package/dist/index295.js +7 -15
- package/dist/index296.js +3 -2
- package/dist/index297.js +2 -16
- package/dist/index298.js +3 -2
- package/dist/index299.js +277 -13
- package/dist/index300.js +2 -2
- package/dist/index301.js +12 -15
- package/dist/index303.js +15 -5
- package/dist/index304.js +2 -3
- package/dist/index305.js +19 -3
- package/dist/index306.js +2 -17
- package/dist/index307.js +15 -3
- package/dist/index308.js +2 -471
- package/dist/index309.js +19 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -200
- package/dist/index311.js +23 -15
- package/dist/index313.js +2 -27
- package/dist/index314.js +2 -2
- package/dist/index316.js +1 -1
- package/dist/index317.js +21 -1
- package/dist/index319.js +6 -22
- package/dist/index320.js +127 -0
- package/dist/index321.js +2 -2
- package/dist/index322.js +2 -5
- package/dist/index323.js +5 -701
- package/dist/index324.js +699 -352
- package/dist/index325.js +354 -58
- package/dist/index326.js +58 -5
- package/dist/index327.js +1 -1
- package/dist/index328.js +227 -7
- package/dist/index329.js +128 -5
- package/dist/index33.js +8 -8
- package/dist/index330.js +367 -6
- package/dist/index331.js +6 -128
- package/dist/index332.js +16 -366
- package/dist/index333.js +6 -32
- package/dist/index334.js +47 -28
- package/dist/index335.js +10 -0
- package/dist/index336.js +5 -6
- package/dist/index337.js +8 -19
- package/dist/index338.js +57 -227
- package/dist/index339.js +58 -47
- package/dist/index340.js +32 -6
- package/dist/index341.js +27 -57
- package/dist/index343.js +1 -1
- package/dist/index344.js +131 -0
- package/dist/index345.js +436 -3
- package/dist/index346.js +121 -123
- package/dist/index347.js +467 -421
- package/dist/index349.js +3 -482
- package/dist/index35.js +4 -4
- package/dist/index37.js +102 -102
- package/dist/index39.js +4 -4
- 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/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/package.json +2 -2
- package/dist/index210.js +0 -6
- package/dist/index226.js +0 -5
- package/dist/index228.js +0 -7
- package/dist/index230.js +0 -7
- package/dist/index233.js +0 -4
- package/dist/index263.js +0 -230
- package/dist/index294.js +0 -4
- package/dist/index318.js +0 -4
- package/dist/index342.js +0 -60
- package/dist/index348.js +0 -129
package/dist/index37.js
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
import { defineComponent as Ge, ref as f, computed as y, toRef as L, createBlock as T, openBlock as h, normalizeClass as
|
1
|
+
import { defineComponent as Ge, ref as f, computed as y, toRef as L, createBlock as T, openBlock as h, normalizeClass as te, withCtx as i, createVNode as j, createElementBlock as O, unref as g, createCommentVNode as R, renderSlot as p, normalizeStyle as le, mergeProps as ae, createElementVNode as U, withDirectives as _e, Fragment as oe, toDisplayString as Je, withKeys as w, withModifiers as m, vModelDynamic as Qe, renderList as Xe, nextTick as G } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as Ye } from "./index8.js";
|
5
5
|
import { useMobile as Ze } from "./index9.js";
|
6
6
|
import et from "./index111.js";
|
7
7
|
/* empty css */
|
8
|
-
import { hash as tt } from "./
|
9
|
-
import { isEmpty as lt } from "./
|
10
|
-
import { last as at } from "./
|
11
|
-
import { matchAnyKey as
|
12
|
-
import { useArray as ot } from "./
|
13
|
-
import { useBaseOptions as nt } from "./
|
14
|
-
import { useCoherence as ut } from "./
|
15
|
-
import { useHashedWatcher as
|
16
|
-
import { useIndexById as
|
8
|
+
import { hash as tt } from "./index215.js";
|
9
|
+
import { isEmpty as lt } from "./index218.js";
|
10
|
+
import { last as at } from "./index219.js";
|
11
|
+
import { matchAnyKey as ne } from "./index220.js";
|
12
|
+
import { useArray as ot } from "./index221.js";
|
13
|
+
import { useBaseOptions as nt } from "./index213.js";
|
14
|
+
import { useCoherence as ut } from "./index214.js";
|
15
|
+
import { useHashedWatcher as ue } from "./index216.js";
|
16
|
+
import { useIndexById as ie } from "./index212.js";
|
17
17
|
import { useMounted as it, useIntersectionObserver as rt } from "./index137.js";
|
18
|
-
import { useItemsGetter as st } from "./
|
19
|
-
import { useLocale as dt } from "./
|
20
|
-
import { usePrefill as ct } from "./
|
18
|
+
import { useItemsGetter as st } from "./index211.js";
|
19
|
+
import { useLocale as dt } from "./index222.js";
|
20
|
+
import { usePrefill as ct } from "./index217.js";
|
21
21
|
import { wait as F } from "./index135.js";
|
22
|
-
import { waitFor as pt } from "./
|
23
|
-
import { when as mt } from "./
|
24
|
-
import ft from "./
|
22
|
+
import { waitFor as pt } from "./index223.js";
|
23
|
+
import { when as mt } from "./index224.js";
|
24
|
+
import ft from "./index225.js";
|
25
25
|
/* empty css */
|
26
|
-
import vt from "./
|
26
|
+
import vt from "./index227.js";
|
27
27
|
/* empty css */
|
28
|
-
import yt from "./
|
28
|
+
import yt from "./index229.js";
|
29
29
|
/* empty css */
|
30
|
-
import ht from "./
|
31
|
-
import bt from "./
|
30
|
+
import ht from "./index231.js";
|
31
|
+
import bt from "./index232.js";
|
32
32
|
/* empty css */
|
33
|
-
import gt from "./
|
33
|
+
import gt from "./index234.js";
|
34
34
|
const wt = { class: "bb-base-select__input-container" }, Bt = {
|
35
35
|
key: 1,
|
36
36
|
class: "bb-base-select__max-reached"
|
@@ -78,65 +78,65 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
78
78
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
79
79
|
},
|
80
80
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
|
81
|
-
setup(
|
82
|
-
const t =
|
81
|
+
setup(re, { emit: se }) {
|
82
|
+
const t = re, n = se;
|
83
83
|
if (t.multiple && !Array.isArray(t.modelValue))
|
84
84
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
85
|
-
const { t:
|
85
|
+
const { t: de } = dt(), ce = it(), E = f(null), $ = f(null), u = f(null), _ = f(null), J = f(null), s = y(
|
86
86
|
() => t.comma ? _.value : J.value
|
87
|
-
), { isMobile:
|
88
|
-
() => t.allowWriting === "not-mobile" &&
|
87
|
+
), { isMobile: pe } = Ze(), me = y(
|
88
|
+
() => t.allowWriting === "not-mobile" && pe.value ? "none" : void 0
|
89
89
|
), Q = t.id || Ye().id.value;
|
90
90
|
rt(
|
91
91
|
// @ts-expect-error - wrong inferred type
|
92
|
-
|
92
|
+
$,
|
93
93
|
([{ intersectionRatio: e }]) => {
|
94
|
-
e !== 1 &&
|
94
|
+
e !== 1 && C();
|
95
95
|
},
|
96
96
|
{ threshold: [0, 1] }
|
97
97
|
);
|
98
|
-
const
|
98
|
+
const fe = y(() => {
|
99
99
|
var l;
|
100
100
|
const e = {
|
101
101
|
zIndex: "10"
|
102
102
|
};
|
103
|
-
return
|
103
|
+
return $.value && (e.width = `${(l = $.value) == null ? void 0 : l.$el.clientWidth}px`), e;
|
104
104
|
}), x = f(null), A = () => {
|
105
105
|
x.value instanceof HTMLInputElement && x.value.focus();
|
106
|
-
},
|
107
|
-
n("focus", e), We(), document.addEventListener("click",
|
108
|
-
},
|
109
|
-
t.prefill === "focus" &&
|
110
|
-
},
|
106
|
+
}, ve = async (e) => {
|
107
|
+
n("focus", e), We(), document.addEventListener("click", D), document.addEventListener("focusin", D);
|
108
|
+
}, ye = () => {
|
109
|
+
t.prefill === "focus" && !De.value && !Y.value && He();
|
110
|
+
}, he = async (e) => {
|
111
111
|
n("blur", e);
|
112
|
-
},
|
112
|
+
}, be = (e) => n("change", e), ge = (e) => {
|
113
113
|
var l;
|
114
|
-
n("input", e), o.value === "" && (t.multiple || n("update:modelValue", null)), (l = s.value) == null || l.blur(), W.value &&
|
115
|
-
},
|
114
|
+
n("input", e), o.value === "" && (t.multiple || n("update:modelValue", null)), (l = s.value) == null || l.blur(), W.value && I(), Oe(o.value, !1, t.modelValue);
|
115
|
+
}, D = async (e) => {
|
116
116
|
var l, a;
|
117
117
|
if (e.target instanceof Node && E.value && !E.value.$el.contains(e.target) && !((a = (l = u.value) == null ? void 0 : l.$el) != null && a.contains(e.target))) {
|
118
|
-
|
118
|
+
C(), ze(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await F(t.transitionDuration), b();
|
119
119
|
return;
|
120
120
|
}
|
121
|
-
}, B = y(() => !(t.readonly || t.disabled || H.value || !s.value && t.multiple && r.value.length <= t.maxSelectedLabels)),
|
121
|
+
}, B = y(() => !(t.readonly || t.disabled || H.value || !s.value && t.multiple && r.value.length <= t.maxSelectedLabels)), we = async () => {
|
122
122
|
var e, l, a;
|
123
|
-
B.value && ((e = s.value) == null || e.blur(), d.value ? (l = u.value) == null || l.focusPrevious() : (await
|
124
|
-
},
|
123
|
+
B.value && ((e = s.value) == null || e.blur(), d.value ? (l = u.value) == null || l.focusPrevious() : (await I(), await F(t.transitionDuration), (a = u.value) == null || a.focusLastSelected()));
|
124
|
+
}, Be = async () => {
|
125
125
|
var e, l, a;
|
126
|
-
B.value && ((e = s.value) == null || e.blur(), d.value ? (l = u.value) == null || l.focusNext() : (await
|
127
|
-
},
|
128
|
-
var a, c, v,
|
126
|
+
B.value && ((e = s.value) == null || e.blur(), d.value ? (l = u.value) == null || l.focusNext() : (await I(), await F(t.transitionDuration), (a = u.value) == null || a.focusFirstSelected()));
|
127
|
+
}, Ve = (e) => {
|
128
|
+
var a, c, v, S;
|
129
129
|
if (!B.value || !t.multiple || o.value || (e.preventDefault(), (a = u.value) == null || a.blur(), !r.value.length)) return;
|
130
130
|
(c = s.value) == null || c.focusPrevious();
|
131
131
|
const l = (v = s.value) == null ? void 0 : v.getHighlighted();
|
132
|
-
l && ((
|
133
|
-
},
|
134
|
-
var a, c, v,
|
132
|
+
l && ((S = u.value) == null || S.focusByHash(l.valueHash));
|
133
|
+
}, ke = (e) => {
|
134
|
+
var a, c, v, S;
|
135
135
|
if (!B.value || !t.multiple || o.value || (e.preventDefault(), (a = u.value) == null || a.blur(), !r.value.length)) return;
|
136
136
|
(c = s.value) == null || c.focusNext();
|
137
137
|
const l = (v = s.value) == null ? void 0 : v.getHighlighted();
|
138
|
-
l && ((
|
139
|
-
},
|
138
|
+
l && ((S = u.value) == null || S.focusByHash(l.valueHash));
|
139
|
+
}, Ie = async () => {
|
140
140
|
var l, a;
|
141
141
|
if (!B.value)
|
142
142
|
return;
|
@@ -146,53 +146,53 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
146
146
|
return;
|
147
147
|
}
|
148
148
|
} else {
|
149
|
-
await
|
149
|
+
await I(), await F(t.transitionDuration), r.value.length && ((l = u.value) == null || l.focusFirstSelected());
|
150
150
|
return;
|
151
151
|
}
|
152
152
|
const e = o.value.trim();
|
153
153
|
xe(e) || (n("option:add", e), o.value = "");
|
154
|
-
}, Ie = async () => {
|
155
|
-
d.value && await I();
|
156
154
|
}, Ce = async () => {
|
155
|
+
d.value && await C();
|
156
|
+
}, Se = async () => {
|
157
157
|
var e, l;
|
158
158
|
!B.value || o.value || !r.value.length || ((e = s.value) != null && e.getHighlighted() && s.value.confirmOption(), await G(), (l = s.value) == null || l.focusPrevious());
|
159
159
|
}, o = f(""), {
|
160
160
|
getter: q,
|
161
|
-
debouncedGetter:
|
162
|
-
items:
|
161
|
+
debouncedGetter: Oe,
|
162
|
+
items: $e,
|
163
163
|
loading: X
|
164
164
|
} = st({
|
165
165
|
items: L(t, "items"),
|
166
166
|
debounce: t.queryDebounceTime
|
167
167
|
}), M = () => {
|
168
168
|
var e, l;
|
169
|
-
t.enforceCoherence && !
|
169
|
+
t.enforceCoherence && !ee.value && (t.multiple ? n("update:modelValue", Pe.value.coherent) : n("update:modelValue", null), (e = s.value) == null || e.blur(), (l = u.value) == null || l.blur());
|
170
170
|
}, {
|
171
171
|
hasPrefilled: Y,
|
172
|
-
isPrefilling:
|
173
|
-
prefill:
|
172
|
+
isPrefilling: De,
|
173
|
+
prefill: He
|
174
174
|
} = ct({
|
175
175
|
onStart: t.prefill === !0,
|
176
176
|
currentValue: t.modelValue,
|
177
177
|
multiple: t.multiple,
|
178
178
|
fn: async ({ prefill: e }) => {
|
179
|
-
await q(o.value, e, t.modelValue), M(), b();
|
179
|
+
await q(o.value, e, t.modelValue), t.stash && Z(...k.value.map((l) => l.item)), M(), b();
|
180
180
|
}
|
181
181
|
}), {
|
182
|
-
array:
|
183
|
-
add:
|
182
|
+
array: Le,
|
183
|
+
add: Z,
|
184
184
|
remove: Te,
|
185
185
|
set: Fe
|
186
186
|
} = ot(), r = y(() => {
|
187
187
|
const e = Object.fromEntries(
|
188
188
|
Object.entries(P.value).map(([l], a) => [l, a])
|
189
189
|
);
|
190
|
-
return
|
191
|
-
}), Ee = y(() => r.value.length ? "" : t.placeholder), { data: P, get: xe } =
|
190
|
+
return k.value.filter((l) => l.selected).sort((l, a) => e[l.valueHash] - e[a.valueHash]);
|
191
|
+
}), Ee = y(() => r.value.length ? "" : t.placeholder), { data: P, get: xe } = ie({
|
192
192
|
items: L(t, "modelValue")
|
193
|
-
}), { options:
|
193
|
+
}), { options: k } = nt({
|
194
194
|
disabled: L(t, "disabled"),
|
195
|
-
items: y(() => [
|
195
|
+
items: y(() => [...$e.value, ...Le.value]),
|
196
196
|
itemText: t.itemText,
|
197
197
|
itemValue: t.itemValue,
|
198
198
|
max: t.max,
|
@@ -203,10 +203,10 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
203
203
|
const l = r.value.some(
|
204
204
|
(c) => c.text === o.value
|
205
205
|
);
|
206
|
-
return (t.multiple && o.value || o.value && !l && !t.multiple) && t.filterBy ? e =
|
206
|
+
return (t.multiple && o.value || o.value && !l && !t.multiple) && t.filterBy ? e = k.value.filter((c) => {
|
207
207
|
let v = !1;
|
208
|
-
return typeof t.filterBy == "function" ? v = t.filterBy(c.value, c.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v ||
|
209
|
-
}) : e =
|
208
|
+
return typeof t.filterBy == "function" ? v = t.filterBy(c.value, c.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || ne(c.item, t.filterBy, o.value.trim())), v || ne(c, ["text"], o.value.trim());
|
209
|
+
}) : e = k.value, e;
|
210
210
|
}), b = () => {
|
211
211
|
if (t.multiple) {
|
212
212
|
o.value = "";
|
@@ -215,7 +215,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
215
215
|
let e;
|
216
216
|
r.value && (e = at(r.value)), o.value = (e == null ? void 0 : e.text) || "";
|
217
217
|
}, qe = async (e) => {
|
218
|
-
t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash &&
|
218
|
+
t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && Z(e.item), b()) : (t.stash && Fe(e.item), n("update:modelValue", e.value), await G(), b()), A(), t.multiple || C();
|
219
219
|
}, N = async (e) => {
|
220
220
|
if (Te((l) => l.valueHash !== e.valueHash), t.multiple) {
|
221
221
|
const l = { ...P.value };
|
@@ -223,24 +223,24 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
223
223
|
} else
|
224
224
|
n("update:modelValue", null), await G(), b();
|
225
225
|
A();
|
226
|
-
}, { data: Me } =
|
227
|
-
items:
|
226
|
+
}, { data: Me } = ie({
|
227
|
+
items: k,
|
228
228
|
key: "valueHash"
|
229
|
-
}), { coherent:
|
229
|
+
}), { coherent: ee, status: Pe } = ut({
|
230
230
|
modelValue: L(t, "modelValue"),
|
231
231
|
multiple: t.multiple,
|
232
232
|
iteratee: (e) => !!Me.value[tt(e)]
|
233
233
|
});
|
234
234
|
let V = 0;
|
235
|
-
|
235
|
+
ue(
|
236
236
|
() => t.modelValue,
|
237
237
|
async () => {
|
238
|
-
V++,
|
238
|
+
V++, ee.value || (await q(o.value, !1, t.modelValue), M()), V === 1 && b(), V--;
|
239
239
|
},
|
240
240
|
{
|
241
241
|
debounce: t.modelValueDebounceTime
|
242
242
|
}
|
243
|
-
),
|
243
|
+
), ue(
|
244
244
|
() => [t.dependencies, t.items],
|
245
245
|
async () => {
|
246
246
|
Y.value && (V++, await q(o.value, !1, t.modelValue), V === 1 && (M(), b()), V--);
|
@@ -249,12 +249,12 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
249
249
|
debounce: t.depsDebounceTime
|
250
250
|
}
|
251
251
|
);
|
252
|
-
const d = f(!1), W = f(!0), z = f(!1),
|
252
|
+
const d = f(!1), W = f(!0), z = f(!1), I = async () => {
|
253
253
|
z.value = !0, await pt(() => !!u.value), W.value = !1, d.value = !0;
|
254
|
-
},
|
254
|
+
}, C = async () => {
|
255
255
|
var e;
|
256
256
|
d.value = !1, W.value = !0, (e = s.value) == null || e.blur();
|
257
|
-
}, Ne = () => d.value ?
|
257
|
+
}, Ne = () => d.value ? C() : I(), K = f(!1), We = () => {
|
258
258
|
K.value = !0;
|
259
259
|
}, ze = () => {
|
260
260
|
K.value = !1, n("inactive");
|
@@ -278,7 +278,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
278
278
|
return (e, l) => (h(), T(ht, {
|
279
279
|
ref_key: "outerContainer",
|
280
280
|
ref: E,
|
281
|
-
class:
|
281
|
+
class: te({
|
282
282
|
"bb-base-select": !0,
|
283
283
|
"bb-base-select--active": K.value,
|
284
284
|
"bb-base-select--shown": d.value,
|
@@ -299,7 +299,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
299
299
|
default: i(() => [
|
300
300
|
j(yt, {
|
301
301
|
ref_key: "innerContainer",
|
302
|
-
ref:
|
302
|
+
ref: $,
|
303
303
|
"append:icon": t["append:icon"],
|
304
304
|
clearable: e.clearable && !g(lt)(e.modelValue),
|
305
305
|
"prepend:icon": t["prepend:icon"],
|
@@ -335,7 +335,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
335
335
|
"no-data-text": e.noDataText,
|
336
336
|
open: d.value,
|
337
337
|
options: Ae.value,
|
338
|
-
style:
|
338
|
+
style: le(fe.value),
|
339
339
|
"onOption:selected": qe,
|
340
340
|
"onOption:unselected": N
|
341
341
|
}, {
|
@@ -352,7 +352,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
352
352
|
p(e.$slots, "options:append")
|
353
353
|
]),
|
354
354
|
option: i((a) => [
|
355
|
-
p(e.$slots, "option",
|
355
|
+
p(e.$slots, "option", ae({
|
356
356
|
hasErrors: e.hasErrors,
|
357
357
|
loading: H.value
|
358
358
|
}, a))
|
@@ -365,7 +365,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
365
365
|
j(g(et), { tag: "span" }, {
|
366
366
|
default: i(() => [
|
367
367
|
U("span", wt, [
|
368
|
-
e.multiple && r.value.length <= e.maxSelectedLabels ? (h(),
|
368
|
+
e.multiple && r.value.length <= e.maxSelectedLabels ? (h(), O(oe, { key: 0 }, [
|
369
369
|
e.comma ? (h(), T(vt, {
|
370
370
|
key: 0,
|
371
371
|
ref_key: "commaBox",
|
@@ -379,10 +379,10 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
379
379
|
options: r.value,
|
380
380
|
"onOption:unselected": N
|
381
381
|
}, null, 8, ["options"]))
|
382
|
-
], 64)) : e.multiple ? (h(),
|
383
|
-
_e((h(),
|
382
|
+
], 64)) : e.multiple ? (h(), O("span", Bt, Je(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) : g(de)("select.multipleMaxReached", r.value.length)), 1)) : R("", !0),
|
383
|
+
_e((h(), O("input", {
|
384
384
|
id: g(Q),
|
385
|
-
key: `${g(
|
385
|
+
key: `${g(ce)}`,
|
386
386
|
ref_key: "input",
|
387
387
|
ref: x,
|
388
388
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => o.value = a),
|
@@ -392,29 +392,29 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
392
392
|
"aria-expanded": d.value,
|
393
393
|
autocomplete: e.autocomplete,
|
394
394
|
autofocus: e.autofocus,
|
395
|
-
class:
|
395
|
+
class: te("bb-base-select__text-input"),
|
396
396
|
disabled: e.disabled,
|
397
|
-
inputmode:
|
397
|
+
inputmode: me.value,
|
398
398
|
placeholder: Ee.value,
|
399
399
|
readonly: e.readonly || !e.allowWriting,
|
400
400
|
required: e.required && (!e.multiple || !e.modelValue.length),
|
401
401
|
role: "combobox",
|
402
402
|
size: "1",
|
403
|
-
style:
|
403
|
+
style: le({ "--characters": o.value.length }),
|
404
404
|
type: "text",
|
405
|
-
onBlur: m(
|
406
|
-
onChange: m(
|
407
|
-
onFocusOnce: m(
|
408
|
-
onFocus: m(
|
409
|
-
onInput: m(
|
405
|
+
onBlur: m(he, ["stop"]),
|
406
|
+
onChange: m(be, ["stop"]),
|
407
|
+
onFocusOnce: m(ye, ["stop"]),
|
408
|
+
onFocus: m(ve, ["stop"]),
|
409
|
+
onInput: m(ge, ["stop"]),
|
410
410
|
onKeydown: [
|
411
|
-
w(m(
|
412
|
-
w(m(
|
413
|
-
w(m(
|
414
|
-
w(m(
|
415
|
-
w(m(
|
416
|
-
w(m(
|
417
|
-
w(m(
|
411
|
+
w(m(Se, ["stop"]), ["delete"]),
|
412
|
+
w(m(Ve, ["stop"]), ["left"]),
|
413
|
+
w(m(Be, ["stop", "prevent"]), ["down"]),
|
414
|
+
w(m(Ie, ["stop", "prevent"]), ["enter"]),
|
415
|
+
w(m(Ce, ["stop", "prevent"]), ["esc"]),
|
416
|
+
w(m(we, ["stop", "prevent"]), ["up"]),
|
417
|
+
w(m(ke, ["stop"]), ["right"])
|
418
418
|
]
|
419
419
|
}, null, 44, Vt)), [
|
420
420
|
[Qe, o.value]
|
@@ -442,7 +442,7 @@ const wt = { class: "bb-base-select__input-container" }, Bt = {
|
|
442
442
|
]),
|
443
443
|
_: 3
|
444
444
|
}, 8, ["append:icon", "clearable", "prepend:icon"]),
|
445
|
-
(h(!0),
|
445
|
+
(h(!0), O(oe, null, Xe(Re.value, (a) => (h(), O("input", ae({
|
446
446
|
key: a.value,
|
447
447
|
ref_for: !0
|
448
448
|
}, a), null, 16))), 128))
|
package/dist/index39.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, createElementBlock as g, openBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, createCommentVNode as H, Fragment as ee, renderList as ae, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeStyle as F, normalizeClass as I } from "vue";
|
2
2
|
import { clamp as le } from "./index207.js";
|
3
|
-
import { head as O } from "./
|
4
|
-
import { isCssColor as Y } from "./
|
5
|
-
import { isNil as P } from "./
|
3
|
+
import { head as O } from "./index235.js";
|
4
|
+
import { isCssColor as Y } from "./index236.js";
|
5
|
+
import { isNil as P } from "./index237.js";
|
6
6
|
import { isNotNil as ne } from "./index140.js";
|
7
7
|
import { transposeValue as y } from "./index136.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index215.js";
|
9
9
|
const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
10
10
|
key: 0,
|
11
11
|
class: "bb-base-slider__ticks-container"
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, 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 "./index236.js";
|
3
|
+
import { when as N } from "./index224.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 "./index209.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 "./index211.js";
|
7
|
+
import { useIndexById as T } from "./index212.js";
|
8
|
+
import { useBaseOptions as q } from "./index213.js";
|
9
|
+
import { useCoherence as J } from "./index214.js";
|
10
|
+
import { hash as Q } from "./index215.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index216.js";
|
12
|
+
import { usePrefill as X } from "./index217.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 "./index219.js";
|
7
|
+
import { useBaseOptions as ne } from "./index213.js";
|
8
|
+
import { useIndexById as re } from "./index212.js";
|
9
|
+
import ie from "./index225.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index227.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index229.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index231.js";
|
16
|
+
import { isEmpty as pe } from "./index218.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: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index231.js";
|
3
|
+
import G from "./index229.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index111.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
|
2
|
-
import E from "./
|
2
|
+
import E from "./index229.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
4
|
+
import I from "./index231.js";
|
5
5
|
import { isNotNil as N } from "./index140.js";
|
6
|
-
import { MaskInput as z } from "./
|
6
|
+
import { MaskInput as z } from "./index245.js";
|
7
7
|
const D = ["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/index53.js
CHANGED
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 "./index236.js";
|
3
3
|
import { wait as C } from "./index135.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 "./index236.js";
|
3
|
+
import { isNil as B } from "./index237.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,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index241.js";
|
11
|
+
import { noop as w } from "./index242.js";
|
12
|
+
import { useLocale as D } from "./index222.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index222.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as N, computed as R, ref as g, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as T, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
|
-
import { findRightIndex as D } from "./
|
2
|
+
import { findRightIndex as D } from "./index270.js";
|
3
3
|
import { useId as te } from "./index8.js";
|
4
|
-
import { useUntil as ne } from "./
|
4
|
+
import { useUntil as ne } from "./index260.js";
|
5
5
|
import { wait as oe } from "./index135.js";
|
6
6
|
import ae from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import B from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import le from "./
|
10
|
+
import le from "./index232.js";
|
11
11
|
/* empty css */
|
12
|
-
import K from "./
|
12
|
+
import K from "./index271.js";
|
13
13
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, ge = /* @__PURE__ */ N({
|
14
14
|
__name: "BbDropdown",
|
15
15
|
props: {
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index222.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index268.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index267.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index236.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|