bitboss-ui 2.0.59 → 2.0.61
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/index110.js +4 -4
- package/dist/index118.js +1 -1
- package/dist/index120.js +4 -4
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +2 -81
- package/dist/index205.js +162 -3
- package/dist/index206.js +84 -3
- package/dist/index208.js +7 -5
- package/dist/index209.js +53 -7
- package/dist/index21.js +14 -14
- package/dist/index211.js +13 -281
- package/dist/index212.js +19 -15
- package/dist/index213.js +4 -16
- package/dist/index214.js +5 -19
- package/dist/index215.js +13 -16
- package/dist/index216.js +13 -24
- package/dist/index217.js +19 -3
- package/dist/index218.js +19 -2
- package/dist/index219.js +25 -247
- package/dist/index220.js +3 -52
- package/dist/index221.js +2 -44
- package/dist/index222.js +249 -5
- package/dist/index223.js +43 -40
- package/dist/index224.js +44 -2
- package/dist/index225.js +4 -52
- package/dist/index226.js +51 -0
- package/dist/index227.js +2 -13
- package/dist/index228.js +4 -20
- package/dist/index229.js +2 -4
- package/dist/index23.js +12 -12
- package/dist/index230.js +4 -4
- package/dist/index231.js +2 -2
- package/dist/index233.js +41 -5
- package/dist/index234.js +6 -369
- package/dist/index235.js +5 -2
- package/dist/index236.js +369 -4
- package/dist/index237.js +3 -2
- package/dist/index238.js +3 -162
- package/dist/index239.js +7 -84
- package/dist/index240.js +83 -0
- package/dist/index241.js +2 -2
- package/dist/index242.js +2 -18
- package/dist/index243.js +17 -105
- package/dist/index244.js +108 -0
- package/dist/{index245.js → index246.js} +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.js +3 -224
- package/dist/index251.js +11 -430
- package/dist/index252.js +7 -87
- package/dist/index253.js +9 -6
- package/dist/index254.js +17 -2
- package/dist/index255.js +4 -2
- package/dist/index256.js +3 -2
- package/dist/index258.js +7 -2
- package/dist/index259.js +176 -2
- package/dist/index260.js +281 -2
- package/dist/index261.js +6 -2
- package/dist/index262.js +2 -2
- package/dist/index263.js +2 -2
- package/dist/index264.js +2 -28
- package/dist/index265.js +2 -22
- package/dist/index267.js +2 -7
- package/dist/index268.js +2 -3
- package/dist/index269.js +4 -0
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -176
- package/dist/index271.js +2 -3
- package/dist/index272.js +27 -8
- package/dist/index273.js +22 -23
- package/dist/index275.js +4 -16
- package/dist/index276.js +2 -200
- package/dist/index277.js +124 -7
- package/dist/index278.js +431 -2
- package/dist/index279.js +21 -125
- package/dist/index281.js +5 -0
- package/dist/index282.js +8 -3
- package/dist/index283.js +23 -3
- package/dist/index284.js +224 -12
- package/dist/index285.js +199 -8
- package/dist/index286.js +436 -9
- package/dist/index287.js +126 -16
- package/dist/index288.js +6 -4
- package/dist/index289.js +15 -435
- package/dist/index29.js +3 -3
- package/dist/index290.js +7 -125
- package/dist/index291.js +89 -3
- package/dist/index292.js +1 -1
- package/dist/index293.js +3 -211
- package/dist/index294.js +204 -59
- package/dist/index297.js +1 -1
- package/dist/index298.js +1 -1
- package/dist/index299.js +66 -4
- package/dist/index300.js +7 -79
- package/dist/index301.js +21 -0
- package/dist/index302.js +3 -32
- package/dist/index304.js +32 -6
- package/dist/index305.js +10 -18
- package/dist/index306.js +79 -4
- package/dist/index308.js +4 -59
- package/dist/index309.js +4 -47
- package/dist/index31.js +2 -2
- package/dist/index310.js +58 -10
- package/dist/index311.js +47 -2
- package/dist/index312.js +4 -0
- package/dist/index314.js +470 -414
- package/dist/index315.js +420 -43
- package/dist/index317.js +49 -0
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index37.js +60 -60
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +42 -41
- package/dist/index86.js +1 -1
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index207.js +0 -43
- package/dist/index210.js +0 -10
- package/dist/index247.js +0 -4
- package/dist/index274.js +0 -8
- package/dist/index280.js +0 -24
- package/dist/index307.js +0 -6
- package/dist/index313.js +0 -482
- /package/dist/{index257.js → index266.js} +0 -0
package/dist/index37.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as s, renderSlot as p, unref as i, createVNode as
|
1
|
+
import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as s, renderSlot as p, unref as i, createVNode as M, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as d, withKeys as g, vModelDynamic as ze, renderList as Qe, mergeProps as Y, Teleport as _e, normalizeStyle as Ke, nextTick as Ue } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as We } from "./index8.js";
|
@@ -6,23 +6,23 @@ import { useMobile as Re } from "./index9.js";
|
|
6
6
|
import Je from "./index127.js";
|
7
7
|
/* empty css */
|
8
8
|
import { isNotNil as Ye } from "./index134.js";
|
9
|
-
import { last as je } from "./
|
10
|
-
import { matchAnyKey as j } from "./
|
9
|
+
import { last as je } from "./index221.js";
|
10
|
+
import { matchAnyKey as j } from "./index243.js";
|
11
11
|
import { useFloating as Ge } from "./index230.js";
|
12
12
|
import { useIntersectionObserver as Xe } from "./index132.js";
|
13
|
-
import { useLogger as Ze } from "./
|
14
|
-
import { useOptions as et } from "./
|
13
|
+
import { useLogger as Ze } from "./index208.js";
|
14
|
+
import { useOptions as et } from "./index205.js";
|
15
15
|
import { wait as L } from "./index131.js";
|
16
|
-
import { when as tt } from "./
|
17
|
-
import ot from "./
|
16
|
+
import { when as tt } from "./index228.js";
|
17
|
+
import ot from "./index244.js";
|
18
18
|
/* empty css */
|
19
|
-
import nt from "./
|
19
|
+
import nt from "./index246.js";
|
20
20
|
/* empty css */
|
21
|
-
import lt from "./
|
21
|
+
import lt from "./index209.js";
|
22
22
|
/* empty css */
|
23
|
-
import at from "./
|
24
|
-
import { waitFor as it } from "./
|
25
|
-
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./
|
23
|
+
import at from "./index211.js";
|
24
|
+
import { waitFor as it } from "./index234.js";
|
25
|
+
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index236.js";
|
26
26
|
const dt = { class: "bb-base-select__input-container" }, ct = {
|
27
27
|
key: 1,
|
28
28
|
class: "bb-base-select__max-reached"
|
@@ -71,15 +71,15 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
71
71
|
const t = G, h = X;
|
72
72
|
if (t.multiple && !Array.isArray(t.modelValue))
|
73
73
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
74
|
-
const Z = Me(() => import("./
|
75
|
-
() => t.comma ?
|
74
|
+
const Z = Me(() => import("./index242.js")), A = v(null), B = v(null), a = v(null), N = v(null), H = v(null), u = y(
|
75
|
+
() => t.comma ? N.value : H.value
|
76
76
|
), { isMobile: ee } = Re(), te = y(
|
77
77
|
() => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
|
78
|
-
),
|
78
|
+
), P = t.id || We().id.value;
|
79
79
|
Xe(
|
80
80
|
B,
|
81
81
|
([{ intersectionRatio: e }]) => {
|
82
|
-
e !== 1 &&
|
82
|
+
e !== 1 && C();
|
83
83
|
},
|
84
84
|
{ threshold: [0, 1] }
|
85
85
|
);
|
@@ -101,42 +101,42 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
101
101
|
}), q = v(null), E = () => {
|
102
102
|
q.value instanceof HTMLInputElement && q.value.focus();
|
103
103
|
}, le = async (e) => {
|
104
|
-
h("focus", e), Le(), document.addEventListener("click",
|
104
|
+
h("focus", e), Le(), document.addEventListener("click", D), document.addEventListener("focusin", D);
|
105
105
|
}, ae = () => {
|
106
106
|
t.prefill === "focus" && !Oe.value && !Ce.value && Be();
|
107
107
|
}, ie = async (e) => {
|
108
108
|
h("blur", e);
|
109
109
|
}, re = (e) => h("change", e), se = (e) => {
|
110
110
|
var o;
|
111
|
-
h("input", e), l.value === "" && (t.multiple || ke(null)), (o = u.value) == null || o.blur(), Ve();
|
112
|
-
},
|
111
|
+
h("input", e), l.value === "" && (t.multiple || ke(null)), (o = u.value) == null || o.blur(), F.value && O(), Ve();
|
112
|
+
}, D = async (e) => {
|
113
113
|
if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
|
114
|
-
|
114
|
+
C(), Ae(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), be();
|
115
115
|
return;
|
116
116
|
}
|
117
|
-
}, w = y(() => !(t.readonly || t.disabled ||
|
117
|
+
}, w = y(() => !(t.readonly || t.disabled || I.value || !u.value && t.multiple)), ue = async () => {
|
118
118
|
var e, o, n;
|
119
|
-
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await
|
119
|
+
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
|
120
120
|
}, pe = async () => {
|
121
121
|
var e, o, n;
|
122
|
-
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await
|
122
|
+
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
|
123
123
|
}, de = (e) => {
|
124
|
-
var n, r, m,
|
124
|
+
var n, r, m, k;
|
125
125
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
126
126
|
(r = u.value) == null || r.focusPrevious();
|
127
127
|
const o = (m = u.value) == null ? void 0 : m.getHighlighted();
|
128
|
-
o && ((
|
128
|
+
o && ((k = a.value) == null || k.focusByHash(o.valueHash));
|
129
129
|
}, ce = (e) => {
|
130
|
-
var n, r, m,
|
130
|
+
var n, r, m, k;
|
131
131
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
132
132
|
(r = u.value) == null || r.focusNext();
|
133
133
|
const o = (m = u.value) == null ? void 0 : m.getHighlighted();
|
134
|
-
o && ((
|
134
|
+
o && ((k = a.value) == null || k.focusByHash(o.valueHash));
|
135
135
|
}, fe = async () => {
|
136
136
|
var e, o;
|
137
137
|
if (w.value) {
|
138
138
|
if (!c.value)
|
139
|
-
await
|
139
|
+
await O(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
|
140
140
|
else if ((o = a.value) != null && o.getHighlighted())
|
141
141
|
a.value.confirmOption();
|
142
142
|
else if (t.addOptions) {
|
@@ -149,11 +149,11 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
149
149
|
}
|
150
150
|
const n = l.value.trim();
|
151
151
|
if (De(n)) return;
|
152
|
-
he(),
|
152
|
+
he(), _(je(Ie.value));
|
153
153
|
}
|
154
154
|
}
|
155
155
|
}, me = async () => {
|
156
|
-
c.value && await
|
156
|
+
c.value && await C();
|
157
157
|
}, ve = async () => {
|
158
158
|
var e, o;
|
159
159
|
!w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await Ue(), (o = u.value) == null || o.focusPrevious());
|
@@ -161,8 +161,8 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
161
161
|
query: l,
|
162
162
|
alignQueryToState: be,
|
163
163
|
addCurrentQueryToManualItems: he,
|
164
|
-
innerLoading:
|
165
|
-
options:
|
164
|
+
innerLoading: z,
|
165
|
+
options: Q,
|
166
166
|
selectedOptions: f,
|
167
167
|
selectOption: ge,
|
168
168
|
unselectOption: we,
|
@@ -190,28 +190,28 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
190
190
|
depsDebounceTime: t.depsDebounceTime,
|
191
191
|
queryDebounceTime: t.queryDebounceTime,
|
192
192
|
disabled: V(t, "disabled")
|
193
|
-
}), Se = y(() => f.value.length ? "" : t.placeholder),
|
193
|
+
}), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(z.value || t.loading)), $e = y(() => {
|
194
194
|
let e = [];
|
195
195
|
const o = f.value.some(
|
196
196
|
(r) => r.text === l.value
|
197
197
|
);
|
198
|
-
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e =
|
198
|
+
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = Q.value.filter((r) => {
|
199
199
|
let m = !1;
|
200
200
|
return typeof t.filterBy == "function" ? m = t.filterBy(r.value, r.item) : Array.isArray(t.filterBy) && t.filterBy.length && (m = m || j(r.item, t.filterBy, l.value.trim())), m || j(r, ["text"], l.value.trim());
|
201
|
-
}) : e =
|
202
|
-
}),
|
203
|
-
ge(e), E(), t.multiple ||
|
204
|
-
},
|
201
|
+
}) : e = Q.value, e;
|
202
|
+
}), _ = (e) => {
|
203
|
+
ge(e), E(), t.multiple || C();
|
204
|
+
}, K = (e) => {
|
205
205
|
we(e), E();
|
206
|
-
}, c = v(!1),
|
207
|
-
U.value = !0, await it(() => !!a.value),
|
208
|
-
},
|
206
|
+
}, c = v(!1), F = v(!0), U = v(!1), O = async () => {
|
207
|
+
U.value = !0, await it(() => !!a.value), F.value = !1, c.value = !0;
|
208
|
+
}, C = async () => {
|
209
209
|
var e;
|
210
|
-
c.value = !1,
|
211
|
-
}, Te = () => c.value ?
|
212
|
-
|
210
|
+
c.value = !1, F.value = !0, (e = u.value) == null || e.blur();
|
211
|
+
}, Te = () => c.value ? C() : O(), x = v(!1), Le = () => {
|
212
|
+
x.value = !0;
|
213
213
|
}, Ae = () => {
|
214
|
-
|
214
|
+
x.value = !1, h("inactive");
|
215
215
|
}, qe = (e) => {
|
216
216
|
e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (E(), Te());
|
217
217
|
}, Ee = tt(
|
@@ -231,9 +231,9 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
231
231
|
ref: A,
|
232
232
|
class: W({
|
233
233
|
"bb-base-select": !0,
|
234
|
-
"bb-base-select--active":
|
234
|
+
"bb-base-select--active": x.value,
|
235
235
|
"bb-base-select--shown": c.value,
|
236
|
-
"bb-base-select--loading":
|
236
|
+
"bb-base-select--loading": I.value,
|
237
237
|
"bb-base-select--disabled": e.disabled,
|
238
238
|
"bb-base-select--errors": e.hasErrors,
|
239
239
|
"bb-base-select--readonly": e.readonly
|
@@ -247,7 +247,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
247
247
|
p(e.$slots, "append-outer", { query: i(l) })
|
248
248
|
]),
|
249
249
|
default: s(() => [
|
250
|
-
|
250
|
+
M(lt, {
|
251
251
|
ref_key: "innerContainer",
|
252
252
|
ref: B,
|
253
253
|
"append:icon": t["append:icon"],
|
@@ -267,30 +267,30 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
267
267
|
p(e.$slots, "suffix")
|
268
268
|
]),
|
269
269
|
default: s(() => [
|
270
|
-
|
270
|
+
M(i(Je), { tag: "span" }, {
|
271
271
|
default: s(() => [
|
272
272
|
$("span", dt, [
|
273
273
|
e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
|
274
274
|
e.comma ? (b(), S(nt, {
|
275
275
|
key: 0,
|
276
276
|
ref_key: "commaBox",
|
277
|
-
ref:
|
277
|
+
ref: N,
|
278
278
|
options: i(f)
|
279
279
|
}, null, 8, ["options"])) : (b(), S(ot, {
|
280
280
|
key: 1,
|
281
281
|
ref_key: "chipsBox",
|
282
|
-
ref:
|
282
|
+
ref: H,
|
283
283
|
options: i(f),
|
284
|
-
"onOption:unselected":
|
284
|
+
"onOption:unselected": K
|
285
285
|
}, null, 8, ["options"]))
|
286
286
|
], 64)) : e.multiple ? (b(), T("span", ct, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
|
287
287
|
He($("input", {
|
288
|
-
id: i(
|
288
|
+
id: i(P),
|
289
289
|
ref_key: "input",
|
290
290
|
ref: q,
|
291
291
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => Pe(l) ? l.value = n : null),
|
292
292
|
"aria-autocomplete": "list",
|
293
|
-
"aria-controls": `${i(
|
293
|
+
"aria-controls": `${i(P)}_listbox`,
|
294
294
|
"aria-describedby": e.ariaDescribedby,
|
295
295
|
"aria-expanded": c.value,
|
296
296
|
autocomplete: e.autocomplete,
|
@@ -325,7 +325,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
325
325
|
_: 1
|
326
326
|
}),
|
327
327
|
p(e.$slots, "chevron", {
|
328
|
-
loading: !!i(
|
328
|
+
loading: !!i(z),
|
329
329
|
shown: c.value
|
330
330
|
}, () => [
|
331
331
|
o[1] || (o[1] = $("svg", {
|
@@ -350,15 +350,15 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
350
350
|
key: 0,
|
351
351
|
to: "body"
|
352
352
|
}, [
|
353
|
-
|
353
|
+
M(i(Z), {
|
354
354
|
ref_key: "optionsContainer",
|
355
355
|
ref: a,
|
356
|
-
loading:
|
356
|
+
loading: I.value,
|
357
357
|
open: c.value,
|
358
358
|
options: $e.value,
|
359
359
|
style: Ke(ne.value),
|
360
|
-
"onOption:selected":
|
361
|
-
"onOption:unselected":
|
360
|
+
"onOption:selected": _,
|
361
|
+
"onOption:unselected": K
|
362
362
|
}, {
|
363
363
|
"options:prepend": s(() => [
|
364
364
|
p(e.$slots, "options:prepend")
|
@@ -375,7 +375,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
375
375
|
option: s((n) => [
|
376
376
|
p(e.$slots, "option", Y({
|
377
377
|
hasErrors: e.hasErrors,
|
378
|
-
loading:
|
378
|
+
loading: I.value
|
379
379
|
}, n))
|
380
380
|
]),
|
381
381
|
_: 3
|
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 "./
|
2
|
+
import { clamp as le } from "./index204.js";
|
3
|
+
import { head as O } from "./index241.js";
|
4
|
+
import { isCssColor as Y } from "./index227.js";
|
5
5
|
import { isNil as P } from "./index129.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index130.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index220.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 q, createElementVNode as l, renderSlot as A } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as F } from "./
|
2
|
+
import { isCssColor as b } from "./index227.js";
|
3
|
+
import { when as F } from "./index228.js";
|
4
4
|
const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
|
2
|
-
import { useOptions as F } from "./
|
2
|
+
import { useOptions as F } from "./index205.js";
|
3
3
|
import M from "./index41.js";
|
4
4
|
/* empty css */
|
5
|
-
import S from "./
|
5
|
+
import S from "./index206.js";
|
6
6
|
/* empty css */
|
7
7
|
const I = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseSwitchGroup",
|
package/dist/index45.js
CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as
|
|
4
4
|
import ue from "./index127.js";
|
5
5
|
/* empty css */
|
6
6
|
import { isNotNil as se } from "./index134.js";
|
7
|
-
import { last as de } from "./
|
8
|
-
import { useOptions as pe } from "./
|
9
|
-
import ce from "./
|
7
|
+
import { last as de } from "./index221.js";
|
8
|
+
import { useOptions as pe } from "./index205.js";
|
9
|
+
import ce from "./index244.js";
|
10
10
|
/* empty css */
|
11
|
-
import me from "./
|
11
|
+
import me from "./index246.js";
|
12
12
|
/* empty css */
|
13
|
-
import fe from "./
|
13
|
+
import fe from "./index209.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
15
|
+
import ve from "./index211.js";
|
16
16
|
const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
2
|
+
import v from "./index211.js";
|
3
|
+
import E from "./index209.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index127.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 p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
-
import B from "./
|
2
|
+
import B from "./index209.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index211.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: {
|
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
|
2
|
-
import { isCssColor as _ } from "./
|
2
|
+
import { isCssColor as _ } from "./index227.js";
|
3
3
|
import { wait as C } from "./index131.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 "./index227.js";
|
3
3
|
import { isNil as B } from "./index129.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
package/dist/index75.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
|
2
|
-
import { findRightIndex as H } from "./
|
2
|
+
import { findRightIndex as H } from "./index282.js";
|
3
3
|
import { useId as ne } from "./index8.js";
|
4
4
|
import { wait as oe } from "./index131.js";
|
5
5
|
import { useIntersectionObserver as ae } from "./index132.js";
|
6
6
|
import le from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import N from "./
|
8
|
+
import N from "./index283.js";
|
9
9
|
const me = /* @__PURE__ */ Q({
|
10
10
|
__name: "BbDropdown",
|
11
11
|
props: {
|
@@ -24,7 +24,7 @@ const me = /* @__PURE__ */ Q({
|
|
24
24
|
},
|
25
25
|
setup(V) {
|
26
26
|
const j = W(
|
27
|
-
() => import("./
|
27
|
+
() => import("./index281.js")
|
28
28
|
), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
|
29
29
|
let e = r.items.findIndex((t) => !t.disabled), o = H(
|
30
30
|
r.items,
|
package/dist/index79.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index289.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index127.js";
|
5
5
|
/* empty css */
|
@@ -56,7 +56,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
|
|
56
56
|
const r = a.accept[t];
|
57
57
|
if (r.includes("/")) e.push(r);
|
58
58
|
else {
|
59
|
-
b || (b = (await import("./
|
59
|
+
b || (b = (await import("./index288.js")).default);
|
60
60
|
const o = b.getType(r);
|
61
61
|
if (!o)
|
62
62
|
throw new Error(
|
package/dist/index81.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index238.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as te, ref as
|
2
|
-
import { useFocusTrap as ce } from "./
|
1
|
+
import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
|
2
|
+
import { useFocusTrap as ce } from "./index233.js";
|
3
3
|
import { useId as A } from "./index8.js";
|
4
4
|
import { wait as E } from "./index131.js";
|
5
|
-
import { useModalsState as
|
5
|
+
import { useModalsState as b } from "./index239.js";
|
6
6
|
const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
|
7
7
|
__name: "BbOffCanvas",
|
8
8
|
props: {
|
@@ -27,17 +27,18 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
27
27
|
emits: ["shown", "hidden", "update:modelValue"],
|
28
28
|
setup(H, { emit: I }) {
|
29
29
|
var L, N;
|
30
|
-
const e = H, u = I, k = `title_${A().id.value}`,
|
31
|
-
const { openedModals: t } =
|
32
|
-
return !t.value || t.value ===
|
30
|
+
const e = H, u = I, k = `title_${A().id.value}`, C = `description_${A().id.value}`, c = l(null), T = l(null), W = l(null), F = l(null), R = l(null), K = l(null), P = oe(), $ = !!((N = (L = le()) == null ? void 0 : L.proxy) != null && N.$nuxt), d = l(0), U = p(() => {
|
31
|
+
const { openedModals: t } = b();
|
32
|
+
return !t.value || t.value === d.value;
|
33
33
|
}), { activate: j, deactivate: q } = ce(T, {
|
34
34
|
initialFocus: e.focusTarget ?? void 0,
|
35
|
-
clickOutsideDeactivates:
|
35
|
+
clickOutsideDeactivates: (t) => t.target === c.value,
|
36
|
+
allowOutsideClick: !0,
|
36
37
|
/* On esc deactivate the trap, return focus and then close the modal */
|
37
|
-
escapeDeactivates: () => (
|
38
|
+
escapeDeactivates: () => (se(() => {
|
38
39
|
u("update:modelValue", !1);
|
39
40
|
}), !0)
|
40
|
-
}), G =
|
41
|
+
}), G = p(() => e.closeLabel), _ = l(!1), f = l(!1), m = l(!0), v = l(!1), i = l(e.eager || e.modelValue), D = l(null), J = p(() => f.value || v.value), Q = () => {
|
41
42
|
if (!globalThis.document) return;
|
42
43
|
const t = window.innerWidth - document.documentElement.clientWidth;
|
43
44
|
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`;
|
@@ -46,15 +47,15 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
46
47
|
};
|
47
48
|
x(() => {
|
48
49
|
if (e.modelValue) {
|
49
|
-
const { openedModals: t, modalHasClosed: o } =
|
50
|
-
t.value && (o(),
|
50
|
+
const { openedModals: t, modalHasClosed: o } = b();
|
51
|
+
t.value && (o(), d.value = 0, w());
|
51
52
|
}
|
52
53
|
}), ae(() => {
|
53
54
|
!e.modelValue && !i.value || $ && !globalThis.document || M();
|
54
55
|
}), x(() => {
|
55
56
|
if (e.modelValue) {
|
56
|
-
const { openedModals: t, modalHasClosed: o } =
|
57
|
-
t.value && (o(),
|
57
|
+
const { openedModals: t, modalHasClosed: o } = b();
|
58
|
+
t.value && (o(), d.value = 0, w());
|
58
59
|
}
|
59
60
|
}), ne(
|
60
61
|
() => e.modelValue,
|
@@ -65,30 +66,30 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
65
66
|
);
|
66
67
|
const M = async () => {
|
67
68
|
if (e.modelValue) {
|
68
|
-
i.value || (i.value = !0), m.value = !1,
|
69
|
-
const { modalHasOpened: t, openedModals: o } =
|
70
|
-
t(),
|
69
|
+
i.value || (i.value = !0), m.value = !1, v.value = !1, f.value = !0;
|
70
|
+
const { modalHasOpened: t, openedModals: o } = b();
|
71
|
+
t(), d.value = o.value, Q(), await E(e.transitionDuration), f.value = !1, _.value = !0, u("shown"), j();
|
71
72
|
} else {
|
72
|
-
q(),
|
73
|
-
const { modalHasClosed: t, openedModals: o } =
|
74
|
-
t(),
|
73
|
+
q(), f.value = !1, _.value = !1, v.value = !0;
|
74
|
+
const { modalHasClosed: t, openedModals: o } = b();
|
75
|
+
t(), d.value = 0, o.value || w(), await E(e.transitionDuration), v.value = !1, m.value = !0, u("hidden"), D.value instanceof HTMLElement && D.value.focus();
|
75
76
|
}
|
76
77
|
}, y = (t) => {
|
77
|
-
t.target ===
|
78
|
+
t.target === c.value && t.preventDefault();
|
78
79
|
}, X = (t) => {
|
79
|
-
e.disabled || J.value ||
|
80
|
+
e.disabled || J.value || c.value && t.target === c.value && (e.persistent || u("update:modelValue", !1));
|
80
81
|
}, B = () => {
|
81
82
|
e.disabled || u("update:modelValue", !1);
|
82
|
-
}, Y =
|
83
|
+
}, Y = p(() => {
|
83
84
|
const t = [
|
84
85
|
{
|
85
86
|
"bb-offcanvas bb-offcanvas__overlay": !0,
|
86
87
|
"bb-offcanvas--fullscreen": e.fullscreen,
|
87
88
|
"bb-offcanvas--faded": !U.value,
|
88
|
-
"bb-offcanvas--open":
|
89
|
-
"bb-offcanvas--opening":
|
89
|
+
"bb-offcanvas--open": _.value,
|
90
|
+
"bb-offcanvas--opening": f.value,
|
90
91
|
"bb-offcanvas--closed": m.value,
|
91
|
-
"bb-offcanvas--closing":
|
92
|
+
"bb-offcanvas--closing": v.value,
|
92
93
|
[`bb-offcanvas--transition-${e.transition}`]: !0,
|
93
94
|
[`bb-offcanvas--${e.direction}`]: !0
|
94
95
|
},
|
@@ -108,7 +109,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
108
109
|
...o,
|
109
110
|
...P
|
110
111
|
};
|
111
|
-
}), Z =
|
112
|
+
}), Z = p(() => {
|
112
113
|
const t = [
|
113
114
|
{
|
114
115
|
"bb-offcanvas__panel": !0,
|
@@ -119,7 +120,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
119
120
|
role: "dialog",
|
120
121
|
"aria-modal": !0
|
121
122
|
};
|
122
|
-
i.value && (o["aria-labelledby"] = k, e.description && (o["aria-describedby"] =
|
123
|
+
i.value && (o["aria-labelledby"] = k, e.description && (o["aria-describedby"] = C));
|
123
124
|
let a, r;
|
124
125
|
const h = {
|
125
126
|
sm: 384,
|
@@ -139,12 +140,12 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
139
140
|
};
|
140
141
|
});
|
141
142
|
return (t, o) => (g(), ie(re, { to: "body" }, [
|
142
|
-
|
143
|
+
s("div", O(Y.value, {
|
143
144
|
ref_key: "overlay",
|
144
|
-
ref:
|
145
|
+
ref: c,
|
145
146
|
inert: m.value
|
146
147
|
}), [
|
147
|
-
|
148
|
+
s("div", O(Z.value, {
|
148
149
|
ref_key: "panel",
|
149
150
|
ref: T
|
150
151
|
}), [
|
@@ -155,7 +156,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
155
156
|
class: "bb-offcanvas__content"
|
156
157
|
}, [
|
157
158
|
n(t.$slots, "content", { close: B }, () => [
|
158
|
-
|
159
|
+
s("div", {
|
159
160
|
ref_key: "header",
|
160
161
|
ref: F,
|
161
162
|
class: "bb-offcanvas__header"
|
@@ -165,7 +166,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
165
166
|
title: t.title,
|
166
167
|
titleId: k
|
167
168
|
}, () => [
|
168
|
-
|
169
|
+
s("span", {
|
169
170
|
id: k,
|
170
171
|
class: "bb-offcanvas__title"
|
171
172
|
}, [
|
@@ -173,7 +174,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
173
174
|
ue(S(t.title), 1)
|
174
175
|
])
|
175
176
|
]),
|
176
|
-
|
177
|
+
s("span", fe, [
|
177
178
|
t.showClose ? (g(), V("button", {
|
178
179
|
key: 0,
|
179
180
|
"aria-label": G.value,
|
@@ -181,14 +182,14 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
181
182
|
onClick: B
|
182
183
|
}, [
|
183
184
|
n(t.$slots, "close", {}, () => [
|
184
|
-
o[0] || (o[0] =
|
185
|
-
|
185
|
+
o[0] || (o[0] = s("span", { class: "bb-offcanvas-close__icon" }, [
|
186
|
+
s("svg", {
|
186
187
|
"aria-hidden": "true",
|
187
188
|
fill: "none",
|
188
189
|
viewBox: "0 0 24 24",
|
189
190
|
xmlns: "http://www.w3.org/2000/svg"
|
190
191
|
}, [
|
191
|
-
|
192
|
+
s("path", {
|
192
193
|
d: "M23 23L1 1M23 1L1 23",
|
193
194
|
stroke: "currentColor",
|
194
195
|
"stroke-linecap": "round",
|
@@ -201,25 +202,25 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
|
|
201
202
|
])
|
202
203
|
])
|
203
204
|
], 512),
|
204
|
-
|
205
|
+
s("div", {
|
205
206
|
ref_key: "body",
|
206
207
|
ref: R,
|
207
208
|
class: "bb-offcanvas__body scrollbar-border"
|
208
209
|
}, [
|
209
210
|
n(t.$slots, "description", {
|
210
|
-
descriptionId:
|
211
|
+
descriptionId: C,
|
211
212
|
text: t.description
|
212
213
|
}, () => [
|
213
214
|
t.description ? (g(), V("div", {
|
214
215
|
key: 0,
|
215
|
-
id:
|
216
|
+
id: C,
|
216
217
|
class: "bb-offcanvas__description sr-only"
|
217
218
|
}, S(t.description), 1)) : z("", !0)
|
218
219
|
]),
|
219
220
|
n(t.$slots, "default")
|
220
221
|
], 512),
|
221
|
-
o[1] || (o[1] =
|
222
|
-
|
222
|
+
o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
|
223
|
+
s("div", {
|
223
224
|
ref_key: "footer",
|
224
225
|
ref: K,
|
225
226
|
class: "bb-offcanvas__footer"
|