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.
Files changed (169) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbBreadcrumbs.md +1 -1
  5. package/dist/ai/BbButton.md +2 -2
  6. package/dist/ai/BbColorInput.md +1 -1
  7. package/dist/ai/BbColorPalette.md +1 -1
  8. package/dist/ai/BbConfirm.md +1 -1
  9. package/dist/ai/BbDatePicker.md +1 -1
  10. package/dist/ai/BbDatePickerInput.md +1 -1
  11. package/dist/ai/BbDialog.md +3 -2
  12. package/dist/ai/BbDropdown.md +23 -21
  13. package/dist/ai/BbDropdownButton.md +13 -11
  14. package/dist/ai/BbGallery.md +3 -2
  15. package/dist/ai/BbIcon.md +10 -10
  16. package/dist/ai/BbOffCanvas.md +3 -2
  17. package/dist/ai/BbPopover.md +1 -1
  18. package/dist/ai/BbSelect.md +153 -43
  19. package/dist/ai/BbSelectPopover.md +115 -9
  20. package/dist/ai/BbTable.md +1 -1
  21. package/dist/ai/BbTimePicker.md +1 -1
  22. package/dist/ai/BbTimePickerInput.md +1 -1
  23. package/dist/ai/GroupedListBox.md +2 -2
  24. package/dist/ai/ListBox.md +3 -2
  25. package/dist/ai/changelog.json +153 -7
  26. package/dist/ai/components.json +12 -12
  27. package/dist/ai/guides/agent-contract.md +1 -1
  28. package/dist/ai/guides/calendars-and-digits.md +1 -1
  29. package/dist/ai/guides/eslint-rules.md +1 -1
  30. package/dist/ai/guides/icons-policy.md +32 -11
  31. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  32. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  33. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  34. package/dist/ai/guides/migration/v2-to-v3.md +48 -19
  35. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  36. package/dist/ai/guides/passthrough.md +58 -58
  37. package/dist/ai/helpers/inertia/manifest.json +1 -1
  38. package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
  39. package/dist/ai/manifest/components/BbDropdown.json +19 -17
  40. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
  41. package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
  42. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  43. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  45. package/dist/ai/manifest/components/BbSelect.json +44 -40
  46. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  47. package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
  48. package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
  49. package/dist/ai/manifest/components/BbTable.tree.json +5 -1
  50. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  51. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  52. package/dist/ai/manifest/components/ListBox.json +1 -1
  53. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  54. package/dist/ai/manifest/index.json +2 -2
  55. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  56. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  57. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  58. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  59. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  60. package/dist/ai/recipes/vue/onboarding.md +2 -2
  61. package/dist/ai/source/BbAccordion.md +4 -5
  62. package/dist/ai/source/BbAvatar.md +9 -2
  63. package/dist/ai/source/BbBadge.md +6 -2
  64. package/dist/ai/source/BbBreadcrumbs.md +5 -2
  65. package/dist/ai/source/BbCalendar.md +8 -6
  66. package/dist/ai/source/BbCarousel.md +10 -6
  67. package/dist/ai/source/BbColorPalette.md +5 -2
  68. package/dist/ai/source/BbDatePickerInput.md +7 -2
  69. package/dist/ai/source/BbDropdown.md +91 -66
  70. package/dist/ai/source/BbDropdownButton.md +36 -19
  71. package/dist/ai/source/BbDropdownGroup.md +91 -66
  72. package/dist/ai/source/BbGallery.md +6 -5
  73. package/dist/ai/source/BbPagination.md +12 -28
  74. package/dist/ai/source/BbRating.md +4 -4
  75. package/dist/ai/source/BbSelect.md +130 -106
  76. package/dist/ai/source/BbSelectPopover.md +128 -21
  77. package/dist/ai/source/BbTable.md +42 -9
  78. package/dist/ai/source/BbTimePickerInput.md +6 -2
  79. package/dist/ai/source/ClearableButton.md +4 -2
  80. package/dist/ai/source/ErrorIcon.md +4 -3
  81. package/dist/ai/source/FlatListBox.md +7 -2
  82. package/dist/ai/source/GroupedListBox.md +22 -3
  83. package/dist/ai/source/ListBox.md +7 -1
  84. package/dist/ai/source/WarningIcon.md +4 -3
  85. package/dist/assets/svgs/close.svg_raw.js +1 -1
  86. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  87. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  88. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
  89. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
  90. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
  91. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  92. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  93. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
  94. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  95. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
  96. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  97. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
  98. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
  99. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
  100. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
  101. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
  102. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
  103. package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
  104. package/dist/components/BbDropdown/types.d.ts +51 -53
  105. package/dist/components/BbDropdown/types.js +2 -0
  106. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
  107. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
  108. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
  109. package/dist/components/BbDropdownButton/types.d.ts +12 -10
  110. package/dist/components/BbDropdownButton/types.js +2 -0
  111. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  112. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
  113. package/dist/components/BbIcon/iconCache.js +1 -1
  114. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  115. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  116. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  117. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  118. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  119. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  120. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  121. package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
  122. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
  123. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  124. package/dist/components/BbSelect/types.d.ts +101 -105
  125. package/dist/components/BbSelect/types.js +1 -27
  126. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
  127. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
  128. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  129. package/dist/components/BbSelectPopover/types.d.ts +22 -13
  130. package/dist/components/BbSelectPopover/types.js +3 -1
  131. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  132. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  133. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
  134. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  135. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  136. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  137. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
  138. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
  139. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
  140. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  141. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  142. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  143. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  144. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
  145. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
  146. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  147. package/dist/composables/useInternalIcon.js +25 -0
  148. package/dist/icon-scan.d.ts +1 -1
  149. package/dist/llms-full.txt +477 -187
  150. package/dist/llms-medium.txt +25 -24
  151. package/dist/llms.txt +1 -1
  152. package/dist/nuxt.js +1 -1
  153. package/dist/styles.css +2 -2
  154. package/dist/types/Config.d.ts +8 -1
  155. package/dist/types/ConfigDefaults.d.ts +10 -2
  156. package/dist/types/internalIcons.d.ts +89 -0
  157. package/dist/types/internalIcons.js +158 -0
  158. package/dist/types/ptComponentMap.d.ts +4 -4
  159. package/dist/utils/configDefaults.js +75 -64
  160. package/dist/utils/iconsOption.js +48 -0
  161. package/dist/utils/versionCheck.js +1 -1
  162. package/dist/vite-plugin.d.ts +10 -16
  163. package/dist/vite.js +319 -306
  164. package/llms.txt +1 -1
  165. package/package.json +1 -1
  166. package/scripts/lib/adoption-checklist.json +1 -1
  167. package/scripts/lib/update-install.mjs +48 -0
  168. package/scripts/lib/validate-bb-markup.mjs +73 -12
  169. 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 te } from "../../composables/useSheetSurface.js";
