bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +4 -4
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +13 -1
- package/dist/ai/BbColorPalette.md +12 -7
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +13 -1
- package/dist/ai/BbDatePickerInput.md +18 -2
- package/dist/ai/BbDialog.md +6 -3
- package/dist/ai/BbDropdown.md +174 -77
- package/dist/ai/BbDropdownButton.md +37 -16
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +227 -105
- package/dist/ai/BbSelectPopover.md +139 -14
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +18 -17
- package/dist/ai/BbTimePicker.md +13 -1
- package/dist/ai/BbTimePickerInput.md +16 -2
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +3 -2
- package/dist/ai/ListBox.md +4 -2
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +310 -7
- package/dist/ai/components.json +33 -35
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +9 -5
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +70 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
- package/dist/ai/manifest/components/BbDropdown.json +36 -28
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
- package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +47 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +9 -1
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +3 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +3 -2
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +128 -11
- package/dist/ai/source/BbBadge.md +18 -7
- package/dist/ai/source/BbBreadcrumbs.md +57 -56
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +41 -34
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +23 -2
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +47 -3
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +296 -99
- package/dist/ai/source/BbDropdownButton.md +61 -19
- package/dist/ai/source/BbDropdownGroup.md +189 -98
- package/dist/ai/source/BbGallery.md +82 -60
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +151 -112
- package/dist/ai/source/BbSelectPopover.md +244 -29
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +114 -35
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +21 -2
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +33 -7
- package/dist/ai/source/GroupedListBox.md +85 -14
- package/dist/ai/source/ListBox.md +11 -1
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
- package/dist/components/BbDropdown/types.d.ts +109 -87
- package/dist/components/BbDropdown/types.js +3 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
- package/dist/components/BbDropdownButton/types.d.ts +23 -10
- package/dist/components/BbDropdownButton/types.js +4 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +110 -111
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +32 -17
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +1038 -451
- package/dist/llms-medium.txt +33 -28
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +5 -5
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +323 -307
- package/llms.txt +2 -2
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +93 -12
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -45,16 +45,23 @@
|
|
|
45
45
|
:title="title"
|
|
46
46
|
:title-id="titleId"
|
|
47
47
|
>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
<!-- Read at each render, so a `#title` added later (or one that
|
|
49
|
+
renders nothing: the name stays screen-reader only) counts. -->
|
|
50
|
+
<SlotContent
|
|
51
|
+
v-slot="{ nodes: titleNodes }"
|
|
52
|
+
:of="slots.title"
|
|
53
|
+
:props="{ ...slotProps, text: title }"
|
|
53
54
|
>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
<p
|
|
56
|
+
:id="titleId"
|
|
57
|
+
class="bb-gallery__title"
|
|
58
|
+
:class="{ 'bb-sr-only': !title && !titleNodes }"
|
|
59
|
+
v-bind="passthrough.title"
|
|
60
|
+
>
|
|
61
|
+
<SlotNodes v-if="titleNodes" :nodes="titleNodes" />
|
|
62
|
+
<template v-else>{{ name }}</template>
|
|
63
|
+
</p>
|
|
64
|
+
</SlotContent>
|
|
58
65
|
<CloseButton
|
|
59
66
|
:aria-label="t('dialog.closeLabel').value"
|
|
60
67
|
class="bb-gallery__close"
|
|
@@ -163,54 +170,64 @@
|
|
|
163
170
|
<p aria-live="polite" class="bb-sr-only">{{ announcement }}</p>
|
|
164
171
|
</div>
|
|
165
172
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
v-
|
|
173
|
+
<!-- `#footer` rendered once here: one that renders nothing for this
|
|
174
|
+
photo (a `v-if` false) is no footer, and the counter stays. -->
|
|
175
|
+
<SlotContent
|
|
176
|
+
v-slot="{ nodes: footer }"
|
|
177
|
+
:of="slots.footer"
|
|
178
|
+
:props="slotProps"
|
|
170
179
|
>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
v-if="captionOverflows || captionOpen"
|
|
191
|
-
:aria-controls="captionId"
|
|
192
|
-
:aria-expanded="captionOpen"
|
|
193
|
-
class="bb-gallery__more"
|
|
194
|
-
type="button"
|
|
195
|
-
v-bind="passthrough.more"
|
|
196
|
-
@click="captionOpen = !captionOpen"
|
|
180
|
+
<div
|
|
181
|
+
v-if="footer || items.length > 1 || anyCaption"
|
|
182
|
+
class="bb-gallery__footer"
|
|
183
|
+
v-bind="passthrough.footer"
|
|
184
|
+
>
|
|
185
|
+
<!-- One line, always the same height: the caption centred (equal
|
|
186
|
+
side columns, so the counter's width never moves it), the
|
|
187
|
+
counter at the end. With a `#footer` slot this row keeps
|
|
188
|
+
the caption — there whenever any photo has one — and the
|
|
189
|
+
slot owns the row below it. Read in full, the caption runs
|
|
190
|
+
on upward from the same line, on the viewer's own plate. -->
|
|
191
|
+
<div v-if="!footer || anyCaption" class="bb-gallery__bar">
|
|
192
|
+
<p
|
|
193
|
+
v-if="currentCaption"
|
|
194
|
+
:id="captionId"
|
|
195
|
+
class="bb-gallery__caption"
|
|
196
|
+
:class="{ 'bb-gallery__caption--open': captionOpen }"
|
|
197
|
+
:tabindex="captionOpen ? 0 : undefined"
|
|
198
|
+
v-bind="passthrough.caption"
|
|
197
199
|
>
|
|
198
|
-
{{
|
|
199
|
-
|
|
200
|
-
}}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
200
|
+
<span ref="captionEl" class="bb-gallery__caption-text">{{
|
|
201
|
+
currentCaption
|
|
202
|
+
}}</span>
|
|
203
|
+
<button
|
|
204
|
+
v-if="captionOverflows || captionOpen"
|
|
205
|
+
:aria-controls="captionId"
|
|
206
|
+
:aria-expanded="captionOpen"
|
|
207
|
+
class="bb-gallery__more"
|
|
208
|
+
type="button"
|
|
209
|
+
v-bind="passthrough.more"
|
|
210
|
+
@click="captionOpen = !captionOpen"
|
|
211
|
+
>
|
|
212
|
+
{{
|
|
213
|
+
captionOpen
|
|
214
|
+
? t('gallery.less').value
|
|
215
|
+
: t('gallery.more').value
|
|
216
|
+
}}
|
|
217
|
+
</button>
|
|
218
|
+
</p>
|
|
219
|
+
<p
|
|
220
|
+
v-if="!footer && items.length > 1"
|
|
221
|
+
aria-hidden="true"
|
|
222
|
+
class="bb-gallery__counter"
|
|
223
|
+
v-bind="passthrough.counter"
|
|
224
|
+
>
|
|
225
|
+
{{ index + 1 }} / {{ items.length }}
|
|
226
|
+
</p>
|
|
227
|
+
</div>
|
|
228
|
+
<SlotNodes v-if="footer" :nodes="footer" />
|
|
211
229
|
</div>
|
|
212
|
-
|
|
213
|
-
</div>
|
|
230
|
+
</SlotContent>
|
|
214
231
|
</template>
|
|
215
232
|
</dialog>
|
|
216
233
|
</template>
|
|
@@ -230,8 +247,8 @@ import {
|
|
|
230
247
|
} from 'vue';
|
|
231
248
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
232
249
|
import CloseButton from '../CloseIcon/CloseButton.vue';
|
|
233
|
-
import
|
|
234
|
-
import
|
|
250
|
+
import chevronLeftBuiltin from '@/assets/svgs/chevron_left.svg?raw';
|
|
251
|
+
import chevronRightBuiltin from '@/assets/svgs/chevron_right.svg?raw';
|
|
235
252
|
import {
|
|
236
253
|
returnFocusToOpener,
|
|
237
254
|
rootElementOf,
|
|
@@ -249,6 +266,7 @@ import {
|
|
|
249
266
|
} from '@/directives/bbGallery';
|
|
250
267
|
import { animationsSettled } from '@/utilities/functions/animationsSettled';
|
|
251
268
|
import { wait } from '@/utilities/functions/wait';
|
|
269
|
+
import { SlotContent, SlotNodes } from '@/utilities/functions/slotContent';
|
|
252
270
|
import { pageText } from '@/utilities/misc/pageText';
|
|
253
271
|
import { transitions } from '@/utilities/misc/transitions';
|
|
254
272
|
import {
|
|
@@ -265,6 +283,7 @@ import {
|
|
|
265
283
|
type BbGallerySlotProps,
|
|
266
284
|
type BbGallerySlots,
|
|
267
285
|
} from './types';
|
|
286
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
268
287
|
export type {
|
|
269
288
|
BbGalleryEvents,
|
|
270
289
|
BbGalleryHeaderSlotProps,
|
|
@@ -274,9 +293,7 @@ export type {
|
|
|
274
293
|
BbGallerySlots,
|
|
275
294
|
BbGalleryTitleSlotProps,
|
|
276
295
|
} from './types';
|
|
277
|
-
|
|
278
296
|
defineOptions({ inheritAttrs: false });
|
|
279
|
-
|
|
280
297
|
/**
|
|
281
298
|
* The photo in the viewer, `null` while it is closed. Bind it to open the
|
|
282
299
|
* viewer yourself; `v-bb-gallery` opens it without one.
|
|
@@ -284,9 +301,11 @@ defineOptions({ inheritAttrs: false });
|
|
|
284
301
|
* @defaultValue `null`
|
|
285
302
|
*/
|
|
286
303
|
const model = defineModel<number | null>({ default: null });
|
|
287
|
-
|
|
288
304
|
const props = defineProps<BbGalleryProps<T>>();
|
|
289
305
|
defineSlots<BbGallerySlots<T>>();
|
|
306
|
+
const chevronRight = useInternalIcon('next', chevronRightBuiltin);
|
|
307
|
+
const chevronLeft = useInternalIcon('prev', chevronLeftBuiltin);
|
|
308
|
+
|
|
290
309
|
const slots = useSlots();
|
|
291
310
|
|
|
292
311
|
const { t } = useLocale();
|
|
@@ -307,7 +326,6 @@ const index = computed(() =>
|
|
|
307
326
|
const looping = computed(() => !!props.loop && count.value > 1);
|
|
308
327
|
const atStart = computed(() => !looping.value && index.value === 0);
|
|
309
328
|
const atEnd = computed(() => !looping.value && index.value === count.value - 1);
|
|
310
|
-
const hasTitle = computed(() => !!props.title || !!slots.title);
|
|
311
329
|
const name = computed(() => props.title || t('gallery.label').value);
|
|
312
330
|
const position = (i: number) => t('gallery.position', i + 1, count.value).value;
|
|
313
331
|
|
|
@@ -593,6 +611,10 @@ const onScroll = () => {
|
|
|
593
611
|
frame = requestAnimationFrame(() => {
|
|
594
612
|
frame = 0;
|
|
595
613
|
if (!track.value || !isOpen.value || !width() || !shown) return;
|
|
614
|
+
// A width the resize observer has not seen yet is a relayout, not a
|
|
615
|
+
// swipe: WebKit re-snaps the track by pixels before the observer puts
|
|
616
|
+
// it back on the photo shown, which would land on a neighbour.
|
|
617
|
+
if (resize && width() !== lastWidth) return;
|
|
596
618
|
const p = nearest();
|
|
597
619
|
if (target !== null) {
|
|
598
620
|
if (p === target) target = null;
|
package/dist/ai/source/BbHost.md
CHANGED
|
@@ -65,6 +65,18 @@ import BbToast from '../BbToast/BbToast.vue';
|
|
|
65
65
|
defineOptions({ name: 'BbHost' });
|
|
66
66
|
|
|
67
67
|
const instance = getCurrentInstance()!;
|
|
68
|
+
// The plugin's host is a render root of its own, and Vue's `useId()` counts
|
|
69
|
+
// per root: its children would restart at the page's `v-0`. A per-host
|
|
70
|
+
// prefix with a letter in it can't meet the page's ids (digits and dashes
|
|
71
|
+
// after the app's `idPrefix`); its children inherit it. The uid is safe: the
|
|
72
|
+
// plugin's host is never server-rendered nor hydrated.
|
|
73
|
+
// `ids` is a Vue internal, pinned in BbHost.onDemand.test.ts ('Vue internals').
|
|
74
|
+
if (isAutoHost(instance))
|
|
75
|
+
(instance as unknown as { ids: [string, number, number] }).ids = [
|
|
76
|
+
`h${instance.uid}-`,
|
|
77
|
+
0,
|
|
78
|
+
0,
|
|
79
|
+
];
|
|
68
80
|
const state = hostStateOf(instance.appContext);
|
|
69
81
|
const mountedHere = shallowRef(false);
|
|
70
82
|
const owns = computed(
|
|
@@ -943,29 +943,36 @@ const normalizeNumericValue = (value: number, withMin = true): number => {
|
|
|
943
943
|
};
|
|
944
944
|
|
|
945
945
|
/**
|
|
946
|
-
* On blur and on Enter, raises a value
|
|
947
|
-
*
|
|
948
|
-
*
|
|
946
|
+
* On blur and on Enter, raises a value below `min` to `min`, in the field and
|
|
947
|
+
* in the model. Never while typing: the live clamp ignores `min`, or "15"
|
|
948
|
+
* with min 10 could not be typed through its "1". A value above `max` (the
|
|
949
|
+
* app set it: typing clamps at once) comes down to `max` the same way, so a
|
|
950
|
+
* user who focused and left the field holds a coherent value; a value the
|
|
951
|
+
* app sets is never moved while nobody touches the field.
|
|
949
952
|
*/
|
|
950
953
|
const applyMin = () => {
|
|
951
954
|
// A locked field never moves its value, not even up to `min`.
|
|
952
955
|
if (locked.value) return;
|
|
956
|
+
const bounded = (value: number) =>
|
|
957
|
+
value < props.min ? props.min : value > props.max ? props.max : value;
|
|
953
958
|
if (!legacy.value) {
|
|
954
959
|
// Enter re-reads an outside text first, as blur does (PANEL § 2.7).
|
|
955
960
|
reconcile();
|
|
956
961
|
const typed = valueOfRaw(edit.raw);
|
|
957
|
-
if (typeof typed !== 'number' || typed
|
|
958
|
-
|
|
959
|
-
|
|
962
|
+
if (typeof typed !== 'number' || bounded(typed) === typed) return;
|
|
963
|
+
const next = bounded(typed);
|
|
964
|
+
setRaw(rawOfNumber(next, maxPrecision.value));
|
|
965
|
+
committed.value = next;
|
|
960
966
|
paint(isFocused() ? edit.raw.length : undefined);
|
|
961
|
-
emit('update:modelValue',
|
|
967
|
+
emit('update:modelValue', next);
|
|
962
968
|
return;
|
|
963
969
|
}
|
|
964
970
|
if (!input.value?.value) return;
|
|
965
971
|
const typed = Number(makeValidNumberString(input.value.value));
|
|
966
|
-
if (!Number.isFinite(typed) || typed
|
|
967
|
-
|
|
968
|
-
|
|
972
|
+
if (!Number.isFinite(typed) || bounded(typed) === typed) return;
|
|
973
|
+
const next = bounded(typed);
|
|
974
|
+
input.value.value = next.toString();
|
|
975
|
+
emit('update:modelValue', next);
|
|
969
976
|
};
|
|
970
977
|
|
|
971
978
|
/**
|
|
@@ -1799,7 +1799,20 @@ onBeforeUnmount(() => {
|
|
|
1799
1799
|
// document (a modal <dialog> loses its top-layer state, a flyout its anchor)
|
|
1800
1800
|
// and its document listeners would otherwise keep firing for a cached, unseen
|
|
1801
1801
|
// node. Reactivating shows it closed; the consumer reopens it as usual.
|
|
1802
|
-
|
|
1802
|
+
// its close still plays, on a copy, as for an unmount:
|
|
1803
|
+
// the hook runs once KeepAlive has moved it out, so the copy is of the
|
|
1804
|
+
// detached node (leaveGhost.ts).
|
|
1805
|
+
onDeactivated(() => {
|
|
1806
|
+
if (isVisible.value)
|
|
1807
|
+
leaveAsGhost(dialog.value, {
|
|
1808
|
+
id: stackId,
|
|
1809
|
+
openClass: 'bb-offcanvas--open',
|
|
1810
|
+
duration: props.transitionDuration,
|
|
1811
|
+
closingSince,
|
|
1812
|
+
opener,
|
|
1813
|
+
});
|
|
1814
|
+
closeWith('unmounted');
|
|
1815
|
+
});
|
|
1803
1816
|
</script>
|
|
1804
1817
|
|
|
1805
1818
|
<style lang="postcss">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}}</span>
|
|
26
26
|
<BbIcon
|
|
27
27
|
class="bb-pagination__icon"
|
|
28
|
-
:icon="
|
|
28
|
+
:icon="prevIcon"
|
|
29
29
|
size="16"
|
|
30
30
|
v-bind="passthrough.icon"
|
|
31
31
|
/>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}}</span>
|
|
69
69
|
<BbIcon
|
|
70
70
|
class="bb-pagination__icon"
|
|
71
|
-
:icon="
|
|
71
|
+
:icon="nextIcon"
|
|
72
72
|
size="16"
|
|
73
73
|
v-bind="passthrough.icon"
|
|
74
74
|
/>
|
|
@@ -82,7 +82,9 @@
|
|
|
82
82
|
|
|
83
83
|
<script setup lang="ts">
|
|
84
84
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
85
|
-
import
|
|
85
|
+
import chevronLeftSvg from '@/assets/svgs/chevron_left.svg?raw';
|
|
86
|
+
import chevronRightSvg from '@/assets/svgs/chevron_right.svg?raw';
|
|
87
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
86
88
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
87
89
|
import BbBaseButton from '@/components/BbBaseButton/BbBaseButton.vue';
|
|
88
90
|
import {
|
|
@@ -118,8 +120,6 @@ import {
|
|
|
118
120
|
} from './types';
|
|
119
121
|
import { usePassthrough } from '@/composables/usePassthrough';
|
|
120
122
|
import { computeNextMaxSize } from './paginationFit';
|
|
121
|
-
export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots };
|
|
122
|
-
|
|
123
123
|
defineOptions({ inheritAttrs: false });
|
|
124
124
|
/**
|
|
125
125
|
* Used by v-model. The 1-based index of the current page — pagination starts
|
|
@@ -128,7 +128,6 @@ defineOptions({ inheritAttrs: false });
|
|
|
128
128
|
* @defaultValue `1`
|
|
129
129
|
*/
|
|
130
130
|
const model = defineModel<number>({ default: 1 });
|
|
131
|
-
|
|
132
131
|
const props = withDefaults(
|
|
133
132
|
defineProps<
|
|
134
133
|
BbPaginationProps &
|
|
@@ -141,8 +140,10 @@ const props = withDefaults(
|
|
|
141
140
|
queryKey: 'page',
|
|
142
141
|
}
|
|
143
142
|
);
|
|
144
|
-
|
|
145
143
|
defineSlots<BbPaginationSlots>();
|
|
144
|
+
const prevIcon = useInternalIcon('prev', chevronLeftSvg);
|
|
145
|
+
const nextIcon = useInternalIcon('next', chevronRightSvg);
|
|
146
|
+
export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots };
|
|
146
147
|
|
|
147
148
|
/**
|
|
148
149
|
* Passthrough. `item` is resolved per control, merged LAST onto each control's own attributes (its click handler included — T17).
|
|
@@ -997,27 +998,10 @@ export type BbPaginationSlots = {
|
|
|
997
998
|
padding: 0;
|
|
998
999
|
}
|
|
999
1000
|
|
|
1000
|
-
/*
|
|
1001
|
-
inline
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
.bb-pagination__icon {
|
|
1005
|
-
rotate: 90deg;
|
|
1006
|
-
|
|
1007
|
-
&:dir(rtl) {
|
|
1008
|
-
rotate: -90deg;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
&.bb-pagination__page--next {
|
|
1014
|
-
.bb-pagination__icon {
|
|
1015
|
-
rotate: -90deg;
|
|
1016
|
-
|
|
1017
|
-
&:dir(rtl) {
|
|
1018
|
-
rotate: 90deg;
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1001
|
+
/* Previous points toward the inline start, next toward the
|
|
1002
|
+
inline end: both chevrons mirror right to left. */
|
|
1003
|
+
.bb-pagination__icon:dir(rtl) {
|
|
1004
|
+
scale: -1 1;
|
|
1021
1005
|
}
|
|
1022
1006
|
|
|
1023
1007
|
svg {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
:role="hasLegend() ? 'radiogroup' : undefined"
|
|
77
77
|
:variant="variant"
|
|
78
78
|
@mousedown.capture="clicks.onPress"
|
|
79
|
+
@retry="runRetry($event, retryLoad, () => optionsElement)"
|
|
79
80
|
>
|
|
80
81
|
<template #prepend>
|
|
81
82
|
<!-- The `variant` indicators: first in the list, so the
|
|
@@ -164,6 +165,7 @@ import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
|
164
165
|
import { vAutofocus } from '@/utilities/misc/autofocus';
|
|
165
166
|
import CommonField from '../CommonField/CommonField.vue';
|
|
166
167
|
import OptionsContainer from '../OptionsContainer/OptionsContainer.vue';
|
|
168
|
+
import { runRetry } from '@/utils/loadRetry';
|
|
167
169
|
import BbBaseRadioIcon from '../BbBaseRadioIcon/BbBaseRadioIcon.vue';
|
|
168
170
|
import {
|
|
169
171
|
aliasParts,
|
|
@@ -370,6 +372,7 @@ const {
|
|
|
370
372
|
items: internalItems,
|
|
371
373
|
loading,
|
|
372
374
|
error: itemsError,
|
|
375
|
+
retry,
|
|
373
376
|
ssrMarker,
|
|
374
377
|
} = useItemsGetter({ items, marker: true });
|
|
375
378
|
|
|
@@ -379,6 +382,11 @@ const alignToCoherenceSettings = () => {
|
|
|
379
382
|
}
|
|
380
383
|
};
|
|
381
384
|
|
|
385
|
+
/** The failure row's "Try again": the failed load again, then coherence on rows it applied. */
|
|
386
|
+
const retryLoad = async () => {
|
|
387
|
+
if ((await retry()) === 'applied') alignToCoherenceSettings();
|
|
388
|
+
};
|
|
389
|
+
|
|
382
390
|
const { hasPrefilled, whenPrefilled } = usePrefill({
|
|
383
391
|
alreadyLoaded: hydratedFromSsr,
|
|
384
392
|
clientReproducible,
|
|
@@ -879,7 +887,7 @@ export type BbRadioGroupProps<T> = BbRadioGroupPtProps & {
|
|
|
879
887
|
* The options: an array, or a provider called with a
|
|
880
888
|
* `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or
|
|
881
889
|
* async. A provider fails by THROWING, never by returning `[]`: the rows
|
|
882
|
-
* clear and
|
|
890
|
+
* clear and the failure row shows `failed-text` with "Try again".
|
|
883
891
|
*/
|
|
884
892
|
items: T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>);
|
|
885
893
|
|
|
@@ -1176,11 +1184,10 @@ export type BbRadioGroupSlots<T> = {
|
|
|
1176
1184
|
loading?: (props: object) => any;
|
|
1177
1185
|
/**
|
|
1178
1186
|
* Content shown when no options are available (replaces the default "no
|
|
1179
|
-
* data" text).
|
|
1180
|
-
*
|
|
1181
|
-
* rows, so this slot is where it shows.
|
|
1187
|
+
* data" text). Empty only: a failed load shows the library's failure row
|
|
1188
|
+
* instead (its message is `failed-text`, and it ends with "Try again").
|
|
1182
1189
|
*/
|
|
1183
|
-
empty?: (props:
|
|
1190
|
+
empty?: (props: object) => any;
|
|
1184
1191
|
/**
|
|
1185
1192
|
* Replaces the default radio dot icon for each option. Receives the radio
|
|
1186
1193
|
* state plus the source item and its display text.
|
|
@@ -138,7 +138,7 @@ import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
|
138
138
|
import { vAutofocus } from '@/utilities/misc/autofocus';
|
|
139
139
|
import BbIcon from '../BbIcon/BbIcon.vue';
|
|
140
140
|
import CommonField from '../CommonField/CommonField.vue';
|
|
141
|
-
import
|
|
141
|
+
import starSvgBuiltin from '@/assets/svgs/star.svg?raw';
|
|
142
142
|
import {
|
|
143
143
|
aliasParts,
|
|
144
144
|
formControlPtActive,
|
|
@@ -166,8 +166,7 @@ import {
|
|
|
166
166
|
type BbRatingEvents,
|
|
167
167
|
type BbRatingSlots,
|
|
168
168
|
} from './types';
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
import { useInternalIcon } from '@/composables/useInternalIcon';
|
|
171
170
|
defineOptions({ inheritAttrs: false });
|
|
172
171
|
const declaredProps = withDefaults(
|
|
173
172
|
defineProps<
|
|
@@ -185,8 +184,9 @@ const declaredProps = withDefaults(
|
|
|
185
184
|
}
|
|
186
185
|
);
|
|
187
186
|
const declaredEmit = defineEmits<BbRatingEvents>();
|
|
188
|
-
|
|
189
187
|
const slots = defineSlots<BbRatingSlots>();
|
|
188
|
+
const starSvg = useInternalIcon('star', starSvgBuiltin);
|
|
189
|
+
export type { BbRatingProps, BbRatingEvents, BbRatingSlots };
|
|
190
190
|
|
|
191
191
|
const configDefaults = useConfigDefaults('BbRating', declaredProps, {
|
|
192
192
|
inputPosition: 'start',
|