bitboss-ui 2.0.168 → 2.0.170
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/BbDropdown/BbDropdown.vue.d.ts +10 -10
- package/dist/components/BbPopover/BbPopover.vue.d.ts +10 -10
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +8 -8
- package/dist/components/CommonPopover.vue.d.ts +6 -6
- package/dist/index106.js +7 -7
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +37 -37
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +5 -66
- package/dist/index21.js +16 -16
- package/dist/index210.js +7 -0
- package/dist/index211.js +5 -13
- package/dist/index212.js +5 -177
- package/dist/index213.js +5 -2
- package/dist/index214.js +5 -4
- package/dist/index215.js +5 -2
- package/dist/index216.js +3 -41
- package/dist/index217.js +2 -6
- package/dist/index218.js +8 -7
- package/dist/index219.js +246 -11
- package/dist/index220.js +51 -12
- package/dist/index221.js +44 -4
- package/dist/index222.js +5 -20
- package/dist/index223.js +56 -90
- package/dist/index224.js +15 -0
- package/dist/index225.js +2 -200
- package/dist/index226.js +6 -0
- package/dist/index227.js +2 -86
- package/dist/index228.js +36 -0
- package/dist/index229.js +2 -29
- package/dist/index23.js +17 -17
- package/dist/index230.js +2 -17
- package/dist/index231.js +86 -51
- package/dist/index233.js +29 -3
- package/dist/index234.js +16 -11
- package/dist/index235.js +48 -13
- package/dist/index236.js +15 -2
- package/dist/index237.js +11 -17
- package/dist/index238.js +15 -127
- package/dist/index239.js +3 -106
- package/dist/index240.js +6 -0
- package/dist/index241.js +41 -100
- package/dist/index242.js +22 -0
- package/dist/index243.js +94 -12
- package/dist/index245.js +191 -219
- package/dist/index247.js +63 -31
- package/dist/index249.js +13 -2
- package/dist/index25.js +5 -5
- package/dist/index250.js +6 -2
- package/dist/index251.js +7 -5
- package/dist/index252.js +15 -5
- package/dist/index253.js +18 -5
- package/dist/index254.js +128 -5
- package/dist/index255.js +106 -5
- package/dist/index257.js +100 -9
- package/dist/index259.js +12 -5
- package/dist/index260.js +2 -5
- package/dist/index261.js +226 -6
- package/dist/index262.js +365 -247
- package/dist/index263.js +2 -52
- package/dist/index264.js +5 -44
- package/dist/index265.js +9 -5
- package/dist/index266.js +176 -59
- package/dist/index267.js +8 -9
- package/dist/index268.js +10 -2
- package/dist/index269.js +100 -8
- package/dist/index27.js +1 -1
- package/dist/index271.js +23 -101
- package/dist/index272.js +12 -0
- package/dist/index273.js +3 -23
- package/dist/index274.js +6 -3
- package/dist/index275.js +16 -6
- package/dist/index276.js +3 -16
- package/dist/index277.js +1 -1
- package/dist/index280.js +1 -1
- package/dist/index282.js +1 -1
- package/dist/index283.js +1 -1
- package/dist/index284.js +280 -4
- package/dist/index285.js +2 -3
- package/dist/index286.js +18 -0
- package/dist/index287.js +2 -7
- package/dist/index288.js +15 -3
- package/dist/index289.js +2 -471
- package/dist/index29.js +3 -3
- package/dist/index290.js +19 -2
- package/dist/index291.js +2 -7
- package/dist/index292.js +14 -10
- package/dist/index293.js +2 -3
- package/dist/index294.js +19 -3
- package/dist/index295.js +2 -3
- package/dist/index296.js +27 -17
- package/dist/index297.js +2 -28
- package/dist/index298.js +1 -1
- package/dist/index299.js +2 -200
- package/dist/index300.js +2 -129
- package/dist/index301.js +2 -3
- package/dist/index302.js +28 -3
- package/dist/index303.js +21 -1
- package/dist/index305.js +6 -125
- package/dist/index306.js +7 -280
- package/dist/index307.js +11 -2
- package/dist/index308.js +4 -125
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -15
- package/dist/index311.js +4 -2
- package/dist/index312.js +3 -16
- package/dist/index313.js +17 -2
- package/dist/index314.js +5 -19
- package/dist/index315.js +471 -2
- package/dist/index316.js +3 -15
- package/dist/index317.js +3 -2
- package/dist/index318.js +3 -5
- package/dist/index320.js +199 -18
- package/dist/index321.js +2 -2
- package/dist/index322.js +128 -26
- package/dist/index323.js +3 -2
- package/dist/index324.js +3 -2
- package/dist/index325.js +1 -1
- package/dist/index326.js +382 -2
- package/dist/index327.js +126 -2
- package/dist/index328.js +125 -22
- package/dist/index329.js +4 -0
- package/dist/index33.js +8 -8
- package/dist/index330.js +3 -5
- package/dist/index331.js +5 -3
- package/dist/index336.js +7 -5
- package/dist/index337.js +18 -6
- package/dist/index338.js +5 -17
- package/dist/index339.js +32 -227
- package/dist/index340.js +28 -47
- package/dist/index342.js +227 -57
- package/dist/index343.js +33 -33
- package/dist/index344.js +58 -8
- package/dist/index345.js +7 -5
- package/dist/index346.js +6 -8
- package/dist/index347.js +7 -32
- package/dist/index348.js +5 -28
- package/dist/index349.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index350.js +1 -1
- package/dist/index352.js +5 -0
- package/dist/index353.js +482 -3
- package/dist/index355.js +1 -1
- package/dist/index37.js +22 -22
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +56 -56
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +25 -25
- package/dist/index96.js +1 -1
- package/package.json +1 -1
- package/dist/index232.js +0 -17
- package/dist/index244.js +0 -4
- package/dist/index246.js +0 -370
- package/dist/index248.js +0 -4
- package/dist/index256.js +0 -7
- package/dist/index258.js +0 -5
- package/dist/index270.js +0 -13
- package/dist/index304.js +0 -384
- package/dist/index319.js +0 -8
- package/dist/index341.js +0 -9
- package/dist/index351.js +0 -484
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index225.js";
|
3
|
+
import { isNil as B } from "./index230.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index272.js";
|
11
|
+
import { noop as w } from "./index273.js";
|
12
|
+
import { useLocale as D } from "./index224.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index224.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import { defineComponent as U, computed as V,
|
2
|
-
import { findRightIndex as
|
3
|
-
import { useId as
|
4
|
-
import { useIntersectionObserver as
|
5
|
-
import { useUntil as
|
6
|
-
import { wait as
|
7
|
-
import
|
1
|
+
import { defineComponent as U, computed as V, ref as g, createBlock as L, openBlock as b, normalizeClass as R, withCtx as T, createElementBlock as D, createCommentVNode as _, unref as p, normalizeStyle as W, renderSlot as v, Fragment as F, renderList as G, createVNode as J, mergeProps as Q, createElementVNode as X, toDisplayString as Y, normalizeProps as Z, guardReactiveProps as x } from "vue";
|
2
|
+
import { findRightIndex as H } from "./index267.js";
|
3
|
+
import { useId as ee } from "./index8.js";
|
4
|
+
import { useIntersectionObserver as te } from "./index137.js";
|
5
|
+
import { useUntil as oe } from "./index268.js";
|
6
|
+
import { wait as ne } from "./index135.js";
|
7
|
+
import ae from "./index13.js";
|
8
8
|
/* empty css */
|
9
|
-
import
|
9
|
+
import A from "./index85.js";
|
10
10
|
/* empty css */
|
11
|
-
import
|
11
|
+
import le from "./index269.js";
|
12
12
|
/* empty css */
|
13
|
-
import
|
14
|
-
const
|
13
|
+
import B from "./index271.js";
|
14
|
+
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ U({
|
15
15
|
__name: "BbDropdown",
|
16
16
|
props: {
|
17
17
|
arrowPadding: { default: 10 },
|
@@ -28,42 +28,42 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
28
28
|
items: {},
|
29
29
|
width: { default: 200 }
|
30
30
|
},
|
31
|
-
setup(
|
32
|
-
const u =
|
33
|
-
let e = u.items.findIndex((o) => !o.disabled), a =
|
31
|
+
setup(O) {
|
32
|
+
const u = O, d = u.id ?? `bb_${ee().id.value}`, c = V(() => {
|
33
|
+
let e = u.items.findIndex((o) => !o.disabled), a = H(
|
34
34
|
u.items,
|
35
35
|
(o) => !o.disabled
|
36
36
|
);
|
37
37
|
return u.items.map((o, t) => {
|
38
|
-
const n = `${d}-item-${o.key}`, { onClick:
|
38
|
+
const n = `${d}-item-${o.key}`, { onClick: C, ...q } = o, z = async () => {
|
39
39
|
await f();
|
40
40
|
const s = document.querySelector(`#${d}`);
|
41
41
|
if (s) s instanceof HTMLElement && s.focus();
|
42
42
|
else return;
|
43
|
-
|
43
|
+
C && C();
|
44
44
|
}, N = (s) => {
|
45
45
|
if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
|
46
46
|
if (!i.value) return;
|
47
47
|
if (s.key === "ArrowDown") {
|
48
48
|
if (s.preventDefault(), i.value && t !== a) {
|
49
49
|
const r = i.value.querySelector(
|
50
|
-
|
50
|
+
B.map((y) => `#${n} ~ ${y}`).join(",")
|
51
51
|
);
|
52
52
|
r && r instanceof HTMLElement && r.focus();
|
53
53
|
}
|
54
54
|
} else if (s.key === "ArrowUp") {
|
55
55
|
if (s.preventDefault(), i.value && t !== e) {
|
56
|
-
const r =
|
56
|
+
const r = H(u.items, (k, h) => h < t && !k.disabled), w = Array.from(
|
57
57
|
i.value.querySelectorAll(".bb-dropdown__item")
|
58
58
|
)[r];
|
59
59
|
w && w instanceof HTMLElement && w.focus();
|
60
60
|
}
|
61
61
|
} else if (s.key === "Tab") {
|
62
62
|
if (t === a && !s.shiftKey) {
|
63
|
-
const r =
|
63
|
+
const r = B.join(","), y = Array.from(
|
64
64
|
document.querySelectorAll(r)
|
65
65
|
), w = y.findIndex(
|
66
|
-
(
|
66
|
+
(h) => h.id === d
|
67
67
|
), k = y[w + 1];
|
68
68
|
if (k) k instanceof HTMLElement && (s.preventDefault(), f(), k.focus());
|
69
69
|
else return;
|
@@ -76,37 +76,37 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
76
76
|
}
|
77
77
|
};
|
78
78
|
return {
|
79
|
-
...
|
79
|
+
...q,
|
80
80
|
original: o,
|
81
81
|
key: o.key.split(/\W+/g).join("_").toLowerCase(),
|
82
|
-
disabled:
|
82
|
+
disabled: q.disabled || u.disabled,
|
83
83
|
id: n,
|
84
84
|
onClick: z,
|
85
85
|
onKeydown: N
|
86
86
|
};
|
87
87
|
});
|
88
|
-
}), m =
|
89
|
-
|
88
|
+
}), m = g(), i = g();
|
89
|
+
te(
|
90
90
|
m,
|
91
91
|
([{ intersectionRatio: e }]) => {
|
92
92
|
e !== 1 && l.value && f();
|
93
93
|
},
|
94
94
|
{ threshold: [0, 1] }
|
95
95
|
);
|
96
|
-
const l =
|
97
|
-
l.value ? f() :
|
96
|
+
const l = g(!1), E = oe(l), K = () => {
|
97
|
+
l.value ? f() : $();
|
98
98
|
}, P = async (e) => {
|
99
|
-
let a = u.items.findIndex((t) => !t.disabled), o =
|
99
|
+
let a = u.items.findIndex((t) => !t.disabled), o = H(
|
100
100
|
u.items,
|
101
101
|
(t) => !t.disabled
|
102
102
|
);
|
103
103
|
if (e.key === "ArrowDown") {
|
104
|
-
if (e.preventDefault(), l.value || await
|
104
|
+
if (e.preventDefault(), l.value || await $(), i.value && c.value.length && a !== -1) {
|
105
105
|
const t = c.value[a].id, n = i.value.querySelector(`#${t}`);
|
106
106
|
n && n instanceof HTMLElement && n.focus();
|
107
107
|
}
|
108
108
|
} else if (e.key === "ArrowUp") {
|
109
|
-
if (e.preventDefault(), l.value || await
|
109
|
+
if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
|
110
110
|
const t = c.value[o].id, n = i.value.querySelector(`#${t}`);
|
111
111
|
n && n instanceof HTMLElement && n.focus();
|
112
112
|
}
|
@@ -114,19 +114,19 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
114
114
|
const t = c.value[a].id, n = i.value.querySelector(`#${t}`);
|
115
115
|
n && n instanceof HTMLElement && n.focus();
|
116
116
|
}
|
117
|
-
},
|
117
|
+
}, I = (e) => {
|
118
118
|
const a = e.target;
|
119
119
|
if (a && a instanceof HTMLElement) {
|
120
120
|
let o = !0;
|
121
121
|
m.value && m.value.$el.contains(a) && (o = !1), i.value && i.value.contains(a) && (o = !1), o && f();
|
122
122
|
}
|
123
|
-
},
|
123
|
+
}, M = (e) => {
|
124
124
|
const a = e.target;
|
125
125
|
if (a && a instanceof HTMLElement) {
|
126
126
|
let o = !0;
|
127
127
|
m.value && m.value.$el.contains(a) && (o = !1), o && f();
|
128
128
|
}
|
129
|
-
},
|
129
|
+
}, S = (e) => {
|
130
130
|
var a;
|
131
131
|
if (l.value && e.key === "Escape") {
|
132
132
|
if (((a = document.activeElement) == null ? void 0 : a.id) !== d) {
|
@@ -135,17 +135,17 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
135
135
|
}
|
136
136
|
f();
|
137
137
|
}
|
138
|
-
}, j =
|
139
|
-
j.value = !0, await
|
138
|
+
}, j = g(!1), $ = async () => {
|
139
|
+
j.value = !0, await ne(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
|
140
140
|
}, f = async () => {
|
141
|
-
l.value = !1, document.removeEventListener("click",
|
141
|
+
l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
|
142
142
|
};
|
143
|
-
return (e, a) => (b(),
|
144
|
-
ref_key: "
|
143
|
+
return (e, a) => (b(), L(le, {
|
144
|
+
ref_key: "wrapper",
|
145
145
|
ref: m,
|
146
146
|
"arrow-padding": e.arrowPadding,
|
147
147
|
block: e.block,
|
148
|
-
class:
|
148
|
+
class: R(["bb-dropdown", {
|
149
149
|
[`bb-dropdown--${e.theme}`]: !0
|
150
150
|
}]),
|
151
151
|
"model-value": l.value,
|
@@ -154,11 +154,11 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
154
154
|
placement: e.placement,
|
155
155
|
"transition-duration": e.transitionDuration
|
156
156
|
}, {
|
157
|
-
activator:
|
158
|
-
v(e.$slots, "activator", x(
|
157
|
+
activator: T(() => [
|
158
|
+
v(e.$slots, "activator", Z(x({
|
159
159
|
props: {
|
160
|
-
"aria-expanded": p(
|
161
|
-
"aria-controls": p(
|
160
|
+
"aria-expanded": p(E) ? l.value : !1,
|
161
|
+
"aria-controls": p(E) ? `menu_${p(d)}` : void 0,
|
162
162
|
id: p(d),
|
163
163
|
onClick: K,
|
164
164
|
onKeydown: P,
|
@@ -169,24 +169,24 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
169
169
|
placement: e.placement
|
170
170
|
})))
|
171
171
|
]),
|
172
|
-
default:
|
173
|
-
p(
|
172
|
+
default: T(() => [
|
173
|
+
p(E) ? (b(), D("span", {
|
174
174
|
key: 0,
|
175
175
|
id: `menu_${p(d)}`,
|
176
|
-
ref_key: "
|
176
|
+
ref_key: "content",
|
177
177
|
ref: i,
|
178
178
|
"aria-labelledby": p(d),
|
179
179
|
"aria-role": "menu",
|
180
180
|
class: "bb-dropdown__items-container",
|
181
181
|
inert: !l.value,
|
182
|
-
style:
|
182
|
+
style: W({ width: `${e.width}px` })
|
183
183
|
}, [
|
184
184
|
v(e.$slots, "prepend", {
|
185
185
|
disabled: e.disabled,
|
186
186
|
open: l.value,
|
187
187
|
placement: e.placement
|
188
188
|
}),
|
189
|
-
(b(!0),
|
189
|
+
(b(!0), D(F, null, G(c.value, ({ original: o, ...t }, n) => (b(), D(F, {
|
190
190
|
key: t.key
|
191
191
|
}, [
|
192
192
|
v(e.$slots, "item:prepend", {
|
@@ -197,7 +197,7 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
197
197
|
placement: e.placement,
|
198
198
|
text: t.text
|
199
199
|
}),
|
200
|
-
|
200
|
+
J(ae, Q({
|
201
201
|
"aria-role": "menuitem",
|
202
202
|
class: ["bb-dropdown__item", {
|
203
203
|
"bb-dropdown__item--first": n === 0,
|
@@ -206,7 +206,7 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
206
206
|
"data-dropdown-item": !0,
|
207
207
|
ref_for: !0
|
208
208
|
}, t), {
|
209
|
-
default:
|
209
|
+
default: T(() => [
|
210
210
|
v(e.$slots, t.key, {
|
211
211
|
disabled: t.disabled,
|
212
212
|
index: n,
|
@@ -215,17 +215,17 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
215
215
|
placement: e.placement,
|
216
216
|
text: t.text
|
217
217
|
}, () => [
|
218
|
-
t["prepend:icon"] ? (b(),
|
218
|
+
t["prepend:icon"] ? (b(), L(A, {
|
219
219
|
key: 0,
|
220
220
|
class: "item__prepend-icon",
|
221
221
|
type: t["prepend:icon"]
|
222
|
-
}, null, 8, ["type"])) :
|
223
|
-
|
224
|
-
t["append:icon"] ? (b(),
|
222
|
+
}, null, 8, ["type"])) : _("", !0),
|
223
|
+
X("span", ie, Y(t.text), 1),
|
224
|
+
t["append:icon"] ? (b(), L(A, {
|
225
225
|
key: 1,
|
226
226
|
class: "item__append-icon",
|
227
227
|
type: t["append:icon"]
|
228
|
-
}, null, 8, ["type"])) :
|
228
|
+
}, null, 8, ["type"])) : _("", !0)
|
229
229
|
])
|
230
230
|
]),
|
231
231
|
_: 2
|
@@ -244,12 +244,12 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
|
|
244
244
|
open: l.value,
|
245
245
|
placement: e.placement
|
246
246
|
})
|
247
|
-
], 12,
|
247
|
+
], 12, se)) : _("", !0)
|
248
248
|
]),
|
249
249
|
_: 3
|
250
250
|
}, 8, ["arrow-padding", "block", "class", "model-value", "offset", "padding", "placement", "transition-duration"]));
|
251
251
|
}
|
252
252
|
});
|
253
253
|
export {
|
254
|
-
|
254
|
+
Ee as default
|
255
255
|
};
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index224.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index275.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index274.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index225.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index87.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
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 "./
|
2
|
+
import { throttle as c } from "./index276.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, onBeforeUnmount as A, onMounted as re, watch as ue, createBlock as ce, openBlock as g, withCtx as de, createElementVNode as s, mergeProps as E, createElementBlock as $, createCommentVNode as T, renderSlot as n, createTextVNode as fe, toDisplayString as H, unref as ve, nextTick as pe } from "vue";
|
2
|
-
import { useFocusTrap as be } from "./
|
2
|
+
import { useFocusTrap as be } from "./index241.js";
|
3
3
|
import { useId as I } from "./index8.js";
|
4
4
|
import { wait as D } from "./index135.js";
|
5
|
-
import { useModalsState as b } from "./
|
6
|
-
import me from "./
|
5
|
+
import { useModalsState as b } from "./index251.js";
|
6
|
+
import me from "./index252.js";
|
7
7
|
import { useMobile as ye } from "./index9.js";
|
8
|
-
import { useLocale as he } from "./
|
8
|
+
import { useLocale as he } from "./index224.js";
|
9
9
|
const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
|
10
10
|
__name: "BbOffCanvas",
|
11
11
|
props: {
|
package/dist/index92.js
CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
|
|
3
3
|
/* empty css */
|
4
4
|
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import { debounce as X } from "./
|
7
|
-
import { useLocale as H } from "./
|
6
|
+
import { debounce as X } from "./index265.js";
|
7
|
+
import { useLocale as H } from "./index224.js";
|
8
8
|
import { useRoute as J } from "./index142.js";
|
9
9
|
const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
|
10
10
|
__name: "BbPagination",
|
package/dist/index94.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as V, ref as c, computed as w, createBlock as h, openBlock as u, normalizeClass as D, withCtx as f, createElementBlock as M, createCommentVNode as g, unref as k, renderSlot as y, createElementVNode as m, toDisplayString as z, normalizeProps as O, guardReactiveProps as S, nextTick as H } from "vue";
|
2
2
|
import { useId as I } from "./index8.js";
|
3
3
|
import { useIntersectionObserver as N } from "./index137.js";
|
4
|
-
import { useLocale as U } from "./
|
5
|
-
import { useUntil as W } from "./
|
4
|
+
import { useLocale as U } from "./index224.js";
|
5
|
+
import { useUntil as W } from "./index268.js";
|
6
6
|
import q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import A from "./
|
8
|
+
import A from "./index269.js";
|
9
9
|
/* empty css */
|
10
|
-
const
|
10
|
+
const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
|
11
11
|
__name: "BbPopover",
|
12
12
|
props: {
|
13
13
|
arrowPadding: { default: 10 },
|
@@ -27,7 +27,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
27
27
|
},
|
28
28
|
emits: ["shown", "hidden"],
|
29
29
|
setup(C, { expose: $, emit: L }) {
|
30
|
-
const a = C, n = L, { t: _ } = U(), { id: B } = I(), i = `bbp_${B.value}`, r =
|
30
|
+
const a = C, n = L, { t: _ } = U(), { id: B } = I(), i = `bbp_${B.value}`, r = c(), d = c();
|
31
31
|
N(
|
32
32
|
r,
|
33
33
|
async ([{ intersectionRatio: e }]) => {
|
@@ -35,14 +35,14 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
35
35
|
},
|
36
36
|
{ threshold: [0, 1] }
|
37
37
|
);
|
38
|
-
const o =
|
38
|
+
const o = c(!1), T = W(o), v = (e) => {
|
39
39
|
var t;
|
40
40
|
e.target instanceof HTMLElement && ((t = d.value) != null && t.contains(e.target) || l());
|
41
41
|
}, P = async () => {
|
42
|
-
o.value = !0, document.addEventListener("click",
|
42
|
+
o.value = !0, document.addEventListener("click", v);
|
43
43
|
}, l = async () => {
|
44
|
-
o.value = !1, document.removeEventListener("click",
|
45
|
-
},
|
44
|
+
o.value = !1, document.removeEventListener("click", v);
|
45
|
+
}, b = async () => {
|
46
46
|
var s;
|
47
47
|
if (o.value) {
|
48
48
|
await l(), n("hidden");
|
@@ -63,11 +63,11 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
63
63
|
}
|
64
64
|
});
|
65
65
|
return $({
|
66
|
-
open:
|
66
|
+
open: b,
|
67
67
|
close: p,
|
68
68
|
closed: w(() => !o.value)
|
69
|
-
}), (e, t) => (
|
70
|
-
ref_key: "
|
69
|
+
}), (e, t) => (u(), h(A, {
|
70
|
+
ref_key: "wrapper",
|
71
71
|
ref: r,
|
72
72
|
modelValue: o.value,
|
73
73
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
|
@@ -88,12 +88,12 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
88
88
|
tag: "dialog",
|
89
89
|
"transition-duration": e.transitionDuration
|
90
90
|
}, {
|
91
|
-
activator:
|
91
|
+
activator: f(() => [
|
92
92
|
y(e.$slots, "activator", O(S({
|
93
93
|
props: {
|
94
94
|
"aria-controls": `popover_${i}`,
|
95
95
|
"aria-expanded": o.value,
|
96
|
-
onClick:
|
96
|
+
onClick: b,
|
97
97
|
id: i,
|
98
98
|
disabled: !!e.disabled
|
99
99
|
},
|
@@ -102,27 +102,27 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
102
102
|
placement: e.placement
|
103
103
|
})))
|
104
104
|
]),
|
105
|
-
default:
|
106
|
-
k(T) ? (
|
105
|
+
default: f(() => [
|
106
|
+
k(T) ? (u(), M("span", {
|
107
107
|
key: 0,
|
108
|
-
ref_key: "
|
108
|
+
ref_key: "content",
|
109
109
|
ref: d,
|
110
110
|
class: "bb-popover__content",
|
111
111
|
inert: !o.value
|
112
112
|
}, [
|
113
|
-
e.showClose ? (
|
113
|
+
e.showClose ? (u(), h(q, {
|
114
114
|
key: 0,
|
115
115
|
class: "bb-popover__close",
|
116
116
|
onClick: p
|
117
117
|
}, {
|
118
|
-
default:
|
119
|
-
|
120
|
-
t[1] || (t[1] =
|
118
|
+
default: f(() => [
|
119
|
+
m("span", Z, z(e.closeLabel || k(_)("common.closeLabel").value), 1),
|
120
|
+
t[1] || (t[1] = m("svg", {
|
121
121
|
fill: "none",
|
122
122
|
viewBox: "0 0 24 24",
|
123
123
|
xmlns: "http://www.w3.org/2000/svg"
|
124
124
|
}, [
|
125
|
-
|
125
|
+
m("path", {
|
126
126
|
d: "M23 23L1 1M23 1L1 23",
|
127
127
|
stroke: "currentColor",
|
128
128
|
"stroke-linecap": "round",
|
@@ -138,12 +138,12 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
138
138
|
open: o.value,
|
139
139
|
placement: e.placement
|
140
140
|
})
|
141
|
-
], 8,
|
141
|
+
], 8, R)) : g("", !0)
|
142
142
|
]),
|
143
143
|
_: 3
|
144
144
|
}, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "transition-duration"]));
|
145
145
|
}
|
146
146
|
});
|
147
147
|
export {
|
148
|
-
|
148
|
+
ee as default
|
149
149
|
};
|
package/dist/index96.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
-
import { clamp as p } from "./
|
2
|
+
import { clamp as p } from "./index208.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index136.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
package/package.json
CHANGED
package/dist/index232.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
import { isNil as f } from "./index250.js";
|
2
|
-
import { computed as t, unref as o } from "vue";
|
3
|
-
const a = ({ modelValue: e, iteratee: h, multiple: u }) => {
|
4
|
-
const i = t(
|
5
|
-
() => new Array().concat(o(e))
|
6
|
-
), s = t(() => i.value.reduce(
|
7
|
-
(r, n) => (h(n) ? r.coherent.push(n) : r.incoherent.push(n), r),
|
8
|
-
{ coherent: [], incoherent: [] }
|
9
|
-
)), c = t(() => u && !o(e).length || !u && f(o(e)) ? !0 : !s.value.incoherent.length);
|
10
|
-
return {
|
11
|
-
status: s,
|
12
|
-
coherent: c
|
13
|
-
};
|
14
|
-
};
|
15
|
-
export {
|
16
|
-
a as useCoherence
|
17
|
-
};
|
package/dist/index244.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
|
2
|
-
export {
|
3
|
-
n as isEmpty
|
4
|
-
};
|