7
- import { listboxOptionFontSize as ne, listboxOptionHeight as re } from "../../utilities/misc/listboxMetrics.js";
8
- import i from "../BbIcon/BbIcon.vue.js";
9
- import a from "../ErrorIcon/ErrorIcon.vue.js";
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 { Fragment as ie, 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 ae, useSlots as oe, useTemplateRef as T, watch as E, withModifiers as D } from "vue";
13
- import { useVirtualizer as se } from "@tanstack/vue-virtual";
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 ce = { class: "bb-listbox__outer-container scrollbar-border" }, le = {
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
- }, ue = {
20
+ }, de = {
20
21
  class: "bb-listbox__status",
21
22
  role: "status"
22
- }, de = {
23
+ }, fe = {
23
24
  key: 0,
24
25
  class: "bb-listbox__loading"
25
- }, fe = {
26
+ }, pe = {
26
27
  key: 1,
27
28
  class: "bb-listbox__empty"
28
- }, pe = [
29
+ }, me = [
29
30
  "id",
30
31
  "aria-activedescendant",
31
32
  "aria-label",
32
33
  "aria-labelledby",
33
34
  "aria-multiselectable"
34
- ], me = [
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
- ], he = {
45
+ ], ge = {
45
46
  key: 1,
46
47
  class: "bb-listbox__item-text bb-listbox__create"
47
- }, ge = { class: "bb-listbox__create-query" }, _e = {
48
+ }, _e = { class: "bb-listbox__create-query" }, ve = {
48
49
  key: 0,
49
50
  class: "bb-listbox__option-content"
50
- }, O = ["id"], k = ["id"], A = {
51
+ }, ye = ["id"], O = ["id"], k = {
51
52
  key: 1,
52
53
  class: "bb-listbox__loading bb-listbox__loading--below"
53
- }, j = ["id"], M = /*@__PURE__*/ h({
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: M }) {
80
- let N = s, P = M, F = oe(), { t: I } = r(), L = T("inner"), ve = T("listbox"), { touch: R } = te(), z = c(() => N.optionHeight ? N.optionHeight : re(R.value, !!N.compact, !!N.described)), ye = c(() => ne(R.value)), B = se({
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 N.options.length;
83
+ return M.options.length;
83
84
  },
84
85
  getScrollElement: () => L.value ?? null,
85
86
  estimateSize: () => z.value,
86
87
  overscan: 5
87
- }), be = c(() => B.value.getVirtualItems()), xe = c(() => B.value.getTotalSize()), V = c(() => N.options.map((e, t) => ({
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
- }))), Se = ae(), H = (e) => `${Se}-listbox-option-${e}`, U = (e) => `${H(e)}__label`, W = (e) => `${H(e)}__description`, G = (e) => !!e && !F.option, K = c(() => {
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: Ce, focusPrevious: we, focusFirst: Te, focusLast: Ee, focusFirstSelected: De, focusLastSelected: Oe, focusByHash: ke, focusByPointer: Ae, blurPointerFocus: je, blur: Y, getHighlighted: Me } = ee(() => N.options, { disabled: () => !N.open }), X = b(!1);
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, P("focused:change", K.value);
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 = N.options.findIndex((e) => e.selected);
109
+ let e = M.options.findIndex((e) => e.selected);
109
110
  e < 0 ? Z() : B.value.scrollToIndex(e, { align: "start" });
110
111
  };
