bitboss-ui 2.0.31 → 2.0.32
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/index104.js +46 -50
- package/dist/index106.js +5 -5
- package/dist/index114.js +1 -1
- package/dist/index116.js +5 -5
- package/dist/index118.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +91 -87
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index15.js +3 -3
- package/dist/index17.js +2 -2
- package/dist/index19.js +14 -14
- package/dist/index198.js +2 -81
- package/dist/index199.js +115 -2
- package/dist/index200.js +5 -2
- package/dist/index201.js +16 -4
- package/dist/index202.js +16 -2
- package/dist/index203.js +19 -8
- package/dist/index204.js +19 -3
- package/dist/index205.js +27 -3
- package/dist/index206.js +3 -35
- package/dist/index207.js +2 -6
- package/dist/index208.js +8 -7
- package/dist/index209.js +245 -277
- package/dist/index21.js +15 -15
- package/dist/index210.js +51 -15
- package/dist/index211.js +44 -16
- package/dist/index212.js +5 -19
- package/dist/index213.js +49 -19
- package/dist/index214.js +156 -25
- package/dist/index215.js +84 -3
- package/dist/index217.js +3 -249
- package/dist/index218.js +35 -52
- package/dist/index219.js +5 -43
- package/dist/index220.js +7 -5
- package/dist/index221.js +3 -49
- package/dist/index222.js +2 -126
- package/dist/index223.js +4 -123
- package/dist/index224.js +2 -2
- package/dist/index225.js +43 -174
- package/dist/index227.js +15 -0
- package/dist/index228.js +126 -13
- package/dist/index229.js +123 -5
- package/dist/index23.js +5 -5
- package/dist/index230.js +2 -369
- package/dist/index231.js +168 -152
- package/dist/index232.js +5 -84
- package/dist/index233.js +371 -0
- package/dist/index234.js +2 -2
- package/dist/index235.js +2 -18
- package/dist/index236.js +17 -105
- package/dist/index237.js +108 -0
- package/dist/{index238.js → index239.js} +1 -1
- package/dist/index243.js +281 -3
- package/dist/index244.js +6 -9
- package/dist/index245.js +2 -23
- package/dist/index246.js +2 -6
- package/dist/index247.js +2 -16
- package/dist/index248.js +2 -9
- package/dist/index249.js +2 -4
- package/dist/index25.js +1 -1
- package/dist/index250.js +2 -224
- package/dist/index251.js +2 -431
- package/dist/index252.js +2 -89
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -9
- package/dist/index255.js +27 -5
- package/dist/index256.js +22 -2
- package/dist/index258.js +7 -2
- package/dist/index259.js +3 -2
- package/dist/index260.js +12 -2
- package/dist/index261.js +9 -2
- package/dist/index262.js +9 -2
- package/dist/index263.js +17 -2
- package/dist/index264.js +224 -2
- package/dist/index265.js +431 -2
- package/dist/index266.js +85 -24
- package/dist/index267.js +4 -22
- package/dist/index268.js +8 -0
- package/dist/index269.js +16 -7
- package/dist/index27.js +3 -3
- package/dist/index270.js +3 -200
- package/dist/index271.js +8 -65
- package/dist/index272.js +23 -5
- package/dist/index273.js +9 -2
- package/dist/index274.js +196 -122
- package/dist/index275.js +1 -1
- package/dist/index277.js +2 -22
- package/dist/index278.js +128 -0
- package/dist/index279.js +22 -3
- package/dist/index281.js +434 -7
- package/dist/index282.js +126 -16
- package/dist/index283.js +3 -436
- package/dist/index284.js +3 -127
- package/dist/index285.js +211 -3
- package/dist/index286.js +2 -3
- package/dist/index287.js +15 -211
- package/dist/index288.js +5 -79
- package/dist/index29.js +2 -2
- package/dist/index290.js +7 -4
- package/dist/index291.js +19 -4
- package/dist/index292.js +64 -57
- package/dist/index293.js +10 -14
- package/dist/index294.js +4 -2
- package/dist/index295.js +4 -7
- package/dist/index296.js +57 -17
- package/dist/index297.js +79 -11
- package/dist/index299.js +34 -46
- package/dist/index300.js +46 -34
- package/dist/index301.js +2 -480
- package/dist/index302.js +482 -0
- package/dist/index304.js +416 -42
- package/dist/index305.js +47 -2
- package/dist/index31.js +2 -2
- package/dist/index33.js +3 -3
- package/dist/index35.js +13 -13
- package/dist/index37.js +4 -4
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +6 -6
- package/dist/index45.js +2 -2
- package/dist/index47.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index71.js +3 -3
- package/dist/index75.js +2 -2
- package/dist/index77.js +1 -1
- package/dist/index80.js +2 -2
- package/dist/index82.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/package.json +1 -1
- package/dist/index216.js +0 -4
- package/dist/index226.js +0 -45
- package/dist/index240.js +0 -4
- package/dist/index280.js +0 -14
- package/dist/index303.js +0 -423
- /package/dist/{index298.js → index289.js} +0 -0
- /package/dist/{index257.js → index306.js} +0 -0
package/dist/index104.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent as ae, ref as u, computed as _, getCurrentInstance as se, watch as h, nextTick as ie, onMounted as ne,
|
2
|
-
import { useId as
|
3
|
-
import { useRoute as
|
4
|
-
import { useRouter as
|
5
|
-
import { wait as
|
6
|
-
import { useScroll as pe } from "./index128.js";
|
1
|
+
import { defineComponent as ae, ref as u, computed as _, getCurrentInstance as se, watch as h, nextTick as ie, onMounted as ne, openBlock as b, createElementBlock as y, unref as re, normalizeClass as x, createElementVNode as c, renderSlot as m, normalizeProps as J, guardReactiveProps as M, normalizeStyle as oe, Fragment as O, renderList as j, createVNode as G, withCtx as T, toDisplayString as ue, createBlock as de, Transition as ce, createCommentVNode as be } from "vue";
|
2
|
+
import { useId as fe } from "./index8.js";
|
3
|
+
import { useRoute as he } from "./index132.js";
|
4
|
+
import { useRouter as ye } from "./index133.js";
|
5
|
+
import { wait as me } from "./index127.js";
|
6
|
+
import { useScroll as ve, useWindowSize as pe } from "./index128.js";
|
7
7
|
import ke from "./index13.js";
|
8
8
|
/* empty css */
|
9
9
|
import ge from "./index123.js";
|
10
10
|
/* empty css */
|
11
|
-
import {
|
12
|
-
const we = ["id"], $e = { class: "bb-tab__label-boundary" },
|
11
|
+
import { debouncedWatch as _e } from "./index199.js";
|
12
|
+
const we = ["id"], $e = { class: "bb-tab__label-boundary" }, Se = { class: "bb-tab__label" }, qe = { class: "bb-tab__panes-container" }, xe = ["id", "aria-labelledby"], Fe = /* @__PURE__ */ ae({
|
13
13
|
__name: "BbTab",
|
14
14
|
props: {
|
15
15
|
disabled: { type: Boolean },
|
@@ -24,21 +24,21 @@ const we = ["id"], $e = { 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 F, N,
|
29
|
-
const t =
|
30
|
-
isScrolling:
|
31
|
-
left:
|
32
|
-
right:
|
33
|
-
})),
|
27
|
+
setup(Q, { expose: X, emit: Y }) {
|
28
|
+
var z, F, N, A, H, U, W;
|
29
|
+
const t = Q, Z = Y, d = he(), w = ye(), $ = u(), I = t.id ?? fe().id.value, v = `bb-tab_${I}`, p = u(), { isScrolling: ee, arrivedState: L } = ve(p), V = _(() => ({
|
30
|
+
isScrolling: ee.value,
|
31
|
+
left: L.left,
|
32
|
+
right: L.right
|
33
|
+
})), B = !!((F = (z = se()) == null ? void 0 : z.proxy) != null && F.$inertia), s = u(null), r = _(
|
34
34
|
() => t.items.findIndex((e) => e.key === s.value)
|
35
35
|
), k = _(() => r.value === 0), g = _(() => r.value === t.items.length - 1);
|
36
36
|
if (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
|
-
}), t.navigation && ((A = (
|
40
|
-
s.value = (
|
41
|
-
else if (t.navigation &&
|
39
|
+
}), t.navigation && ((A = (N = d.value) == null ? void 0 : N.query) != null && A[t.querykey]))
|
40
|
+
s.value = (U = (H = d.value) == null ? void 0 : H.query) == null ? void 0 : U[t.querykey];
|
41
|
+
else if (t.navigation && B && ((W = globalThis == null ? void 0 : globalThis.location) != null && W.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
|
42
42
|
s.value = new URL(globalThis.location.href).searchParams.get(
|
43
43
|
t.querykey
|
44
44
|
);
|
@@ -54,20 +54,20 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
54
54
|
s.value = a;
|
55
55
|
}
|
56
56
|
const f = async (e, a = !1) => {
|
57
|
-
var l, n, i,
|
57
|
+
var l, n, i, K;
|
58
58
|
if (t.navigation && d.value && ((n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
|
59
59
|
w == null || w.push({
|
60
60
|
...d,
|
61
61
|
query: { ...(i = d.value) == null ? void 0 : i.query, [t.querykey]: e },
|
62
62
|
replace: a
|
63
63
|
});
|
64
|
-
else if (t.navigation &&
|
65
|
-
const
|
66
|
-
|
67
|
-
a ? history.replaceState({}, "",
|
64
|
+
else if (t.navigation && B && ((K = globalThis == null ? void 0 : globalThis.location) != null && K.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
|
65
|
+
const q = new URL(globalThis.location.href);
|
66
|
+
q.searchParams.set(t.querykey, e), me(0).then(() => {
|
67
|
+
a ? history.replaceState({}, "", q.toString()) : history.pushState({}, "", q.toString());
|
68
68
|
});
|
69
69
|
}
|
70
|
-
t.modelValue !== e &&
|
70
|
+
t.modelValue !== e && Z("update:modelValue", e), s.value = e;
|
71
71
|
};
|
72
72
|
s.value && f(s.value, !0);
|
73
73
|
const o = (e) => {
|
@@ -101,7 +101,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
101
101
|
`#${v}_tab_${l}`
|
102
102
|
);
|
103
103
|
n == null || n.focus(), f(l, t.replace);
|
104
|
-
},
|
104
|
+
}, te = (e) => {
|
105
105
|
if (!t.disabled)
|
106
106
|
if (e.key === "ArrowRight")
|
107
107
|
o("next");
|
@@ -154,27 +154,23 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
154
154
|
},
|
155
155
|
{ flush: "sync" }
|
156
156
|
);
|
157
|
-
const
|
157
|
+
const R = u(0), E = u(0), P = u(0), D = u(0), S = () => {
|
158
158
|
if (!p.value) return;
|
159
159
|
const e = p.value.querySelector(
|
160
160
|
".bb-tab__btn--active"
|
161
161
|
);
|
162
|
-
e && (
|
162
|
+
e && (P.value = e.offsetLeft, D.value = e.offsetTop, R.value = e.clientWidth, E.value = e.clientHeight);
|
163
163
|
};
|
164
|
-
ne(
|
165
|
-
|
166
|
-
}),
|
167
|
-
document.removeEventListener("resize", D, { passive: !0 });
|
168
|
-
}), h(s, q, { flush: "post" });
|
169
|
-
const D = _e(q, 200);
|
170
|
-
return Y({
|
164
|
+
ne(S), h(s, S, { flush: "post" });
|
165
|
+
const { width: le } = pe();
|
166
|
+
return _e(le, S, { debounce: 200 }), X({
|
171
167
|
isFirst: k,
|
172
168
|
isLast: g,
|
173
169
|
current: s,
|
174
170
|
currentIndex: r,
|
175
171
|
goTo: o
|
176
172
|
}), (e, a) => (b(), y("div", {
|
177
|
-
id:
|
173
|
+
id: re(I),
|
178
174
|
ref_key: "tabs",
|
179
175
|
ref: $,
|
180
176
|
class: x(["bb-tab", {
|
@@ -184,7 +180,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
184
180
|
}, [
|
185
181
|
c("div", $e, [
|
186
182
|
c("span", null, [
|
187
|
-
m(e.$slots, "header:prepend", M(
|
183
|
+
m(e.$slots, "header:prepend", J(M(V.value)))
|
188
184
|
]),
|
189
185
|
c("ul", {
|
190
186
|
ref_key: "tablist",
|
@@ -194,18 +190,18 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
194
190
|
}, [
|
195
191
|
c("span", {
|
196
192
|
class: "bb-tab__highlight",
|
197
|
-
style:
|
198
|
-
"--width": `${
|
199
|
-
"--height": `${
|
200
|
-
"--left": `${
|
201
|
-
"--top": `${
|
193
|
+
style: oe({
|
194
|
+
"--width": `${R.value}px`,
|
195
|
+
"--height": `${E.value}px`,
|
196
|
+
"--left": `${P.value}px`,
|
197
|
+
"--top": `${D.value}px`
|
202
198
|
})
|
203
199
|
}, null, 4),
|
204
|
-
(b(!0), y(
|
200
|
+
(b(!0), y(O, null, j(e.items, (l) => (b(), y("li", {
|
205
201
|
key: l.key,
|
206
202
|
role: "presentation"
|
207
203
|
}, [
|
208
|
-
|
204
|
+
G(ke, {
|
209
205
|
id: `${v}_tab_${l.key}`,
|
210
206
|
"aria-selected": s.value === l.key,
|
211
207
|
class: x(["bb-tab__btn", { "bb-tab__btn--active": s.value === l.key }]),
|
@@ -213,7 +209,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
213
209
|
role: "tab",
|
214
210
|
tabindex: s.value === l.key ? 0 : -1,
|
215
211
|
onClick: (n) => f(l.key, t.replace),
|
216
|
-
onKeydown:
|
212
|
+
onKeydown: te
|
217
213
|
}, {
|
218
214
|
default: T(() => [
|
219
215
|
m(e.$slots, `label-${l.key}`, {
|
@@ -238,7 +234,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
238
234
|
text: l.label,
|
239
235
|
value: l.key
|
240
236
|
}, () => [
|
241
|
-
c("span",
|
237
|
+
c("span", Se, ue(l.label), 1)
|
242
238
|
])
|
243
239
|
])
|
244
240
|
]),
|
@@ -247,13 +243,13 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
247
243
|
]))), 128))
|
248
244
|
], 512),
|
249
245
|
c("span", null, [
|
250
|
-
m(e.$slots, "header:append", M(
|
246
|
+
m(e.$slots, "header:append", J(M(V.value)))
|
251
247
|
])
|
252
248
|
]),
|
253
|
-
c("div",
|
254
|
-
|
249
|
+
c("div", qe, [
|
250
|
+
G(ge, null, {
|
255
251
|
default: T(() => [
|
256
|
-
(b(!0), y(
|
252
|
+
(b(!0), y(O, null, j(e.items, (l) => (b(), de(ce, {
|
257
253
|
key: l.key,
|
258
254
|
css: e.animate,
|
259
255
|
name: `tab-slide-${C.value}`
|
@@ -280,7 +276,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
|
|
280
276
|
text: l.label,
|
281
277
|
value: l.key
|
282
278
|
})
|
283
|
-
], 10, xe)) :
|
279
|
+
], 10, xe)) : be("", !0)
|
284
280
|
]),
|
285
281
|
_: 2
|
286
282
|
}, 1032, ["css", "name"]))), 128))
|
package/dist/index106.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as oe, ref as x, computed as h, 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 k, createElementVNode as s, 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 "./
|
3
|
-
import { clamp as pe } from "./
|
2
|
+
import { add as ue } from "./index286.js";
|
3
|
+
import { clamp as pe } from "./index198.js";
|
4
4
|
import { isNil as M } from "./index125.js";
|
5
5
|
import { useId as fe } from "./index8.js";
|
6
|
-
import { useItemValue as me } from "./
|
7
|
-
import { when as he } from "./
|
6
|
+
import { useItemValue as me } from "./index262.js";
|
7
|
+
import { when as he } from "./index223.js";
|
8
8
|
import J from "./index15.js";
|
9
9
|
/* empty css */
|
10
10
|
import ye from "./index29.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useOptions as _e } from "./
|
12
|
+
import { useOptions as _e } from "./index214.js";
|
13
13
|
const ke = {
|
14
14
|
key: 0,
|
15
15
|
class: "sr-only"
|
package/dist/index114.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 "./index292.js";
|
4
4
|
const N = /* @__PURE__ */ s({
|
5
5
|
__name: "BbToast",
|
6
6
|
props: {
|
package/dist/index116.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as z, defineAsyncComponent as A, ref as a, computed as _, watch as I, openBlock as b, createElementBlock as R, mergeProps as U, createElementVNode as c, renderSlot as D, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as L, withCtx as $, createCommentVNode as M } from "vue";
|
2
|
-
import { useFloating as q, arrow as G } from "./
|
2
|
+
import { useFloating as q, arrow as G } from "./index228.js";
|
3
3
|
import { useId as J } from "./index8.js";
|
4
4
|
import { wait as P } from "./index127.js";
|
5
5
|
import K from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as w } 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 w } from "./index217.js";
|
8
|
+
import { waitFor as Q } from "./index219.js";
|
9
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index233.js";
|
10
10
|
const ee = /* @__PURE__ */ c("svg", {
|
11
11
|
fill: "none",
|
12
12
|
viewBox: "0 0 24 24",
|
@@ -35,7 +35,7 @@ const ee = /* @__PURE__ */ c("svg", {
|
|
35
35
|
},
|
36
36
|
setup(F) {
|
37
37
|
const O = A(
|
38
|
-
() => import("./
|
38
|
+
() => import("./index270.js")
|
39
39
|
), t = F, g = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), T = a(), { floatingStyles: te, placement: h, middlewareData: f } = q(
|
40
40
|
s,
|
41
41
|
d,
|
package/dist/index118.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 "./index288.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/index122.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 "./index222.js";
|
3
3
|
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index123.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 "./index217.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index124.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index222.js";
|
3
3
|
const y = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), d = [
|
4
4
|
y
|
5
5
|
], g = /* @__PURE__ */ p({
|
package/dist/index126.js
CHANGED
package/dist/index128.js
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./
|
2
|
-
import {
|
3
|
-
import { computed as O, ref as T, watch as V, reactive as k,
|
4
|
-
function
|
1
|
+
import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./index199.js";
|
2
|
+
import { bypassFilter as fe, createFilterWrapper as ve, debounceFilter as de, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as pe, debouncedWatch as be, watchWithFilter as ge } from "./index199.js";
|
3
|
+
import { computed as O, ref as T, watch as V, reactive as k, watchEffect as U, getCurrentInstance as Z, onMounted as ee } from "vue";
|
4
|
+
function N(l) {
|
5
5
|
var r;
|
6
6
|
const t = S(l);
|
7
7
|
return (r = t == null ? void 0 : t.$el) != null ? r : t;
|
8
8
|
}
|
9
|
-
const
|
9
|
+
const D = J ? window : void 0;
|
10
10
|
function P(...l) {
|
11
11
|
let r, t, n, e;
|
12
|
-
if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([t, n, e] = l, r =
|
12
|
+
if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([t, n, e] = l, r = D) : [r, t, n, e] = l, !r)
|
13
13
|
return _;
|
14
14
|
Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
15
15
|
const v = [], i = () => {
|
16
16
|
v.forEach((a) => a()), v.length = 0;
|
17
|
-
}, f = (a, s,
|
18
|
-
() => [
|
17
|
+
}, f = (a, s, h, b) => (a.addEventListener(s, h, b), () => a.removeEventListener(s, h, b)), d = V(
|
18
|
+
() => [N(r), S(e)],
|
19
19
|
([a, s]) => {
|
20
20
|
if (i(), !a)
|
21
21
|
return;
|
22
|
-
const
|
22
|
+
const h = K(s) ? { ...s } : s;
|
23
23
|
v.push(
|
24
|
-
...t.flatMap((
|
24
|
+
...t.flatMap((b) => n.map((m) => f(a, b, m, h)))
|
25
25
|
);
|
26
26
|
},
|
27
27
|
{ immediate: !0, flush: "post" }
|
@@ -31,8 +31,8 @@ function P(...l) {
|
|
31
31
|
return R(c), c;
|
32
32
|
}
|
33
33
|
function te() {
|
34
|
-
const l = T(!1), r =
|
35
|
-
return r &&
|
34
|
+
const l = T(!1), r = Z();
|
35
|
+
return r && ee(() => {
|
36
36
|
l.value = !0;
|
37
37
|
}, r), l;
|
38
38
|
}
|
@@ -41,13 +41,13 @@ function X(l) {
|
|
41
41
|
return O(() => (r.value, !!l()));
|
42
42
|
}
|
43
43
|
function ne(l, r = {}) {
|
44
|
-
const { window: t =
|
44
|
+
const { window: t = D } = r, n = X(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
45
45
|
let e;
|
46
46
|
const v = T(!1), i = (c) => {
|
47
47
|
v.value = c.matches;
|
48
48
|
}, f = () => {
|
49
49
|
e && ("removeEventListener" in e ? e.removeEventListener("change", i) : e.removeListener(i));
|
50
|
-
}, d =
|
50
|
+
}, d = U(() => {
|
51
51
|
n.value && (f(), e = t.matchMedia(S(l)), "addEventListener" in e ? e.addEventListener("change", i) : e.addListener(i), v.value = e.matches);
|
52
52
|
});
|
53
53
|
return R(() => {
|
@@ -59,35 +59,35 @@ function le(l, r, t = {}) {
|
|
59
59
|
root: n,
|
60
60
|
rootMargin: e = "0px",
|
61
61
|
threshold: v = 0.1,
|
62
|
-
window: i =
|
62
|
+
window: i = D,
|
63
63
|
immediate: f = !0
|
64
64
|
} = t, d = X(() => i && "IntersectionObserver" in i), c = O(() => {
|
65
|
-
const
|
66
|
-
return (Array.isArray(
|
65
|
+
const m = S(l);
|
66
|
+
return (Array.isArray(m) ? m : [m]).map(N).filter($);
|
67
67
|
});
|
68
68
|
let a = _;
|
69
|
-
const s = T(f),
|
70
|
-
() => [c.value,
|
71
|
-
([
|
72
|
-
if (a(), !s.value || !
|
69
|
+
const s = T(f), h = d.value ? V(
|
70
|
+
() => [c.value, N(n), s.value],
|
71
|
+
([m, I]) => {
|
72
|
+
if (a(), !s.value || !m.length)
|
73
73
|
return;
|
74
|
-
const
|
74
|
+
const w = new IntersectionObserver(
|
75
75
|
r,
|
76
76
|
{
|
77
|
-
root:
|
77
|
+
root: N(I),
|
78
78
|
rootMargin: e,
|
79
79
|
threshold: v
|
80
80
|
}
|
81
81
|
);
|
82
|
-
|
83
|
-
|
82
|
+
m.forEach((p) => p && w.observe(p)), a = () => {
|
83
|
+
w.disconnect(), a = _;
|
84
84
|
};
|
85
85
|
},
|
86
86
|
{ immediate: f, flush: "post" }
|
87
|
-
) : _,
|
88
|
-
a(),
|
87
|
+
) : _, b = () => {
|
88
|
+
a(), h(), s.value = !1;
|
89
89
|
};
|
90
|
-
return R(
|
90
|
+
return R(b), {
|
91
91
|
isSupported: d,
|
92
92
|
isActive: s,
|
93
93
|
pause() {
|
@@ -96,7 +96,7 @@ function le(l, r, t = {}) {
|
|
96
96
|
resume() {
|
97
97
|
s.value = !0;
|
98
98
|
},
|
99
|
-
stop:
|
99
|
+
stop: b
|
100
100
|
};
|
101
101
|
}
|
102
102
|
const z = 1;
|
@@ -117,70 +117,70 @@ function ue(l, r = {}) {
|
|
117
117
|
passive: !0
|
118
118
|
},
|
119
119
|
behavior: d = "auto",
|
120
|
-
window: c =
|
120
|
+
window: c = D,
|
121
121
|
onError: a = (o) => {
|
122
122
|
console.error(o);
|
123
123
|
}
|
124
|
-
} = r, s = T(0),
|
124
|
+
} = r, s = T(0), h = T(0), b = O({
|
125
125
|
get() {
|
126
126
|
return s.value;
|
127
127
|
},
|
128
128
|
set(o) {
|
129
129
|
I(o, void 0);
|
130
130
|
}
|
131
|
-
}),
|
131
|
+
}), m = O({
|
132
132
|
get() {
|
133
|
-
return
|
133
|
+
return h.value;
|
134
134
|
},
|
135
135
|
set(o) {
|
136
136
|
I(void 0, o);
|
137
137
|
}
|
138
138
|
});
|
139
139
|
function I(o, A) {
|
140
|
-
var
|
140
|
+
var g, M, W, x;
|
141
141
|
if (!c)
|
142
142
|
return;
|
143
|
-
const
|
144
|
-
if (!
|
143
|
+
const E = S(l);
|
144
|
+
if (!E)
|
145
145
|
return;
|
146
|
-
(W =
|
147
|
-
top: (
|
148
|
-
left: (M = S(o)) != null ? M :
|
146
|
+
(W = E instanceof Document ? c.document.body : E) == null || W.scrollTo({
|
147
|
+
top: (g = S(A)) != null ? g : m.value,
|
148
|
+
left: (M = S(o)) != null ? M : b.value,
|
149
149
|
behavior: S(d)
|
150
150
|
});
|
151
|
-
const
|
152
|
-
|
151
|
+
const F = ((x = E == null ? void 0 : E.document) == null ? void 0 : x.documentElement) || (E == null ? void 0 : E.documentElement) || E;
|
152
|
+
b != null && (s.value = F.scrollLeft), m != null && (h.value = F.scrollTop);
|
153
153
|
}
|
154
|
-
const
|
154
|
+
const w = T(!1), p = k({
|
155
155
|
left: !0,
|
156
156
|
right: !1,
|
157
157
|
top: !0,
|
158
158
|
bottom: !1
|
159
|
-
}),
|
159
|
+
}), y = k({
|
160
160
|
left: !1,
|
161
161
|
right: !1,
|
162
162
|
top: !1,
|
163
163
|
bottom: !1
|
164
|
-
}),
|
165
|
-
|
166
|
-
},
|
164
|
+
}), H = (o) => {
|
165
|
+
w.value && (w.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, e(o));
|
166
|
+
}, C = q(H, t + n), u = (o) => {
|
167
167
|
var A;
|
168
168
|
if (!c)
|
169
169
|
return;
|
170
|
-
const
|
171
|
-
|
172
|
-
const
|
173
|
-
M === "flex" && W === "row-reverse" ? (
|
174
|
-
let L =
|
175
|
-
o === c.document && !L && (L = c.document.body.scrollTop),
|
176
|
-
const Y = Math.abs(L) <= (i.top || 0), j = Math.abs(L) +
|
177
|
-
M === "flex" && W === "column-reverse" ? (
|
170
|
+
const g = ((A = o == null ? void 0 : o.document) == null ? void 0 : A.documentElement) || (o == null ? void 0 : o.documentElement) || N(o), { display: M, flexDirection: W } = getComputedStyle(g), x = g.scrollLeft;
|
171
|
+
y.left = x < s.value, y.right = x > s.value;
|
172
|
+
const E = Math.abs(x) <= (i.left || 0), F = Math.abs(x) + g.clientWidth >= g.scrollWidth - (i.right || 0) - z;
|
173
|
+
M === "flex" && W === "row-reverse" ? (p.left = F, p.right = E) : (p.left = E, p.right = F), s.value = x;
|
174
|
+
let L = g.scrollTop;
|
175
|
+
o === c.document && !L && (L = c.document.body.scrollTop), y.top = L < h.value, y.bottom = L > h.value;
|
176
|
+
const Y = Math.abs(L) <= (i.top || 0), j = Math.abs(L) + g.clientHeight >= g.scrollHeight - (i.bottom || 0) - z;
|
177
|
+
M === "flex" && W === "column-reverse" ? (p.top = j, p.bottom = Y) : (p.top = Y, p.bottom = j), h.value = L;
|
178
178
|
}, B = (o) => {
|
179
179
|
var A;
|
180
180
|
if (!c)
|
181
181
|
return;
|
182
|
-
const
|
183
|
-
u(
|
182
|
+
const g = (A = o.target.documentElement) != null ? A : o.target;
|
183
|
+
u(g), w.value = !0, C(o), v(o);
|
184
184
|
};
|
185
185
|
return P(
|
186
186
|
l,
|
@@ -199,14 +199,14 @@ function ue(l, r = {}) {
|
|
199
199
|
}), P(
|
200
200
|
l,
|
201
201
|
"scrollend",
|
202
|
-
|
202
|
+
H,
|
203
203
|
f
|
204
204
|
), {
|
205
|
-
x:
|
206
|
-
y:
|
207
|
-
isScrolling:
|
208
|
-
arrivedState:
|
209
|
-
directions:
|
205
|
+
x: b,
|
206
|
+
y: m,
|
207
|
+
isScrolling: w,
|
208
|
+
arrivedState: p,
|
209
|
+
directions: y,
|
210
210
|
measure() {
|
211
211
|
const o = S(l);
|
212
212
|
c && o && u(o);
|
@@ -222,31 +222,31 @@ function ie(l, r) {
|
|
222
222
|
if (n.value.includes(u))
|
223
223
|
return a(n.value.indexOf(u));
|
224
224
|
}
|
225
|
-
function
|
225
|
+
function h(u) {
|
226
226
|
n.value.includes(u) && (e.value = n.value.indexOf(u));
|
227
227
|
}
|
228
|
-
function
|
228
|
+
function b() {
|
229
229
|
f.value || e.value++;
|
230
230
|
}
|
231
|
-
function
|
231
|
+
function m() {
|
232
232
|
i.value || e.value--;
|
233
233
|
}
|
234
234
|
function I(u) {
|
235
|
-
|
235
|
+
C(u) && h(u);
|
236
236
|
}
|
237
|
-
function
|
237
|
+
function w(u) {
|
238
238
|
return n.value.indexOf(u) === e.value + 1;
|
239
239
|
}
|
240
|
-
function
|
240
|
+
function p(u) {
|
241
241
|
return n.value.indexOf(u) === e.value - 1;
|
242
242
|
}
|
243
|
-
function
|
243
|
+
function y(u) {
|
244
244
|
return n.value.indexOf(u) === e.value;
|
245
245
|
}
|
246
|
-
function
|
246
|
+
function H(u) {
|
247
247
|
return e.value < n.value.indexOf(u);
|
248
248
|
}
|
249
|
-
function
|
249
|
+
function C(u) {
|
250
250
|
return e.value > n.value.indexOf(u);
|
251
251
|
}
|
252
252
|
return {
|
@@ -260,20 +260,20 @@ function ie(l, r) {
|
|
260
260
|
isLast: f,
|
261
261
|
at: a,
|
262
262
|
get: s,
|
263
|
-
goTo:
|
264
|
-
goToNext:
|
265
|
-
goToPrevious:
|
263
|
+
goTo: h,
|
264
|
+
goToNext: b,
|
265
|
+
goToPrevious: m,
|
266
266
|
goBackTo: I,
|
267
|
-
isNext:
|
268
|
-
isPrevious:
|
269
|
-
isCurrent:
|
270
|
-
isBefore:
|
271
|
-
isAfter:
|
267
|
+
isNext: w,
|
268
|
+
isPrevious: p,
|
269
|
+
isCurrent: y,
|
270
|
+
isBefore: H,
|
271
|
+
isAfter: C
|
272
272
|
};
|
273
273
|
}
|
274
274
|
function se(l = {}) {
|
275
275
|
const {
|
276
|
-
window: r =
|
276
|
+
window: r = D,
|
277
277
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
278
278
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
279
279
|
listenOrientation: e = !0,
|
@@ -288,19 +288,21 @@ function se(l = {}) {
|
|
288
288
|
return { width: i, height: f };
|
289
289
|
}
|
290
290
|
export {
|
291
|
-
fe as
|
292
|
-
ve as
|
293
|
-
|
294
|
-
|
291
|
+
fe as bypassFilter,
|
292
|
+
ve as createFilterWrapper,
|
293
|
+
de as debounceFilter,
|
294
|
+
he as debouncedWatch,
|
295
|
+
D as defaultWindow,
|
296
|
+
me as getLifeCycleTarget,
|
295
297
|
J as isClient,
|
296
298
|
K as isObject,
|
297
299
|
_ as noop,
|
298
300
|
$ as notNullish,
|
299
|
-
|
301
|
+
pe as throttleFilter,
|
300
302
|
S as toValue,
|
301
303
|
Q as tryOnMounted,
|
302
304
|
R as tryOnScopeDispose,
|
303
|
-
|
305
|
+
N as unrefElement,
|
304
306
|
q as useDebounceFn,
|
305
307
|
P as useEventListener,
|
306
308
|
le as useIntersectionObserver,
|
@@ -310,5 +312,7 @@ export {
|
|
310
312
|
ie as useStepper,
|
311
313
|
X as useSupported,
|
312
314
|
G as useThrottleFn,
|
313
|
-
se as useWindowSize
|
315
|
+
se as useWindowSize,
|
316
|
+
be as watchDebounced,
|
317
|
+
ge as watchWithFilter
|
314
318
|
};
|