bitboss-ui 2.0.172 → 2.0.174
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/BaseColorInput/BaseColorInput.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +16 -2
- package/dist/components/BbPopover/BbPopover.vue.d.ts +18 -4
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +16 -2
- package/dist/components/CommonPopover.vue.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index106.js +6 -6
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +9 -9
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +40 -39
- package/dist/index133.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +35 -34
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index209.js +2 -10
- package/dist/index21.js +16 -16
- package/dist/index210.js +4 -3
- package/dist/index211.js +2 -13
- package/dist/index212.js +13 -34
- package/dist/index213.js +65 -12
- package/dist/index215.js +36 -0
- package/dist/index216.js +4 -2
- package/dist/index217.js +13 -4
- package/dist/index218.js +11 -2
- package/dist/index219.js +20 -2
- package/dist/index220.js +200 -41
- package/dist/index222.js +120 -7
- package/dist/index224.js +2 -5
- package/dist/index225.js +2 -9
- package/dist/index226.js +3 -5
- package/dist/index227.js +5 -5
- package/dist/index228.js +3 -3
- package/dist/index229.js +2 -2
- package/dist/index23.js +114 -125
- package/dist/index230.js +5 -5
- package/dist/index231.js +5 -2
- package/dist/index232.js +5 -2
- package/dist/index233.js +2 -11
- package/dist/index234.js +2 -20
- package/dist/index235.js +2 -105
- package/dist/{index241.js → index236.js} +3 -3
- package/dist/index237.js +17 -86
- package/dist/index238.js +108 -0
- package/dist/index240.js +100 -17
- package/dist/index242.js +86 -15
- package/dist/index244.js +28 -11
- package/dist/index246.js +15 -4
- package/dist/index247.js +12 -200
- package/dist/index248.js +43 -0
- package/dist/index249.js +6 -18
- package/dist/index25.js +5 -5
- package/dist/index250.js +7 -12
- package/dist/index251.js +11 -102
- package/dist/index252.js +179 -0
- package/dist/index253.js +5 -100
- package/dist/index254.js +7 -0
- package/dist/index255.js +6 -226
- package/dist/index256.js +250 -2
- package/dist/index257.js +50 -175
- package/dist/index258.js +44 -3
- package/dist/index259.js +5 -2
- package/dist/index260.js +60 -5
- package/dist/index261.js +18 -5
- package/dist/index262.js +12 -8
- package/dist/index263.js +216 -238
- package/dist/index264.js +3 -52
- package/dist/index265.js +6 -44
- package/dist/index266.js +16 -5
- package/dist/index267.js +10 -60
- package/dist/index268.js +2 -8
- package/dist/index269.js +3 -23
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -6
- package/dist/index271.js +8 -15
- package/dist/index272.js +23 -3
- package/dist/index273.js +1 -1
- package/dist/index275.js +5 -2
- package/dist/index276.js +1 -1
- package/dist/index277.js +2 -5
- package/dist/index278.js +4 -7
- package/dist/index279.js +8 -5
- package/dist/index280.js +3 -6
- package/dist/index282.js +7 -2
- package/dist/index283.js +5 -0
- package/dist/index284.js +2 -7
- package/dist/index285.js +1 -1
- package/dist/index286.js +3 -4
- package/dist/index287.js +7 -3
- package/dist/index288.js +11 -17
- package/dist/index289.js +3 -27
- package/dist/index29.js +2 -2
- package/dist/index290.js +27 -3
- package/dist/index291.js +276 -467
- package/dist/index292.js +2 -2
- package/dist/index293.js +125 -3
- package/dist/index294.js +2 -3
- package/dist/index295.js +13 -278
- package/dist/index296.js +2 -2
- package/dist/index297.js +12 -121
- package/dist/index298.js +2 -2
- package/dist/index299.js +11 -10
- package/dist/index301.js +15 -12
- package/dist/index303.js +5 -15
- package/dist/index304.js +3 -2
- package/dist/index305.js +3 -19
- package/dist/index306.js +17 -2
- package/dist/index307.js +3 -200
- package/dist/index308.js +470 -5
- package/dist/index309.js +2 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +200 -3
- package/dist/index311.js +19 -2
- package/dist/index312.js +2 -5
- package/dist/index313.js +23 -15
- package/dist/index315.js +2 -27
- package/dist/index316.js +2 -2
- package/dist/index317.js +1 -1
- package/dist/index318.js +1 -1
- package/dist/index319.js +21 -1
- package/dist/index321.js +1 -21
- package/dist/index322.js +7 -0
- package/dist/index323.js +701 -5
- package/dist/index324.js +352 -699
- package/dist/index325.js +58 -354
- package/dist/index326.js +5 -58
- package/dist/index328.js +8 -58
- package/dist/index329.js +6 -58
- package/dist/index33.js +7 -7
- package/dist/index330.js +7 -32
- package/dist/index331.js +128 -27
- package/dist/index332.js +371 -0
- package/dist/index333.js +32 -46
- package/dist/index334.js +28 -7
- package/dist/index336.js +6 -5
- package/dist/index337.js +19 -8
- package/dist/index338.js +227 -6
- package/dist/index339.js +45 -17
- package/dist/index340.js +6 -227
- package/dist/index341.js +57 -127
- package/dist/index342.js +56 -366
- package/dist/index343.js +1 -1
- package/dist/index345.js +1 -1
- package/dist/index346.js +123 -476
- package/dist/index347.js +429 -40
- package/dist/index348.js +121 -123
- package/dist/index349.js +469 -369
- package/dist/index35.js +4 -4
- package/dist/index350.js +43 -122
- package/dist/index37.js +19 -19
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- 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 +106 -112
- 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 +56 -56
- package/package.json +1 -1
- package/dist/index214.js +0 -68
- package/dist/index221.js +0 -8
- package/dist/index223.js +0 -17
- package/dist/index239.js +0 -31
- package/dist/index243.js +0 -5
- package/dist/index281.js +0 -13
- package/dist/index320.js +0 -4
- package/dist/index335.js +0 -10
package/dist/index79.js
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { findRightIndex as
|
3
|
-
import { useId as
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { wait as ne } from "./index135.js";
|
1
|
+
import { defineComponent as N, computed as R, ref as g, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as T, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
|
+
import { findRightIndex as D } from "./index271.js";
|
3
|
+
import { useId as te } from "./index8.js";
|
4
|
+
import { useUntil as ne } from "./index218.js";
|
5
|
+
import { wait as oe } from "./index135.js";
|
7
6
|
import ae from "./index13.js";
|
8
7
|
/* empty css */
|
9
|
-
import
|
8
|
+
import B from "./index85.js";
|
10
9
|
/* empty css */
|
11
|
-
import le from "./
|
10
|
+
import le from "./index222.js";
|
12
11
|
/* empty css */
|
13
|
-
import
|
14
|
-
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
12
|
+
import K from "./index272.js";
|
13
|
+
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, ge = /* @__PURE__ */ N({
|
15
14
|
__name: "BbDropdown",
|
16
15
|
props: {
|
17
16
|
arrowPadding: { default: 10 },
|
@@ -29,43 +28,43 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
|
29
28
|
width: { default: 200 }
|
30
29
|
},
|
31
30
|
setup(O) {
|
32
|
-
const u = O, d = u.id ?? `bb_${
|
33
|
-
let e = u.items.findIndex((
|
31
|
+
const u = O, d = u.id ?? `bb_${te().id.value}`, c = R(() => {
|
32
|
+
let e = u.items.findIndex((n) => !n.disabled), o = D(
|
34
33
|
u.items,
|
35
|
-
(
|
34
|
+
(n) => !n.disabled
|
36
35
|
);
|
37
|
-
return u.items.map((
|
38
|
-
const
|
39
|
-
await
|
36
|
+
return u.items.map((n, t) => {
|
37
|
+
const a = `${d}-item-${n.key}`, { onClick: _, ...C } = n, j = async () => {
|
38
|
+
await p();
|
40
39
|
const s = document.querySelector(`#${d}`);
|
41
40
|
if (s) s instanceof HTMLElement && s.focus();
|
42
41
|
else return;
|
43
|
-
|
44
|
-
},
|
42
|
+
_ && _();
|
43
|
+
}, z = (s) => {
|
45
44
|
if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
|
46
45
|
if (!i.value) return;
|
47
46
|
if (s.key === "ArrowDown") {
|
48
|
-
if (s.preventDefault(), i.value && t !==
|
47
|
+
if (s.preventDefault(), i.value && t !== o) {
|
49
48
|
const r = i.value.querySelector(
|
50
|
-
|
49
|
+
K.map((v) => `#${a} ~ ${v}`).join(",")
|
51
50
|
);
|
52
51
|
r && r instanceof HTMLElement && r.focus();
|
53
52
|
}
|
54
53
|
} else if (s.key === "ArrowUp") {
|
55
54
|
if (s.preventDefault(), i.value && t !== e) {
|
56
|
-
const r =
|
55
|
+
const r = D(u.items, (w, L) => L < t && !w.disabled), y = Array.from(
|
57
56
|
i.value.querySelectorAll(".bb-dropdown__item")
|
58
57
|
)[r];
|
59
|
-
|
58
|
+
y && y instanceof HTMLElement && y.focus();
|
60
59
|
}
|
61
60
|
} else if (s.key === "Tab") {
|
62
|
-
if (t ===
|
63
|
-
const r =
|
61
|
+
if (t === o && !s.shiftKey) {
|
62
|
+
const r = K.join(","), v = Array.from(
|
64
63
|
document.querySelectorAll(r)
|
65
|
-
),
|
66
|
-
(
|
67
|
-
),
|
68
|
-
if (
|
64
|
+
), y = v.findIndex(
|
65
|
+
(L) => L.id === d
|
66
|
+
), w = v[y + 1];
|
67
|
+
if (w) w instanceof HTMLElement && (s.preventDefault(), p(), w.focus());
|
69
68
|
else return;
|
70
69
|
} else if (t === e && s.shiftKey) {
|
71
70
|
const r = document.querySelector(`#${d}`);
|
@@ -76,92 +75,88 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
|
76
75
|
}
|
77
76
|
};
|
78
77
|
return {
|
79
|
-
...
|
80
|
-
original:
|
81
|
-
key:
|
82
|
-
disabled:
|
83
|
-
id:
|
84
|
-
onClick:
|
85
|
-
onKeydown:
|
78
|
+
...C,
|
79
|
+
original: n,
|
80
|
+
key: n.key.split(/\W+/g).join("_").toLowerCase(),
|
81
|
+
disabled: C.disabled || u.disabled,
|
82
|
+
id: a,
|
83
|
+
onClick: j,
|
84
|
+
onKeydown: z
|
86
85
|
};
|
87
86
|
});
|
88
|
-
}),
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
e !== 1 && l.value && f();
|
93
|
-
},
|
94
|
-
{ threshold: [0, 1] }
|
95
|
-
);
|
96
|
-
const l = g(!1), E = oe(l), K = () => {
|
97
|
-
l.value ? f() : $();
|
98
|
-
}, P = async (e) => {
|
99
|
-
let a = u.items.findIndex((t) => !t.disabled), o = H(
|
87
|
+
}), b = g(), i = g(), l = g(!1), E = ne(l), P = () => {
|
88
|
+
l.value ? p() : $();
|
89
|
+
}, V = async (e) => {
|
90
|
+
let o = u.items.findIndex((t) => !t.disabled), n = D(
|
100
91
|
u.items,
|
101
92
|
(t) => !t.disabled
|
102
93
|
);
|
103
94
|
if (e.key === "ArrowDown") {
|
104
|
-
if (e.preventDefault(), l.value || await $(), i.value && c.value.length &&
|
105
|
-
const t = c.value[
|
106
|
-
|
95
|
+
if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
|
96
|
+
const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
|
97
|
+
a && a instanceof HTMLElement && a.focus();
|
107
98
|
}
|
108
99
|
} else if (e.key === "ArrowUp") {
|
109
|
-
if (e.preventDefault(), l.value || await $(), i.value && c.value.length &&
|
110
|
-
const t = c.value[
|
111
|
-
|
100
|
+
if (e.preventDefault(), l.value || await $(), i.value && c.value.length && n !== -1) {
|
101
|
+
const t = c.value[n].id, a = i.value.querySelector(`#${t}`);
|
102
|
+
a && a instanceof HTMLElement && a.focus();
|
112
103
|
}
|
113
|
-
} else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length &&
|
114
|
-
const t = c.value[
|
115
|
-
|
104
|
+
} else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length && o !== -1)) {
|
105
|
+
const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
|
106
|
+
a && a instanceof HTMLElement && a.focus();
|
116
107
|
}
|
117
|
-
},
|
118
|
-
const
|
119
|
-
if (
|
120
|
-
let
|
121
|
-
|
108
|
+
}, H = (e) => {
|
109
|
+
const o = e.target;
|
110
|
+
if (o && o instanceof HTMLElement) {
|
111
|
+
let n = !0;
|
112
|
+
b.value && b.value.$el.contains(o) && (n = !1), i.value && i.value.contains(o) && (n = !1), n && p();
|
122
113
|
}
|
123
114
|
}, M = (e) => {
|
124
|
-
const
|
125
|
-
if (
|
126
|
-
let
|
127
|
-
|
115
|
+
const o = e.target;
|
116
|
+
if (o && o instanceof HTMLElement) {
|
117
|
+
let n = !0;
|
118
|
+
b.value && b.value.$el.contains(o) && (n = !1), n && p();
|
128
119
|
}
|
129
120
|
}, S = (e) => {
|
130
|
-
var
|
121
|
+
var o;
|
131
122
|
if (l.value && e.key === "Escape") {
|
132
|
-
if (((
|
133
|
-
const
|
134
|
-
|
123
|
+
if (((o = document.activeElement) == null ? void 0 : o.id) !== d) {
|
124
|
+
const n = document.querySelector(`#${d}`);
|
125
|
+
n instanceof HTMLElement && n.focus();
|
135
126
|
}
|
136
|
-
|
127
|
+
p();
|
137
128
|
}
|
138
|
-
},
|
139
|
-
|
140
|
-
},
|
141
|
-
l.value = !1
|
129
|
+
}, U = g(!1), $ = async () => {
|
130
|
+
U.value = !0, await oe(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
|
131
|
+
}, p = async () => {
|
132
|
+
l.value = !1;
|
142
133
|
};
|
143
|
-
return (
|
134
|
+
return W(l, (e) => {
|
135
|
+
e || (document.removeEventListener("click", H), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S));
|
136
|
+
}), (e, o) => (k(), h(le, {
|
144
137
|
ref_key: "wrapper",
|
145
|
-
ref:
|
138
|
+
ref: b,
|
139
|
+
modelValue: l.value,
|
140
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
|
146
141
|
"arrow-padding": e.arrowPadding,
|
147
142
|
block: e.block,
|
148
|
-
class:
|
143
|
+
class: G(["bb-dropdown", {
|
149
144
|
[`bb-dropdown--${e.theme}`]: !0
|
150
145
|
}]),
|
151
|
-
"model-value": l.value,
|
152
146
|
offset: e.offset,
|
153
147
|
padding: e.padding,
|
154
148
|
placement: e.placement,
|
149
|
+
"render-content": f(E),
|
155
150
|
"transition-duration": e.transitionDuration
|
156
151
|
}, {
|
157
152
|
activator: T(() => [
|
158
|
-
|
153
|
+
m(e.$slots, "activator", x(ee({
|
159
154
|
props: {
|
160
|
-
"aria-expanded":
|
161
|
-
"aria-controls":
|
162
|
-
id:
|
163
|
-
onClick:
|
164
|
-
onKeydown:
|
155
|
+
"aria-expanded": f(E) ? l.value : !1,
|
156
|
+
"aria-controls": f(E) ? `menu_${f(d)}` : void 0,
|
157
|
+
id: f(d),
|
158
|
+
onClick: P,
|
159
|
+
onKeydown: V,
|
165
160
|
disabled: e.disabled
|
166
161
|
},
|
167
162
|
disabled: e.disabled,
|
@@ -170,86 +165,85 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
|
170
165
|
})))
|
171
166
|
]),
|
172
167
|
default: T(() => [
|
173
|
-
|
174
|
-
|
175
|
-
id: `menu_${p(d)}`,
|
168
|
+
I("span", {
|
169
|
+
id: `menu_${f(d)}`,
|
176
170
|
ref_key: "content",
|
177
171
|
ref: i,
|
178
|
-
"aria-labelledby":
|
172
|
+
"aria-labelledby": f(d),
|
179
173
|
"aria-role": "menu",
|
180
174
|
class: "bb-dropdown__items-container",
|
181
175
|
inert: !l.value,
|
182
|
-
style:
|
176
|
+
style: J({ width: `${e.width}px` })
|
183
177
|
}, [
|
184
|
-
|
178
|
+
m(e.$slots, "prepend", {
|
185
179
|
disabled: e.disabled,
|
186
180
|
open: l.value,
|
187
181
|
placement: e.placement
|
188
182
|
}),
|
189
|
-
(
|
183
|
+
(k(!0), q(F, null, Q(c.value, ({ original: n, ...t }, a) => (k(), q(F, {
|
190
184
|
key: t.key
|
191
185
|
}, [
|
192
|
-
|
186
|
+
m(e.$slots, "item:prepend", {
|
193
187
|
disabled: t.disabled,
|
194
|
-
index:
|
195
|
-
item: e.items[
|
188
|
+
index: a,
|
189
|
+
item: e.items[a],
|
196
190
|
open: l.value,
|
197
191
|
placement: e.placement,
|
198
192
|
text: t.text
|
199
193
|
}),
|
200
|
-
|
194
|
+
X(ae, Y({
|
201
195
|
"aria-role": "menuitem",
|
202
196
|
class: ["bb-dropdown__item", {
|
203
|
-
"bb-dropdown__item--first":
|
204
|
-
"bb-dropdown__item--last":
|
197
|
+
"bb-dropdown__item--first": a === 0,
|
198
|
+
"bb-dropdown__item--last": a === e.items.length - 1
|
205
199
|
}],
|
206
200
|
"data-dropdown-item": !0,
|
207
201
|
ref_for: !0
|
208
202
|
}, t), {
|
209
203
|
default: T(() => [
|
210
|
-
|
204
|
+
m(e.$slots, t.key, {
|
211
205
|
disabled: t.disabled,
|
212
|
-
index:
|
213
|
-
item:
|
206
|
+
index: a,
|
207
|
+
item: n,
|
214
208
|
open: l.value,
|
215
209
|
placement: e.placement,
|
216
210
|
text: t.text
|
217
211
|
}, () => [
|
218
|
-
t["prepend:icon"] ? (
|
212
|
+
t["prepend:icon"] ? (k(), h(B, {
|
219
213
|
key: 0,
|
220
214
|
class: "item__prepend-icon",
|
221
215
|
type: t["prepend:icon"]
|
222
|
-
}, null, 8, ["type"])) :
|
223
|
-
|
224
|
-
t["append:icon"] ? (
|
216
|
+
}, null, 8, ["type"])) : A("", !0),
|
217
|
+
I("span", ie, Z(t.text), 1),
|
218
|
+
t["append:icon"] ? (k(), h(B, {
|
225
219
|
key: 1,
|
226
220
|
class: "item__append-icon",
|
227
221
|
type: t["append:icon"]
|
228
|
-
}, null, 8, ["type"])) :
|
222
|
+
}, null, 8, ["type"])) : A("", !0)
|
229
223
|
])
|
230
224
|
]),
|
231
225
|
_: 2
|
232
226
|
}, 1040, ["class"]),
|
233
|
-
|
227
|
+
m(e.$slots, "item:append", {
|
234
228
|
disabled: t.disabled,
|
235
|
-
index:
|
236
|
-
item: e.items[
|
229
|
+
index: a,
|
230
|
+
item: e.items[a],
|
237
231
|
open: l.value,
|
238
232
|
placement: e.placement,
|
239
233
|
text: t.text
|
240
234
|
})
|
241
235
|
], 64))), 128)),
|
242
|
-
|
236
|
+
m(e.$slots, "append", {
|
243
237
|
disabled: e.disabled,
|
244
238
|
open: l.value,
|
245
239
|
placement: e.placement
|
246
240
|
})
|
247
|
-
], 12, se)
|
241
|
+
], 12, se)
|
248
242
|
]),
|
249
243
|
_: 3
|
250
|
-
}, 8, ["arrow-padding", "block", "class", "
|
244
|
+
}, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "render-content", "transition-duration"]));
|
251
245
|
}
|
252
246
|
});
|
253
247
|
export {
|
254
|
-
|
248
|
+
ge as default
|
255
249
|
};
|
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 "./index217.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 "./index266.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("./index265.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 "./index209.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 "./index269.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 "./index248.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 "./index250.js";
|
6
|
+
import me from "./index251.js";
|
7
7
|
import { useMobile as ye } from "./index9.js";
|
8
|
-
import { useLocale as he } from "./
|
8
|
+
import { useLocale as he } from "./index217.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 "./index270.js";
|
7
|
+
import { useLocale as H } from "./index217.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
|
2
|
-
import { useId as
|
3
|
-
import { useIntersectionObserver as
|
4
|
-
import { useLocale as
|
5
|
-
import { useUntil as
|
6
|
-
import
|
1
|
+
import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as i, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
|
2
|
+
import { useId as H } from "./index8.js";
|
3
|
+
import { useIntersectionObserver as N } from "./index137.js";
|
4
|
+
import { useLocale as U } from "./index217.js";
|
5
|
+
import { useUntil as W } from "./index218.js";
|
6
|
+
import q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import A from "./index222.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,75 +27,76 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
27
27
|
},
|
28
28
|
emits: ["shown", "hidden"],
|
29
29
|
setup($, { expose: L, emit: _ }) {
|
30
|
-
const t = $, n = _, { t: B } =
|
31
|
-
|
30
|
+
const t = $, n = _, { t: B } = U(), { id: P } = H(), p = `bbp_${P.value}`, r = m(), c = m();
|
31
|
+
N(
|
32
32
|
r,
|
33
33
|
async ([{ intersectionRatio: e }]) => {
|
34
|
-
e !== 1 && o.value && (await
|
34
|
+
e !== 1 && o.value && (await s(), n("hidden"));
|
35
35
|
},
|
36
36
|
{ threshold: [0, 1] }
|
37
37
|
);
|
38
|
-
const o =
|
38
|
+
const o = m(!1), u = W(o), b = (e) => {
|
39
39
|
var a;
|
40
|
-
e.target instanceof HTMLElement && ((a =
|
41
|
-
},
|
42
|
-
o.value = !0, document.addEventListener("click",
|
43
|
-
},
|
44
|
-
o.value = !1, document.removeEventListener("click",
|
45
|
-
},
|
46
|
-
var
|
40
|
+
e.target instanceof HTMLElement && ((a = c.value) != null && a.contains(e.target) || s());
|
41
|
+
}, T = async () => {
|
42
|
+
o.value = !0, document.addEventListener("click", b);
|
43
|
+
}, s = async () => {
|
44
|
+
o.value = !1, document.removeEventListener("click", b);
|
45
|
+
}, w = async (e) => {
|
46
|
+
var h;
|
47
47
|
if (o.value) {
|
48
|
-
await
|
48
|
+
await s(), n("hidden");
|
49
49
|
return;
|
50
50
|
}
|
51
51
|
if (t.disabled)
|
52
52
|
return;
|
53
|
-
e.stopImmediatePropagation(), await
|
53
|
+
e.stopImmediatePropagation(), await T();
|
54
54
|
let a = t.focusTarget ?? ".bb-popover__close";
|
55
|
-
await
|
56
|
-
const
|
57
|
-
|
58
|
-
},
|
59
|
-
await
|
60
|
-
},
|
55
|
+
await S();
|
56
|
+
const l = (h = c.value) == null ? void 0 : h.querySelector(a);
|
57
|
+
l instanceof HTMLElement && (l.focus(), n("shown"));
|
58
|
+
}, f = async () => {
|
59
|
+
await s(), n("hidden");
|
60
|
+
}, E = g(() => {
|
61
61
|
if (t.width) {
|
62
62
|
let e;
|
63
63
|
return typeof t.width == "string" && /^\d+[a-zA-Z%]+$/.test(t.width) ? t.width.includes("%") ? r.value ? `${r.value.$el.clientWidth * (+t.width.replace("%", "") / 100)}px` : void 0 : t.width : (e = `${t.width}px`, `${e}px`);
|
64
64
|
}
|
65
65
|
});
|
66
66
|
return L({
|
67
|
-
open:
|
68
|
-
close:
|
69
|
-
closed:
|
70
|
-
}), (e, a) => (
|
67
|
+
open: w,
|
68
|
+
close: f,
|
69
|
+
closed: g(() => !o.value)
|
70
|
+
}), (e, a) => (y(), k(A, {
|
71
71
|
ref_key: "wrapper",
|
72
72
|
ref: r,
|
73
73
|
modelValue: o.value,
|
74
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
74
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
|
75
75
|
"arrow-padding": e.arrowPadding,
|
76
76
|
block: e.block,
|
77
|
-
class:
|
77
|
+
class: D(["bb-popover", {
|
78
78
|
[`bb-popover--${e.theme}`]: !0
|
79
79
|
}]),
|
80
80
|
"container-attributes": {
|
81
|
-
id: `popover_${
|
81
|
+
id: `popover_${p}`,
|
82
82
|
style: {
|
83
|
-
width:
|
83
|
+
width: E.value
|
84
84
|
}
|
85
85
|
},
|
86
86
|
offset: e.offset,
|
87
87
|
padding: e.padding,
|
88
88
|
placement: e.placement,
|
89
|
+
"render-content": i(u),
|
89
90
|
tag: "dialog",
|
90
91
|
"transition-duration": e.transitionDuration
|
91
92
|
}, {
|
92
|
-
activator:
|
93
|
-
C(e.$slots, "activator", O(
|
93
|
+
activator: v(() => [
|
94
|
+
C(e.$slots, "activator", I(O({
|
94
95
|
props: {
|
95
|
-
"aria-
|
96
|
-
"aria-
|
97
|
-
onClick:
|
98
|
-
id:
|
96
|
+
"aria-expanded": i(u) ? o.value : !1,
|
97
|
+
"aria-controls": i(u) ? `popover_${p}` : void 0,
|
98
|
+
onClick: w,
|
99
|
+
id: p,
|
99
100
|
disabled: !!e.disabled
|
100
101
|
},
|
101
102
|
disabled: !!e.disabled,
|
@@ -103,27 +104,26 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
103
104
|
placement: e.placement
|
104
105
|
})))
|
105
106
|
]),
|
106
|
-
default:
|
107
|
-
|
108
|
-
key: 0,
|
107
|
+
default: v(() => [
|
108
|
+
d("span", {
|
109
109
|
ref_key: "content",
|
110
|
-
ref:
|
110
|
+
ref: c,
|
111
111
|
class: "bb-popover__content",
|
112
112
|
inert: !o.value
|
113
113
|
}, [
|
114
|
-
e.showClose ? (
|
114
|
+
e.showClose ? (y(), k(q, {
|
115
115
|
key: 0,
|
116
116
|
class: "bb-popover__close",
|
117
|
-
onClick:
|
117
|
+
onClick: f
|
118
118
|
}, {
|
119
|
-
default:
|
120
|
-
|
121
|
-
a[1] || (a[1] =
|
119
|
+
default: v(() => [
|
120
|
+
d("span", Z, z(e.closeLabel || i(B)("common.closeLabel").value), 1),
|
121
|
+
a[1] || (a[1] = d("svg", {
|
122
122
|
fill: "none",
|
123
123
|
viewBox: "0 0 24 24",
|
124
124
|
xmlns: "http://www.w3.org/2000/svg"
|
125
125
|
}, [
|
126
|
-
|
126
|
+
d("path", {
|
127
127
|
d: "M23 23L1 1M23 1L1 23",
|
128
128
|
stroke: "currentColor",
|
129
129
|
"stroke-linecap": "round",
|
@@ -132,19 +132,19 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
|
|
132
132
|
], -1))
|
133
133
|
]),
|
134
134
|
_: 1
|
135
|
-
})) :
|
135
|
+
})) : M("", !0),
|
136
136
|
C(e.$slots, "default", {
|
137
|
-
close:
|
137
|
+
close: f,
|
138
138
|
disabled: !!e.disabled,
|
139
139
|
open: o.value,
|
140
140
|
placement: e.placement
|
141
141
|
})
|
142
|
-
], 8,
|
142
|
+
], 8, R)
|
143
143
|
]),
|
144
144
|
_: 3
|
145
|
-
}, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "transition-duration"]));
|
145
|
+
}, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "render-content", "transition-duration"]));
|
146
146
|
}
|
147
147
|
});
|
148
148
|
export {
|
149
|
-
|
149
|
+
ee as default
|
150
150
|
};
|