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
|
@@ -4,29 +4,31 @@ import n from "../../assets/svgs/chevron_left.svg_raw.js";
|
|
|
4
4
|
import r from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
5
5
|
import { returnFocusToOpener as i, rootElementOf as a, useOverlayHost as ee } from "../../composables/overlayRegistry.js";
|
|
6
6
|
import { useBodyScrollLock as te } from "../../composables/useBodyScrollLock.js";
|
|
7
|
-
import { useId as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
import { useLogger as
|
|
10
|
-
import { usePassthrough as
|
|
11
|
-
import { registerTopLayerHost as
|
|
12
|
-
import { registerGalleryPreload as
|
|
13
|
-
import { animationsSettled as
|
|
14
|
-
import { wait as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
7
|
+
import { useId as ne } from "../../composables/useId.js";
|
|
8
|
+
import { useLocale as re } from "../../composables/useLocale.js";
|
|
9
|
+
import { useLogger as ie } from "../../composables/useLogger.js";
|
|
10
|
+
import { usePassthrough as ae } from "../../composables/usePassthrough.js";
|
|
11
|
+
import { registerTopLayerHost as oe } from "../../composables/useTopLayer.js";
|
|
12
|
+
import { registerGalleryPreload as se, takeGalleryTrigger as ce } from "../../directives/bbGallery.js";
|
|
13
|
+
import { animationsSettled as le } from "../../utilities/functions/animationsSettled.js";
|
|
14
|
+
import { wait as ue } from "../../utilities/functions/wait.js";
|
|
15
|
+
import { SlotContent as de, SlotNodes as fe } from "../../utilities/functions/slotContent.js";
|
|
16
|
+
import { pageText as pe } from "../../utilities/misc/pageText.js";
|
|
17
|
+
import { transitions as me } from "../../utilities/misc/transitions.js";
|
|
18
|
+
import { isTopEscapeEntry as he, pushEscapeEntry as ge, removeEscapeEntry as _e } from "../../utils/overlayEscapeStack.js";
|
|
19
|
+
import { overlaySurfaceIsolation as ve } from "../../utils/overlaySurfaceIsolation.js";
|
|
20
|
+
import { findGalleryItem as ye, toPhoto as be } from "./findItem.js";
|
|
21
|
+
import { BB_GALLERY_PT as xe } from "./types.js";
|
|
22
|
+
import { useInternalIcon as Se } from "../../composables/useInternalIcon.js";
|
|
23
|
+
import { Fragment as o, computed as s, createBlock as Ce, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as we, createVNode as d, defineComponent as f, getCurrentInstance as Te, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as Ee, onBeforeUnmount as De, onMounted as Oe, openBlock as g, reactive as ke, ref as _, renderList as Ae, renderSlot as je, toDisplayString as v, toHandlers as Me, unref as y, useAttrs as Ne, useModel as Pe, useSlots as Fe, watch as b, withCtx as Ie } from "vue";
|
|
22
24
|
// src/components/BbGallery/BbGallery.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
25
|
+
var Le = ["aria-labelledby", "inert"], Re = [
|
|
24
26
|
"aria-hidden",
|
|
25
27
|
"aria-label",
|
|
26
28
|
"aria-roledescription",
|
|
27
29
|
"inert",
|
|
28
30
|
"role"
|
|
29
|
-
],
|
|
31
|
+
], ze = { class: "bb-gallery__frame" }, Be = ["aria-hidden"], Ve = [
|
|
30
32
|
"alt",
|
|
31
33
|
"fetchpriority",
|
|
32
34
|
"height",
|
|
@@ -36,16 +38,16 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
|
|
|
36
38
|
"srcset",
|
|
37
39
|
"width",
|
|
38
40
|
"onError"
|
|
39
|
-
],
|
|
41
|
+
], He = ["aria-label", "disabled"], Ue = ["aria-label", "disabled"], We = {
|
|
40
42
|
"aria-live": "polite",
|
|
41
43
|
class: "bb-sr-only"
|
|
42
|
-
},
|
|
44
|
+
}, Ge = {
|
|
43
45
|
key: 0,
|
|
44
46
|
class: "bb-gallery__bar"
|
|
45
|
-
},
|
|
47
|
+
}, Ke = ["tabindex"], qe = ["aria-expanded"], x = /*@__PURE__*/ f({
|
|
46
48
|
inheritAttrs: !1,
|
|
47
49
|
__name: "BbGallery",
|
|
48
|
-
props: /*@__PURE__*/
|
|
50
|
+
props: /*@__PURE__*/ p({
|
|
49
51
|
"pt:root": {},
|
|
50
52
|
"pt:root:zoomed": {},
|
|
51
53
|
"pt:header": {},
|
|
@@ -84,68 +86,68 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
|
|
|
84
86
|
modelModifiers: {}
|
|
85
87
|
}),
|
|
86
88
|
emits: ["update:modelValue"],
|
|
87
|
-
setup(
|
|
88
|
-
let
|
|
89
|
+
setup(f) {
|
|
90
|
+
let p = Pe(f, "modelValue"), x = f, Je = Se("next", r), Ye = Se("prev", n), Xe = Fe(), { t: S } = re(), C = s(() => x.items.map(be)), w = s(() => C.value.length), T = s(() => p.value !== null && w.value > 0), E = s(() => p.value === null ? 0 : Math.min(Math.max(Math.trunc(p.value), 0), Math.max(w.value - 1, 0))), D = s(() => !!x.loop && w.value > 1), Ze = s(() => !D.value && E.value === 0), Qe = s(() => !D.value && E.value === w.value - 1), $e = s(() => x.title || S("gallery.label").value), et = (e) => S("gallery.position", e + 1, w.value).value, O = ke({
|
|
89
91
|
scale: 1,
|
|
90
92
|
x: 0,
|
|
91
93
|
y: 0
|
|
92
|
-
}),
|
|
94
|
+
}), k = s(() => O.scale > 1.01), A = ae({
|
|
93
95
|
component: "BbGallery",
|
|
94
|
-
attrs:
|
|
95
|
-
props:
|
|
96
|
-
parts:
|
|
97
|
-
states:
|
|
98
|
-
active: { zoomed: () =>
|
|
99
|
-
}),
|
|
100
|
-
process.env.NODE_ENV !== "production" &&
|
|
101
|
-
},
|
|
102
|
-
id: () =>
|
|
96
|
+
attrs: Ne(),
|
|
97
|
+
props: x,
|
|
98
|
+
parts: xe.parts,
|
|
99
|
+
states: xe.states,
|
|
100
|
+
active: { zoomed: () => k.value }
|
|
101
|
+
}), tt = Te(), j = null, M = !1, nt = (e) => {
|
|
102
|
+
process.env.NODE_ENV !== "production" && ie().warn(e);
|
|
103
|
+
}, N = ee("gallery", {
|
|
104
|
+
id: () => x.id,
|
|
103
105
|
model: s({
|
|
104
|
-
get: () =>
|
|
106
|
+
get: () => T.value,
|
|
105
107
|
set: (e) => {
|
|
106
|
-
if (!e) return void (
|
|
107
|
-
let t =
|
|
108
|
-
n < 0 ?
|
|
108
|
+
if (!e) return void (p.value = null);
|
|
109
|
+
let t = N.data.value, n = ye(C.value, t);
|
|
110
|
+
n < 0 ? nt(`v-bb-gallery="{ id: '${x.id}', item: ${JSON.stringify(t)} }" opens nothing: no photo of <BbGallery id="${x.id}"> has that ${typeof t == "number" ? "index" : "URL (its src or a srcset candidate)"}. Pass the index, or one of the item's URLs.`) : (M = !0, j = ce(), p.value = n);
|
|
109
111
|
}
|
|
110
112
|
}),
|
|
111
|
-
element: () => a(
|
|
112
|
-
}),
|
|
113
|
-
let e = a(
|
|
114
|
-
e && (
|
|
113
|
+
element: () => a(tt)
|
|
114
|
+
}), rt = () => {
|
|
115
|
+
let e = a(tt);
|
|
116
|
+
e && (N.domId.value ? e.id = N.domId.value : e.removeAttribute("id"));
|
|
115
117
|
};
|
|
116
|
-
|
|
117
|
-
let
|
|
118
|
-
if (
|
|
119
|
-
let t =
|
|
120
|
-
if (!t ||
|
|
121
|
-
|
|
118
|
+
Oe(rt), b(() => N.domId.value, rt);
|
|
119
|
+
let it = /* @__PURE__ */ new Set(), at = (e) => {
|
|
120
|
+
if (T.value || typeof Image != "function") return;
|
|
121
|
+
let t = C.value[ye(C.value, e)];
|
|
122
|
+
if (!t || it.has(t.key)) return;
|
|
123
|
+
it.add(t.key);
|
|
122
124
|
let n = new Image();
|
|
123
125
|
n.decoding = "async", t.srcset && (n.sizes = t.sizes ?? "100vw", n.srcset = t.srcset), t.src && (n.src = t.src);
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
let e = a(
|
|
127
|
-
e && (
|
|
128
|
-
}),
|
|
129
|
-
if (e && (
|
|
126
|
+
}, ot;
|
|
127
|
+
Oe(() => {
|
|
128
|
+
let e = a(tt);
|
|
129
|
+
e && (ot = se(e, at));
|
|
130
|
+
}), b(T, (e) => {
|
|
131
|
+
if (e && (jt.clear(), !M)) {
|
|
130
132
|
let e = document.activeElement;
|
|
131
|
-
|
|
133
|
+
j = e instanceof HTMLElement && e !== document.body ? e : null;
|
|
132
134
|
}
|
|
133
135
|
});
|
|
134
|
-
let
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
Number.isInteger(e) && e >= 0 && e <
|
|
138
|
-
},
|
|
139
|
-
let { key: e, ...t } =
|
|
136
|
+
let P = () => {
|
|
137
|
+
p.value = null;
|
|
138
|
+
}, F = (e) => {
|
|
139
|
+
Number.isInteger(e) && e >= 0 && e < w.value && (p.value = e);
|
|
140
|
+
}, st = s(() => {
|
|
141
|
+
let { key: e, ...t } = C.value[E.value] ?? { key: "" };
|
|
140
142
|
return {
|
|
141
|
-
index:
|
|
142
|
-
count:
|
|
143
|
+
index: E.value,
|
|
144
|
+
count: w.value,
|
|
143
145
|
item: t,
|
|
144
|
-
go:
|
|
145
|
-
close:
|
|
146
|
+
go: F,
|
|
147
|
+
close: P
|
|
146
148
|
};
|
|
147
|
-
}),
|
|
148
|
-
let e = /* @__PURE__ */ new Map(), t =
|
|
149
|
+
}), ct = s(() => {
|
|
150
|
+
let e = /* @__PURE__ */ new Map(), t = C.value.map((t, n) => {
|
|
149
151
|
let r = e.get(t.key) ?? 0;
|
|
150
152
|
return e.set(t.key, r + 1), {
|
|
151
153
|
item: t,
|
|
@@ -154,7 +156,7 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
|
|
|
154
156
|
key: `${t.key}#${r}`
|
|
155
157
|
};
|
|
156
158
|
});
|
|
157
|
-
if (!
|
|
159
|
+
if (!D.value) return t;
|
|
158
160
|
let n = t[t.length - 1], r = t[0];
|
|
159
161
|
return [
|
|
160
162
|
{
|
|
@@ -169,196 +171,196 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
|
|
|
169
171
|
key: `clone-end:${r.key}`
|
|
170
172
|
}
|
|
171
173
|
];
|
|
172
|
-
}),
|
|
173
|
-
let t =
|
|
174
|
-
return
|
|
175
|
-
},
|
|
176
|
-
let t =
|
|
177
|
-
return n <= 1 ||
|
|
178
|
-
},
|
|
179
|
-
let { width: t, height: n } = e.item, r = !e.clone && e.real ===
|
|
180
|
-
return t && n && (i["--arw"] = String(t), i["--arh"] = String(n), i["--w"] = `${t}px`), r &&
|
|
181
|
-
}, L =
|
|
174
|
+
}), lt = (e) => e + +!!D.value, I = (e) => {
|
|
175
|
+
let t = w.value;
|
|
176
|
+
return D.value ? ((e - 1) % t + t) % t : Math.min(Math.max(e, 0), t - 1);
|
|
177
|
+
}, ut = (e) => {
|
|
178
|
+
let t = w.value, n = Math.abs(e.real - E.value);
|
|
179
|
+
return n <= 1 || D.value && t - n <= 1;
|
|
180
|
+
}, dt = (e) => {
|
|
181
|
+
let { width: t, height: n } = e.item, r = !e.clone && e.real === E.value, i = {};
|
|
182
|
+
return t && n && (i["--arw"] = String(t), i["--arh"] = String(n), i["--w"] = `${t}px`), r && k.value && (i.transform = `translate(${O.x}px, ${O.y}px) scale(${O.scale})`), i;
|
|
183
|
+
}, L = _(null), ft = !1, R = null, pt = !1, mt = () => !!L.value && getComputedStyle(L.value).direction === "rtl", z = () => L.value?.clientWidth ?? 0, ht = () => {
|
|
182
184
|
let e = z();
|
|
183
185
|
return e ? Math.abs(L.value.scrollLeft) / e : 0;
|
|
184
|
-
}, B = () => Math.round(
|
|
186
|
+
}, B = () => Math.round(ht()), gt = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, _t = null, vt = (e) => {
|
|
185
187
|
let t = L.value;
|
|
186
188
|
t && (t.scrollTo({
|
|
187
|
-
left: (
|
|
189
|
+
left: (mt() ? -1 : 1) * e * z(),
|
|
188
190
|
behavior: "instant"
|
|
189
|
-
}),
|
|
191
|
+
}), _t = {
|
|
190
192
|
left: t.scrollLeft,
|
|
191
193
|
width: z()
|
|
192
194
|
});
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
+
}, yt = () => {
|
|
196
|
+
gt() || h(() => {
|
|
195
197
|
L.value?.querySelector(".bb-gallery__slide--active")?.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
196
198
|
duration: 200,
|
|
197
199
|
easing: "ease-out"
|
|
198
200
|
});
|
|
199
201
|
});
|
|
200
|
-
},
|
|
201
|
-
R = e,
|
|
202
|
-
},
|
|
203
|
-
L.value && z() && (R = null,
|
|
204
|
-
},
|
|
205
|
-
if (!
|
|
202
|
+
}, bt = (e) => {
|
|
203
|
+
R = e, vt(e), B() === e && (R = null), yt();
|
|
204
|
+
}, xt = () => {
|
|
205
|
+
L.value && z() && (R = null, vt(lt(E.value)));
|
|
206
|
+
}, St = () => {
|
|
207
|
+
if (!D.value || R !== null || pt) return;
|
|
206
208
|
let e = B();
|
|
207
|
-
e !== 0 && e !==
|
|
209
|
+
e !== 0 && e !== w.value + 1 || Math.abs(ht() - e) > .01 || vt(lt(I(e)));
|
|
208
210
|
};
|
|
209
|
-
|
|
210
|
-
L.value &&
|
|
211
|
+
b(E, (e) => {
|
|
212
|
+
L.value && T.value && (G(), (R === null ? I(B()) === e : I(R) === e) || bt(lt(e)));
|
|
211
213
|
});
|
|
212
|
-
let
|
|
213
|
-
let t =
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
clearTimeout(
|
|
217
|
-
if (
|
|
214
|
+
let Ct = (e) => {
|
|
215
|
+
let t = w.value;
|
|
216
|
+
F(D.value ? ((E.value + e) % t + t) % t : E.value + e);
|
|
217
|
+
}, wt = 0, Tt, Et = () => {
|
|
218
|
+
clearTimeout(Tt), Tt = setTimeout(Dt, 150), wt ||= requestAnimationFrame(() => {
|
|
219
|
+
if (wt = 0, !L.value || !T.value || !z() || !ft || V && z() !== Ot) return;
|
|
218
220
|
let e = B();
|
|
219
221
|
if (R !== null) {
|
|
220
222
|
if (e === R) R = null;
|
|
221
223
|
else return;
|
|
222
224
|
}
|
|
223
225
|
let t = I(e);
|
|
224
|
-
t !==
|
|
226
|
+
t !== E.value && (p.value = t), St();
|
|
225
227
|
});
|
|
226
|
-
},
|
|
227
|
-
clearTimeout(
|
|
228
|
-
}, V = null,
|
|
229
|
-
|
|
230
|
-
V?.disconnect(), V = null, e && (
|
|
228
|
+
}, Dt = () => {
|
|
229
|
+
clearTimeout(Tt), R !== null && B() === R && (R = null), St();
|
|
230
|
+
}, V = null, Ot = 0;
|
|
231
|
+
b(L, (e) => {
|
|
232
|
+
V?.disconnect(), V = null, e && (h(xt), typeof ResizeObserver == "function" && (Ot = e.clientWidth, V = new ResizeObserver(() => {
|
|
231
233
|
U();
|
|
232
234
|
let t = e.clientWidth;
|
|
233
|
-
if (t ===
|
|
234
|
-
let n = R ??
|
|
235
|
-
R = null,
|
|
235
|
+
if (t === Ot || (Ot = t, pt)) return;
|
|
236
|
+
let n = R ?? lt(E.value);
|
|
237
|
+
R = null, vt(n);
|
|
236
238
|
}), V.observe(e)));
|
|
237
239
|
});
|
|
238
|
-
let
|
|
239
|
-
|
|
240
|
+
let kt = () => {
|
|
241
|
+
ft = !0;
|
|
240
242
|
let e = L.value;
|
|
241
|
-
if (e &&
|
|
243
|
+
if (e && _t && z() === _t.width && Math.abs(e.scrollLeft - _t.left) > 1) {
|
|
242
244
|
R = null;
|
|
243
245
|
let e = I(B());
|
|
244
|
-
e !==
|
|
245
|
-
} else
|
|
246
|
-
U(),
|
|
246
|
+
e !== E.value && (p.value = e), St();
|
|
247
|
+
} else xt();
|
|
248
|
+
U(), Rt();
|
|
247
249
|
};
|
|
248
|
-
|
|
250
|
+
b([Ze, Qe], ([e, t]) => {
|
|
249
251
|
let n = document.activeElement;
|
|
250
252
|
if (!(n instanceof HTMLElement)) return;
|
|
251
253
|
let r = n.closest(".bb-gallery__stage");
|
|
252
254
|
(e && n.classList.contains("bb-gallery__nav--prev") || t && n.classList.contains("bb-gallery__nav--next")) && r?.querySelector(t ? ".bb-gallery__nav--prev" : ".bb-gallery__nav--next")?.focus({ preventScroll: !0 });
|
|
253
255
|
}, { flush: "pre" });
|
|
254
|
-
let
|
|
256
|
+
let At = (e) => {
|
|
255
257
|
if (e.defaultPrevented || e.altKey || e.metaKey || e.ctrlKey) return;
|
|
256
258
|
let t = e.key === "ArrowRight" ? 1 : e.key === "ArrowLeft" ? -1 : 0;
|
|
257
|
-
if (t)
|
|
258
|
-
else if (e.key === "Home")
|
|
259
|
-
else if (e.key === "End")
|
|
260
|
-
else if (e.key === "+" || e.key === "=")
|
|
261
|
-
else if (e.key === "-")
|
|
259
|
+
if (t) Ct(mt() ? -t : t);
|
|
260
|
+
else if (e.key === "Home") F(0);
|
|
261
|
+
else if (e.key === "End") F(w.value - 1);
|
|
262
|
+
else if (e.key === "+" || e.key === "=") Yt(1.5);
|
|
263
|
+
else if (e.key === "-") Yt(1 / 1.5);
|
|
262
264
|
else if (e.key === "0") G();
|
|
263
265
|
else return;
|
|
264
266
|
e.preventDefault();
|
|
265
267
|
};
|
|
266
|
-
|
|
267
|
-
if (
|
|
268
|
-
if (!e.length) return
|
|
269
|
-
let n = t?.[
|
|
270
|
-
i !==
|
|
271
|
-
}),
|
|
272
|
-
e !== null &&
|
|
268
|
+
b(C, (e, t) => {
|
|
269
|
+
if (p.value === null) return;
|
|
270
|
+
if (!e.length) return P();
|
|
271
|
+
let n = t?.[E.value]?.key, r = n ? e.findIndex((e) => e.key === n) : -1, i = r >= 0 ? r : Math.min(E.value, e.length - 1);
|
|
272
|
+
i !== p.value && (p.value = i), h(xt);
|
|
273
|
+
}), b(() => [p.value, w.value], ([e]) => {
|
|
274
|
+
e !== null && w.value && e !== E.value && (p.value = E.value);
|
|
273
275
|
});
|
|
274
|
-
let
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
for (let e of
|
|
278
|
-
|
|
276
|
+
let jt = ke(/* @__PURE__ */ new Set()), Mt = [], Nt = 0, Pt = (e) => {
|
|
277
|
+
Mt.push(e), Nt ||= requestAnimationFrame(() => {
|
|
278
|
+
Nt = 0;
|
|
279
|
+
for (let e of Mt) jt.add(e);
|
|
280
|
+
Mt = [];
|
|
279
281
|
});
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
+
}, Ft = (e) => {
|
|
283
|
+
T.value && !gt() && e.target.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
282
284
|
duration: 200,
|
|
283
285
|
easing: "ease-out"
|
|
284
286
|
});
|
|
285
|
-
},
|
|
286
|
-
clearTimeout(
|
|
287
|
-
let e =
|
|
288
|
-
if (!
|
|
289
|
-
let t =
|
|
290
|
-
|
|
287
|
+
}, It = _(""), Lt, Rt = () => {
|
|
288
|
+
clearTimeout(Lt), Lt = setTimeout(() => {
|
|
289
|
+
let e = C.value[E.value];
|
|
290
|
+
if (!T.value || !e) return;
|
|
291
|
+
let t = et(E.value);
|
|
292
|
+
It.value = [e.alt ? `${t}: ${e.alt}` : t, e.caption].filter(Boolean).join(". ");
|
|
291
293
|
}, 350);
|
|
292
294
|
};
|
|
293
|
-
|
|
294
|
-
let
|
|
295
|
+
b(E, () => ft && Rt());
|
|
296
|
+
let zt = _(null), Bt = `bb-gallery-caption-${ne().id.value}`, Vt = s(() => C.value[E.value]?.caption), Ht = s(() => C.value.some((e) => !!e.caption)), H = _(!1), Ut = _(!1), U = () => {
|
|
295
297
|
if (H.value) return;
|
|
296
|
-
let e =
|
|
297
|
-
|
|
298
|
+
let e = zt.value;
|
|
299
|
+
Ut.value = !!e && e.clientWidth > 0 && e.scrollWidth > e.clientWidth + 1;
|
|
298
300
|
};
|
|
299
|
-
|
|
301
|
+
b([
|
|
302
|
+
E,
|
|
300
303
|
T,
|
|
301
|
-
|
|
302
|
-
Lt
|
|
304
|
+
Vt
|
|
303
305
|
], () => {
|
|
304
|
-
H.value = !1,
|
|
305
|
-
}),
|
|
306
|
-
e ||
|
|
306
|
+
H.value = !1, Ut.value = !1, h(U);
|
|
307
|
+
}), b(H, (e) => {
|
|
308
|
+
e || h(U);
|
|
307
309
|
});
|
|
308
310
|
let W = null;
|
|
309
|
-
|
|
310
|
-
W?.disconnect(), W = null,
|
|
311
|
-
}),
|
|
312
|
-
let
|
|
311
|
+
b(zt, (e) => {
|
|
312
|
+
W?.disconnect(), W = null, h(U), e && typeof ResizeObserver == "function" && (W = new ResizeObserver(U), W.observe(e));
|
|
313
|
+
}), Oe(() => void document.fonts?.ready.then(U));
|
|
314
|
+
let Wt = (e) => {
|
|
313
315
|
H.value && (e.target.closest(".bb-gallery__caption, .bb-gallery__more") || (H.value = !1));
|
|
314
|
-
},
|
|
315
|
-
let e =
|
|
316
|
+
}, Gt = () => L.value?.querySelector(".bb-gallery__slide--active .bb-gallery__image") ?? null, Kt = () => {
|
|
317
|
+
let e = Gt();
|
|
316
318
|
if (!e || !e.clientWidth) return 2;
|
|
317
319
|
let t = (e.naturalWidth || e.width) / e.clientWidth;
|
|
318
320
|
return Math.min(Math.max(t, 2), 4);
|
|
319
|
-
},
|
|
320
|
-
let e =
|
|
321
|
+
}, qt = () => {
|
|
322
|
+
let e = Gt(), t = e?.parentElement;
|
|
321
323
|
if (!e || !t) return;
|
|
322
|
-
let n = e.clientWidth *
|
|
323
|
-
|
|
324
|
-
},
|
|
325
|
-
let r =
|
|
324
|
+
let n = e.clientWidth * O.scale, r = e.clientHeight * O.scale, i = Math.max(0, (n - t.clientWidth) / 2), a = Math.max(0, (r - t.clientHeight) / 2);
|
|
325
|
+
O.x = Math.min(i, Math.max(-i, O.x)), O.y = Math.min(a, Math.max(-a, O.y));
|
|
326
|
+
}, Jt = (e, t, n) => {
|
|
327
|
+
let r = Gt();
|
|
326
328
|
if (!r) return;
|
|
327
|
-
let i = Math.min(Math.max(e, 1),
|
|
328
|
-
|
|
329
|
-
},
|
|
330
|
-
|
|
331
|
-
},
|
|
332
|
-
if (e.ctrlKey) e.preventDefault(),
|
|
329
|
+
let i = Math.min(Math.max(e, 1), Kt()), a = r.parentElement.getBoundingClientRect(), ee = a.left + a.width / 2, te = a.top + a.height / 2, ne = (t ?? ee) - ee, re = (n ?? te) - te, ie = i / O.scale;
|
|
330
|
+
O.x = ne - (ne - O.x) * ie, O.y = re - (re - O.y) * ie, O.scale = i, i <= 1.01 ? G() : qt();
|
|
331
|
+
}, Yt = (e) => Jt(O.scale * e), G = () => {
|
|
332
|
+
O.scale = 1, O.x = 0, O.y = 0;
|
|
333
|
+
}, Xt = (e, t) => k.value ? G() : Jt(Kt(), e, t), Zt = (e) => {
|
|
334
|
+
if (e.ctrlKey) e.preventDefault(), Jt(O.scale * Math.exp(-e.deltaY * .01), e.clientX, e.clientY);
|
|
333
335
|
else {
|
|
334
|
-
if (!
|
|
335
|
-
R = null,
|
|
336
|
+
if (!k.value) {
|
|
337
|
+
R = null, $t(e);
|
|
336
338
|
return;
|
|
337
339
|
}
|
|
338
340
|
e.preventDefault();
|
|
339
341
|
let t = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? z() : 1, [n, r] = e.shiftKey && !e.deltaX ? [e.deltaY, 0] : [e.deltaX, e.deltaY];
|
|
340
|
-
|
|
342
|
+
O.x -= n * t, O.y -= r * t, qt();
|
|
341
343
|
}
|
|
342
|
-
},
|
|
344
|
+
}, Qt = -Infinity, $t = (e) => {
|
|
343
345
|
if (!(Math.abs(e.deltaX) > Math.abs(e.deltaY) || e.shiftKey) || e.deltaMode === 0) return;
|
|
344
346
|
e.preventDefault();
|
|
345
|
-
let t = e.timeStamp -
|
|
346
|
-
|
|
347
|
+
let t = e.timeStamp - Qt < 250;
|
|
348
|
+
Qt = e.timeStamp;
|
|
347
349
|
let n = Math.sign(e.deltaX || e.deltaY);
|
|
348
|
-
!t && n &&
|
|
350
|
+
!t && n && Ct(mt() ? -n : n);
|
|
349
351
|
};
|
|
350
|
-
|
|
351
|
-
t?.removeEventListener("wheel",
|
|
352
|
+
b(L, (e, t) => {
|
|
353
|
+
t?.removeEventListener("wheel", Zt), e?.addEventListener("wheel", Zt, { passive: !1 });
|
|
352
354
|
});
|
|
353
|
-
let K = /* @__PURE__ */ new Map(), q = null, J =
|
|
355
|
+
let K = /* @__PURE__ */ new Map(), q = null, J = _(0), en = _(!1), tn = s(() => Math.min(J.value / 320, 1)), Y = {
|
|
354
356
|
t: 0,
|
|
355
357
|
x: 0,
|
|
356
358
|
y: 0
|
|
357
|
-
},
|
|
359
|
+
}, nn, rn = "", an = () => {
|
|
358
360
|
let [e, t] = [...K.values()];
|
|
359
361
|
return Math.hypot(e.x - t.x, e.y - t.y);
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
+
}, on = (e) => {
|
|
363
|
+
rn = e.pointerType, pt = !0, R = null, K.set(e.pointerId, {
|
|
362
364
|
x: e.clientX,
|
|
363
365
|
y: e.clientY
|
|
364
366
|
}), K.size === 2 && e.pointerType === "touch" ? q = {
|
|
@@ -366,45 +368,45 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
|
|
|
366
368
|
startX: 0,
|
|
367
369
|
startY: 0,
|
|
368
370
|
startT: e.timeStamp,
|
|
369
|
-
zoomX:
|
|
370
|
-
zoomY:
|
|
371
|
-
pinchDistance:
|
|
372
|
-
pinchScale:
|
|
371
|
+
zoomX: O.x,
|
|
372
|
+
zoomY: O.y,
|
|
373
|
+
pinchDistance: an(),
|
|
374
|
+
pinchScale: O.scale,
|
|
373
375
|
moved: !0
|
|
374
376
|
} : K.size > 1 || (q = {
|
|
375
|
-
kind:
|
|
377
|
+
kind: k.value ? "pan" : "idle",
|
|
376
378
|
startX: e.clientX,
|
|
377
379
|
startY: e.clientY,
|
|
378
380
|
startT: e.timeStamp,
|
|
379
|
-
zoomX:
|
|
380
|
-
zoomY:
|
|
381
|
+
zoomX: O.x,
|
|
382
|
+
zoomY: O.y,
|
|
381
383
|
pinchDistance: 0,
|
|
382
|
-
pinchScale:
|
|
384
|
+
pinchScale: O.scale,
|
|
383
385
|
moved: !1
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
+
}, k.value && e.target.setPointerCapture?.(e.pointerId));
|
|
387
|
+
}, sn = (e) => {
|
|
386
388
|
if (!K.has(e.pointerId) || !q) return;
|
|
387
389
|
K.set(e.pointerId, {
|
|
388
390
|
x: e.clientX,
|
|
389
391
|
y: e.clientY
|
|
390
392
|
});
|
|
391
393
|
let t = e.clientX - q.startX, n = e.clientY - q.startY;
|
|
392
|
-
if (Math.hypot(t, n) > 6 && (q.moved = !0), q.kind !== "idle" && (
|
|
394
|
+
if (Math.hypot(t, n) > 6 && (q.moved = !0), q.kind !== "idle" && (en.value = !0), q.kind === "pinch" && K.size === 2) {
|
|
393
395
|
let [e, t] = [...K.values()];
|
|
394
|
-
|
|
395
|
-
} else q.kind === "pan" ? (
|
|
396
|
-
},
|
|
396
|
+
Jt(q.pinchScale * an() / q.pinchDistance, (e.x + t.x) / 2, (e.y + t.y) / 2);
|
|
397
|
+
} else q.kind === "pan" ? (O.x = q.zoomX + t, O.y = q.zoomY + n, qt()) : (q.kind === "idle" && e.pointerType !== "mouse" && n > 10 && n > Math.abs(t) * 1.2 && (q.kind = "dismiss"), q.kind === "dismiss" && (en.value = !0, J.value = Math.max(0, n)));
|
|
398
|
+
}, cn = (e) => {
|
|
397
399
|
if (K.delete(e.pointerId), K.size) return;
|
|
398
|
-
|
|
400
|
+
pt = !1, en.value = !1;
|
|
399
401
|
let t = q;
|
|
400
402
|
if (q = null, !t) return;
|
|
401
403
|
if (t.kind === "dismiss") {
|
|
402
404
|
let n = J.value / Math.max(e.timeStamp - t.startT, 1), r = e.type === "pointerup" && (J.value > 80 || n > .5);
|
|
403
|
-
J.value = 0, r &&
|
|
405
|
+
J.value = 0, r && P();
|
|
404
406
|
return;
|
|
405
407
|
}
|
|
406
408
|
if (e.type !== "pointerup" || t.moved || e.pointerType === "mouse") {
|
|
407
|
-
|
|
409
|
+
St();
|
|
408
410
|
return;
|
|
409
411
|
}
|
|
410
412
|
let n = e.target.closest(".bb-gallery__image"), r = e.timeStamp, i = r - Y.t < 300 && Math.hypot(e.clientX - Y.x, e.clientY - Y.y) < 30;
|
|
@@ -412,176 +414,197 @@ var Fe = ["aria-labelledby", "inert"], Ie = [
|
|
|
412
414
|
t: r,
|
|
413
415
|
x: e.clientX,
|
|
414
416
|
y: e.clientY
|
|
415
|
-
}, clearTimeout(
|
|
416
|
-
Y.t = 0, (n ||
|
|
417
|
+
}, clearTimeout(nn), i) {
|
|
418
|
+
Y.t = 0, (n || k.value) && Xt(e.clientX, e.clientY);
|
|
417
419
|
return;
|
|
418
420
|
}
|
|
419
421
|
let a = e.target.closest(".bb-gallery__missing");
|
|
420
|
-
if (!n && !a && !
|
|
421
|
-
a || (
|
|
422
|
-
},
|
|
423
|
-
if (!(
|
|
424
|
-
if (
|
|
425
|
-
|
|
422
|
+
if (!n && !a && !k.value && x.closeOnBackdropClick) return P();
|
|
423
|
+
a || (nn = setTimeout(() => dn.value = !dn.value, 300));
|
|
424
|
+
}, ln = (e) => {
|
|
425
|
+
if (!(rn !== "mouse" || e.detail > 1) && !e.target.closest(".bb-gallery__image, .bb-gallery__nav, .bb-gallery__missing")) {
|
|
426
|
+
if (k.value) return G();
|
|
427
|
+
x.closeOnBackdropClick && P();
|
|
426
428
|
}
|
|
427
|
-
},
|
|
428
|
-
|
|
429
|
+
}, un = (e) => {
|
|
430
|
+
rn && rn !== "mouse" || e.target.closest(".bb-gallery__image") && Xt(e.clientX, e.clientY);
|
|
429
431
|
};
|
|
430
|
-
|
|
431
|
-
t?.removeEventListener("dblclick",
|
|
432
|
+
b(L, (e, t) => {
|
|
433
|
+
t?.removeEventListener("dblclick", un), e?.addEventListener("dblclick", un);
|
|
432
434
|
});
|
|
433
|
-
let
|
|
435
|
+
let dn = _(!1), X = _(null), fn = `bb-gallery-title-${ne().id.value}`, Z = _(!1), pn = s(() => T.value || Z.value), mn = _();
|
|
434
436
|
te(Z);
|
|
435
|
-
let Q = Symbol("bb-gallery"),
|
|
437
|
+
let Q = Symbol("bb-gallery"), hn = null, $ = 0, gn = async () => {
|
|
436
438
|
let e = ++$;
|
|
437
|
-
|
|
439
|
+
mn.value = pe(), Z.value || ge(Q, { element: () => X.value }), Z.value = !0, await h();
|
|
438
440
|
let t = X.value;
|
|
439
|
-
t && e === $ && (t.open || t.showModal(),
|
|
440
|
-
},
|
|
441
|
+
t && e === $ && (t.open || t.showModal(), hn ??= oe(t), t.querySelector(".bb-gallery__stage")?.focus({ preventScroll: !0 }), await ue(me.medium), await le(t), e === $ && T.value && kt());
|
|
442
|
+
}, _n = async () => {
|
|
441
443
|
let e = $;
|
|
442
|
-
await
|
|
443
|
-
},
|
|
444
|
-
|
|
444
|
+
await ue(me.medium), e !== $ || T.value || vn();
|
|
445
|
+
}, vn = () => {
|
|
446
|
+
_e(Q), X.value?.open && X.value.close(), hn?.(), hn = null, Z.value && (Z.value = !1, xn());
|
|
445
447
|
};
|
|
446
|
-
|
|
447
|
-
|
|
448
|
+
b(T, (e) => void (e ? gn() : _n())), Oe(() => {
|
|
449
|
+
T.value && gn();
|
|
448
450
|
});
|
|
449
|
-
let
|
|
451
|
+
let yn = (e) => {
|
|
450
452
|
if (e.preventDefault(), H.value) return void (H.value = !1);
|
|
451
|
-
|
|
452
|
-
},
|
|
453
|
-
|
|
454
|
-
},
|
|
455
|
-
|
|
456
|
-
let e =
|
|
457
|
-
if (
|
|
453
|
+
he(Q) && P();
|
|
454
|
+
}, bn = () => {
|
|
455
|
+
T.value && X.value && ($++, p.value = null, vn());
|
|
456
|
+
}, xn = () => {
|
|
457
|
+
ft = !1, R = null, H.value = !1, dn.value = !1, J.value = 0, G(), It.value = "";
|
|
458
|
+
let e = j, t = M;
|
|
459
|
+
if (j = null, M = !1, N.afterHidden(), t || !e) return;
|
|
458
460
|
let n = document.activeElement;
|
|
459
461
|
n && n !== document.body || i(e);
|
|
460
462
|
};
|
|
461
|
-
return
|
|
462
|
-
$++,
|
|
463
|
-
}), (
|
|
463
|
+
return De(() => {
|
|
464
|
+
$++, _e(Q), X.value?.open && X.value.close(), hn?.(), ot?.(), V?.disconnect(), W?.disconnect(), wt && cancelAnimationFrame(wt), clearTimeout(Tt), Nt && cancelAnimationFrame(Nt), clearTimeout(Lt), clearTimeout(nn);
|
|
465
|
+
}), (n, r) => (g(), l("dialog", m({
|
|
464
466
|
ref_key: "root",
|
|
465
467
|
ref: X,
|
|
466
|
-
"aria-labelledby":
|
|
468
|
+
"aria-labelledby": pn.value ? fn : void 0,
|
|
467
469
|
class: ["bb-gallery", {
|
|
468
|
-
"bb-gallery--open":
|
|
470
|
+
"bb-gallery--open": T.value,
|
|
469
471
|
"bb-gallery--visible": Z.value,
|
|
470
|
-
"bb-gallery--zoomed":
|
|
471
|
-
"bb-gallery--quiet":
|
|
472
|
+
"bb-gallery--zoomed": k.value,
|
|
473
|
+
"bb-gallery--quiet": dn.value,
|
|
472
474
|
"bb-gallery--dismissing": J.value > 0,
|
|
473
|
-
"bb-gallery--gesture":
|
|
475
|
+
"bb-gallery--gesture": en.value
|
|
474
476
|
}],
|
|
475
|
-
inert: !
|
|
476
|
-
style: [
|
|
477
|
-
"--dismiss":
|
|
477
|
+
inert: !T.value || void 0,
|
|
478
|
+
style: [mn.value, J.value > 0 ? {
|
|
479
|
+
"--dismiss": tn.value,
|
|
478
480
|
"--dismiss-y": `${J.value}px`
|
|
479
481
|
} : void 0]
|
|
480
|
-
},
|
|
481
|
-
onCancel:
|
|
482
|
-
onClose:
|
|
483
|
-
onKeydown:
|
|
484
|
-
onPointerdown:
|
|
485
|
-
},
|
|
486
|
-
u("div",
|
|
487
|
-
title:
|
|
488
|
-
titleId:
|
|
489
|
-
}), () => [
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
482
|
+
}, Me(y(ve), !0), {
|
|
483
|
+
onCancel: yn,
|
|
484
|
+
onClose: bn,
|
|
485
|
+
onKeydown: At,
|
|
486
|
+
onPointerdown: Wt
|
|
487
|
+
}, y(A).rootAttrs), [pn.value ? (g(), l(o, { key: 0 }, [
|
|
488
|
+
u("div", m({ class: "bb-gallery__header" }, y(A).header), [je(n.$slots, "header", m(st.value, {
|
|
489
|
+
title: f.title,
|
|
490
|
+
titleId: fn
|
|
491
|
+
}), () => [d(y(de), {
|
|
492
|
+
of: y(Xe).title,
|
|
493
|
+
props: {
|
|
494
|
+
...st.value,
|
|
495
|
+
text: f.title
|
|
496
|
+
}
|
|
497
|
+
}, {
|
|
498
|
+
default: Ie(({ nodes: e }) => [u("p", m({
|
|
499
|
+
id: fn,
|
|
500
|
+
class: ["bb-gallery__title", { "bb-sr-only": !f.title && !e }]
|
|
501
|
+
}, y(A).title), [e ? (g(), Ce(y(fe), {
|
|
502
|
+
key: 0,
|
|
503
|
+
nodes: e
|
|
504
|
+
}, null, 8, ["nodes"])) : (g(), l(o, { key: 1 }, [we(v($e.value), 1)], 64))], 16)]),
|
|
505
|
+
_: 1
|
|
506
|
+
}, 8, ["of", "props"]), d(t, m({
|
|
507
|
+
"aria-label": y(S)("dialog.closeLabel").value,
|
|
494
508
|
class: "bb-gallery__close"
|
|
495
|
-
},
|
|
509
|
+
}, y(A).close, { onClick: P }), null, 16, ["aria-label"])])], 16),
|
|
496
510
|
u("div", {
|
|
497
511
|
class: "bb-gallery__stage",
|
|
498
512
|
tabindex: "-1",
|
|
499
|
-
onClick:
|
|
513
|
+
onClick: ln
|
|
500
514
|
}, [
|
|
501
515
|
u("div", {
|
|
502
516
|
ref_key: "track",
|
|
503
517
|
ref: L,
|
|
504
518
|
class: "bb-gallery__track",
|
|
505
519
|
tabindex: "-1",
|
|
506
|
-
onPointercancel:
|
|
507
|
-
onPointerdown:
|
|
508
|
-
onPointermove:
|
|
509
|
-
onPointerup:
|
|
510
|
-
onScrollPassive:
|
|
511
|
-
onScrollend:
|
|
512
|
-
}, [(
|
|
520
|
+
onPointercancel: cn,
|
|
521
|
+
onPointerdown: on,
|
|
522
|
+
onPointermove: sn,
|
|
523
|
+
onPointerup: cn,
|
|
524
|
+
onScrollPassive: Et,
|
|
525
|
+
onScrollend: Dt
|
|
526
|
+
}, [(g(!0), l(o, null, Ae(ct.value, (e) => (g(), l("figure", m({
|
|
513
527
|
key: e.key,
|
|
514
|
-
"aria-hidden": e.clone || e.real !==
|
|
515
|
-
"aria-label": e.clone ? void 0 :
|
|
528
|
+
"aria-hidden": e.clone || e.real !== E.value || void 0,
|
|
529
|
+
"aria-label": e.clone ? void 0 : et(e.real),
|
|
516
530
|
"aria-roledescription": e.clone ? void 0 : "slide",
|
|
517
|
-
class: ["bb-gallery__slide", { "bb-gallery__slide--active": !e.clone && e.real ===
|
|
518
|
-
inert: e.clone || e.real !==
|
|
531
|
+
class: ["bb-gallery__slide", { "bb-gallery__slide--active": !e.clone && e.real === E.value }],
|
|
532
|
+
inert: e.clone || e.real !== E.value || void 0,
|
|
519
533
|
role: e.clone ? void 0 : "group"
|
|
520
|
-
}, { ref_for: !0 },
|
|
534
|
+
}, { ref_for: !0 }, y(A).part("slide", { active: !e.clone && e.real === E.value }, e.item)), [u("div", ze, [jt.has(e.item.key) ? (g(), l("p", {
|
|
521
535
|
key: 0,
|
|
522
536
|
"aria-hidden": !e.item.alt || void 0,
|
|
523
|
-
class:
|
|
524
|
-
},
|
|
537
|
+
class: Ee(["bb-gallery__missing", { "bb-gallery__missing--blank": !e.item.alt }])
|
|
538
|
+
}, v(e.item.alt), 11, Be)) : (g(), l("img", m({
|
|
525
539
|
key: 1,
|
|
526
540
|
alt: e.item.alt,
|
|
527
541
|
class: ["bb-gallery__image", { "bb-gallery__image--sized": !!(e.item.width && e.item.height) }],
|
|
528
542
|
decoding: "async",
|
|
529
543
|
draggable: "false",
|
|
530
|
-
fetchpriority: !e.clone && e.real ===
|
|
544
|
+
fetchpriority: !e.clone && e.real === E.value ? "high" : void 0,
|
|
531
545
|
height: e.item.height,
|
|
532
|
-
loading:
|
|
546
|
+
loading: ut(e) ? "eager" : "lazy",
|
|
533
547
|
sizes: e.item.srcset ? e.item.sizes ?? "100vw" : void 0,
|
|
534
548
|
src: e.item.src,
|
|
535
549
|
srcset: e.item.srcset,
|
|
536
|
-
style:
|
|
550
|
+
style: dt(e),
|
|
537
551
|
width: e.item.width
|
|
538
|
-
}, { ref_for: !0 },
|
|
539
|
-
onError: (t) =>
|
|
540
|
-
onLoad:
|
|
541
|
-
}), null, 16,
|
|
542
|
-
|
|
543
|
-
"aria-label":
|
|
552
|
+
}, { ref_for: !0 }, y(A).image, {
|
|
553
|
+
onError: (t) => Pt(e.item.key),
|
|
554
|
+
onLoad: Ft
|
|
555
|
+
}), null, 16, Ve))])], 16, Re))), 128))], 544),
|
|
556
|
+
f.items.length > 1 ? (g(), l(o, { key: 0 }, [u("button", m({
|
|
557
|
+
"aria-label": y(S)("gallery.previous").value,
|
|
544
558
|
class: "bb-gallery__nav bb-gallery__nav--prev",
|
|
545
|
-
disabled:
|
|
559
|
+
disabled: Ze.value,
|
|
546
560
|
type: "button"
|
|
547
|
-
},
|
|
548
|
-
icon:
|
|
561
|
+
}, y(A).part("prev", { disabled: Ze.value }), { onClick: r[0] ||= (e) => Ct(-1) }), [d(e, {
|
|
562
|
+
icon: y(Ye),
|
|
549
563
|
size: "24px"
|
|
550
|
-
}, null, 8, ["icon"])], 16,
|
|
551
|
-
"aria-label":
|
|
564
|
+
}, null, 8, ["icon"])], 16, He), u("button", m({
|
|
565
|
+
"aria-label": y(S)("gallery.next").value,
|
|
552
566
|
class: "bb-gallery__nav bb-gallery__nav--next",
|
|
553
|
-
disabled:
|
|
567
|
+
disabled: Qe.value,
|
|
554
568
|
type: "button"
|
|
555
|
-
},
|
|
556
|
-
icon:
|
|
569
|
+
}, y(A).part("next", { disabled: Qe.value }), { onClick: r[1] ||= (e) => Ct(1) }), [d(e, {
|
|
570
|
+
icon: y(Je),
|
|
557
571
|
size: "24px"
|
|
558
|
-
}, null, 8, ["icon"])], 16,
|
|
559
|
-
u("p",
|
|
572
|
+
}, null, 8, ["icon"])], 16, Ue)], 64)) : c("", !0),
|
|
573
|
+
u("p", We, v(It.value), 1)
|
|
560
574
|
]),
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
575
|
+
d(y(de), {
|
|
576
|
+
of: y(Xe).footer,
|
|
577
|
+
props: st.value
|
|
578
|
+
}, {
|
|
579
|
+
default: Ie(({ nodes: e }) => [e || f.items.length > 1 || Ht.value ? (g(), l("div", m({
|
|
580
|
+
key: 0,
|
|
581
|
+
class: "bb-gallery__footer"
|
|
582
|
+
}, y(A).footer), [!e || Ht.value ? (g(), l("div", Ge, [Vt.value ? (g(), l("p", m({
|
|
583
|
+
key: 0,
|
|
584
|
+
id: Bt,
|
|
585
|
+
class: ["bb-gallery__caption", { "bb-gallery__caption--open": H.value }],
|
|
586
|
+
tabindex: H.value ? 0 : void 0
|
|
587
|
+
}, y(A).caption), [u("span", {
|
|
588
|
+
ref_key: "captionEl",
|
|
589
|
+
ref: zt,
|
|
590
|
+
class: "bb-gallery__caption-text"
|
|
591
|
+
}, v(Vt.value), 513), Ut.value || H.value ? (g(), l("button", m({
|
|
592
|
+
key: 0,
|
|
593
|
+
"aria-controls": Bt,
|
|
594
|
+
"aria-expanded": H.value,
|
|
595
|
+
class: "bb-gallery__more",
|
|
596
|
+
type: "button"
|
|
597
|
+
}, y(A).more, { onClick: r[2] ||= (e) => H.value = !H.value }), v(H.value ? y(S)("gallery.less").value : y(S)("gallery.more").value), 17, qe)) : c("", !0)], 16, Ke)) : c("", !0), !e && f.items.length > 1 ? (g(), l("p", m({
|
|
598
|
+
key: 1,
|
|
599
|
+
"aria-hidden": "true",
|
|
600
|
+
class: "bb-gallery__counter"
|
|
601
|
+
}, y(A).counter), v(E.value + 1) + " / " + v(f.items.length), 17)) : c("", !0)])) : c("", !0), e ? (g(), Ce(y(fe), {
|
|
602
|
+
key: 1,
|
|
603
|
+
nodes: e
|
|
604
|
+
}, null, 8, ["nodes"])) : c("", !0)], 16)) : c("", !0)]),
|
|
605
|
+
_: 1
|
|
606
|
+
}, 8, ["of", "props"])
|
|
607
|
+
], 64)) : c("", !0)], 16, Le));
|
|
585
608
|
}
|
|
586
609
|
});
|
|
587
|
-
export {
|
|
610
|
+
export { x as default };
|