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
|
@@ -103,6 +103,11 @@ export declare const BB_DATE_PICKER_INPUT_PT: {
|
|
|
103
103
|
*/
|
|
104
104
|
type BbDatePickerInputPtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_DATE_PICKER_INPUT_PT, PtVariantAttrs<TextControlPtPart | 'activator', keyof DatePickerInputVariantRegistry>> & BbDatePickerInputPtKeys;
|
|
105
105
|
export type BbDatePickerInputBaseProps = BbDatePickerInputPtProps & {
|
|
106
|
+
/**
|
|
107
|
+
* Whether the panel is open (`v-model:open`; `v-model` stays the value).
|
|
108
|
+
* Bound, the app opens and closes it; unbound, the initial state.
|
|
109
|
+
*/
|
|
110
|
+
open?: boolean;
|
|
106
111
|
/**
|
|
107
112
|
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
108
113
|
* without the prefix. See the `pt:<part>` row.
|
|
@@ -439,6 +444,8 @@ export type BbDatePickerInputEvents<R extends boolean = boolean> = {
|
|
|
439
444
|
(e: 'shown'): void;
|
|
440
445
|
/** Emitted as soon as the calendar surface starts to close. */
|
|
441
446
|
(e: 'hide'): void;
|
|
447
|
+
/** The panel opened or closed (`v-model:open`). */
|
|
448
|
+
(e: 'update:open', value: boolean): void;
|
|
442
449
|
/** Emitted once the calendar surface has finished closing. */
|
|
443
450
|
(e: 'hidden'): void;
|
|
444
451
|
/**
|
|
@@ -32,20 +32,20 @@ import { provideOverlaySubmitGuard as Ne } from "../../composables/formSubmitLoc
|
|
|
32
32
|
import { ownCompleteListener as Pe, useOverlayActions as Fe } from "./overlayActions.js";
|
|
33
33
|
import { provideOverlayStandIn as Ie, rootElementOf as Le, routeNativeCommand as Re, useOverlayHost as ze } from "../../composables/overlayRegistry.js";
|
|
34
34
|
import { provideStandInClose as Be, useOverlayNavigation as Ve } from "../../composables/useOverlayNavigation.js";
|
|
35
|
-
import { Fragment as He, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as Ue, createSlots as We, createTextVNode as Ge, createVNode as Ke, defineComponent as
|
|
35
|
+
import { Fragment as He, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as Ue, createSlots as We, createTextVNode as Ge, createVNode as Ke, defineComponent as qe, getCurrentInstance as Je, mergeModels as c, mergeProps as l, nextTick as Ye, onBeforeUnmount as Xe, onDeactivated as Ze, onMounted as Qe, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, toHandlers as $e, unref as m, useAttrs as et, useModel as tt, useSlots as nt, watch as h, withCtx as g, withModifiers as rt } from "vue";
|
|
36
36
|
// src/components/BbDialog/BbDialog.vue?vue&type=script&setup=true&lang.ts
|
|
37
|
-
var
|
|
37
|
+
var it = [
|
|
38
38
|
"id",
|
|
39
39
|
"aria-describedby",
|
|
40
40
|
"aria-labelledby",
|
|
41
41
|
"inert"
|
|
42
|
-
],
|
|
42
|
+
], at = { class: "bb-dialog__body-content" }, ot = {
|
|
43
43
|
"aria-live": "polite",
|
|
44
44
|
class: "bb-sr-only"
|
|
45
|
-
},
|
|
45
|
+
}, st = 4, _ = /*@__PURE__*/ qe({
|
|
46
46
|
inheritAttrs: !1,
|
|
47
47
|
__name: "BbDialog",
|
|
48
|
-
props: /*@__PURE__*/
|
|
48
|
+
props: /*@__PURE__*/ c({
|
|
49
49
|
"pt:root": {},
|
|
50
50
|
"pt:root:open": {},
|
|
51
51
|
"pt:root:fullscreen": {},
|
|
@@ -122,193 +122,201 @@ var rt = [
|
|
|
122
122
|
snap: {},
|
|
123
123
|
snapModifiers: {}
|
|
124
124
|
}),
|
|
125
|
-
emits: /*@__PURE__*/
|
|
125
|
+
emits: /*@__PURE__*/ c([
|
|
126
126
|
"complete",
|
|
127
127
|
"show",
|
|
128
128
|
"hide",
|
|
129
129
|
"shown",
|
|
130
130
|
"hidden"
|
|
131
131
|
], ["update:modelValue", "update:snap"]),
|
|
132
|
-
setup(r, { emit:
|
|
133
|
-
let
|
|
132
|
+
setup(r, { emit: qe }) {
|
|
133
|
+
let c = tt(r, "modelValue"), _ = tt(r, "snap"), v = r, y = qe, b = nt();
|
|
134
134
|
process.env.NODE_ENV !== "production" && de("BbDialog", ue("BbDialog"));
|
|
135
|
-
let { t:
|
|
135
|
+
let { t: x } = ae(), { isMobile: S } = se(), { resolve: ct } = ce(), C = ge("BbDialog", v, {
|
|
136
136
|
adaptive: !0,
|
|
137
137
|
fullscreen: !1
|
|
138
|
-
}),
|
|
139
|
-
Ee(() =>
|
|
140
|
-
let
|
|
141
|
-
id: () =>
|
|
142
|
-
model:
|
|
143
|
-
element: () => Le(
|
|
144
|
-
defaultData: () =>
|
|
145
|
-
onComplete: () => Pe(
|
|
138
|
+
}), lt = _e("BbDialog", ve), w = () => C.adaptive && S.value ? "canvas" : "dialog", T = d(w());
|
|
139
|
+
Ee(() => T.value === "canvas" ? x("dialog.closeLabel").value : null);
|
|
140
|
+
let ut = Je(), E = ze("dialog", {
|
|
141
|
+
id: () => v.id,
|
|
142
|
+
model: c,
|
|
143
|
+
element: () => Le(ut),
|
|
144
|
+
defaultData: () => v.defaultData,
|
|
145
|
+
onComplete: () => Pe(ut)
|
|
146
146
|
});
|
|
147
147
|
Ie();
|
|
148
|
-
let
|
|
149
|
-
|
|
148
|
+
let dt = Be();
|
|
149
|
+
v.navigation && E.onDemand && process.env.NODE_ENV !== "production" && oe().warn("BbDialog: `navigation` is ignored on a dialog opened on demand: it has no place in the page URL. For a URL dialog, render the wrapper in the page and open it by id."), Ve({
|
|
150
150
|
component: "BbDialog",
|
|
151
|
-
enabled: () => !!
|
|
152
|
-
key: () =>
|
|
153
|
-
replace: () => !!
|
|
154
|
-
id: () =>
|
|
155
|
-
model:
|
|
151
|
+
enabled: () => !!v.navigation && !E.onDemand,
|
|
152
|
+
key: () => v.queryKey,
|
|
153
|
+
replace: () => !!v.replace,
|
|
154
|
+
id: () => v.id,
|
|
155
|
+
model: c,
|
|
156
156
|
requestClose: () => {
|
|
157
|
-
if (
|
|
158
|
-
let e =
|
|
157
|
+
if (T.value === "dialog") return en("escape");
|
|
158
|
+
let e = dt();
|
|
159
159
|
return e === null ? (Q("escape"), !0) : e;
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
let
|
|
163
|
-
|
|
162
|
+
let ft = () => {
|
|
163
|
+
E.afterHidden(), y("hidden");
|
|
164
164
|
};
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
h([() => C.adaptive, S], () => {
|
|
166
|
+
c.value || (T.value = w());
|
|
167
167
|
});
|
|
168
|
-
let
|
|
168
|
+
let D = et(), O = be({
|
|
169
169
|
component: "BbDialog",
|
|
170
|
-
attrs:
|
|
171
|
-
props:
|
|
170
|
+
attrs: D,
|
|
171
|
+
props: v,
|
|
172
172
|
parts: ye.parts,
|
|
173
173
|
states: ye.states,
|
|
174
174
|
active: {
|
|
175
|
-
open: () =>
|
|
176
|
-
fullscreen: () =>
|
|
175
|
+
open: () => c.value,
|
|
176
|
+
fullscreen: () => F.value
|
|
177
177
|
}
|
|
178
|
-
}),
|
|
178
|
+
}), pt = i(() => l({
|
|
179
179
|
class: "bb-dialog__close",
|
|
180
180
|
onClick: $
|
|
181
|
-
},
|
|
182
|
-
id:
|
|
183
|
-
description:
|
|
184
|
-
preventClose:
|
|
185
|
-
eager:
|
|
186
|
-
focusTarget:
|
|
187
|
-
fullscreen:
|
|
188
|
-
hideClose:
|
|
189
|
-
persistent:
|
|
190
|
-
stack:
|
|
191
|
-
title:
|
|
192
|
-
transitionDuration:
|
|
181
|
+
}, O.close)), mt = i(() => ({
|
|
182
|
+
id: E.domId.value || v.id,
|
|
183
|
+
description: v.description,
|
|
184
|
+
preventClose: v.preventClose ?? (E.completing.value ? !0 : void 0),
|
|
185
|
+
eager: v.eager,
|
|
186
|
+
focusTarget: v.focusTarget,
|
|
187
|
+
fullscreen: C.fullscreen,
|
|
188
|
+
hideClose: v.hideClose,
|
|
189
|
+
persistent: v.persistent,
|
|
190
|
+
stack: v.stack,
|
|
191
|
+
title: v.title,
|
|
192
|
+
transitionDuration: v.transitionDuration,
|
|
193
193
|
side: "bottom",
|
|
194
194
|
draggable: !0,
|
|
195
195
|
size: "auto",
|
|
196
|
-
snapPoints:
|
|
197
|
-
snap:
|
|
198
|
-
ok:
|
|
199
|
-
cancel:
|
|
200
|
-
actions:
|
|
196
|
+
snapPoints: v.snapPoints,
|
|
197
|
+
snap: _.value,
|
|
198
|
+
ok: I.resolved.value.ok ?? void 0,
|
|
199
|
+
cancel: I.resolved.value.cancel ?? void 0,
|
|
200
|
+
actions: I.resolved.value.actions,
|
|
201
201
|
"onUpdate:snap": (e) => {
|
|
202
|
-
|
|
202
|
+
_.value = e;
|
|
203
203
|
},
|
|
204
|
-
...Se(
|
|
205
|
-
})),
|
|
206
|
-
let { class: e, ...t } =
|
|
207
|
-
return
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
e && !t && !
|
|
204
|
+
...Se(v.offCanvasProps)
|
|
205
|
+
})), ht = i(() => {
|
|
206
|
+
let { class: e, ...t } = D;
|
|
207
|
+
return l(mt.value, t);
|
|
208
|
+
}), k = d(null), A = `title_${ie().id.value}`, gt = `desc_${ie().id.value}`, j = () => !!v.description || !!b.description, M = () => !!v.title || !!b.title, _t = () => M() || j(), vt = le(() => c.value || v.eager, { initialValue: c.value || v.eager }), N = i(() => !!v.eager || c.value || G.value), P = d(0);
|
|
209
|
+
h(c, (e, t) => {
|
|
210
|
+
e && !t && !v.eager && P.value++;
|
|
211
211
|
}, { flush: "sync" });
|
|
212
|
-
let
|
|
212
|
+
let F = i(() => C.fullscreen === !0 || C.fullscreen === "mobile" && S.value), yt = () => typeof document < "u", bt = Ne(), xt = bt.saving, I = Fe({
|
|
213
213
|
component: "BbDialog",
|
|
214
|
-
props: () =>
|
|
215
|
-
surface:
|
|
216
|
-
complete:
|
|
217
|
-
data: () =>
|
|
214
|
+
props: () => v,
|
|
215
|
+
surface: bt,
|
|
216
|
+
complete: E.complete,
|
|
217
|
+
data: () => E.data.value,
|
|
218
218
|
close: () => $(),
|
|
219
|
-
closeLocked: () =>
|
|
219
|
+
closeLocked: () => L.value,
|
|
220
220
|
block: "bb-dialog"
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
|
|
221
|
+
}), St = () => I.render(), L = i(() => v.preventClose ?? (xt() || E.completing.value)), Ct = i(() => L.value || !!v.persistent), R = d(!1), z = d(null), wt = () => {
|
|
222
|
+
z.value = null;
|
|
223
|
+
}, Tt = (e) => {
|
|
224
|
+
z.value = {
|
|
225
225
|
startX: e.clientX,
|
|
226
226
|
startY: e.clientY,
|
|
227
227
|
startedOnBackdrop: e.target === e.currentTarget
|
|
228
228
|
};
|
|
229
|
-
},
|
|
230
|
-
let t =
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
|
|
229
|
+
}, Et = (e) => {
|
|
230
|
+
let t = z.value;
|
|
231
|
+
wt(), t && !t.startedOnBackdrop || t && (Math.abs(e.clientX - t.startX) > st || Math.abs(e.clientY - t.startY) > st) || $t(e, "backdrop");
|
|
232
|
+
}, B, Dt = Me(() => x("dialog.closeRefused").value), V = (e) => {
|
|
233
|
+
Dt.announce(), clearTimeout(B), R.value = !0, B = setTimeout(() => {
|
|
234
|
+
R.value = !1;
|
|
235
235
|
}, e);
|
|
236
|
-
},
|
|
237
|
-
let e = { element: () =>
|
|
238
|
-
|
|
239
|
-
}, kt = () => {
|
|
240
|
-
re(U), vt() && document.removeEventListener("keydown", jt, { capture: !0 });
|
|
236
|
+
}, H = Symbol("bb-dialog-escape"), Ot = t(), U = !1, kt = () => {
|
|
237
|
+
let e = { element: () => k.value };
|
|
238
|
+
U ? ee(H, Ot, e) : ne(H, e), yt() && document.addEventListener("keydown", Mt, { capture: !0 });
|
|
241
239
|
}, At = () => {
|
|
242
|
-
|
|
243
|
-
}, jt = (
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}, Bt = () => {
|
|
250
|
-
Rt(
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
240
|
+
re(H), yt() && document.removeEventListener("keydown", Mt, { capture: !0 });
|
|
241
|
+
}, jt = () => {
|
|
242
|
+
v.focusTarget && xe(k.value, v.focusTarget)?.focus();
|
|
243
|
+
}, Mt = (e) => {
|
|
244
|
+
if (e.key === "Escape" && !J.value && te(H) && (e.stopImmediatePropagation(), Ct.value)) return e.preventDefault(), V(200), !1;
|
|
245
|
+
}, W = d(0), G = d(!1);
|
|
246
|
+
je(G);
|
|
247
|
+
let K = Symbol("bb-dialog"), { stacks: Nt, openOrder: Pt, closing: Ft, enter: It, leave: Lt, registerOpen: Rt, deregisterOpen: zt, setClosing: q } = ke(), Bt = () => {
|
|
248
|
+
Rt(K), v.stack && It(v.stack, K);
|
|
249
|
+
}, Vt = () => {
|
|
250
|
+
zt(K), v.stack && Lt(v.stack, K);
|
|
251
|
+
}, J = i(() => {
|
|
252
|
+
if (!v.stack) return !1;
|
|
253
|
+
let e = Nt.value[v.stack];
|
|
254
|
+
return !e || !e.includes(K) ? !1 : e[e.length - 1] !== K;
|
|
255
|
+
}), Ht = i(() => Pt.value.indexOf(K)), Ut = (e, t) => h([t, () => Ft.value.length > 0], ([t, ee]) => {
|
|
256
256
|
t !== -1 && (e.value = ee && e.value || t > 0);
|
|
257
|
-
}, { immediate: !0 }),
|
|
258
|
-
|
|
259
|
-
let
|
|
260
|
-
|
|
261
|
-
let
|
|
257
|
+
}, { immediate: !0 }), Wt = d(!1);
|
|
258
|
+
Ut(Wt, Ht);
|
|
259
|
+
let Gt = i(() => (Ht.value !== -1 || G.value) && Wt.value), Kt = i(() => v.stack ? Nt.value[v.stack]?.indexOf(K) ?? -1 : -1), qt = d(!1);
|
|
260
|
+
Ut(qt, Kt);
|
|
261
|
+
let Jt = i(() => (Kt.value !== -1 || G.value) && qt.value), Yt = d(), Y = null, X = null, Z = null, Xt = async (e) => {
|
|
262
262
|
if (e) {
|
|
263
|
-
|
|
264
|
-
let e =
|
|
265
|
-
await n(
|
|
263
|
+
y("show"), W.value++, Yt.value = De(), kt(), await Ye(), G.value = !0, k.value && !k.value.open && (Z = document.activeElement, k.value.showModal()), X = null, me(K), Bt(), q(K, !1), k.value && (Y = Ae(k.value)), jt();
|
|
264
|
+
let e = W.value;
|
|
265
|
+
await n(v.transitionDuration), await he(k.value), e === W.value && c.value && y("shown");
|
|
266
266
|
} else {
|
|
267
|
-
|
|
268
|
-
let e =
|
|
269
|
-
if (await n(
|
|
270
|
-
|
|
267
|
+
y("hide", E.closingResult()), X = performance.now(), q(K, !0), Vt();
|
|
268
|
+
let e = W.value;
|
|
269
|
+
if (await n(v.transitionDuration), e !== W.value) return;
|
|
270
|
+
At(), k.value?.close(), pe(K), Y?.(), Y = null, G.value = !1, q(K, !1), ft();
|
|
271
271
|
}
|
|
272
272
|
}, Zt = () => {
|
|
273
|
-
process.env.NODE_ENV !== "production" &&
|
|
274
|
-
|
|
273
|
+
process.env.NODE_ENV !== "production" && b.header && !v.title && D["aria-labelledby"] == null && Ye(() => {
|
|
274
|
+
k.value && !document.getElementById(A) && oe().warn(`BbDialog: the #header slot does not contain an element with id="${A}", so aria-labelledby points at nothing and the dialog announces as unnamed. Bind the slot's \`titleId\` to your heading: <template #header="{ titleId }"><h2 :id="titleId">…</h2></template>.`);
|
|
275
275
|
});
|
|
276
276
|
};
|
|
277
|
-
|
|
278
|
-
e && (
|
|
279
|
-
}),
|
|
280
|
-
|
|
281
|
-
}),
|
|
277
|
+
h(c, (e) => {
|
|
278
|
+
e && (T.value = w()), T.value === "dialog" && Xt(e);
|
|
279
|
+
}), Qe(() => {
|
|
280
|
+
c.value && T.value === "dialog" && (U = !0, Xt(!0), U = !1);
|
|
281
|
+
}), h(vt, (e) => {
|
|
282
282
|
e && Zt();
|
|
283
283
|
}, {
|
|
284
284
|
immediate: !0,
|
|
285
285
|
flush: "post"
|
|
286
|
-
}),
|
|
287
|
-
fe(
|
|
288
|
-
id:
|
|
286
|
+
}), Xe(() => {
|
|
287
|
+
fe(k.value, {
|
|
288
|
+
id: K,
|
|
289
289
|
openClass: "bb-dialog--open",
|
|
290
|
-
duration:
|
|
291
|
-
closingSince:
|
|
292
|
-
opener:
|
|
293
|
-
}),
|
|
290
|
+
duration: v.transitionDuration,
|
|
291
|
+
closingSince: X,
|
|
292
|
+
opener: Z
|
|
293
|
+
}), k.value?.open && k.value.close(), clearTimeout(B), At(), Vt(), q(K, !1), Y?.(), Y = null;
|
|
294
294
|
});
|
|
295
|
-
let Qt = i(() =>
|
|
295
|
+
let Qt = i(() => F.value ? "100%" : e(ct(v.size), lt.value)), $t = (e, t = "escape") => {
|
|
296
296
|
if (e.preventDefault(), !en(t)) return !1;
|
|
297
|
-
}, en = (e) =>
|
|
298
|
-
|
|
297
|
+
}, en = (e) => Ct.value ? (V(300), !1) : (Q(e), !0), Q = (e) => {
|
|
298
|
+
E.record(e), c.value = !1;
|
|
299
299
|
}, $ = () => {
|
|
300
|
-
|
|
300
|
+
L.value ? V(300) : Q("close");
|
|
301
301
|
}, tn = (e) => Re(e, {
|
|
302
|
-
show:
|
|
302
|
+
show: E.show,
|
|
303
303
|
close: $,
|
|
304
|
-
open: () =>
|
|
304
|
+
open: () => c.value
|
|
305
305
|
});
|
|
306
|
-
return
|
|
306
|
+
return Ze(() => {
|
|
307
|
+
G.value && fe(k.value, {
|
|
308
|
+
id: K,
|
|
309
|
+
openClass: "bb-dialog--open",
|
|
310
|
+
duration: v.transitionDuration,
|
|
311
|
+
closingSince: X,
|
|
312
|
+
opener: Z
|
|
313
|
+
}), Q("unmounted");
|
|
314
|
+
}), (e, t) => T.value === "canvas" ? (u(), a(Te, l({
|
|
307
315
|
key: 0,
|
|
308
|
-
modelValue:
|
|
309
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
316
|
+
modelValue: c.value,
|
|
317
|
+
"onUpdate:modelValue": t[0] ||= (e) => c.value = e,
|
|
310
318
|
class: "bb-dialog__sheet",
|
|
311
|
-
pt:
|
|
319
|
+
pt: m(O).forward({
|
|
312
320
|
root: "root",
|
|
313
321
|
header: "header",
|
|
314
322
|
title: "title",
|
|
@@ -317,134 +325,134 @@ var rt = [
|
|
|
317
325
|
footer: "footer",
|
|
318
326
|
close: "close",
|
|
319
327
|
sheet: "root"
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
onHidden:
|
|
323
|
-
onHide: t[1] ||= (e) =>
|
|
324
|
-
onShow: t[2] ||= (e) =>
|
|
325
|
-
onShown: t[3] ||= (e) =>
|
|
328
|
+
}, m(Ce).states, () => r.offCanvasProps?.pt)
|
|
329
|
+
}, ht.value, {
|
|
330
|
+
onHidden: ft,
|
|
331
|
+
onHide: t[1] ||= (e) => y("hide", m(E).closingResult()),
|
|
332
|
+
onShow: t[2] ||= (e) => y("show"),
|
|
333
|
+
onShown: t[3] ||= (e) => y("shown")
|
|
326
334
|
}), We({ _: 2 }, [
|
|
327
335
|
e.$slots.default ? {
|
|
328
336
|
name: "default",
|
|
329
|
-
fn:
|
|
330
|
-
complete:
|
|
331
|
-
data:
|
|
332
|
-
reset:
|
|
337
|
+
fn: g((t) => [f(e.$slots, "default", l(t, {
|
|
338
|
+
complete: m(E).complete,
|
|
339
|
+
data: m(E).data.value,
|
|
340
|
+
reset: m(E).reset
|
|
333
341
|
}))]),
|
|
334
342
|
key: "0"
|
|
335
343
|
} : void 0,
|
|
336
344
|
e.$slots.header ? {
|
|
337
345
|
name: "header",
|
|
338
|
-
fn:
|
|
339
|
-
complete:
|
|
340
|
-
data:
|
|
341
|
-
reset:
|
|
346
|
+
fn: g((t) => [f(e.$slots, "header", l(t, {
|
|
347
|
+
complete: m(E).complete,
|
|
348
|
+
data: m(E).data.value,
|
|
349
|
+
reset: m(E).reset
|
|
342
350
|
}))]),
|
|
343
351
|
key: "1"
|
|
344
352
|
} : void 0,
|
|
345
353
|
e.$slots.title ? {
|
|
346
354
|
name: "title",
|
|
347
|
-
fn:
|
|
355
|
+
fn: g((t) => [f(e.$slots, "title", l(t, { data: m(E).data.value }))]),
|
|
348
356
|
key: "2"
|
|
349
357
|
} : void 0,
|
|
350
358
|
e.$slots.description ? {
|
|
351
359
|
name: "description",
|
|
352
|
-
fn:
|
|
360
|
+
fn: g((t) => [f(e.$slots, "description", l(t, { data: m(E).data.value }))]),
|
|
353
361
|
key: "3"
|
|
354
362
|
} : void 0,
|
|
355
363
|
e.$slots.footer ? {
|
|
356
364
|
name: "footer",
|
|
357
|
-
fn:
|
|
358
|
-
complete:
|
|
359
|
-
data:
|
|
360
|
-
reset:
|
|
365
|
+
fn: g((t) => [f(e.$slots, "footer", l(t, {
|
|
366
|
+
complete: m(E).complete,
|
|
367
|
+
data: m(E).data.value,
|
|
368
|
+
reset: m(E).reset
|
|
361
369
|
}))]),
|
|
362
370
|
key: "4"
|
|
363
371
|
} : void 0
|
|
364
|
-
]), 1040, ["modelValue", "pt"])) : (
|
|
372
|
+
]), 1040, ["modelValue", "pt"])) : (u(), s("dialog", l({
|
|
365
373
|
key: 1,
|
|
366
|
-
id:
|
|
374
|
+
id: m(E).domId.value || void 0,
|
|
367
375
|
ref_key: "dialog",
|
|
368
|
-
ref:
|
|
369
|
-
"aria-describedby":
|
|
370
|
-
"aria-labelledby":
|
|
376
|
+
ref: k,
|
|
377
|
+
"aria-describedby": N.value && j() ? gt : void 0,
|
|
378
|
+
"aria-labelledby": N.value && (M() || e.$slots.header) ? A : void 0,
|
|
371
379
|
class: ["bb-dialog", {
|
|
372
|
-
"bb-dialog--open":
|
|
373
|
-
"bb-dialog--visible":
|
|
374
|
-
"bb-dialog--fullscreen":
|
|
375
|
-
"bb-dialog--mobile":
|
|
376
|
-
"bb-dialog--deny-close":
|
|
377
|
-
"bb-dialog--covered":
|
|
378
|
-
"bb-dialog--above":
|
|
379
|
-
"bb-dialog--covering":
|
|
380
|
+
"bb-dialog--open": c.value,
|
|
381
|
+
"bb-dialog--visible": G.value,
|
|
382
|
+
"bb-dialog--fullscreen": F.value,
|
|
383
|
+
"bb-dialog--mobile": m(S),
|
|
384
|
+
"bb-dialog--deny-close": R.value,
|
|
385
|
+
"bb-dialog--covered": J.value,
|
|
386
|
+
"bb-dialog--above": Gt.value,
|
|
387
|
+
"bb-dialog--covering": Jt.value
|
|
380
388
|
}],
|
|
381
|
-
inert: !
|
|
389
|
+
inert: !c.value && !G.value || J.value,
|
|
382
390
|
style: {
|
|
383
391
|
"--max-width": Qt.value,
|
|
384
|
-
...
|
|
385
|
-
"--transition-duration": `${
|
|
392
|
+
...Yt.value,
|
|
393
|
+
"--transition-duration": `${v.transitionDuration}ms`
|
|
386
394
|
}
|
|
387
|
-
},
|
|
388
|
-
onCancel:
|
|
395
|
+
}, $e(m(Oe), !0), {
|
|
396
|
+
onCancel: rt($t, ["self"]),
|
|
389
397
|
onCommand: tn,
|
|
390
|
-
onClick:
|
|
391
|
-
onPointercancel:
|
|
392
|
-
onPointerdown:
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
key: `body-1-${
|
|
398
|
+
onClick: rt(Et, ["self"]),
|
|
399
|
+
onPointercancel: wt,
|
|
400
|
+
onPointerdown: Tt
|
|
401
|
+
}, m(O).rootAttrs), [N.value ? (u(), s(He, { key: 0 }, [
|
|
402
|
+
_t() || e.$slots.header ? (u(), s("div", l({
|
|
403
|
+
key: `body-1-${P.value}`,
|
|
396
404
|
class: "bb-dialog__header"
|
|
397
|
-
},
|
|
405
|
+
}, m(O).header), [f(e.$slots, "header", {
|
|
398
406
|
close: $,
|
|
399
|
-
complete:
|
|
400
|
-
data:
|
|
401
|
-
reset:
|
|
407
|
+
complete: m(E).complete,
|
|
408
|
+
data: m(E).data.value,
|
|
409
|
+
reset: m(E).reset,
|
|
402
410
|
title: r.title,
|
|
403
|
-
titleId:
|
|
411
|
+
titleId: A
|
|
404
412
|
}, () => [
|
|
405
|
-
|
|
413
|
+
M() ? (u(), s("span", l({
|
|
406
414
|
key: 0,
|
|
407
|
-
id:
|
|
415
|
+
id: A,
|
|
408
416
|
class: "bb-dialog__title"
|
|
409
|
-
},
|
|
410
|
-
data:
|
|
417
|
+
}, m(O).title), [f(e.$slots, "title", {
|
|
418
|
+
data: m(E).data.value,
|
|
411
419
|
text: r.title
|
|
412
|
-
}, () => [Ge(
|
|
413
|
-
|
|
420
|
+
}, () => [Ge(p(r.title), 1)])], 16)) : o("", !0),
|
|
421
|
+
j() ? (u(), s("p", l({
|
|
414
422
|
key: 1,
|
|
415
|
-
id:
|
|
423
|
+
id: gt,
|
|
416
424
|
class: "bb-dialog__description"
|
|
417
|
-
},
|
|
418
|
-
data:
|
|
425
|
+
}, m(O).description), [f(e.$slots, "description", {
|
|
426
|
+
data: m(E).data.value,
|
|
419
427
|
text: r.description
|
|
420
|
-
}, () => [Ge(
|
|
421
|
-
r.hideClose ? o("", !0) : (
|
|
428
|
+
}, () => [Ge(p(r.description), 1)])], 16)) : o("", !0),
|
|
429
|
+
r.hideClose ? o("", !0) : (u(), a(we, l({
|
|
422
430
|
key: 2,
|
|
423
|
-
"aria-label":
|
|
424
|
-
},
|
|
431
|
+
"aria-label": m(x)("dialog.closeLabel").value
|
|
432
|
+
}, pt.value), null, 16, ["aria-label"]))
|
|
425
433
|
])], 16)) : o("", !0),
|
|
426
|
-
(
|
|
427
|
-
key: `body-2-${
|
|
434
|
+
(u(), s("div", l({
|
|
435
|
+
key: `body-2-${P.value}`,
|
|
428
436
|
class: "bb-dialog__content scrollbar-border"
|
|
429
|
-
},
|
|
437
|
+
}, m(O).content), [Ue("div", at, [!_t() && !e.$slots.header && !r.hideClose ? (u(), a(we, l({
|
|
430
438
|
key: 0,
|
|
431
|
-
"aria-label":
|
|
432
|
-
},
|
|
439
|
+
"aria-label": m(x)("dialog.closeLabel").value
|
|
440
|
+
}, pt.value), null, 16, ["aria-label"])) : o("", !0), f(e.$slots, "default", {
|
|
433
441
|
close: $,
|
|
434
|
-
complete:
|
|
435
|
-
data:
|
|
436
|
-
reset:
|
|
442
|
+
complete: m(E).complete,
|
|
443
|
+
data: m(E).data.value,
|
|
444
|
+
reset: m(E).reset
|
|
437
445
|
})])], 16)),
|
|
438
|
-
(
|
|
439
|
-
key: `body-3-${
|
|
446
|
+
(u(), s("div", l({
|
|
447
|
+
key: `body-3-${P.value}`,
|
|
440
448
|
class: "bb-dialog__footer"
|
|
441
|
-
},
|
|
449
|
+
}, m(O).footer), [f(e.$slots, "footer", {
|
|
442
450
|
close: $,
|
|
443
|
-
complete:
|
|
444
|
-
data:
|
|
445
|
-
reset:
|
|
446
|
-
}, () => [Ke(
|
|
447
|
-
], 64)) : o("", !0), Ue("span",
|
|
451
|
+
complete: m(E).complete,
|
|
452
|
+
data: m(E).data.value,
|
|
453
|
+
reset: m(E).reset
|
|
454
|
+
}, () => [Ke(St)])], 16))
|
|
455
|
+
], 64)) : o("", !0), Ue("span", ot, p(m(Dt).text.value), 1)], 16, it));
|
|
448
456
|
}
|
|
449
457
|
});
|
|
450
|
-
export {
|
|
458
|
+
export { _ as default };
|