bitboss-ui 2.0.141 → 2.0.143
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/BbTooltip/BbTooltip.vue.d.ts +8 -1
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/index100.js +7 -7
- package/dist/index111.js +9 -9
- package/dist/index119.js +2 -2
- package/dist/index121.js +50 -45
- package/dist/index123.js +1 -1
- 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/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +1 -1
- package/dist/index134.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +34 -32
- package/dist/index206.js +2 -115
- package/dist/index207.js +2 -2
- package/dist/index208.js +115 -2
- package/dist/index21.js +14 -14
- package/dist/index210.js +1 -1
- package/dist/index211.js +4 -2
- package/dist/index212.js +41 -4
- package/dist/index213.js +20 -2
- package/dist/index214.js +94 -3
- package/dist/index216.js +199 -5
- package/dist/index218.js +62 -11
- package/dist/index220.js +13 -3
- package/dist/index221.js +12 -85
- package/dist/index222.js +4 -0
- package/dist/index223.js +4 -29
- package/dist/index224.js +2 -17
- package/dist/index225.js +5 -51
- package/dist/index226.js +16 -15
- package/dist/index227.js +16 -12
- package/dist/index228.js +19 -16
- package/dist/index229.js +15 -5
- package/dist/index23.js +16 -16
- package/dist/index230.js +16 -13
- package/dist/index231.js +24 -13
- package/dist/index232.js +2 -19
- package/dist/index233.js +250 -15
- package/dist/index234.js +51 -18
- package/dist/index235.js +44 -27
- package/dist/index236.js +5 -2
- package/dist/index237.js +53 -243
- package/dist/index238.js +124 -51
- package/dist/index239.js +2 -44
- package/dist/index240.js +6 -5
- package/dist/index241.js +2 -60
- package/dist/index242.js +79 -58
- package/dist/index244.js +29 -13
- package/dist/index245.js +17 -4
- package/dist/index246.js +49 -18
- package/dist/index247.js +15 -94
- package/dist/index248.js +14 -0
- package/dist/index249.js +16 -200
- package/dist/index25.js +6 -6
- package/dist/index250.js +5 -0
- package/dist/index251.js +7 -125
- package/dist/index252.js +15 -2
- package/dist/index253.js +3 -2
- package/dist/index256.js +17 -105
- package/dist/{index261.js → index257.js} +2 -2
- package/dist/index258.js +53 -47
- package/dist/index260.js +99 -17
- package/dist/index263.js +2 -2
- package/dist/index264.js +1 -1
- package/dist/index267.js +6 -9
- package/dist/index268.js +16 -23
- package/dist/index269.js +9 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +23 -6
- package/dist/index271.js +27 -15
- package/dist/index272.js +8 -27
- package/dist/index273.js +431 -9
- package/dist/index274.js +176 -8
- package/dist/index275.js +3 -4
- package/dist/index276.js +3 -431
- package/dist/index277.js +3 -2
- package/dist/index279.js +6 -6
- package/dist/index280.js +7 -11
- package/dist/index281.js +10 -223
- package/dist/index282.js +9 -3
- package/dist/index283.js +8 -17
- package/dist/index284.js +3 -199
- package/dist/index285.js +198 -279
- package/dist/index286.js +280 -5
- package/dist/index287.js +6 -2
- package/dist/index288.js +2 -2
- package/dist/index29.js +3 -3
- package/dist/index294.js +2 -2
- package/dist/index295.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +1 -1
- package/dist/index298.js +1 -21
- package/dist/index299.js +24 -0
- package/dist/index301.js +2 -3
- package/dist/index302.js +5 -0
- package/dist/index303.js +15 -174
- package/dist/index304.js +2 -3
- package/dist/index305.js +89 -3
- package/dist/index306.js +224 -2
- package/dist/index307.js +126 -3
- package/dist/index309.js +3 -126
- package/dist/index31.js +2 -2
- package/dist/index314.js +5 -67
- package/dist/index315.js +67 -5
- package/dist/index316.js +5 -3
- package/dist/index317.js +8 -3
- package/dist/index318.js +3 -58
- package/dist/index319.js +3 -5
- package/dist/index320.js +57 -7
- package/dist/index322.js +8 -57
- package/dist/index323.js +6 -57
- package/dist/index324.js +7 -32
- package/dist/index325.js +6 -25
- package/dist/index326.js +18 -6
- package/dist/index327.js +480 -19
- package/dist/index328.js +57 -479
- package/dist/index329.js +58 -47
- package/dist/index33.js +36 -34
- package/dist/index331.js +32 -7
- package/dist/index332.js +28 -6
- package/dist/index334.js +47 -2
- package/dist/index335.js +4 -0
- package/dist/index337.js +3 -424
- package/dist/index338.js +2 -47
- package/dist/index339.js +424 -2
- package/dist/index340.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +85 -84
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +33 -31
- 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 +1 -1
- 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/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index215.js +0 -43
- package/dist/index217.js +0 -9
- package/dist/index219.js +0 -15
- package/dist/index278.js +0 -91
- package/dist/index300.js +0 -9
- package/dist/index333.js +0 -10
package/dist/index37.js
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
import { defineComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as H, normalizeClass as ee, withCtx as
|
1
|
+
import { defineComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as H, normalizeClass as ee, withCtx as r, renderSlot as c, createVNode as j, unref as V, createElementVNode as L, createElementBlock as F, Fragment as te, toDisplayString as Je, createCommentVNode as R, withDirectives as Qe, normalizeStyle as le, withModifiers as p, withKeys as g, vModelDynamic as _e, renderList as Xe, mergeProps as ae, 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 "./index128.js";
|
7
7
|
/* empty css */
|
8
|
-
import { last as tt } from "./
|
9
|
-
import { matchAnyKey as oe } from "./
|
10
|
-
import { useFloating as lt } from "./
|
8
|
+
import { last as tt } from "./index232.js";
|
9
|
+
import { matchAnyKey as oe } 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 "./index223.js";
|
14
|
+
import nt from "./index258.js";
|
15
15
|
/* empty css */
|
16
|
-
import
|
16
|
+
import ut from "./index260.js";
|
17
17
|
/* empty css */
|
18
|
-
import
|
18
|
+
import rt from "./index218.js";
|
19
19
|
/* empty css */
|
20
|
-
import it from "./
|
21
|
-
import { waitFor as st } from "./
|
22
|
-
import dt from "./
|
23
|
-
import { useItemsGetter as ct } from "./
|
24
|
-
import { usePrefill as pt } from "./
|
20
|
+
import it from "./index220.js";
|
21
|
+
import { waitFor as st } from "./index240.js";
|
22
|
+
import dt from "./index252.js";
|
23
|
+
import { useItemsGetter as ct } from "./index244.js";
|
24
|
+
import { usePrefill as pt } from "./index249.js";
|
25
25
|
import { useArray as mt } from "./index262.js";
|
26
|
-
import { useBaseOptions as ft } from "./
|
27
|
-
import { useIndexById as ne } from "./
|
28
|
-
import { useCoherence as vt } from "./
|
26
|
+
import { useBaseOptions as ft } from "./index246.js";
|
27
|
+
import { useIndexById as ne } from "./index245.js";
|
28
|
+
import { useCoherence as vt } from "./index247.js";
|
29
29
|
import { hash as yt } from "./index210.js";
|
30
|
-
import { useHashedWatcher as
|
31
|
-
import { useLocale as ht } from "./
|
32
|
-
import { isEmpty as bt } from "./
|
30
|
+
import { useHashedWatcher as ue } from "./index248.js";
|
31
|
+
import { useLocale as ht } from "./index221.js";
|
32
|
+
import { isEmpty as bt } from "./index241.js";
|
33
33
|
import gt from "./index263.js";
|
34
34
|
import { autoUpdate as wt, flip as Bt, offset as Vt, shift as It } from "./index264.js";
|
35
35
|
const kt = { class: "bb-base-select__input-container" }, Ct = {
|
36
36
|
key: 1,
|
37
37
|
class: "bb-base-select__max-reached"
|
38
|
-
}, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"],
|
38
|
+
}, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], rl = /* @__PURE__ */ Ge({
|
39
39
|
__name: "BaseSelect",
|
40
40
|
props: {
|
41
41
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -79,15 +79,15 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
79
79
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
80
80
|
},
|
81
81
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
|
82
|
-
setup(
|
83
|
-
const t =
|
82
|
+
setup(re, { emit: ie }) {
|
83
|
+
const t = re, u = ie;
|
84
84
|
if (t.multiple && !Array.isArray(t.modelValue))
|
85
85
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
86
|
-
const { t: se } = ht(), A = f(null), I = f(null), n = f(null),
|
87
|
-
() => t.comma ?
|
86
|
+
const { t: se } = ht(), A = f(null), I = f(null), n = f(null), J = f(null), Q = f(null), s = y(
|
87
|
+
() => t.comma ? J.value : Q.value
|
88
88
|
), { isMobile: de } = Ze(), ce = y(
|
89
89
|
() => t.allowWriting === "not-mobile" && de.value ? "none" : void 0
|
90
|
-
),
|
90
|
+
), _ = t.id || Ye().id.value;
|
91
91
|
at(
|
92
92
|
// @ts-expect-error - wrong inferred type
|
93
93
|
I,
|
@@ -115,14 +115,14 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
115
115
|
}), q = f(null), x = () => {
|
116
116
|
q.value instanceof HTMLInputElement && q.value.focus();
|
117
117
|
}, fe = async (e) => {
|
118
|
-
|
118
|
+
u("focus", e), We(), document.addEventListener("click", O), document.addEventListener("focusin", O);
|
119
119
|
}, ve = () => {
|
120
|
-
t.prefill === "focus" && !$e.value && !
|
120
|
+
t.prefill === "focus" && !$e.value && !Y.value && De();
|
121
121
|
}, ye = async (e) => {
|
122
|
-
|
123
|
-
}, he = (e) =>
|
122
|
+
u("blur", e);
|
123
|
+
}, he = (e) => u("change", e), be = (e) => {
|
124
124
|
var l;
|
125
|
-
|
125
|
+
u("input", e), o.value === "" && (t.multiple || u("update:modelValue", null)), (l = s.value) == null || l.blur(), z.value && k(), Se(o.value, !1, t.modelValue);
|
126
126
|
}, O = async (e) => {
|
127
127
|
var l, a;
|
128
128
|
if (e.target instanceof Node && A.value && !A.value.$el.contains(e.target) && !((a = (l = n.value) == null ? void 0 : l.$el) != null && a.contains(e.target))) {
|
@@ -161,25 +161,25 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
161
161
|
return;
|
162
162
|
}
|
163
163
|
const e = o.value.trim();
|
164
|
-
Ae(e) || (
|
164
|
+
Ae(e) || (u("option:add", e), o.value = "");
|
165
165
|
}, ke = async () => {
|
166
166
|
m.value && await C();
|
167
167
|
}, Ce = async () => {
|
168
168
|
var e, l;
|
169
|
-
!w.value || o.value || !i.value.length || ((e = s.value) != null && e.getHighlighted() && s.value.confirmOption(), await
|
169
|
+
!w.value || o.value || !i.value.length || ((e = s.value) != null && e.getHighlighted() && s.value.confirmOption(), await G(), (l = s.value) == null || l.focusPrevious());
|
170
170
|
}, o = f(""), {
|
171
171
|
getter: M,
|
172
172
|
debouncedGetter: Se,
|
173
173
|
items: Oe,
|
174
|
-
loading:
|
174
|
+
loading: X
|
175
175
|
} = ct({
|
176
176
|
items: T(t, "items"),
|
177
177
|
debounce: t.queryDebounceTime
|
178
178
|
}), P = () => {
|
179
179
|
var e, l;
|
180
|
-
t.enforceCoherence && !Z.value && (t.multiple ?
|
180
|
+
t.enforceCoherence && !Z.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = s.value) == null || e.blur(), (l = n.value) == null || l.blur());
|
181
181
|
}, {
|
182
|
-
hasPrefilled:
|
182
|
+
hasPrefilled: Y,
|
183
183
|
isPrefilling: $e,
|
184
184
|
prefill: De
|
185
185
|
} = pt({
|
@@ -209,7 +209,7 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
209
209
|
max: t.max,
|
210
210
|
selectable: !0,
|
211
211
|
selectedIndexedByHash: N
|
212
|
-
}), D = y(() => !!(
|
212
|
+
}), D = y(() => !!(X.value || t.loading)), qe = y(() => {
|
213
213
|
let e = [];
|
214
214
|
const l = i.value.some(
|
215
215
|
(d) => d.text === o.value
|
@@ -226,13 +226,13 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
226
226
|
let e;
|
227
227
|
i.value && (e = tt(i.value)), o.value = (e == null ? void 0 : e.text) || "";
|
228
228
|
}, xe = async (e) => {
|
229
|
-
t.multiple ? (
|
230
|
-
},
|
229
|
+
t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && He(e.item), b()) : (t.stash && Fe(e.item), u("update:modelValue", e.value), await G(), b()), x(), t.multiple || C();
|
230
|
+
}, W = async (e) => {
|
231
231
|
if (Le((l) => l.valueHash !== e.valueHash), t.multiple) {
|
232
232
|
const l = { ...N.value };
|
233
|
-
delete l[e.valueHash],
|
233
|
+
delete l[e.valueHash], u("update:modelValue", Object.values(l));
|
234
234
|
} else
|
235
|
-
|
235
|
+
u("update:modelValue", null), await G(), b();
|
236
236
|
x();
|
237
237
|
}, { data: Me } = ne({
|
238
238
|
items: $,
|
@@ -243,7 +243,7 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
243
243
|
iteratee: (e) => !!Me.value[yt(e)]
|
244
244
|
});
|
245
245
|
let B = 0;
|
246
|
-
|
246
|
+
ue(
|
247
247
|
() => t.modelValue,
|
248
248
|
async () => {
|
249
249
|
B++, Z.value || (await M(o.value, !1, t.modelValue), P()), B === 1 && b(), B--;
|
@@ -251,26 +251,26 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
251
251
|
{
|
252
252
|
debounce: t.modelValueDebounceTime
|
253
253
|
}
|
254
|
-
),
|
254
|
+
), ue(
|
255
255
|
() => [t.dependencies, t.items],
|
256
256
|
async () => {
|
257
|
-
|
257
|
+
Y.value && (B++, await M(o.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
|
258
258
|
},
|
259
259
|
{
|
260
260
|
debounce: t.depsDebounceTime
|
261
261
|
}
|
262
262
|
);
|
263
|
-
const m = f(!1),
|
264
|
-
|
263
|
+
const m = f(!1), z = f(!0), K = f(!1), k = async () => {
|
264
|
+
K.value = !0, await st(() => !!n.value), z.value = !1, m.value = !0;
|
265
265
|
}, C = async () => {
|
266
266
|
var e;
|
267
|
-
m.value = !1,
|
268
|
-
}, Ne = () => m.value ? C() : k(),
|
269
|
-
|
267
|
+
m.value = !1, z.value = !0, (e = s.value) == null || e.blur();
|
268
|
+
}, Ne = () => m.value ? C() : k(), U = f(!1), We = () => {
|
269
|
+
U.value = !0;
|
270
270
|
}, ze = () => {
|
271
|
-
|
271
|
+
U.value = !1, u("inactive");
|
272
272
|
}, Ke = (e) => {
|
273
|
-
e.preventDefault(),
|
273
|
+
e.preventDefault(), u("click", e), !(t.disabled || t.readonly) && (x(), Ne());
|
274
274
|
}, Ue = ot(
|
275
275
|
(e) => typeof e != "string",
|
276
276
|
JSON.stringify
|
@@ -284,14 +284,14 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
284
284
|
};
|
285
285
|
})), Re = () => {
|
286
286
|
let e = null;
|
287
|
-
t.multiple && (e = []),
|
287
|
+
t.multiple && (e = []), u("update:modelValue", e);
|
288
288
|
};
|
289
289
|
return (e, l) => (h(), H(it, {
|
290
290
|
ref_key: "outerContainer",
|
291
291
|
ref: A,
|
292
292
|
class: ee({
|
293
293
|
"bb-base-select": !0,
|
294
|
-
"bb-base-select--active":
|
294
|
+
"bb-base-select--active": U.value,
|
295
295
|
"bb-base-select--shown": m.value,
|
296
296
|
"bb-base-select--loading": D.value,
|
297
297
|
"bb-base-select--disabled": e.disabled,
|
@@ -301,14 +301,14 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
301
301
|
}),
|
302
302
|
onClick: Ke
|
303
303
|
}, {
|
304
|
-
"prepend-outer":
|
304
|
+
"prepend-outer": r(() => [
|
305
305
|
c(e.$slots, "prepend-outer", { query: o.value })
|
306
306
|
]),
|
307
|
-
"append-outer":
|
307
|
+
"append-outer": r(() => [
|
308
308
|
c(e.$slots, "append-outer", { query: o.value })
|
309
309
|
]),
|
310
|
-
default:
|
311
|
-
|
310
|
+
default: r(() => [
|
311
|
+
j(rt, {
|
312
312
|
ref_key: "innerContainer",
|
313
313
|
ref: I,
|
314
314
|
"append:icon": t["append:icon"],
|
@@ -317,43 +317,44 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
317
317
|
"prevent-focus": !0,
|
318
318
|
"onClick:clear": Re
|
319
319
|
}, {
|
320
|
-
prepend:
|
320
|
+
prepend: r(() => [
|
321
321
|
c(e.$slots, "prepend", { query: o.value })
|
322
322
|
]),
|
323
|
-
prefix:
|
323
|
+
prefix: r(() => [
|
324
324
|
c(e.$slots, "prefix")
|
325
325
|
]),
|
326
|
-
append:
|
326
|
+
append: r(() => [
|
327
327
|
c(e.$slots, "append", { query: o.value })
|
328
328
|
]),
|
329
|
-
suffix:
|
329
|
+
suffix: r(() => [
|
330
330
|
c(e.$slots, "suffix")
|
331
331
|
]),
|
332
|
-
default:
|
333
|
-
|
334
|
-
default:
|
332
|
+
default: r(() => [
|
333
|
+
j(V(et), { tag: "span" }, {
|
334
|
+
default: r(() => [
|
335
335
|
L("span", kt, [
|
336
336
|
e.multiple && i.value.length <= e.maxSelectedLabels ? (h(), F(te, { key: 0 }, [
|
337
|
-
e.comma ? (h(), H(
|
337
|
+
e.comma ? (h(), H(ut, {
|
338
338
|
key: 0,
|
339
339
|
ref_key: "commaBox",
|
340
|
-
ref:
|
341
|
-
options: i.value
|
340
|
+
ref: J,
|
341
|
+
options: i.value,
|
342
|
+
"onOption:unselected": W
|
342
343
|
}, null, 8, ["options"])) : (h(), H(nt, {
|
343
344
|
key: 1,
|
344
345
|
ref_key: "chipsBox",
|
345
|
-
ref:
|
346
|
+
ref: Q,
|
346
347
|
options: i.value,
|
347
|
-
"onOption:unselected":
|
348
|
+
"onOption:unselected": W
|
348
349
|
}, null, 8, ["options"]))
|
349
|
-
], 64)) : e.multiple ? (h(), F("span", Ct, Je(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : V(se)("select.multipleMaxReached", i.value.length)), 1)) :
|
350
|
+
], 64)) : e.multiple ? (h(), F("span", Ct, Je(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : V(se)("select.multipleMaxReached", i.value.length)), 1)) : R("", !0),
|
350
351
|
Qe(L("input", {
|
351
|
-
id: V(
|
352
|
+
id: V(_),
|
352
353
|
ref_key: "input",
|
353
354
|
ref: q,
|
354
355
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => o.value = a),
|
355
356
|
"aria-autocomplete": "list",
|
356
|
-
"aria-controls":
|
357
|
+
"aria-controls": K.value ? `${V(_)}_listbox` : void 0,
|
357
358
|
"aria-describedby": e.ariaDescribedby,
|
358
359
|
"aria-expanded": m.value,
|
359
360
|
autocomplete: e.autocomplete,
|
@@ -391,7 +392,7 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
391
392
|
}),
|
392
393
|
e.showChevron ? c(e.$slots, "chevron", {
|
393
394
|
key: 0,
|
394
|
-
loading: !!V(
|
395
|
+
loading: !!V(X),
|
395
396
|
shown: m.value
|
396
397
|
}, () => [
|
397
398
|
l[1] || (l[1] = L("svg", {
|
@@ -404,7 +405,7 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
404
405
|
fill: "currentColor"
|
405
406
|
})
|
406
407
|
], -1))
|
407
|
-
]) :
|
408
|
+
]) : R("", !0)
|
408
409
|
]),
|
409
410
|
_: 3
|
410
411
|
}, 8, ["append:icon", "clearable", "prepend:icon"]),
|
@@ -412,12 +413,12 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
412
413
|
key: a.value,
|
413
414
|
ref_for: !0
|
414
415
|
}, a), null, 16))), 128)),
|
415
|
-
|
416
|
+
K.value ? (h(), H(dt, {
|
416
417
|
key: 0,
|
417
418
|
target: e.teleportTarget
|
418
419
|
}, {
|
419
|
-
default:
|
420
|
-
|
420
|
+
default: r(() => [
|
421
|
+
j(gt, {
|
421
422
|
ref_key: "optionsContainer",
|
422
423
|
ref: n,
|
423
424
|
compact: e.compact,
|
@@ -429,21 +430,21 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
429
430
|
options: qe.value,
|
430
431
|
style: le(me.value),
|
431
432
|
"onOption:selected": xe,
|
432
|
-
"onOption:unselected":
|
433
|
+
"onOption:unselected": W
|
433
434
|
}, {
|
434
|
-
"options:prepend":
|
435
|
+
"options:prepend": r(() => [
|
435
436
|
c(e.$slots, "options:prepend")
|
436
437
|
]),
|
437
|
-
loading:
|
438
|
+
loading: r(() => [
|
438
439
|
c(e.$slots, "loading", { query: o.value })
|
439
440
|
]),
|
440
|
-
"no-data":
|
441
|
+
"no-data": r(() => [
|
441
442
|
c(e.$slots, "no-data", { query: o.value })
|
442
443
|
]),
|
443
|
-
"options:append":
|
444
|
+
"options:append": r(() => [
|
444
445
|
c(e.$slots, "options:append")
|
445
446
|
]),
|
446
|
-
option:
|
447
|
+
option: r((a) => [
|
447
448
|
c(e.$slots, "option", ae({
|
448
449
|
hasErrors: e.hasErrors,
|
449
450
|
loading: D.value
|
@@ -453,12 +454,12 @@ const kt = { class: "bb-base-select__input-container" }, Ct = {
|
|
453
454
|
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "style"])
|
454
455
|
]),
|
455
456
|
_: 3
|
456
|
-
}, 8, ["target"])) :
|
457
|
+
}, 8, ["target"])) : R("", !0)
|
457
458
|
]),
|
458
459
|
_: 3
|
459
460
|
}, 8, ["class"]));
|
460
461
|
}
|
461
462
|
});
|
462
463
|
export {
|
463
|
-
|
464
|
+
rl as default
|
464
465
|
};
|
package/dist/index39.js
CHANGED
@@ -1,7 +1,7 @@
|
|
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 "./
|
2
|
+
import { clamp as le } from "./index207.js";
|
3
3
|
import { head as O } from "./index254.js";
|
4
|
-
import { isCssColor as Y } from "./
|
4
|
+
import { isCssColor as Y } from "./index222.js";
|
5
5
|
import { isNil as P } from "./index255.js";
|
6
6
|
import { isNotNil as ne } from "./index135.js";
|
7
7
|
import { transposeValue as y } from "./index131.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 "./index222.js";
|
3
|
+
import { when as N } from "./index223.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
|
-
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
|
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 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 "./index242.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 "./index244.js";
|
7
|
+
import { useIndexById as T } from "./index245.js";
|
8
|
+
import { useBaseOptions as q } from "./index246.js";
|
9
|
+
import { useCoherence as J } from "./index247.js";
|
10
10
|
import { hash as Q } from "./index210.js";
|
11
|
-
import { useHashedWatcher as
|
12
|
-
import { usePrefill as X } from "./
|
11
|
+
import { useHashedWatcher as $ } from "./index248.js";
|
12
|
+
import { usePrefill as X } from "./index249.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
@@ -36,31 +36,31 @@ const ue = /* @__PURE__ */ j({
|
|
36
36
|
readonly: { type: Boolean }
|
37
37
|
},
|
38
38
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
39
|
-
setup(
|
40
|
-
const o =
|
39
|
+
setup(E, { emit: C }) {
|
40
|
+
const o = E, a = C;
|
41
41
|
if (!Array.isArray(o.modelValue))
|
42
42
|
throw new Error("Model value must be an array in checkbox group.");
|
43
|
-
const
|
44
|
-
getter:
|
45
|
-
items:
|
43
|
+
const u = k(), r = k(!1), {
|
44
|
+
getter: c,
|
45
|
+
items: L,
|
46
46
|
loading: D
|
47
47
|
} = U({
|
48
48
|
items: d(o, "items"),
|
49
49
|
debounce: 0
|
50
|
-
}),
|
50
|
+
}), m = () => {
|
51
51
|
o.enforceCoherence && !V.value && a("update:modelValue", P.value.coherent);
|
52
52
|
}, { hasPrefilled: I } = X({
|
53
53
|
onStart: !0,
|
54
54
|
currentValue: o.modelValue,
|
55
55
|
multiple: !0,
|
56
56
|
fn: async ({ prefill: e }) => {
|
57
|
-
await
|
57
|
+
await c(e, o.modelValue), m();
|
58
58
|
}
|
59
59
|
}), { data: y } = T({
|
60
60
|
items: d(o, "modelValue")
|
61
61
|
}), { options: g } = q({
|
62
62
|
disabled: d(o, "disabled"),
|
63
|
-
items:
|
63
|
+
items: L,
|
64
64
|
itemText: o.itemText,
|
65
65
|
itemValue: o.itemValue,
|
66
66
|
max: o.max,
|
@@ -80,18 +80,18 @@ const ue = /* @__PURE__ */ j({
|
|
80
80
|
iteratee: (e) => !!M.value[Q(e)]
|
81
81
|
});
|
82
82
|
let i = 0;
|
83
|
-
|
83
|
+
$(
|
84
84
|
() => o.modelValue,
|
85
85
|
async () => {
|
86
|
-
i++, V.value || (await
|
86
|
+
i++, V.value || (await c(!1, o.modelValue), m()), i--;
|
87
87
|
},
|
88
88
|
{
|
89
89
|
debounce: o.modelValueDebounceTime
|
90
90
|
}
|
91
|
-
),
|
91
|
+
), $(
|
92
92
|
() => [o.dependencies, o.items],
|
93
93
|
async () => {
|
94
|
-
I.value && (i++, await
|
94
|
+
I.value && (i++, await c(!1, o.modelValue), i === 1 && m(), i--);
|
95
95
|
},
|
96
96
|
{
|
97
97
|
debounce: o.depsDebounceTime
|
@@ -106,20 +106,22 @@ const ue = /* @__PURE__ */ j({
|
|
106
106
|
onBlur: (e) => a("blur", e),
|
107
107
|
onClick: (e) => a("click", e),
|
108
108
|
onFocus: (e) => {
|
109
|
-
a("focus", e), r.value || (document.addEventListener("focusin",
|
109
|
+
a("focus", e), r.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), r.value = !0);
|
110
110
|
},
|
111
111
|
onInput: (e) => a("input", e),
|
112
112
|
onKeydown: (e) => a("keydown", e),
|
113
113
|
onMousedown: (e) => a("mousedown", e),
|
114
114
|
onMouseup: (e) => a("mouseup", e)
|
115
|
-
}, m = (e) => {
|
116
|
-
var t;
|
117
|
-
e.target instanceof HTMLElement && ((t = b.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
|
118
115
|
}, p = (e) => {
|
119
116
|
var t;
|
120
|
-
e.target instanceof HTMLElement && ((t =
|
117
|
+
e.target instanceof HTMLElement && ((t = u.value) != null && t.$el.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
118
|
+
}, f = (e) => {
|
119
|
+
var t;
|
120
|
+
e.target instanceof HTMLElement && ((t = u.value) != null && t.$el.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
121
121
|
};
|
122
122
|
return (e, t) => (z(), G(N, {
|
123
|
+
ref_key: "container",
|
124
|
+
ref: u,
|
123
125
|
class: "bb-base-switch-group",
|
124
126
|
direction: e.direction,
|
125
127
|
"has-errors": e.hasErrors,
|
@@ -139,10 +141,10 @@ const ue = /* @__PURE__ */ j({
|
|
139
141
|
l(e.$slots, "no-data")
|
140
142
|
]),
|
141
143
|
label: s((n) => [
|
142
|
-
l(e.$slots, "label",
|
144
|
+
l(e.$slots, "label", v(b(n)))
|
143
145
|
]),
|
144
146
|
"option:prepend": s((n) => [
|
145
|
-
l(e.$slots, "option:prepend",
|
147
|
+
l(e.$slots, "option:prepend", v(b(n)))
|
146
148
|
]),
|
147
149
|
input: s(({ option: n, index: A }) => [
|
148
150
|
R(K, w({
|
@@ -157,22 +159,22 @@ const ue = /* @__PURE__ */ j({
|
|
157
159
|
readonly: e.readonly,
|
158
160
|
"true-value": n.value
|
159
161
|
}, O, {
|
160
|
-
onChange: (
|
162
|
+
onChange: (h) => F(h, n)
|
161
163
|
}), W({ _: 2 }, [
|
162
164
|
e.$slots.icon ? {
|
163
165
|
name: "icon",
|
164
|
-
fn: s((
|
166
|
+
fn: s((h) => [
|
165
167
|
l(e.$slots, "icon", w({
|
166
168
|
item: n.item,
|
167
169
|
text: n.text
|
168
|
-
},
|
170
|
+
}, h))
|
169
171
|
]),
|
170
172
|
key: "0"
|
171
173
|
} : void 0
|
172
174
|
]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
|
173
175
|
]),
|
174
176
|
"option:append": s((n) => [
|
175
|
-
l(e.$slots, "option:append",
|
177
|
+
l(e.$slots, "option:append", v(b(n)))
|
176
178
|
]),
|
177
179
|
append: s(() => [
|
178
180
|
l(e.$slots, "append")
|
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 "./index232.js";
|
7
|
+
import { useBaseOptions as ne } from "./index246.js";
|
8
|
+
import { useIndexById as re } from "./index245.js";
|
9
|
+
import ie from "./index258.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index260.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index218.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index220.js";
|
16
|
+
import { isEmpty as pe } from "./index241.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, 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 "./index220.js";
|
3
|
+
import G from "./index218.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 "./index218.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index220.js";
|
5
5
|
import { isNotNil as C } from "./index135.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 "./index222.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,5 +1,5 @@
|
|
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 "./
|
2
|
+
import { isCssColor as r } from "./index222.js";
|
3
3
|
import { isNil as B } from "./index255.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
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 "./index265.js";
|
11
11
|
import { noop as w } from "./index266.js";
|
12
|
-
import { useLocale as D } from "./
|
12
|
+
import { useLocale as D } from "./index221.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|