bitboss-ui 2.1.92 → 2.1.94
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 +130 -91
- package/dist/composables/useQuery.d.ts +15 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +133 -131
- package/dist/{index99.js → index100.js} +2 -2
- package/dist/{index101.js → index102.js} +2 -2
- package/dist/{index103.js → index104.js} +2 -2
- package/dist/index108.js +134 -168
- package/dist/index109.js +178 -0
- package/dist/index11.js +36 -38
- package/dist/{index110.js → index111.js} +2 -2
- package/dist/{index114.js → index115.js} +1 -1
- package/dist/{index116.js → index117.js} +2 -2
- package/dist/{index118.js → index119.js} +2 -2
- package/dist/index12.js +36 -179
- package/dist/index121.js +369 -0
- package/dist/{index122.js → index123.js} +15 -15
- package/dist/{index124.js → index125.js} +2 -2
- package/dist/{index126.js → index127.js} +2 -2
- package/dist/{index128.js → index129.js} +2 -2
- package/dist/index13.js +181 -124
- package/dist/{index130.js → index131.js} +2 -2
- package/dist/{index132.js → index133.js} +7 -7
- package/dist/{index134.js → index135.js} +1 -1
- package/dist/{index136.js → index137.js} +4 -4
- package/dist/index139.js +13 -11
- package/dist/index14.js +128 -0
- package/dist/index140.js +11 -2
- package/dist/index141.js +2 -419
- package/dist/index142.js +419 -9
- package/dist/index143.js +9 -25
- package/dist/index144.js +9 -2
- package/dist/index145.js +25 -5
- package/dist/index146.js +2 -6
- package/dist/index147.js +5 -5
- package/dist/index148.js +6 -3
- package/dist/index149.js +5 -3
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/{index15.js → index16.js} +8 -8
- package/dist/index160.js +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +1 -1
- package/dist/index167.js +1 -1
- package/dist/index168.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +1 -1
- package/dist/index178.js +1 -1
- package/dist/index179.js +3 -2
- package/dist/{index17.js → index18.js} +3 -3
- package/dist/index180.js +1 -1
- package/dist/index181.js +2 -3
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +1 -1
- package/dist/index185.js +1 -1
- package/dist/index186.js +3 -2
- package/dist/index187.js +1 -1
- package/dist/index188.js +2 -3
- package/dist/index189.js +1 -1
- package/dist/index190.js +1 -1
- package/dist/index191.js +1 -1
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +3 -2
- package/dist/index197.js +1 -1
- package/dist/index198.js +2 -3
- package/dist/index199.js +1 -1
- package/dist/{index19.js → index20.js} +9 -9
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +1 -1
- package/dist/index207.js +1 -1
- package/dist/index208.js +1 -1
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +1 -1
- package/dist/{index297.js → index212.js} +1 -1
- package/dist/index213.js +3 -7
- package/dist/index215.js +6 -137
- package/dist/index216.js +2 -2
- package/dist/index217.js +137 -32
- package/dist/index218.js +2 -28
- package/dist/index219.js +7 -0
- package/dist/{index21.js → index22.js} +15 -15
- package/dist/index220.js +7 -4
- package/dist/index221.js +2 -8
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -51
- package/dist/index224.js +6 -16
- package/dist/index225.js +2 -106
- package/dist/index226.js +9 -0
- package/dist/index227.js +5 -100
- package/dist/index228.js +7 -0
- package/dist/index229.js +5 -3
- package/dist/index230.js +5 -13
- package/dist/index231.js +3 -13
- package/dist/index232.js +5 -12
- package/dist/index233.js +8 -3
- package/dist/index234.js +268 -9
- package/dist/index235.js +50 -186
- package/dist/index236.js +52 -3
- package/dist/index237.js +32 -3
- package/dist/index238.js +59 -17
- package/dist/index239.js +13 -12
- package/dist/{index23.js → index24.js} +14 -14
- package/dist/index240.js +48 -12
- package/dist/index241.js +16 -11
- package/dist/index242.js +105 -28
- package/dist/index244.js +100 -4
- package/dist/index246.js +5 -0
- package/dist/index247.js +2 -229
- package/dist/index248.js +3 -2
- package/dist/index249.js +10 -86
- package/dist/index250.js +5 -0
- package/dist/index251.js +4 -2
- package/dist/index252.js +5 -3
- package/dist/index253.js +4 -10
- package/dist/index254.js +9 -3
- package/dist/index255.js +29 -4
- package/dist/index256.js +16 -5
- package/dist/index257.js +12 -5
- package/dist/index258.js +53 -5
- package/dist/index259.js +13 -5
- package/dist/{index25.js → index26.js} +4 -4
- package/dist/index260.js +12 -5
- package/dist/index261.js +2 -8
- package/dist/index262.js +59 -260
- package/dist/index263.js +33 -52
- package/dist/index264.js +26 -50
- package/dist/index266.js +187 -59
- package/dist/index267.js +3 -5
- package/dist/index268.js +3 -5
- package/dist/index269.js +33 -5
- package/dist/index270.js +8 -2
- package/dist/index271.js +5 -20
- package/dist/index272.js +5 -7
- package/dist/index273.js +5 -2
- package/dist/index274.js +19 -33
- package/dist/index275.js +135 -9
- package/dist/index277.js +86 -5
- package/dist/index279.js +15 -201
- package/dist/{index27.js → index28.js} +2 -2
- package/dist/index280.js +11 -0
- package/dist/index281.js +23 -9
- package/dist/index282.js +23 -23
- package/dist/index283.js +8 -22
- package/dist/index284.js +4 -6
- package/dist/index285.js +199 -14
- package/dist/index287.js +34 -2
- package/dist/index288.js +6 -6
- package/dist/index289.js +18 -7
- package/dist/index290.js +12 -9
- package/dist/index291.js +228 -7
- package/dist/index292.js +3 -67
- package/dist/index293.js +11 -53
- package/dist/index294.js +8 -0
- package/dist/index295.js +16 -3
- package/dist/index296.js +2 -2
- package/dist/index298.js +1 -1
- package/dist/index299.js +280 -17
- package/dist/{index29.js → index30.js} +6 -6
- package/dist/index300.js +2 -4
- package/dist/index301.js +16 -5
- package/dist/index302.js +2 -3
- package/dist/index303.js +15 -27
- package/dist/index304.js +2 -3
- package/dist/index305.js +27 -2
- package/dist/index306.js +2 -280
- package/dist/index307.js +2 -2
- package/dist/index308.js +2 -16
- package/dist/index309.js +2 -2
- package/dist/index310.js +2 -16
- package/dist/index311.js +28 -2
- package/dist/index312.js +2 -27
- package/dist/index313.js +3 -2
- package/dist/index315.js +4 -2
- package/dist/index316.js +17 -2
- package/dist/index317.js +3 -2
- package/dist/index318.js +3 -2
- package/dist/index319.js +125 -2
- package/dist/{index31.js → index32.js} +2 -2
- package/dist/index320.js +2 -5
- package/dist/index321.js +15 -3
- package/dist/index322.js +2 -125
- package/dist/index323.js +19 -2
- package/dist/index324.js +2 -15
- package/dist/index325.js +3 -2
- package/dist/index326.js +3 -19
- package/dist/index327.js +5 -2
- package/dist/index328.js +2 -719
- package/dist/index329.js +4 -366
- package/dist/index330.js +5 -57
- package/dist/index331.js +6 -2
- package/dist/index332.js +2 -58
- package/dist/index333.js +33 -33
- package/dist/index334.js +57 -227
- package/dist/index335.js +719 -6
- package/dist/index336.js +366 -35
- package/dist/index337.js +57 -6
- package/dist/index338.js +6 -128
- package/dist/index339.js +16 -395
- package/dist/{index33.js → index34.js} +9 -9
- package/dist/index340.js +7 -45
- package/dist/index341.js +14 -3
- package/dist/index342.js +5 -7
- package/dist/index343.js +5 -17
- package/dist/index344.js +34 -8
- package/dist/index345.js +6 -15
- package/dist/index346.js +129 -5
- package/dist/index347.js +397 -6
- package/dist/index351.js +221 -86
- package/dist/index352.js +21 -133
- package/dist/index354.js +133 -21
- package/dist/index355.js +49 -0
- package/dist/index356.js +87 -435
- package/dist/index357.js +427 -114
- package/dist/index358.js +126 -48
- package/dist/{index353.js → index359.js} +1 -1
- package/dist/{index35.js → index36.js} +5 -5
- package/dist/index360.js +52 -0
- package/dist/{index37.js → index38.js} +24 -24
- package/dist/{index39.js → index40.js} +8 -8
- package/dist/{index41.js → index42.js} +2 -2
- package/dist/{index43.js → index44.js} +9 -9
- package/dist/{index45.js → index46.js} +9 -9
- package/dist/{index47.js → index48.js} +4 -4
- package/dist/{index49.js → index50.js} +4 -4
- package/dist/{index51.js → index52.js} +2 -2
- package/dist/{index53.js → index54.js} +3 -3
- package/dist/{index55.js → index56.js} +2 -2
- package/dist/{index57.js → index58.js} +2 -2
- package/dist/{index59.js → index60.js} +1 -1
- package/dist/{index61.js → index62.js} +9 -9
- package/dist/{index63.js → index64.js} +2 -2
- package/dist/{index65.js → index66.js} +2 -2
- package/dist/{index67.js → index68.js} +1 -1
- package/dist/index7.js +2 -2
- package/dist/{index71.js → index72.js} +2 -2
- package/dist/{index73.js → index74.js} +3 -3
- package/dist/index76.js +17 -123
- package/dist/index77.js +127 -0
- package/dist/{index78.js → index79.js} +1 -1
- package/dist/{index80.js → index81.js} +10 -10
- package/dist/{index82.js → index83.js} +5 -5
- package/dist/{index84.js → index85.js} +3 -3
- package/dist/{index86.js → index87.js} +3 -3
- package/dist/index89.js +37 -125
- package/dist/index9.js +1 -1
- package/dist/index90.js +134 -0
- package/dist/{index91.js → index92.js} +4 -4
- package/dist/{index93.js → index94.js} +4 -4
- package/dist/{index95.js → index96.js} +7 -7
- package/dist/{index97.js → index98.js} +2 -2
- package/dist/utilities/functions/merge.d.ts +11 -1
- package/package.json +11 -3
- package/dist/index107.js +0 -144
- package/dist/index120.js +0 -301
- package/dist/index138.js +0 -15
- package/dist/index214.js +0 -4
- package/dist/index243.js +0 -18
- package/dist/index245.js +0 -137
- package/dist/index265.js +0 -34
- package/dist/index276.js +0 -5
- package/dist/index278.js +0 -6
- package/dist/index286.js +0 -13
- package/dist/index75.js +0 -21
- package/dist/index88.js +0 -46
- /package/dist/{index105.js → index106.js} +0 -0
- /package/dist/{index112.js → index113.js} +0 -0
- /package/dist/{index69.js → index70.js} +0 -0
package/dist/index120.js
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, ref as n, computed as _, watch as b, nextTick as G, onMounted as Q, createElementBlock as y, openBlock as c, normalizeClass as $, unref as Z, createElementVNode as h, renderSlot as v, normalizeProps as E, guardReactiveProps as W, normalizeStyle as ee, Fragment as F, renderList as z, createVNode as te, withCtx as q, toDisplayString as le, createBlock as N, resolveDynamicComponent as ae, Transition as ie, createCommentVNode as se } from "vue";
|
|
2
|
-
import { useId as oe } from "./index8.js";
|
|
3
|
-
import { useRoute as ne } from "./index146.js";
|
|
4
|
-
import { useRouter as re } from "./index147.js";
|
|
5
|
-
import { wait as ue } from "./index140.js";
|
|
6
|
-
import { useScroll as de, useResizeObserver as ce } from "./index141.js";
|
|
7
|
-
import fe from "./index13.js";
|
|
8
|
-
/* empty css */
|
|
9
|
-
import be from "./index112.js";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import { useFrameworkDetection as he } from "./index234.js";
|
|
12
|
-
const me = ["id"], ye = { class: "bb-tab__label-boundary" }, ve = { class: "bb-tab__label" }, pe = { class: "bb-tab__panes-container" }, ke = ["id", "aria-labelledby"], Re = /* @__PURE__ */ j({
|
|
13
|
-
__name: "BbTab",
|
|
14
|
-
props: {
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
eager: { type: Boolean },
|
|
17
|
-
id: {},
|
|
18
|
-
animateX: { type: Boolean, default: !0 },
|
|
19
|
-
animateY: { type: Boolean, default: !0 },
|
|
20
|
-
direction: { default: "horizontal" },
|
|
21
|
-
items: {},
|
|
22
|
-
modelValue: {},
|
|
23
|
-
navigation: { type: Boolean },
|
|
24
|
-
querykey: { default: "tab" },
|
|
25
|
-
replace: { type: Boolean }
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:modelValue"],
|
|
28
|
-
setup(A, { expose: H, emit: U }) {
|
|
29
|
-
const t = A, K = U, d = ne(), O = re(), X = n(), S = t.id ?? oe().id.value, p = `bb-tab_${S}`, o = n(), { isScrolling: Y, arrivedState: T } = de(o), x = _(() => ({
|
|
30
|
-
isScrolling: Y.value,
|
|
31
|
-
left: T.left,
|
|
32
|
-
right: T.right
|
|
33
|
-
})), { isInertia: L } = he(), i = n(null), r = _(
|
|
34
|
-
() => t.items.findIndex((e) => e.key === i.value)
|
|
35
|
-
), k = _(() => r.value === 0), g = _(() => r.value === t.items.length - 1);
|
|
36
|
-
t.items.forEach((e) => {
|
|
37
|
-
if (!e.key)
|
|
38
|
-
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
|
39
|
-
});
|
|
40
|
-
const I = () => {
|
|
41
|
-
if (t.navigation && d.value?.query?.[t.querykey])
|
|
42
|
-
i.value = d.value?.query?.[t.querykey];
|
|
43
|
-
else if (t.navigation && L && globalThis?.location?.href && new URL(globalThis.location.href).searchParams.get(t.querykey))
|
|
44
|
-
i.value = new URL(globalThis.location.href).searchParams.get(
|
|
45
|
-
t.querykey
|
|
46
|
-
);
|
|
47
|
-
else if (t.modelValue)
|
|
48
|
-
i.value = t.modelValue;
|
|
49
|
-
else if (t.items[0]) {
|
|
50
|
-
const e = t.items.find((l) => !l.disabled);
|
|
51
|
-
if (!e)
|
|
52
|
-
throw new Error(
|
|
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."
|
|
54
|
-
);
|
|
55
|
-
const a = e.key;
|
|
56
|
-
i.value = a;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
I();
|
|
60
|
-
const m = async (e, a = !1) => {
|
|
61
|
-
if (t.navigation && d.value && d.value?.query?.[t.querykey] !== e)
|
|
62
|
-
O?.push({
|
|
63
|
-
...d,
|
|
64
|
-
query: { ...d.value?.query, [t.querykey]: e },
|
|
65
|
-
replace: a
|
|
66
|
-
});
|
|
67
|
-
else if (t.navigation && L && globalThis?.location?.href && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
|
|
68
|
-
const l = new URL(globalThis.location.href);
|
|
69
|
-
l.searchParams.set(t.querykey, e), ue(0).then(() => {
|
|
70
|
-
a ? history.replaceState({}, "", l.toString()) : history.pushState({}, "", l.toString());
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
t.modelValue !== e && K("update:modelValue", e), i.value = e;
|
|
74
|
-
};
|
|
75
|
-
i.value && m(i.value, !0);
|
|
76
|
-
const u = (e) => {
|
|
77
|
-
var a = null;
|
|
78
|
-
switch (e) {
|
|
79
|
-
case "first":
|
|
80
|
-
for (a = 0; a < t.items.length - 1 && t.items[a].disabled; )
|
|
81
|
-
a++;
|
|
82
|
-
break;
|
|
83
|
-
case "previous": {
|
|
84
|
-
let s = 1;
|
|
85
|
-
for (; s < t.items.length && (a = (r.value + t.items.length - s) % t.items.length, t.items[a].disabled); )
|
|
86
|
-
s++;
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
case "next": {
|
|
90
|
-
let s = 1;
|
|
91
|
-
for (; s < t.items.length && (a = (r.value + s) % t.items.length, t.items[a].disabled); )
|
|
92
|
-
s++;
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
case "last":
|
|
96
|
-
for (a = t.items.length - 1; a >= 0 && t.items[a].disabled; )
|
|
97
|
-
a--;
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
if (a === null)
|
|
101
|
-
throw new Error("Could not navigate to next tab");
|
|
102
|
-
if (t.items[a].disabled) return;
|
|
103
|
-
const l = t.items[a].key;
|
|
104
|
-
document.querySelector(
|
|
105
|
-
`#${p}_tab_${l}`
|
|
106
|
-
)?.focus(), m(l, t.replace);
|
|
107
|
-
}, J = (e) => {
|
|
108
|
-
if (!t.disabled)
|
|
109
|
-
if (e.key === "ArrowRight")
|
|
110
|
-
u("next");
|
|
111
|
-
else if (e.key === "ArrowLeft")
|
|
112
|
-
u("previous");
|
|
113
|
-
else if (e.key === "Home")
|
|
114
|
-
e.preventDefault(), u("first");
|
|
115
|
-
else if (e.key === "End")
|
|
116
|
-
e.preventDefault(), u("last");
|
|
117
|
-
else
|
|
118
|
-
return;
|
|
119
|
-
};
|
|
120
|
-
b(
|
|
121
|
-
() => t.modelValue,
|
|
122
|
-
(e) => {
|
|
123
|
-
e && m(e, t.replace);
|
|
124
|
-
}
|
|
125
|
-
), b(
|
|
126
|
-
() => d.value?.query?.[t.querykey],
|
|
127
|
-
(e) => {
|
|
128
|
-
e && typeof e == "string" && m(e, t.replace);
|
|
129
|
-
}
|
|
130
|
-
), b(
|
|
131
|
-
i,
|
|
132
|
-
async () => {
|
|
133
|
-
if (!o.value) return;
|
|
134
|
-
const e = o.value.querySelector(
|
|
135
|
-
".bb-tab__btn--active"
|
|
136
|
-
);
|
|
137
|
-
if (!e) return;
|
|
138
|
-
await G();
|
|
139
|
-
const a = o.value, l = e.offsetLeft, f = l + e.offsetWidth, s = a.scrollLeft, M = s + a.clientWidth;
|
|
140
|
-
l < s ? a.scrollTo({ left: l, behavior: "smooth" }) : f > M && a.scrollTo({
|
|
141
|
-
left: f - a.clientWidth,
|
|
142
|
-
behavior: "smooth"
|
|
143
|
-
});
|
|
144
|
-
},
|
|
145
|
-
{ flush: "post" }
|
|
146
|
-
);
|
|
147
|
-
const B = n("right");
|
|
148
|
-
b(
|
|
149
|
-
i,
|
|
150
|
-
(e, a) => {
|
|
151
|
-
if (e && a) {
|
|
152
|
-
const l = t.items.findIndex((s) => s.key === e), f = t.items.findIndex((s) => s.key === a);
|
|
153
|
-
B.value = l > f ? "right" : "left";
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{ flush: "sync" }
|
|
157
|
-
);
|
|
158
|
-
const R = n(0), V = n(0), C = n(0), P = n(0), D = n(0), w = () => {
|
|
159
|
-
if (!o.value)
|
|
160
|
-
return;
|
|
161
|
-
const e = o.value.querySelector(
|
|
162
|
-
".bb-tab__btn--active"
|
|
163
|
-
);
|
|
164
|
-
e && (C.value = e.offsetLeft, P.value = e.offsetTop, R.value = e.clientWidth, V.value = e.clientHeight, D.value = o.value.scrollWidth);
|
|
165
|
-
};
|
|
166
|
-
return Q(w), b(i, w, { flush: "post" }), ce(o, () => {
|
|
167
|
-
w();
|
|
168
|
-
}), b(
|
|
169
|
-
() => t.items,
|
|
170
|
-
() => {
|
|
171
|
-
i.value && !t.items.find((e) => e.key === i.value) && I();
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
immediate: !0,
|
|
175
|
-
deep: !0
|
|
176
|
-
}
|
|
177
|
-
), H({
|
|
178
|
-
isFirst: k,
|
|
179
|
-
isLast: g,
|
|
180
|
-
current: i,
|
|
181
|
-
currentIndex: r,
|
|
182
|
-
goTo: u
|
|
183
|
-
}), (e, a) => (c(), y("div", {
|
|
184
|
-
id: Z(S),
|
|
185
|
-
ref_key: "tabs",
|
|
186
|
-
ref: X,
|
|
187
|
-
class: $(["bb-tab", {
|
|
188
|
-
[`bb-tab--${e.direction}`]: !0,
|
|
189
|
-
"bb-tab--disabled": e.disabled
|
|
190
|
-
}])
|
|
191
|
-
}, [
|
|
192
|
-
h("div", ye, [
|
|
193
|
-
h("span", null, [
|
|
194
|
-
v(e.$slots, "header:prepend", E(W(x.value)))
|
|
195
|
-
]),
|
|
196
|
-
h("ul", {
|
|
197
|
-
ref_key: "tablist",
|
|
198
|
-
ref: o,
|
|
199
|
-
class: "bb-tab__label-container",
|
|
200
|
-
role: "tablist",
|
|
201
|
-
style: ee({
|
|
202
|
-
"--inner-width": `${D.value}px`,
|
|
203
|
-
"--width": `${R.value}px`,
|
|
204
|
-
"--height": `${V.value}px`,
|
|
205
|
-
"--left": `${C.value}px`,
|
|
206
|
-
"--top": `${P.value}px`
|
|
207
|
-
})
|
|
208
|
-
}, [
|
|
209
|
-
(c(!0), y(F, null, z(e.items, (l) => (c(), y("li", {
|
|
210
|
-
key: l.key,
|
|
211
|
-
role: "presentation"
|
|
212
|
-
}, [
|
|
213
|
-
te(fe, {
|
|
214
|
-
id: `${p}_tab_${l.key}`,
|
|
215
|
-
"aria-selected": i.value === l.key,
|
|
216
|
-
class: $(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
|
|
217
|
-
disabled: l.disabled || e.disabled,
|
|
218
|
-
role: "tab",
|
|
219
|
-
tabindex: i.value === l.key ? 0 : -1,
|
|
220
|
-
onClick: (f) => m(l.key, t.replace),
|
|
221
|
-
onKeydown: J
|
|
222
|
-
}, {
|
|
223
|
-
default: q(() => [
|
|
224
|
-
v(e.$slots, `label-${l.key}`, {
|
|
225
|
-
current: i.value,
|
|
226
|
-
currentIndex: r.value,
|
|
227
|
-
disabled: !!(l.disabled || e.disabled),
|
|
228
|
-
goTo: u,
|
|
229
|
-
isFirst: k.value,
|
|
230
|
-
isLast: g.value,
|
|
231
|
-
selected: i.value === l.key,
|
|
232
|
-
text: l.label,
|
|
233
|
-
value: l.key
|
|
234
|
-
}, () => [
|
|
235
|
-
v(e.$slots, "label", {
|
|
236
|
-
current: i.value,
|
|
237
|
-
currentIndex: r.value,
|
|
238
|
-
disabled: !!(l.disabled || e.disabled),
|
|
239
|
-
goTo: u,
|
|
240
|
-
isFirst: k.value,
|
|
241
|
-
isLast: g.value,
|
|
242
|
-
selected: i.value === l.key,
|
|
243
|
-
text: l.label,
|
|
244
|
-
value: l.key
|
|
245
|
-
}, () => [
|
|
246
|
-
h("span", ve, le(l.label), 1)
|
|
247
|
-
])
|
|
248
|
-
])
|
|
249
|
-
]),
|
|
250
|
-
_: 2
|
|
251
|
-
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
|
|
252
|
-
]))), 128))
|
|
253
|
-
], 4),
|
|
254
|
-
h("span", null, [
|
|
255
|
-
v(e.$slots, "header:append", E(W(x.value)))
|
|
256
|
-
])
|
|
257
|
-
]),
|
|
258
|
-
h("div", pe, [
|
|
259
|
-
(c(), N(ae(t.animateY ? be : "div"), null, {
|
|
260
|
-
default: q(() => [
|
|
261
|
-
(c(!0), y(F, null, z(e.items, (l) => (c(), N(ie, {
|
|
262
|
-
key: l.key,
|
|
263
|
-
css: t.animateX,
|
|
264
|
-
name: `tab-slide-${B.value}`
|
|
265
|
-
}, {
|
|
266
|
-
default: q(() => [
|
|
267
|
-
i.value === l.key || e.eager || l.eager ? (c(), y("section", {
|
|
268
|
-
key: 0,
|
|
269
|
-
id: `${p}_tabpanel_${l.key}`,
|
|
270
|
-
"aria-labelledby": `${p}_tab_${l.key}`,
|
|
271
|
-
class: $(["bb-tab__pane", {
|
|
272
|
-
"bb-tab__pane--shown": i.value === l.key
|
|
273
|
-
}]),
|
|
274
|
-
role: "tabpanel",
|
|
275
|
-
tabindex: "0"
|
|
276
|
-
}, [
|
|
277
|
-
v(e.$slots, l.key, {
|
|
278
|
-
current: i.value,
|
|
279
|
-
currentIndex: r.value,
|
|
280
|
-
disabled: !!(l.disabled || e.disabled),
|
|
281
|
-
goTo: u,
|
|
282
|
-
isFirst: k.value,
|
|
283
|
-
isLast: g.value,
|
|
284
|
-
selected: i.value === l.key,
|
|
285
|
-
text: l.label,
|
|
286
|
-
value: l.key
|
|
287
|
-
})
|
|
288
|
-
], 10, ke)) : se("", !0)
|
|
289
|
-
]),
|
|
290
|
-
_: 2
|
|
291
|
-
}, 1032, ["css", "name"]))), 128))
|
|
292
|
-
]),
|
|
293
|
-
_: 3
|
|
294
|
-
}))
|
|
295
|
-
])
|
|
296
|
-
], 10, me));
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
export {
|
|
300
|
-
Re as default
|
|
301
|
-
};
|
package/dist/index138.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import r from "./index213.js";
|
|
4
|
-
const s = {}, c = { class: "bb-common-input-outer-container" };
|
|
5
|
-
function p(o, a) {
|
|
6
|
-
return n(), t("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]]);
|
|
13
|
-
export {
|
|
14
|
-
i as default
|
|
15
|
-
};
|
package/dist/index214.js
DELETED
package/dist/index243.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { isNotNil as n } from "./index144.js";
|
|
2
|
-
import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
|
|
3
|
-
const h = ({
|
|
4
|
-
fn: i,
|
|
5
|
-
onStart: s,
|
|
6
|
-
multiple: f,
|
|
7
|
-
currentValue: o
|
|
8
|
-
}) => {
|
|
9
|
-
const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
|
|
10
|
-
e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
|
|
11
|
-
};
|
|
12
|
-
return a && (u(r), c(async () => {
|
|
13
|
-
l.value || await r();
|
|
14
|
-
})), { isPrefilling: e, hasPrefilled: l, prefill: r };
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
h as usePrefill
|
|
18
|
-
};
|
package/dist/index245.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, mergeModels as L, useModel as T, ref as c, computed as a, watch as F, onMounted as S, createBlock as N, openBlock as w, resolveDynamicComponent as U, mergeProps as g, unref as y, withModifiers as h, withCtx as j, createElementVNode as q, createElementBlock as I, createCommentVNode as R, renderSlot as X, nextTick as z } from "vue";
|
|
2
|
-
import { useCancelableFunction as G } from "./index336.js";
|
|
3
|
-
import { useUntil as H } from "./index232.js";
|
|
4
|
-
import { extractDomContainer as x } from "./index255.js";
|
|
5
|
-
import { waitFor as J } from "./index337.js";
|
|
6
|
-
import { arrow as K, useFloating as O } from "./index338.js";
|
|
7
|
-
import { flip as Q, offset as W, shift as Y, hide as Z, autoUpdate as ee } from "./index339.js";
|
|
8
|
-
const oe = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "bb-common-popover__bubble"
|
|
11
|
-
}, ue = /* @__PURE__ */ A({
|
|
12
|
-
__name: "CommonPopover",
|
|
13
|
-
props: /* @__PURE__ */ L({
|
|
14
|
-
arrowPadding: {},
|
|
15
|
-
eager: { type: Boolean },
|
|
16
|
-
offset: {},
|
|
17
|
-
padding: { default: 0 },
|
|
18
|
-
placement: {},
|
|
19
|
-
transitionDuration: { default: 250 },
|
|
20
|
-
anchor: {},
|
|
21
|
-
boundary: {},
|
|
22
|
-
dialog: { type: Boolean },
|
|
23
|
-
hideArrow: { type: Boolean },
|
|
24
|
-
tag: { default: "span" },
|
|
25
|
-
flip: { type: Boolean, default: !0 }
|
|
26
|
-
}, {
|
|
27
|
-
modelValue: { type: Boolean, default: !1 },
|
|
28
|
-
modelModifiers: {}
|
|
29
|
-
}),
|
|
30
|
-
emits: ["update:modelValue"],
|
|
31
|
-
setup(m) {
|
|
32
|
-
const o = m, r = T(m, "modelValue"), s = c(r.value), C = a(() => o.dialog ? "dialog" : "span"), t = c(), f = c(), _ = a(() => {
|
|
33
|
-
const e = o.anchor;
|
|
34
|
-
return e && typeof e == "object" && "getBoundingClientRect" in e && !(e instanceof Element) ? e : x(e);
|
|
35
|
-
}), B = H(r, { initialValue: o.eager }), P = a(() => {
|
|
36
|
-
if (o.boundary)
|
|
37
|
-
return typeof o.boundary == "string" ? document.querySelector(o.boundary) ?? void 0 : x(o.boundary) ?? void 0;
|
|
38
|
-
}), k = a(() => {
|
|
39
|
-
const e = P.value;
|
|
40
|
-
return [
|
|
41
|
-
...o.flip ? [Q(e ? { boundary: e } : void 0)] : [],
|
|
42
|
-
W(o.offset),
|
|
43
|
-
Y({ padding: o.padding, ...e ? { boundary: e } : {} }),
|
|
44
|
-
Z(),
|
|
45
|
-
...o.hideArrow ? [] : [
|
|
46
|
-
K({
|
|
47
|
-
element: f,
|
|
48
|
-
padding: o.arrowPadding
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
];
|
|
52
|
-
}), { floatingStyles: E, placement: M, middlewareData: u, update: v } = O(
|
|
53
|
-
_,
|
|
54
|
-
t,
|
|
55
|
-
{
|
|
56
|
-
placement: o.placement,
|
|
57
|
-
whileElementsMounted: ee,
|
|
58
|
-
middleware: k,
|
|
59
|
-
strategy: "fixed"
|
|
60
|
-
}
|
|
61
|
-
), { execute: b } = G(
|
|
62
|
-
({ signal: e }, n) => new Promise((l) => {
|
|
63
|
-
let i;
|
|
64
|
-
const p = () => {
|
|
65
|
-
i && clearTimeout(i);
|
|
66
|
-
};
|
|
67
|
-
e.addEventListener("abort", p), n ? ($(), v(), J(() => !!t.value).then(() => {
|
|
68
|
-
s.value = !0, e.removeEventListener("abort", p), l(void 0);
|
|
69
|
-
})) : (s.value = !1, i = setTimeout(() => {
|
|
70
|
-
z(() => {
|
|
71
|
-
t.value && (o.dialog ? t.value.close() : t.value.hidePopover()), e.removeEventListener("abort", p), v(), l(void 0);
|
|
72
|
-
});
|
|
73
|
-
}, o.transitionDuration));
|
|
74
|
-
})
|
|
75
|
-
), $ = () => {
|
|
76
|
-
if (!t.value) return;
|
|
77
|
-
if (!o.dialog) return t.value.showPopover();
|
|
78
|
-
t.value.showModal();
|
|
79
|
-
};
|
|
80
|
-
F(r, b), S(() => {
|
|
81
|
-
r.value && b(r.value);
|
|
82
|
-
});
|
|
83
|
-
const D = a(() => {
|
|
84
|
-
const e = r.value ? void 0 : -1, n = Math.round(u.value.arrow?.x ?? 0), l = o.dialog ? void 0 : "manual";
|
|
85
|
-
return {
|
|
86
|
-
style: {
|
|
87
|
-
...E.value,
|
|
88
|
-
"--transition-duration": `${o.transitionDuration}ms`,
|
|
89
|
-
"--page-padding": `${o.padding}px`,
|
|
90
|
-
"--arrow-offset-x": `${n}px`
|
|
91
|
-
},
|
|
92
|
-
popover: l,
|
|
93
|
-
tabindex: e
|
|
94
|
-
};
|
|
95
|
-
}), V = a(() => {
|
|
96
|
-
if (u.value.arrow) {
|
|
97
|
-
const { x: e, y: n } = u.value.arrow;
|
|
98
|
-
return {
|
|
99
|
-
style: {
|
|
100
|
-
left: `${e}px`,
|
|
101
|
-
top: `${n}px`
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
}), d = () => {
|
|
106
|
-
r.value = !1;
|
|
107
|
-
};
|
|
108
|
-
return (e, n) => (w(), N(U(C.value), g({
|
|
109
|
-
ref_key: "wrapper",
|
|
110
|
-
ref: t,
|
|
111
|
-
class: ["bb-common-popover", {
|
|
112
|
-
"bb-common-popover--open": s.value,
|
|
113
|
-
"bb-common-popover--no-arrow": e.hideArrow,
|
|
114
|
-
[`bb-common-popover--${y(M)}`]: !0
|
|
115
|
-
}]
|
|
116
|
-
}, D.value, {
|
|
117
|
-
onClick: h(d, ["self", "stop"]),
|
|
118
|
-
onContextmenu: h(d, ["self", "stop", "prevent"]),
|
|
119
|
-
onClose: d
|
|
120
|
-
}), {
|
|
121
|
-
default: j(() => [
|
|
122
|
-
q("span", g({
|
|
123
|
-
ref_key: "bubblearrow",
|
|
124
|
-
ref: f,
|
|
125
|
-
class: "bb-common-popover__arrow"
|
|
126
|
-
}, V.value), null, 16),
|
|
127
|
-
y(B) ? (w(), I("span", oe, [
|
|
128
|
-
X(e.$slots, "default")
|
|
129
|
-
])) : R("", !0)
|
|
130
|
-
]),
|
|
131
|
-
_: 3
|
|
132
|
-
}, 16, ["class"]));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
export {
|
|
136
|
-
ue as default
|
|
137
|
-
};
|
package/dist/index265.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, createBlock as l, openBlock as m, Transition as u, withCtx as f, renderSlot as d } from "vue";
|
|
2
|
-
const y = /* @__PURE__ */ c({
|
|
3
|
-
__name: "ScaleFade",
|
|
4
|
-
props: {
|
|
5
|
-
duration: { default: 200 },
|
|
6
|
-
scaleFrom: { default: 0.97 }
|
|
7
|
-
},
|
|
8
|
-
setup(n) {
|
|
9
|
-
const t = n, a = (s) => {
|
|
10
|
-
const e = s;
|
|
11
|
-
e.style.opacity = "0", e.style.transform = `scale(${t.scaleFrom})`, e.style.transformOrigin = "center top";
|
|
12
|
-
}, r = (s, e) => {
|
|
13
|
-
const o = s;
|
|
14
|
-
o.style.transition = `opacity ${t.duration}ms ease-out, transform ${t.duration}ms cubic-bezier(0.34, 1.56, 0.64, 1)`, o.offsetHeight, o.style.opacity = "1", o.style.transform = "scale(1)", setTimeout(e, t.duration);
|
|
15
|
-
}, i = (s, e) => {
|
|
16
|
-
const o = s;
|
|
17
|
-
o.style.transition = `opacity ${t.duration}ms ease-in, transform ${t.duration}ms ease-in`, o.style.opacity = "0", o.style.transform = `scale(${t.scaleFrom})`, setTimeout(e, t.duration);
|
|
18
|
-
};
|
|
19
|
-
return (s, e) => (m(), l(u, {
|
|
20
|
-
css: !1,
|
|
21
|
-
onBeforeEnter: a,
|
|
22
|
-
onEnter: r,
|
|
23
|
-
onLeave: i
|
|
24
|
-
}, {
|
|
25
|
-
default: f(() => [
|
|
26
|
-
d(s.$slots, "default")
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
y as default
|
|
34
|
-
};
|
package/dist/index276.js
DELETED
package/dist/index278.js
DELETED
package/dist/index286.js
DELETED
package/dist/index75.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, createBlock as s, createCommentVNode as c, unref as a, openBlock as f, Teleport as m, renderSlot as p } from "vue";
|
|
2
|
-
import { confirmState as l, processMessage as e } from "./index6.js";
|
|
3
|
-
const b = /* @__PURE__ */ n({
|
|
4
|
-
__name: "BbConfirmPortal",
|
|
5
|
-
setup(u) {
|
|
6
|
-
const o = () => e(!0), r = () => e(!1);
|
|
7
|
-
return (t, _) => a(l).current ? (f(), s(m, {
|
|
8
|
-
key: 0,
|
|
9
|
-
to: ".bb-confirm__teleport",
|
|
10
|
-
defer: ""
|
|
11
|
-
}, [
|
|
12
|
-
p(t.$slots, "default", {
|
|
13
|
-
yes: o,
|
|
14
|
-
no: r
|
|
15
|
-
})
|
|
16
|
-
])) : c("", !0);
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
b as default
|
|
21
|
-
};
|
package/dist/index88.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
|
2
|
-
import { throttle as c } from "./index276.js";
|
|
3
|
-
const M = /* @__PURE__ */ h({
|
|
4
|
-
__name: "BbIntersection",
|
|
5
|
-
props: {
|
|
6
|
-
debounceTime: { default: 0 },
|
|
7
|
-
options: { default: () => ({
|
|
8
|
-
root: null,
|
|
9
|
-
threshold: [0, 0.2, 0.4, 0.6, 0.8, 1]
|
|
10
|
-
}) },
|
|
11
|
-
tag: { default: "div" }
|
|
12
|
-
},
|
|
13
|
-
emits: ["shown", "hidden", "intersected"],
|
|
14
|
-
setup(u, { emit: d }) {
|
|
15
|
-
const r = u, i = d, n = t(null), l = t(null), o = t(!1), s = t(!0), a = t(0);
|
|
16
|
-
m(() => {
|
|
17
|
-
n.value = new IntersectionObserver((e) => {
|
|
18
|
-
f(e[0]);
|
|
19
|
-
}, r.options), l.value && n.value.observe(l.value);
|
|
20
|
-
}), p(() => {
|
|
21
|
-
n.value && n.value.disconnect();
|
|
22
|
-
});
|
|
23
|
-
const f = c((e) => {
|
|
24
|
-
e.isIntersecting ? (a.value = Math.trunc(e.intersectionRatio * 100), e.intersectionRatio === 1 ? (o.value = !0, s.value = !1, i("shown")) : (o.value = !1, s.value = !1, v(Math.trunc(e.intersectionRatio * 100)))) : (o.value = !1, s.value = !0, i("hidden"));
|
|
25
|
-
}), v = c((e) => {
|
|
26
|
-
i("intersected", e);
|
|
27
|
-
}, r.debounceTime);
|
|
28
|
-
return (e, B) => (b(), g(w(e.tag), {
|
|
29
|
-
ref_key: "infinitescrolltrigger",
|
|
30
|
-
ref: l,
|
|
31
|
-
class: "bb-intersection"
|
|
32
|
-
}, {
|
|
33
|
-
default: _(() => [
|
|
34
|
-
I(e.$slots, "default", {
|
|
35
|
-
hidden: s.value,
|
|
36
|
-
percentage: a.value,
|
|
37
|
-
shown: o.value
|
|
38
|
-
})
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
}, 512));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
M as default
|
|
46
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|