bitboss-ui 2.1.91 → 2.1.93
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/BbTab/BbTab.vue.d.ts +120 -91
- package/dist/index107.js +9 -9
- package/dist/index114.js +1 -1
- package/dist/index120.js +239 -167
- package/dist/index122.js +12 -12
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +1 -1
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +14 -14
- package/dist/index215.js +138 -2
- package/dist/index216.js +2 -138
- package/dist/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index219.js +4 -5
- package/dist/index220.js +13 -5
- package/dist/index221.js +20 -5
- package/dist/index222.js +201 -5
- package/dist/index224.js +135 -2
- package/dist/index226.js +7 -8
- package/dist/index227.js +2 -268
- package/dist/index228.js +2 -52
- package/dist/index229.js +188 -52
- package/dist/index23.js +11 -11
- package/dist/index230.js +3 -32
- package/dist/index231.js +12 -59
- package/dist/index232.js +13 -13
- package/dist/index233.js +3 -4
- package/dist/index234.js +4 -20
- package/dist/index235.js +9 -200
- package/dist/index236.js +5 -0
- package/dist/index237.js +4 -135
- package/dist/index238.js +5 -0
- package/dist/index239.js +9 -10
- package/dist/index240.js +8 -3
- package/dist/index241.js +3 -4
- package/dist/index242.js +29 -3
- package/dist/index243.js +16 -86
- package/dist/index244.js +19 -0
- package/dist/index245.js +48 -26
- package/dist/index246.js +11 -16
- package/dist/index247.js +32 -50
- package/dist/index248.js +28 -15
- package/dist/index25.js +3 -3
- package/dist/index250.js +22 -15
- package/dist/index251.js +5 -34
- package/dist/index252.js +5 -9
- package/dist/index253.js +5 -13
- package/dist/index254.js +5 -23
- package/dist/index255.js +2 -9
- package/dist/index256.js +6 -23
- package/dist/index257.js +8 -2
- package/dist/index258.js +268 -2
- package/dist/index259.js +52 -4
- package/dist/index260.js +50 -7
- package/dist/index261.js +31 -52
- package/dist/index262.js +60 -2
- package/dist/index263.js +86 -2
- package/dist/index265.js +14 -32
- package/dist/index266.js +32 -26
- package/dist/index267.js +11 -0
- package/dist/index268.js +8 -10
- package/dist/index269.js +23 -5
- package/dist/index27.js +1 -1
- package/dist/index270.js +6 -3
- package/dist/index271.js +16 -6
- package/dist/index272.js +52 -15
- package/dist/index273.js +2 -106
- package/dist/index274.js +9 -0
- package/dist/index275.js +7 -100
- package/dist/index277.js +2 -3
- package/dist/index278.js +2 -13
- package/dist/index279.js +3 -5
- package/dist/index280.js +18 -5
- package/dist/index281.js +12 -5
- package/dist/index282.js +106 -3
- package/dist/index284.js +100 -7
- package/dist/index286.js +229 -3
- package/dist/index287.js +33 -2
- package/dist/index288.js +3 -7
- package/dist/index289.js +67 -7
- package/dist/index29.js +2 -2
- package/dist/index290.js +11 -67
- package/dist/index291.js +5 -18
- package/dist/index292.js +5 -12
- package/dist/index293.js +5 -229
- package/dist/index294.js +7 -0
- package/dist/index295.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +7 -17
- package/dist/index299.js +1 -1
- package/dist/index300.js +5 -3
- package/dist/index301.js +3 -6
- package/dist/index302.js +3 -280
- package/dist/index303.js +17 -2
- package/dist/index304.js +27 -15
- package/dist/index305.js +280 -2
- package/dist/index306.js +2 -16
- package/dist/index307.js +16 -2
- package/dist/index308.js +2 -27
- package/dist/index309.js +16 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -2
- package/dist/index311.js +27 -2
- package/dist/index312.js +2 -2
- package/dist/index313.js +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.js +1 -1
- package/dist/index316.js +2 -4
- package/dist/index317.js +2 -5
- package/dist/index318.js +2 -719
- package/dist/index319.js +716 -363
- package/dist/index320.js +366 -57
- package/dist/index321.js +57 -3
- package/dist/index322.js +4 -3
- package/dist/index323.js +3 -4
- package/dist/index324.js +3 -6
- package/dist/index325.js +2 -5
- package/dist/index326.js +5 -124
- package/dist/index327.js +5 -2
- package/dist/index328.js +2 -15
- package/dist/index329.js +8 -2
- package/dist/index33.js +8 -8
- package/dist/index330.js +5 -18
- package/dist/index331.js +8 -2
- package/dist/index332.js +5 -2
- package/dist/index333.js +6 -7
- package/dist/index334.js +6 -5
- package/dist/index335.js +19 -8
- package/dist/index336.js +9 -5
- package/dist/index337.js +14 -6
- package/dist/index338.js +226 -33
- package/dist/index339.js +35 -6
- package/dist/index340.js +6 -129
- package/dist/index341.js +113 -382
- package/dist/index342.js +397 -6
- package/dist/index343.js +57 -18
- package/dist/index344.js +58 -9
- package/dist/index345.js +124 -14
- package/dist/index346.js +2 -58
- package/dist/index347.js +15 -58
- package/dist/index348.js +2 -22
- package/dist/index349.js +21 -0
- package/dist/index35.js +4 -4
- package/dist/index350.js +2 -2
- package/dist/index351.js +21 -227
- package/dist/index353.js +130 -89
- package/dist/index354.js +43 -437
- package/dist/index355.js +91 -126
- package/dist/index356.js +515 -42
- package/dist/index357.js +424 -503
- package/dist/index358.js +126 -48
- package/dist/index359.js +52 -0
- package/dist/index37.js +18 -18
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +5 -5
- package/dist/index67.js +1 -1
- package/dist/index80.js +6 -6
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +17 -17
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +5 -5
- package/dist/utilities/functions/merge.d.ts +11 -1
- package/package.json +3 -3
- package/dist/index223.js +0 -5
- package/dist/index225.js +0 -8
- package/dist/index249.js +0 -14
- package/dist/index283.js +0 -10
- package/dist/index285.js +0 -190
- package/dist/index298.js +0 -30
- package/dist/index352.js +0 -136
- /package/dist/{index264.js → index276.js} +0 -0
package/dist/index120.js
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import fe from "./index13.js";
|
|
1
|
+
import { defineComponent as ie, ref as c, computed as y, getCurrentInstance as ce, watch as b, nextTick as de, onMounted as ue, createElementBlock as g, openBlock as u, normalizeClass as I, unref as fe, createElementVNode as v, renderSlot as k, normalizeProps as A, guardReactiveProps as H, normalizeStyle as he, Fragment as O, renderList as U, createVNode as be, withCtx as $, toDisplayString as ve, createBlock as X, resolveDynamicComponent as me, Transition as pe, createCommentVNode as ye } from "vue";
|
|
2
|
+
import { useId as ge } from "./index8.js";
|
|
3
|
+
import { useRoute as ke } from "./index146.js";
|
|
4
|
+
import { useRouter as Se } from "./index147.js";
|
|
5
|
+
import { useScroll as _e, useResizeObserver as we } from "./index141.js";
|
|
6
|
+
import xe from "./index13.js";
|
|
8
7
|
/* empty css */
|
|
9
|
-
import
|
|
8
|
+
import Ce from "./index112.js";
|
|
10
9
|
/* empty css */
|
|
11
|
-
import { useFrameworkDetection as
|
|
12
|
-
|
|
10
|
+
import { useFrameworkDetection as Ie } from "./index267.js";
|
|
11
|
+
import { merge as $e } from "./index287.js";
|
|
12
|
+
import { isNil as Be } from "./index227.js";
|
|
13
|
+
const qe = ["id"], Te = { class: "bb-tab__label-boundary" }, Le = { class: "bb-tab__label" }, Fe = { class: "bb-tab__panes-container" }, Ee = ["id", "aria-labelledby", "tabindex"], je = /* @__PURE__ */ ie({
|
|
13
14
|
__name: "BbTab",
|
|
14
15
|
props: {
|
|
15
16
|
disabled: { type: Boolean },
|
|
16
17
|
eager: { type: Boolean },
|
|
17
18
|
id: {},
|
|
19
|
+
headers: {},
|
|
20
|
+
only: {},
|
|
21
|
+
onBefore: {},
|
|
22
|
+
onCancel: {},
|
|
23
|
+
onFinish: {},
|
|
24
|
+
onError: {},
|
|
25
|
+
onProgress: {},
|
|
26
|
+
onStart: {},
|
|
27
|
+
onSuccess: {},
|
|
28
|
+
preserveScroll: { type: [Boolean, Function] },
|
|
29
|
+
preserveState: { type: [Boolean, Function, null] },
|
|
30
|
+
server: { type: Boolean },
|
|
18
31
|
animateX: { type: Boolean, default: !0 },
|
|
19
32
|
animateY: { type: Boolean, default: !0 },
|
|
20
33
|
direction: { default: "horizontal" },
|
|
@@ -25,267 +38,326 @@ const me = ["id"], ye = { class: "bb-tab__label-boundary" }, ve = { class: "bb-t
|
|
|
25
38
|
replace: { type: Boolean }
|
|
26
39
|
},
|
|
27
40
|
emits: ["update:modelValue"],
|
|
28
|
-
setup(
|
|
29
|
-
const t =
|
|
30
|
-
isScrolling:
|
|
41
|
+
setup(Y, { expose: J, emit: M }) {
|
|
42
|
+
const t = Y, j = M, f = ke(), B = Se(), G = c(), q = t.id ?? ge().id.value, w = `bb-tab_${q}`, r = c(), { isScrolling: Q, arrivedState: T } = _e(r), L = y(() => ({
|
|
43
|
+
isScrolling: Q.value,
|
|
31
44
|
left: T.left,
|
|
32
45
|
right: T.right
|
|
33
|
-
})), { isInertia:
|
|
34
|
-
() => t.items.findIndex((e) => e.key ===
|
|
35
|
-
),
|
|
46
|
+
})), { isInertia: F } = Ie(), Z = ce(), a = c(null), i = y(
|
|
47
|
+
() => t.items.findIndex((e) => e.key === a.value)
|
|
48
|
+
), S = y(() => i.value === 0), _ = y(() => i.value === t.items.length - 1);
|
|
36
49
|
t.items.forEach((e) => {
|
|
37
50
|
if (!e.key)
|
|
38
51
|
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
|
39
52
|
});
|
|
40
|
-
const
|
|
41
|
-
if (t.navigation &&
|
|
42
|
-
|
|
43
|
-
else if (t.navigation &&
|
|
44
|
-
|
|
53
|
+
const E = () => {
|
|
54
|
+
if (t.navigation && f.value?.query?.[t.querykey])
|
|
55
|
+
a.value = f.value?.query?.[t.querykey];
|
|
56
|
+
else if (t.navigation && F && globalThis?.location?.href && new URL(globalThis.location.href).searchParams.get(t.querykey))
|
|
57
|
+
a.value = new URL(globalThis.location.href).searchParams.get(
|
|
45
58
|
t.querykey
|
|
46
59
|
);
|
|
47
60
|
else if (t.modelValue)
|
|
48
|
-
|
|
61
|
+
a.value = t.modelValue;
|
|
49
62
|
else if (t.items[0]) {
|
|
50
|
-
const e = t.items.find((
|
|
63
|
+
const e = t.items.find((n) => !n.disabled);
|
|
51
64
|
if (!e)
|
|
52
65
|
throw new Error(
|
|
53
66
|
"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
|
|
54
67
|
);
|
|
55
|
-
const
|
|
56
|
-
|
|
68
|
+
const s = e.key;
|
|
69
|
+
a.value = s;
|
|
57
70
|
}
|
|
58
71
|
};
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
E();
|
|
73
|
+
const ee = (e) => ({
|
|
74
|
+
headers: e.headers ?? t.headers,
|
|
75
|
+
only: e.only ?? t.only,
|
|
76
|
+
preserveScroll: e.preserveScroll ?? t.preserveScroll,
|
|
77
|
+
preserveState: e.preserveState ?? t.preserveState,
|
|
78
|
+
server: e.server ?? t.server,
|
|
79
|
+
onBefore: e.onBefore ?? t.onBefore,
|
|
80
|
+
onStart: e.onStart ?? t.onStart,
|
|
81
|
+
onProgress: e.onProgress ?? t.onProgress,
|
|
82
|
+
onSuccess: e.onSuccess ?? t.onSuccess,
|
|
83
|
+
onError: e.onError ?? t.onError,
|
|
84
|
+
onCancel: e.onCancel ?? t.onCancel,
|
|
85
|
+
onFinish: e.onFinish ?? t.onFinish
|
|
86
|
+
}), P = y(() => {
|
|
87
|
+
const e = a.value, s = i.value;
|
|
88
|
+
return t.items.map((o) => {
|
|
89
|
+
const { key: l, label: h, eager: C } = o, z = `${w}_tab_${o.key}`, ne = `${w}_tabpanel_${o.key}`, se = `label-${o.key}`, p = o.key === a.value, oe = {
|
|
90
|
+
"bb-tab__btn": !0,
|
|
91
|
+
"bb-tab__btn--active": p
|
|
92
|
+
}, le = {
|
|
93
|
+
"bb-tab__pane": !0,
|
|
94
|
+
"bb-tab__pane--shown": p
|
|
95
|
+
}, ae = !!(o.disabled || t.disabled);
|
|
96
|
+
return {
|
|
97
|
+
tabId: z,
|
|
98
|
+
eager: C,
|
|
99
|
+
panelId: ne,
|
|
100
|
+
active: p,
|
|
101
|
+
ariaSelected: !!p,
|
|
102
|
+
labelSlotName: se,
|
|
103
|
+
tabClasses: oe,
|
|
104
|
+
paneClasses: le,
|
|
105
|
+
role: "tab",
|
|
106
|
+
tabindex: p ? 0 : -1,
|
|
107
|
+
disabled: ae,
|
|
108
|
+
current: e,
|
|
109
|
+
key: l,
|
|
110
|
+
label: h,
|
|
111
|
+
currentIndex: s,
|
|
112
|
+
onClick: () => m(o.key),
|
|
113
|
+
onKeydown: (re) => te(re)
|
|
114
|
+
};
|
|
115
|
+
});
|
|
116
|
+
}), m = async (e, s = t.replace) => {
|
|
117
|
+
const n = t.items.find((l) => l.key === e);
|
|
118
|
+
if (Be(n) || n.key === a.value) return;
|
|
119
|
+
const o = n ? ee(n) : {};
|
|
120
|
+
if (t.navigation && f.value && f.value?.query?.[t.querykey] !== e) {
|
|
121
|
+
if (!B) return;
|
|
122
|
+
B[s ? "replace" : "push"](
|
|
123
|
+
$e(f.value, {
|
|
124
|
+
query: { [t.querykey]: e },
|
|
125
|
+
replace: s
|
|
126
|
+
})
|
|
127
|
+
);
|
|
128
|
+
} else if (t.navigation && F) {
|
|
129
|
+
const l = n.href ?? globalThis.location.href, h = new URL(l, window.location.origin);
|
|
130
|
+
h.searchParams.set(t.querykey, e);
|
|
131
|
+
const C = o.server ? "visit" : "push";
|
|
132
|
+
(Z?.proxy?.$inertia)[C](h.toString(), {
|
|
133
|
+
replace: s,
|
|
134
|
+
headers: o.headers,
|
|
135
|
+
only: o.only,
|
|
136
|
+
preserveScroll: o.preserveScroll,
|
|
137
|
+
preserveState: o.preserveState ?? !0,
|
|
138
|
+
onBefore: o.onBefore,
|
|
139
|
+
onStart: o.onStart,
|
|
140
|
+
onProgress: o.onProgress,
|
|
141
|
+
onSuccess: o.onSuccess,
|
|
142
|
+
onError: o.onError,
|
|
143
|
+
onCancel: o.onCancel,
|
|
144
|
+
onFinish: o.onFinish
|
|
71
145
|
});
|
|
72
146
|
}
|
|
73
|
-
t.modelValue !== e &&
|
|
147
|
+
t.modelValue !== e && j("update:modelValue", e), a.value = e;
|
|
74
148
|
};
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
var
|
|
149
|
+
a.value && m(a.value, !0);
|
|
150
|
+
const d = (e) => {
|
|
151
|
+
var s = null;
|
|
78
152
|
switch (e) {
|
|
79
153
|
case "first":
|
|
80
|
-
for (
|
|
81
|
-
|
|
154
|
+
for (s = 0; s < t.items.length - 1 && t.items[s].disabled; )
|
|
155
|
+
s++;
|
|
82
156
|
break;
|
|
83
157
|
case "previous": {
|
|
84
|
-
let
|
|
85
|
-
for (;
|
|
86
|
-
|
|
158
|
+
let l = 1;
|
|
159
|
+
for (; l < t.items.length && (s = (i.value + t.items.length - l) % t.items.length, t.items[s].disabled); )
|
|
160
|
+
l++;
|
|
87
161
|
break;
|
|
88
162
|
}
|
|
89
163
|
case "next": {
|
|
90
|
-
let
|
|
91
|
-
for (;
|
|
92
|
-
|
|
164
|
+
let l = 1;
|
|
165
|
+
for (; l < t.items.length && (s = (i.value + l) % t.items.length, t.items[s].disabled); )
|
|
166
|
+
l++;
|
|
93
167
|
break;
|
|
94
168
|
}
|
|
95
169
|
case "last":
|
|
96
|
-
for (
|
|
97
|
-
|
|
170
|
+
for (s = t.items.length - 1; s >= 0 && t.items[s].disabled; )
|
|
171
|
+
s--;
|
|
98
172
|
break;
|
|
99
173
|
}
|
|
100
|
-
if (
|
|
174
|
+
if (s === null)
|
|
101
175
|
throw new Error("Could not navigate to next tab");
|
|
102
|
-
if (t.items[
|
|
103
|
-
const
|
|
176
|
+
if (t.items[s].disabled) return;
|
|
177
|
+
const n = t.items[s].key;
|
|
104
178
|
document.querySelector(
|
|
105
|
-
`#${
|
|
106
|
-
)?.focus(), m(
|
|
107
|
-
},
|
|
179
|
+
`#${w}_tab_${n}`
|
|
180
|
+
)?.focus(), m(n);
|
|
181
|
+
}, te = (e) => {
|
|
108
182
|
if (!t.disabled)
|
|
109
183
|
if (e.key === "ArrowRight")
|
|
110
|
-
|
|
184
|
+
d("next");
|
|
111
185
|
else if (e.key === "ArrowLeft")
|
|
112
|
-
|
|
186
|
+
d("previous");
|
|
113
187
|
else if (e.key === "Home")
|
|
114
|
-
e.preventDefault(),
|
|
188
|
+
e.preventDefault(), d("first");
|
|
115
189
|
else if (e.key === "End")
|
|
116
|
-
e.preventDefault(),
|
|
190
|
+
e.preventDefault(), d("last");
|
|
117
191
|
else
|
|
118
192
|
return;
|
|
119
193
|
};
|
|
120
194
|
b(
|
|
121
195
|
() => t.modelValue,
|
|
122
196
|
(e) => {
|
|
123
|
-
e && m(e
|
|
197
|
+
e && m(e);
|
|
124
198
|
}
|
|
125
199
|
), b(
|
|
126
|
-
() =>
|
|
200
|
+
() => f.value?.query?.[t.querykey],
|
|
127
201
|
(e) => {
|
|
128
|
-
e && typeof e == "string" && m(e
|
|
202
|
+
e && typeof e == "string" && m(e);
|
|
129
203
|
}
|
|
130
204
|
), b(
|
|
131
|
-
|
|
205
|
+
a,
|
|
132
206
|
async () => {
|
|
133
|
-
if (!
|
|
134
|
-
const e =
|
|
207
|
+
if (!r.value) return;
|
|
208
|
+
const e = r.value.querySelector(
|
|
135
209
|
".bb-tab__btn--active"
|
|
136
210
|
);
|
|
137
211
|
if (!e) return;
|
|
138
|
-
await
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
left:
|
|
212
|
+
await de();
|
|
213
|
+
const s = r.value, n = e.offsetLeft, o = n + e.offsetWidth, l = s.scrollLeft, h = l + s.clientWidth;
|
|
214
|
+
n < l ? s.scrollTo({ left: n, behavior: "smooth" }) : o > h && s.scrollTo({
|
|
215
|
+
left: o - s.clientWidth,
|
|
142
216
|
behavior: "smooth"
|
|
143
217
|
});
|
|
144
218
|
},
|
|
145
219
|
{ flush: "post" }
|
|
146
220
|
);
|
|
147
|
-
const
|
|
221
|
+
const R = c("right");
|
|
148
222
|
b(
|
|
149
|
-
|
|
150
|
-
(e,
|
|
151
|
-
if (e &&
|
|
152
|
-
const
|
|
153
|
-
|
|
223
|
+
a,
|
|
224
|
+
(e, s) => {
|
|
225
|
+
if (e && s) {
|
|
226
|
+
const n = t.items.findIndex((l) => l.key === e), o = t.items.findIndex((l) => l.key === s);
|
|
227
|
+
R.value = n > o ? "right" : "left";
|
|
154
228
|
}
|
|
155
229
|
},
|
|
156
230
|
{ flush: "sync" }
|
|
157
231
|
);
|
|
158
|
-
const
|
|
159
|
-
if (!
|
|
232
|
+
const V = c(0), K = c(0), N = c(0), D = c(0), W = c(0), x = () => {
|
|
233
|
+
if (!r.value)
|
|
160
234
|
return;
|
|
161
|
-
const e =
|
|
235
|
+
const e = r.value.querySelector(
|
|
162
236
|
".bb-tab__btn--active"
|
|
163
237
|
);
|
|
164
|
-
e && (
|
|
238
|
+
e && (N.value = e.offsetLeft, D.value = e.offsetTop, V.value = e.clientWidth, K.value = e.clientHeight, W.value = r.value.scrollWidth);
|
|
165
239
|
};
|
|
166
|
-
return
|
|
167
|
-
|
|
240
|
+
return ue(x), b(a, x, { flush: "post" }), we(r, () => {
|
|
241
|
+
x();
|
|
168
242
|
}), b(
|
|
169
243
|
() => t.items,
|
|
170
244
|
() => {
|
|
171
|
-
|
|
245
|
+
a.value && !t.items.find((e) => e.key === a.value) && E();
|
|
172
246
|
},
|
|
173
247
|
{
|
|
174
248
|
immediate: !0,
|
|
175
249
|
deep: !0
|
|
176
250
|
}
|
|
177
|
-
),
|
|
178
|
-
isFirst:
|
|
179
|
-
isLast:
|
|
180
|
-
current:
|
|
181
|
-
currentIndex:
|
|
182
|
-
goTo:
|
|
183
|
-
}), (e,
|
|
184
|
-
id:
|
|
251
|
+
), J({
|
|
252
|
+
isFirst: S,
|
|
253
|
+
isLast: _,
|
|
254
|
+
current: a,
|
|
255
|
+
currentIndex: i,
|
|
256
|
+
goTo: d
|
|
257
|
+
}), (e, s) => (u(), g("div", {
|
|
258
|
+
id: fe(q),
|
|
185
259
|
ref_key: "tabs",
|
|
186
|
-
ref:
|
|
187
|
-
class:
|
|
260
|
+
ref: G,
|
|
261
|
+
class: I(["bb-tab", {
|
|
188
262
|
[`bb-tab--${e.direction}`]: !0,
|
|
189
263
|
"bb-tab--disabled": e.disabled
|
|
190
264
|
}])
|
|
191
265
|
}, [
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
266
|
+
v("div", Te, [
|
|
267
|
+
v("span", null, [
|
|
268
|
+
k(e.$slots, "header:prepend", A(H(L.value)))
|
|
195
269
|
]),
|
|
196
|
-
|
|
270
|
+
v("ul", {
|
|
197
271
|
ref_key: "tablist",
|
|
198
|
-
ref:
|
|
272
|
+
ref: r,
|
|
199
273
|
class: "bb-tab__label-container",
|
|
200
274
|
role: "tablist",
|
|
201
|
-
style:
|
|
202
|
-
"--inner-width": `${
|
|
203
|
-
"--width": `${
|
|
204
|
-
"--height": `${
|
|
205
|
-
"--left": `${
|
|
206
|
-
"--top": `${
|
|
275
|
+
style: he({
|
|
276
|
+
"--inner-width": `${W.value}px`,
|
|
277
|
+
"--width": `${V.value}px`,
|
|
278
|
+
"--height": `${K.value}px`,
|
|
279
|
+
"--left": `${N.value}px`,
|
|
280
|
+
"--top": `${D.value}px`
|
|
207
281
|
})
|
|
208
282
|
}, [
|
|
209
|
-
(
|
|
210
|
-
key:
|
|
283
|
+
(u(!0), g(O, null, U(P.value, (n) => (u(), g("li", {
|
|
284
|
+
key: n.tabId,
|
|
211
285
|
role: "presentation"
|
|
212
286
|
}, [
|
|
213
|
-
|
|
214
|
-
id:
|
|
215
|
-
"aria-selected":
|
|
216
|
-
class:
|
|
217
|
-
disabled:
|
|
287
|
+
be(xe, {
|
|
288
|
+
id: n.tabId,
|
|
289
|
+
"aria-selected": n.ariaSelected,
|
|
290
|
+
class: I(n.tabClasses),
|
|
291
|
+
disabled: n.disabled,
|
|
218
292
|
role: "tab",
|
|
219
|
-
tabindex:
|
|
220
|
-
onClick:
|
|
221
|
-
onKeydown:
|
|
293
|
+
tabindex: n.tabindex,
|
|
294
|
+
onClick: n.onClick,
|
|
295
|
+
onKeydown: n.onKeydown
|
|
222
296
|
}, {
|
|
223
|
-
default:
|
|
224
|
-
|
|
225
|
-
current:
|
|
226
|
-
currentIndex:
|
|
227
|
-
disabled:
|
|
228
|
-
goTo:
|
|
229
|
-
isFirst:
|
|
230
|
-
isLast:
|
|
231
|
-
selected:
|
|
232
|
-
text:
|
|
233
|
-
value:
|
|
297
|
+
default: $(() => [
|
|
298
|
+
k(e.$slots, n.labelSlotName, {
|
|
299
|
+
current: a.value,
|
|
300
|
+
currentIndex: i.value,
|
|
301
|
+
disabled: n.disabled,
|
|
302
|
+
goTo: d,
|
|
303
|
+
isFirst: S.value,
|
|
304
|
+
isLast: _.value,
|
|
305
|
+
selected: n.active,
|
|
306
|
+
text: n.label,
|
|
307
|
+
value: n.key
|
|
234
308
|
}, () => [
|
|
235
|
-
|
|
236
|
-
current:
|
|
237
|
-
currentIndex:
|
|
238
|
-
disabled:
|
|
239
|
-
goTo:
|
|
240
|
-
isFirst:
|
|
241
|
-
isLast:
|
|
242
|
-
selected:
|
|
243
|
-
text:
|
|
244
|
-
value:
|
|
309
|
+
k(e.$slots, "label", {
|
|
310
|
+
current: a.value,
|
|
311
|
+
currentIndex: i.value,
|
|
312
|
+
disabled: n.disabled,
|
|
313
|
+
goTo: d,
|
|
314
|
+
isFirst: S.value,
|
|
315
|
+
isLast: _.value,
|
|
316
|
+
selected: n.active,
|
|
317
|
+
text: n.label,
|
|
318
|
+
value: n.key
|
|
245
319
|
}, () => [
|
|
246
|
-
|
|
320
|
+
v("span", Le, ve(n.label), 1)
|
|
247
321
|
])
|
|
248
322
|
])
|
|
249
323
|
]),
|
|
250
324
|
_: 2
|
|
251
|
-
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
|
|
325
|
+
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick", "onKeydown"])
|
|
252
326
|
]))), 128))
|
|
253
327
|
], 4),
|
|
254
|
-
|
|
255
|
-
|
|
328
|
+
v("span", null, [
|
|
329
|
+
k(e.$slots, "header:append", A(H(L.value)))
|
|
256
330
|
])
|
|
257
331
|
]),
|
|
258
|
-
|
|
259
|
-
(
|
|
260
|
-
default:
|
|
261
|
-
(
|
|
262
|
-
key:
|
|
332
|
+
v("div", Fe, [
|
|
333
|
+
(u(), X(me(t.animateY ? Ce : "div"), null, {
|
|
334
|
+
default: $(() => [
|
|
335
|
+
(u(!0), g(O, null, U(P.value, (n) => (u(), X(pe, {
|
|
336
|
+
key: n.tabId,
|
|
263
337
|
css: t.animateX,
|
|
264
|
-
name: `tab-slide-${
|
|
338
|
+
name: `tab-slide-${R.value}`
|
|
265
339
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
340
|
+
default: $(() => [
|
|
341
|
+
n.active || t.eager || n.eager ? (u(), g("section", {
|
|
268
342
|
key: 0,
|
|
269
|
-
id:
|
|
270
|
-
"aria-labelledby":
|
|
271
|
-
class:
|
|
272
|
-
"bb-tab__pane--shown": i.value === l.key
|
|
273
|
-
}]),
|
|
343
|
+
id: n.panelId,
|
|
344
|
+
"aria-labelledby": n.tabId,
|
|
345
|
+
class: I(n.paneClasses),
|
|
274
346
|
role: "tabpanel",
|
|
275
|
-
tabindex:
|
|
347
|
+
tabindex: n.tabindex
|
|
276
348
|
}, [
|
|
277
|
-
|
|
278
|
-
current:
|
|
279
|
-
currentIndex:
|
|
280
|
-
disabled:
|
|
281
|
-
goTo:
|
|
282
|
-
isFirst:
|
|
283
|
-
isLast:
|
|
284
|
-
selected:
|
|
285
|
-
text:
|
|
286
|
-
value:
|
|
349
|
+
k(e.$slots, n.key, {
|
|
350
|
+
current: a.value,
|
|
351
|
+
currentIndex: i.value,
|
|
352
|
+
disabled: n.disabled,
|
|
353
|
+
goTo: d,
|
|
354
|
+
isFirst: S.value,
|
|
355
|
+
isLast: _.value,
|
|
356
|
+
selected: n.active,
|
|
357
|
+
text: n.label,
|
|
358
|
+
value: n.key
|
|
287
359
|
})
|
|
288
|
-
], 10,
|
|
360
|
+
], 10, Ee)) : ye("", !0)
|
|
289
361
|
]),
|
|
290
362
|
_: 2
|
|
291
363
|
}, 1032, ["css", "name"]))), 128))
|
|
@@ -293,9 +365,9 @@ const me = ["id"], ye = { class: "bb-tab__label-boundary" }, ve = { class: "bb-t
|
|
|
293
365
|
_: 3
|
|
294
366
|
}))
|
|
295
367
|
])
|
|
296
|
-
], 10,
|
|
368
|
+
], 10, qe));
|
|
297
369
|
}
|
|
298
370
|
});
|
|
299
371
|
export {
|
|
300
|
-
|
|
372
|
+
je as default
|
|
301
373
|
};
|
package/dist/index122.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as he, mergeModels as X, ref as ke, computed as u, toRef as O, useModel as Y, watch as M, reactive as ge, createBlock as Z, openBlock as s, resolveDynamicComponent as xe, normalizeClass as i, withCtx as we, createElementBlock as o, createCommentVNode as p, createElementVNode as n, toDisplayString as m, renderSlot as c, unref as v, Fragment as k, renderList as x, normalizeStyle as H, createVNode as ee, createTextVNode as Ce, mergeProps as Ie } from "vue";
|
|
2
2
|
import { clamp as Ve } from "./index214.js";
|
|
3
|
-
import { hash as T } from "./
|
|
4
|
-
import { isNil as w } from "./
|
|
5
|
-
import { when as $e } from "./
|
|
3
|
+
import { hash as T } from "./index241.js";
|
|
4
|
+
import { isNil as w } from "./index227.js";
|
|
5
|
+
import { when as $e } from "./index234.js";
|
|
6
6
|
import { useId as Be } from "./index8.js";
|
|
7
|
-
import { useItemValue as He } from "./
|
|
8
|
-
import { useItemsGetter as Te } from "./
|
|
9
|
-
import { usePrefill as Ae } from "./
|
|
10
|
-
import { useIndexById as le } from "./
|
|
11
|
-
import { useBaseOptions as Ne } from "./
|
|
12
|
-
import { useHashedWatcher as Le } from "./
|
|
13
|
-
import { useLocale as De } from "./
|
|
7
|
+
import { useItemValue as He } from "./index239.js";
|
|
8
|
+
import { useItemsGetter as Te } from "./index242.js";
|
|
9
|
+
import { usePrefill as Ae } from "./index243.js";
|
|
10
|
+
import { useIndexById as le } from "./index244.js";
|
|
11
|
+
import { useBaseOptions as Ne } from "./index245.js";
|
|
12
|
+
import { useHashedWatcher as Le } from "./index246.js";
|
|
13
|
+
import { useLocale as De } from "./index220.js";
|
|
14
14
|
import ae from "./index17.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import Ee from "./index31.js";
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./
|
|
19
|
-
import { useLogger as Me } from "./
|
|
18
|
+
import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index272.js";
|
|
19
|
+
import { useLogger as Me } from "./index257.js";
|
|
20
20
|
const Fe = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "sr-only"
|
package/dist/index13.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as w, getCurrentInstance as P, computed as r, createBlock as c, openBlock as i, mergeProps as f, withCtx as v, renderSlot as d, createTextVNode as p, toDisplayString as h, resolveDynamicComponent as b } from "vue";
|
|
2
|
-
import R from "./
|
|
3
|
-
import { useFrameworkDetection as _ } from "./
|
|
2
|
+
import R from "./index266.js";
|
|
3
|
+
import { useFrameworkDetection as _ } from "./index267.js";
|
|
4
4
|
import { _config as g } from "./index4.js";
|
|
5
5
|
const D = /* @__PURE__ */ w({
|
|
6
6
|
__name: "BaseButton",
|
package/dist/index130.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as a, createElementBlock as o, openBlock as e, normalizeClass as c, createVNode as l, TransitionGroup as m, withCtx as i, Fragment as p, renderList as u, unref as r, createBlock as f, mergeProps as _ } from "vue";
|
|
2
2
|
import { useToast as d, state as k } from "./index11.js";
|
|
3
|
-
import b from "./
|
|
3
|
+
import b from "./index289.js";
|
|
4
4
|
const $ = /* @__PURE__ */ a({
|
|
5
5
|
__name: "BbToast",
|
|
6
6
|
props: {
|
package/dist/index132.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as R, mergeModels as U, ref as L, computed as v, useTemplateRef as W, useModel as x, watch as m, onBeforeUnmount as F, createElementBlock as I, openBlock as g, Fragment as _, renderSlot as k, createCommentVNode as C, createVNode as j, normalizeProps as q, mergeProps as B, withCtx as T, createElementVNode as f, normalizeStyle as G, createBlock as H, unref as J } from "vue";
|
|
2
2
|
import { useId as K } from "./index8.js";
|
|
3
|
-
import { useLocale as Q } from "./
|
|
4
|
-
import { useUntil as X } from "./
|
|
3
|
+
import { useLocale as Q } from "./index220.js";
|
|
4
|
+
import { useUntil as X } from "./index232.js";
|
|
5
5
|
import Y from "./index13.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import Z from "./
|
|
7
|
+
import Z from "./index224.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useElementSize as ee } from "./index141.js";
|
|
10
|
-
import { extractDomContainer as V } from "./
|
|
11
|
-
import { parseWidthString as te } from "./
|
|
10
|
+
import { extractDomContainer as V } from "./index237.js";
|
|
11
|
+
import { parseWidthString as te } from "./index250.js";
|
|
12
12
|
const ce = /* @__PURE__ */ R({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "BbTooltip",
|
package/dist/index134.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock 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 "./index294.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/index136.js
CHANGED
|
@@ -5,8 +5,8 @@ import u from "./index86.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import I from "./index114.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import N from "./
|
|
9
|
-
import g from "./
|
|
8
|
+
import N from "./index247.js";
|
|
9
|
+
import g from "./index248.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
const h = { class: "bb-common-input-inner-container__prefix" }, B = { class: "bb-common-input-inner-container__suffix" }, R = /* @__PURE__ */ k({
|
|
12
12
|
__name: "CommonInputInnerContainer",
|