bitboss-ui 2.0.47 → 2.0.48
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/index108.js +198 -181
- package/dist/index110.js +4 -4
- package/dist/index118.js +1 -1
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- 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/index15.js +2 -2
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index206.js +158 -8
- package/dist/index207.js +84 -2
- package/dist/index209.js +2 -2
- package/dist/index21.js +14 -14
- package/dist/index210.js +4 -5
- package/dist/index211.js +2 -16
- package/dist/index212.js +124 -14
- package/dist/index213.js +5 -19
- package/dist/index214.js +122 -16
- package/dist/index215.js +18 -26
- package/dist/index216.js +16 -3
- package/dist/index217.js +16 -2
- package/dist/index218.js +2 -249
- package/dist/index219.js +2 -52
- package/dist/index220.js +41 -44
- package/dist/index221.js +20 -5
- package/dist/index222.js +5 -48
- package/dist/index225.js +1 -1
- package/dist/index226.js +5 -20
- package/dist/index227.js +368 -3
- package/dist/index228.js +3 -3
- package/dist/index229.js +3 -41
- package/dist/index23.js +13 -13
- package/dist/index230.js +7 -6
- package/dist/index231.js +8 -7
- package/dist/index232.js +4 -3
- package/dist/index233.js +17 -156
- package/dist/index234.js +27 -84
- package/dist/index235.js +5 -0
- package/dist/index236.js +249 -2
- package/dist/index237.js +49 -123
- package/dist/index238.js +44 -125
- package/dist/index239.js +5 -2
- package/dist/index240.js +49 -5
- package/dist/index241.js +2 -369
- package/dist/index242.js +18 -2
- package/dist/index243.js +105 -17
- package/dist/{index246.js → index245.js} +1 -1
- package/dist/index247.js +4 -0
- package/dist/index25.js +5 -5
- package/dist/index250.js +3 -6
- package/dist/index251.js +8 -15
- package/dist/index252.js +23 -3
- package/dist/index253.js +6 -9
- package/dist/index254.js +16 -23
- package/dist/index256.js +4 -3
- package/dist/index257.js +5 -0
- package/dist/index258.js +11 -6
- package/dist/index259.js +7 -174
- package/dist/index260.js +9 -4
- package/dist/index261.js +17 -281
- package/dist/index262.js +280 -5
- package/dist/index263.js +6 -2
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -2
- package/dist/index269.js +126 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +431 -2
- package/dist/index271.js +176 -2
- package/dist/index272.js +3 -2
- package/dist/index274.js +7 -22
- package/dist/index277.js +224 -3
- package/dist/index278.js +199 -11
- package/dist/index279.js +434 -7
- package/dist/index280.js +126 -8
- package/dist/index281.js +87 -15
- package/dist/index282.js +2 -431
- package/dist/index283.js +2 -89
- package/dist/index284.js +2 -200
- package/dist/index285.js +2 -66
- package/dist/index286.js +2 -2
- package/dist/index287.js +2 -5
- package/dist/index288.js +28 -2
- package/dist/index289.js +21 -125
- package/dist/index291.js +5 -0
- package/dist/index292.js +3 -436
- package/dist/index293.js +210 -126
- package/dist/index294.js +65 -2
- package/dist/index295.js +2 -3
- package/dist/index296.js +5 -211
- package/dist/index300.js +2 -2
- package/dist/index302.js +1 -1
- package/dist/index303.js +1 -1
- package/dist/index304.js +1 -1
- package/dist/index305.js +3 -6
- package/dist/index306.js +5 -17
- package/dist/index307.js +6 -6
- package/dist/index308.js +18 -10
- package/dist/index309.js +11 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -4
- package/dist/index312.js +2 -2
- package/dist/index314.js +1 -1
- package/dist/index315.js +47 -2
- package/dist/index316.js +2 -47
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +11 -11
- package/dist/index39.js +3 -3
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +4 -4
- 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 +2 -2
- package/dist/index88.js +3 -3
- package/package.json +1 -1
- package/dist/index208.js +0 -6
- package/dist/index244.js +0 -108
- package/dist/index273.js +0 -30
- package/dist/index276.js +0 -226
- /package/dist/{index290.js → index275.js} +0 -0
package/dist/index108.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useId as
|
3
|
-
import { useRoute as
|
4
|
-
import { useRouter as
|
5
|
-
import { wait as
|
6
|
-
import { useScroll as
|
7
|
-
import
|
1
|
+
import { defineComponent as ae, ref as r, computed as $, getCurrentInstance as ie, watch as b, nextTick as se, onMounted as ne, openBlock as h, createElementBlock as p, Fragment as x, createTextVNode as re, toDisplayString as U, createElementVNode as d, unref as oe, normalizeClass as I, renderSlot as k, normalizeProps as K, guardReactiveProps as J, normalizeStyle as M, renderList as O, createVNode as j, withCtx as L, createBlock as ue, Transition as de, createCommentVNode as ce } from "vue";
|
2
|
+
import { useId as be } from "./index8.js";
|
3
|
+
import { useRoute as he } from "./index136.js";
|
4
|
+
import { useRouter as fe } from "./index137.js";
|
5
|
+
import { wait as ye } from "./index131.js";
|
6
|
+
import { useScroll as me, useWindowSize as ve } from "./index132.js";
|
7
|
+
import pe from "./index13.js";
|
8
8
|
/* empty css */
|
9
|
-
import
|
9
|
+
import ke from "./index127.js";
|
10
10
|
/* empty css */
|
11
|
-
import { throttledWatch as
|
12
|
-
const
|
11
|
+
import { throttledWatch as ge } from "./index204.js";
|
12
|
+
const _e = ["id"], we = { class: "bb-tab__label-boundary" }, $e = { class: "bb-tab__label" }, Se = { class: "bb-tab__panes-container" }, qe = ["id", "aria-labelledby"], We = /* @__PURE__ */ ae({
|
13
13
|
__name: "BbTab",
|
14
14
|
props: {
|
15
15
|
disabled: { type: Boolean },
|
@@ -24,52 +24,57 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
24
24
|
replace: { type: Boolean }
|
25
25
|
},
|
26
26
|
emits: ["update:modelValue"],
|
27
|
-
setup(
|
28
|
-
var
|
29
|
-
const t =
|
30
|
-
isScrolling:
|
31
|
-
left:
|
32
|
-
right:
|
33
|
-
})),
|
27
|
+
setup(G, { expose: Q, emit: X }) {
|
28
|
+
var A, H;
|
29
|
+
const t = G, Y = X, c = he(), S = fe(), q = r(), V = t.id ?? be().id.value, g = `bb-tab_${V}`, f = r(), { isScrolling: Z, arrivedState: B } = me(f), C = $(() => ({
|
30
|
+
isScrolling: Z.value,
|
31
|
+
left: B.left,
|
32
|
+
right: B.right
|
33
|
+
})), P = !!((H = (A = ie()) == null ? void 0 : A.proxy) != null && H.$inertia), i = r(null), o = $(
|
34
34
|
() => t.items.findIndex((e) => e.key === i.value)
|
35
|
-
),
|
36
|
-
|
35
|
+
), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
|
36
|
+
t.items.forEach((e) => {
|
37
37
|
if (!e.key)
|
38
38
|
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
39
|
-
})
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
t.querykey
|
44
|
-
)
|
45
|
-
|
46
|
-
|
47
|
-
else if (t.items[0]) {
|
48
|
-
const e = t.items.find((l) => !l.disabled);
|
49
|
-
if (!e)
|
50
|
-
throw new Error(
|
51
|
-
"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
|
39
|
+
});
|
40
|
+
const R = () => {
|
41
|
+
var e, a, l, n, s;
|
42
|
+
if (t.navigation && ((a = (e = c.value) == null ? void 0 : e.query) != null && a[t.querykey]))
|
43
|
+
i.value = (n = (l = c.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey];
|
44
|
+
else if (t.navigation && P && ((s = globalThis == null ? void 0 : globalThis.location) != null && s.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
|
45
|
+
i.value = new URL(globalThis.location.href).searchParams.get(
|
46
|
+
t.querykey
|
52
47
|
);
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
48
|
+
else if (t.modelValue)
|
49
|
+
i.value = t.modelValue;
|
50
|
+
else if (t.items[0]) {
|
51
|
+
const m = t.items.find((le) => !le.disabled);
|
52
|
+
if (!m)
|
53
|
+
throw new Error(
|
54
|
+
"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
|
55
|
+
);
|
56
|
+
const v = m.key;
|
57
|
+
i.value = v;
|
58
|
+
}
|
59
|
+
};
|
60
|
+
R();
|
61
|
+
const y = async (e, a = !1) => {
|
62
|
+
var l, n, s, m;
|
63
|
+
if (t.navigation && c.value && ((n = (l = c.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
|
64
|
+
S == null || S.push({
|
65
|
+
...c,
|
66
|
+
query: { ...(s = c.value) == null ? void 0 : s.query, [t.querykey]: e },
|
62
67
|
replace: a
|
63
68
|
});
|
64
|
-
else if (t.navigation &&
|
65
|
-
const
|
66
|
-
|
67
|
-
a ? history.replaceState({}, "",
|
69
|
+
else if (t.navigation && P && ((m = globalThis == null ? void 0 : globalThis.location) != null && m.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
|
70
|
+
const v = new URL(globalThis.location.href);
|
71
|
+
v.searchParams.set(t.querykey, e), ye(0).then(() => {
|
72
|
+
a ? history.replaceState({}, "", v.toString()) : history.pushState({}, "", v.toString());
|
68
73
|
});
|
69
74
|
}
|
70
|
-
t.modelValue !== e &&
|
75
|
+
t.modelValue !== e && Y("update:modelValue", e), i.value = e;
|
71
76
|
};
|
72
|
-
i.value &&
|
77
|
+
i.value && y(i.value, !0);
|
73
78
|
const u = (e) => {
|
74
79
|
var a = null;
|
75
80
|
switch (e) {
|
@@ -97,11 +102,11 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
97
102
|
if (a === null)
|
98
103
|
throw new Error("Could not navigate to next tab");
|
99
104
|
if (t.items[a].disabled) return;
|
100
|
-
const l = t.items[a].key,
|
101
|
-
`#${
|
105
|
+
const l = t.items[a].key, n = document.querySelector(
|
106
|
+
`#${g}_tab_${l}`
|
102
107
|
);
|
103
|
-
|
104
|
-
},
|
108
|
+
n == null || n.focus(), y(l, t.replace);
|
109
|
+
}, ee = (e) => {
|
105
110
|
if (!t.disabled)
|
106
111
|
if (e.key === "ArrowRight")
|
107
112
|
u("next");
|
@@ -114,27 +119,27 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
114
119
|
else
|
115
120
|
return;
|
116
121
|
};
|
117
|
-
|
122
|
+
b(
|
118
123
|
() => t.modelValue,
|
119
124
|
(e) => {
|
120
|
-
e &&
|
125
|
+
e && y(e, t.replace);
|
121
126
|
}
|
122
|
-
),
|
127
|
+
), b(
|
123
128
|
() => {
|
124
129
|
var e, a;
|
125
|
-
return (a = (e =
|
130
|
+
return (a = (e = c.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
|
126
131
|
},
|
127
132
|
(e) => {
|
128
|
-
e && typeof e == "string" &&
|
133
|
+
e && typeof e == "string" && y(e, t.replace);
|
129
134
|
}
|
130
|
-
),
|
135
|
+
), b(
|
131
136
|
i,
|
132
137
|
async () => {
|
133
|
-
if (
|
134
|
-
const e =
|
138
|
+
if (q.value) {
|
139
|
+
const e = q.value.querySelector(
|
135
140
|
"[role=tablist] .bb-tab__btn--active"
|
136
141
|
);
|
137
|
-
e && (await
|
142
|
+
e && (await se(), e.scrollIntoView({
|
138
143
|
behavior: "smooth",
|
139
144
|
block: "nearest",
|
140
145
|
inline: "nearest"
|
@@ -143,153 +148,165 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
143
148
|
},
|
144
149
|
{ flush: "post" }
|
145
150
|
);
|
146
|
-
const
|
147
|
-
|
151
|
+
const E = r("right");
|
152
|
+
b(
|
148
153
|
i,
|
149
154
|
(e, a) => {
|
150
155
|
if (e && a) {
|
151
|
-
const l = t.items.findIndex((s) => s.key === e),
|
152
|
-
|
156
|
+
const l = t.items.findIndex((s) => s.key === e), n = t.items.findIndex((s) => s.key === a);
|
157
|
+
E.value = l > n ? "right" : "left";
|
153
158
|
}
|
154
159
|
},
|
155
160
|
{ flush: "sync" }
|
156
161
|
);
|
157
|
-
const
|
158
|
-
if (!
|
159
|
-
const e =
|
162
|
+
const N = r(0), W = r(0), z = r(0), D = r(0), F = r(0), T = () => {
|
163
|
+
if (!f.value) return;
|
164
|
+
const e = f.value.querySelector(
|
160
165
|
".bb-tab__btn--active"
|
161
166
|
);
|
162
|
-
e && (
|
167
|
+
e && (z.value = e.offsetLeft, D.value = e.offsetTop, N.value = e.clientWidth, W.value = e.clientHeight, F.value = f.value.scrollWidth);
|
163
168
|
};
|
164
|
-
|
165
|
-
const { width:
|
166
|
-
return
|
167
|
-
|
168
|
-
|
169
|
+
ne(T), b(i, T, { flush: "post" });
|
170
|
+
const { width: te } = ve();
|
171
|
+
return ge(te, T, { throttle: 100 }), b(
|
172
|
+
() => t.items,
|
173
|
+
() => {
|
174
|
+
i.value && !t.items.find((e) => e.key === i.value) && R();
|
175
|
+
},
|
176
|
+
{
|
177
|
+
immediate: !0,
|
178
|
+
deep: !0
|
179
|
+
}
|
180
|
+
), Q({
|
181
|
+
isFirst: _,
|
182
|
+
isLast: w,
|
169
183
|
current: i,
|
170
184
|
currentIndex: o,
|
171
185
|
goTo: u
|
172
|
-
}), (e, a) => (
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
"bb-tab
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
"
|
192
|
-
|
193
|
-
|
194
|
-
c("span", {
|
195
|
-
class: "bb-tab__highlight",
|
196
|
-
style: j({
|
197
|
-
"--width": `${R.value}px`,
|
198
|
-
"--height": `${E.value}px`,
|
199
|
-
"--left": `${P.value}px`,
|
200
|
-
"--top": `${W.value}px`
|
186
|
+
}), (e, a) => (h(), p(x, null, [
|
187
|
+
re(U(e.items) + " ", 1),
|
188
|
+
d("div", {
|
189
|
+
id: oe(V),
|
190
|
+
ref_key: "tabs",
|
191
|
+
ref: q,
|
192
|
+
class: I(["bb-tab", {
|
193
|
+
[`bb-tab--${e.direction}`]: !0,
|
194
|
+
"bb-tab--disabled": !0
|
195
|
+
}])
|
196
|
+
}, [
|
197
|
+
d("div", we, [
|
198
|
+
d("span", null, [
|
199
|
+
k(e.$slots, "header:prepend", K(J(C.value)))
|
200
|
+
]),
|
201
|
+
d("ul", {
|
202
|
+
ref_key: "tablist",
|
203
|
+
ref: f,
|
204
|
+
class: "bb-tab__label-container",
|
205
|
+
role: "tablist",
|
206
|
+
style: M({
|
207
|
+
"--inner-width": `${F.value}px`
|
201
208
|
})
|
202
|
-
}, null, 4),
|
203
|
-
(b(!0), m(G, null, Q(e.items, (l) => (b(), m("li", {
|
204
|
-
key: l.key,
|
205
|
-
role: "presentation"
|
206
209
|
}, [
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
210
|
+
d("span", {
|
211
|
+
class: "bb-tab__highlight",
|
212
|
+
style: M({
|
213
|
+
"--width": `${N.value}px`,
|
214
|
+
"--height": `${W.value}px`,
|
215
|
+
"--left": `${z.value}px`,
|
216
|
+
"--top": `${D.value}px`
|
217
|
+
})
|
218
|
+
}, null, 4),
|
219
|
+
(h(!0), p(x, null, O(e.items, (l) => (h(), p("li", {
|
220
|
+
key: l.key,
|
221
|
+
role: "presentation"
|
222
|
+
}, [
|
223
|
+
j(pe, {
|
224
|
+
id: `${g}_tab_${l.key}`,
|
225
|
+
"aria-selected": i.value === l.key,
|
226
|
+
class: I(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
|
227
|
+
disabled: l.disabled || e.disabled,
|
228
|
+
role: "tab",
|
229
|
+
tabindex: i.value === l.key ? 0 : -1,
|
230
|
+
onClick: (n) => y(l.key, t.replace),
|
231
|
+
onKeydown: ee
|
232
|
+
}, {
|
233
|
+
default: L(() => [
|
234
|
+
k(e.$slots, `label-${l.key}`, {
|
230
235
|
current: i.value,
|
231
236
|
currentIndex: o.value,
|
232
237
|
disabled: !!(l.disabled || e.disabled),
|
233
238
|
goTo: u,
|
234
|
-
isFirst:
|
235
|
-
isLast:
|
239
|
+
isFirst: _.value,
|
240
|
+
isLast: w.value,
|
236
241
|
selected: i.value === l.key,
|
237
242
|
text: l.label,
|
238
243
|
value: l.key
|
239
244
|
}, () => [
|
240
|
-
|
245
|
+
k(e.$slots, "label", {
|
246
|
+
current: i.value,
|
247
|
+
currentIndex: o.value,
|
248
|
+
disabled: !!(l.disabled || e.disabled),
|
249
|
+
goTo: u,
|
250
|
+
isFirst: _.value,
|
251
|
+
isLast: w.value,
|
252
|
+
selected: i.value === l.key,
|
253
|
+
text: l.label,
|
254
|
+
value: l.key
|
255
|
+
}, () => [
|
256
|
+
d("span", $e, U(l.label), 1)
|
257
|
+
])
|
241
258
|
])
|
242
|
-
])
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
]
|
247
|
-
|
248
|
-
|
249
|
-
|
259
|
+
]),
|
260
|
+
_: 2
|
261
|
+
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
|
262
|
+
]))), 128))
|
263
|
+
], 4),
|
264
|
+
d("span", null, [
|
265
|
+
k(e.$slots, "header:append", K(J(C.value)))
|
266
|
+
])
|
267
|
+
]),
|
268
|
+
d("div", Se, [
|
269
|
+
j(ke, null, {
|
270
|
+
default: L(() => [
|
271
|
+
(h(!0), p(x, null, O(e.items, (l) => (h(), ue(de, {
|
272
|
+
key: l.key,
|
273
|
+
css: e.animate,
|
274
|
+
name: `tab-slide-${E.value}`
|
275
|
+
}, {
|
276
|
+
default: L(() => [
|
277
|
+
i.value === l.key || e.eager || l.eager ? (h(), p("section", {
|
278
|
+
key: 0,
|
279
|
+
id: `${g}_tabpanel_${l.key}`,
|
280
|
+
"aria-labelledby": `${g}_tab_${l.key}`,
|
281
|
+
class: I(["bb-tab__pane", {
|
282
|
+
"bb-tab__pane--shown": i.value === l.key
|
283
|
+
}]),
|
284
|
+
role: "tabpanel",
|
285
|
+
tabindex: "0"
|
286
|
+
}, [
|
287
|
+
k(e.$slots, l.key, {
|
288
|
+
current: i.value,
|
289
|
+
currentIndex: o.value,
|
290
|
+
disabled: !!(l.disabled || e.disabled),
|
291
|
+
goTo: u,
|
292
|
+
isFirst: _.value,
|
293
|
+
isLast: w.value,
|
294
|
+
selected: i.value === l.key,
|
295
|
+
text: l.label,
|
296
|
+
value: l.key
|
297
|
+
})
|
298
|
+
], 10, qe)) : ce("", !0)
|
299
|
+
]),
|
300
|
+
_: 2
|
301
|
+
}, 1032, ["css", "name"]))), 128))
|
302
|
+
]),
|
303
|
+
_: 3
|
304
|
+
})
|
250
305
|
])
|
251
|
-
])
|
252
|
-
|
253
|
-
X(_e, null, {
|
254
|
-
default: T(() => [
|
255
|
-
(b(!0), m(G, null, Q(e.items, (l) => (b(), ce(be, {
|
256
|
-
key: l.key,
|
257
|
-
css: e.animate,
|
258
|
-
name: `tab-slide-${C.value}`
|
259
|
-
}, {
|
260
|
-
default: T(() => [
|
261
|
-
i.value === l.key || e.eager || l.eager ? (b(), m("section", {
|
262
|
-
key: 0,
|
263
|
-
id: `${p}_tabpanel_${l.key}`,
|
264
|
-
"aria-labelledby": `${p}_tab_${l.key}`,
|
265
|
-
class: x(["bb-tab__pane", {
|
266
|
-
"bb-tab__pane--shown": i.value === l.key
|
267
|
-
}]),
|
268
|
-
role: "tabpanel",
|
269
|
-
tabindex: "0"
|
270
|
-
}, [
|
271
|
-
v(e.$slots, l.key, {
|
272
|
-
current: i.value,
|
273
|
-
currentIndex: o.value,
|
274
|
-
disabled: !!(l.disabled || e.disabled),
|
275
|
-
goTo: u,
|
276
|
-
isFirst: k.value,
|
277
|
-
isLast: g.value,
|
278
|
-
selected: i.value === l.key,
|
279
|
-
text: l.label,
|
280
|
-
value: l.key
|
281
|
-
})
|
282
|
-
], 10, Te)) : he("", !0)
|
283
|
-
]),
|
284
|
-
_: 2
|
285
|
-
}, 1032, ["css", "name"]))), 128))
|
286
|
-
]),
|
287
|
-
_: 3
|
288
|
-
})
|
289
|
-
])
|
290
|
-
], 10, $e));
|
306
|
+
], 10, _e)
|
307
|
+
], 64));
|
291
308
|
}
|
292
309
|
});
|
293
310
|
export {
|
294
|
-
|
311
|
+
We as default
|
295
312
|
};
|
package/dist/index110.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as oe, ref as x, computed as y, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as _, createElementVNode as o, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
|
2
|
-
import { add as ue } from "./
|
2
|
+
import { add as ue } from "./index295.js";
|
3
3
|
import { clamp as pe } from "./index205.js";
|
4
4
|
import { isNil as M } from "./index129.js";
|
5
5
|
import { useId as fe } from "./index8.js";
|
6
|
-
import { useItemValue as me } from "./
|
7
|
-
import { when as ye } from "./
|
6
|
+
import { useItemValue as me } from "./index260.js";
|
7
|
+
import { when as ye } from "./index210.js";
|
8
8
|
import J from "./index17.js";
|
9
9
|
/* empty css */
|
10
10
|
import he from "./index31.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useOptions as ke } from "./
|
12
|
+
import { useOptions as ke } from "./index206.js";
|
13
13
|
const _e = {
|
14
14
|
key: 0,
|
15
15
|
class: "sr-only"
|
package/dist/index118.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
|
2
2
|
import { state as k, useToast as C } from "./index11.js";
|
3
|
-
import B from "./
|
3
|
+
import B from "./index294.js";
|
4
4
|
const N = /* @__PURE__ */ s({
|
5
5
|
__name: "BbToast",
|
6
6
|
props: {
|
package/dist/index120.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as z, defineAsyncComponent as A, ref as a, watch as I, computed as R, openBlock as v, createElementBlock as S, mergeProps as U, createElementVNode as c, renderSlot as E, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as D, withCtx as L, createCommentVNode as M } from "vue";
|
2
|
-
import { useFloating as q, arrow as G } from "./
|
2
|
+
import { useFloating as q, arrow as G } from "./index212.js";
|
3
3
|
import { useId as J } from "./index8.js";
|
4
4
|
import { wait as P } from "./index131.js";
|
5
5
|
import K from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as b } from "./
|
8
|
-
import { waitFor as Q } from "./
|
9
|
-
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./
|
7
|
+
import { throttle as b } from "./index229.js";
|
8
|
+
import { waitFor as Q } from "./index222.js";
|
9
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index227.js";
|
10
10
|
const ue = /* @__PURE__ */ z({
|
11
11
|
__name: "BbTooltip",
|
12
12
|
props: {
|
@@ -24,7 +24,7 @@ const ue = /* @__PURE__ */ z({
|
|
24
24
|
},
|
25
25
|
setup(F) {
|
26
26
|
const O = A(
|
27
|
-
() => import("./
|
27
|
+
() => import("./index250.js")
|
28
28
|
), t = F, w = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), _ = a(), { placement: g, middlewareData: $ } = q(s, d, {
|
29
29
|
placement: t.placement,
|
30
30
|
whileElementsMounted: X,
|
package/dist/index122.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
-
import { flattenTree as T } from "./
|
2
|
+
import { flattenTree as T } from "./index296.js";
|
3
3
|
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
4
|
__name: "BbTree",
|
5
5
|
props: {
|
package/dist/index126.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as z, openBlock as _, createElementBlock as b, mergeProps as h } from "vue";
|
2
|
-
import { isCssColor as w } from "./
|
2
|
+
import { isCssColor as w } from "./index209.js";
|
3
3
|
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index127.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
2
|
-
import { throttle as g } from "./
|
2
|
+
import { throttle as g } from "./index229.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index128.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index209.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
|
2
2
|
import { _config as o } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
3
|
+
import { useLogger as m } from "./index231.js";
|
4
4
|
const P = /* @__PURE__ */ y({
|
5
5
|
__name: "BaseButton",
|
6
6
|
props: {
|
package/dist/index15.js
CHANGED
@@ -2,8 +2,8 @@ import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, op
|
|
2
2
|
import z from "./index223.js";
|
3
3
|
/* empty css */
|
4
4
|
import I from "./index225.js";
|
5
|
-
import { vMaska as M } from "./
|
6
|
-
import { isHex as D } from "./
|
5
|
+
import { vMaska as M } from "./index221.js";
|
6
|
+
import { isHex as D } from "./index232.js";
|
7
7
|
const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
|
8
8
|
__name: "BaseColorInput",
|
9
9
|
props: {
|
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as F } from "./
|
4
|
-
import { booleanishToBoolean as N } from "./
|
2
|
+
import { isCssColor as y } from "./index209.js";
|
3
|
+
import { when as F } from "./index210.js";
|
4
|
+
import { booleanishToBoolean as N } from "./index211.js";
|
5
5
|
const S = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index19.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
|
2
|
-
import { useOptions as z } from "./
|
2
|
+
import { useOptions as z } from "./index206.js";
|
3
3
|
import F from "./index17.js";
|
4
4
|
/* empty css */
|
5
|
-
import M from "./
|
5
|
+
import M from "./index207.js";
|
6
6
|
/* empty css */
|
7
7
|
const G = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseCheckboxGroup",
|