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
@@ -7,28 +7,29 @@ import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttr
7
7
  import a from "../BbBaseButton/BbBaseButton.vue.js";
8
8
  import o from "../BbDropdown/BbDropdown.vue.js";
9
9
  import { estimateBreadcrumbItemWidth as s, estimateEllipsisWidth as c } from "./estimateBreadcrumbItemWidth.js";
10
- import l from "../../assets/svgs/chevron_right.svg_raw.js";
11
- import { BB_BREADCRUMBS_PT as u } from "./types.js";
12
- import { usePassthrough as te } from "../../composables/usePassthrough.js";
13
- import d from "../BbIcon/BbIcon.vue.js";
14
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as ne, createTextVNode as re, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeProps as x, normalizeProps as S, onBeforeUnmount as ie, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as ae, unref as D, useAttrs as oe, useSlots as se, watch as ce, withCtx as O } from "vue";
15
- import { useResizeObserver as le } from "@vueuse/core";
10
+ import te from "../../assets/svgs/chevron_right.svg_raw.js";
11
+ import { BB_BREADCRUMBS_PT as l } from "./types.js";
12
+ import { usePassthrough as ne } from "../../composables/usePassthrough.js";
13
+ import u from "../BbIcon/BbIcon.vue.js";
14
+ import { useInternalIcon as re } from "../../composables/useInternalIcon.js";
15
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ie, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeProps as x, normalizeProps as S, onBeforeUnmount as ae, openBlock as C, ref as w, renderList as oe, renderSlot as T, toDisplayString as se, unref as E, useAttrs as ce, useSlots as le, watch as ue, withCtx as D } from "vue";
16
+ import { useResizeObserver as de } from "@vueuse/core";
16
17
  // src/components/BbBreadcrumbs/BbBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
