bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76
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/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +1 -1
- package/dist/ai/BbDatePickerInput.md +1 -1
- package/dist/ai/BbDialog.md +3 -2
- package/dist/ai/BbDropdown.md +23 -21
- package/dist/ai/BbDropdownButton.md +13 -11
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbSelect.md +153 -43
- package/dist/ai/BbSelectPopover.md +115 -9
- package/dist/ai/BbTable.md +1 -1
- package/dist/ai/BbTimePicker.md +1 -1
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/GroupedListBox.md +2 -2
- package/dist/ai/ListBox.md +3 -2
- package/dist/ai/changelog.json +153 -7
- package/dist/ai/components.json +12 -12
- package/dist/ai/guides/agent-contract.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/v2-to-v3.md +48 -19
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +19 -17
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
- package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +44 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
- package/dist/ai/manifest/components/BbTable.tree.json +5 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +9 -2
- package/dist/ai/source/BbBadge.md +6 -2
- package/dist/ai/source/BbBreadcrumbs.md +5 -2
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +10 -6
- package/dist/ai/source/BbColorPalette.md +5 -2
- package/dist/ai/source/BbDatePickerInput.md +7 -2
- package/dist/ai/source/BbDropdown.md +91 -66
- package/dist/ai/source/BbDropdownButton.md +36 -19
- package/dist/ai/source/BbDropdownGroup.md +91 -66
- package/dist/ai/source/BbGallery.md +6 -5
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +130 -106
- package/dist/ai/source/BbSelectPopover.md +128 -21
- package/dist/ai/source/BbTable.md +42 -9
- package/dist/ai/source/BbTimePickerInput.md +6 -2
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +7 -2
- package/dist/ai/source/GroupedListBox.md +22 -3
- package/dist/ai/source/ListBox.md +7 -1
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
- package/dist/components/BbDropdown/types.d.ts +51 -53
- package/dist/components/BbDropdown/types.js +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
- package/dist/components/BbDropdownButton/types.d.ts +12 -10
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +101 -105
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +22 -13
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/llms-full.txt +477 -187
- package/dist/llms-medium.txt +25 -24
- package/dist/llms.txt +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +4 -4
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +319 -306
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +73 -12
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -3,35 +3,36 @@ import { isNotNil as t } from "../../utilities/functions/isNotNil.js";
|
|
|
3
3
|
import { hash as n } from "../../utilities/functions/hash.js";
|
|
4
4
|
import { useLocale as r } from "../../composables/useLocale.js";
|
|
5
5
|
import { useListboxFocus as ee } from "../../composables/useListboxFocus.js";
|
|
6
|
-
import { useTouchRowLadder as
|
|
7
|
-
import { listboxOptionFontSize as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import { useTouchRowLadder as i } from "../../composables/useSheetSurface.js";
|
|
7
|
+
import { listboxOptionFontSize as te, listboxOptionHeight as ne } from "../../utilities/misc/listboxMetrics.js";
|
|
8
|
+
import a from "../BbIcon/BbIcon.vue.js";
|
|
9
|
+
import re from "../ErrorIcon/ErrorIcon.vue.js";
|
|
10
10
|
import o from "../../assets/svgs/check_stroke.svg_raw.js";
|
|
11
11
|
import { transitions as s } from "../../utilities/misc/transitions.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { useInternalIcon as ie } from "../../composables/useInternalIcon.js";
|
|
13
|
+
import { Fragment as ae, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeProps as g, normalizeClass as _, normalizeStyle as v, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useId as oe, useSlots as se, useTemplateRef as T, watch as E, withModifiers as D } from "vue";
|
|
14
|
+
import { useVirtualizer as ce } from "@tanstack/vue-virtual";
|
|
14
15
|
// src/components/FlatListBox/FlatListBox.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
16
|
+
var le = { class: "bb-listbox__outer-container scrollbar-border" }, ue = {
|
|
16
17
|
ref: "inner",
|
|
17
18
|
class: "bb-listbox__inner-container",
|
|
18
19
|
tabindex: "-1"
|
|
19
|
-
},
|
|
20
|
+
}, de = {
|
|
20
21
|
class: "bb-listbox__status",
|
|
21
22
|
role: "status"
|
|
22
|
-
},
|
|
23
|
+
}, fe = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "bb-listbox__loading"
|
|
25
|
-
},
|
|
26
|
+
}, pe = {
|
|
26
27
|
key: 1,
|
|
27
28
|
class: "bb-listbox__empty"
|
|
28
|
-
},
|
|
29
|
+
}, me = [
|
|
29
30
|
"id",
|
|
30
31
|
"aria-activedescendant",
|
|
31
32
|
"aria-label",
|
|
32
33
|
"aria-labelledby",
|
|
33
34
|
"aria-multiselectable"
|
|
34
|
-
],
|
|
35
|
+
], he = [
|
|
35
36
|
"id",
|
|
36
37
|
"aria-describedby",
|
|
37
38
|
"aria-disabled",
|
|
@@ -41,16 +42,16 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
41
42
|
"aria-setsize",
|
|
42
43
|
"data-index",
|
|
43
44
|
"onMouseenter"
|
|
44
|
-
],
|
|
45
|
+
], ge = {
|
|
45
46
|
key: 1,
|
|
46
47
|
class: "bb-listbox__item-text bb-listbox__create"
|
|
47
|
-
},
|
|
48
|
+
}, _e = { class: "bb-listbox__create-query" }, ve = {
|
|
48
49
|
key: 0,
|
|
49
50
|
class: "bb-listbox__option-content"
|
|
50
|
-
},
|
|
51
|
+
}, ye = ["id"], O = ["id"], k = {
|
|
51
52
|
key: 1,
|
|
52
53
|
class: "bb-listbox__loading bb-listbox__loading--below"
|
|
53
|
-
},
|
|
54
|
+
}, A = ["id"], j = /*@__PURE__*/ h({
|
|
54
55
|
__name: "FlatListBox",
|
|
55
56
|
props: {
|
|
56
57
|
passthrough: {},
|
|
@@ -76,15 +77,15 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
76
77
|
"option:unselected",
|
|
77
78
|
"focused:change"
|
|
78
79
|
],
|
|
79
|
-
setup(s, { expose: h, emit:
|
|
80
|
-
let
|
|
80
|
+
setup(s, { expose: h, emit: j }) {
|
|
81
|
+
let M = s, N = j, P = se(), F = ie("check", o), { t: I } = r(), L = T("inner"), be = T("listbox"), { touch: R } = i(), z = c(() => M.optionHeight ? M.optionHeight : ne(R.value, !!M.compact, !!M.described)), xe = c(() => te(R.value)), B = ce({
|
|
81
82
|
get count() {
|
|
82
|
-
return
|
|
83
|
+
return M.options.length;
|
|
83
84
|
},
|
|
84
85
|
getScrollElement: () => L.value ?? null,
|
|
85
86
|
estimateSize: () => z.value,
|
|
86
87
|
overscan: 5
|
|
87
|
-
}),
|
|
88
|
+
}), Se = c(() => B.value.getVirtualItems()), Ce = c(() => B.value.getTotalSize()), V = c(() => M.options.map((e, t) => ({
|
|
88
89
|
index: t,
|
|
89
90
|
text: e.text,
|
|
90
91
|
description: e.description,
|
|
@@ -96,31 +97,31 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
96
97
|
selected: !!e.selected,
|
|
97
98
|
disabled: !!e.disabled,
|
|
98
99
|
create: e.create
|
|
99
|
-
}))),
|
|
100
|
+
}))), we = oe(), H = (e) => `${we}-listbox-option-${e}`, U = (e) => `${H(e)}__label`, W = (e) => `${H(e)}__description`, G = (e) => !!e && !P.option, K = c(() => {
|
|
100
101
|
if (e(J.value)) return;
|
|
101
102
|
let t = V.value[J.value];
|
|
102
103
|
if (t) return H(t.valueHash);
|
|
103
|
-
}), q = c(() => V.value.length > 0), { focusedIndex: J, focusNext:
|
|
104
|
+
}), q = c(() => V.value.length > 0), { focusedIndex: J, focusNext: Te, focusPrevious: Ee, focusFirst: De, focusLast: Oe, focusFirstSelected: ke, focusLastSelected: Ae, focusByHash: je, focusByPointer: Me, blurPointerFocus: Ne, blur: Y, getHighlighted: Pe } = ee(() => M.options, { disabled: () => !M.open }), X = b(!1);
|
|
104
105
|
E(J, (e) => {
|
|
105
|
-
L.value && t(e) && !X.value && B.value.scrollToIndex(e, { align: "center" }), X.value = !1,
|
|
106
|
+
L.value && t(e) && !X.value && B.value.scrollToIndex(e, { align: "center" }), X.value = !1, N("focused:change", K.value);
|
|
106
107
|
});
|
|
107
108
|
let Z = () => B.value.scrollToOffset(0), Q = () => {
|
|
108
|
-
let e =
|
|
109
|
+
let e = M.options.findIndex((e) => e.selected);
|
|
109
110
|
e < 0 ? Z() : B.value.scrollToIndex(e, { align: "start" });
|
|
110
111
|
};
|
|
111
|
-
E(() =>
|
|
112
|
+
E(() => M.open && !!L.value, (e) => {
|
|
112
113
|
e && Q();
|
|
113
114
|
}, { flush: "post" });
|
|
114
|
-
let
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
115
|
+
let Fe = (e) => {
|
|
116
|
+
M.open && (X.value = !0, Me(e));
|
|
117
|
+
}, Ie = () => {
|
|
118
|
+
Ne();
|
|
118
119
|
}, $ = () => {
|
|
119
|
-
if (e(J.value) || !
|
|
120
|
+
if (e(J.value) || !M.open) return;
|
|
120
121
|
let t = V.value[J.value];
|
|
121
|
-
t.disabled || (t.selected ?
|
|
122
|
-
},
|
|
123
|
-
if (t.preventDefault(), L.value && t.target instanceof HTMLElement &&
|
|
122
|
+
t.disabled || (t.selected ? N("option:unselected", t) : N("option:selected", t));
|
|
123
|
+
}, Le = (t) => {
|
|
124
|
+
if (t.preventDefault(), L.value && t.target instanceof HTMLElement && be.value) {
|
|
124
125
|
let n = t.target, r = n.dataset.index;
|
|
125
126
|
for (; e(r) && n.parentElement;) n = n.parentElement, r = n.dataset.index;
|
|
126
127
|
if (r) {
|
|
@@ -129,21 +130,21 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
|
-
return E(() =>
|
|
133
|
+
return E(() => M.options, (e, t) => {
|
|
133
134
|
n(e.map((e) => e.valueHash)) !== n(t.map((e) => e.valueHash)) && (B.value.measure(), Y());
|
|
134
135
|
}, { flush: "post" }), E(z, () => {
|
|
135
136
|
B.value.measure();
|
|
136
137
|
}, { flush: "post" }), h({
|
|
137
|
-
focusNext:
|
|
138
|
-
focusPrevious:
|
|
139
|
-
focusFirst:
|
|
140
|
-
focusFirstSelected:
|
|
141
|
-
focusLast:
|
|
142
|
-
focusLastSelected:
|
|
138
|
+
focusNext: Te,
|
|
139
|
+
focusPrevious: Ee,
|
|
140
|
+
focusFirst: De,
|
|
141
|
+
focusFirstSelected: ke,
|
|
142
|
+
focusLast: Oe,
|
|
143
|
+
focusLastSelected: Ae,
|
|
143
144
|
blur: Y,
|
|
144
145
|
confirmOption: $,
|
|
145
|
-
focusByHash:
|
|
146
|
-
getHighlighted:
|
|
146
|
+
focusByHash: je,
|
|
147
|
+
getHighlighted: Pe,
|
|
147
148
|
getActiveDescendantId: () => K.value,
|
|
148
149
|
scrollToTop: Z,
|
|
149
150
|
scrollToSelected: Q
|
|
@@ -159,14 +160,14 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
159
160
|
style: v({
|
|
160
161
|
"--transition-duration": `${s.transitionDuration}ms`,
|
|
161
162
|
"--option-height": `${z.value}px`,
|
|
162
|
-
"--option-font-size":
|
|
163
|
+
"--option-font-size": xe.value
|
|
163
164
|
}),
|
|
164
|
-
onClickCapture:
|
|
165
|
+
onClickCapture: Le,
|
|
165
166
|
onClick: t[1] ||= D(() => {}, ["stop"]),
|
|
166
167
|
onMousedown: t[2] ||= D(() => {}, ["prevent"])
|
|
167
|
-
}, [f("span",
|
|
168
|
+
}, [f("span", le, [f("span", ue, [
|
|
168
169
|
S(e.$slots, "options:prepend"),
|
|
169
|
-
f("span",
|
|
170
|
+
f("span", de, [s.loading && !q.value ? (y(), d("span", fe, [S(e.$slots, "loading", {}, () => [p(C(s.loadingText || w(I)("common.loadingText").value), 1)])])) : !q.value && !s.failedText ? (y(), d("span", pe, [S(e.$slots, "empty", {}, () => [p(C(s.emptyText || w(I)("common.emptyText").value), 1)])])) : u("", !0)]),
|
|
170
171
|
q.value ? (y(), d("span", g({
|
|
171
172
|
key: 0,
|
|
172
173
|
id: s.id,
|
|
@@ -177,10 +178,10 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
177
178
|
"aria-multiselectable": s.multiple ? !0 : void 0,
|
|
178
179
|
class: "bb-listbox__list",
|
|
179
180
|
role: "listbox",
|
|
180
|
-
style: { height: `${
|
|
181
|
+
style: { height: `${Ce.value}px` },
|
|
181
182
|
tabindex: "-1",
|
|
182
|
-
onMouseleave:
|
|
183
|
-
}, s.passthrough?.list), [(y(!0), d(
|
|
183
|
+
onMouseleave: Ie
|
|
184
|
+
}, s.passthrough?.list), [(y(!0), d(ae, null, x(Se.value, (t) => (y(), d("span", g({
|
|
184
185
|
id: H(V.value[t.index].valueHash),
|
|
185
186
|
key: V.value[t.index].valueHash,
|
|
186
187
|
"aria-describedby": G(V.value[t.index].description) ? W(V.value[t.index].valueHash) : void 0,
|
|
@@ -188,7 +189,7 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
188
189
|
"aria-labelledby": G(V.value[t.index].description) ? U(V.value[t.index].valueHash) : void 0,
|
|
189
190
|
"aria-posinset": t.index + 1,
|
|
190
191
|
"aria-selected": V.value[t.index].selected,
|
|
191
|
-
"aria-setsize":
|
|
192
|
+
"aria-setsize": M.options.length,
|
|
192
193
|
class: ["bb-listbox__option", {
|
|
193
194
|
"bb-listbox__option--focused": w(J) === t.index,
|
|
194
195
|
"bb-listbox__option--selected": V.value[t.index].selected,
|
|
@@ -197,12 +198,12 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
197
198
|
"data-index": t.index,
|
|
198
199
|
role: "option",
|
|
199
200
|
style: { transform: `translateY(${t.start}px)` },
|
|
200
|
-
onMouseenter: D((e) =>
|
|
201
|
+
onMouseenter: D((e) => Fe(t.index), ["stop"])
|
|
201
202
|
}, { ref_for: !0 }, s.passthrough?.part?.("option", {
|
|
202
203
|
selected: V.value[t.index].selected,
|
|
203
204
|
disabled: V.value[t.index].disabled || void 0
|
|
204
205
|
}, V.value[t.index].item)), [
|
|
205
|
-
V.value[t.index]["prepend:icon"] ? (y(), l(
|
|
206
|
+
V.value[t.index]["prepend:icon"] ? (y(), l(a, g({
|
|
206
207
|
key: 0,
|
|
207
208
|
"aria-hidden": "true",
|
|
208
209
|
class: "bb-listbox__item-icon bb-listbox__option-prepend-icon",
|
|
@@ -211,9 +212,9 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
211
212
|
selected: V.value[t.index].selected,
|
|
212
213
|
disabled: V.value[t.index].disabled || void 0
|
|
213
214
|
}, V.value[t.index].item)), null, 16, ["icon"])) : u("", !0),
|
|
214
|
-
V.value[t.index].create ? (y(), d("span",
|
|
215
|
+
V.value[t.index].create ? (y(), d("span", ge, [
|
|
215
216
|
p(C(V.value[t.index].create.before), 1),
|
|
216
|
-
f("strong",
|
|
217
|
+
f("strong", _e, C(V.value[t.index].create.query), 1),
|
|
217
218
|
p(C(V.value[t.index].create.after), 1)
|
|
218
219
|
])) : S(e.$slots, "option", {
|
|
219
220
|
description: V.value[t.index].description,
|
|
@@ -224,26 +225,26 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
224
225
|
selected: V.value[t.index].selected,
|
|
225
226
|
text: V.value[t.index].text,
|
|
226
227
|
value: V.value[t.index].value
|
|
227
|
-
}, () => [V.value[t.index].description ? (y(), d("span",
|
|
228
|
+
}, () => [V.value[t.index].description ? (y(), d("span", ve, [f("span", g({
|
|
228
229
|
id: U(V.value[t.index].valueHash),
|
|
229
230
|
class: "bb-listbox__item-text"
|
|
230
231
|
}, { ref_for: !0 }, s.passthrough?.part?.("itemText", {
|
|
231
232
|
selected: V.value[t.index].selected,
|
|
232
233
|
disabled: V.value[t.index].disabled || void 0
|
|
233
|
-
}, V.value[t.index].item)), C(V.value[t.index].text), 17,
|
|
234
|
+
}, V.value[t.index].item)), C(V.value[t.index].text), 17, ye), f("span", g({
|
|
234
235
|
id: W(V.value[t.index].valueHash),
|
|
235
236
|
class: "bb-listbox__item-description"
|
|
236
237
|
}, { ref_for: !0 }, s.passthrough?.part?.("itemDescription", {
|
|
237
238
|
selected: V.value[t.index].selected,
|
|
238
239
|
disabled: V.value[t.index].disabled || void 0
|
|
239
|
-
}, V.value[t.index].item)), C(V.value[t.index].description), 17,
|
|
240
|
+
}, V.value[t.index].item)), C(V.value[t.index].description), 17, O)])) : (y(), d("span", g({
|
|
240
241
|
key: 1,
|
|
241
242
|
class: "bb-listbox__item-text"
|
|
242
243
|
}, { ref_for: !0 }, s.passthrough?.part?.("itemText", {
|
|
243
244
|
selected: V.value[t.index].selected,
|
|
244
245
|
disabled: V.value[t.index].disabled || void 0
|
|
245
246
|
}, V.value[t.index].item)), C(V.value[t.index].text), 17))], void 0, 2),
|
|
246
|
-
V.value[t.index]["append:icon"] && !V.value[t.index].selected ? (y(), l(
|
|
247
|
+
V.value[t.index]["append:icon"] && !V.value[t.index].selected ? (y(), l(a, g({
|
|
247
248
|
key: 3,
|
|
248
249
|
"aria-hidden": "true",
|
|
249
250
|
class: "bb-listbox__item-icon bb-listbox__option-append-icon",
|
|
@@ -252,33 +253,33 @@ var ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
|
|
|
252
253
|
selected: V.value[t.index].selected,
|
|
253
254
|
disabled: V.value[t.index].disabled || void 0
|
|
254
255
|
}, V.value[t.index].item)), null, 16, ["icon"])) : u("", !0),
|
|
255
|
-
m(
|
|
256
|
+
m(a, g({
|
|
256
257
|
"aria-hidden": "true",
|
|
257
|
-
class: "bb-listbox__option-check",
|
|
258
|
-
icon: w(
|
|
258
|
+
class: ["bb-listbox__option-check", { "bb-listbox__option-check--own": w(F) !== w(o) }],
|
|
259
|
+
icon: w(F)
|
|
259
260
|
}, { ref_for: !0 }, s.passthrough?.part?.("check", {
|
|
260
261
|
selected: V.value[t.index].selected,
|
|
261
262
|
disabled: V.value[t.index].disabled || void 0
|
|
262
|
-
}, V.value[t.index].item)), null, 16, ["icon"])
|
|
263
|
-
], 16,
|
|
264
|
-
s.loading && s.loadingBelow && q.value ? (y(), d("span",
|
|
263
|
+
}, V.value[t.index].item)), null, 16, ["class", "icon"])
|
|
264
|
+
], 16, he))), 128))], 16, me)) : u("", !0),
|
|
265
|
+
s.loading && s.loadingBelow && q.value ? (y(), d("span", k, [S(e.$slots, "loading", {}, () => [p(C(s.loadingText || w(I)("common.loadingText").value), 1)])])) : u("", !0),
|
|
265
266
|
S(e.$slots, "options:append")
|
|
266
267
|
], 512)]), s.failedText && !s.loading ? (y(), d("span", {
|
|
267
268
|
key: 0,
|
|
268
269
|
class: _(["bb-listbox__failed", { "bb-listbox__failed--divided": q.value }]),
|
|
269
270
|
role: "status"
|
|
270
271
|
}, [
|
|
271
|
-
m(
|
|
272
|
+
m(re, { class: "bb-listbox__failed-icon" }),
|
|
272
273
|
f("span", {
|
|
273
274
|
id: `${s.id}_failed`,
|
|
274
275
|
class: "bb-listbox__failed-text"
|
|
275
|
-
}, C(s.failedText), 9,
|
|
276
|
+
}, C(s.failedText), 9, A),
|
|
276
277
|
f("button", {
|
|
277
278
|
class: "bb-load-retry",
|
|
278
279
|
type: "button",
|
|
279
|
-
onClick: t[0] ||= (e) =>
|
|
280
|
+
onClick: t[0] ||= (e) => N("retry", e)
|
|
280
281
|
}, C(w(I)("common.retryLabel").value), 1)
|
|
281
282
|
], 2)) : u("", !0)], 38));
|
|
282
283
|
}
|
|
283
284
|
});
|
|
284
|
-
export {
|
|
285
|
+
export { j as default };
|