111
- E(() => N.open && !!L.value, (e) => {
112
+ E(() => M.open && !!L.value, (e) => {
112
113
  e && Q();
113
114
  }, { flush: "post" });
114
- let Ne = (e) => {
115
- N.open && (X.value = !0, Ae(e));
116
- }, Pe = () => {
117
- je();
115
+ let Fe = (e) => {
116
+ M.open && (X.value = !0, Me(e));
117
+ }, Ie = () => {
118
+ Ne();
118
119
  }, $ = () => {
119
- if (e(J.value) || !N.open) return;
120
+ if (e(J.value) || !M.open) return;
120
121
  let t = V.value[J.value];
121
- t.disabled || (t.selected ? P("option:unselected", t) : P("option:selected", t));
122
- }, Fe = (t) => {
123
- if (t.preventDefault(), L.value && t.target instanceof HTMLElement && ve.value) {
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(() => N.options, (e, t) => {
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: Ce,
138
- focusPrevious: we,
139
- focusFirst: Te,
140
- focusFirstSelected: De,
141
- focusLast: Ee,
142
- focusLastSelected: Oe,
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: ke,
146
- getHighlighted: Me,
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": ye.value
163
+ "--option-font-size": xe.value
163
164
  }),
164
- onClickCapture: Fe,
165
+ onClickCapture: Le,
165
166
  onClick: t[1] ||= D(() => {}, ["stop"]),
166
167
  onMousedown: t[2] ||= D(() => {}, ["prevent"])
167
- }, [f("span", ce, [f("span", le, [
168
+ }, [f("span", le, [f("span", ue, [
168
169
  S(e.$slots, "options:prepend"),
169
- f("span", ue, [s.loading && !q.value ? (y(), d("span", de, [S(e.$slots, "loading", {}, () => [p(C(s.loadingText || w(I)("common.loadingText").value), 1)])])) : !q.value && !s.failedText ? (y(), d("span", fe, [S(e.$slots, "empty", {}, () => [p(C(s.emptyText || w(I)("common.emptyText").value), 1)])])) : u("", !0)]),
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: `${xe.value}px` },
181
+ style: { height: `${Ce.value}px` },
181
182
  tabindex: "-1",
182
- onMouseleave: Pe
183
- }, s.passthrough?.list), [(y(!0), d(ie, null, x(be.value, (t) => (y(), d("span", g({
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": N.options.length,
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) => Ne(t.index), ["stop"])
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(i, g({
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", he, [
215
+ V.value[t.index].create ? (y(), d("span", ge, [
215
216
  p(C(V.value[t.index].create.before), 1),
216
- f("strong", ge, C(V.value[t.index].create.query), 1),
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", _e, [f("span", g({
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, O), f("span", g({
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, k)])) : (y(), d("span", g({
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(i, g({
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(i, g({
256
+ m(a, g({
256
257
  "aria-hidden": "true",
257
- class: "bb-listbox__option-check",
258
- icon: w(o)
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, me))), 128))], 16, pe)) : u("", !0),
264
- s.loading && s.loadingBelow && q.value ? (y(), d("span", A, [S(e.$slots, "loading", {}, () => [p(C(s.loadingText || w(I)("common.loadingText").value), 1)])])) : u("", !0),
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(a, { class: "bb-listbox__failed-icon" }),
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, j),
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) => P("retry", 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 { M as default };
285
+ export { j as default };