bitboss-ui 3.0.0-beta.72 → 3.0.0-beta.74

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 (185) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +34 -7
  5. package/dist/ai/BbBadge.md +4 -4
  6. package/dist/ai/BbCalendar.md +4 -3
  7. package/dist/ai/BbColorPalette.md +8 -9
  8. package/dist/ai/BbConfirmPortal.md +1 -1
  9. package/dist/ai/BbDatePicker.md +4 -3
  10. package/dist/ai/BbDialog.md +17 -4
  11. package/dist/ai/BbDropdown.md +23 -10
  12. package/dist/ai/BbDropdownButton.md +2 -2
  13. package/dist/ai/BbForm.md +11 -7
  14. package/dist/ai/BbHoverCardPortal.md +1 -1
  15. package/dist/ai/BbNumberInput.md +5 -3
  16. package/dist/ai/BbPopoverPortal.md +1 -1
  17. package/dist/ai/BbTable.md +43 -19
  18. package/dist/ai/BbTimePicker.md +4 -3
  19. package/dist/ai/BbToastPortal.md +1 -1
  20. package/dist/ai/changelog.json +60 -4
  21. package/dist/ai/components.json +56 -20
  22. package/dist/ai/guides/design-tokens.md +20 -0
  23. package/dist/ai/guides/eslint-rules.md +1 -1
  24. package/dist/ai/guides/inertia-helpers.md +613 -53
  25. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  26. package/dist/ai/guides/migration/components/use-confirm.md +4 -1
  27. package/dist/ai/guides/migration/v2-to-v3.md +24 -0
  28. package/dist/ai/guides/migration/v3-beta-tooling.md +3 -0
  29. package/dist/ai/guides/preset-components.md +15 -2
  30. package/dist/ai/guides/reporting.md +49 -0
  31. package/dist/ai/helpers/inertia/manifest.json +33 -38
  32. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  33. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  34. package/dist/ai/helpers/inertia/utils.ts +552 -3
  35. package/dist/ai/index.md +1 -0
  36. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  37. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  38. package/dist/ai/manifest/components/BbColorPalette.json +3 -3
  39. package/dist/ai/manifest/components/BbConfirm.removed.json +4 -4
  40. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  41. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +2 -2
  42. package/dist/ai/manifest/components/BbDatePicker.json +3 -3
  43. package/dist/ai/manifest/components/BbDialog.tree.json +5 -1
  44. package/dist/ai/manifest/components/BbDropdown.json +3 -3
  45. package/dist/ai/manifest/components/BbDropdown.tree.json +3 -2
  46. package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
  47. package/dist/ai/manifest/components/BbForm.json +1 -1
  48. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  49. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  50. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  51. package/dist/ai/manifest/components/BbPopover.json +1 -1
  52. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  53. package/dist/ai/manifest/components/BbSelectPopover.json +1 -1
  54. package/dist/ai/manifest/components/BbTable.tree.json +12 -6
  55. package/dist/ai/manifest/components/BbTimePicker.json +3 -3
  56. package/dist/ai/manifest/components/BbToast.removed.json +1 -1
  57. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  58. package/dist/ai/manifest/components/CommonPopover.json +1 -1
  59. package/dist/ai/manifest/index.json +2 -2
  60. package/dist/ai/manifest/meta.json +36 -0
  61. package/dist/ai/manifest/types.advanced.json +81 -80
  62. package/dist/ai/manifest/types.api.json +66 -65
  63. package/dist/ai/manifest/types.wrapper.json +155 -118
  64. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  65. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  66. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  67. package/dist/ai/source/BbAlert.md +16 -4
  68. package/dist/ai/source/BbAvatar.md +2 -0
  69. package/dist/ai/source/BbBreadcrumbs.md +4 -1
  70. package/dist/ai/source/BbCalendar.md +22 -12
  71. package/dist/ai/source/BbColorPalette.md +41 -12
  72. package/dist/ai/source/BbConfirm.md +7 -0
  73. package/dist/ai/source/BbConfirmPortal.md +9 -4
  74. package/dist/ai/source/BbDatePicker.md +53 -22
  75. package/dist/ai/source/BbDatePickerInput.md +32 -8
  76. package/dist/ai/source/BbDialog.md +31 -1
  77. package/dist/ai/source/BbDropdown.md +52 -24
  78. package/dist/ai/source/BbDropdownGroup.md +17 -21
  79. package/dist/ai/source/BbForm.md +80 -6
  80. package/dist/ai/source/BbHoverCard.md +7 -0
  81. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  82. package/dist/ai/source/BbNumberInput.md +5 -6
  83. package/dist/ai/source/BbOffCanvas.md +34 -1
  84. package/dist/ai/source/BbPopover.md +7 -0
  85. package/dist/ai/source/BbPopoverPortal.md +9 -5
  86. package/dist/ai/source/BbRadio.md +4 -3
  87. package/dist/ai/source/BbRadioGroup.md +7 -5
  88. package/dist/ai/source/BbTable.md +54 -6
  89. package/dist/ai/source/BbTag.md +10 -3
  90. package/dist/ai/source/BbTimePicker.md +50 -15
  91. package/dist/ai/source/BbTimePickerInput.md +30 -7
  92. package/dist/ai/source/BbToast.md +14 -0
  93. package/dist/ai/source/BbToastPortal.md +16 -4
  94. package/dist/ai/source/CommonFieldInput.md +11 -5
  95. package/dist/ai/source/CommonPopover.md +4 -1
  96. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  97. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +1 -1
  98. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  99. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  100. package/dist/components/BbCalendar/types.d.ts +2 -2
  101. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  102. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +197 -192
  103. package/dist/components/BbColorPalette/types.d.ts +1 -1
  104. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  105. package/dist/components/BbConfirm/types.d.ts +5 -0
  106. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  107. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +145 -139
  108. package/dist/components/BbDatePicker/types.d.ts +2 -2
  109. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +337 -335
  110. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +253 -245
  111. package/dist/components/BbDialog/leaveGhost.js +33 -0
  112. package/dist/components/BbDialog/overlayActions.js +34 -20
  113. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +11 -3
  114. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +4 -4
  115. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +119 -120
  116. package/dist/components/BbDropdown/types.d.ts +8 -17
  117. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  118. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  119. package/dist/components/BbForm/types.d.ts +31 -0
  120. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  121. package/dist/components/BbHoverCard/types.d.ts +5 -0
  122. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  123. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  124. package/dist/components/BbNumberInput/types.d.ts +4 -3
  125. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +385 -377
  126. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  127. package/dist/components/BbPopover/types.d.ts +5 -0
  128. package/dist/components/BbRadio/types.d.ts +4 -3
  129. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +10 -12
  130. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +231 -231
  131. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  132. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  133. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
  134. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +106 -100
  135. package/dist/components/BbTimePicker/types.d.ts +2 -2
  136. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +214 -213
  137. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  138. package/dist/components/BbToast/types.d.ts +5 -0
  139. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  140. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +1 -1
  141. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  142. package/dist/composables/formSubmitLock.js +2 -1
  143. package/dist/composables/overlayRegistry.js +52 -42
  144. package/dist/composables/useActiveInactiveState.js +8 -4
  145. package/dist/composables/useBbDialog.js +5 -5
  146. package/dist/composables/useOwnModel.js +16 -0
  147. package/dist/composables/useSegmentedFields.js +31 -20
  148. package/dist/deprecation/ai-deprecations.json.js +1 -1
  149. package/dist/i18n/currencyDigits.js +58 -0
  150. package/dist/i18n/regionDates.js +250 -0
  151. package/dist/i18n/regionHints.js +30 -41
  152. package/dist/index.d.ts +34 -30
  153. package/dist/llms-full.txt +874 -136
  154. package/dist/llms.txt +3 -1
  155. package/dist/styles.css +2 -2
  156. package/dist/types/ActionButton.d.ts +3 -1
  157. package/dist/types/CommonProps.d.ts +8 -0
  158. package/dist/utilities/functions/hash.js +123 -3
  159. package/dist/utilities/functions/isEqual.js +69 -3
  160. package/dist/utils/versionCheck.js +1 -1
  161. package/dist/vite-plugin.d.ts +2 -1
  162. package/dist/vite.js +8 -5
  163. package/llms.txt +3 -1
  164. package/package.json +2 -3
  165. package/scripts/README.md +43 -43
  166. package/scripts/lib/adoption-checklist.json +6 -5
  167. package/scripts/lib/agent-manifest.mjs +33 -6
  168. package/scripts/lib/agent-setup.mjs +54 -6
  169. package/scripts/lib/cldr-pins.ts +182 -0
  170. package/scripts/lib/engines-include.d.mts +5 -0
  171. package/scripts/lib/engines-include.mjs +40 -0
  172. package/scripts/lib/eslint-plugin.mjs +8 -2
  173. package/scripts/lib/helpers-add.mjs +21 -2
  174. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  175. package/scripts/lib/idiom-scan.mjs +30 -3
  176. package/scripts/lib/legacy-agent-files.json +152 -0
  177. package/scripts/lib/mcp-config.mjs +74 -7
  178. package/scripts/lib/portal-names.mjs +78 -8
  179. package/scripts/lib/release-results.mjs +153 -6
  180. package/scripts/lib/report.mjs +340 -0
  181. package/scripts/lib/run-beat.mjs +14 -0
  182. package/scripts/lib/run-records.mjs +313 -0
  183. package/scripts/lib/selector-log.mjs +98 -0
  184. package/scripts/lib/ticket-beat.mjs +30 -0
  185. package/scripts/lib/validate-bb-markup.mjs +17 -2
