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
@@ -8,38 +8,40 @@ import { useMobile as re } from "../../composables/useMobile.js";
8
8
  import { useConfigDefaults as r } from "../../composables/useConfigDefaults.js";
9
9
  import { useFormBinding as ie } from "../../composables/useFormBinding.js";
10
10
  import { useOpenProp as i } from "../../composables/useOpenModel.js";
11
- import { useLocale as a } from "../../composables/useLocale.js";
12
- import { SELECT_CONTROL_NATIVE_ATTRS as o, formControlPtActive as s, usePassthrough as ae, variantPt as c } from "../../composables/usePassthrough.js";
13
- import { removedPropsFor as l } from "../../deprecation/removedProps.js";
14
- import { warnRemovedAttrs as u } from "../../utilities/functions/warnRemovedAttrs.js";
15
- import { hasVnodeListener as d } from "../../utilities/functions/hasVnodeListener.js";
16
- import { isNotEmpty as f } from "../../utilities/functions/isNotEmpty.js";
17
- import { throttle as oe } from "../../utilities/functions/throttle.js";
18
- import { when as se } from "../../utilities/functions/when.js";
19
- import { hash as ce } from "../../utilities/functions/hash.js";
20
- import { reject as le } from "../../utilities/functions/reject.js";
21
- import ue from "../../assets/svgs/chevron_down.svg_raw.js";
22
- import { provideSheetChipAttrs as de } from "../BbSelectPopover/sheetChipAttrs.js";
23
- import { provideReclickClears as fe } from "../BbSelectPopover/reclickClears.js";
24
- import { KnownItemsScope as pe, indexKnownRows as me, knownRowsCover as he } from "../BbSelectPopover/knownItems.js";
25
- import { BB_SELECT_PT as p } from "./types.js";
26
- import { Fragment as m, computed as h, createBlock as ge, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as _e, createVNode as b, defineComponent as ve, getCurrentInstance as ye, guardReactiveProps as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeProps as T, onMounted as be, onUnmounted as xe, openBlock as E, ref as D, renderList as O, renderSlot as k, toDisplayString as A, unref as j, useAttrs as Se, watch as M, withCtx as N, withDirectives as Ce, withModifiers as we } from "vue";
11
+ import { useOwnModel as a } from "../../composables/useOwnModel.js";
12
+ import { useLocale as o } from "../../composables/useLocale.js";
13
+ import { SELECT_CONTROL_NATIVE_ATTRS as s, formControlPtActive as ae, usePassthrough as c, variantPt as l } from "../../composables/usePassthrough.js";
14
+ import { removedPropsFor as u } from "../../deprecation/removedProps.js";
15
+ import { warnRemovedAttrs as d } from "../../utilities/functions/warnRemovedAttrs.js";
16
+ import { hasVnodeListener as oe } from "../../utilities/functions/hasVnodeListener.js";
17
+ import { isNotEmpty as se } from "../../utilities/functions/isNotEmpty.js";
18
+ import { throttle as ce } from "../../utilities/functions/throttle.js";
19
+ import { when as le } from "../../utilities/functions/when.js";
20
+ import { hash as ue } from "../../utilities/functions/hash.js";
21
+ import { reject as de } from "../../utilities/functions/reject.js";
22
+ import fe from "../../assets/svgs/chevron_down.svg_raw.js";
23
+ import { provideSheetChipAttrs as pe } from "../BbSelectPopover/sheetChipAttrs.js";
24
+ import { provideReclickClears as me } from "../BbSelectPopover/reclickClears.js";
25
+ import { KnownItemsScope as he, indexKnownRows as ge, knownRowsCover as _e } from "../BbSelectPopover/knownItems.js";
26
+ import { BB_SELECT_PT as f } from "./types.js";
27
+ import { useInternalIcon as ve } from "../../composables/useInternalIcon.js";
28
+ import { Fragment as p, computed as m, createBlock as ye, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as be, createVNode as y, defineComponent as xe, getCurrentInstance as Se, guardReactiveProps as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeProps as w, onMounted as Ce, onUnmounted as we, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as Te, watch as j, withCtx as M, withDirectives as Ee, withModifiers as De } from "vue";
27
29
  // src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
