bitboss-ui 2.0.124 → 2.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +0 -22
- package/dist/components/ListBox.vue.d.ts +1 -0
- package/dist/index100.js +8 -8
- package/dist/index111.js +11 -11
- 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 +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index205.js +2 -115
- package/dist/index206.js +115 -2
- package/dist/index207.js +5 -65
- package/dist/index208.js +18 -0
- package/dist/index209.js +16 -13
- package/dist/index21.js +15 -15
- package/dist/index210.js +19 -20
- package/dist/index211.js +15 -4
- package/dist/index212.js +19 -13
- package/dist/index213.js +27 -8
- package/dist/index214.js +1 -1
- package/dist/index215.js +2 -5
- package/dist/index216.js +8 -16
- package/dist/index217.js +248 -14
- package/dist/index218.js +52 -19
- package/dist/index219.js +44 -15
- package/dist/index220.js +5 -19
- package/dist/index221.js +59 -26
- package/dist/index222.js +13 -2
- package/dist/index223.js +79 -243
- package/dist/index225.js +25 -44
- package/dist/index226.js +17 -5
- package/dist/index227.js +50 -59
- package/dist/index228.js +15 -125
- package/dist/index229.js +12 -2
- package/dist/index23.js +16 -16
- package/dist/index230.js +15 -40
- package/dist/index231.js +64 -5
- package/dist/index233.js +15 -0
- package/dist/index234.js +3 -2
- package/dist/index235.js +41 -86
- package/dist/index236.js +8 -0
- package/dist/index237.js +7 -25
- package/dist/index238.js +15 -16
- package/dist/index239.js +2 -17
- package/dist/index240.js +4 -51
- package/dist/index241.js +2 -15
- package/dist/index242.js +19 -11
- package/dist/index243.js +4 -2
- package/dist/index244.js +125 -4
- package/dist/index245.js +2 -2
- package/dist/index246.js +93 -17
- package/dist/index248.js +2 -106
- package/dist/index249.js +5 -0
- package/dist/index25.js +7 -7
- package/dist/index250.js +2 -100
- package/dist/index251.js +4 -0
- package/dist/index252.js +102 -11
- package/dist/index254.js +83 -197
- package/dist/index256.js +18 -2
- package/dist/index257.js +126 -2
- package/dist/index258.js +12 -3
- package/dist/index259.js +228 -3
- package/dist/index260.js +369 -7
- package/dist/index263.js +3 -3
- package/dist/index267.js +8 -27
- package/dist/index268.js +1 -1
- package/dist/index269.js +19 -0
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -7
- package/dist/index271.js +23 -171
- package/dist/index272.js +3 -7
- package/dist/index274.js +7 -9
- package/dist/index284.js +1 -1
- package/dist/index285.js +1 -1
- package/dist/index286.js +1 -1
- package/dist/index287.js +1 -1
- package/dist/index29.js +3 -3
- package/dist/index290.js +7 -9
- package/dist/index291.js +11 -8
- package/dist/index292.js +431 -2
- package/dist/index293.js +2 -431
- package/dist/index294.js +89 -3
- package/dist/index295.js +4 -3
- package/dist/index296.js +174 -15
- package/dist/index297.js +2 -4
- package/dist/index298.js +3 -200
- package/dist/index299.js +196 -122
- package/dist/index300.js +8 -3
- package/dist/index301.js +224 -3
- package/dist/index302.js +3 -2
- package/dist/index303.js +3 -2
- package/dist/index304.js +117 -427
- package/dist/index305.js +2 -127
- package/dist/index306.js +431 -219
- package/dist/index307.js +127 -2
- package/dist/index308.js +2 -89
- package/dist/index31.js +2 -2
- package/dist/index310.js +1 -1
- package/dist/index311.js +5 -3
- package/dist/index312.js +8 -3
- package/dist/index313.js +3 -58
- package/dist/index314.js +3 -5
- package/dist/index315.js +57 -7
- package/dist/index316.js +53 -4
- package/dist/index317.js +53 -7
- package/dist/index318.js +3 -18
- package/dist/index319.js +6 -6
- package/dist/index320.js +18 -32
- package/dist/index321.js +28 -21
- package/dist/index322.js +25 -52
- package/dist/index323.js +7 -53
- package/dist/index324.js +480 -47
- package/dist/index325.js +47 -480
- package/dist/index33.js +7 -7
- package/dist/index35.js +4 -4
- package/dist/index37.js +107 -106
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- package/dist/index45.js +8 -8
- 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 +64 -76
- package/dist/index77.js +30 -33
- 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/dist/style.css +1 -1
- package/package.json +5 -3
- package/dist/index224.js +0 -54
- package/dist/index232.js +0 -96
- package/dist/index247.js +0 -128
- package/dist/index253.js +0 -14
- package/dist/index255.js +0 -371
- package/dist/index273.js +0 -13
package/dist/index37.js
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as L, normalizeClass as Z, withCtx as u, renderSlot as p, createVNode as K, unref as V, createElementVNode as F, createElementBlock as H, Fragment as ee, toDisplayString as _e, createCommentVNode as te, withDirectives as je, withModifiers as c, withKeys as g, vModelDynamic as Je, renderList as Qe, mergeProps as le, normalizeStyle as Xe, nextTick as U } 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 "./index128.js";
|
7
7
|
/* empty css */
|
8
|
-
import { last as tt } from "./
|
9
|
-
import { matchAnyKey as ae } from "./
|
10
|
-
import { useFloating as lt } from "./
|
8
|
+
import { last as tt } from "./index215.js";
|
9
|
+
import { matchAnyKey as ae } from "./index256.js";
|
10
|
+
import { useFloating as lt } from "./index257.js";
|
11
11
|
import { useIntersectionObserver as at } from "./index132.js";
|
12
12
|
import { wait as E } from "./index130.js";
|
13
|
-
import { when as ot } from "./
|
14
|
-
import nt from "./
|
13
|
+
import { when as ot } from "./index240.js";
|
14
|
+
import nt from "./index252.js";
|
15
15
|
/* empty css */
|
16
|
-
import it from "./
|
16
|
+
import it from "./index254.js";
|
17
17
|
/* empty css */
|
18
|
-
import
|
18
|
+
import ut from "./index231.js";
|
19
19
|
/* empty css */
|
20
|
-
import
|
21
|
-
import { waitFor as st } from "./
|
22
|
-
import dt from "./
|
23
|
-
import { useItemsGetter as
|
24
|
-
import { usePrefill as
|
25
|
-
import { useArray as mt } from "./
|
26
|
-
import { useBaseOptions as ft } from "./
|
27
|
-
import { useIndexById as oe } from "./
|
28
|
-
import { useCoherence as vt } from "./
|
20
|
+
import rt from "./index233.js";
|
21
|
+
import { waitFor as st } from "./index236.js";
|
22
|
+
import dt from "./index238.js";
|
23
|
+
import { useItemsGetter as pt } from "./index225.js";
|
24
|
+
import { usePrefill as ct } from "./index230.js";
|
25
|
+
import { useArray as mt } from "./index258.js";
|
26
|
+
import { useBaseOptions as ft } from "./index227.js";
|
27
|
+
import { useIndexById as oe } from "./index226.js";
|
28
|
+
import { useCoherence as vt } from "./index228.js";
|
29
29
|
import { hash as yt } from "./index214.js";
|
30
|
-
import { useHashedWatcher as ne } from "./
|
31
|
-
import { useLocale as ht } from "./
|
32
|
-
import { isEmpty as bt } from "./
|
33
|
-
import gt from "./
|
34
|
-
import { autoUpdate as wt, flip as Bt, offset as Vt, shift as It } from "./
|
30
|
+
import { useHashedWatcher as ne } from "./index229.js";
|
31
|
+
import { useLocale as ht } from "./index222.js";
|
32
|
+
import { isEmpty as bt } from "./index248.js";
|
33
|
+
import gt from "./index259.js";
|
34
|
+
import { autoUpdate as wt, flip as Bt, offset as Vt, shift as It } from "./index260.js";
|
35
35
|
const kt = { class: "bb-base-select__input-container" }, St = {
|
36
36
|
key: 1,
|
37
37
|
class: "bb-base-select__max-reached"
|
38
|
-
}, Ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"],
|
38
|
+
}, Ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ul = /* @__PURE__ */ Ge({
|
39
39
|
__name: "BaseSelect",
|
40
40
|
props: {
|
41
41
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -78,15 +78,15 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
78
78
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
79
79
|
},
|
80
80
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
|
81
|
-
setup(ie, { emit:
|
82
|
-
const t = ie, i =
|
81
|
+
setup(ie, { emit: ue }) {
|
82
|
+
const t = ie, i = ue;
|
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:
|
86
|
-
() => t.comma ? R.value :
|
85
|
+
const { t: re } = ht(), A = f(null), I = f(null), n = f(null), R = f(null), G = f(null), s = y(
|
86
|
+
() => t.comma ? R.value : G.value
|
87
87
|
), { isMobile: se } = Ze(), de = y(
|
88
88
|
() => t.allowWriting === "not-mobile" && se.value ? "none" : void 0
|
89
|
-
),
|
89
|
+
), _ = t.id || Ye().id.value;
|
90
90
|
at(
|
91
91
|
// @ts-expect-error - wrong inferred type
|
92
92
|
I,
|
@@ -95,7 +95,7 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
95
95
|
},
|
96
96
|
{ threshold: [0, 1] }
|
97
97
|
);
|
98
|
-
const { floatingStyles:
|
98
|
+
const { floatingStyles: pe } = lt(
|
99
99
|
// @ts-expect-error - wrong inferred type
|
100
100
|
I,
|
101
101
|
n,
|
@@ -104,15 +104,15 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
104
104
|
whileElementsMounted: wt,
|
105
105
|
middleware: [Bt(), Vt(5), It()]
|
106
106
|
}
|
107
|
-
),
|
107
|
+
), ce = y(() => {
|
108
108
|
var l;
|
109
109
|
const e = {
|
110
|
-
...
|
110
|
+
...pe.value,
|
111
111
|
zIndex: "10"
|
112
112
|
};
|
113
113
|
return I.value && (e.width = `${(l = I.value) == null ? void 0 : l.$el.clientWidth}px`), e;
|
114
|
-
}),
|
115
|
-
|
114
|
+
}), q = f(null), x = () => {
|
115
|
+
q.value instanceof HTMLInputElement && q.value.focus();
|
116
116
|
}, me = async (e) => {
|
117
117
|
i("focus", e), Ne(), document.addEventListener("click", $), document.addEventListener("focusin", $);
|
118
118
|
}, fe = () => {
|
@@ -124,11 +124,11 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
124
124
|
i("input", e), a.value === "" && (t.multiple || i("update:modelValue", null)), (l = s.value) == null || l.blur(), N.value && k(), Se(a.value, !1, t.modelValue);
|
125
125
|
}, $ = async (e) => {
|
126
126
|
var l, o;
|
127
|
-
if (e.target instanceof Node &&
|
127
|
+
if (e.target instanceof Node && A.value && !A.value.$el.contains(e.target) && !((o = (l = n.value) == null ? void 0 : l.$el) != null && o.contains(e.target))) {
|
128
128
|
S(), We(), document.removeEventListener("click", $), document.removeEventListener("focusin", $), await E(t.transitionDuration), b();
|
129
129
|
return;
|
130
130
|
}
|
131
|
-
}, w = y(() => !(t.readonly || t.disabled || O.value || !s.value && t.multiple &&
|
131
|
+
}, w = y(() => !(t.readonly || t.disabled || O.value || !s.value && t.multiple && r.value.length <= t.maxSelectedLabels)), be = async () => {
|
132
132
|
var e, l, o;
|
133
133
|
w.value && ((e = s.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusPrevious() : (await k(), await E(t.transitionDuration), (o = n.value) == null || o.focusLastSelected()));
|
134
134
|
}, ge = async () => {
|
@@ -136,13 +136,13 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
136
136
|
w.value && ((e = s.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusNext() : (await k(), await E(t.transitionDuration), (o = n.value) == null || o.focusFirstSelected()));
|
137
137
|
}, we = (e) => {
|
138
138
|
var o, d, v, C;
|
139
|
-
if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !
|
139
|
+
if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !r.value.length)) return;
|
140
140
|
(d = s.value) == null || d.focusPrevious();
|
141
141
|
const l = (v = s.value) == null ? void 0 : v.getHighlighted();
|
142
142
|
l && ((C = n.value) == null || C.focusByHash(l.valueHash));
|
143
143
|
}, Be = (e) => {
|
144
144
|
var o, d, v, C;
|
145
|
-
if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !
|
145
|
+
if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !r.value.length)) return;
|
146
146
|
(d = s.value) == null || d.focusNext();
|
147
147
|
const l = (v = s.value) == null ? void 0 : v.getHighlighted();
|
148
148
|
l && ((C = n.value) == null || C.focusByHash(l.valueHash));
|
@@ -156,7 +156,7 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
156
156
|
return;
|
157
157
|
}
|
158
158
|
} else {
|
159
|
-
await k(), await E(t.transitionDuration),
|
159
|
+
await k(), await E(t.transitionDuration), r.value.length && ((l = n.value) == null || l.focusFirstSelected());
|
160
160
|
return;
|
161
161
|
}
|
162
162
|
const e = a.value.trim();
|
@@ -165,13 +165,13 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
165
165
|
m.value && await S();
|
166
166
|
}, ke = async () => {
|
167
167
|
var e, l;
|
168
|
-
!w.value || a.value || !
|
168
|
+
!w.value || a.value || !r.value.length || ((e = s.value) != null && e.getHighlighted() && s.value.confirmOption(), await U(), (l = s.value) == null || l.focusPrevious());
|
169
169
|
}, a = f(""), {
|
170
170
|
getter: M,
|
171
171
|
debouncedGetter: Se,
|
172
172
|
items: Ce,
|
173
173
|
loading: j
|
174
|
-
} =
|
174
|
+
} = pt({
|
175
175
|
items: T(t, "items"),
|
176
176
|
debounce: t.queryDebounceTime
|
177
177
|
}), P = () => {
|
@@ -181,7 +181,7 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
181
181
|
hasPrefilled: J,
|
182
182
|
isPrefilling: $e,
|
183
183
|
prefill: De
|
184
|
-
} =
|
184
|
+
} = ct({
|
185
185
|
onStart: t.prefill === !0,
|
186
186
|
currentValue: t.modelValue,
|
187
187
|
multiple: t.multiple,
|
@@ -193,7 +193,7 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
193
193
|
add: Te,
|
194
194
|
remove: Le,
|
195
195
|
set: Fe
|
196
|
-
} = mt(),
|
196
|
+
} = mt(), r = y(() => D.value.filter((e) => e.selected)), He = y(() => r.value.length ? "" : t.placeholder), { data: Q, get: Ee } = oe({
|
197
197
|
items: T(t, "modelValue")
|
198
198
|
}), { options: D } = ft({
|
199
199
|
disabled: T(t, "disabled"),
|
@@ -203,9 +203,9 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
203
203
|
max: t.max,
|
204
204
|
selectable: !0,
|
205
205
|
selectedIndexedByHash: Q
|
206
|
-
}), O = y(() => !!(j.value || t.loading)),
|
206
|
+
}), O = y(() => !!(j.value || t.loading)), Ae = y(() => {
|
207
207
|
let e = [];
|
208
|
-
const l =
|
208
|
+
const l = r.value.some(
|
209
209
|
(d) => d.text === a.value
|
210
210
|
);
|
211
211
|
return (t.multiple && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = D.value.filter((d) => {
|
@@ -218,23 +218,23 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
218
218
|
return;
|
219
219
|
}
|
220
220
|
let e;
|
221
|
-
|
222
|
-
},
|
223
|
-
t.multiple ? (i("update:modelValue", t.modelValue.concat(e.value)), t.stash && Te(e.item), b()) : (t.stash && Fe(e.item), i("update:modelValue", e.value), await U(), b()),
|
221
|
+
r.value && (e = tt(r.value)), a.value = (e == null ? void 0 : e.text) || "";
|
222
|
+
}, qe = async (e) => {
|
223
|
+
t.multiple ? (i("update:modelValue", t.modelValue.concat(e.value)), t.stash && Te(e.item), b()) : (t.stash && Fe(e.item), i("update:modelValue", e.value), await U(), b()), x(), t.multiple || S();
|
224
224
|
}, X = async (e) => {
|
225
225
|
if (Le((l) => l.valueHash !== e.valueHash), t.multiple) {
|
226
226
|
const l = { ...Q.value };
|
227
227
|
delete l[e.valueHash], i("update:modelValue", Object.values(l));
|
228
228
|
} else
|
229
229
|
i("update:modelValue", null), await U(), b();
|
230
|
-
|
231
|
-
}, { data:
|
230
|
+
x();
|
231
|
+
}, { data: xe } = oe({
|
232
232
|
items: D,
|
233
233
|
key: "valueHash"
|
234
234
|
}), { coherent: Y, status: Me } = vt({
|
235
235
|
modelValue: T(t, "modelValue"),
|
236
236
|
multiple: t.multiple,
|
237
|
-
iteratee: (e) => !!
|
237
|
+
iteratee: (e) => !!xe.value[yt(e)]
|
238
238
|
});
|
239
239
|
let B = 0;
|
240
240
|
ne(
|
@@ -264,7 +264,7 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
264
264
|
}, We = () => {
|
265
265
|
z.value = !1, i("inactive");
|
266
266
|
}, ze = (e) => {
|
267
|
-
e.preventDefault(), i("click", e), !(t.disabled || t.readonly) && (
|
267
|
+
e.preventDefault(), i("click", e), !(t.disabled || t.readonly) && (x(), Pe());
|
268
268
|
}, Ke = ot(
|
269
269
|
(e) => typeof e != "string",
|
270
270
|
JSON.stringify
|
@@ -280,9 +280,9 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
280
280
|
let e = null;
|
281
281
|
t.multiple && (e = []), i("update:modelValue", e);
|
282
282
|
};
|
283
|
-
return (e, l) => (h(), L(
|
283
|
+
return (e, l) => (h(), L(rt, {
|
284
284
|
ref_key: "outerContainer",
|
285
|
-
ref:
|
285
|
+
ref: A,
|
286
286
|
class: Z({
|
287
287
|
"bb-base-select": !0,
|
288
288
|
"bb-base-select--active": z.value,
|
@@ -295,14 +295,14 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
295
295
|
}),
|
296
296
|
onClick: ze
|
297
297
|
}, {
|
298
|
-
"prepend-outer":
|
299
|
-
|
298
|
+
"prepend-outer": u(() => [
|
299
|
+
p(e.$slots, "prepend-outer", { query: a.value })
|
300
300
|
]),
|
301
|
-
"append-outer":
|
302
|
-
|
301
|
+
"append-outer": u(() => [
|
302
|
+
p(e.$slots, "append-outer", { query: a.value })
|
303
303
|
]),
|
304
|
-
default:
|
305
|
-
K(
|
304
|
+
default: u(() => [
|
305
|
+
K(ut, {
|
306
306
|
ref_key: "innerContainer",
|
307
307
|
ref: I,
|
308
308
|
"append:icon": t["append:icon"],
|
@@ -311,43 +311,43 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
311
311
|
"prevent-focus": !0,
|
312
312
|
"onClick:clear": Re
|
313
313
|
}, {
|
314
|
-
prepend:
|
315
|
-
|
314
|
+
prepend: u(() => [
|
315
|
+
p(e.$slots, "prepend", { query: a.value })
|
316
316
|
]),
|
317
|
-
prefix:
|
318
|
-
|
317
|
+
prefix: u(() => [
|
318
|
+
p(e.$slots, "prefix")
|
319
319
|
]),
|
320
|
-
append:
|
321
|
-
|
320
|
+
append: u(() => [
|
321
|
+
p(e.$slots, "append", { query: a.value })
|
322
322
|
]),
|
323
|
-
suffix:
|
324
|
-
|
323
|
+
suffix: u(() => [
|
324
|
+
p(e.$slots, "suffix")
|
325
325
|
]),
|
326
|
-
default:
|
326
|
+
default: u(() => [
|
327
327
|
K(V(et), { tag: "span" }, {
|
328
|
-
default:
|
328
|
+
default: u(() => [
|
329
329
|
F("span", kt, [
|
330
|
-
e.multiple &&
|
330
|
+
e.multiple && r.value.length <= e.maxSelectedLabels ? (h(), H(ee, { key: 0 }, [
|
331
331
|
e.comma ? (h(), L(it, {
|
332
332
|
key: 0,
|
333
333
|
ref_key: "commaBox",
|
334
334
|
ref: R,
|
335
|
-
options:
|
335
|
+
options: r.value
|
336
336
|
}, null, 8, ["options"])) : (h(), L(nt, {
|
337
337
|
key: 1,
|
338
338
|
ref_key: "chipsBox",
|
339
|
-
ref:
|
340
|
-
options:
|
339
|
+
ref: G,
|
340
|
+
options: r.value,
|
341
341
|
"onOption:unselected": X
|
342
342
|
}, null, 8, ["options"]))
|
343
|
-
], 64)) : e.multiple ? (h(), H("span", St,
|
343
|
+
], 64)) : e.multiple ? (h(), H("span", St, _e(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) : V(re)("select.multipleMaxReached", r.value.length)), 1)) : te("", !0),
|
344
344
|
je(F("input", {
|
345
|
-
id: V(
|
345
|
+
id: V(_),
|
346
346
|
ref_key: "input",
|
347
|
-
ref:
|
347
|
+
ref: q,
|
348
348
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
|
349
349
|
"aria-autocomplete": "list",
|
350
|
-
"aria-controls": W.value ? `${V(
|
350
|
+
"aria-controls": W.value ? `${V(_)}_listbox` : void 0,
|
351
351
|
"aria-describedby": e.ariaDescribedby,
|
352
352
|
"aria-expanded": m.value,
|
353
353
|
autocomplete: e.autocomplete,
|
@@ -361,19 +361,19 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
361
361
|
role: "combobox",
|
362
362
|
size: "1",
|
363
363
|
type: "text",
|
364
|
-
onBlur:
|
365
|
-
onChange:
|
366
|
-
onFocusOnce:
|
367
|
-
onFocus:
|
368
|
-
onInput:
|
364
|
+
onBlur: c(ve, ["stop"]),
|
365
|
+
onChange: c(ye, ["stop"]),
|
366
|
+
onFocusOnce: c(fe, ["stop"]),
|
367
|
+
onFocus: c(me, ["stop"]),
|
368
|
+
onInput: c(he, ["stop"]),
|
369
369
|
onKeydown: [
|
370
|
-
g(
|
371
|
-
g(
|
372
|
-
g(
|
373
|
-
g(
|
374
|
-
g(
|
375
|
-
g(
|
376
|
-
g(
|
370
|
+
g(c(ke, ["stop"]), ["delete"]),
|
371
|
+
g(c(we, ["stop"]), ["left"]),
|
372
|
+
g(c(ge, ["stop", "prevent"]), ["down"]),
|
373
|
+
g(c(Ve, ["stop", "prevent"]), ["enter"]),
|
374
|
+
g(c(Ie, ["stop", "prevent"]), ["esc"]),
|
375
|
+
g(c(be, ["stop", "prevent"]), ["up"]),
|
376
|
+
g(c(Be, ["stop"]), ["right"])
|
377
377
|
]
|
378
378
|
}, null, 40, Ct), [
|
379
379
|
[Je, a.value]
|
@@ -382,7 +382,7 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
382
382
|
]),
|
383
383
|
_: 1
|
384
384
|
}),
|
385
|
-
|
385
|
+
p(e.$slots, "chevron", {
|
386
386
|
loading: !!V(j),
|
387
387
|
shown: m.value
|
388
388
|
}, () => [
|
@@ -408,40 +408,41 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
408
408
|
key: 0,
|
409
409
|
target: e.teleportTarget
|
410
410
|
}, {
|
411
|
-
default:
|
411
|
+
default: u(() => [
|
412
412
|
K(gt, {
|
413
413
|
ref_key: "optionsContainer",
|
414
414
|
ref: n,
|
415
415
|
compact: e.compact,
|
416
416
|
loading: O.value,
|
417
417
|
"loading-text": e.loadingText,
|
418
|
+
multiple: e.multiple,
|
418
419
|
"no-data-text": e.noDataText,
|
419
420
|
open: m.value,
|
420
|
-
options:
|
421
|
-
style: Xe(
|
422
|
-
"onOption:selected":
|
421
|
+
options: Ae.value,
|
422
|
+
style: Xe(ce.value),
|
423
|
+
"onOption:selected": qe,
|
423
424
|
"onOption:unselected": X
|
424
425
|
}, {
|
425
|
-
"options:prepend":
|
426
|
-
|
426
|
+
"options:prepend": u(() => [
|
427
|
+
p(e.$slots, "options:prepend")
|
427
428
|
]),
|
428
|
-
loading:
|
429
|
-
|
429
|
+
loading: u(() => [
|
430
|
+
p(e.$slots, "loading", { query: a.value })
|
430
431
|
]),
|
431
|
-
"no-data":
|
432
|
-
|
432
|
+
"no-data": u(() => [
|
433
|
+
p(e.$slots, "no-data", { query: a.value })
|
433
434
|
]),
|
434
|
-
"options:append":
|
435
|
-
|
435
|
+
"options:append": u(() => [
|
436
|
+
p(e.$slots, "options:append")
|
436
437
|
]),
|
437
|
-
option:
|
438
|
-
|
438
|
+
option: u((o) => [
|
439
|
+
p(e.$slots, "option", le({
|
439
440
|
hasErrors: e.hasErrors,
|
440
441
|
loading: O.value
|
441
442
|
}, o))
|
442
443
|
]),
|
443
444
|
_: 3
|
444
|
-
}, 8, ["compact", "loading", "loading-text", "no-data-text", "open", "options", "style"])
|
445
|
+
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "style"])
|
445
446
|
]),
|
446
447
|
_: 3
|
447
448
|
}, 8, ["target"])) : te("", !0)
|
@@ -451,5 +452,5 @@ const kt = { class: "bb-base-select__input-container" }, St = {
|
|
451
452
|
}
|
452
453
|
});
|
453
454
|
export {
|
454
|
-
|
455
|
+
ul as default
|
455
456
|
};
|
package/dist/index39.js
CHANGED
@@ -1,8 +1,8 @@
|
|
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 "./index250.js";
|
4
|
+
import { isCssColor as Y } from "./index239.js";
|
5
|
+
import { isNil as P } from "./index251.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index131.js";
|
8
8
|
import { hash as J } from "./index214.js";
|
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 "./index239.js";
|
3
|
+
import { when as N } from "./index240.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 "./index223.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
6
|
+
import { useItemsGetter as U } from "./index225.js";
|
7
|
+
import { useIndexById as T } from "./index226.js";
|
8
|
+
import { useBaseOptions as q } from "./index227.js";
|
9
|
+
import { useCoherence as J } from "./index228.js";
|
10
10
|
import { hash as Q } from "./index214.js";
|
11
|
-
import { useHashedWatcher as E } from "./
|
12
|
-
import { usePrefill as X } from "./
|
11
|
+
import { useHashedWatcher as E } from "./index229.js";
|
12
|
+
import { usePrefill as X } from "./index230.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 "./index128.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 "./index215.js";
|
7
|
+
import { useBaseOptions as ne } from "./index227.js";
|
8
|
+
import { useIndexById as re } from "./index226.js";
|
9
|
+
import ie from "./index252.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index254.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index231.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index233.js";
|
16
|
+
import { isEmpty as pe } from "./index248.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Le = /* @__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, openBlock as $, createBlock as k, normalizeClass as C, withCtx as r, renderSlot as t, createVNode as i, unref as T, createElementVNode as v, mergeProps as x } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index233.js";
|
3
|
+
import G from "./index231.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index128.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as B, withCtx as n, renderSlot as l, unref as g, createElementVNode as p, mergeProps as h } from "vue";
|
2
|
-
import $ from "./
|
2
|
+
import $ from "./index231.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index233.js";
|
5
5
|
import { isNotNil as C } from "./index134.js";
|
6
6
|
const V = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], M = /* @__PURE__ */ m({
|
7
7
|
__name: "BaseTextInput",
|
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, openBlock as l, createElementBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index239.js";
|
3
3
|
import { wait as C } from "./index130.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 n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as r } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as r } from "./index239.js";
|
3
|
+
import { isNil as B } from "./index251.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -9,7 +9,7 @@ import T from "./index129.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import { pickBy as W } from "./index261.js";
|
11
11
|
import { noop as w } from "./index262.js";
|
12
|
-
import { useLocale as D } from "./
|
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"
|