bitboss-ui 2.1.32 → 2.1.34
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 +13 -12
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +11 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
- package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +30 -38
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +8 -3
- package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
- package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
- package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
- package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
- package/dist/composables/useCancelableFunction.d.ts +17 -0
- package/dist/composables/useToast.d.ts +4 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +11 -11
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +111 -93
- package/dist/index133.js +1 -1
- package/dist/index135.js +2 -2
- package/dist/index140.js +292 -250
- package/dist/index142.js +2 -2
- package/dist/index15.js +72 -74
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +16 -16
- package/dist/index212.js +3 -3
- package/dist/index215.js +86 -4
- package/dist/index217.js +27 -9
- package/dist/index218.js +16 -19
- package/dist/index219.js +49 -195
- package/dist/index220.js +17 -0
- package/dist/index221.js +3 -117
- package/dist/index222.js +14 -0
- package/dist/index223.js +16 -34
- package/dist/index224.js +2 -86
- package/dist/index225.js +4 -0
- package/dist/index226.js +2 -29
- package/dist/index227.js +106 -17
- package/dist/index229.js +100 -15
- package/dist/index23.js +152 -152
- package/dist/index231.js +2 -12
- package/dist/index232.js +4 -16
- package/dist/index233.js +5 -2
- package/dist/index234.js +5 -2
- package/dist/index235.js +5 -2
- package/dist/index236.js +5 -5
- package/dist/index237.js +4 -4
- package/dist/index238.js +5 -5
- package/dist/index239.js +2 -5
- package/dist/index240.js +13 -5
- package/dist/index241.js +20 -5
- package/dist/index242.js +121 -5
- package/dist/index244.js +17 -7
- package/dist/index245.js +12 -250
- package/dist/index246.js +222 -45
- package/dist/index247.js +13 -44
- package/dist/index248.js +4 -5
- package/dist/index249.js +190 -53
- package/dist/index25.js +3 -3
- package/dist/index251.js +7 -3
- package/dist/index252.js +33 -12
- package/dist/index253.js +2 -106
- package/dist/index254.js +185 -0
- package/dist/index255.js +3 -100
- package/dist/index256.js +4 -0
- package/dist/index257.js +7 -2
- package/dist/index258.js +6 -182
- package/dist/index259.js +12 -6
- package/dist/index260.js +5 -2
- package/dist/index261.js +5 -2
- package/dist/index262.js +8 -7
- package/dist/index263.js +250 -7
- package/dist/index264.js +50 -16
- package/dist/index265.js +44 -12
- package/dist/index266.js +5 -6
- package/dist/index267.js +54 -223
- package/dist/index268.js +6 -5
- package/dist/index269.js +16 -10
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -3
- package/dist/index271.js +4 -9
- package/dist/index272.js +23 -23
- package/dist/index273.js +9 -3
- package/dist/index274.js +23 -9
- package/dist/index275.js +10 -6
- package/dist/index276.js +3 -16
- package/dist/index277.js +3 -9
- package/dist/index278.js +9 -8
- package/dist/index279.js +8 -33
- package/dist/index280.js +33 -28
- package/dist/index281.js +30 -0
- package/dist/index283.js +2 -5
- package/dist/index284.js +67 -8
- package/dist/index285.js +5 -2
- package/dist/index286.js +5 -5
- package/dist/index287.js +8 -3
- package/dist/index288.js +4 -3
- package/dist/index289.js +3 -7
- package/dist/index29.js +2 -2
- package/dist/index290.js +17 -11
- package/dist/index291.js +28 -2
- package/dist/index292.js +3 -4
- package/dist/index293.js +1 -1
- package/dist/index294.js +4 -17
- package/dist/index295.js +279 -27
- package/dist/index296.js +2 -4
- package/dist/index297.js +125 -5
- package/dist/index298.js +2 -280
- package/dist/index299.js +15 -2
- package/dist/index300.js +2 -16
- package/dist/index301.js +16 -2
- package/dist/index302.js +2 -16
- package/dist/index303.js +16 -2
- package/dist/index304.js +2 -19
- package/dist/index305.js +19 -2
- package/dist/index306.js +2 -15
- package/dist/index307.js +3 -2
- package/dist/index308.js +7 -19
- package/dist/index309.js +11 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -27
- package/dist/index311.js +3 -2
- package/dist/index312.js +6 -2
- package/dist/index313.js +1 -1
- package/dist/index314.js +5 -2
- package/dist/index315.js +19 -2
- package/dist/index316.js +2 -22
- package/dist/index317.js +29 -0
- package/dist/index318.js +2 -3
- package/dist/index319.js +2 -3
- package/dist/index320.js +2 -6
- package/dist/index321.js +1 -1
- package/dist/index322.js +2 -125
- package/dist/index323.js +22 -2
- package/dist/index328.js +7 -0
- package/dist/index33.js +8 -8
- package/dist/index330.js +3 -2
- package/dist/index331.js +2 -8
- package/dist/index332.js +34 -5
- package/dist/index333.js +6 -8
- package/dist/index334.js +128 -57
- package/dist/index335.js +367 -56
- package/dist/index336.js +47 -8
- package/dist/index337.js +57 -128
- package/dist/index338.js +56 -367
- package/dist/index339.js +7 -6
- package/dist/index340.js +5 -18
- package/dist/index341.js +8 -228
- package/dist/index343.js +227 -46
- package/dist/index344.js +6 -92
- package/dist/index345.js +17 -127
- package/dist/index346.js +87 -430
- package/dist/index347.js +123 -121
- package/dist/index348.js +1 -1
- package/dist/index349.js +430 -44
- package/dist/index35.js +4 -4
- package/dist/index350.js +129 -0
- package/dist/index351.js +52 -0
- package/dist/index37.js +261 -271
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +60 -62
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +6 -6
- package/dist/index67.js +1 -1
- package/dist/index79.js +206 -182
- package/dist/index81.js +2 -2
- package/dist/index83.js +2 -2
- package/dist/index85.js +3 -3
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +121 -117
- package/dist/types/Icon.d.ts +9 -0
- package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
- package/dist/utilities/functions/parseWidthString.d.ts +6 -0
- package/package.json +1 -1
- package/dist/index216.js +0 -15
- package/dist/index228.js +0 -53
- package/dist/index230.js +0 -5
- package/dist/index243.js +0 -4
- package/dist/index250.js +0 -6
- package/dist/index282.js +0 -69
- package/dist/index324.js +0 -7
- package/dist/index329.js +0 -5
package/dist/index79.js
CHANGED
@@ -1,248 +1,272 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { findRightIndex as T } from "./
|
3
|
-
import { useId as
|
4
|
-
import { useUntil as
|
5
|
-
import { wait as
|
6
|
-
import
|
1
|
+
import { defineComponent as ee, ref as q, computed as g, useTemplateRef as te, watch as oe, createElementBlock as D, openBlock as w, Fragment as L, renderSlot as p, createVNode as F, normalizeProps as ne, guardReactiveProps as ae, unref as m, mergeProps as B, withCtx as O, createElementVNode as V, normalizeStyle as ie, renderList as se, createBlock as K, createCommentVNode as P, toDisplayString as re } from "vue";
|
2
|
+
import { findRightIndex as T } from "./index273.js";
|
3
|
+
import { useId as le } from "./index8.js";
|
4
|
+
import { useUntil as de } from "./index247.js";
|
5
|
+
import { wait as ue } from "./index138.js";
|
6
|
+
import ce from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import R from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import
|
10
|
+
import fe from "./index242.js";
|
11
11
|
/* empty css */
|
12
|
-
import
|
13
|
-
|
12
|
+
import U from "./index274.js";
|
13
|
+
import { extractDomContainer as S } from "./index271.js";
|
14
|
+
import { useIntersectionObserver as pe, useElementSize as me } from "./index140.js";
|
15
|
+
import { parseWidthString as ve } from "./index272.js";
|
16
|
+
const be = ["id", "aria-labelledby", "inert"], ye = { class: "item__content" }, _e = /* @__PURE__ */ ee({
|
17
|
+
inheritAttrs: !1,
|
14
18
|
__name: "BbDropdown",
|
15
19
|
props: {
|
16
20
|
arrowPadding: { default: 10 },
|
17
|
-
block: { type: Boolean },
|
18
21
|
disabled: { type: Boolean },
|
19
22
|
eager: { type: Boolean },
|
20
23
|
id: {},
|
21
24
|
offset: { default: 3 },
|
22
25
|
padding: { default: 6 },
|
23
26
|
placement: { default: "bottom" },
|
24
|
-
theme: { default: "default" },
|
25
27
|
transitionDuration: { default: 300 },
|
26
28
|
items: {},
|
29
|
+
theme: { default: "default" },
|
27
30
|
width: { default: 200 }
|
28
31
|
},
|
29
|
-
setup(
|
30
|
-
const
|
31
|
-
|
32
|
-
|
32
|
+
setup(W) {
|
33
|
+
const l = W, u = l.id ?? `bb_${le().id.value}`, h = q(), k = g(() => S(h.value)), j = te("popover"), s = g(() => S(j.value)), i = q(!1), I = de(i, { initialValue: l.eager }), z = (e) => {
|
34
|
+
const o = S(e);
|
35
|
+
o && (h.value = o);
|
36
|
+
}, { resume: N, pause: G } = pe(
|
37
|
+
k,
|
38
|
+
async ([{ intersectionRatio: e }]) => {
|
39
|
+
e !== 1 && i.value && await f();
|
40
|
+
},
|
41
|
+
{ threshold: [0, 1], immediate: !1 }
|
42
|
+
), c = g(() => {
|
43
|
+
let e = l.items.findIndex((n) => !n.disabled), o = T(
|
44
|
+
l.items,
|
33
45
|
(n) => !n.disabled
|
34
46
|
);
|
35
|
-
return
|
36
|
-
const a = `${
|
37
|
-
await
|
38
|
-
const
|
39
|
-
if (
|
47
|
+
return l.items.map((n, t) => {
|
48
|
+
const a = `${u}-item-${n.key}`, { onClick: C, ..._ } = n, Z = async () => {
|
49
|
+
await f();
|
50
|
+
const r = document.querySelector(`#${u}`);
|
51
|
+
if (r) r instanceof HTMLElement && r.focus();
|
40
52
|
else return;
|
41
|
-
|
42
|
-
},
|
43
|
-
if (
|
44
|
-
if (!
|
45
|
-
if (
|
46
|
-
if (
|
47
|
-
const
|
48
|
-
|
53
|
+
C && C();
|
54
|
+
}, x = (r) => {
|
55
|
+
if (r.target instanceof HTMLElement && r.target.dataset.dropdownItem) {
|
56
|
+
if (!s.value) return;
|
57
|
+
if (r.key === "ArrowDown") {
|
58
|
+
if (r.preventDefault(), s.value && t !== o) {
|
59
|
+
const d = s.value.querySelector(
|
60
|
+
U.map((v) => `#${a} ~ ${v}`).join(",")
|
49
61
|
);
|
50
|
-
|
62
|
+
d && d instanceof HTMLElement && d.focus();
|
51
63
|
}
|
52
|
-
} else if (
|
53
|
-
if (
|
54
|
-
const
|
55
|
-
|
56
|
-
)[
|
57
|
-
|
64
|
+
} else if (r.key === "ArrowUp") {
|
65
|
+
if (r.preventDefault(), s.value && t !== e) {
|
66
|
+
const d = T(l.items, (y, $) => $ < t && !y.disabled), b = Array.from(
|
67
|
+
s.value.querySelectorAll(".bb-dropdown__item")
|
68
|
+
)[d];
|
69
|
+
b && b instanceof HTMLElement && b.focus();
|
58
70
|
}
|
59
|
-
} else if (
|
60
|
-
if (t === o && !
|
61
|
-
const
|
62
|
-
document.querySelectorAll(
|
63
|
-
),
|
64
|
-
(
|
65
|
-
),
|
66
|
-
if (
|
71
|
+
} else if (r.key === "Tab") {
|
72
|
+
if (t === o && !r.shiftKey) {
|
73
|
+
const d = U.join(","), v = Array.from(
|
74
|
+
document.querySelectorAll(d)
|
75
|
+
), b = v.findIndex(
|
76
|
+
($) => $.id === u
|
77
|
+
), y = v[b + 1];
|
78
|
+
if (y) y instanceof HTMLElement && (r.preventDefault(), f(), y.focus());
|
67
79
|
else return;
|
68
|
-
} else if (t === e &&
|
69
|
-
const
|
70
|
-
if (
|
80
|
+
} else if (t === e && r.shiftKey) {
|
81
|
+
const d = document.querySelector(`#${u}`);
|
82
|
+
if (d) d instanceof HTMLElement && (r.preventDefault(), d.focus());
|
71
83
|
else return;
|
72
84
|
}
|
73
85
|
}
|
74
86
|
}
|
75
87
|
};
|
76
88
|
return {
|
77
|
-
...
|
89
|
+
..._,
|
78
90
|
original: n,
|
79
91
|
key: n.key.split(/\W+/g).join("_").toLowerCase(),
|
80
|
-
disabled:
|
92
|
+
disabled: _.disabled || l.disabled,
|
81
93
|
id: a,
|
82
|
-
onClick:
|
83
|
-
onKeydown:
|
94
|
+
onClick: Z,
|
95
|
+
onKeydown: x
|
84
96
|
};
|
85
97
|
});
|
86
|
-
}),
|
87
|
-
|
88
|
-
},
|
89
|
-
let o =
|
90
|
-
|
98
|
+
}), J = () => {
|
99
|
+
i.value ? f() : E();
|
100
|
+
}, Q = async (e) => {
|
101
|
+
let o = l.items.findIndex((t) => !t.disabled), n = T(
|
102
|
+
l.items,
|
91
103
|
(t) => !t.disabled
|
92
104
|
);
|
93
105
|
if (e.key === "ArrowDown") {
|
94
|
-
if (e.preventDefault(),
|
95
|
-
const t = c.value[o].id, a =
|
106
|
+
if (e.preventDefault(), i.value || await E(), s.value && c.value.length && o !== -1) {
|
107
|
+
const t = c.value[o].id, a = s.value.querySelector(`#${t}`);
|
96
108
|
a && a instanceof HTMLElement && a.focus();
|
97
109
|
}
|
98
110
|
} else if (e.key === "ArrowUp") {
|
99
|
-
if (e.preventDefault(),
|
100
|
-
const t = c.value[n].id, a =
|
111
|
+
if (e.preventDefault(), i.value || await E(), s.value && c.value.length && n !== -1) {
|
112
|
+
const t = c.value[n].id, a = s.value.querySelector(`#${t}`);
|
101
113
|
a && a instanceof HTMLElement && a.focus();
|
102
114
|
}
|
103
|
-
} else if (e.key === "Tab" &&
|
104
|
-
const t = c.value[o].id, a =
|
115
|
+
} else if (e.key === "Tab" && i.value && !e.shiftKey && (e.preventDefault(), s.value && c.value.length && o !== -1)) {
|
116
|
+
const t = c.value[o].id, a = s.value.querySelector(`#${t}`);
|
105
117
|
a && a instanceof HTMLElement && a.focus();
|
106
118
|
}
|
107
119
|
}, H = (e) => {
|
108
120
|
const o = e.target;
|
109
121
|
if (o && o instanceof HTMLElement) {
|
110
122
|
let n = !0;
|
111
|
-
|
123
|
+
s.value && s.value.contains(o) && (n = !1), n && f();
|
112
124
|
}
|
113
125
|
}, M = (e) => {
|
114
126
|
const o = e.target;
|
115
127
|
if (o && o instanceof HTMLElement) {
|
116
128
|
let n = !0;
|
117
|
-
|
129
|
+
s.value && s.value.contains(o) && (n = !1), n && f();
|
118
130
|
}
|
119
|
-
},
|
131
|
+
}, A = (e) => {
|
120
132
|
var o;
|
121
|
-
if (
|
122
|
-
if (((o = document.activeElement) == null ? void 0 : o.id) !==
|
123
|
-
const n = document.querySelector(`#${
|
124
|
-
n
|
133
|
+
if (i.value && e.key === "Escape") {
|
134
|
+
if (((o = document.activeElement) == null ? void 0 : o.id) !== u) {
|
135
|
+
const n = document.querySelector(`#${u}`);
|
136
|
+
n && n.focus();
|
125
137
|
}
|
126
|
-
|
138
|
+
f();
|
127
139
|
}
|
128
|
-
},
|
129
|
-
|
130
|
-
},
|
131
|
-
|
140
|
+
}, E = async () => {
|
141
|
+
N(), await ue(50), i.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", A, { passive: !0 });
|
142
|
+
}, f = async () => {
|
143
|
+
i.value = !1, G();
|
132
144
|
};
|
133
|
-
|
134
|
-
e || (document.removeEventListener("click", H), document.removeEventListener("focusin", M), document.removeEventListener("keydown",
|
135
|
-
})
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
onClick: P,
|
158
|
-
onKeydown: V,
|
159
|
-
disabled: e.disabled
|
160
|
-
},
|
145
|
+
oe(i, (e) => {
|
146
|
+
e || (document.removeEventListener("click", H), document.removeEventListener("focusin", M), document.removeEventListener("keydown", A));
|
147
|
+
});
|
148
|
+
const { width: X } = me(
|
149
|
+
k,
|
150
|
+
{ width: 0, height: 0 },
|
151
|
+
{
|
152
|
+
box: "border-box"
|
153
|
+
}
|
154
|
+
), Y = g(() => {
|
155
|
+
if (l.width) {
|
156
|
+
const { value: e, unit: o } = ve(l.width);
|
157
|
+
return o === "%" ? k.value ? `${X.value * (e / 100)}px` : "0px" : `${e}px`;
|
158
|
+
}
|
159
|
+
return "0px";
|
160
|
+
});
|
161
|
+
return (e, o) => (w(), D(L, null, [
|
162
|
+
p(e.$slots, "activator", ne(ae({
|
163
|
+
props: {
|
164
|
+
"aria-expanded": m(I) ? i.value : !1,
|
165
|
+
"aria-controls": m(I) ? `menu_${m(u)}` : void 0,
|
166
|
+
id: m(u),
|
167
|
+
onClick: J,
|
168
|
+
onKeydown: Q,
|
161
169
|
disabled: e.disabled,
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
},
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
170
|
+
ref: z
|
171
|
+
},
|
172
|
+
disabled: e.disabled,
|
173
|
+
open: i.value,
|
174
|
+
placement: e.placement
|
175
|
+
}))),
|
176
|
+
F(fe, B({
|
177
|
+
ref: "popover",
|
178
|
+
modelValue: i.value,
|
179
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => i.value = n),
|
180
|
+
anchor: h.value,
|
181
|
+
"arrow-padding": e.arrowPadding,
|
182
|
+
class: ["bb-dropdown", {
|
183
|
+
[`bb-dropdown--${e.theme}`]: !0
|
184
|
+
}],
|
185
|
+
eager: e.eager,
|
186
|
+
offset: e.offset,
|
187
|
+
padding: e.padding,
|
188
|
+
placement: e.placement,
|
189
|
+
"transition-duration": e.transitionDuration
|
190
|
+
}, e.$attrs), {
|
191
|
+
default: O(() => [
|
192
|
+
V("span", {
|
193
|
+
id: `menu_${m(u)}`,
|
194
|
+
"aria-labelledby": m(u),
|
195
|
+
"aria-role": "menu",
|
196
|
+
class: "bb-dropdown__items-container",
|
197
|
+
inert: !i.value,
|
198
|
+
style: ie({ width: Y.value })
|
184
199
|
}, [
|
185
|
-
|
186
|
-
disabled:
|
187
|
-
|
188
|
-
|
189
|
-
open: l.value,
|
190
|
-
placement: e.placement,
|
191
|
-
text: t.text
|
200
|
+
p(e.$slots, "prepend", {
|
201
|
+
disabled: e.disabled,
|
202
|
+
open: i.value,
|
203
|
+
placement: e.placement
|
192
204
|
}),
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
},
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
205
|
+
(w(!0), D(L, null, se(c.value, ({ original: n, ...t }, a) => (w(), D(L, {
|
206
|
+
key: t.key
|
207
|
+
}, [
|
208
|
+
p(e.$slots, "item:prepend", {
|
209
|
+
disabled: t.disabled,
|
210
|
+
index: a,
|
211
|
+
item: e.items[a],
|
212
|
+
open: i.value,
|
213
|
+
placement: e.placement,
|
214
|
+
text: t.text
|
215
|
+
}),
|
216
|
+
F(ce, B({
|
217
|
+
"aria-role": "menuitem",
|
218
|
+
class: ["bb-dropdown__item", {
|
219
|
+
"bb-dropdown__item--first": a === 0,
|
220
|
+
"bb-dropdown__item--last": a === e.items.length - 1
|
221
|
+
}],
|
222
|
+
"data-dropdown-item": !0,
|
223
|
+
ref_for: !0
|
224
|
+
}, t), {
|
225
|
+
default: O(() => [
|
226
|
+
p(e.$slots, t.key, {
|
227
|
+
disabled: t.disabled,
|
228
|
+
index: a,
|
229
|
+
item: n,
|
230
|
+
open: i.value,
|
231
|
+
placement: e.placement,
|
232
|
+
text: t.text
|
233
|
+
}, () => [
|
234
|
+
t["prepend:icon"] ? (w(), K(R, {
|
235
|
+
key: 0,
|
236
|
+
class: "item__prepend-icon",
|
237
|
+
type: t["prepend:icon"]
|
238
|
+
}, null, 8, ["type"])) : P("", !0),
|
239
|
+
V("span", ye, re(t.text), 1),
|
240
|
+
t["append:icon"] ? (w(), K(R, {
|
241
|
+
key: 1,
|
242
|
+
class: "item__append-icon",
|
243
|
+
type: t["append:icon"]
|
244
|
+
}, null, 8, ["type"])) : P("", !0)
|
245
|
+
])
|
246
|
+
]),
|
247
|
+
_: 2
|
248
|
+
}, 1040, ["class"]),
|
249
|
+
p(e.$slots, "item:append", {
|
250
|
+
disabled: t.disabled,
|
251
|
+
index: a,
|
252
|
+
item: e.items[a],
|
253
|
+
open: i.value,
|
254
|
+
placement: e.placement,
|
255
|
+
text: t.text
|
256
|
+
})
|
257
|
+
], 64))), 128)),
|
258
|
+
p(e.$slots, "append", {
|
259
|
+
disabled: e.disabled,
|
260
|
+
open: i.value,
|
261
|
+
placement: e.placement
|
233
262
|
})
|
234
|
-
],
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
})
|
240
|
-
], 12, se)
|
241
|
-
]),
|
242
|
-
_: 3
|
243
|
-
}, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "render-content", "transition-duration"]));
|
263
|
+
], 12, be)
|
264
|
+
]),
|
265
|
+
_: 3
|
266
|
+
}, 16, ["modelValue", "anchor", "arrow-padding", "class", "eager", "offset", "padding", "placement", "transition-duration"])
|
267
|
+
], 64));
|
244
268
|
}
|
245
269
|
});
|
246
270
|
export {
|
247
|
-
|
271
|
+
_e as default
|
248
272
|
};
|
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 "./index240.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"
|
@@ -17,7 +17,6 @@ const O = { class: "bb-dropdown-button__content" }, R = {
|
|
17
17
|
__name: "BbDropdownButton",
|
18
18
|
props: {
|
19
19
|
arrowPadding: {},
|
20
|
-
block: { type: Boolean },
|
21
20
|
disabled: { type: Boolean },
|
22
21
|
eager: { type: Boolean },
|
23
22
|
id: {},
|
@@ -30,6 +29,7 @@ const O = { class: "bb-dropdown-button__content" }, R = {
|
|
30
29
|
width: {},
|
31
30
|
autoLoading: { type: Boolean, default: !0 },
|
32
31
|
"append:icon": {},
|
32
|
+
block: { type: Boolean },
|
33
33
|
disabledWhileLoading: { type: Boolean, default: !0 },
|
34
34
|
loading: { type: Boolean },
|
35
35
|
"prepend:icon": {},
|
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 "./index269.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("./index268.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,11 +1,11 @@
|
|
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 "./index224.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
6
|
-
size: { default: "md" },
|
7
6
|
color: {},
|
8
|
-
type: {}
|
7
|
+
type: {},
|
8
|
+
size: { default: "md" }
|
9
9
|
},
|
10
10
|
setup(m) {
|
11
11
|
var l, a;
|
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 "./index277.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as P, mergeModels as T, useModel as q, computed as v, ref as z, watch as A, onMounted as H, createElementBlock as r, openBlock as d, withModifiers as K, normalizeStyle as R, normalizeClass as U, unref as p, createCommentVNode as y, Fragment as j, createElementVNode as t, renderSlot as l, createTextVNode as G, toDisplayString as D, nextTick as J } from "vue";
|
2
|
-
import { parseSize as Q } from "./
|
2
|
+
import { parseSize as Q } from "./index259.js";
|
3
3
|
import { useId as S } from "./index8.js";
|
4
|
-
import { useLocale as X } from "./
|
4
|
+
import { useLocale as X } from "./index240.js";
|
5
5
|
import { useMobile as Y } from "./index9.js";
|
6
|
-
import { useUntil as Z } from "./
|
6
|
+
import { useUntil as Z } from "./index247.js";
|
7
7
|
import { wait as h } from "./index138.js";
|
8
8
|
const x = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], ee = {
|
9
9
|
ref: "header",
|
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 "./index240.js";
|
8
8
|
import { useRoute as J } from "./index145.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",
|