bitboss-ui 2.0.56 → 2.0.57
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 +53 -53
- package/dist/index110.js +4 -4
- package/dist/index118.js +1 -1
- package/dist/index120.js +3 -3
- 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/index132.js +201 -178
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index205.js +2 -116
- package/dist/index206.js +4 -3
- package/dist/index207.js +2 -41
- package/dist/index208.js +162 -6
- package/dist/index209.js +84 -7
- package/dist/index21.js +1 -1
- package/dist/index211.js +4 -4
- package/dist/index212.js +5 -281
- package/dist/index213.js +2 -2
- package/dist/index214.js +16 -16
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -2
- package/dist/index219.js +41 -20
- package/dist/index220.js +18 -51
- package/dist/index221.js +8 -0
- package/dist/index222.js +52 -12
- package/dist/index224.js +13 -369
- package/dist/index225.js +5 -2
- package/dist/index226.js +369 -4
- package/dist/index227.js +3 -2
- package/dist/index228.js +4 -162
- package/dist/index229.js +6 -82
- package/dist/index23.js +7 -7
- package/dist/index230.js +5 -0
- package/dist/index231.js +7 -3
- package/dist/index232.js +80 -3
- package/dist/index233.js +2 -2
- package/dist/index234.js +2 -2
- package/dist/index235.js +1 -1
- package/dist/index236.js +2 -2
- package/dist/index239.js +2 -2
- package/dist/index240.js +1 -1
- package/dist/index242.js +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.js +3 -3
- package/dist/index252.js +1 -1
- package/dist/index256.js +3 -430
- package/dist/index257.js +3 -89
- package/dist/index258.js +11 -199
- package/dist/index259.js +8 -5
- package/dist/index260.js +9 -2
- package/dist/index261.js +17 -2
- package/dist/index262.js +4 -2
- package/dist/index263.js +281 -2
- package/dist/index264.js +6 -2
- package/dist/index265.js +2 -126
- package/dist/index266.js +2 -176
- package/dist/index267.js +2 -3
- package/dist/index268.js +4 -0
- package/dist/index269.js +2 -7
- package/dist/index27.js +1 -1
- package/dist/index270.js +125 -21
- package/dist/index271.js +433 -0
- package/dist/index272.js +175 -3
- package/dist/index273.js +1 -1
- package/dist/index275.js +7 -9
- package/dist/index276.js +20 -7
- package/dist/index278.js +223 -3
- package/dist/index279.js +431 -219
- package/dist/index280.js +113 -422
- package/dist/index281.js +199 -126
- package/dist/index282.js +89 -2
- package/dist/index284.js +2 -2
- package/dist/index285.js +1 -1
- package/dist/index286.js +1 -1
- package/dist/index287.js +1 -1
- package/dist/index288.js +2 -28
- package/dist/index289.js +27 -21
- package/dist/index29.js +2 -2
- package/dist/index290.js +24 -0
- package/dist/index292.js +2 -65
- package/dist/index293.js +3 -5
- package/dist/index294.js +211 -3
- package/dist/index295.js +65 -2
- package/dist/index296.js +2 -211
- package/dist/index297.js +5 -4
- package/dist/index298.js +4 -4
- package/dist/index299.js +4 -59
- package/dist/index300.js +57 -77
- package/dist/index301.js +81 -0
- package/dist/index303.js +4 -7
- package/dist/index304.js +7 -3
- package/dist/index305.js +1 -1
- package/dist/index307.js +3 -6
- package/dist/index308.js +5 -17
- package/dist/index309.js +6 -6
- package/dist/index31.js +2 -2
- package/dist/index310.js +19 -2
- package/dist/index311.js +2 -47
- package/dist/index312.js +47 -480
- package/dist/index313.js +482 -0
- package/dist/index315.js +424 -2
- package/dist/index316.js +2 -47
- package/dist/index317.js +49 -0
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index37.js +7 -7
- package/dist/index39.js +1 -1
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +3 -3
- 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/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index88.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index210.js +0 -10
- package/dist/index223.js +0 -7
- package/dist/index274.js +0 -14
- package/dist/index277.js +0 -19
- package/dist/index291.js +0 -4
- package/dist/index302.js +0 -7
- package/dist/index314.js +0 -426
package/dist/index108.js
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useId as
|
3
|
-
import { useRoute as
|
4
|
-
import { useRouter as
|
1
|
+
import { defineComponent as te, ref as r, computed as $, getCurrentInstance as le, watch as f, nextTick as ae, onMounted as ie, openBlock as h, createElementBlock as p, unref as se, normalizeClass as T, createElementVNode as c, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as K, Fragment as O, renderList as J, createVNode as M, withCtx as I, toDisplayString as ne, createBlock as re, Transition as oe, createCommentVNode as ue } from "vue";
|
2
|
+
import { useId as de } from "./index8.js";
|
3
|
+
import { useRoute as ce } from "./index136.js";
|
4
|
+
import { useRouter as be } from "./index137.js";
|
5
5
|
import { wait as fe } from "./index131.js";
|
6
|
-
import { useScroll as
|
7
|
-
import
|
6
|
+
import { useScroll as he, useResizeObserver as ye } from "./index132.js";
|
7
|
+
import me from "./index13.js";
|
8
8
|
/* empty css */
|
9
|
-
import
|
9
|
+
import ve from "./index127.js";
|
10
10
|
/* empty css */
|
11
|
-
|
12
|
-
const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-tab__label" }, $e = { class: "bb-tab__panes-container" }, Se = ["id", "aria-labelledby"], We = /* @__PURE__ */ le({
|
11
|
+
const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-tab__label" }, _e = { class: "bb-tab__panes-container" }, we = ["id", "aria-labelledby"], Re = /* @__PURE__ */ te({
|
13
12
|
__name: "BbTab",
|
14
13
|
props: {
|
15
14
|
disabled: { type: Boolean },
|
@@ -25,19 +24,19 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
25
24
|
},
|
26
25
|
emits: ["update:modelValue"],
|
27
26
|
setup(j, { expose: G, emit: Q }) {
|
28
|
-
var
|
29
|
-
const t = j, X = Q, d =
|
27
|
+
var A, H;
|
28
|
+
const t = j, X = Q, d = ce(), q = be(), S = r(), L = t.id ?? de().id.value, g = `bb-tab_${L}`, b = r(), { isScrolling: Y, arrivedState: V } = he(b), B = $(() => ({
|
30
29
|
isScrolling: Y.value,
|
31
30
|
left: V.left,
|
32
31
|
right: V.right
|
33
|
-
})), C = !!((
|
32
|
+
})), C = !!((H = (A = le()) == null ? void 0 : A.proxy) != null && H.$inertia), i = r(null), o = $(
|
34
33
|
() => t.items.findIndex((e) => e.key === i.value)
|
35
34
|
), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
|
36
35
|
t.items.forEach((e) => {
|
37
36
|
if (!e.key)
|
38
37
|
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
39
38
|
});
|
40
|
-
const
|
39
|
+
const R = () => {
|
41
40
|
var e, a, l, n, s;
|
42
41
|
if (t.navigation && ((a = (e = d.value) == null ? void 0 : e.query) != null && a[t.querykey]))
|
43
42
|
i.value = (n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey];
|
@@ -48,7 +47,7 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
48
47
|
else if (t.modelValue)
|
49
48
|
i.value = t.modelValue;
|
50
49
|
else if (t.items[0]) {
|
51
|
-
const m = t.items.find((
|
50
|
+
const m = t.items.find((ee) => !ee.disabled);
|
52
51
|
if (!m)
|
53
52
|
throw new Error(
|
54
53
|
"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
|
@@ -57,11 +56,11 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
57
56
|
i.value = v;
|
58
57
|
}
|
59
58
|
};
|
60
|
-
|
59
|
+
R();
|
61
60
|
const y = async (e, a = !1) => {
|
62
61
|
var l, n, s, m;
|
63
62
|
if (t.navigation && d.value && ((n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
|
64
|
-
|
63
|
+
q == null || q.push({
|
65
64
|
...d,
|
66
65
|
query: { ...(s = d.value) == null ? void 0 : s.query, [t.querykey]: e },
|
67
66
|
replace: a
|
@@ -119,12 +118,12 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
119
118
|
else
|
120
119
|
return;
|
121
120
|
};
|
122
|
-
|
121
|
+
f(
|
123
122
|
() => t.modelValue,
|
124
123
|
(e) => {
|
125
124
|
e && y(e, t.replace);
|
126
125
|
}
|
127
|
-
),
|
126
|
+
), f(
|
128
127
|
() => {
|
129
128
|
var e, a;
|
130
129
|
return (a = (e = d.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
|
@@ -132,14 +131,14 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
132
131
|
(e) => {
|
133
132
|
e && typeof e == "string" && y(e, t.replace);
|
134
133
|
}
|
135
|
-
),
|
134
|
+
), f(
|
136
135
|
i,
|
137
136
|
async () => {
|
138
|
-
if (
|
139
|
-
const e =
|
137
|
+
if (S.value) {
|
138
|
+
const e = S.value.querySelector(
|
140
139
|
"[role=tablist] .bb-tab__btn--active"
|
141
140
|
);
|
142
|
-
e && (await
|
141
|
+
e && (await ae(), e.scrollIntoView({
|
143
142
|
behavior: "smooth",
|
144
143
|
block: "nearest",
|
145
144
|
inline: "nearest"
|
@@ -148,30 +147,31 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
148
147
|
},
|
149
148
|
{ flush: "post" }
|
150
149
|
);
|
151
|
-
const
|
152
|
-
|
150
|
+
const P = r("right");
|
151
|
+
f(
|
153
152
|
i,
|
154
153
|
(e, a) => {
|
155
154
|
if (e && a) {
|
156
155
|
const l = t.items.findIndex((s) => s.key === e), n = t.items.findIndex((s) => s.key === a);
|
157
|
-
|
156
|
+
P.value = l > n ? "right" : "left";
|
158
157
|
}
|
159
158
|
},
|
160
159
|
{ flush: "sync" }
|
161
160
|
);
|
162
|
-
const E = r(0),
|
163
|
-
if (!
|
164
|
-
|
161
|
+
const E = r(0), z = r(0), D = r(0), F = r(0), N = r(0), x = () => {
|
162
|
+
if (!b.value)
|
163
|
+
return;
|
164
|
+
const e = b.value.querySelector(
|
165
165
|
".bb-tab__btn--active"
|
166
166
|
);
|
167
|
-
e && (
|
167
|
+
e && (D.value = e.offsetLeft, F.value = e.offsetTop, E.value = e.clientWidth, z.value = e.clientHeight, N.value = b.value.scrollWidth);
|
168
168
|
};
|
169
|
-
|
170
|
-
|
171
|
-
|
169
|
+
return ie(x), f(i, x, { flush: "post" }), ye(b, () => {
|
170
|
+
x();
|
171
|
+
}), f(
|
172
172
|
() => t.items,
|
173
173
|
() => {
|
174
|
-
i.value && !t.items.find((e) => e.key === i.value) &&
|
174
|
+
i.value && !t.items.find((e) => e.key === i.value) && R();
|
175
175
|
},
|
176
176
|
{
|
177
177
|
immediate: !0,
|
@@ -184,41 +184,41 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
184
184
|
currentIndex: o,
|
185
185
|
goTo: u
|
186
186
|
}), (e, a) => (h(), p("div", {
|
187
|
-
id:
|
187
|
+
id: se(L),
|
188
188
|
ref_key: "tabs",
|
189
|
-
ref:
|
189
|
+
ref: S,
|
190
190
|
class: T(["bb-tab", {
|
191
191
|
[`bb-tab--${e.direction}`]: !0,
|
192
192
|
"bb-tab--disabled": !0
|
193
193
|
}])
|
194
194
|
}, [
|
195
|
-
c("div",
|
195
|
+
c("div", ke, [
|
196
196
|
c("span", null, [
|
197
|
-
k(e.$slots, "header:prepend",
|
197
|
+
k(e.$slots, "header:prepend", U(W(B.value)))
|
198
198
|
]),
|
199
199
|
c("ul", {
|
200
200
|
ref_key: "tablist",
|
201
|
-
ref:
|
201
|
+
ref: b,
|
202
202
|
class: "bb-tab__label-container",
|
203
203
|
role: "tablist",
|
204
204
|
style: K({
|
205
|
-
"--inner-width": `${
|
205
|
+
"--inner-width": `${N.value}px`
|
206
206
|
})
|
207
207
|
}, [
|
208
208
|
c("span", {
|
209
209
|
class: "bb-tab__highlight",
|
210
210
|
style: K({
|
211
211
|
"--width": `${E.value}px`,
|
212
|
-
"--height": `${
|
213
|
-
"--left": `${
|
214
|
-
"--top": `${
|
212
|
+
"--height": `${z.value}px`,
|
213
|
+
"--left": `${D.value}px`,
|
214
|
+
"--top": `${F.value}px`
|
215
215
|
})
|
216
216
|
}, null, 4),
|
217
|
-
(h(!0), p(
|
217
|
+
(h(!0), p(O, null, J(e.items, (l) => (h(), p("li", {
|
218
218
|
key: l.key,
|
219
219
|
role: "presentation"
|
220
220
|
}, [
|
221
|
-
|
221
|
+
M(me, {
|
222
222
|
id: `${g}_tab_${l.key}`,
|
223
223
|
"aria-selected": i.value === l.key,
|
224
224
|
class: T(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
|
@@ -251,7 +251,7 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
251
251
|
text: l.label,
|
252
252
|
value: l.key
|
253
253
|
}, () => [
|
254
|
-
c("span",
|
254
|
+
c("span", ge, ne(l.label), 1)
|
255
255
|
])
|
256
256
|
])
|
257
257
|
]),
|
@@ -260,16 +260,16 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
260
260
|
]))), 128))
|
261
261
|
], 4),
|
262
262
|
c("span", null, [
|
263
|
-
k(e.$slots, "header:append",
|
263
|
+
k(e.$slots, "header:append", U(W(B.value)))
|
264
264
|
])
|
265
265
|
]),
|
266
|
-
c("div",
|
267
|
-
|
266
|
+
c("div", _e, [
|
267
|
+
M(ve, null, {
|
268
268
|
default: I(() => [
|
269
|
-
(h(!0), p(
|
269
|
+
(h(!0), p(O, null, J(e.items, (l) => (h(), re(oe, {
|
270
270
|
key: l.key,
|
271
271
|
css: e.animate,
|
272
|
-
name: `tab-slide-${
|
272
|
+
name: `tab-slide-${P.value}`
|
273
273
|
}, {
|
274
274
|
default: I(() => [
|
275
275
|
i.value === l.key || e.eager || l.eager ? (h(), p("section", {
|
@@ -293,7 +293,7 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
293
293
|
text: l.label,
|
294
294
|
value: l.key
|
295
295
|
})
|
296
|
-
], 10,
|
296
|
+
], 10, we)) : ue("", !0)
|
297
297
|
]),
|
298
298
|
_: 2
|
299
299
|
}, 1032, ["css", "name"]))), 128))
|
@@ -301,9 +301,9 @@ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-t
|
|
301
301
|
_: 3
|
302
302
|
})
|
303
303
|
])
|
304
|
-
], 10,
|
304
|
+
], 10, pe));
|
305
305
|
}
|
306
306
|
});
|
307
307
|
export {
|
308
|
-
|
308
|
+
Re as default
|
309
309
|
};
|
package/dist/index110.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as oe, ref as j, 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 x, 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 "./index296.js";
|
3
3
|
import { clamp as pe } from "./index204.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 "./index206.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 "./index208.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 "./index295.js";
|
4
4
|
const N = /* @__PURE__ */ s({
|
5
5
|
__name: "BbToast",
|
6
6
|
props: {
|
package/dist/index120.js
CHANGED
@@ -4,9 +4,9 @@ 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 "./index230.js";
|
8
|
+
import { waitFor as Q } from "./index221.js";
|
9
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index226.js";
|
10
10
|
const ue = /* @__PURE__ */ z({
|
11
11
|
__name: "BbTooltip",
|
12
12
|
props: {
|
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 "./index297.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 "./index205.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 "./index230.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 "./index205.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 "./index229.js";
|
4
4
|
const P = /* @__PURE__ */ y({
|
5
5
|
__name: "BaseButton",
|
6
6
|
props: {
|