bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75
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 +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +31 -5
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +9 -5
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +19 -15
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +16 -3
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +16 -4
- package/dist/ai/BbDropdown.md +175 -67
- package/dist/ai/BbDropdownButton.md +27 -8
- package/dist/ai/BbForm.md +4 -1
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +8 -4
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +59 -34
- package/dist/ai/BbTimePicker.md +16 -3
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbToastPortal.md +1 -1
- 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 +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +215 -6
- package/dist/ai/components.json +77 -43
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +33 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- 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-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +46 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCalendar.json +2 -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 +7 -4
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +6 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
- package/dist/ai/manifest/components/BbDropdown.json +23 -17
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
- package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -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 +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- 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 +16 -6
- package/dist/ai/manifest/components/BbTimePicker.json +7 -4
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +2 -1
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -3
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +64 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +121 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +56 -55
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +59 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +71 -22
- package/dist/ai/source/BbDatePickerInput.md +72 -9
- package/dist/ai/source/BbDialog.md +45 -2
- package/dist/ai/source/BbDropdown.md +263 -63
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +121 -59
- package/dist/ai/source/BbForm.md +73 -6
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +22 -16
- package/dist/ai/source/BbOffCanvas.md +48 -2
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +19 -10
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +126 -32
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +69 -15
- package/dist/ai/source/BbTimePickerInput.md +45 -7
- package/dist/ai/source/BbToast.md +16 -2
- package/dist/ai/source/BbToastPortal.md +18 -6
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +28 -2
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -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 +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- 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 +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- 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 +239 -223
- package/dist/components/BbColorPalette/types.d.ts +8 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
- package/dist/components/BbDatePicker/types.d.ts +9 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
- package/dist/components/BbDialog/leaveGhost.js +38 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
- 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 +133 -119
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +73 -58
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- 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 +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
- package/dist/components/BbTimePicker/types.d.ts +9 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +7 -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/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- 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/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- 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/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +35 -31
- package/dist/llms-full.txt +1428 -400
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +4 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/hash.js +97 -64
- package/dist/utilities/functions/isEqual.js +33 -25
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +11 -4
- package/llms.txt +4 -2
- package/package.json +3 -2
- package/scripts/README.md +3 -1
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +90 -24
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +5 -2
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +37 -2
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -136,7 +136,7 @@ export type BbCalendarBaseProps = BbCalendarPtProps & {
|
|
|
136
136
|
* `year`), otherwise a zoned
|
|
137
137
|
* ISO instant (carrying the time under `datetime`).
|
|
138
138
|
*/
|
|
139
|
-
modelValue
|
|
139
|
+
modelValue?: string | string[] | null;
|
|
140
140
|
/**
|
|
141
141
|
* Companion time model (`v-model:time`), 24-hour `HH:mm` / `HH:mm:ss`.
|
|
142
142
|
* With `floating` it is the only carrier of the time; otherwise it mirrors
|
|
@@ -239,7 +239,7 @@ export type BbCalendarBaseProps = BbCalendarPtProps & {
|
|
|
239
239
|
export type BbCalendarModelProps<R extends boolean = boolean, M extends boolean = boolean> = {
|
|
240
240
|
range?: R;
|
|
241
241
|
multiple?: M;
|
|
242
|
-
modelValue
|
|
242
|
+
modelValue?: PtNoInfer<BbDateModel<R, M>>;
|
|
243
243
|
time?: PtNoInfer<BbTimeModel<R>>;
|
|
244
244
|
};
|
|
245
245
|
export type BbCalendarProps<R extends boolean = boolean, M extends boolean = boolean> = BbCalendarBaseProps & BbCalendarModelProps<R, M>;
|
|
@@ -14,59 +14,59 @@ import { sort as m } from "../../utilities/functions/sort.js";
|
|
|
14
14
|
import { validateDateFormat as h } from "../../utilities/functions/validateDateFormat.js";
|
|
15
15
|
import { addMonths as g, addYears as _, digitsOf as v, fieldsOf as ee, inCalendarRange as y, monthEnd as te, monthStart as b } from "./calendarMath.js";
|
|
16
16
|
import { focusVisibly as x } from "../../utils/focusVisibility.js";
|
|
17
|
-
import { computed as S, nextTick as C, onBeforeUnmount as w, ref as T, watch as
|
|
18
|
-
import
|
|
17
|
+
import { computed as S, nextTick as C, onBeforeUnmount as w, ref as T, watch as E } from "vue";
|
|
18
|
+
import D from "dayjs";
|
|
19
19
|
// src/components/BbCalendar/useDayGrid.ts
|
|
20
|
-
var
|
|
21
|
-
let
|
|
22
|
-
floating:
|
|
23
|
-
utc:
|
|
24
|
-
type:
|
|
25
|
-
calendar:
|
|
26
|
-
})),
|
|
27
|
-
|
|
28
|
-
}, { marker:
|
|
29
|
-
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
let
|
|
33
|
-
let e = Infinity, t = -Infinity, n = {}, r =
|
|
34
|
-
return r && [].concat(r).filter(c).map((e) => o(e,
|
|
20
|
+
var O = ({ props: O, cursor: k, panes: A, system: j, nu: M, setCursor: N, pick: P, firstDayOfWeek: F, floating: ne, min: re, max: ie, modelValue: I }) => {
|
|
21
|
+
let ae = r(), L = S(() => ({
|
|
22
|
+
floating: ne(),
|
|
23
|
+
utc: O.utc,
|
|
24
|
+
type: O.type,
|
|
25
|
+
calendar: j.value ?? void 0
|
|
26
|
+
})), oe = S(() => O.type === "week"), R = (e) => (oe.value ? d(e) : e.startOf("day")).valueOf(), z = T(null), se = (e) => {
|
|
27
|
+
z.value = e;
|
|
28
|
+
}, { marker: B } = n(), V = re();
|
|
29
|
+
V && h(V, "Min");
|
|
30
|
+
let H = ie();
|
|
31
|
+
H && h(H, "Max");
|
|
32
|
+
let ce = S(() => {
|
|
33
|
+
let e = Infinity, t = -Infinity, n = {}, r = I();
|
|
34
|
+
return r && [].concat(r).filter(c).map((e) => o(e, L.value)).map(R).forEach((r, i) => {
|
|
35
35
|
r < e && (e = r), r > t && (t = r), n[r] = i;
|
|
36
36
|
}), {
|
|
37
37
|
min: e,
|
|
38
38
|
max: t,
|
|
39
|
-
index: (e) => n[
|
|
40
|
-
selected: (e) => u(n[
|
|
41
|
-
isFirstOfRange: (t) =>
|
|
42
|
-
isLastOfRange: (e) =>
|
|
43
|
-
isBetween: (n) =>
|
|
39
|
+
index: (e) => n[R(e)],
|
|
40
|
+
selected: (e) => u(n[R(e)]),
|
|
41
|
+
isFirstOfRange: (t) => R(t) === e,
|
|
42
|
+
isLastOfRange: (e) => R(e) === t,
|
|
43
|
+
isBetween: (n) => R(n) > e && R(n) < t
|
|
44
44
|
};
|
|
45
|
-
}),
|
|
45
|
+
}), le = S(() => Array(7).fill("").map((e, n) => D().day((n + F()) % 7).locale(t(ae.locale))).map((e) => ({
|
|
46
46
|
accessibleLabel: e.format("dddd"),
|
|
47
47
|
label: e.format("dd").slice(0, 1).toUpperCase(),
|
|
48
48
|
id: e.toISOString(),
|
|
49
49
|
original: e
|
|
50
|
-
}))),
|
|
51
|
-
let e =
|
|
52
|
-
return !!
|
|
53
|
-
}),
|
|
54
|
-
if (!
|
|
50
|
+
}))), U = S(() => {
|
|
51
|
+
let e = I();
|
|
52
|
+
return !!O.range && Array.isArray(e) && e.length === 1;
|
|
53
|
+
}), W = T(null), ue = (e) => {
|
|
54
|
+
if (!U.value) return;
|
|
55
55
|
let t = e.target;
|
|
56
56
|
if (!(t instanceof Element)) return;
|
|
57
57
|
let n = t.closest("[data-date]");
|
|
58
|
-
n?.dataset.date && (
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
let t =
|
|
58
|
+
n?.dataset.date && (W.value = R(D(n.dataset.date)));
|
|
59
|
+
}, de = () => {
|
|
60
|
+
W.value = null;
|
|
61
|
+
}, fe = (e) => {
|
|
62
|
+
let t = j.value, n = M.value, r = F(), i = b(t, e), o = (i.day() - r + 7) % 7, s = i.subtract(o, "day"), c = te(t, i), l = ((r + 6) % 7 - c.day() + 7) % 7 + 1, u = c.startOf("day").add(l, "day"), d = D(k.value).startOf("day"), f = R(d), p = ce.value, m = O.range, h = U.value ? p.min : null, g = U.value ? W.value ?? f : null, _ = h !== null && g !== null ? Math.min(h, g) : null, x = h !== null && g !== null ? Math.max(h, g) : null, S = [];
|
|
63
63
|
for (let e = s; e.isBefore(u); e = e.add(1, "day")) S.push(e.clone());
|
|
64
64
|
let C = S.map((e) => {
|
|
65
|
-
let r = e.format("YYYY-MM-DD"), a = e.week().toString(), o = p.selected(e), s = m && p.isFirstOfRange(e), l = m && p.isLastOfRange(e), u = m && !s && !l && p.isBetween(e), f =
|
|
65
|
+
let r = e.format("YYYY-MM-DD"), a = e.week().toString(), o = p.selected(e), s = m && p.isFirstOfRange(e), l = m && p.isLastOfRange(e), u = m && !s && !l && p.isBetween(e), f = R(e), g = _ !== null && x !== null && _ !== x && f > _ && f <= x && !p.selected(e), te = g && f === x && x !== h, b = _ !== null && _ !== h && f === _ && _ !== x, S = e.isBefore(i) || e.isAfter(c), C = y(t, e), w = C ? ee(t, e).day : 0, T = !!B.value && e.isSame(B.value);
|
|
66
66
|
return {
|
|
67
67
|
current: !S && e.isSame(d),
|
|
68
68
|
day: w,
|
|
69
|
-
disabled:
|
|
69
|
+
disabled: K(e),
|
|
70
70
|
first: s,
|
|
71
71
|
id: r,
|
|
72
72
|
label: C ? v(w, n) : "",
|
|
@@ -84,43 +84,45 @@ var D = ({ props: D, cursor: O, panes: k, system: A, nu: j, setCursor: M, pick:
|
|
|
84
84
|
};
|
|
85
85
|
});
|
|
86
86
|
return a(C, 7);
|
|
87
|
-
},
|
|
87
|
+
}, G = S(() => A.value.map((e) => ({
|
|
88
88
|
page: e,
|
|
89
|
-
weeks:
|
|
90
|
-
}))),
|
|
91
|
-
min:
|
|
92
|
-
max:
|
|
93
|
-
selectable:
|
|
94
|
-
floating:
|
|
95
|
-
type:
|
|
96
|
-
utc:
|
|
97
|
-
calendar:
|
|
98
|
-
}),
|
|
99
|
-
candidates: () =>
|
|
89
|
+
weeks: fe(e)
|
|
90
|
+
}))), K = (e) => !y(j.value, e) || l(e, {
|
|
91
|
+
min: re(),
|
|
92
|
+
max: ie(),
|
|
93
|
+
selectable: O.selectable,
|
|
94
|
+
floating: ne(),
|
|
95
|
+
type: O.type,
|
|
96
|
+
utc: O.utc,
|
|
97
|
+
calendar: j.value ?? void 0
|
|
98
|
+
}), pe = S(() => (G.value.find((e) => e.page.isSame(b(j.value, k.value)))?.weeks ?? []).flat().filter((e) => !e.outside && !e.disabled)), { onKeydown: me } = i({
|
|
99
|
+
candidates: () => pe.value,
|
|
100
100
|
getTokens: (e) => [.../* @__PURE__ */ new Set([
|
|
101
101
|
String(e.day),
|
|
102
102
|
String(e.day).padStart(2, "0"),
|
|
103
|
-
v(e.day,
|
|
104
|
-
v(e.day,
|
|
103
|
+
v(e.day, M.value),
|
|
104
|
+
v(e.day, M.value, 2)
|
|
105
105
|
])],
|
|
106
106
|
getCurrent: () => {
|
|
107
|
-
let e =
|
|
108
|
-
return
|
|
107
|
+
let e = k.value.format("YYYY-MM-DD");
|
|
108
|
+
return pe.value.find((t) => t.id === e);
|
|
109
109
|
},
|
|
110
110
|
onMatch: (e) => {
|
|
111
|
-
|
|
111
|
+
be(e.original), Q();
|
|
112
112
|
},
|
|
113
113
|
onCommit: (e) => {
|
|
114
|
-
e.disabled ||
|
|
114
|
+
e.disabled || Se(e);
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
116
|
+
}), he = (e) => {
|
|
117
|
+
e.key === "Enter" && e.target instanceof Element && e.target.closest(".bb-calendar__day--outside") || me(e);
|
|
118
|
+
}, ge = T("start"), _e = (e, t) => {
|
|
117
119
|
e && t && (ge.value = e.isBefore(t) ? "start" : "end");
|
|
118
120
|
};
|
|
119
|
-
|
|
121
|
+
E(() => A.value[0], (e, t) => {
|
|
120
122
|
_e(e, t);
|
|
121
123
|
});
|
|
122
|
-
let
|
|
123
|
-
|
|
124
|
+
let q = 0, J = 0, Y = null, X = null, Z = () => {
|
|
125
|
+
J && window.clearTimeout(J), J = 0, Y && X && Y.removeEventListener("transitionend", X), Y = null, X = null;
|
|
124
126
|
}, ve = (e) => {
|
|
125
127
|
let t = getComputedStyle(e), n = t.transitionProperty.split(",").map((e) => e.trim());
|
|
126
128
|
if (!n.includes("all") && !n.includes("height")) return 0;
|
|
@@ -128,12 +130,12 @@ var D = ({ props: D, cursor: O, panes: k, system: A, nu: j, setCursor: M, pick:
|
|
|
128
130
|
return Number.isNaN(o) ? 0 : a.endsWith("ms") ? o : o * 1e3;
|
|
129
131
|
}, ye = async () => {
|
|
130
132
|
if (typeof window > "u") return;
|
|
131
|
-
let e =
|
|
132
|
-
if (!e?.isConnected ||
|
|
133
|
+
let e = z.value;
|
|
134
|
+
if (!e?.isConnected || A.value.length > 1 || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
133
135
|
let t = e.getBoundingClientRect().height;
|
|
134
136
|
if (t < 1) return;
|
|
135
|
-
let n = ++
|
|
136
|
-
if (
|
|
137
|
+
let n = ++q;
|
|
138
|
+
if (Z(), e.style.height = `${Math.round(t * 100) / 100}px`, e.offsetHeight, await C(), n !== q || z.value !== e) return;
|
|
137
139
|
let r = [...e.querySelectorAll(".bb-calendar__month-grid")].find((e) => !e.className.includes("leave-active"));
|
|
138
140
|
if (!r) {
|
|
139
141
|
e.style.removeProperty("height");
|
|
@@ -151,110 +153,105 @@ var D = ({ props: D, cursor: O, panes: k, system: A, nu: j, setCursor: M, pick:
|
|
|
151
153
|
return;
|
|
152
154
|
}
|
|
153
155
|
let o = () => {
|
|
154
|
-
n ===
|
|
156
|
+
n === q && (Z(), e.style.removeProperty("height"));
|
|
155
157
|
}, s = (t) => {
|
|
156
158
|
t.propertyName === "height" && t.target === e && o();
|
|
157
159
|
};
|
|
158
|
-
|
|
160
|
+
Y = e, X = s, e.addEventListener("transitionend", s), J = window.setTimeout(o, a + 40);
|
|
159
161
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
E(() => A.value[0]?.format("YYYY-MM-DD"), () => void ye(), { flush: "sync" }), w(() => {
|
|
163
|
+
q += 1, Z(), z.value?.style.removeProperty("height");
|
|
162
164
|
});
|
|
163
|
-
let
|
|
164
|
-
if (!
|
|
165
|
+
let be = (e) => N(e), Q = async () => {
|
|
166
|
+
if (!z.value) return;
|
|
165
167
|
await C();
|
|
166
|
-
let e =
|
|
168
|
+
let e = z.value.closest(".bb-calendar__body") ?? z.value, t = k.value.format("YYYY-MM-DD"), n = p([...e.querySelectorAll(`.bb-calendar__day--highlighted button[data-date="${t}"]`)]);
|
|
167
169
|
n instanceof HTMLElement && x(n);
|
|
168
|
-
},
|
|
169
|
-
if (
|
|
170
|
+
}, xe = (e) => {
|
|
171
|
+
if (O.readonly) return;
|
|
170
172
|
let t = e.currentTarget instanceof HTMLButtonElement ? e.currentTarget : null;
|
|
171
173
|
if (!t) return;
|
|
172
174
|
let n = t.dataset.date;
|
|
173
175
|
if (!n) return;
|
|
174
|
-
let r =
|
|
175
|
-
|
|
176
|
-
Z(r);
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
let a = W.value.flatMap((e) => e.weeks.flat()).find((e) => e.id === n && !e.outside);
|
|
180
|
-
a && !a.disabled && (Z(r), xe(a));
|
|
181
|
-
}, xe = (e) => {
|
|
182
|
-
D.range ? Se(e) : D.multiple ? Ce(e) : we(e);
|
|
176
|
+
let r = D(n), i = G.value.flatMap((e) => e.weeks.flat()).filter((e) => e.id === n), a = i.find((e) => !e.outside) ?? i[0];
|
|
177
|
+
a && !a.disabled && (be(r), Se(a));
|
|
183
178
|
}, Se = (e) => {
|
|
184
|
-
|
|
185
|
-
Array.isArray(t) && (t.length === 1 ? N([t[0], s(e.original, I.value)].sort((e, t) => o(e, I.value).valueOf() - o(t, I.value).valueOf())) : N([s(e.original, I.value)]));
|
|
179
|
+
O.range ? Ce(e) : O.multiple ? we(e) : Te(e);
|
|
186
180
|
}, Ce = (e) => {
|
|
187
|
-
let t =
|
|
181
|
+
let t = I();
|
|
182
|
+
Array.isArray(t) && (t.length === 1 ? P([t[0], s(e.original, L.value)].sort((e, t) => o(e, L.value).valueOf() - o(t, L.value).valueOf())) : P([s(e.original, L.value)]));
|
|
183
|
+
}, we = (e) => {
|
|
184
|
+
let t = I();
|
|
188
185
|
if (Array.isArray(t)) {
|
|
189
186
|
if (e.selected) {
|
|
190
|
-
let n = s(e.original,
|
|
191
|
-
|
|
192
|
-
} else
|
|
187
|
+
let n = s(e.original, L.value);
|
|
188
|
+
P(t.filter((e) => e !== n));
|
|
189
|
+
} else P(m([...t, s(e.original, L.value)]));
|
|
193
190
|
}
|
|
194
|
-
},
|
|
195
|
-
e.selected &&
|
|
191
|
+
}, Te = (e) => {
|
|
192
|
+
e.selected && O.clearable ? P(null) : P(s(e.original, L.value));
|
|
196
193
|
}, $ = (e, t) => {
|
|
197
|
-
let n =
|
|
198
|
-
for (let r = 0; r < 366; r++) if (n = n.add(e, t), !
|
|
194
|
+
let n = k.value.clone();
|
|
195
|
+
for (let r = 0; r < 366; r++) if (n = n.add(e, t), !K(n)) return n;
|
|
199
196
|
return null;
|
|
200
|
-
},
|
|
197
|
+
}, Ee = (t) => {
|
|
201
198
|
let n = e(t.key, t.currentTarget);
|
|
202
199
|
if (!n) return;
|
|
203
200
|
let r = $(n === "next" ? 1 : -1, "day");
|
|
204
|
-
r && (
|
|
205
|
-
}, Ee = () => {
|
|
206
|
-
let e = $(-1, "week");
|
|
207
|
-
e && (M(e), Q());
|
|
201
|
+
r && (N(r), Q());
|
|
208
202
|
}, De = () => {
|
|
203
|
+
let e = $(-1, "week");
|
|
204
|
+
e && (N(e), Q());
|
|
205
|
+
}, Oe = () => {
|
|
209
206
|
let e = $(1, "week");
|
|
210
|
-
e && (
|
|
211
|
-
},
|
|
207
|
+
e && (N(e), Q());
|
|
208
|
+
}, ke = (e) => e.subtract((e.day() - F() + 7) % 7, "day");
|
|
212
209
|
return {
|
|
213
210
|
weekNumberOf: (e) => f(e[0].original).week,
|
|
214
|
-
setCalendarEl:
|
|
215
|
-
mappedHeaders:
|
|
216
|
-
months:
|
|
211
|
+
setCalendarEl: se,
|
|
212
|
+
mappedHeaders: le,
|
|
213
|
+
months: G,
|
|
217
214
|
direction: ge,
|
|
218
|
-
rangePending:
|
|
215
|
+
rangePending: U,
|
|
219
216
|
onDayTypeaheadKeydown: he,
|
|
220
|
-
onArrowDown:
|
|
221
|
-
onArrowUp:
|
|
222
|
-
onInlineArrow:
|
|
217
|
+
onArrowDown: Oe,
|
|
218
|
+
onArrowUp: De,
|
|
219
|
+
onInlineArrow: Ee,
|
|
223
220
|
onEnd: () => {
|
|
224
|
-
let e =
|
|
225
|
-
|
|
221
|
+
let e = ke(k.value.clone()).add(6, "day");
|
|
222
|
+
K(e) || (N(e), Q());
|
|
226
223
|
},
|
|
227
224
|
onHome: () => {
|
|
228
|
-
let e =
|
|
229
|
-
|
|
225
|
+
let e = ke(k.value.clone());
|
|
226
|
+
K(e) || (N(e), Q());
|
|
230
227
|
},
|
|
231
228
|
onPageDown: (e) => {
|
|
232
229
|
if (e.shiftKey) {
|
|
233
|
-
let e = _(
|
|
234
|
-
if (
|
|
235
|
-
|
|
230
|
+
let e = _(j.value, k.value, 1);
|
|
231
|
+
if (K(e)) return;
|
|
232
|
+
N(e);
|
|
236
233
|
} else {
|
|
237
|
-
let e = g(
|
|
238
|
-
if (
|
|
239
|
-
|
|
234
|
+
let e = g(j.value, k.value, 1);
|
|
235
|
+
if (K(e)) return;
|
|
236
|
+
N(e);
|
|
240
237
|
}
|
|
241
238
|
Q();
|
|
242
239
|
},
|
|
243
240
|
onPageUp: (e) => {
|
|
244
241
|
if (e.shiftKey) {
|
|
245
|
-
let e = _(
|
|
246
|
-
if (
|
|
247
|
-
|
|
242
|
+
let e = _(j.value, k.value, -1);
|
|
243
|
+
if (K(e)) return;
|
|
244
|
+
N(e);
|
|
248
245
|
} else {
|
|
249
|
-
let e = g(
|
|
250
|
-
if (
|
|
251
|
-
|
|
246
|
+
let e = g(j.value, k.value, -1);
|
|
247
|
+
if (K(e)) return;
|
|
248
|
+
N(e);
|
|
252
249
|
}
|
|
253
250
|
Q();
|
|
254
251
|
},
|
|
255
|
-
onGridMouseleave:
|
|
256
|
-
onGridMouseover:
|
|
257
|
-
onButtonClick:
|
|
252
|
+
onGridMouseleave: de,
|
|
253
|
+
onGridMouseover: ue,
|
|
254
|
+
onButtonClick: xe
|
|
258
255
|
};
|
|
259
256
|
};
|
|
260
|
-
export {
|
|
257
|
+
export { O as useDayGrid };
|
|
@@ -28,19 +28,22 @@ var l = (e) => {
|
|
|
28
28
|
minute: "2-digit",
|
|
29
29
|
...t ? { second: "2-digit" } : {},
|
|
30
30
|
hourCycle: e ? "h12" : "h23"
|
|
31
|
-
}), _ = (e, t, n, r) => {
|
|
32
|
-
let
|
|
33
|
-
if (!i) return e;
|
|
34
|
-
let [,
|
|
35
|
-
return h(new Date(2e3, 0, 1, +
|
|
36
|
-
}, v = (e
|
|
31
|
+
}), _ = (e, t, n, r, i = !0) => {
|
|
32
|
+
let a = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/.exec(e);
|
|
33
|
+
if (!a || !i) return e;
|
|
34
|
+
let [, o, s, c] = a;
|
|
35
|
+
return h(new Date(2e3, 0, 1, +o, +s, +(c ?? 0)), t, g(n, r));
|
|
36
|
+
}, v = (e, t, n, r, i = !0) => {
|
|
37
|
+
let a = e instanceof Date ? e : e.toDate();
|
|
38
|
+
return Number.isNaN(a.getTime()) ? "" : i ? h(a, t, g(n, r)) : [a.getHours(), a.getMinutes()].concat(r ? [a.getSeconds()] : []).map((e) => String(e).padStart(2, "0")).join(":");
|
|
39
|
+
}, y = (e) => e === "year" ? { year: "numeric" } : e === "month" ? {
|
|
37
40
|
year: "numeric",
|
|
38
41
|
month: "long"
|
|
39
42
|
} : {
|
|
40
43
|
year: "numeric",
|
|
41
44
|
month: "long",
|
|
42
45
|
day: "numeric"
|
|
43
|
-
},
|
|
46
|
+
}, b = (e, t) => h(e, t, { dateStyle: "full" }), x = (e, t) => {
|
|
44
47
|
let n = e.toDate(), i = e.add(6, "day").toDate();
|
|
45
48
|
if (Number.isNaN(n.getTime())) return "";
|
|
46
49
|
let a = {
|
|
@@ -52,4 +55,4 @@ var l = (e) => {
|
|
|
52
55
|
let c = s(t);
|
|
53
56
|
return m(r(new Intl.DateTimeFormat(c, a).formatRangeToParts(n, i), c));
|
|
54
57
|
};
|
|
55
|
-
export { d as dayjsLocaleOf, h as formatDateOf, s as intlLocaleOf,
|
|
58
|
+
export { d as dayjsLocaleOf, h as formatDateOf, s as intlLocaleOf, b as longDateOf, m as plainSpaces, v as spokenClockOf, y as spokenDateOptionsOf, _ as spokenTimeOf, g as timeFieldsOf, u as useDayjsLocale, x as weekSpanOf, f as weekStartOf };
|
|
@@ -789,13 +789,13 @@ var ye = ["aria-label", "aria-roledescription"], be = ["aria-label"], xe = ["ari
|
|
|
789
789
|
index: t.real,
|
|
790
790
|
item: t.item
|
|
791
791
|
}, void 0, void 0, 0) : ie("", !0),
|
|
792
|
-
t.node ? (_(), re(fe(t.node), { key: 1 })) :
|
|
792
|
+
t.node ? (_(), re(fe(t.node), { key: 1 })) : de(a.$slots, "slide", {
|
|
793
793
|
active: ut(t.real),
|
|
794
794
|
current: B(t.real),
|
|
795
795
|
index: t.real,
|
|
796
796
|
item: t.item
|
|
797
|
-
},
|
|
798
|
-
key:
|
|
797
|
+
}, () => [b.picker && O(t.item) ? (_(), f("button", h({
|
|
798
|
+
key: 0,
|
|
799
799
|
"aria-current": B(t.real) || void 0,
|
|
800
800
|
"aria-label": Ie(t.item, t.real),
|
|
801
801
|
class: "bb-carousel__thumb",
|
|
@@ -810,7 +810,7 @@ var ye = ["aria-label", "aria-roledescription"], be = ["aria-label"], xe = ["ari
|
|
|
810
810
|
src: O(t.item).src,
|
|
811
811
|
srcset: O(t.item).srcset
|
|
812
812
|
}, { ref_for: !0 }, y(w).image), null, 16, De)], 16, Ee)) : O(t.item) ? (_(), f("img", h({
|
|
813
|
-
key:
|
|
813
|
+
key: 1,
|
|
814
814
|
alt: O(t.item).alt,
|
|
815
815
|
class: "bb-carousel__image",
|
|
816
816
|
decoding: "async",
|
|
@@ -819,15 +819,15 @@ var ye = ["aria-label", "aria-roledescription"], be = ["aria-label"], xe = ["ari
|
|
|
819
819
|
sizes: O(t.item).sizes,
|
|
820
820
|
src: O(t.item).src,
|
|
821
821
|
srcset: O(t.item).srcset
|
|
822
|
-
}, { ref_for: !0 }, y(w).image), null, 16, Oe)) : ie("", !0),
|
|
822
|
+
}, { ref_for: !0 }, y(w).image), null, 16, Oe)) : ie("", !0)], void 0, 2),
|
|
823
823
|
x["slide:footer"] ? de(a.$slots, "slide:footer", {
|
|
824
824
|
active: ut(t.real),
|
|
825
825
|
current: B(t.real),
|
|
826
826
|
index: t.real,
|
|
827
827
|
item: t.item
|
|
828
|
-
}, void 0, void 0,
|
|
828
|
+
}, void 0, void 0, 3) : ie("", !0),
|
|
829
829
|
x.overlay ? (_(), f("div", h({
|
|
830
|
-
key:
|
|
830
|
+
key: 4,
|
|
831
831
|
class: "bb-carousel__overlay"
|
|
832
832
|
}, { ref_for: !0 }, y(w).overlay), [de(a.$slots, "overlay", {
|
|
833
833
|
active: ut(t.real),
|