@@ -516,10 +516,12 @@ const containerPassthrough = aliasParts(passthrough, { label: 'legend' });
516
516
  /** Each row's radio input focus — the glyph's `focused` / `focusVisible`. */
517
517
  const rowFocus = useToggleListFocus();
518
518
 
519
- const rowId = (option: Option, fieldId: string | undefined) => {
520
- if (!fieldId) return undefined;
521
- return [fieldId, option.valueHash].filter(Boolean).join('-');
522
- };
519
+ /** A row's input id: the field's id plus the row's hash. */
520
+ const rowIdIn = (option: Option, fieldId: string): string =>
521
+ [fieldId, option.valueHash].filter(Boolean).join('-');
522
+
523
+ const rowId = (option: Option, fieldId: string | undefined) =>
524
+ fieldId ? rowIdIn(option, fieldId) : undefined;
523
525
 
524
526
  /** Every row's native radio back to its option's `selected` (rows render in option order). */
525
527
  const syncRowsToData = () => {
@@ -632,7 +634,7 @@ const rowIconSlotProps = (
632
634
  focusVisible: rowFocus.focusVisible(option.valueHash),
633
635
  hasErrors: !!fieldHasErrors,
634
636
  hasWarnings: Boolean(fieldHasWarnings) && !fieldHasErrors,
635
- id: rowId(option, fieldId),
637
+ id: rowIdIn(option, fieldId),
636
638
  name: resolvedName.value,
637
639
  parsedValue: toggleInputValue('radio', option.value),
638
640
  readonly: !!props.readonly,
@@ -3793,10 +3793,18 @@ const columnTracks = computed(() => {
3793
3793
  // the frozen lengths become proportional floors instead of hard sizes. A
3794
3794
  // user-resized column opts out of that share (it is an exact track, see
3795
3795
  // `isResized`); the declared-only columns keep filling around it.
3796
+ // Every width a LENGTH: a keyword track (`1fr`,
3797
+ // `minmax(…)`, `auto`) sizes itself, so a table that has one is not all
3798
+ // frozen, and its bare lengths hold as declared.
3796
3799
  const allFrozen =
3797
3800
  !isInheriting.value &&
3798
3801
  columns.length > 0 &&
3799
- columns.every((column) => column.width != null);
3802
+ columns.every(
3803
+ // The DECLARED width: a virtual table's measured one is not a
3804
+ // declaration (`isVirtualFrozen` sizes those).
3805
+ (column) =>
3806
+ column.width != null && !isTrackKeyword(toLength(column.width))
3807
+ );
3800
3808
  columns.forEach((column, index) => {
3801
3809
  const key = String(column.key);
3802
3810
  const declared = effectiveWidth(column);
@@ -9450,11 +9458,13 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
9450
9458
  }
9451
9459
 
9452
9460
  .bb-table {
9453
- /* The table's surface colour. Cells are transparent at rest so the row can
9454
- tint them, but anything that sticks over scrolled content — the stuck
9455
- head band and pinned (`column.fixed`) cells — must be opaque, and paints this.
9456
- Set it on the table (`.my-table { --bg: … }`) when the table sits on a
9457
- surface that is not `--bb-panel`; a nested table re-declares its own. */
9461
+ /* The table's surface colour. A root table PAINTS it (below), so the
9462
+ whole table is one solid surface: pinned cells, the
9463
+ stuck head band and the rows between them always match, whatever the
9464
+ table sits on. Set it on the table (`.my-table { --bg: … }`) to blend
9465
+ into another surface. Rows and cells stay transparent so the row
9466
+ states and tones lay over it; a nested table re-declares its own and
9467
+ paints nothing (it sits on its parent's rows). */
9458
9468
  --bg: var(--bb-panel);
9459
9469
  /* The row hover's fill: the faint wash by default. Retint it or
9460
9470
  switch it off here (`transparent`), never with a `hover:bg-*` on the
@@ -9462,6 +9472,16 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
9462
9472
  one would let the scrolled cells show through it. This one knob reaches
9463
9473
  the row and its pinned cells alike. */
9464
9474
  --row-hover: var(--bb-surface-hover);
9475
+ /* A row's resting tone: set `--row-tone` on a row (`pt:row`, `row-class`)
9476
+ on an open row's expansion (`pt:expand`) or on a `#<key>:first` /
9477
+ `:last` row (`pt:firstRow` / `pt:lastRow`), never a `bg-*`. It paints
9478
+ as one translucent layer (`--row-tone-mix` of the colour) ABOVE every
9479
+ state fill, so hover and highlighted still show through it, and pinned
9480
+ cells and sticky rows lay the same layer over their opaque base.
9481
+ Re-declared on every table, so a table nested in a toned row starts
9482
+ untoned (the row's value would otherwise inherit into it). */
9483
+ --row-tone: initial;
9484
+ --row-tone-mix: 8%;
9465
9485
  /* Plate frost. `--bb-surface-filter` is a full `backdrop-filter` VALUE and
9466
9486
  defaults to `none` — the property's own initial value — so this pair is a
9467
9487
  measured no-op until a theme sets the knob: no containing block for fixed
@@ -9881,6 +9901,8 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
9881
9901
  from color-mix(in oklab, var(--row-bg, transparent) 99.9%, var(--bg)) r g
9882
9902
  b / 1
9883
9903
  );
9904
+ /* The row's tone layer, over the opaque base (`--row-tone`). */
9905
+ background-image: inherit;
9884
9906
  /* Same curve and duration as the row's own tint transition, so a pinned
9885
9907
  cell fades in step with its row instead of snapping ahead of it. */
9886
9908
  transition: background-color var(--bb-transition-fast) var(--bb-ease);
@@ -10774,6 +10796,22 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
10774
10796
  white-space: nowrap;
10775
10797
  }
10776
10798
 
10799
+ /* The tone layer (see `--row-tone` on the root). An image, so it sits
10800
+ above the row's `background-color`: the library's states and an app's
10801
+ `bg-*` stay under it and keep showing. A pinned cell inherits the
10802
+ image over its own opaque base (below), so it shows the same
10803
+ composite, never the rows scrolled under it. */
10804
+ &__row,
10805
+ &__edge-row,
10806
+ &-expand__cell {
10807
+ --tone: color-mix(
10808
+ in oklab,
10809
+ var(--row-tone, transparent) var(--row-tone-mix),
10810
+ transparent
10811
+ );
10812
+ background-image: linear-gradient(var(--tone), var(--tone));
10813
+ }
10814
+
10777
10815
  &__row {
10778
10816
  /* Keep a row on one printed page. */
10779
10817
  break-inside: avoid;
@@ -11153,6 +11191,16 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
11153
11191
  }
11154
11192
  }
11155
11193
 
11194
+ /* A root table paints its surface at rest: one solid
11195
+ table on any surface, so a pinned cell can never differ from its
11196
+ neighbours. A nested table paints nothing: it sits on its parent's rows
11197
+ and lets their hover, highlight and tone show. Under a glass theme `--bg`
11198
+ is the translucent panel, so the table reads as a frosted plate like a
11199
+ dialog. One class of specificity, like the `--bg` it paints. */
11200
+ .bb-table:where(:not(.bb-table .bb-table)) {
11201
+ background-color: var(--bg);
11202
+ }
11203
+
11156
11204
  /* The nested-indent tokens, defaulted on ROOT tables only (zero specificity):
11157
11205
  a consumer sets them on the root table (`.my-table { --indent: 24px;
11158
11206
  --indent-at: select }`) and every nested table inherits them, while a
@@ -409,7 +409,9 @@ const setInactive = () => {
409
409
  const onWrapperFocusIn = () => {
410
410
  if (active.value) return;
411
411
  setActive();
412
- document.addEventListener('click', onOutsideInteraction);
412
+ // Capture: a dialog around the field stops `click` at
413
+ // its root, so a click elsewhere in it never bubbles here.
414
+ document.addEventListener('click', onOutsideInteraction, true);
413
415
  document.addEventListener('focusin', onOutsideInteraction);
414
416
  };
415
417
 
@@ -606,9 +608,14 @@ const onWrapperClick = (event: MouseEvent) => {
606
608
  const onOutsideInteraction = async (event: Event) => {
607
609
  if (event.target instanceof Node) {
608
610
  if (wrapper.value) {
611
+ // a press on the field's own padding parks focus
612
+ // on the nearest focusable ancestor (the dialog around it): not the
613
+ // user going elsewhere. A CLICK on that ancestor still is.
614
+ if (event.type === 'focusin' && event.target.contains(wrapper.value.$el))
615
+ return;
609
616
  if (!wrapper.value.$el.contains(event.target)) {
610
617
  setInactive();
611
- document.removeEventListener('click', onOutsideInteraction);
618
+ document.removeEventListener('click', onOutsideInteraction, true);
612
619
  document.removeEventListener('focusin', onOutsideInteraction);
613
620
  alignQueryToState();
614
621
  return;
@@ -656,7 +663,7 @@ const leave = () => {
656
663
  } else {
657
664
  activity.value = 'idle';
658
665
  }
659
- document.removeEventListener('click', onOutsideInteraction);
666
+ document.removeEventListener('click', onOutsideInteraction, true);
660
667
  document.removeEventListener('focusin', onOutsideInteraction);
661
668
  };
662
669
 
@@ -22,7 +22,7 @@
22
22
  },
23
23
  anchorProps: { ref: setAnchorRef },
24
24
  open: isOpen,
25
- value: modelValue,
25
+ value: ownModel,
26
26
  text: activatorText,
27
27
  disabled: !!disabled,
28
28
  }"
@@ -146,6 +146,7 @@ import {
146
146
  watch,
147
147
  } from 'vue';
148
148
  import { useId } from '@/composables/useId';
149
+ import { useOwnModel } from '@/composables/useOwnModel';
149
150
  import { createReusableTemplate } from '@vueuse/core';
150
151
  import {
151
152
  extractDomContainer,
@@ -158,6 +159,7 @@ import { useMobile } from '@/composables/useMobile';
158
159
  import { transitions } from '@/utilities/misc/transitions';
159
160
  import CommonTimeSelector from '../CommonTimeSelector/CommonTimeSelector.vue';
160
161
  import { spokenTimeOf } from '../BbCalendar/useDayjsLocale';
162
+ import { useHydrated } from '@/composables/useHydrated';
161
163
  import type { TimeUnit } from '../CommonTimeSelector/types';
162
164
  import BbOffCanvas from '../BbOffCanvas/BbOffCanvas.vue';
163
165
  import { BB_OFF_CANVAS_PT } from '../BbOffCanvas/types';
@@ -213,6 +215,15 @@ const props = declaredProps as unknown as ShapeErasedProps<
213
215
  >;
214
216
  const emit = declaredEmit as unknown as BbTimePickerEvents;
215
217
 
218
+ type TimeModel = Exclude<BbTimePickerProps['modelValue'], undefined>;
219
+ // No `v-model`: the picker keeps its own value, like an input.
220
+ const { model: ownModel, set: setModel } = useOwnModel<'modelValue', TimeModel>(
221
+ props,
222
+ 'modelValue',
223
+ (event, value) => emit(event, value),
224
+ () => (props.range ? [] : null)
225
+ );
226
+
216
227
  /**
217
228
  * Passthrough. `root` lands on the floating popover, where a consumer `class` lands too (no node on the phone sheet); `panel` on the surface you see (the popover's painted bubble, or the sheet itself on a phone); `item` lives in the shared time selector, which binds what it is given per entry.
218
229
  */
@@ -231,11 +242,19 @@ const config = useConfig();
231
242
  * The value as the picker shows it, for a trigger's label:
232
243
  * 12-hour with the locale's day period under `ampm` ("9:30 PM",
233
244
  * "午後9:30"), else 24-hour; a range is `start – end`; empty is `''`.
245
+ * Before hydration, the model as written (`spokenTimeOf`).
234
246
  */
247
+ const { isHydrated } = useHydrated();
235
248
  const activatorText = computed(() => {
236
249
  const say = (value: string) =>
237
- spokenTimeOf(value, config.locale, !!props.ampm, !!props.seconds);
238
- const value = props.modelValue;
250
+ spokenTimeOf(
251
+ value,
252
+ config.locale,
253
+ !!props.ampm,
254
+ !!props.seconds,
255
+ isHydrated.value
256
+ );
257
+ const value = ownModel.value;
239
258
  if (Array.isArray(value)) return value.filter(Boolean).map(say).join(' – ');
240
259
  return value ? say(value) : '';
241
260
  });
@@ -360,11 +379,20 @@ const onActivatorClick = (event: MouseEvent) => {
360
379
  isOpen.value = !isOpen.value;
361
380
  };
362
381
 
363
- /** Close when the backdrop (the dialog element itself) is clicked. */
382
+ /**
383
+ * a click outside the panel closes it. The panel is a modal
384
+ * `<dialog>` whose transparent backdrop the browser does not hit-test, so the
385
+ * click lands on the page, not on the dialog; heard in the capture phase, as
386
+ * a dialog around the picker stops `click` at its root. The activator's own
387
+ * click toggles it itself. Closing hands focus back to the activator.
388
+ */
364
389
  const onClickDocument = (event: Event) => {
365
- if (event.target instanceof HTMLDialogElement) {
366
- isOpen.value = false;
367
- }
390
+ const target = event.target;
391
+ if (!(target instanceof Node)) return;
392
+ const panel = document.getElementById(panelId)?.closest('.bb-common-popover');
393
+ if (panel?.contains(target)) return;
394
+ if (activatorEl.value?.contains(target)) return;
395
+ isOpen.value = false;
368
396
  };
369
397
 
370
398
  watch(isOpen, async (val) => {
@@ -375,7 +403,10 @@ watch(isOpen, async (val) => {
375
403
  : null;
376
404
  // The floating <dialog> is modal; the sheet manages its own backdrop.
377
405
  if (!useOffcanvas.value) {
378
- document.addEventListener('click', onClickDocument, { passive: true });
406
+ document.addEventListener('click', onClickDocument, {
407
+ passive: true,
408
+ capture: true,
409
+ });
379
410
  }
380
411
  await nextTick();
381
412
  firstFocusableMatch(
@@ -383,7 +414,9 @@ watch(isOpen, async (val) => {
383
414
  '[tabindex="0"]'
384
415
  )?.focus();
385
416
  } else {
386
- document.removeEventListener('click', onClickDocument);
417
+ document.removeEventListener('click', onClickDocument, {
418
+ capture: true,
419
+ });
387
420
  previousFocus?.focus();
388
421
  previousFocus = null;
389
422
  }
@@ -460,7 +493,9 @@ watch(
460
493
 
461
494
  onBeforeUnmount(() => {
462
495
  cleanupActivator?.();
463
- document.removeEventListener('click', onClickDocument);
496
+ document.removeEventListener('click', onClickDocument, {
497
+ capture: true,
498
+ });
464
499
  });
465
500
 
466
501
  // ---- Adaptive surface (popover on desktop, bottom sheet on mobile) --------------
@@ -520,7 +555,7 @@ const segIndex = (segment: BbTimePickerSegment) => (segment === 'end' ? 1 : 0);
520
555
 
521
556
  /** The raw `HH:mm[:ss]` string carried in `modelValue` for a segment. */
522
557
  const timeStringFor = (segment: BbTimePickerSegment): string | null => {
523
- const mv = props.modelValue;
558
+ const mv = ownModel.value;
524
559
  if (mv == null) return null;
525
560
  if (Array.isArray(mv)) return mv[segIndex(segment)] ?? null;
526
561
  return segment === 'start' && typeof mv === 'string' ? mv : null;
@@ -597,7 +632,7 @@ const onTimePick = (payload: { unit: TimeUnit; value: string }) => {
597
632
  }
598
633
 
599
634
  if (!props.range) {
600
- emit('update:modelValue', clamped);
635
+ setModel(clamped);
601
636
  return;
602
637
  }
603
638
 
@@ -609,7 +644,7 @@ const onTimePick = (payload: { unit: TimeUnit; value: string }) => {
609
644
  if (startStr) out.push(startStr);
610
645
  if (endStr) out.push(endStr);
611
646
  // A range is always an array, `[]` included.
612
- emit('update:modelValue', out);
647
+ setModel(out);
613
648
  };
614
649
 
615
650
  // Deactivated by KeepAlive while open counts as closing: the surface leaves the
@@ -756,7 +791,7 @@ export type BbTimePickerBaseProps = BbTimePickerPtProps & {
756
791
  * v-model value: `null` for empty, a 24-hour `HH:mm` (or `HH:mm:ss` with
757
792
  * `seconds`) string, or a two-element `[start, end]` array when `range` is true.
758
793
  */
759
- modelValue: string | string[] | null;
794
+ modelValue?: string | string[] | null;
760
795
  /**
761
796
  * Which end the columns edit in range mode (`v-model:active-segment`).
762
797
  * Standalone use manages this internally via the in-panel toggle; a host can
@@ -843,7 +878,7 @@ export type BbTimePickerBaseProps = BbTimePickerPtProps & {
843
878
  */
844
879
  export type BbTimePickerModelProps<R extends boolean = boolean> = {
845
880
  range?: R;
846
- modelValue: PtNoInfer<BbTimeModel<R>>;
881
+ modelValue?: PtNoInfer<BbTimeModel<R>>;
847
882
  };
848
883
 
849
884
  export type BbTimePickerProps<R extends boolean = boolean> =
@@ -134,7 +134,7 @@
134
134
  ]"
135
135
  :disabled="disabled"
136
136
  :inputmode="inputmodeFor(descriptor.field)"
137
- :maxlength="fieldSpecs[descriptor.field].maxLength"
137
+ :maxlength="maxlengthOf(descriptor.field)"
138
138
  :name="getFieldName(descriptor)"
139
139
  :readonly="isInputReadonly"
140
140
  :required="fieldRequired"
@@ -353,6 +353,7 @@ import CommonTimeSelector from '../CommonTimeSelector/CommonTimeSelector.vue';
353
353
  import type { TimeUnit } from '../CommonTimeSelector/types';
354
354
  import { useMeridiem } from '../CommonTimeSelector/useMeridiem';
355
355
  import { spokenTimeOf } from '../BbCalendar/useDayjsLocale';
356
+ import { useHydrated } from '@/composables/useHydrated';
356
357
  import { localeOf } from '@/utilities/calendar';
357
358
  import {
358
359
  BB_TIME_PICKER_INPUT_PT,
@@ -682,6 +683,15 @@ const fieldSpecs = computed<Record<FieldKey, SegmentedFieldSpec>>(() => ({
682
683
  },
683
684
  meridiem: meridiemWords.fieldSpec.value,
684
685
  }));
686
+ /**
687
+ * Words keep a `maxlength`; a digit field enforces its length on input, where
688
+ * a digit typed into a full field replaces it (the attribute dropped
689
+ * the keystroke before any handler ran).
690
+ */
691
+ const maxlengthOf = (field: FieldKey) =>
692
+ fieldSpecs.value[field].kind === 'numeric'
693
+ ? undefined
694
+ : fieldSpecs.value[field].maxLength;
685
695
 
686
696
  /** The row in runs: one per time's numbers, one per day period. */
687
697
  const runs = computed(() =>
@@ -1010,13 +1020,19 @@ const onFocusIn = () => {
1010
1020
  emit('active');
1011
1021
  active.value = true;
1012
1022
  document.addEventListener('focusin', onDocumentInteraction);
1013
- document.addEventListener('click', onDocumentInteraction);
1023
+ // Capture: a dialog around the field stops `click` at its
1024
+ // root, so a click elsewhere in it never bubbles here.
1025
+ document.addEventListener('click', onDocumentInteraction, true);
1014
1026
  };
1015
1027
 
1016
1028
  const onDocumentInteraction = (event: Event) => {
1017
1029
  const target = event.target;
1018
1030
  if (!(target instanceof HTMLElement)) return;
1019
1031
  if (!wrapper.value?.$el) return;
1032
+ // a press on the field's own padding or separator parks
1033
+ // focus on the nearest focusable ancestor (the dialog around it): not
1034
+ // the user going elsewhere. A CLICK on that ancestor still is.
1035
+ if (event.type === 'focusin' && target.contains(wrapper.value.$el)) return;
1020
1036
  if (wrapper.value.$el.contains(target)) return;
1021
1037
  if (panel.value?.contains(target)) return;
1022
1038
  leave();
@@ -1038,7 +1054,7 @@ const leave = () => {
1038
1054
  resetActiveState();
1039
1055
  emit('inactive');
1040
1056
  document.removeEventListener('focusin', onDocumentInteraction);
1041
- document.removeEventListener('click', onDocumentInteraction);
1057
+ document.removeEventListener('click', onDocumentInteraction, true);
1042
1058
  };
1043
1059
 
1044
1060
  // ── Adaptive surface ────────────────────────────────────────────────────────
@@ -1174,7 +1190,7 @@ const onSegmentFieldFocus = (
1174
1190
  event: FocusEvent
1175
1191
  ) => {
1176
1192
  lastFocusedSegment.value = descriptor.segment;
1177
- onFieldFocus(descriptor);
1193
+ onFieldFocus(descriptor, event);
1178
1194
  emit('focus', event);
1179
1195
  };
1180
1196
 
@@ -1218,10 +1234,17 @@ const onTimeSelect = ({ unit, value }: { unit: TimeUnit; value: string }) => {
1218
1234
  * A `HH:mm(:ss)` model value as the locale says a time (Intl, CLDR): 12-hour
1219
1235
  * with the locale's day period when the field shows `ampm` ("3:05 PM",
1220
1236
  * "午後3:05"), else 24-hour ("15:05", fi "15.05"). A value that doesn't parse
1221
- * is read as written.
1237
+ * is read as written, and so is every value before hydration.
1222
1238
  */
1239
+ const { isHydrated } = useHydrated();
1223
1240
  const spokenTime = (value: string) =>
1224
- spokenTimeOf(value, config.locale, !!props.ampm, !!props.seconds);
1241
+ spokenTimeOf(
1242
+ value,
1243
+ config.locale,
1244
+ !!props.ampm,
1245
+ !!props.seconds,
1246
+ isHydrated.value
1247
+ );
1225
1248
 
1226
1249
  const accessibleButtonLabel = computed(() => {
1227
1250
  if (props.range) {
@@ -1243,7 +1266,7 @@ const accessibleButtonLabel = computed(() => {
1243
1266
 
1244
1267
  onBeforeUnmount(() => {
1245
1268
  document.removeEventListener('focusin', onDocumentInteraction);
1246
- document.removeEventListener('click', onDocumentInteraction);
1269
+ document.removeEventListener('click', onDocumentInteraction, true);
1247
1270
  document.removeEventListener('click', onClickDocument);
1248
1271
  });
1249
1272
  </script>
@@ -301,6 +301,13 @@ export type BbToastPortalContext<P = any> = {
301
301
  close: () => void;
302
302
  };
303
303
 
304
+ /** BbToastPortal's slots; index it for one slot's type: `BbToastPortalSlots<MyData>['default']`. */
305
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- `P` defaults to `any` as on BbToastPortalContext
306
+ export type BbToastPortalSlots<P = any> = {
307
+ /** The toast's body, rendered per toast with its own context. */
308
+ default?: (scope: BbToastPortalContext<P>) => unknown;
309
+ };
310
+
304
311
  /**
305
312
  * Props for the `<BbToast>` host (the "Toaster").
306
313
  *
@@ -699,6 +706,13 @@ export type BbToastProps = BbToastPtProps & {
699
706
  overflow-wrap: anywhere;
700
707
  }
701
708
 
709
+ /* a closable toast's title keeps clear of the ✕ (22px, 8px
710
+ from the card's edge, past the row's 16px end padding), plus 4px of air,
711
+ as the off-canvas title does. The text starts below the ✕. */
712
+ .bb-toast__inner:has(> .bb-toast__close) .bb-toast__title {
713
+ padding-inline-end: calc(22px + 8px - 16px + 4px);
714
+ }
715
+
702
716
  .bb-toast__text {
703
717
  color: var(--fg);
704
718
  font-size: 13px;
@@ -10,7 +10,7 @@
10
10
  <script setup lang="ts">
11
11
  import { useSlots, watchEffect, type FunctionalComponent } from 'vue';
12
12
  import { registerToastPortal } from '../../composables/useToast';
13
- import type { BbToastPortalContext } from './types';
13
+ import type { BbToastPortalContext, BbToastPortalSlots } from './types';
14
14
 
15
15
  /**
16
16
  * Registers named content that any toast can render by passing
@@ -31,9 +31,7 @@ const props = defineProps<{
31
31
  name: string;
32
32
  }>();
33
33
 
34
- defineSlots<{
35
- default?: (scope: BbToastPortalContext) => unknown;
36
- }>();
34
+ defineSlots<BbToastPortalSlots>();
37
35
 
38
36
  const slots = useSlots();
39
37
 
@@ -167,6 +165,13 @@ export type BbToastPortalContext<P = any> = {
167
165
  close: () => void;
168
166
  };
169
167
 
168
+ /** BbToastPortal's slots; index it for one slot's type: `BbToastPortalSlots<MyData>['default']`. */
169
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- `P` defaults to `any` as on BbToastPortalContext
170
+ export type BbToastPortalSlots<P = any> = {
171
+ /** The toast's body, rendered per toast with its own context. */
172
+ default?: (scope: BbToastPortalContext<P>) => unknown;
173
+ };
174
+
170
175
  /**
171
176
  * Props for the `<BbToast>` host (the "Toaster").
172
177
  *
@@ -565,6 +570,13 @@ export type BbToastProps = BbToastPtProps & {
565
570
  overflow-wrap: anywhere;
566
571
  }
567
572
 
573
+ /* a closable toast's title keeps clear of the ✕ (22px, 8px
574
+ from the card's edge, past the row's 16px end padding), plus 4px of air,
575
+ as the off-canvas title does. The text starts below the ✕. */
576
+ .bb-toast__inner:has(> .bb-toast__close) .bb-toast__title {
577
+ padding-inline-end: calc(22px + 8px - 16px + 4px);
578
+ }
579
+
568
580
  .bb-toast__text {
569
581
  color: var(--fg);
570
582
  font-size: 13px;
@@ -182,13 +182,19 @@ const getInputElement = (): HTMLInputElement | HTMLTextAreaElement | null => {
182
182
  );
183
183
  };
184
184
 
185
+ /*
186
+ * What handles its own click. A click on one is not a click on the field:
187
+ * the clear ✕, a picker's trigger, a link or button an app put in a slot
188
+ * (a BbSelect `#chip`) — none of them may focus the input or reach
189
+ * `container:click` (a BbSelect would open or close on it).
190
+ */
191
+ const INTERACTIVE =
192
+ 'a[href], button, input, textarea, select, summary, [role="button"], [role="link"], [contenteditable]:not([contenteditable="false"])';
193
+
185
194
  const onClickContainer = (event: MouseEvent) => {
186
195
  if (!container.value || props.preventFocus || props.disabled) return;
187
- const target = event.target as HTMLElement;
188
- if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA') return;
189
- // The clear ✕ lives inside the box: clearing is not a click on the field, so
190
- // it must not reach `container:click` (a closed BbSelect would open on it).
191
- if (target.closest('.bb-clearable-button')) return;
196
+ const hit = (event.target as Element | null)?.closest?.(INTERACTIVE);
197
+ if (hit && hit !== container.value && container.value.contains(hit)) return;
192
198
  getInputElement()?.focus();
193
199
  emit('container:click');
194
200
  };
@@ -190,8 +190,11 @@ const middleware = computed(() => {
190
190
  const boundary = boundaryElement.value;
191
191
  const overflowBoundary = overflowBoundaryElement.value;
192
192
  return [
193
- ...(props.disableFlip ? [] : [flipMiddleware()]),
193
+ // offset first, and flip with the page padding shift
194
+ // and size keep: flip measures the room the panel really needs, gap
195
+ // included. Its boundary stays the viewport (see `boundary`).
194
196
  offset(props.offset),
197
+ ...(props.disableFlip ? [] : [flipMiddleware({ padding: props.padding })]),
195
198
  shift({ padding: props.padding, ...(boundary ? { boundary } : {}) }),
196
199
  sizeMiddleware({
197
200
  padding: props.padding,
@@ -8,13 +8,16 @@ import { warnRemovedAttrs as o } from "../../utilities/functions/warnRemovedAttr
8
8
  import { transitions as s } from "../../utilities/misc/transitions.js";
9
9
  import { BB_ALERT_PT as c } from "./types.js";
10
10
  import { usePassthrough as l, variantPt as u } from "../../composables/usePassthrough.js";
11
- import { Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, defineComponent as v, guardReactiveProps as y, mergeModels as b, mergeProps as x, normalizeProps as S, openBlock as C, renderSlot as w, toDisplayString as T, unref as E, useAttrs as D, useModel as O, withCtx as k } from "vue";
11
+ import { Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, normalizeProps as C, openBlock as w, renderSlot as T, toDisplayString as E, unref as D, useAttrs as O, useModel as k, withCtx as A } from "vue";
12
12
  // src/components/BbAlert/BbAlert.vue?vue&type=script&setup=true&lang.ts
13
- var A = ["aria-live", "role"], j = { class: "bb-alert__inner-container" }, M = { class: "bb-alert__icon-container" }, N = { class: "bb-alert__content" }, P = /*@__PURE__*/ v({
13
+ var j = ["aria-live", "role"], M = { class: "bb-alert__inner-container" }, N = {
14
+ key: 0,
15
+ class: "bb-alert__icon-container"
16
+ }, P = { class: "bb-alert__content" }, F = /*@__PURE__*/ y({
14
17
  mixins: [u(c)],
15
18
  inheritAttrs: !1,
16
19
  __name: "BbAlert",
17
- props: /*@__PURE__*/ b({
20
+ props: /*@__PURE__*/ x({
18
21
  "pt:root": {},
19
22
  "pt:root:outline": {},
20
23
  "pt:root:primary": {},
@@ -65,47 +68,49 @@ var A = ["aria-live", "role"], j = { class: "bb-alert__inner-container" }, M = {
65
68
  }),
66
69
  emits: ["update:modelValue"],
67
70
  setup(s) {
68
- let u = O(s, "modelValue"), v = s, b = e("BbAlert", v, { hideClose: !1 }), P = l({
71
+ let u = k(s, "modelValue"), y = s, x = e("BbAlert", y, { hideClose: !1 }), F = l({
69
72
  component: "BbAlert",
70
- attrs: D(),
71
- props: v,
73
+ attrs: O(),
74
+ props: y,
72
75
  parts: c.parts,
73
76
  states: c.states,
74
77
  active: {},
75
78
  variant: {
76
79
  ...c.variant,
77
- current: () => v.variant
80
+ current: () => y.variant
78
81
  }
79
82
  });
80
83
  process.env.NODE_ENV !== "production" && o("BbAlert", a("BbAlert"));
81
- let { t: F } = r(), I = i(), L = f(() => v.hideIcon ? void 0 : v.icon ?? I.variantIcons?.alert?.[v.variant]), R = f(() => v.variant === "destructive" || v.variant === "warning"), z = f(() => v.role ?? (R.value ? "alert" : "status")), B = f(() => v.ariaLive ? v.ariaLive : v.role ? v.role === "alert" ? "assertive" : "polite" : R.value ? "assertive" : "polite"), V = () => {
84
+ let { t: I } = r(), L = i(), R = f(() => y.hideIcon ? void 0 : y.icon ?? L.variantIcons?.alert?.[y.variant]), z = f(() => y.variant === "destructive" || y.variant === "warning"), B = f(() => y.role ?? (z.value ? "alert" : "status")), V = f(() => y.ariaLive ? y.ariaLive : y.role ? y.role === "alert" ? "assertive" : "polite" : z.value ? "assertive" : "polite"), H = () => {
82
85
  u.value = !1;
83
86
  };
84
- return (e, r) => (C(), p(d, { name: "bb-alert-transition" }, {
85
- default: k(() => [u.value ? (C(), h("div", x({
87
+ return (e, r) => (w(), p(d, { name: "bb-alert-transition" }, {
88
+ default: A(() => [u.value ? (w(), h("div", S({
86
89
  key: 0,
87
90
  "aria-atomic": "true",
88
- "aria-live": B.value,
89
- class: ["bb-alert", `bb-alert--${v.variant}`],
90
- role: z.value,
91
- style: { "--transition-duration": `${v.transitionDuration}ms` }
92
- }, E(P).rootAttrs), [g("div", j, [g("div", M, [L.value ? (C(), p(t, x({
93
- key: 0,
91
+ "aria-live": V.value,
92
+ class: ["bb-alert", `bb-alert--${y.variant}`],
93
+ role: B.value,
94
+ style: { "--transition-duration": `${y.transitionDuration}ms` }
95
+ }, D(F).rootAttrs), [g("div", M, [R.value ? (w(), h("div", N, [v(t, S({
94
96
  class: "bb-alert__icon",
95
- icon: L.value,
97
+ icon: R.value,
96
98
  size: s.iconSize
97
- }, E(P).icon), null, 16, ["icon", "size"])) : m("", !0)]), g("div", N, [
98
- E(b).hideClose ? m("", !0) : (C(), p(n, x({
99
+ }, D(F).icon), null, 16, ["icon", "size"])])) : m("", !0), g("div", P, [
100
+ D(x).hideClose ? m("", !0) : (w(), p(n, S({
99
101
  key: 0,
100
102
  class: "bb-alert__close",
101
- label: s.closeLabel || E(F)("common.closeLabel").value,
102
- onClick: V
103
- }, E(P).close), null, 16, ["label"])),
104
- g("div", x({ class: "bb-alert__title" }, E(P).title), [w(e.$slots, "title", S(y({ text: s.title })), () => [_(T(s.title), 1)])], 16),
105
- g("div", x({ class: "bb-alert__text" }, E(P).text), [w(e.$slots, "text", S(y({ text: s.text })), () => [w(e.$slots, "default", {}, () => [_(T(s.text), 1)])])], 16)
106
- ])])], 16, A)) : m("", !0)]),
103
+ label: s.closeLabel || D(I)("common.closeLabel").value,
104
+ onClick: H
105
+ }, D(F).close), null, 16, ["label"])),
106
+ s.title || e.$slots.title ? (w(), h("div", S({
107
+ key: 1,
108
+ class: "bb-alert__title"
109
+ }, D(F).title), [T(e.$slots, "title", C(b({ text: s.title })), () => [_(E(s.title), 1)])], 16)) : m("", !0),
110
+ g("div", S({ class: "bb-alert__text" }, D(F).text), [T(e.$slots, "text", C(b({ text: s.text })), () => [T(e.$slots, "default", {}, () => [_(E(s.text), 1)])])], 16)
111
+ ])])], 16, j)) : m("", !0)]),
107
112
  _: 3
108
113
  }));
109
114
  }
110
115
  });
111
- export { P as default };
116
+ export { F as default };
@@ -126,7 +126,7 @@ var de = ["aria-label"], fe = { class: "bb-breadcrumbs__container" }, pe = {
126
126
  for (let e = t - 1; e >= 1; e--) {
127
127
  let o = s[t - e], l = i + e * (r + 2 * a) + o;
128
128
  if (l <= n) {
129
- if (e > 0 && c(l)) {
129
+ if (e > 1 && c(l)) {
130
130
  R.value = t - (e - 1);
131
131
  return;
132
132
  }