28
- var Te = ["id"], Ee = [
30
+ var Oe = ["id"], ke = [
29
31
  "id",
30
32
  "aria-labelledby",
31
33
  "aria-readonly",
32
34
  "aria-required",
33
35
  "autofocus",
34
36
  "disabled"
35
- ], De = {
37
+ ], Ae = {
36
38
  key: 1,
37
39
  class: "bb-select__max-reached"
38
- }, Oe = {
40
+ }, je = {
39
41
  key: 2,
40
42
  class: "bb-select__display-value bb-select__placeholder"
41
- }, ke = ["id"], P = /*@__PURE__*/ ve({
42
- mixins: [c(p)],
43
+ }, Me = ["id"], N = /*@__PURE__*/ xe({
44
+ mixins: [l(f)],
43
45
  inheritAttrs: !1,
44
46
  __name: "BbSelect",
45
47
  props: {
@@ -221,6 +223,14 @@ var Te = ["id"], Ee = [
221
223
  "pt:list:errors": {},
222
224
  "pt:list:open": {},
223
225
  "pt:list:loading": {},
226
+ "pt:groupHeader": {},
227
+ "pt:groupHeader:hasValue": {},
228
+ "pt:groupHeader:readonly": {},
229
+ "pt:groupHeader:disabled": {},
230
+ "pt:groupHeader:warnings": {},
231
+ "pt:groupHeader:errors": {},
232
+ "pt:groupHeader:open": {},
233
+ "pt:groupHeader:loading": {},
224
234
  "pt:option": {},
225
235
  "pt:option:hasValue": {},
226
236
  "pt:option:selected": {},
@@ -283,6 +293,7 @@ var Te = ["id"], Ee = [
283
293
  "pt:comma:open": {},
284
294
  "pt:comma:loading": {},
285
295
  open: { type: Boolean },
296
+ query: {},
286
297
  pt: {},
287
298
  adaptive: {
288
299
  type: Boolean,
@@ -375,6 +386,7 @@ var Te = ["id"], Ee = [
375
386
  "shown",
376
387
  "hide",
377
388
  "update:open",
389
+ "update:query",
378
390
  "hidden",
379
391
  "blur",
380
392
  "change",
@@ -386,35 +398,35 @@ var Te = ["id"], Ee = [
386
398
  "update:modelValue",
387
399
  "option:add"
388
400
  ],
389
- setup(c, { emit: ve }) {
390
- let P = c, Ae = ve, { props: F, emit: I, showAsterisk: je, errors: Me, ariaRequired: Ne, required: Pe, model: Fe, readonly: L } = ie(P, Ae, {
401
+ setup(l, { emit: xe }) {
402
+ let N = l, P = xe, Ne = ve("expandChevron", fe), { props: F, emit: I, showAsterisk: Pe, errors: Fe, ariaRequired: Ie, required: Le, model: Re, readonly: L } = ie(N, P, {
391
403
  componentName: "BbSelect",
392
- identifierFallback: () => P.label,
404
+ identifierFallback: () => N.label,
393
405
  leaveOn: "inactive"
394
- }), Ie = h(() => Ne.value ?? (Pe.value ? !0 : void 0)), { t: Le } = a();
395
- process.env.NODE_ENV !== "production" && u("BbSelect", l("BbSelect"));
396
- let R = D(!1), { isMobile: Re } = re(), ze = h(() => F.persistentHint || R.value), z = h(() => f(F.modelValue)), Be = h(() => !!F.clearable && z.value), B = r("BbSelect", F, {
406
+ }), ze = m(() => Ie.value ?? (Le.value ? !0 : void 0)), { t: Be } = o();
407
+ process.env.NODE_ENV !== "production" && d("BbSelect", u("BbSelect"));
408
+ let R = E(!1), { isMobile: Ve } = re(), He = m(() => F.persistentHint || R.value), z = m(() => se(F.modelValue)), Ue = m(() => !!F.clearable && z.value), B = r("BbSelect", F, {
397
409
  labelMode: "outside",
398
410
  compact: !1,
399
411
  reverse: !1
400
- }), Ve = h(() => B.labelMode), V = D(!1), { model: He, set: Ue } = i(P, Ae), H = ae({
412
+ }), We = m(() => B.labelMode), V = E(!1), { model: Ge, set: Ke } = i(N, P), { model: qe, set: Je } = a(N, "query", P, () => ""), H = c({
401
413
  component: "BbSelect",
402
- attrs: Se(),
403
- controlAttrs: o,
414
+ attrs: Te(),
415
+ controlAttrs: s,
404
416
  props: F,
405
- parts: p.parts,
406
- states: p.states,
417
+ parts: f.parts,
418
+ states: f.states,
407
419
  active: {
408
- ...s(F, () => z.value),
420
+ ...ae(F, () => z.value),
409
421
  open: () => V.value
410
422
  },
411
423
  variant: {
412
- ...p.variant,
424
+ ...f.variant,
413
425
  current: () => F.variant ?? "outline"
414
426
  }
415
427
  });
416
- de((e) => H.part("badge", {}, e)), fe(() => !!F.clearable);
417
- let We = () => ({
428
+ pe((e) => H.part("badge", {}, e)), me(() => !!F.clearable);
429
+ let Ye = () => ({
418
430
  ...H.forward([
419
431
  "panel",
420
432
  "sheet",
@@ -424,70 +436,71 @@ var Te = ["id"], Ee = [
424
436
  "list"
425
437
  ], n.states.filter((e) => e !== "disabled")),
426
438
  ...H.forward([
439
+ "groupHeader",
427
440
  "option",
428
441
  "itemText",
429
442
  "itemIcon",
430
443
  "itemDescription",
431
444
  "check"
432
445
  ], n.states)
433
- }), Ge = [
446
+ }), Xe = [
434
447
  "box",
435
448
  "icon",
436
449
  "spinner",
437
450
  "clear",
438
451
  "prefix",
439
452
  "suffix"
440
- ], Ke = (e) => Object.fromEntries(Ge.map((t) => [t, H.part(t, { loading: e })])), qe = h(() => ({
453
+ ], Ze = (e) => Object.fromEntries(Xe.map((t) => [t, H.part(t, { loading: e })])), Qe = m(() => ({
441
454
  title: F.label,
442
455
  ...F.offCanvasProps
443
- })), Je = h(() => F["append:icon"] === void 0 ? ue : F["append:icon"]), U = h(() => F.maxSelectedLabels === void 0 ? Infinity : F.maxSelectedLabels), W = {
456
+ })), $e = m(() => F["append:icon"] === void 0 ? Ne.value : F["append:icon"]), U = m(() => F.maxSelectedLabels === void 0 ? Infinity : F.maxSelectedLabels), W = {
444
457
  rows: () => F.knownItems,
445
458
  prefill: () => F.prefill
446
- }, Ye = (e) => ({
459
+ }, et = (e) => ({
447
460
  known: !!W.isKnown?.(e),
448
461
  item: e
449
- }), Xe = h(() => he(me(F.knownItems), F.modelValue, F.multiple)), Ze = h(() => z.value && !Xe.value ? !0 : F.prefill ?? "interaction"), G = D(), K = D(), Qe = D(), q = h(() => F.multiple ? Array.isArray(F.modelValue) ? F.modelValue.length : F.modelValue == null ? 0 : 1 : 0), $e = h(() => U.value !== Infinity), J = h(() => !$e.value), Y = D(!1), X = h(() => q.value <= 1 ? !1 : $e.value ? q.value > U.value : Y.value), Z = h(() => !F.disabled && !F.readonly), et = (e) => {
462
+ }), tt = m(() => _e(ge(F.knownItems), F.modelValue, F.multiple)), nt = m(() => z.value && !tt.value ? !0 : F.prefill ?? "interaction"), G = E(), K = E(), rt = E(), q = m(() => F.multiple ? Array.isArray(F.modelValue) ? F.modelValue.length : F.modelValue == null ? 0 : 1 : 0), it = m(() => U.value !== Infinity), J = m(() => !it.value), Y = E(!1), X = m(() => q.value <= 1 ? !1 : it.value ? q.value > U.value : Y.value), Z = m(() => !F.disabled && !F.readonly), at = (e) => {
450
463
  if (Z.value) {
451
464
  if (W.userUnpick?.([e.value]), F.multiple) {
452
- let t = le(F.modelValue, e.value);
465
+ let t = de(F.modelValue, e.value);
453
466
  I("update:modelValue", t);
454
467
  } else I("update:modelValue", null);
455
468
  }
456
- }, tt = () => {
469
+ }, ot = () => {
457
470
  (G.value?.$el)?.querySelector(".bb-select__activator")?.focus();
458
- }, nt = h(() => F.selectedLabelsFn ? F.selectedLabelsFn(q.value) : Le("select.multipleMaxReached", q.value).value), rt = (e) => F.multiple && X.value ? nt.value : e || F.placeholder || "", Q = oe(() => {
459
- let e = Qe.value;
471
+ }, st = m(() => F.selectedLabelsFn ? F.selectedLabelsFn(q.value) : Be("select.multipleMaxReached", q.value).value), ct = (e) => F.multiple && X.value ? st.value : e || F.placeholder || "", Q = ce(() => {
472
+ let e = rt.value;
460
473
  !J.value || !e || q.value <= 1 ? Y.value = !1 : Y.value = e.scrollWidth > e.clientWidth + 1;
461
474
  }, 100, {
462
475
  leading: !0,
463
476
  trailing: !0
464
- }), $ = null, it = () => {
465
- $?.disconnect(), $ = null, J.value && ($ = new ResizeObserver(Q), K.value && $.observe(K.value), C(() => {
477
+ }), $ = null, lt = () => {
478
+ $?.disconnect(), $ = null, J.value && ($ = new ResizeObserver(Q), K.value && $.observe(K.value), S(() => {
466
479
  Q();
467
480
  }));
468
481
  };
469
- be(it), M(J, it, { flush: "post" }), xe(() => {
482
+ Ce(lt), j(J, lt, { flush: "post" }), we(() => {
470
483
  $?.disconnect(), Q.cancel();
471
- }), M(() => [F.modelValue, U.value], () => {
472
- J.value && C(() => {
484
+ }), j(() => [F.modelValue, U.value], () => {
485
+ J.value && S(() => {
473
486
  Q();
474
487
  });
475
- }), M(() => [
488
+ }), j(() => [
476
489
  B.compact,
477
490
  F.comma,
478
491
  F["prepend:icon"]
479
492
  ], () => {
480
- J.value && C(() => {
493
+ J.value && S(() => {
481
494
  Q();
482
495
  });
483
496
  });
484
- let at = se((e) => typeof e != "string", JSON.stringify), ot = h(() => (F.multiple ? [].concat(F.modelValue ?? []) : [F.modelValue]).filter((e) => e != null).map((e) => ({
497
+ let ut = le((e) => typeof e != "string", JSON.stringify), dt = m(() => (F.multiple ? [].concat(F.modelValue ?? []) : [F.modelValue]).filter((e) => e != null).map((e) => ({
485
498
  disabled: F.disabled,
486
499
  name: F.name,
487
500
  required: F.required,
488
501
  type: "hidden",
489
- value: at(e)
490
- }))), st = {
502
+ value: ut(e)
503
+ }))), ft = {
491
504
  onBlur: (e) => {
492
505
  R.value = !1, I("blur", e);
493
506
  },
@@ -512,184 +525,188 @@ var Te = ["id"], Ee = [
512
525
  },
513
526
  onInput: (e) => I("input", e),
514
527
  "onUpdate:modelValue": (e) => I("update:modelValue", e)
515
- }, ct = {
516
- ...st,
528
+ }, pt = {
529
+ ...ft,
517
530
  "onOption:add": (e) => I("option:add", e)
518
- }, lt = ye(), ut = () => d(lt, "option:add") ? ct : st;
519
- return (n, re) => (E(), ge(t, S({
520
- id: c.id,
531
+ }, mt = Se(), ht = () => oe(mt, "option:add") ? pt : ft;
532
+ return (n, re) => (T(), ye(t, x({
533
+ id: l.id,
521
534
  class: "bb-select",
522
- clearable: Be.value,
523
- compact: j(B).compact,
524
- description: c.description,
525
- disabled: c.disabled,
526
- errors: j(Me),
527
- "has-errors": c.hasErrors,
535
+ clearable: Ue.value,
536
+ compact: A(B).compact,
537
+ description: l.description,
538
+ disabled: l.disabled,
539
+ errors: A(Fe),
540
+ "has-errors": l.hasErrors,
528
541
  "has-value": z.value,
529
- "has-warnings": c.hasWarnings,
530
- "hide-label": c.hideLabel,
531
- hint: c.hint,
532
- "input-align": c.inputAlign,
533
- label: c.label,
534
- "label-align": c.labelAlign,
535
- "label-mode": Ve.value,
536
- "label-position": c.labelPosition,
537
- layout: j(B).layout,
538
- loading: c.loading,
539
- mobile: j(Re),
540
- name: c.name,
541
- passthrough: j(H),
542
- readonly: j(L),
543
- reverse: j(B).reverse,
544
- "show-asterisk": j(je),
545
- "show-hint": ze.value,
546
- warnings: c.warnings
547
- }, j(H).forwardAttrs), y({
548
- label: N((e) => [k(n.$slots, "label", T(x(e)))]),
549
- input: N(({ id: t, hasErrors: r, hasWarnings: ie, ariaDescribedby: i }) => [b(j(pe), { source: W }, {
550
- default: N(() => [b(ne, S({
542
+ "has-warnings": l.hasWarnings,
543
+ "hide-label": l.hideLabel,
544
+ hint: l.hint,
545
+ "input-align": l.inputAlign,
546
+ label: l.label,
547
+ "label-align": l.labelAlign,
548
+ "label-mode": We.value,
549
+ "label-position": l.labelPosition,
550
+ layout: A(B).layout,
551
+ loading: l.loading,
552
+ mobile: A(Ve),
553
+ name: l.name,
554
+ passthrough: A(H),
555
+ readonly: A(L),
556
+ reverse: A(B).reverse,
557
+ "show-asterisk": A(Pe),
558
+ "show-hint": He.value,
559
+ warnings: l.warnings
560
+ }, A(H).forwardAttrs), v({
561
+ label: M((e) => [O(n.$slots, "label", w(b(e)))]),
562
+ input: M(({ id: t, hasErrors: r, hasWarnings: ie, ariaDescribedby: i }) => [y(A(he), { source: W }, {
563
+ default: M(() => [y(ne, x({
551
564
  id: t,
552
- adaptive: j(B).adaptive,
565
+ adaptive: A(B).adaptive,
553
566
  anchor: G.value,
554
567
  "aria-describedby": i,
555
568
  "aria-invalid": r || void 0,
556
- autocomplete: j(B).autocomplete,
557
- compact: j(B).compact,
558
- dependencies: c.dependencies,
559
- "deps-debounce-time": c.depsDebounceTime,
560
- "disable-writing": c.disableWriting,
561
- disabled: c.disabled,
562
- "empty-text": c.emptyText,
563
- "enforce-coherence": c.enforceCoherence,
564
- "failed-text": c.failedText,
565
- "filter-by": Array.isArray(c.filterBy) || c.filterBy === !1 ? c.filterBy : void 0,
566
- "group-by": c.groupBy,
567
- "header-height": c.headerHeight,
568
- "item-height": c.itemHeight,
569
- "item-props": c.itemProps,
570
- "item-text": c.itemText,
571
- "item-value": c.itemValue,
572
- items: c.items,
573
- loading: c.loading,
574
- "loading-text": c.loadingText,
575
- max: c.max,
576
- "min-query-length": c.minQueryLength,
577
- "model-value": j(Fe),
578
- "model-value-debounce-time": c.modelValueDebounceTime,
579
- multiple: c.multiple,
580
- "off-canvas-props": qe.value,
581
- open: j(He),
582
- prefill: Ze.value,
583
- pt: We(),
584
- "query-debounce-time": c.queryDebounceTime,
585
- readonly: j(L),
586
- selectable: c.selectable,
587
- stash: c.stash,
588
- "transition-duration": c.transitionDuration,
569
+ autocomplete: A(B).autocomplete,
570
+ compact: A(B).compact,
571
+ dependencies: l.dependencies,
572
+ "deps-debounce-time": l.depsDebounceTime,
573
+ "disable-writing": l.disableWriting,
574
+ disabled: l.disabled,
575
+ "empty-text": l.emptyText,
576
+ "enforce-coherence": l.enforceCoherence,
577
+ "failed-text": l.failedText,
578
+ "filter-by": Array.isArray(l.filterBy) || l.filterBy === !1 ? l.filterBy : void 0,
579
+ "group-by": l.groupBy,
580
+ "header-height": l.headerHeight,
581
+ "item-height": l.itemHeight,
582
+ "item-props": l.itemProps,
583
+ "item-text": l.itemText,
584
+ "item-value": l.itemValue,
585
+ items: l.items,
586
+ loading: l.loading,
587
+ "loading-text": l.loadingText,
588
+ max: l.max,
589
+ "min-query-length": l.minQueryLength,
590
+ "model-value": A(Re),
591
+ "model-value-debounce-time": l.modelValueDebounceTime,
592
+ multiple: l.multiple,
593
+ "off-canvas-props": Qe.value,
594
+ open: A(Ge),
595
+ prefill: nt.value,
596
+ pt: Ye(),
597
+ query: A(qe),
598
+ "query-debounce-time": l.queryDebounceTime,
599
+ readonly: A(L),
600
+ selectable: l.selectable,
601
+ stash: l.stash,
602
+ "transition-duration": l.transitionDuration,
589
603
  width: "100%"
590
- }, ut(), { "onUpdate:open": j(Ue) }), y({
591
- activator: N(({ props: ne, shown: i, loading: a, text: o, selectedOptions: s, clear: ae, query: l, focus: u, close: d, toggle: f }) => [b(ee, {
604
+ }, ht(), {
605
+ "onUpdate:open": A(Ke),
606
+ "onUpdate:query": A(Je)
607
+ }), v({
608
+ activator: M(({ props: ne, shown: i, loading: a, text: o, selectedOptions: s, clear: ae, query: c, focus: u, close: d, toggle: oe }) => [y(ee, {
592
609
  ref_key: "wrapperRef",
593
610
  ref: G,
594
611
  active: i,
595
- "append:icon": Je.value,
596
- class: w(["bb-select__field", {
612
+ "append:icon": $e.value,
613
+ class: C(["bb-select__field", {
597
614
  "bb-select__field--shown": i,
598
- "bb-select__field--disabled": c.disabled,
599
- "bb-select__field--readonly": j(L)
615
+ "bb-select__field--disabled": l.disabled,
616
+ "bb-select__field--readonly": A(L)
600
617
  }]),
601
- clearable: c.clearable,
602
- compact: j(B).compact,
603
- disabled: c.disabled,
618
+ clearable: l.clearable,
619
+ compact: A(B).compact,
620
+ disabled: l.disabled,
604
621
  "has-errors": r,
605
622
  "has-value": z.value,
606
623
  "has-warnings": ie,
607
624
  loading: a,
608
- passthrough: Ke(a),
609
- "prepend:icon": P["prepend:icon"],
610
- readonly: j(L),
611
- variant: c.variant,
625
+ passthrough: Ze(a),
626
+ "prepend:icon": N["prepend:icon"],
627
+ readonly: A(L),
628
+ variant: l.variant,
612
629
  "onClick:clear": () => {
613
- ae(), C(tt);
630
+ ae(), S(ot);
614
631
  },
615
- "onContainer:click": f
616
- }, y({
617
- "append:outer": N(() => [k(n.$slots, "append:outer", T(x({
618
- query: l,
632
+ "onContainer:click": oe
633
+ }, v({
634
+ "append:outer": M(() => [O(n.$slots, "append:outer", w(b({
635
+ query: c,
619
636
  close: d
620
637
  })))]),
621
- append: N(() => [k(n.$slots, "append", T(x({
622
- query: l,
638
+ append: M(() => [O(n.$slots, "append", w(b({
639
+ query: c,
623
640
  focus: u,
624
641
  close: d
625
642
  })))]),
626
- prepend: N(() => [k(n.$slots, "prepend", T(x({
627
- query: l,
643
+ prepend: M(() => [O(n.$slots, "prepend", w(b({
644
+ query: c,
628
645
  focus: u,
629
646
  close: d
630
647
  })))]),
631
- "prepend:outer": N(() => [k(n.$slots, "prepend:outer", T(x({
632
- query: l,
648
+ "prepend:outer": M(() => [O(n.$slots, "prepend:outer", w(b({
649
+ query: c,
633
650
  close: d
634
651
  })))]),
635
- default: N(() => [v("span", {
652
+ default: M(() => [_("span", {
636
653
  id: `${t}__value`,
637
654
  ref_key: "valueRef",
638
655
  ref: K,
639
656
  class: "bb-select__value"
640
- }, [Ce(v("input", S({
657
+ }, [Ee(_("input", x({
641
658
  id: t,
642
659
  "aria-labelledby": `${t}__label ${t}__selection`,
643
- "aria-readonly": j(L) || void 0,
644
- "aria-required": Ie.value,
645
- autofocus: c.autofocus,
660
+ "aria-readonly": A(L) || void 0,
661
+ "aria-required": ze.value,
662
+ autofocus: l.autofocus,
646
663
  class: "bb-select__activator",
647
- disabled: c.disabled,
664
+ disabled: l.disabled,
648
665
  type: "button"
649
- }, S(ne, j(H).part("activator", { loading: a }))), null, 16, Ee), [[j(e)]]), c.multiple ? (E(), _(m, { key: 0 }, [
650
- J.value || !X.value ? (E(), _("span", {
666
+ }, x(ne, A(H).part("activator", { loading: a }))), null, 16, ke), [[A(e)]]), l.multiple ? (T(), g(p, { key: 0 }, [
667
+ J.value || !X.value ? (T(), g("span", {
651
668
  key: 0,
652
669
  ref_key: "chipsContainerRef",
653
- ref: Qe,
654
- class: w(["bb-select__chips-row", {
670
+ ref: rt,
671
+ class: C(["bb-select__chips-row", {
655
672
  "bb-select__chips-row--hidden": X.value,
656
- "bb-select__chips-row--chips": !c.comma && !!s.length
673
+ "bb-select__chips-row--chips": !l.comma && !!s.length
657
674
  }]),
658
- onVnodeUpdated: re[0] ||= (e) => J.value && j(Q)()
659
- }, [c.comma ? (E(!0), _(m, { key: 0 }, O(s, (e) => (E(), _("span", S({
660
- key: j(ce)(e.value),
675
+ onVnodeUpdated: re[0] ||= (e) => J.value && A(Q)()
676
+ }, [l.comma ? (T(!0), g(p, { key: 0 }, D(s, (e) => (T(), g("span", x({
677
+ key: A(ue)(e.value),
661
678
  class: "bb-select__comma"
662
- }, { ref_for: !0 }, j(H).part("comma", {}, e.item)), A(e.text), 17))), 128)) : (E(!0), _(m, { key: 1 }, O(s, (e) => k(n.$slots, "chip", S({
663
- deselect: () => et(e),
679
+ }, { ref_for: !0 }, A(H).part("comma", {}, e.item)), k(e.text), 17))), 128)) : (T(!0), g(p, { key: 1 }, D(s, (e) => O(n.$slots, "chip", x({
680
+ deselect: () => at(e),
664
681
  disabled: !Z.value,
665
682
  text: e.text,
666
683
  value: e.value
667
- }, { ref_for: !0 }, Ye(e.item)), () => [b(te, S({
684
+ }, { ref_for: !0 }, et(e.item)), () => [y(te, x({
668
685
  class: "bb-select__badge",
669
686
  clearable: Z.value,
670
687
  size: "lg",
671
688
  variant: "secondary"
672
- }, { ref_for: !0 }, j(H).part("badge", {}, e.item), { "onClick:clear": we((t) => et(e), ["stop"]) }), {
673
- default: N(() => [_e(A(e.text), 1)]),
689
+ }, { ref_for: !0 }, A(H).part("badge", {}, e.item), { "onClick:clear": De((t) => at(e), ["stop"]) }), {
690
+ default: M(() => [be(k(e.text), 1)]),
674
691
  _: 2
675
- }, 1040, ["clearable", "onClick:clear"])], void 0, j(ce)(e.value))), 128))], 2)) : g("", !0),
676
- X.value ? (E(), _("span", De, A(nt.value), 1)) : g("", !0),
677
- !s.length && c.placeholder ? (E(), _("span", Oe, A(c.placeholder), 1)) : g("", !0)
678
- ], 64)) : (E(), _("span", {
692
+ }, 1040, ["clearable", "onClick:clear"])], void 0, A(ue)(e.value))), 128))], 2)) : h("", !0),
693
+ X.value ? (T(), g("span", Ae, k(st.value), 1)) : h("", !0),
694
+ !s.length && l.placeholder ? (T(), g("span", je, k(l.placeholder), 1)) : h("", !0)
695
+ ], 64)) : (T(), g("span", {
679
696
  key: 1,
680
- class: w(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
681
- }, A(o || c.placeholder), 3))], 8, Te), v("span", {
697
+ class: C(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
698
+ }, k(o || l.placeholder), 3))], 8, Oe), _("span", {
682
699
  id: `${t}__selection`,
683
700
  hidden: ""
684
- }, A(rt(o)), 9, ke)]),
701
+ }, k(ct(o)), 9, Me)]),
685
702
  _: 2
686
703
  }, [n.$slots.prefix ? {
687
704
  name: "prefix",
688
- fn: N(() => [k(n.$slots, "prefix")]),
705
+ fn: M(() => [O(n.$slots, "prefix")]),
689
706
  key: "0"
690
707
  } : void 0, n.$slots.suffix ? {
691
708
  name: "suffix",
692
- fn: N(() => [k(n.$slots, "suffix")]),
709
+ fn: M(() => [O(n.$slots, "suffix")]),
693
710
  key: "1"
694
711
  } : void 0]), 1032, [
695
712
  "active",
@@ -708,36 +725,36 @@ var Te = ["id"], Ee = [
708
725
  "variant",
709
726
  "onClick:clear",
710
727
  "onContainer:click"
711
- ]), (E(!0), _(m, null, O(ot.value, (e) => (E(), _("input", S({ key: e.value }, { ref_for: !0 }, S(e, j(H).controlAttrs)), null, 16))), 128))]),
712
- loading: N((e) => [k(n.$slots, "loading", T(x(e)))]),
713
- empty: N((e) => [k(n.$slots, "empty", T(x(e)))]),
714
- group: N((e) => [k(n.$slots, "group", T(x(e)))]),
728
+ ]), (T(!0), g(p, null, D(dt.value, (e) => (T(), g("input", x({ key: e.value }, { ref_for: !0 }, x(e, A(H).controlAttrs)), null, 16))), 128))]),
729
+ loading: M((e) => [O(n.$slots, "loading", w(b(e)))]),
730
+ empty: M((e) => [O(n.$slots, "empty", w(b(e)))]),
731
+ group: M((e) => [O(n.$slots, "group", w(b(e)))]),
715
732
  _: 2
716
733
  }, [
717
734
  n.$slots.header ? {
718
735
  name: "header",
719
- fn: N((e) => [k(n.$slots, "header", T(x(e)))]),
736
+ fn: M((e) => [O(n.$slots, "header", w(b(e)))]),
720
737
  key: "0"
721
738
  } : void 0,
722
739
  n.$slots.footer ? {
723
740
  name: "footer",
724
- fn: N((e) => [k(n.$slots, "footer", T(x(e)))]),
741
+ fn: M((e) => [O(n.$slots, "footer", w(b(e)))]),
725
742
  key: "1"
726
743
  } : void 0,
727
744
  n.$slots.option ? {
728
745
  name: "option",
729
- fn: N((e) => [k(n.$slots, "option", S({ hasErrors: r }, e))]),
746
+ fn: M((e) => [O(n.$slots, "option", x({ hasErrors: r }, e))]),
730
747
  key: "2"
731
748
  } : void 0
732
- ]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.open.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration.onUpdate:open".split("."))]),
749
+ ]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.open.prefill.pt.query.query-debounce-time.readonly.selectable.stash.transition-duration.onUpdate:open.onUpdate:query".split("."))]),
733
750
  _: 2
734
751
  }, 1024)]),
735
752
  _: 2
736
753
  }, [n.$slots.description ? {
737
754
  name: "description",
738
- fn: N((e) => [k(n.$slots, "description", T(x(e)))]),
755
+ fn: M((e) => [O(n.$slots, "description", w(b(e)))]),
739
756
  key: "0"
740
757
  } : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.mobile.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
741
758
  }
742
759
  });
743
- export { P as default };
760
+ export { N as default };