bitboss-ui 2.0.73 → 2.0.74
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/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +5 -0
- package/dist/index108.js +52 -57
- package/dist/index110.js +3 -3
- package/dist/index118.js +1 -1
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +21 -19
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index132.js +2 -2
- 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 +53 -2
- package/dist/index207.js +13 -2
- package/dist/index208.js +20 -3
- package/dist/index209.js +4 -8
- package/dist/index21.js +9 -9
- package/dist/index210.js +3 -53
- package/dist/index212.js +5 -13
- package/dist/index213.js +16 -5
- package/dist/index214.js +10 -10
- package/dist/index215.js +18 -15
- package/dist/index216.js +18 -18
- package/dist/index217.js +22 -14
- package/dist/index218.js +3 -27
- package/dist/index219.js +2 -3
- package/dist/index220.js +8 -2
- package/dist/index221.js +5 -5
- package/dist/index224.js +2 -2
- package/dist/index225.js +1 -1
- package/dist/index226.js +2 -126
- package/dist/index227.js +4 -125
- package/dist/index228.js +2 -2
- package/dist/index229.js +123 -38
- package/dist/index23.js +15 -15
- package/dist/index230.js +124 -19
- package/dist/index231.js +2 -6
- package/dist/index232.js +41 -5
- package/dist/index233.js +6 -369
- package/dist/index234.js +5 -3
- package/dist/index235.js +369 -7
- package/dist/index236.js +3 -164
- package/dist/index237.js +7 -84
- package/dist/index238.js +166 -0
- package/dist/index239.js +84 -4
- package/dist/index243.js +1 -1
- package/dist/index245.js +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.js +6 -4
- package/dist/index251.js +16 -224
- package/dist/index252.js +1 -1
- package/dist/index253.js +11 -0
- package/dist/index254.js +23 -7
- package/dist/index255.js +3 -281
- package/dist/index257.js +7 -2
- package/dist/index258.js +176 -2
- package/dist/index259.js +224 -2
- package/dist/index260.js +9 -2
- package/dist/index261.js +281 -2
- package/dist/index262.js +6 -2
- package/dist/index263.js +2 -2
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -2
- package/dist/index266.js +2 -2
- package/dist/index267.js +2 -28
- package/dist/index268.js +2 -22
- package/dist/index269.js +4 -0
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -2
- package/dist/index271.js +2 -126
- package/dist/index272.js +2 -431
- package/dist/index273.js +23 -171
- package/dist/index274.js +6 -6
- package/dist/index276.js +4 -3
- package/dist/index277.js +2 -12
- package/dist/index278.js +124 -7
- package/dist/index279.js +431 -9
- package/dist/index280.js +20 -15
- package/dist/index282.js +86 -197
- package/dist/index283.js +3 -436
- package/dist/index284.js +11 -126
- package/dist/index285.js +9 -3
- package/dist/index286.js +8 -8
- package/dist/index287.js +17 -23
- package/dist/index288.js +3 -88
- package/dist/index289.js +200 -6
- package/dist/index29.js +2 -2
- package/dist/index290.js +435 -15
- package/dist/index291.js +125 -7
- package/dist/index294.js +2 -2
- package/dist/index295.js +66 -5
- package/dist/index296.js +5 -66
- package/dist/index298.js +4 -5
- package/dist/index299.js +4 -8
- package/dist/index300.js +58 -32
- package/dist/index301.js +4 -6
- package/dist/index302.js +7 -18
- package/dist/index303.js +32 -6
- package/dist/index304.js +84 -4
- package/dist/index306.js +4 -84
- package/dist/index307.js +9 -0
- package/dist/index308.js +7 -4
- package/dist/index309.js +19 -4
- package/dist/index31.js +2 -2
- package/dist/index310.js +45 -57
- package/dist/index311.js +2 -47
- package/dist/index312.js +11 -2
- package/dist/index314.js +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +9 -9
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +4 -4
- 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/index59.js +21 -20
- 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/index86.js +1 -1
- package/dist/index88.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index206.js +0 -6
- package/dist/index256.js +0 -8
- package/dist/index281.js +0 -6
- package/dist/index305.js +0 -13
- /package/dist/{index240.js → index211.js} +0 -0
@@ -17,12 +17,17 @@ export type BbBreadcrumbsProps = Pick<CommonProps, 'disabled'> & {
|
|
17
17
|
* through `a` or `router-link`.
|
18
18
|
*/
|
19
19
|
items: Item[];
|
20
|
+
/**
|
21
|
+
* Label of the breadcrumbs
|
22
|
+
*/
|
23
|
+
label?: string;
|
20
24
|
/**
|
21
25
|
* Text content of the divider
|
22
26
|
*/
|
23
27
|
divider?: string;
|
24
28
|
};
|
25
29
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BbBreadcrumbsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbBreadcrumbsProps> & Readonly<{}>, {
|
30
|
+
label: string;
|
26
31
|
divider: string;
|
27
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<{
|
28
33
|
'item:prepend'?: ((props: {
|
package/dist/index108.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as ee, ref as n, computed as $, getCurrentInstance as te, watch as b, nextTick as le, onMounted as ae, openBlock as f, createElementBlock as p, unref as ie, normalizeClass as T, createElementVNode as h, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as se, Fragment as K, renderList as O, createVNode as J, withCtx as I, toDisplayString as re, createBlock as ne, Transition as oe, createCommentVNode as ue } from "vue";
|
2
2
|
import { useId as de } from "./index8.js";
|
3
3
|
import { useRoute as ce } from "./index136.js";
|
4
4
|
import { useRouter as be } from "./index137.js";
|
@@ -8,7 +8,7 @@ import me from "./index13.js";
|
|
8
8
|
/* empty css */
|
9
9
|
import ve from "./index127.js";
|
10
10
|
/* empty css */
|
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__ */
|
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__ */ ee({
|
12
12
|
__name: "BbTab",
|
13
13
|
props: {
|
14
14
|
disabled: { type: Boolean },
|
@@ -23,13 +23,13 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
23
23
|
replace: { type: Boolean }
|
24
24
|
},
|
25
25
|
emits: ["update:modelValue"],
|
26
|
-
setup(
|
26
|
+
setup(M, { expose: j, emit: G }) {
|
27
27
|
var A, H;
|
28
|
-
const t =
|
29
|
-
isScrolling:
|
28
|
+
const t = M, Q = G, d = ce(), q = be(), S = n(), L = t.id ?? de().id.value, g = `bb-tab_${L}`, c = n(), { isScrolling: X, arrivedState: V } = he(c), B = $(() => ({
|
29
|
+
isScrolling: X.value,
|
30
30
|
left: V.left,
|
31
31
|
right: V.right
|
32
|
-
})), C = !!((H = (A =
|
32
|
+
})), C = !!((H = (A = te()) == null ? void 0 : A.proxy) != null && H.$inertia), i = n(null), o = $(
|
33
33
|
() => t.items.findIndex((e) => e.key === i.value)
|
34
34
|
), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
|
35
35
|
t.items.forEach((e) => {
|
@@ -37,9 +37,9 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
37
37
|
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
38
38
|
});
|
39
39
|
const R = () => {
|
40
|
-
var e, a, l,
|
40
|
+
var e, a, l, r, s;
|
41
41
|
if (t.navigation && ((a = (e = d.value) == null ? void 0 : e.query) != null && a[t.querykey]))
|
42
|
-
i.value = (
|
42
|
+
i.value = (r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey];
|
43
43
|
else if (t.navigation && C && ((s = globalThis == null ? void 0 : globalThis.location) != null && s.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
|
44
44
|
i.value = new URL(globalThis.location.href).searchParams.get(
|
45
45
|
t.querykey
|
@@ -47,7 +47,7 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
47
47
|
else if (t.modelValue)
|
48
48
|
i.value = t.modelValue;
|
49
49
|
else if (t.items[0]) {
|
50
|
-
const m = t.items.find((
|
50
|
+
const m = t.items.find((Z) => !Z.disabled);
|
51
51
|
if (!m)
|
52
52
|
throw new Error(
|
53
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."
|
@@ -58,8 +58,8 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
58
58
|
};
|
59
59
|
R();
|
60
60
|
const y = async (e, a = !1) => {
|
61
|
-
var l,
|
62
|
-
if (t.navigation && d.value && ((
|
61
|
+
var l, r, s, m;
|
62
|
+
if (t.navigation && d.value && ((r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey]) !== e)
|
63
63
|
q == null || q.push({
|
64
64
|
...d,
|
65
65
|
query: { ...(s = d.value) == null ? void 0 : s.query, [t.querykey]: e },
|
@@ -71,7 +71,7 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
71
71
|
a ? history.replaceState({}, "", v.toString()) : history.pushState({}, "", v.toString());
|
72
72
|
});
|
73
73
|
}
|
74
|
-
t.modelValue !== e &&
|
74
|
+
t.modelValue !== e && Q("update:modelValue", e), i.value = e;
|
75
75
|
};
|
76
76
|
i.value && y(i.value, !0);
|
77
77
|
const u = (e) => {
|
@@ -101,11 +101,11 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
101
101
|
if (a === null)
|
102
102
|
throw new Error("Could not navigate to next tab");
|
103
103
|
if (t.items[a].disabled) return;
|
104
|
-
const l = t.items[a].key,
|
104
|
+
const l = t.items[a].key, r = document.querySelector(
|
105
105
|
`#${g}_tab_${l}`
|
106
106
|
);
|
107
|
-
|
108
|
-
},
|
107
|
+
r == null || r.focus(), y(l, t.replace);
|
108
|
+
}, Y = (e) => {
|
109
109
|
if (!t.disabled)
|
110
110
|
if (e.key === "ArrowRight")
|
111
111
|
u("next");
|
@@ -118,12 +118,12 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
118
118
|
else
|
119
119
|
return;
|
120
120
|
};
|
121
|
-
|
121
|
+
b(
|
122
122
|
() => t.modelValue,
|
123
123
|
(e) => {
|
124
124
|
e && y(e, t.replace);
|
125
125
|
}
|
126
|
-
),
|
126
|
+
), b(
|
127
127
|
() => {
|
128
128
|
var e, a;
|
129
129
|
return (a = (e = d.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
|
@@ -131,14 +131,14 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
131
131
|
(e) => {
|
132
132
|
e && typeof e == "string" && y(e, t.replace);
|
133
133
|
}
|
134
|
-
),
|
134
|
+
), b(
|
135
135
|
i,
|
136
136
|
async () => {
|
137
137
|
if (S.value) {
|
138
138
|
const e = S.value.querySelector(
|
139
139
|
"[role=tablist] .bb-tab__btn--active"
|
140
140
|
);
|
141
|
-
e && (await
|
141
|
+
e && (await le(), e.scrollIntoView({
|
142
142
|
behavior: "smooth",
|
143
143
|
block: "nearest",
|
144
144
|
inline: "nearest"
|
@@ -147,28 +147,28 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
147
147
|
},
|
148
148
|
{ flush: "post" }
|
149
149
|
);
|
150
|
-
const P =
|
151
|
-
|
150
|
+
const P = n("right");
|
151
|
+
b(
|
152
152
|
i,
|
153
153
|
(e, a) => {
|
154
154
|
if (e && a) {
|
155
|
-
const l = t.items.findIndex((s) => s.key === e),
|
156
|
-
P.value = l >
|
155
|
+
const l = t.items.findIndex((s) => s.key === e), r = t.items.findIndex((s) => s.key === a);
|
156
|
+
P.value = l > r ? "right" : "left";
|
157
157
|
}
|
158
158
|
},
|
159
159
|
{ flush: "sync" }
|
160
160
|
);
|
161
|
-
const E =
|
162
|
-
if (!
|
161
|
+
const E = n(0), z = n(0), D = n(0), F = n(0), N = n(0), x = () => {
|
162
|
+
if (!c.value)
|
163
163
|
return;
|
164
|
-
const e =
|
164
|
+
const e = c.value.querySelector(
|
165
165
|
".bb-tab__btn--active"
|
166
166
|
);
|
167
|
-
e && (D.value = e.offsetLeft, F.value = e.offsetTop, E.value = e.clientWidth, z.value = e.clientHeight, N.value =
|
167
|
+
e && (D.value = e.offsetLeft, F.value = e.offsetTop, E.value = e.clientWidth, z.value = e.clientHeight, N.value = c.value.scrollWidth);
|
168
168
|
};
|
169
|
-
return
|
169
|
+
return ae(x), b(i, x, { flush: "post" }), ye(c, () => {
|
170
170
|
x();
|
171
|
-
}),
|
171
|
+
}), b(
|
172
172
|
() => t.items,
|
173
173
|
() => {
|
174
174
|
i.value && !t.items.find((e) => e.key === i.value) && R();
|
@@ -177,14 +177,14 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
177
177
|
immediate: !0,
|
178
178
|
deep: !0
|
179
179
|
}
|
180
|
-
),
|
180
|
+
), j({
|
181
181
|
isFirst: _,
|
182
182
|
isLast: w,
|
183
183
|
current: i,
|
184
184
|
currentIndex: o,
|
185
185
|
goTo: u
|
186
|
-
}), (e, a) => (
|
187
|
-
id:
|
186
|
+
}), (e, a) => (f(), p("div", {
|
187
|
+
id: ie(L),
|
188
188
|
ref_key: "tabs",
|
189
189
|
ref: S,
|
190
190
|
class: T(["bb-tab", {
|
@@ -192,41 +192,36 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
192
192
|
"bb-tab--disabled": !0
|
193
193
|
}])
|
194
194
|
}, [
|
195
|
-
|
196
|
-
|
195
|
+
h("div", ke, [
|
196
|
+
h("span", null, [
|
197
197
|
k(e.$slots, "header:prepend", U(W(B.value)))
|
198
198
|
]),
|
199
|
-
|
199
|
+
h("ul", {
|
200
200
|
ref_key: "tablist",
|
201
|
-
ref:
|
201
|
+
ref: c,
|
202
202
|
class: "bb-tab__label-container",
|
203
203
|
role: "tablist",
|
204
|
-
style:
|
205
|
-
"--inner-width": `${N.value}px
|
204
|
+
style: se({
|
205
|
+
"--inner-width": `${N.value}px`,
|
206
|
+
"--width": `${E.value}px`,
|
207
|
+
"--height": `${z.value}px`,
|
208
|
+
"--left": `${D.value}px`,
|
209
|
+
"--top": `${F.value}px`
|
206
210
|
})
|
207
211
|
}, [
|
208
|
-
|
209
|
-
class: "bb-tab__highlight",
|
210
|
-
style: K({
|
211
|
-
"--width": `${E.value}px`,
|
212
|
-
"--height": `${z.value}px`,
|
213
|
-
"--left": `${D.value}px`,
|
214
|
-
"--top": `${F.value}px`
|
215
|
-
})
|
216
|
-
}, null, 4),
|
217
|
-
(h(!0), p(O, null, J(e.items, (l) => (h(), p("li", {
|
212
|
+
(f(!0), p(K, null, O(e.items, (l) => (f(), p("li", {
|
218
213
|
key: l.key,
|
219
214
|
role: "presentation"
|
220
215
|
}, [
|
221
|
-
|
216
|
+
J(me, {
|
222
217
|
id: `${g}_tab_${l.key}`,
|
223
218
|
"aria-selected": i.value === l.key,
|
224
219
|
class: T(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
|
225
220
|
disabled: l.disabled || e.disabled,
|
226
221
|
role: "tab",
|
227
222
|
tabindex: i.value === l.key ? 0 : -1,
|
228
|
-
onClick: (
|
229
|
-
onKeydown:
|
223
|
+
onClick: (r) => y(l.key, t.replace),
|
224
|
+
onKeydown: Y
|
230
225
|
}, {
|
231
226
|
default: I(() => [
|
232
227
|
k(e.$slots, `label-${l.key}`, {
|
@@ -251,7 +246,7 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
251
246
|
text: l.label,
|
252
247
|
value: l.key
|
253
248
|
}, () => [
|
254
|
-
|
249
|
+
h("span", ge, re(l.label), 1)
|
255
250
|
])
|
256
251
|
])
|
257
252
|
]),
|
@@ -259,20 +254,20 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
|
|
259
254
|
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
|
260
255
|
]))), 128))
|
261
256
|
], 4),
|
262
|
-
|
257
|
+
h("span", null, [
|
263
258
|
k(e.$slots, "header:append", U(W(B.value)))
|
264
259
|
])
|
265
260
|
]),
|
266
|
-
|
267
|
-
|
261
|
+
h("div", _e, [
|
262
|
+
J(ve, null, {
|
268
263
|
default: I(() => [
|
269
|
-
(
|
264
|
+
(f(!0), p(K, null, O(e.items, (l) => (f(), ne(oe, {
|
270
265
|
key: l.key,
|
271
266
|
css: e.animate,
|
272
267
|
name: `tab-slide-${P.value}`
|
273
268
|
}, {
|
274
269
|
default: I(() => [
|
275
|
-
i.value === l.key || e.eager || l.eager ? (
|
270
|
+
i.value === l.key || e.eager || l.eager ? (f(), p("section", {
|
276
271
|
key: 0,
|
277
272
|
id: `${g}_tabpanel_${l.key}`,
|
278
273
|
"aria-labelledby": `${g}_tab_${l.key}`,
|
package/dist/index110.js
CHANGED
@@ -3,13 +3,13 @@ import { add as ue } from "./index297.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 "./index286.js";
|
7
|
+
import { when as ye } from "./index227.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 "./index238.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
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as V, defineAsyncComponent as H, ref as o, watch as z, computed as A, openBlock as C, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as B, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as E, createBlock as j, createCommentVNode as q } from "vue";
|
2
|
-
import { useFloating as G, arrow as J } from "./
|
2
|
+
import { useFloating as G, arrow as J } from "./index229.js";
|
3
3
|
import { useId as K } from "./index8.js";
|
4
4
|
import { wait as D } from "./index131.js";
|
5
5
|
import Q from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
8
|
-
import { waitFor as X } from "./
|
9
|
-
import { autoUpdate as Y, flip as Z, shift as x, hide as ee } from "./
|
7
|
+
import { throttle as m } from "./index236.js";
|
8
|
+
import { waitFor as X } from "./index233.js";
|
9
|
+
import { autoUpdate as Y, flip as Z, shift as x, hide as ee } from "./index235.js";
|
10
10
|
const de = /* @__PURE__ */ V({
|
11
11
|
__name: "BbTooltip",
|
12
12
|
props: {
|
@@ -24,7 +24,7 @@ const de = /* @__PURE__ */ V({
|
|
24
24
|
},
|
25
25
|
setup(L) {
|
26
26
|
const M = H(
|
27
|
-
() => import("./
|
27
|
+
() => import("./index252.js")
|
28
28
|
), t = L, v = `bb_${t.id ?? K().id.value}`, s = o(), d = o(), P = o(), { placement: b, middlewareData: _ } = G(s, d, {
|
29
29
|
placement: t.placement,
|
30
30
|
whileElementsMounted: Y,
|
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,46 +1,48 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { isCssColor as
|
3
|
-
const
|
1
|
+
import { defineComponent as d, getCurrentInstance as x, inject as y, computed as p, ref as z, onServerPrefetch as _, onBeforeMount as b, watch as h, openBlock as v, createElementBlock as w, mergeProps as g } from "vue";
|
2
|
+
import { isCssColor as I } from "./index226.js";
|
3
|
+
const B = ["innerHTML"], N = /* @__PURE__ */ d({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
6
6
|
size: { default: "md" },
|
7
7
|
color: {},
|
8
8
|
type: {}
|
9
9
|
},
|
10
|
-
setup(
|
11
|
-
var
|
12
|
-
const e =
|
10
|
+
setup(u) {
|
11
|
+
var r, c;
|
12
|
+
const e = u;
|
13
13
|
let t;
|
14
|
-
!!((
|
15
|
-
const
|
14
|
+
!!((c = (r = x()) == null ? void 0 : r.proxy) != null && c.$nuxt) ? process.client && (t = useNuxtApp().$icons) : t = y("icons");
|
15
|
+
const f = {
|
16
16
|
xs: 12,
|
17
17
|
sm: 16,
|
18
18
|
md: 24,
|
19
19
|
lg: 28,
|
20
20
|
xl: 36,
|
21
21
|
xxl: 40
|
22
|
-
},
|
23
|
-
const
|
22
|
+
}, a = p(() => {
|
23
|
+
const i = {
|
24
24
|
"bb-icon": !0
|
25
25
|
};
|
26
|
-
let
|
26
|
+
let l = { "--size": p(() => {
|
27
27
|
let o;
|
28
|
-
return typeof e.size == "string" ? o =
|
28
|
+
return typeof e.size == "string" ? o = f[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
|
29
29
|
}).value };
|
30
|
-
return e.color && (
|
31
|
-
class:
|
32
|
-
style:
|
30
|
+
return e.color && (I(e.color) ? l.color = e.color : i[`bb-icon--${e.color}`] = !0), {
|
31
|
+
class: i,
|
32
|
+
style: l
|
33
33
|
};
|
34
|
-
}), n =
|
35
|
-
return z(async () => {
|
34
|
+
}), n = z(null), s = async () => {
|
36
35
|
if (t) {
|
37
36
|
if (typeof t[e.type] > "u")
|
38
37
|
throw new Error(`Icon "${e.type}" does not exist.`);
|
39
38
|
n.value = await t[e.type]();
|
40
39
|
}
|
41
|
-
}
|
40
|
+
};
|
41
|
+
return _(s), b(() => {
|
42
|
+
n.value || s();
|
43
|
+
}), h(() => e.type, s), (i, m) => (v(), w("i", g(a.value, { innerHTML: n.value }), null, 16, B));
|
42
44
|
}
|
43
45
|
});
|
44
46
|
export {
|
45
|
-
|
47
|
+
N as default
|
46
48
|
};
|
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 "./index236.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 "./index226.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 k, getCurrentInstance as u, resolveComponent as p, computed as d, openBlock as v, createBlock as h, resolveDynamicComponent as C, unref as x, mergeProps as S, withCtx as L, renderSlot as B, createTextVNode as N, toDisplayString as $ } from "vue";
|
2
2
|
import { _config as n } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
3
|
+
import { useLogger as m } from "./index220.js";
|
4
4
|
const _ = /* @__PURE__ */ k({
|
5
5
|
__name: "BaseButton",
|
6
6
|
props: {
|
package/dist/index132.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isClient as J, isObject as K } from "./
|
2
|
-
import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./
|
1
|
+
import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isClient as J, isObject as K } from "./index211.js";
|
2
|
+
import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index211.js";
|
3
3
|
import { computed as S, watch as z, ref as w, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
|
4
4
|
function L(l) {
|
5
5
|
var o;
|
package/dist/index133.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index301.js";
|
2
|
+
import { isPlainObject as c } from "./index302.js";
|
3
3
|
function i(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index15.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as V, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as H, withModifiers as B, withDirectives as E, mergeProps as q, unref as $ } from "vue";
|
2
|
-
import z from "./
|
2
|
+
import z from "./index205.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
5
|
-
import { vMaska as M } from "./
|
6
|
-
import { isHex as D } from "./
|
4
|
+
import I from "./index207.js";
|
5
|
+
import { vMaska as M } from "./index208.js";
|
6
|
+
import { isHex as D } from "./index209.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 "./index226.js";
|
3
|
+
import { when as F } from "./index227.js";
|
4
|
+
import { booleanishToBoolean as N } from "./index228.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 "./index238.js";
|
3
3
|
import F from "./index17.js";
|
4
4
|
/* empty css */
|
5
|
-
import M from "./
|
5
|
+
import M from "./index239.js";
|
6
6
|
/* empty css */
|
7
7
|
const A = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseCheckboxGroup",
|
package/dist/index205.js
CHANGED
@@ -1,4 +1,55 @@
|
|
1
|
-
|
1
|
+
import { defineComponent as f, ref as d, openBlock as r, createElementBlock as _, renderSlot as e, createElementVNode as t, createBlock as s, unref as p, createCommentVNode as i, createVNode as c } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
/* empty css */
|
4
|
+
import a from "./index126.js";
|
5
|
+
/* empty css */
|
6
|
+
import $ from "./index128.js";
|
7
|
+
/* empty css */
|
8
|
+
import b from "./index303.js";
|
9
|
+
const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
|
10
|
+
__name: "CommonInputInnerContainer",
|
11
|
+
props: {
|
12
|
+
"append:icon": {},
|
13
|
+
"prepend:icon": {},
|
14
|
+
preventFocus: { type: Boolean }
|
15
|
+
},
|
16
|
+
setup(m) {
|
17
|
+
const u = m, o = d(), l = () => {
|
18
|
+
var n;
|
19
|
+
!o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
|
20
|
+
};
|
21
|
+
return (n, C) => (r(), _("span", {
|
22
|
+
ref_key: "container",
|
23
|
+
ref: o,
|
24
|
+
class: "bb-common-input-inner-container",
|
25
|
+
onClick: l
|
26
|
+
}, [
|
27
|
+
e(n.$slots, "prepend", {}, () => [
|
28
|
+
t("span", y, [
|
29
|
+
e(n.$slots, "prefix")
|
30
|
+
])
|
31
|
+
]),
|
32
|
+
n.$props["prepend:icon"] ? (r(), s(p(a), {
|
33
|
+
key: 0,
|
34
|
+
class: "bb-common-input-inner-container__prepend-icon",
|
35
|
+
type: n.$props["prepend:icon"]
|
36
|
+
}, null, 8, ["type"])) : i("", !0),
|
37
|
+
e(n.$slots, "default"),
|
38
|
+
n.$props["append:icon"] ? (r(), s(p(a), {
|
39
|
+
key: 1,
|
40
|
+
class: "bb-common-input-inner-container__append-icon",
|
41
|
+
type: n.$props["append:icon"]
|
42
|
+
}, null, 8, ["type"])) : i("", !0),
|
43
|
+
c(p($)),
|
44
|
+
c(b),
|
45
|
+
e(n.$slots, "append", {}, () => [
|
46
|
+
t("span", k, [
|
47
|
+
e(n.$slots, "suffix")
|
48
|
+
])
|
49
|
+
])
|
50
|
+
], 512));
|
51
|
+
}
|
52
|
+
});
|
2
53
|
export {
|
3
|
-
|
54
|
+
S as default
|
4
55
|
};
|
package/dist/index207.js
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
|
1
|
+
import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import r from "./index257.js";
|
4
|
+
const s = {}, c = { class: "bb-common-input-outer-container" };
|
5
|
+
function p(o, a) {
|
6
|
+
return t(), n("span", c, [
|
7
|
+
e(o.$slots, "prepend-outer"),
|
8
|
+
e(o.$slots, "default"),
|
9
|
+
e(o.$slots, "append-outer")
|
10
|
+
]);
|
11
|
+
}
|
12
|
+
const i = /* @__PURE__ */ r(s, [["render", p]]);
|
2
13
|
export {
|
3
|
-
|
14
|
+
i as default
|
4
15
|
};
|
package/dist/index208.js
CHANGED
@@ -1,5 +1,22 @@
|
|
1
|
-
import r from "./
|
2
|
-
const
|
1
|
+
import { MaskInput as r } from "./index258.js";
|
2
|
+
const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
|
3
|
+
if (a.arg == null || a.instance == null) return;
|
4
|
+
const s = "setup" in a.instance.$.type;
|
5
|
+
a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
6
|
+
}, k = (a, n) => {
|
7
|
+
var s;
|
8
|
+
const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
9
|
+
if (t == null || (t == null ? void 0 : t.type) === "file") return;
|
10
|
+
let e = {};
|
11
|
+
if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
|
12
|
+
const l = (o) => {
|
13
|
+
const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
|
14
|
+
p(n, i);
|
15
|
+
};
|
16
|
+
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
+
}
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
19
|
+
};
|
3
20
|
export {
|
4
|
-
|
21
|
+
k as vMaska
|
5
22
|
};
|
package/dist/index209.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
throw: (r) => {
|
5
|
-
throw new Error(`${o}${r}`);
|
6
|
-
}
|
7
|
-
});
|
1
|
+
function x(e) {
|
2
|
+
return /^#([A-Fa-f0-9]{6})$/.test(e);
|
3
|
+
}
|
8
4
|
export {
|
9
|
-
|
5
|
+
x as isHex
|
10
6
|
};
|