bitboss-ui 2.0.108 → 2.0.109
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/index100.js +9 -9
- package/dist/index111.js +12 -12
- package/dist/index119.js +1 -1
- package/dist/index121.js +6 -6
- package/dist/index125.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index205.js +2 -115
- package/dist/index206.js +105 -116
- package/dist/index207.js +8 -281
- package/dist/index208.js +3 -125
- package/dist/index209.js +2 -16
- package/dist/index21.js +16 -16
- package/dist/index210.js +4 -16
- package/dist/index211.js +2 -19
- package/dist/index212.js +53 -15
- package/dist/index214.js +13 -2
- package/dist/index215.js +20 -41
- package/dist/index216.js +4 -13
- package/dist/index217.js +13 -20
- package/dist/index218.js +126 -6
- package/dist/index219.js +5 -15
- package/dist/index220.js +124 -52
- package/dist/index221.js +18 -0
- package/dist/index222.js +16 -13
- package/dist/index223.js +19 -5
- package/dist/index224.js +14 -368
- package/dist/index225.js +2 -4
- package/dist/index226.js +2 -8
- package/dist/index227.js +41 -3
- package/dist/index228.js +6 -2
- package/dist/index229.js +15 -4
- package/dist/index23.js +18 -18
- package/dist/index230.js +5 -2
- package/dist/index231.js +369 -2
- package/dist/index232.js +86 -19
- package/dist/index234.js +23 -248
- package/dist/index235.js +17 -52
- package/dist/index236.js +47 -43
- package/dist/index237.js +15 -5
- package/dist/index238.js +12 -60
- package/dist/index239.js +16 -3
- package/dist/index240.js +3 -3
- package/dist/index241.js +3 -7
- package/dist/index242.js +7 -86
- package/dist/index243.js +21 -0
- package/dist/index244.js +27 -25
- package/dist/index245.js +250 -17
- package/dist/index246.js +50 -46
- package/dist/index247.js +44 -15
- package/dist/index248.js +5 -12
- package/dist/index249.js +60 -16
- package/dist/index25.js +7 -7
- package/dist/index250.js +2 -2
- package/dist/index251.js +18 -2
- package/dist/index252.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index256.js +12 -2
- package/dist/index257.js +2 -18
- package/dist/index258.js +2 -12
- package/dist/index261.js +27 -8
- package/dist/index262.js +9 -23
- package/dist/index263.js +23 -90
- package/dist/index264.js +92 -0
- package/dist/index266.js +8 -0
- package/dist/index267.js +16 -7
- package/dist/index268.js +3 -175
- package/dist/index269.js +9 -7
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -11
- package/dist/index272.js +7 -16
- package/dist/index273.js +176 -9
- package/dist/index274.js +7 -8
- package/dist/index275.js +10 -27
- package/dist/index276.js +281 -4
- package/dist/index285.js +1 -1
- package/dist/index286.js +1 -1
- package/dist/index289.js +3 -9
- package/dist/index29.js +3 -3
- package/dist/index290.js +17 -2
- package/dist/index291.js +9 -2
- package/dist/index292.js +8 -2
- package/dist/index293.js +224 -2
- package/dist/index294.js +2 -2
- package/dist/index295.js +2 -2
- package/dist/index296.js +1 -21
- package/dist/index297.js +4 -0
- package/dist/index298.js +2 -436
- package/dist/index299.js +2 -127
- package/dist/index300.js +21 -199
- package/dist/index302.js +89 -3
- package/dist/index303.js +197 -14
- package/dist/index304.js +428 -81
- package/dist/index305.js +127 -3
- package/dist/index306.js +1 -1
- package/dist/index307.js +3 -214
- package/dist/index308.js +214 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +1 -1
- package/dist/index311.js +2 -3
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +2 -32
- package/dist/index315.js +4 -53
- package/dist/index316.js +3 -53
- package/dist/index317.js +3 -4
- package/dist/index318.js +58 -3
- package/dist/index319.js +33 -3
- package/dist/index320.js +52 -57
- package/dist/index321.js +53 -7
- package/dist/index322.js +45 -17
- package/dist/index324.js +6 -46
- package/dist/index325.js +19 -2
- package/dist/index326.js +2 -480
- package/dist/index327.js +482 -0
- package/dist/index329.js +420 -43
- package/dist/index33.js +8 -8
- package/dist/index330.js +47 -2
- package/dist/index331.js +4 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +101 -101
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +27 -27
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +1 -1
- package/dist/index75.js +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +5 -5
- package/dist/index90.js +1 -1
- package/package.json +2 -2
- package/dist/index213.js +0 -4
- package/dist/index233.js +0 -29
- package/dist/index265.js +0 -5
- package/dist/index271.js +0 -8
- package/dist/index301.js +0 -226
- package/dist/index328.js +0 -426
package/dist/index37.js
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
import { defineComponent as Re, defineAsyncComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as x, normalizeClass as Z, withCtx as i, renderSlot as
|
1
|
+
import { defineComponent as Re, defineAsyncComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as x, normalizeClass as Z, withCtx as i, renderSlot as c, createVNode as K, unref as V, createElementVNode as H, createElementBlock as A, Fragment as ee, toDisplayString as je, createCommentVNode as te, withDirectives as Je, withModifiers as p, withKeys as g, vModelDynamic as Qe, renderList as Xe, mergeProps as oe, normalizeStyle as Ye, nextTick as _ } 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 "./index128.js";
|
7
7
|
/* empty css */
|
8
|
-
import { last as
|
9
|
-
import { matchAnyKey as
|
10
|
-
import { useFloating as
|
8
|
+
import { last as ot } from "./index226.js";
|
9
|
+
import { matchAnyKey as le } from "./index251.js";
|
10
|
+
import { useFloating as lt } from "./index218.js";
|
11
11
|
import { useIntersectionObserver as at } from "./index132.js";
|
12
12
|
import { wait as L } from "./index130.js";
|
13
|
-
import { when as nt } from "./
|
13
|
+
import { when as nt } from "./index210.js";
|
14
14
|
import it from "./index252.js";
|
15
15
|
/* empty css */
|
16
16
|
import ut from "./index254.js";
|
17
17
|
/* empty css */
|
18
|
-
import rt from "./
|
18
|
+
import rt from "./index212.js";
|
19
19
|
/* empty css */
|
20
|
-
import st from "./
|
21
|
-
import { waitFor as dt } from "./
|
22
|
-
import
|
23
|
-
import { useItemsGetter as
|
24
|
-
import { usePrefill as mt } from "./
|
25
|
-
import { useArray as ft } from "./
|
26
|
-
import { useBaseOptions as vt } from "./
|
27
|
-
import { useIndexById as ae } from "./
|
28
|
-
import { useCoherence as yt } from "./
|
29
|
-
import { hash as ht } from "./
|
30
|
-
import { useHashedWatcher as ne } from "./
|
31
|
-
import { useLocale as bt } from "./
|
32
|
-
import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./
|
20
|
+
import st from "./index214.js";
|
21
|
+
import { waitFor as dt } from "./index228.js";
|
22
|
+
import ct from "./index229.js";
|
23
|
+
import { useItemsGetter as pt } from "./index234.js";
|
24
|
+
import { usePrefill as mt } from "./index239.js";
|
25
|
+
import { useArray as ft } from "./index256.js";
|
26
|
+
import { useBaseOptions as vt } from "./index236.js";
|
27
|
+
import { useIndexById as ae } from "./index235.js";
|
28
|
+
import { useCoherence as yt } from "./index237.js";
|
29
|
+
import { hash as ht } from "./index208.js";
|
30
|
+
import { useHashedWatcher as ne } from "./index238.js";
|
31
|
+
import { useLocale as bt } from "./index217.js";
|
32
|
+
import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./index231.js";
|
33
33
|
const It = { class: "bb-base-select__input-container" }, kt = {
|
34
34
|
key: 1,
|
35
35
|
class: "bb-base-select__max-reached"
|
36
|
-
}, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"],
|
36
|
+
}, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ao = /* @__PURE__ */ Re({
|
37
37
|
__name: "BaseSelect",
|
38
38
|
props: {
|
39
39
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -78,9 +78,9 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
78
78
|
const t = ie, u = ue;
|
79
79
|
if (t.multiple && !Array.isArray(t.modelValue))
|
80
80
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
81
|
-
const { t: re } = bt(), se = Ge(() => import("./
|
82
|
-
() => t.comma ?
|
83
|
-
), { isMobile: de } = et(),
|
81
|
+
const { t: re } = bt(), se = Ge(() => import("./index250.js")), E = f(null), I = f(null), n = f(null), U = f(null), R = f(null), r = y(
|
82
|
+
() => t.comma ? U.value : R.value
|
83
|
+
), { isMobile: de } = et(), ce = y(
|
84
84
|
() => t.allowWriting === "not-mobile" && de.value ? "none" : void 0
|
85
85
|
), G = t.id || Ze().id.value;
|
86
86
|
at(
|
@@ -90,7 +90,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
90
90
|
},
|
91
91
|
{ threshold: [0, 1] }
|
92
92
|
);
|
93
|
-
const { floatingStyles:
|
93
|
+
const { floatingStyles: pe } = lt(
|
94
94
|
I,
|
95
95
|
n,
|
96
96
|
{
|
@@ -99,12 +99,12 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
99
99
|
middleware: [wt(), Bt(5), Vt()]
|
100
100
|
}
|
101
101
|
), me = y(() => {
|
102
|
-
var
|
102
|
+
var o;
|
103
103
|
const e = {
|
104
|
-
...
|
104
|
+
...pe.value,
|
105
105
|
zIndex: "10"
|
106
106
|
};
|
107
|
-
return I.value && (e.width = `${(
|
107
|
+
return I.value && (e.width = `${(o = I.value) == null ? void 0 : o.$el.clientWidth}px`), e;
|
108
108
|
}), F = f(null), q = () => {
|
109
109
|
F.value instanceof HTMLInputElement && F.value.focus();
|
110
110
|
}, fe = async (e) => {
|
@@ -114,33 +114,33 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
114
114
|
}, ye = async (e) => {
|
115
115
|
u("blur", e);
|
116
116
|
}, he = (e) => u("change", e), be = (e) => {
|
117
|
-
var
|
118
|
-
u("input", e),
|
117
|
+
var o;
|
118
|
+
u("input", e), l.value === "" && (t.multiple || u("update:modelValue", null)), (o = r.value) == null || o.blur(), N.value && k(), Ce(l.value, !1, t.modelValue);
|
119
119
|
}, D = async (e) => {
|
120
120
|
if (e.target instanceof Node && E.value && n.value && !E.value.$el.contains(e.target) && !n.value.$el.contains(e.target)) {
|
121
121
|
S(), ze(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), b();
|
122
122
|
return;
|
123
123
|
}
|
124
124
|
}, w = y(() => !(t.readonly || t.disabled || O.value || !r.value && t.multiple)), ge = async () => {
|
125
|
-
var e,
|
126
|
-
w.value && ((e = r.value) == null || e.blur(), m.value ? (
|
125
|
+
var e, o, a;
|
126
|
+
w.value && ((e = r.value) == null || e.blur(), m.value ? (o = n.value) == null || o.focusPrevious() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusLastSelected()));
|
127
127
|
}, we = async () => {
|
128
|
-
var e,
|
129
|
-
w.value && ((e = r.value) == null || e.blur(), m.value ? (
|
128
|
+
var e, o, a;
|
129
|
+
w.value && ((e = r.value) == null || e.blur(), m.value ? (o = n.value) == null || o.focusNext() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusFirstSelected()));
|
130
130
|
}, Be = (e) => {
|
131
131
|
var a, d, v, C;
|
132
|
-
if (!w.value || !t.multiple ||
|
132
|
+
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
|
133
133
|
(d = r.value) == null || d.focusPrevious();
|
134
|
-
const
|
135
|
-
|
134
|
+
const o = (v = r.value) == null ? void 0 : v.getHighlighted();
|
135
|
+
o && ((C = n.value) == null || C.focusByHash(o.valueHash));
|
136
136
|
}, Ve = (e) => {
|
137
137
|
var a, d, v, C;
|
138
|
-
if (!w.value || !t.multiple ||
|
138
|
+
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
|
139
139
|
(d = r.value) == null || d.focusNext();
|
140
|
-
const
|
141
|
-
|
140
|
+
const o = (v = r.value) == null ? void 0 : v.getHighlighted();
|
141
|
+
o && ((C = n.value) == null || C.focusByHash(o.valueHash));
|
142
142
|
}, Ie = async () => {
|
143
|
-
var
|
143
|
+
var o, a;
|
144
144
|
if (!w.value)
|
145
145
|
return;
|
146
146
|
if (m.value) {
|
@@ -149,27 +149,27 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
149
149
|
return;
|
150
150
|
}
|
151
151
|
} else {
|
152
|
-
await k(), await L(t.transitionDuration), s.value.length && ((
|
152
|
+
await k(), await L(t.transitionDuration), s.value.length && ((o = n.value) == null || o.focusFirstSelected());
|
153
153
|
return;
|
154
154
|
}
|
155
|
-
const e =
|
156
|
-
Ee(e) || (u("option:add", e),
|
155
|
+
const e = l.value.trim();
|
156
|
+
Ee(e) || (u("option:add", e), l.value = "");
|
157
157
|
}, ke = async () => {
|
158
158
|
m.value && await S();
|
159
159
|
}, Se = async () => {
|
160
|
-
var e,
|
161
|
-
!w.value ||
|
162
|
-
},
|
160
|
+
var e, o;
|
161
|
+
!w.value || l.value || !s.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await _(), (o = r.value) == null || o.focusPrevious());
|
162
|
+
}, l = f(""), {
|
163
163
|
getter: M,
|
164
164
|
debouncedGetter: Ce,
|
165
165
|
items: De,
|
166
166
|
loading: j
|
167
|
-
} =
|
167
|
+
} = pt({
|
168
168
|
items: T(t, "items"),
|
169
169
|
debounce: t.queryDebounceTime
|
170
170
|
}), P = () => {
|
171
|
-
var e,
|
172
|
-
t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (
|
171
|
+
var e, o;
|
172
|
+
t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (o = n.value) == null || o.blur());
|
173
173
|
}, {
|
174
174
|
hasPrefilled: J,
|
175
175
|
isPrefilling: $e,
|
@@ -179,7 +179,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
179
179
|
currentValue: t.modelValue,
|
180
180
|
multiple: t.multiple,
|
181
181
|
fn: async ({ prefill: e }) => {
|
182
|
-
await M(
|
182
|
+
await M(l.value, e, t.modelValue), P(), b();
|
183
183
|
}
|
184
184
|
}), {
|
185
185
|
array: Te,
|
@@ -198,28 +198,28 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
198
198
|
selectedIndexedByHash: Q
|
199
199
|
}), O = y(() => !!(j.value || t.loading)), Fe = y(() => {
|
200
200
|
let e = [];
|
201
|
-
const
|
202
|
-
(d) => d.text ===
|
201
|
+
const o = s.value.some(
|
202
|
+
(d) => d.text === l.value
|
203
203
|
);
|
204
|
-
return (t.multiple &&
|
204
|
+
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = $.value.filter((d) => {
|
205
205
|
let v = !1;
|
206
|
-
return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v ||
|
206
|
+
return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || le(d.item, t.filterBy, l.value.trim())), v || le(d, ["text"], l.value.trim());
|
207
207
|
}) : e = $.value, e;
|
208
208
|
}), b = () => {
|
209
209
|
if (t.multiple) {
|
210
|
-
|
210
|
+
l.value = "";
|
211
211
|
return;
|
212
212
|
}
|
213
213
|
let e;
|
214
|
-
s.value && (e =
|
214
|
+
s.value && (e = ot(s.value)), l.value = (e == null ? void 0 : e.text) || "";
|
215
215
|
}, qe = async (e) => {
|
216
|
-
t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && xe(e.item), b()) : (t.stash && Ae(e.item), u("update:modelValue", e.value), await
|
216
|
+
t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && xe(e.item), b()) : (t.stash && Ae(e.item), u("update:modelValue", e.value), await _(), b()), q(), t.multiple || S();
|
217
217
|
}, X = async (e) => {
|
218
|
-
if (He((
|
219
|
-
const
|
220
|
-
delete
|
218
|
+
if (He((o) => o.valueHash !== e.valueHash), t.multiple) {
|
219
|
+
const o = { ...Q.value };
|
220
|
+
delete o[e.valueHash], u("update:modelValue", Object.values(o));
|
221
221
|
} else
|
222
|
-
u("update:modelValue", null), await
|
222
|
+
u("update:modelValue", null), await _(), b();
|
223
223
|
q();
|
224
224
|
}, { data: Me } = ae({
|
225
225
|
items: $,
|
@@ -233,7 +233,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
233
233
|
ne(
|
234
234
|
() => t.modelValue,
|
235
235
|
async () => {
|
236
|
-
B++, Y.value || (await M(
|
236
|
+
B++, Y.value || (await M(l.value, !1, t.modelValue), P()), B === 1 && b(), B--;
|
237
237
|
},
|
238
238
|
{
|
239
239
|
debounce: t.modelValueDebounceTime
|
@@ -241,7 +241,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
241
241
|
), ne(
|
242
242
|
() => [t.dependencies, t.items],
|
243
243
|
async () => {
|
244
|
-
J.value && (B++, await M(
|
244
|
+
J.value && (B++, await M(l.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
|
245
245
|
},
|
246
246
|
{
|
247
247
|
debounce: t.depsDebounceTime
|
@@ -258,19 +258,19 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
258
258
|
z.value = !1, u("inactive");
|
259
259
|
}, Ke = (e) => {
|
260
260
|
e.preventDefault(), u("click", e), !(t.disabled || t.readonly) && (q(), Ne());
|
261
|
-
},
|
261
|
+
}, _e = nt(
|
262
262
|
(e) => typeof e != "string",
|
263
263
|
JSON.stringify
|
264
|
-
),
|
265
|
-
const
|
264
|
+
), Ue = y(() => [].concat(t.modelValue).map((e) => {
|
265
|
+
const o = _e(e);
|
266
266
|
return {
|
267
267
|
disabled: t.disabled,
|
268
268
|
name: t.name,
|
269
269
|
type: "hidden",
|
270
|
-
value:
|
270
|
+
value: o
|
271
271
|
};
|
272
272
|
}));
|
273
|
-
return (e,
|
273
|
+
return (e, o) => (h(), x(st, {
|
274
274
|
ref_key: "outerContainer",
|
275
275
|
ref: E,
|
276
276
|
class: Z({
|
@@ -286,10 +286,10 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
286
286
|
onClick: Ke
|
287
287
|
}, {
|
288
288
|
"prepend-outer": i(() => [
|
289
|
-
|
289
|
+
c(e.$slots, "prepend-outer", { query: l.value })
|
290
290
|
]),
|
291
291
|
"append-outer": i(() => [
|
292
|
-
|
292
|
+
c(e.$slots, "append-outer", { query: l.value })
|
293
293
|
]),
|
294
294
|
default: i(() => [
|
295
295
|
K(rt, {
|
@@ -300,16 +300,16 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
300
300
|
"prevent-focus": !0
|
301
301
|
}, {
|
302
302
|
prepend: i(() => [
|
303
|
-
|
303
|
+
c(e.$slots, "prepend", { query: l.value })
|
304
304
|
]),
|
305
305
|
prefix: i(() => [
|
306
|
-
|
306
|
+
c(e.$slots, "prefix")
|
307
307
|
]),
|
308
308
|
append: i(() => [
|
309
|
-
|
309
|
+
c(e.$slots, "append", { query: l.value })
|
310
310
|
]),
|
311
311
|
suffix: i(() => [
|
312
|
-
|
312
|
+
c(e.$slots, "suffix")
|
313
313
|
]),
|
314
314
|
default: i(() => [
|
315
315
|
K(V(tt), { tag: "span" }, {
|
@@ -319,7 +319,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
319
319
|
e.comma ? (h(), x(ut, {
|
320
320
|
key: 0,
|
321
321
|
ref_key: "commaBox",
|
322
|
-
ref:
|
322
|
+
ref: U,
|
323
323
|
options: s.value
|
324
324
|
}, null, 8, ["options"])) : (h(), x(it, {
|
325
325
|
key: 1,
|
@@ -333,7 +333,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
333
333
|
id: V(G),
|
334
334
|
ref_key: "input",
|
335
335
|
ref: F,
|
336
|
-
"onUpdate:modelValue":
|
336
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a),
|
337
337
|
"aria-autocomplete": "list",
|
338
338
|
"aria-controls": W.value ? `${V(G)}_listbox` : void 0,
|
339
339
|
"aria-describedby": e.ariaDescribedby,
|
@@ -342,39 +342,39 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
342
342
|
autofocus: e.autofocus,
|
343
343
|
class: Z("bb-base-select__text-input"),
|
344
344
|
disabled: e.disabled,
|
345
|
-
inputmode:
|
345
|
+
inputmode: ce.value,
|
346
346
|
placeholder: Le.value,
|
347
347
|
readonly: e.readonly || !e.allowWriting,
|
348
|
-
required: e.required && !e.multiple ||
|
348
|
+
required: e.required && (!e.multiple || !e.modelValue.length),
|
349
349
|
role: "combobox",
|
350
350
|
size: "1",
|
351
351
|
type: "text",
|
352
|
-
onBlur:
|
353
|
-
onChange:
|
354
|
-
onFocusOnce:
|
355
|
-
onFocus:
|
356
|
-
onInput:
|
352
|
+
onBlur: p(ye, ["stop"]),
|
353
|
+
onChange: p(he, ["stop"]),
|
354
|
+
onFocusOnce: p(ve, ["stop"]),
|
355
|
+
onFocus: p(fe, ["stop"]),
|
356
|
+
onInput: p(be, ["stop"]),
|
357
357
|
onKeydown: [
|
358
|
-
g(
|
359
|
-
g(
|
360
|
-
g(
|
361
|
-
g(
|
362
|
-
g(
|
363
|
-
g(
|
364
|
-
g(
|
358
|
+
g(p(Se, ["stop"]), ["delete"]),
|
359
|
+
g(p(Be, ["stop"]), ["left"]),
|
360
|
+
g(p(we, ["stop", "prevent"]), ["down"]),
|
361
|
+
g(p(Ie, ["stop", "prevent"]), ["enter"]),
|
362
|
+
g(p(ke, ["stop", "prevent"]), ["esc"]),
|
363
|
+
g(p(ge, ["stop", "prevent"]), ["up"]),
|
364
|
+
g(p(Ve, ["stop"]), ["right"])
|
365
365
|
]
|
366
366
|
}, null, 40, St), [
|
367
|
-
[Qe,
|
367
|
+
[Qe, l.value]
|
368
368
|
])
|
369
369
|
])
|
370
370
|
]),
|
371
371
|
_: 1
|
372
372
|
}),
|
373
|
-
|
373
|
+
c(e.$slots, "chevron", {
|
374
374
|
loading: !!V(j),
|
375
375
|
shown: m.value
|
376
376
|
}, () => [
|
377
|
-
|
377
|
+
o[1] || (o[1] = H("svg", {
|
378
378
|
class: "bb-base-select__chevron",
|
379
379
|
viewBox: "0 0 24 24",
|
380
380
|
xmlns: "http://www.w3.org/2000/svg"
|
@@ -388,11 +388,11 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
388
388
|
]),
|
389
389
|
_: 3
|
390
390
|
}, 8, ["append:icon", "prepend:icon"]),
|
391
|
-
(h(!0), A(ee, null, Xe(
|
391
|
+
(h(!0), A(ee, null, Xe(Ue.value, (a) => (h(), A("input", oe({
|
392
392
|
key: a.value,
|
393
393
|
ref_for: !0
|
394
394
|
}, a), null, 16))), 128)),
|
395
|
-
W.value ? (h(), x(
|
395
|
+
W.value ? (h(), x(ct, {
|
396
396
|
key: 0,
|
397
397
|
target: e.teleportTarget
|
398
398
|
}, {
|
@@ -411,19 +411,19 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
411
411
|
"onOption:unselected": X
|
412
412
|
}, {
|
413
413
|
"options:prepend": i(() => [
|
414
|
-
|
414
|
+
c(e.$slots, "options:prepend")
|
415
415
|
]),
|
416
416
|
loading: i(() => [
|
417
|
-
|
417
|
+
c(e.$slots, "loading", { query: l.value })
|
418
418
|
]),
|
419
419
|
"no-data": i(() => [
|
420
|
-
|
420
|
+
c(e.$slots, "no-data", { query: l.value })
|
421
421
|
]),
|
422
422
|
"options:append": i(() => [
|
423
|
-
|
423
|
+
c(e.$slots, "options:append")
|
424
424
|
]),
|
425
425
|
option: i((a) => [
|
426
|
-
|
426
|
+
c(e.$slots, "option", oe({
|
427
427
|
hasErrors: e.hasErrors,
|
428
428
|
loading: O.value
|
429
429
|
}, a))
|
@@ -439,5 +439,5 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
439
439
|
}
|
440
440
|
});
|
441
441
|
export {
|
442
|
-
|
442
|
+
ao as default
|
443
443
|
};
|
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, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
|
2
|
-
import { clamp as le } from "./
|
3
|
-
import { head as O } from "./
|
4
|
-
import { isCssColor as Y } from "./
|
5
|
-
import { isNil as P } from "./
|
2
|
+
import { clamp as le } from "./index205.js";
|
3
|
+
import { head as O } from "./index257.js";
|
4
|
+
import { isCssColor as Y } from "./index209.js";
|
5
|
+
import { isNil as P } from "./index258.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index131.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index208.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, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as A, createElementVNode as l, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index209.js";
|
3
|
+
import { when as N } from "./index210.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, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as v, 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 "./index232.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 E } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index234.js";
|
7
|
+
import { useIndexById as T } from "./index235.js";
|
8
|
+
import { useBaseOptions as q } from "./index236.js";
|
9
|
+
import { useCoherence as J } from "./index237.js";
|
10
|
+
import { hash as Q } from "./index208.js";
|
11
|
+
import { useHashedWatcher as E } from "./index238.js";
|
12
|
+
import { usePrefill as X } from "./index239.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { defineComponent as R, ref as u, computed as
|
1
|
+
import { defineComponent as R, ref as u, computed as m, toRef as E, watch as j, openBlock as v, createBlock as k, normalizeClass as Q, withCtx as l, renderSlot as s, createVNode as I, unref as Z, createElementVNode as $, createElementBlock as G, Fragment as J, createCommentVNode as W, withDirectives as X, mergeProps as Y, withModifiers as d, withKeys as y, vModelDynamic as ee, nextTick as te } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import oe from "./index128.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as ae } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as le } from "./
|
6
|
+
import { last as ae } from "./index226.js";
|
7
|
+
import { useBaseOptions as ne } from "./index236.js";
|
8
|
+
import { useIndexById as le } from "./index235.js";
|
9
9
|
import re from "./index252.js";
|
10
10
|
/* empty css */
|
11
11
|
import ie from "./index254.js";
|
12
12
|
/* empty css */
|
13
|
-
import ue from "./
|
13
|
+
import ue from "./index212.js";
|
14
14
|
/* empty css */
|
15
|
-
import se from "./
|
15
|
+
import se from "./index214.js";
|
16
16
|
const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], $e = /* @__PURE__ */ R({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
@@ -41,15 +41,15 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
41
41
|
const t = O, n = D;
|
42
42
|
if (t.multiple && !Array.isArray(t.modelValue))
|
43
43
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
44
|
-
const b = u(null), L = u(null), B = u(null), V = u(null), r =
|
44
|
+
const b = u(null), L = u(null), B = u(null), V = u(null), r = m(
|
45
45
|
() => t.comma ? B.value : V.value
|
46
46
|
), p = u(null), A = () => {
|
47
47
|
p.value instanceof HTMLInputElement && p.value.focus();
|
48
|
-
}, o = u(""), i =
|
48
|
+
}, o = u(""), i = m(() => K.value.filter((e) => e.selected)), { data: w, get: H } = le({
|
49
49
|
items: E(t, "modelValue")
|
50
50
|
}), { options: K } = ne({
|
51
51
|
disabled: E(t, "disabled"),
|
52
|
-
items:
|
52
|
+
items: m(() => [].concat(t.modelValue)),
|
53
53
|
itemText: void 0,
|
54
54
|
itemValue: void 0,
|
55
55
|
max: t.max,
|
@@ -80,19 +80,19 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
80
80
|
g.value = !0;
|
81
81
|
}, M = () => {
|
82
82
|
g.value = !1, n("inactive");
|
83
|
-
}, h =
|
83
|
+
}, h = m(() => !(t.readonly || t.disabled || !r.value && t.multiple)), N = (e) => {
|
84
84
|
var a;
|
85
85
|
h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusPrevious())));
|
86
|
-
},
|
86
|
+
}, _ = (e) => {
|
87
87
|
var a;
|
88
88
|
h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusNext())));
|
89
|
-
},
|
89
|
+
}, P = async () => {
|
90
90
|
var e, a;
|
91
91
|
!h.value || o.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await te(), (a = r.value) == null || a.focusPrevious());
|
92
|
-
},
|
92
|
+
}, x = () => {
|
93
93
|
var e;
|
94
94
|
(e = r.value) == null || e.blur();
|
95
|
-
},
|
95
|
+
}, F = async (e) => {
|
96
96
|
var a;
|
97
97
|
if (n("keydown", e), t.readonly || t.disabled) {
|
98
98
|
e.preventDefault();
|
@@ -100,9 +100,9 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
100
100
|
}
|
101
101
|
if (/^[A-Za-z0-9]$/.test(e.key) && ((a = r.value) == null || a.blur()), e.key === t.divider || e.key === "Unidentified" && o.value.includes(t.divider)) {
|
102
102
|
if (t.divider.length === 1 && o.value.includes(t.divider)) {
|
103
|
-
const
|
104
|
-
if (
|
105
|
-
o.value =
|
103
|
+
const f = o.value.split(t.divider)[0];
|
104
|
+
if (f)
|
105
|
+
o.value = f;
|
106
106
|
else {
|
107
107
|
o.value = "";
|
108
108
|
return;
|
@@ -120,9 +120,9 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
120
120
|
t.multiple ? n("update:modelValue", t.modelValue.concat(o.value)) : n("update:modelValue", o.value);
|
121
121
|
}
|
122
122
|
}
|
123
|
-
},
|
123
|
+
}, S = (e) => {
|
124
124
|
n("focus", e), q(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
125
|
-
},
|
125
|
+
}, U = (e) => {
|
126
126
|
n("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
127
127
|
}, c = async (e) => {
|
128
128
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
@@ -147,7 +147,7 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
147
147
|
"bb-base-tag--readonly": e.readonly,
|
148
148
|
"bb-base-tag--compact": e.compact
|
149
149
|
}),
|
150
|
-
onClick:
|
150
|
+
onClick: U
|
151
151
|
}, {
|
152
152
|
"prepend-outer": l(() => [
|
153
153
|
s(e.$slots, "prepend-outer")
|
@@ -198,7 +198,7 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
198
198
|
ref_key: "input",
|
199
199
|
ref: p
|
200
200
|
}, z, {
|
201
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
201
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => o.value = f),
|
202
202
|
"aria-describedby": e.ariaDescribedby,
|
203
203
|
autocomplete: e.autocomplete,
|
204
204
|
autofocus: e.autofocus,
|
@@ -207,15 +207,15 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
207
207
|
enterkeyhint: "done",
|
208
208
|
placeholder: e.placeholder,
|
209
209
|
readonly: e.readonly,
|
210
|
-
required: e.required && !e.multiple ||
|
210
|
+
required: e.required && (!e.multiple || !e.modelValue.length),
|
211
211
|
type: "text",
|
212
|
-
onFocus: d(
|
212
|
+
onFocus: d(S, ["stop"]),
|
213
213
|
onKeydown: [
|
214
|
-
d(
|
215
|
-
y(d(
|
214
|
+
d(F, ["stop"]),
|
215
|
+
y(d(P, ["stop"]), ["delete"]),
|
216
216
|
y(d(N, ["stop"]), ["left"]),
|
217
|
-
y(d(
|
218
|
-
y(d(
|
217
|
+
y(d(x, ["stop", "prevent"]), ["esc"]),
|
218
|
+
y(d(_, ["stop"]), ["right"])
|
219
219
|
]
|
220
220
|
}), null, 16, pe), [
|
221
221
|
[ee, o.value]
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as w, ref as y, computed as u, onMounted as g, watch as B, nextTick as x, openBlock as V, createBlock as k, normalizeClass as $, withCtx as t, renderSlot as r, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
2
|
+
import v from "./index214.js";
|
3
|
+
import E from "./index212.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index128.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as c, openBlock as b, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as h, withCtx as n, renderSlot as t, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
-
import B from "./
|
2
|
+
import B from "./index212.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index214.js";
|
5
5
|
const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
|
6
6
|
__name: "BaseTextInput",
|
7
7
|
props: {
|