17
- var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
18
+ var fe = ["aria-label"], pe = { class: "bb-breadcrumbs__container" }, me = {
18
19
  key: 0,
19
20
  class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--prepend"
20
- }, pe = { class: "bb-breadcrumbs__list" }, me = ["aria-label", "disabled"], he = {
21
+ }, he = { class: "bb-breadcrumbs__list" }, ge = ["aria-label", "disabled"], _e = {
21
22
  key: 0,
22
23
  "aria-hidden": "true",
23
24
  class: "bb-breadcrumbs__divider"
24
- }, ge = ["title"], _e = {
25
+ }, ve = ["title"], ye = {
25
26
  key: 0,
26
27
  "aria-hidden": "true",
27
28
  class: "bb-breadcrumbs__divider"
28
- }, ve = {
29
+ }, be = {
29
30
  key: 1,
30
31
  class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--append"
31
- }, k = 20, ye = 1, A = 8.5, be = .5, xe = 8, Se = 200, j = /*@__PURE__*/ y({
32
+ }, O = 20, xe = 1, Se = 8.5, Ce = .5, we = 8, Te = 200, k = /*@__PURE__*/ y({
32
33
  inheritAttrs: !1,
33
34
  __name: "BbBreadcrumbs",
34
35
  props: {
@@ -53,212 +54,212 @@ var ue = ["aria-label"], de = { class: "bb-breadcrumbs__container" }, fe = {
53
54
  ellipsisWidth: {}
54
55
  },
55
56
  setup(y) {
56
- let j = y, M = p(() => j.items.filter((e) => !e.hidden));
57
- process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", ee("BbBreadcrumbs"), { slotKeys: () => j.items.map((e) => e.value) });
58
- let N = te({
57
+ let k = y, A = re("separator", te), j = f(() => k.items.filter((e) => !e.hidden));
58
+ process.env.NODE_ENV !== "production" && i("BbBreadcrumbs", ee("BbBreadcrumbs"), { slotKeys: () => k.items.map((e) => e.value) });
59
+ let M = ne({
59
60
  component: "BbBreadcrumbs",
60
- attrs: oe(),
61
- props: j,
62
- parts: u.parts,
63
- states: u.states,
64
- active: { disabled: () => !!j.disabled }
65
- }), { t: P } = e();
61
+ attrs: ce(),
62
+ props: k,
63
+ parts: l.parts,
64
+ states: l.states,
65
+ active: { disabled: () => !!k.disabled }
66
+ }), { t: Ee } = e();
66
67
  t();
67
- let F = se(), Ce = /* @__PURE__ */ new Set([
68
+ let N = le(), De = /* @__PURE__ */ new Set([
68
69
  "prepend",
69
70
  "append",
70
71
  "ellipsis",
71
72
  "divider",
72
73
  "activator"
73
- ]), I = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), L = (e, t) => t === M.value.length - 1 && !e.href && !e.to && !e.onClick, we = (e, t) => {
74
+ ]), Oe = (e) => e.value == null || e.value === "" ? ":keyless" : n(String(e.value)), P = (e, t) => t === j.value.length - 1 && !e.href && !e.to && !e.onClick, ke = (e, t) => {
74
75
  let { "prepend:icon": n, "append:icon": r, value: ee, label: i, hidden: a, ...o } = e;
75
- return L(e, t) ? {
76
+ return P(e, t) ? {
76
77
  ...o,
77
78
  "aria-current": "page"
78
79
  } : o;
79
- }, R = (e, t) => [F[`${I(e)}:${t}`], F[`item:${t}`]], z = (e, t) => ({
80
- disabled: !!(e.disabled || j.disabled),
80
+ }, F = (e, t) => [N[`${Oe(e)}:${t}`], N[`item:${t}`]], I = (e, t) => ({
81
+ disabled: !!(e.disabled || k.disabled),
81
82
  index: t,
82
83
  item: e,
83
84
  label: e.label
84
- }), Te = p(() => Object.keys(F).filter((e) => !Ce.has(e))), B = w(null), V = w(0), H = p(() => j.gapWidth), U = p(() => Math.max(0, j.offsetWidth)), Ee = p(() => j.estimationBias), De = p(() => j.ellipsisWidth ?? c(A)), Oe = p(() => P("breadcrumbs.label").value), ke = p(() => P("breadcrumbs.openHiddenLabelCount", V.value).value), Ae = (e) => {
85
+ }), Ae = f(() => Object.keys(N).filter((e) => !De.has(e))), L = w(null), R = w(0), z = f(() => k.gapWidth), B = f(() => Math.max(0, k.offsetWidth)), je = f(() => k.estimationBias), V = f(() => k.ellipsisWidth ?? c(Se)), Me = f(() => Ee("breadcrumbs.label").value), Ne = f(() => Ee("breadcrumbs.openHiddenLabelCount", R.value).value), H = (e) => {
85
86
  let t = e.label ?? "";
86
87
  return s(t, {
87
- estimationBias: Ee.value,
88
- fontWidth: A
88
+ estimationBias: je.value,
89
+ fontWidth: Se
89
90
  });
90
- }, je = p(() => {
91
- let e = M.value.length;
91
+ }, Pe = f(() => {
92
+ let e = j.value.length;
92
93
  if (e === 0) return 0;
93
- let t = j.dividerWidth, n = H.value;
94
- return M.value.map(Ae).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + U.value + k + 12;
95
- }), Me = w(!1), W = () => {
96
- let e = B.value?.parentElement;
94
+ let t = k.dividerWidth, n = z.value;
95
+ return j.value.map(H).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + B.value + O + 12;
96
+ }), U = w(!1), W = () => {
97
+ let e = L.value?.parentElement;
97
98
  if (!e) return;
98
99
  let t = getComputedStyle(e);
99
- Me.value = t.display.includes("flex") && t.flexDirection.startsWith("column");
100
- }, Ne = p(() => ({
101
- "--flex-basis": Me.value ? "auto" : `${Math.ceil(je.value)}px`,
102
- "--flex-grow": V.value > 0 ? "1" : "0",
103
- "--gap": `${H.value}px`
104
- })), Pe = (e) => {
105
- let t = M.value.length;
100
+ U.value = t.display.includes("flex") && t.flexDirection.startsWith("column");
101
+ }, Fe = f(() => ({
102
+ "--flex-basis": U.value ? "auto" : `${Math.ceil(Pe.value)}px`,
103
+ "--flex-grow": R.value > 0 ? "1" : "0",
104
+ "--gap": `${z.value}px`
105
+ })), Ie = (e) => {
106
+ let t = j.value.length;
106
107
  if (t === 0) {
107
- V.value = 0;
108
+ R.value = 0;
108
109
  return;
109
110
  }
110
- let n = Math.max(0, e - ye - U.value - k), r = j.dividerWidth, ee = De.value, i = H.value, a = M.value.map(Ae), o = Array.from({ length: t + 1 }, () => 0);
111
+ let n = Math.max(0, e - xe - B.value - O), r = k.dividerWidth, ee = V.value, i = z.value, a = j.value.map(H), o = Array.from({ length: t + 1 }, () => 0);
111
112
  for (let e = t - 1; e >= 0; e--) o[e] = o[e + 1] + a[e];
112
- let s = (e) => n - e <= k / 2, c = o[0] + (t > 1 ? (t - 1) * (r + 2 * i) : 0);
113
+ let s = (e) => n - e <= O / 2, c = o[0] + (t > 1 ? (t - 1) * (r + 2 * i) : 0);
113
114
  if (c <= n) {
114
115
  if (t > 1 && s(c)) {
115
- V.value = 1;
116
+ R.value = 1;
116
117
  return;
117
118
  }
118
- V.value = 0;
119
+ R.value = 0;
119
120
  } else {
120
121
  for (let e = t - 1; e >= 1; e--) {
121
122
  let a = o[t - e], c = ee + e * (r + 2 * i) + a;
122
123
  if (c <= n) {
123
124
  if (e > 1 && s(c)) {
124
- V.value = t - (e - 1);
125
+ R.value = t - (e - 1);
125
126
  return;
126
127
  }
127
- V.value = t - e;
128
+ R.value = t - e;
128
129
  return;
129
130
  }
130
131
  }
131
- V.value = t - 1;
132
+ R.value = t - 1;
132
133
  }
133
- }, Fe = p(() => B.value), Ie = p(() => M.value.map((e) => `${String(e.value)}::${e.label ?? ""}`).join("|")), G = null, K = null, q = null, J = null, Y = 0, X = null, Z = (e, t) => Math.abs(e - t) <= be, Q = () => {
134
- X != null && clearTimeout(X), X = setTimeout(() => {
135
- X = null, Y = 0;
136
- }, Se);
137
- }, Le = () => {
138
- if (K = null, G == null) return;
139
- let e = G;
140
- G = null, q != null && Z(e, q) ? Q() : (Y = J != null && q != null && Z(e, J) && !Z(e, q) ? Y + 1 : 0, Y >= xe ? (J = q, q = e, Q()) : (J = q, q = e, Pe(e), Q()));
141
- }, $ = (e) => {
142
- G = e, K ??= requestAnimationFrame(Le);
134
+ }, G = f(() => L.value), Le = f(() => j.value.map((e) => `${String(e.value)}::${e.label ?? ""}`).join("|")), K = null, q = null, J = null, Y = null, X = 0, Z = null, Q = (e, t) => Math.abs(e - t) <= Ce, $ = () => {
135
+ Z != null && clearTimeout(Z), Z = setTimeout(() => {
136
+ Z = null, X = 0;
137
+ }, Te);
138
+ }, Re = () => {
139
+ if (q = null, K == null) return;
140
+ let e = K;
141
+ K = null, J != null && Q(e, J) ? $() : (X = Y != null && J != null && Q(e, Y) && !Q(e, J) ? X + 1 : 0, X >= we ? (Y = J, J = e, $()) : (Y = J, J = e, Ie(e), $()));
142
+ }, ze = (e) => {
143
+ K = e, q ??= requestAnimationFrame(Re);
143
144
  };
144
- le(Fe, ([e]) => {
145
- W(), $(e.contentRect.width);
146
- }), ce([
147
- Fe,
148
- Ie,
149
- () => j.dividerWidth,
150
- () => j.gapWidth,
151
- () => j.offsetWidth,
152
- () => j.estimationBias,
153
- () => j.ellipsisWidth
145
+ de(G, ([e]) => {
146
+ W(), ze(e.contentRect.width);
147
+ }), ue([
148
+ G,
149
+ Le,
150
+ () => k.dividerWidth,
151
+ () => k.gapWidth,
152
+ () => k.offsetWidth,
153
+ () => k.estimationBias,
154
+ () => k.ellipsisWidth
154
155
  ], ([e]) => {
155
- e && (W(), $(e.clientWidth));
156
- }, { immediate: !0 }), ie(() => {
157
- K != null && cancelAnimationFrame(K), X != null && clearTimeout(X);
156
+ e && (W(), ze(e.clientWidth));
157
+ }, { immediate: !0 }), ae(() => {
158
+ q != null && cancelAnimationFrame(q), Z != null && clearTimeout(Z);
158
159
  });
159
- let Re = p(() => M.value.slice(0, V.value).map((e) => ({
160
+ let Be = f(() => j.value.slice(0, R.value).map((e) => ({
160
161
  ...e,
161
162
  label: e.label ?? ""
162
163
  })));
163
- return (e, t) => (C(), g("nav", x({
164
+ return (e, t) => (C(), h("nav", x({
164
165
  ref_key: "navRef",
165
- ref: B,
166
- "aria-label": Oe.value,
166
+ ref: L,
167
+ "aria-label": Me.value,
167
168
  class: "bb-breadcrumbs",
168
- style: Ne.value
169
- }, D(N).rootAttrs), [_("div", de, [
170
- e.$slots.prepend ? (C(), g("div", fe, [E(e.$slots, "prepend", { disabled: y.disabled })])) : h("", !0),
171
- _("ol", pe, [V.value > 0 ? (C(), g("li", x({
169
+ style: Fe.value
170
+ }, E(M).rootAttrs), [g("div", pe, [
171
+ e.$slots.prepend ? (C(), h("div", me, [T(e.$slots, "prepend", { disabled: y.disabled })])) : m("", !0),
172
+ g("ol", he, [R.value > 0 ? (C(), h("li", x({
172
173
  key: 0,
173
174
  class: "bb-breadcrumbs__item"
174
- }, D(N).part("item", { disabled: y.disabled || void 0 })), [v(o, {
175
- items: Re.value,
175
+ }, E(M).part("item", { disabled: y.disabled || void 0 })), [v(o, {
176
+ items: Be.value,
176
177
  padding: 0,
177
178
  placement: "bottom-start"
178
- }, ne({
179
- activator: O(({ props: n }) => [_("button", x(n, {
180
- "aria-label": ke.value,
179
+ }, ie({
180
+ activator: D(({ props: n }) => [g("button", x(n, {
181
+ "aria-label": Ne.value,
181
182
  class: "bb-breadcrumbs__ellipsis",
182
183
  disabled: y.disabled,
183
184
  type: "button"
184
- }), [E(e.$slots, "ellipsis", S(b({
185
+ }), [T(e.$slots, "ellipsis", S(b({
185
186
  props: n,
186
187
  disabled: y.disabled,
187
- overflowCount: V.value,
188
- ellipsisWidth: De.value
189
- })), () => [t[0] ||= re(" … ", -1)])], 16, me)]),
188
+ overflowCount: R.value,
189
+ ellipsisWidth: V.value
190
+ })), () => [t[0] ||= _(" … ", -1)])], 16, ge)]),
190
191
  _: 2
191
- }, [T(Te.value, (t) => ({
192
+ }, [oe(Ae.value, (t) => ({
192
193
  name: t,
193
- fn: O((n) => [E(e.$slots, t, S(b(n)))])
194
- }))]), 1032, ["items"]), V.value < M.value.length ? (C(), g("span", he, [E(e.$slots, "divider", {}, () => [v(d, {
195
- icon: D(l),
194
+ fn: D((n) => [T(e.$slots, t, S(b(n)))])
195
+ }))]), 1032, ["items"]), R.value < j.value.length ? (C(), h("span", _e, [T(e.$slots, "divider", {}, () => [v(u, {
196
+ icon: E(A),
196
197
  size: "14"
197
- }, null, 8, ["icon"])])])) : h("", !0)], 16)) : h("", !0), (C(!0), g(f, null, T(M.value, (t, n) => (C(), g(f, { key: t.value ?? `:keyless-${n}` }, [n >= V.value ? (C(), g("li", x({
198
+ }, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0), (C(!0), h(d, null, oe(j.value, (t, n) => (C(), h(d, { key: t.value ?? `:keyless-${n}` }, [n >= R.value ? (C(), h("li", x({
198
199
  key: 0,
199
200
  class: ["bb-breadcrumbs__item", {
200
- "bb-breadcrumbs__item--active": L(t, n),
201
- "bb-breadcrumbs__item--compressed": M.value.length > 1 && V.value === M.value.length - 1
201
+ "bb-breadcrumbs__item--active": P(t, n),
202
+ "bb-breadcrumbs__item--compressed": j.value.length > 1 && R.value === j.value.length - 1
202
203
  }]
203
- }, { ref_for: !0 }, D(N).part("item", {
204
- active: L(t, n),
204
+ }, { ref_for: !0 }, E(M).part("item", {
205
+ active: P(t, n),
205
206
  disabled: t.disabled || y.disabled || void 0
206
- })), [v(a, x({ ref_for: !0 }, we(t, n), {
207
+ })), [v(a, x({ ref_for: !0 }, ke(t, n), {
207
208
  class: "bb-breadcrumbs__breadcrumb",
208
209
  disabled: t.disabled || y.disabled,
209
- tag: L(t, n) ? "span" : void 0
210
+ tag: P(t, n) ? "span" : void 0
210
211
  }), {
211
- default: O(() => [
212
- v(D(r), {
213
- props: z(t, n),
214
- slots: R(t, "prepend")
212
+ default: D(() => [
213
+ v(E(r), {
214
+ props: I(t, n),
215
+ slots: F(t, "prepend")
215
216
  }, {
216
- default: O(() => [t["prepend:icon"] ? (C(), m(d, x({
217
+ default: D(() => [t["prepend:icon"] ? (C(), p(u, x({
217
218
  key: 0,
218
219
  class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--prepend",
219
220
  icon: t["prepend:icon"],
220
221
  size: "14"
221
- }, { ref_for: !0 }, D(N).part("icon", {
222
- active: L(t, n),
222
+ }, { ref_for: !0 }, E(M).part("icon", {
223
+ active: P(t, n),
223
224
  disabled: t.disabled || y.disabled || void 0
224
- })), null, 16, ["icon"])) : h("", !0)]),
225
+ })), null, 16, ["icon"])) : m("", !0)]),
225
226
  _: 2
226
227
  }, 1032, ["props", "slots"]),
227
- _("span", x({
228
+ g("span", x({
228
229
  class: "bb-breadcrumbs__text",
229
- title: M.value.length > 1 && V.value === M.value.length - 1 ? t.label : void 0
230
- }, { ref_for: !0 }, D(N).part("text", {
231
- active: L(t, n),
230
+ title: j.value.length > 1 && R.value === j.value.length - 1 ? t.label : void 0
231
+ }, { ref_for: !0 }, E(M).part("text", {
232
+ active: P(t, n),
232
233
  disabled: t.disabled || y.disabled || void 0
233
- })), [E(e.$slots, I(t), {
234
+ })), [T(e.$slots, Oe(t), {
234
235
  disabled: !!(t.disabled || y.disabled),
235
236
  index: n,
236
237
  item: t,
237
238
  label: t.label
238
- }, () => [re(ae(t.label), 1)])], 16, ge),
239
- v(D(r), {
240
- props: z(t, n),
241
- slots: R(t, "append")
239
+ }, () => [_(se(t.label), 1)])], 16, ve),
240
+ v(E(r), {
241
+ props: I(t, n),
242
+ slots: F(t, "append")
242
243
  }, {
243
- default: O(() => [t["append:icon"] ? (C(), m(d, x({
244
+ default: D(() => [t["append:icon"] ? (C(), p(u, x({
244
245
  key: 0,
245
246
  class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--append",
246
247
  icon: t["append:icon"],
247
248
  size: "14"
248
- }, { ref_for: !0 }, D(N).part("icon", {
249
- active: L(t, n),
249
+ }, { ref_for: !0 }, E(M).part("icon", {
250
+ active: P(t, n),
250
251
  disabled: t.disabled || y.disabled || void 0
251
- })), null, 16, ["icon"])) : h("", !0)]),
252
+ })), null, 16, ["icon"])) : m("", !0)]),
252
253
  _: 2
253
254
  }, 1032, ["props", "slots"])
254
255
  ]),
255
256
  _: 2
256
- }, 1040, ["disabled", "tag"]), n < M.value.length - 1 ? (C(), g("span", _e, [E(e.$slots, "divider", {}, () => [v(d, {
257
- icon: D(l),
257
+ }, 1040, ["disabled", "tag"]), n < j.value.length - 1 ? (C(), h("span", ye, [T(e.$slots, "divider", {}, () => [v(u, {
258
+ icon: E(A),
258
259
  size: "14"
259
- }, null, 8, ["icon"])])])) : h("", !0)], 16)) : h("", !0)], 64))), 128))]),
260
- e.$slots.append ? (C(), g("div", ve, [E(e.$slots, "append", { disabled: y.disabled })])) : h("", !0)
261
- ])], 16, ue));
260
+ }, null, 8, ["icon"])])])) : m("", !0)], 16)) : m("", !0)], 64))), 128))]),
261
+ e.$slots.append ? (C(), h("div", be, [T(e.$slots, "append", { disabled: y.disabled })])) : m("", !0)
262
+ ])], 16, fe));
262
263
  }
263
264
  });
264
- export { j as default };
265
+ export { k as default };
@@ -41,7 +41,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
41
41
  disabled?: boolean;
42
42
  readonly?: boolean;
43
43
  clearable?: boolean;
44
- } & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "max" | "selectable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
44
+ } & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "max" | "selectable" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
45
45
  "onUpdate:modelValue"?: ((value: import('./types.js').BbDateValue<R, M>) => any) | undefined;
46
46
  "onUpdate:activeSegment"?: ((value: BbCalendarSegment) => any) | undefined;
47
47
  "onTime-pick"?: ((payload: {