bitboss-ui 2.0.87 → 2.0.89
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/BaseButton/BaseButton.vue.d.ts +14 -7
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +17 -6
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +27 -224
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +14 -2
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +27 -18
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +155 -19
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +16 -2
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +10 -3
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +13 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +15 -6
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +27 -224
- package/dist/components/BaseRating/BaseRating.vue.d.ts +13 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +315 -6
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +17 -3
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +13 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +28 -217
- package/dist/components/BaseTag/BaseTag.vue.d.ts +200 -4
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +14 -3
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +13 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +28 -20
- package/dist/components/BbAlert/BbAlert.vue.d.ts +23 -16
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +14 -7
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +51 -44
- package/dist/components/BbButton/BbButton.vue.d.ts +13 -6
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +28 -19
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +32 -252
- package/dist/components/BbChip/BbChip.vue.d.ts +13 -6
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +13 -6
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +21 -12
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +24 -17
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +29 -22
- package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +177 -159
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +190 -183
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +26 -17
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +24 -15
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +102 -12
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +17 -3
- package/dist/components/BbPagination/BbPagination.vue.d.ts +33 -23
- package/dist/components/BbPopover/BbPopover.vue.d.ts +66 -54
- package/dist/components/BbRadio/BbRadio.vue.d.ts +28 -19
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +32 -252
- package/dist/components/BbRating/BbRating.vue.d.ts +21 -12
- package/dist/components/BbRatio/BbRatio.vue.d.ts +14 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -162
- package/dist/components/BbSlider/BbSlider.vue.d.ts +21 -12
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +13 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +28 -19
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +32 -252
- package/dist/components/BbTab/BbTab.vue.d.ts +89 -78
- package/dist/components/BbTable/BbTable.vue.d.ts +95 -78
- package/dist/components/BbTable/types.d.ts +0 -4
- package/dist/components/BbTag/BbTag.vue.d.ts +11 -2
- package/dist/components/BbTeleport.vue.d.ts +10 -3
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +21 -12
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +21 -12
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +13 -3
- package/dist/components/BbTree/BbTree.vue.d.ts +9 -2
- package/dist/components/ChipsBox.vue.d.ts +2 -2
- package/dist/components/CommaBox.vue.d.ts +2 -2
- package/dist/components/CommonFloating.vue.d.ts +15 -7
- package/dist/components/CommonInputInnerContainer.vue.d.ts +16 -7
- package/dist/components/CommonInputOuterContainer.vue.d.ts +12 -5
- package/dist/components/ListBox.vue.d.ts +25 -16
- package/dist/components/OptionsContainer.vue.d.ts +26 -88
- package/dist/components/Transitions/Slide.vue.d.ts +12 -5
- package/dist/components/Transitions/SlideBack.vue.d.ts +12 -5
- package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
- package/dist/composables/useToast.d.ts +1 -1
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index110.js +143 -135
- package/dist/index118.js +2 -2
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +6 -6
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +2 -81
- package/dist/index205.js +53 -2
- package/dist/index207.js +13 -4
- package/dist/index208.js +5 -2
- package/dist/index209.js +14 -124
- package/dist/index21.js +14 -14
- package/dist/index210.js +16 -5
- package/dist/index211.js +17 -123
- package/dist/index212.js +18 -18
- package/dist/index213.js +24 -13
- package/dist/index214.js +3 -16
- package/dist/index215.js +2 -2
- package/dist/index216.js +8 -2
- package/dist/index217.js +248 -40
- package/dist/index218.js +50 -18
- package/dist/index219.js +43 -5
- package/dist/index220.js +4 -52
- package/dist/index221.js +62 -0
- package/dist/index222.js +3 -13
- package/dist/index223.js +3 -5
- package/dist/index224.js +41 -12
- package/dist/index225.js +6 -369
- package/dist/index226.js +7 -4
- package/dist/index227.js +12 -164
- package/dist/index228.js +80 -83
- package/dist/index229.js +166 -0
- package/dist/index23.js +16 -16
- package/dist/index230.js +84 -19
- package/dist/index232.js +2 -3
- package/dist/index233.js +4 -8
- package/dist/index234.js +2 -249
- package/dist/index235.js +18 -50
- package/dist/index236.js +4 -44
- package/dist/index237.js +126 -5
- package/dist/index238.js +124 -59
- package/dist/index239.js +2 -3
- package/dist/index240.js +5 -7
- package/dist/index241.js +369 -3
- package/dist/index242.js +2 -2
- package/dist/index243.js +2 -18
- package/dist/index244.js +17 -105
- package/dist/index245.js +108 -0
- package/dist/{index246.js → index247.js} +1 -1
- package/dist/index25.js +6 -6
- package/dist/index251.js +9 -6
- package/dist/index252.js +23 -16
- package/dist/index253.js +88 -8
- package/dist/index255.js +6 -89
- package/dist/index256.js +18 -0
- package/dist/index258.js +3 -4
- package/dist/index260.js +7 -6
- package/dist/index261.js +281 -2
- package/dist/index262.js +6 -2
- package/dist/index263.js +2 -2
- package/dist/index266.js +2 -126
- package/dist/index267.js +2 -431
- package/dist/index268.js +2 -176
- package/dist/index269.js +2 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +4 -0
- package/dist/index271.js +2 -7
- package/dist/index272.js +1 -21
- package/dist/index273.js +30 -0
- package/dist/index274.js +21 -1
- package/dist/index276.js +224 -12
- package/dist/index277.js +429 -7
- package/dist/index278.js +2 -9
- package/dist/index279.js +87 -15
- package/dist/index280.js +3 -4
- package/dist/index281.js +11 -435
- package/dist/index282.js +7 -125
- package/dist/index283.js +8 -199
- package/dist/index284.js +17 -2
- package/dist/index285.js +4 -2
- package/dist/index286.js +4 -2
- package/dist/index287.js +176 -2
- package/dist/index288.js +200 -2
- package/dist/index289.js +2 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +65 -27
- package/dist/index291.js +2 -22
- package/dist/index292.js +128 -0
- package/dist/index293.js +22 -89
- package/dist/index295.js +5 -3
- package/dist/index296.js +436 -3
- package/dist/index297.js +126 -210
- package/dist/index298.js +3 -2
- package/dist/index299.js +3 -5
- package/dist/index300.js +204 -59
- package/dist/index301.js +3 -4
- package/dist/index302.js +2 -3
- package/dist/index303.js +3 -59
- package/dist/index304.js +58 -3
- package/dist/index305.js +6 -32
- package/dist/index306.js +17 -5
- package/dist/index309.js +32 -6
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -17
- package/dist/index313.js +2 -47
- package/dist/index314.js +47 -2
- package/dist/{index316.js → index315.js} +2 -2
- package/dist/index317.js +1 -1
- package/dist/index318.js +2 -47
- package/dist/index319.js +47 -2
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +14 -14
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index75.js +99 -85
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
- package/dist/utilities/functions/deburr.d.ts +1 -1
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/groupBy.d.ts +1 -1
- package/dist/utilities/functions/indexBy.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/replace.d.ts +1 -1
- package/dist/utilities/functions/retry.d.ts +1 -1
- package/dist/utilities/functions/throttle.d.ts +2 -2
- package/package.json +4 -4
- package/dist/index206.js +0 -4
- package/dist/index231.js +0 -29
- package/dist/index248.js +0 -4
- package/dist/index254.js +0 -25
- package/dist/index259.js +0 -283
- package/dist/index275.js +0 -5
- package/dist/index294.js +0 -226
package/dist/index75.js
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { findRightIndex as
|
3
|
-
import { useId as
|
4
|
-
import { wait as
|
5
|
-
import { useIntersectionObserver as
|
6
|
-
import
|
1
|
+
import { defineComponent as X, computed as A, ref as y, openBlock as h, createElementBlock as T, mergeProps as B, createElementVNode as H, renderSlot as w, normalizeProps as Y, guardReactiveProps as Z, unref as $, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
|
2
|
+
import { findRightIndex as I } from "./index251.js";
|
3
|
+
import { useId as ne } from "./index8.js";
|
4
|
+
import { wait as oe } from "./index131.js";
|
5
|
+
import { useIntersectionObserver as ae } from "./index132.js";
|
6
|
+
import le from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
9
|
-
import
|
8
|
+
import V from "./index252.js";
|
9
|
+
import se from "./index253.js";
|
10
10
|
/* empty css */
|
11
|
-
|
11
|
+
import j from "./index126.js";
|
12
|
+
/* empty css */
|
13
|
+
const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
12
14
|
__name: "BbDropdown",
|
13
15
|
props: {
|
14
16
|
arrowPadding: { default: 10 },
|
@@ -25,47 +27,47 @@ const pe = /* @__PURE__ */ J({
|
|
25
27
|
width: { default: 200 }
|
26
28
|
},
|
27
29
|
setup(z) {
|
28
|
-
const r = z,
|
29
|
-
let e = r.items.findIndex((t) => !t.disabled), o =
|
30
|
+
const r = z, u = r.id ?? `bb_${ne().id.value}`, m = A(() => {
|
31
|
+
let e = r.items.findIndex((t) => !t.disabled), o = I(
|
30
32
|
r.items,
|
31
33
|
(t) => !t.disabled
|
32
34
|
);
|
33
35
|
return r.items.map((t, n) => {
|
34
|
-
const i = `${
|
36
|
+
const i = `${u}-item-${t.key}`, { onClick: q, ...F } = t, Q = async () => {
|
35
37
|
await b();
|
36
|
-
const s = document.querySelector(`#${
|
38
|
+
const s = document.querySelector(`#${u}`);
|
37
39
|
if (s) s instanceof HTMLElement && s.focus();
|
38
40
|
else return;
|
39
41
|
q && q();
|
40
|
-
},
|
42
|
+
}, W = (s) => {
|
41
43
|
if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
|
42
44
|
if (!a.value) return;
|
43
45
|
if (s.key === "ArrowDown") {
|
44
46
|
if (s.preventDefault(), a.value && n !== o) {
|
45
|
-
const
|
46
|
-
|
47
|
+
const d = a.value.querySelector(
|
48
|
+
V.map((g) => `#${i} ~ ${g}`).join(",")
|
47
49
|
);
|
48
|
-
|
50
|
+
d && d instanceof HTMLElement && d.focus();
|
49
51
|
}
|
50
52
|
} else if (s.key === "ArrowUp") {
|
51
53
|
if (s.preventDefault(), a.value && n !== e) {
|
52
|
-
const
|
54
|
+
const d = I(r.items, (E, D) => D < n && !E.disabled), k = Array.from(
|
53
55
|
a.value.querySelectorAll(".bb-dropdown__item")
|
54
|
-
)[
|
56
|
+
)[d];
|
55
57
|
k && k instanceof HTMLElement && k.focus();
|
56
58
|
}
|
57
59
|
} else if (s.key === "Tab") {
|
58
60
|
if (n === o && !s.shiftKey) {
|
59
|
-
const
|
60
|
-
document.querySelectorAll(
|
61
|
-
), k =
|
62
|
-
(
|
63
|
-
), E =
|
61
|
+
const d = V.join(","), g = Array.from(
|
62
|
+
document.querySelectorAll(d)
|
63
|
+
), k = g.findIndex(
|
64
|
+
(D) => D.id === u
|
65
|
+
), E = g[k + 1];
|
64
66
|
if (E) E instanceof HTMLElement && (s.preventDefault(), b(), E.focus());
|
65
67
|
else return;
|
66
68
|
} else if (n === e && s.shiftKey) {
|
67
|
-
const
|
68
|
-
if (
|
69
|
+
const d = document.querySelector(`#${u}`);
|
70
|
+
if (d) d instanceof HTMLElement && (s.preventDefault(), d.focus());
|
69
71
|
else return;
|
70
72
|
}
|
71
73
|
}
|
@@ -75,34 +77,34 @@ const pe = /* @__PURE__ */ J({
|
|
75
77
|
...F,
|
76
78
|
disabled: F.disabled || r.disabled,
|
77
79
|
id: i,
|
78
|
-
onClick:
|
79
|
-
onKeydown:
|
80
|
+
onClick: Q,
|
81
|
+
onKeydown: W
|
80
82
|
};
|
81
83
|
});
|
82
|
-
}), v =
|
83
|
-
|
84
|
+
}), v = y(), a = y();
|
85
|
+
ae(
|
84
86
|
v,
|
85
87
|
([{ intersectionRatio: e }]) => {
|
86
88
|
e !== 1 && l.value && b();
|
87
89
|
},
|
88
90
|
{ threshold: [0, 1] }
|
89
91
|
);
|
90
|
-
const c =
|
91
|
-
c.value ||
|
92
|
-
},
|
93
|
-
let o = r.items.findIndex((n) => !n.disabled), t =
|
92
|
+
const c = y(!1), l = y(!1), p = y(!1), f = y(!0), R = () => {
|
93
|
+
c.value || p.value || (l.value ? b() : L());
|
94
|
+
}, U = async (e) => {
|
95
|
+
let o = r.items.findIndex((n) => !n.disabled), t = I(
|
94
96
|
r.items,
|
95
97
|
(n) => !n.disabled
|
96
98
|
);
|
97
99
|
if (e.key === "ArrowDown") {
|
98
|
-
if (e.preventDefault(),
|
99
|
-
if (
|
100
|
+
if (e.preventDefault(), p.value || c.value) return;
|
101
|
+
if (f.value && await L(), a.value && m.value.length && o !== -1) {
|
100
102
|
const n = m.value[o].id, i = a.value.querySelector(`#${n}`);
|
101
103
|
i && i instanceof HTMLElement && i.focus();
|
102
104
|
}
|
103
105
|
} else if (e.key === "ArrowUp") {
|
104
|
-
if (e.preventDefault(),
|
105
|
-
if (
|
106
|
+
if (e.preventDefault(), p.value || c.value) return;
|
107
|
+
if (f.value && await L(), a.value && m.value.length && t !== -1) {
|
106
108
|
const n = m.value[t].id, i = a.value.querySelector(`#${n}`);
|
107
109
|
i && i instanceof HTMLElement && i.focus();
|
108
110
|
}
|
@@ -110,66 +112,66 @@ const pe = /* @__PURE__ */ J({
|
|
110
112
|
const n = m.value[o].id, i = a.value.querySelector(`#${n}`);
|
111
113
|
i && i instanceof HTMLElement && i.focus();
|
112
114
|
}
|
113
|
-
},
|
115
|
+
}, M = (e) => {
|
114
116
|
const o = e.target;
|
115
117
|
if (o && o instanceof HTMLElement) {
|
116
118
|
let t = !0;
|
117
119
|
v.value && v.value.contains(o) && (t = !1), a.value && a.value.contains(o) && (t = !1), t && b();
|
118
120
|
}
|
119
|
-
},
|
121
|
+
}, S = (e) => {
|
120
122
|
const o = e.target;
|
121
123
|
if (o && o instanceof HTMLElement) {
|
122
124
|
let t = !0;
|
123
125
|
v.value && v.value.contains(o) && (t = !1), a.value && a.value.contains(o) && (t = !1), t && b();
|
124
126
|
}
|
125
|
-
},
|
127
|
+
}, _ = (e) => {
|
126
128
|
var o;
|
127
129
|
if (l.value && e.key === "Escape") {
|
128
|
-
if (((o = document.activeElement) == null ? void 0 : o.id) !==
|
129
|
-
const t = document.querySelector(`#${
|
130
|
+
if (((o = document.activeElement) == null ? void 0 : o.id) !== u) {
|
131
|
+
const t = document.querySelector(`#${u}`);
|
130
132
|
t instanceof HTMLElement && t.focus();
|
131
133
|
}
|
132
134
|
b();
|
133
135
|
}
|
134
|
-
},
|
135
|
-
|
136
|
+
}, G = y(!1), L = async () => {
|
137
|
+
G.value = !0, await oe(50), l.value = !0, document.addEventListener("click", M, { passive: !0 }), document.addEventListener("focusin", S, { passive: !0 }), document.addEventListener("keydown", _, { passive: !0 });
|
136
138
|
}, b = async () => {
|
137
|
-
l.value = !1, document.removeEventListener("click",
|
138
|
-
},
|
139
|
+
l.value = !1, document.removeEventListener("click", M), document.removeEventListener("focusin", S), document.removeEventListener("keydown", _);
|
140
|
+
}, J = A(() => ({
|
139
141
|
class: {
|
140
142
|
"bb-dropdown--block": r.block,
|
141
143
|
[`bb-dropdown--theme-${r.theme}`]: r.theme
|
142
144
|
}
|
143
145
|
}));
|
144
|
-
return (e, o) => (
|
145
|
-
|
146
|
+
return (e, o) => (h(), T("span", B({ class: "bb-dropdown" }, J.value), [
|
147
|
+
H("span", {
|
146
148
|
ref_key: "wrapper",
|
147
149
|
ref: v,
|
148
150
|
class: "bb-dropdown__wrapper"
|
149
151
|
}, [
|
150
|
-
|
152
|
+
w(e.$slots, "activator", Y(Z({
|
151
153
|
props: {
|
152
154
|
"aria-expanded": l.value,
|
153
|
-
"aria-controls": `menu_${
|
154
|
-
id:
|
155
|
-
onClick:
|
156
|
-
onKeydown:
|
155
|
+
"aria-controls": `menu_${$(u)}`,
|
156
|
+
id: $(u),
|
157
|
+
onClick: R,
|
158
|
+
onKeydown: U,
|
157
159
|
disabled: e.disabled
|
158
160
|
},
|
159
|
-
closed:
|
160
|
-
closing:
|
161
|
+
closed: f.value,
|
162
|
+
closing: p.value,
|
161
163
|
disabled: e.disabled,
|
162
164
|
open: l.value,
|
163
165
|
opening: c.value,
|
164
166
|
placement: e.placement
|
165
167
|
})))
|
166
168
|
], 512),
|
167
|
-
|
169
|
+
C(se, {
|
168
170
|
"arrow-padding": e.arrowPadding,
|
169
171
|
"base-class": "bb-dropdown",
|
170
172
|
"container-attributes": {
|
171
|
-
id: `menu_${
|
172
|
-
"aria-labelledby":
|
173
|
+
id: `menu_${$(u)}`,
|
174
|
+
"aria-labelledby": $(u),
|
173
175
|
"aria-role": "menu"
|
174
176
|
},
|
175
177
|
eager: e.eager,
|
@@ -181,27 +183,27 @@ const pe = /* @__PURE__ */ J({
|
|
181
183
|
"transition-duration": e.transitionDuration,
|
182
184
|
wrapper: v.value
|
183
185
|
}, {
|
184
|
-
default:
|
185
|
-
|
186
|
+
default: O(() => [
|
187
|
+
H("span", {
|
186
188
|
ref_key: "content",
|
187
189
|
ref: a,
|
188
190
|
class: "bb-dropdown__items-container",
|
189
|
-
style:
|
191
|
+
style: x({ width: `${e.width}px` })
|
190
192
|
}, [
|
191
|
-
|
192
|
-
closed:
|
193
|
-
closing:
|
193
|
+
w(e.$slots, "prepend", {
|
194
|
+
closed: f.value,
|
195
|
+
closing: p.value,
|
194
196
|
disabled: e.disabled,
|
195
197
|
open: l.value,
|
196
198
|
opening: c.value,
|
197
199
|
placement: e.placement
|
198
200
|
}),
|
199
|
-
(
|
201
|
+
(h(!0), T(K, null, ee(m.value, (t, n) => (h(), T(K, {
|
200
202
|
key: t.key
|
201
203
|
}, [
|
202
|
-
|
203
|
-
closed:
|
204
|
-
closing:
|
204
|
+
w(e.$slots, "item:prepend", {
|
205
|
+
closed: f.value,
|
206
|
+
closing: p.value,
|
205
207
|
disabled: t.disabled,
|
206
208
|
index: n,
|
207
209
|
item: e.items[n],
|
@@ -210,7 +212,7 @@ const pe = /* @__PURE__ */ J({
|
|
210
212
|
placement: e.placement,
|
211
213
|
text: t.text
|
212
214
|
}),
|
213
|
-
|
215
|
+
C(le, B({
|
214
216
|
"aria-role": "menuitem",
|
215
217
|
class: ["bb-dropdown__item", {
|
216
218
|
"bb-dropdown__item--first": n === 0,
|
@@ -219,10 +221,10 @@ const pe = /* @__PURE__ */ J({
|
|
219
221
|
"data-dropdown-item": !0,
|
220
222
|
ref_for: !0
|
221
223
|
}, t), {
|
222
|
-
default:
|
223
|
-
|
224
|
-
closed:
|
225
|
-
closing:
|
224
|
+
default: O(() => [
|
225
|
+
w(e.$slots, t.key, {
|
226
|
+
closed: f.value,
|
227
|
+
closing: p.value,
|
226
228
|
disabled: t.disabled,
|
227
229
|
index: n,
|
228
230
|
item: t,
|
@@ -231,9 +233,9 @@ const pe = /* @__PURE__ */ J({
|
|
231
233
|
placement: e.placement,
|
232
234
|
text: t.text
|
233
235
|
}, () => [
|
234
|
-
|
235
|
-
closed:
|
236
|
-
closing:
|
236
|
+
w(e.$slots, "item", {
|
237
|
+
closed: f.value,
|
238
|
+
closing: p.value,
|
237
239
|
disabled: t.disabled,
|
238
240
|
index: n,
|
239
241
|
item: t,
|
@@ -241,14 +243,26 @@ const pe = /* @__PURE__ */ J({
|
|
241
243
|
opening: c.value,
|
242
244
|
placement: e.placement,
|
243
245
|
text: t.text
|
244
|
-
})
|
246
|
+
}, () => [
|
247
|
+
t["prepend:icon"] ? (h(), P(j, {
|
248
|
+
key: 0,
|
249
|
+
class: "item__prepend-icon",
|
250
|
+
type: t["prepend:icon"]
|
251
|
+
}, null, 8, ["type"])) : N("", !0),
|
252
|
+
H("span", ie, te(t.text), 1),
|
253
|
+
t["append:icon"] ? (h(), P(j, {
|
254
|
+
key: 1,
|
255
|
+
class: "item__append-icon",
|
256
|
+
type: t["append:icon"]
|
257
|
+
}, null, 8, ["type"])) : N("", !0)
|
258
|
+
])
|
245
259
|
])
|
246
260
|
]),
|
247
261
|
_: 2
|
248
262
|
}, 1040, ["class"]),
|
249
|
-
|
250
|
-
closed:
|
251
|
-
closing:
|
263
|
+
w(e.$slots, "item:append", {
|
264
|
+
closed: f.value,
|
265
|
+
closing: p.value,
|
252
266
|
disabled: t.disabled,
|
253
267
|
index: n,
|
254
268
|
item: e.items[n],
|
@@ -258,9 +272,9 @@ const pe = /* @__PURE__ */ J({
|
|
258
272
|
text: t.text
|
259
273
|
})
|
260
274
|
], 64))), 128)),
|
261
|
-
|
262
|
-
closed:
|
263
|
-
closing:
|
275
|
+
w(e.$slots, "append", {
|
276
|
+
closed: f.value,
|
277
|
+
closing: p.value,
|
264
278
|
disabled: e.disabled,
|
265
279
|
open: l.value,
|
266
280
|
opening: c.value,
|
@@ -274,5 +288,5 @@ const pe = /* @__PURE__ */ J({
|
|
274
288
|
}
|
275
289
|
});
|
276
290
|
export {
|
277
|
-
|
291
|
+
ke as default
|
278
292
|
};
|
package/dist/index79.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, 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 "./index256.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index127.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("./index255.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index81.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index223.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as N, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, withCtx as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
|
2
|
-
import { useFocusTrap as ce } from "./
|
2
|
+
import { useFocusTrap as ce } from "./index224.js";
|
3
3
|
import { useId as A } from "./index8.js";
|
4
4
|
import { wait as E } from "./index131.js";
|
5
|
-
import { useModalsState as b } from "./
|
6
|
-
import de from "./
|
5
|
+
import { useModalsState as b } from "./index226.js";
|
6
|
+
import de from "./index227.js";
|
7
7
|
const fe = ["inert"], ve = { class: "bb-offcanvas-close" }, pe = ["aria-label"], ke = /* @__PURE__ */ te({
|
8
8
|
__name: "BbOffCanvas",
|
9
9
|
props: {
|
package/dist/index88.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
|
2
|
-
import { useFocusTrap as z } from "./
|
2
|
+
import { useFocusTrap as z } from "./index224.js";
|
3
3
|
import { useId as A } from "./index8.js";
|
4
4
|
import { useIntersectionObserver as R } from "./index132.js";
|
5
|
-
import { waitFor as j } from "./
|
5
|
+
import { waitFor as j } from "./index225.js";
|
6
6
|
import G from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import J from "./
|
8
|
+
import J from "./index253.js";
|
9
9
|
/* empty css */
|
10
|
-
import { useDebounceFn as K } from "./
|
10
|
+
import { useDebounceFn as K } from "./index228.js";
|
11
11
|
const re = /* @__PURE__ */ M({
|
12
12
|
__name: "BbPopover",
|
13
13
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, openBlock as l, createElementBlock 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 "./index204.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index130.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|