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
|
@@ -2,46 +2,47 @@ import { parseSize as e } from "../../utilities/functions/parseSize.js";
|
|
|
2
2
|
import { escapeStackDepth as t, insertEscapeEntry as ee, isTopEscapeEntry as te, pushEscapeEntry as ne, removeEscapeEntry as re } from "../../utils/overlayEscapeStack.js";
|
|
3
3
|
import { useId as ie } from "../../composables/useId.js";
|
|
4
4
|
import { useLocale as ae } from "../../composables/useLocale.js";
|
|
5
|
-
import { useLogger as
|
|
6
|
-
import { useMobile as
|
|
7
|
-
import { useBreakpoint as
|
|
8
|
-
import { useUntil as
|
|
9
|
-
import { removedPropsFor as
|
|
10
|
-
import { warnRemovedAttrs as
|
|
11
|
-
import { wait as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
5
|
+
import { useLogger as oe } from "../../composables/useLogger.js";
|
|
6
|
+
import { useMobile as se } from "../../composables/useMobile.js";
|
|
7
|
+
import { useBreakpoint as ce } from "../../composables/useBreakpoint.js";
|
|
8
|
+
import { useUntil as le } from "../../composables/useUntil.js";
|
|
9
|
+
import { removedPropsFor as ue } from "../../deprecation/removedProps.js";
|
|
10
|
+
import { warnRemovedAttrs as de } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
11
|
+
import { wait as n } from "../../utilities/functions/wait.js";
|
|
12
|
+
import { leaveAsGhost as fe, surfaceGone as pe, surfaceShown as me } from "./leaveGhost.js";
|
|
13
|
+
import { animationsSettled as he } from "../../utilities/functions/animationsSettled.js";
|
|
14
|
+
import { useConfigDefaults as ge, useSizeMap as _e } from "../../composables/useConfigDefaults.js";
|
|
15
|
+
import { PANEL_SIZES as ve } from "../../types/SizeScale.js";
|
|
16
|
+
import { BB_DIALOG_PT as ye } from "./types.js";
|
|
17
|
+
import { usePassthrough as be } from "../../composables/usePassthrough.js";
|
|
18
|
+
import { firstFocusableMatch as xe } from "../../utils/focusVisibility.js";
|
|
19
|
+
import { withoutPt as Se } from "../../utils/passthrough.js";
|
|
20
|
+
import { BB_OFF_CANVAS_PT as Ce } from "../BbOffCanvas/types.js";
|
|
21
|
+
import we from "../CloseIcon/CloseButton.vue.js";
|
|
22
|
+
import Te from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
23
|
+
import { provideHostCloseLabel as Ee } from "../BbOffCanvas/hostCloseLabel.js";
|
|
23
24
|
import { transitions as r } from "../../utilities/misc/transitions.js";
|
|
24
|
-
import { pageText as
|
|
25
|
-
import { overlaySurfaceIsolation as
|
|
26
|
-
import { useDialogStack as
|
|
27
|
-
import { registerTopLayerHost as
|
|
28
|
-
import { useBodyScrollLock as
|
|
29
|
-
import { useRefusedCloseAnnouncement as
|
|
30
|
-
import { provideOverlaySubmitGuard as
|
|
31
|
-
import { ownCompleteListener as
|
|
32
|
-
import { provideOverlayStandIn as
|
|
33
|
-
import { provideStandInClose as
|
|
34
|
-
import { Fragment as
|
|
25
|
+
import { pageText as De } from "../../utilities/misc/pageText.js";
|
|
26
|
+
import { overlaySurfaceIsolation as Oe } from "../../utils/overlaySurfaceIsolation.js";
|
|
27
|
+
import { useDialogStack as ke } from "./useDialogStack.js";
|
|
28
|
+
import { registerTopLayerHost as Ae } from "../../composables/useTopLayer.js";
|
|
29
|
+
import { useBodyScrollLock as je } from "../../composables/useBodyScrollLock.js";
|
|
30
|
+
import { useRefusedCloseAnnouncement as Me } from "../../composables/useRefusedCloseAnnouncement.js";
|
|
31
|
+
import { provideOverlaySubmitGuard as Ne } from "../../composables/formSubmitLock.js";
|
|
32
|
+
import { ownCompleteListener as Pe, useOverlayActions as Fe } from "./overlayActions.js";
|
|
33
|
+
import { provideOverlayStandIn as Ie, rootElementOf as Le, routeNativeCommand as Re, useOverlayHost as ze } from "../../composables/overlayRegistry.js";
|
|
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 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";
|
|
35
36
|
// src/components/BbDialog/BbDialog.vue?vue&type=script&setup=true&lang.ts
|
|
36
|
-
var
|
|
37
|
+
var it = [
|
|
37
38
|
"id",
|
|
38
39
|
"aria-describedby",
|
|
39
40
|
"aria-labelledby",
|
|
40
41
|
"inert"
|
|
41
|
-
],
|
|
42
|
+
], at = { class: "bb-dialog__body-content" }, ot = {
|
|
42
43
|
"aria-live": "polite",
|
|
43
44
|
class: "bb-sr-only"
|
|
44
|
-
},
|
|
45
|
+
}, st = 4, _ = /*@__PURE__*/ qe({
|
|
45
46
|
inheritAttrs: !1,
|
|
46
47
|
__name: "BbDialog",
|
|
47
48
|
props: /*@__PURE__*/ c({
|
|
@@ -128,179 +129,194 @@ var $e = [
|
|
|
128
129
|
"shown",
|
|
129
130
|
"hidden"
|
|
130
131
|
], ["update:modelValue", "update:snap"]),
|
|
131
|
-
setup(r, { emit:
|
|
132
|
-
let c =
|
|
133
|
-
process.env.NODE_ENV !== "production" &&
|
|
134
|
-
let { t:
|
|
132
|
+
setup(r, { emit: qe }) {
|
|
133
|
+
let c = tt(r, "modelValue"), _ = tt(r, "snap"), v = r, y = qe, b = nt();
|
|
134
|
+
process.env.NODE_ENV !== "production" && de("BbDialog", ue("BbDialog"));
|
|
135
|
+
let { t: x } = ae(), { isMobile: S } = se(), { resolve: ct } = ce(), C = ge("BbDialog", v, {
|
|
135
136
|
adaptive: !0,
|
|
136
137
|
fullscreen: !1
|
|
137
|
-
}),
|
|
138
|
-
|
|
139
|
-
let
|
|
140
|
-
id: () =>
|
|
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,
|
|
141
142
|
model: c,
|
|
142
|
-
element: () =>
|
|
143
|
-
defaultData: () =>
|
|
144
|
-
onComplete: () =>
|
|
143
|
+
element: () => Le(ut),
|
|
144
|
+
defaultData: () => v.defaultData,
|
|
145
|
+
onComplete: () => Pe(ut)
|
|
145
146
|
});
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
|
|
147
|
+
Ie();
|
|
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({
|
|
149
150
|
component: "BbDialog",
|
|
150
|
-
enabled: () => !!
|
|
151
|
-
key: () =>
|
|
152
|
-
replace: () => !!
|
|
153
|
-
id: () =>
|
|
151
|
+
enabled: () => !!v.navigation && !E.onDemand,
|
|
152
|
+
key: () => v.queryKey,
|
|
153
|
+
replace: () => !!v.replace,
|
|
154
|
+
id: () => v.id,
|
|
154
155
|
model: c,
|
|
155
156
|
requestClose: () => {
|
|
156
|
-
if (
|
|
157
|
-
let e =
|
|
157
|
+
if (T.value === "dialog") return en("escape");
|
|
158
|
+
let e = dt();
|
|
158
159
|
return e === null ? (Q("escape"), !0) : e;
|
|
159
160
|
}
|
|
160
161
|
});
|
|
161
|
-
let
|
|
162
|
-
|
|
162
|
+
let ft = () => {
|
|
163
|
+
E.afterHidden(), y("hidden");
|
|
163
164
|
};
|
|
164
|
-
|
|
165
|
-
c.value || (
|
|
165
|
+
h([() => C.adaptive, S], () => {
|
|
166
|
+
c.value || (T.value = w());
|
|
166
167
|
});
|
|
167
|
-
let
|
|
168
|
+
let D = et(), O = be({
|
|
168
169
|
component: "BbDialog",
|
|
169
|
-
attrs:
|
|
170
|
-
props:
|
|
171
|
-
parts:
|
|
172
|
-
states:
|
|
170
|
+
attrs: D,
|
|
171
|
+
props: v,
|
|
172
|
+
parts: ye.parts,
|
|
173
|
+
states: ye.states,
|
|
173
174
|
active: {
|
|
174
175
|
open: () => c.value,
|
|
175
|
-
fullscreen: () =>
|
|
176
|
+
fullscreen: () => F.value
|
|
176
177
|
}
|
|
177
|
-
}),
|
|
178
|
+
}), pt = i(() => l({
|
|
178
179
|
class: "bb-dialog__close",
|
|
179
180
|
onClick: $
|
|
180
|
-
},
|
|
181
|
-
id:
|
|
182
|
-
description:
|
|
183
|
-
preventClose:
|
|
184
|
-
eager:
|
|
185
|
-
focusTarget:
|
|
186
|
-
fullscreen:
|
|
187
|
-
hideClose:
|
|
188
|
-
persistent:
|
|
189
|
-
stack:
|
|
190
|
-
title:
|
|
191
|
-
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,
|
|
192
193
|
side: "bottom",
|
|
193
194
|
draggable: !0,
|
|
194
195
|
size: "auto",
|
|
195
|
-
snapPoints:
|
|
196
|
-
snap:
|
|
197
|
-
ok:
|
|
198
|
-
cancel:
|
|
199
|
-
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,
|
|
200
201
|
"onUpdate:snap": (e) => {
|
|
201
|
-
|
|
202
|
+
_.value = e;
|
|
202
203
|
},
|
|
203
|
-
...
|
|
204
|
-
})),
|
|
205
|
-
let { class: e, ...t } =
|
|
206
|
-
return l(
|
|
207
|
-
}),
|
|
208
|
-
|
|
209
|
-
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++;
|
|
210
211
|
}, { flush: "sync" });
|
|
211
|
-
let
|
|
212
|
+
let F = i(() => C.fullscreen === !0 || C.fullscreen === "mobile" && S.value), yt = () => typeof document < "u", bt = Ne(), xt = bt.saving, I = Fe({
|
|
212
213
|
component: "BbDialog",
|
|
213
|
-
props: () =>
|
|
214
|
-
surface:
|
|
215
|
-
complete:
|
|
216
|
-
data: () =>
|
|
214
|
+
props: () => v,
|
|
215
|
+
surface: bt,
|
|
216
|
+
complete: E.complete,
|
|
217
|
+
data: () => E.data.value,
|
|
217
218
|
close: () => $(),
|
|
219
|
+
closeLocked: () => L.value,
|
|
218
220
|
block: "bb-dialog"
|
|
219
|
-
}),
|
|
220
|
-
|
|
221
|
-
},
|
|
222
|
-
|
|
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 = {
|
|
223
225
|
startX: e.clientX,
|
|
224
226
|
startY: e.clientY,
|
|
225
227
|
startedOnBackdrop: e.target === e.currentTarget
|
|
226
228
|
};
|
|
227
|
-
},
|
|
228
|
-
let t =
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
|
|
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;
|
|
233
235
|
}, e);
|
|
234
|
-
},
|
|
235
|
-
let e = { element: () =>
|
|
236
|
-
|
|
237
|
-
},
|
|
238
|
-
re(
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
if (e.key === "Escape" && !
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
let
|
|
246
|
-
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
},
|
|
250
|
-
if (!
|
|
251
|
-
let e =
|
|
252
|
-
return !e || !e.includes(
|
|
253
|
-
}),
|
|
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 });
|
|
239
|
+
}, At = () => {
|
|
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]) => {
|
|
254
256
|
t !== -1 && (e.value = ee && e.value || t > 0);
|
|
255
|
-
}, { immediate: !0 }),
|
|
256
|
-
|
|
257
|
-
let
|
|
258
|
-
|
|
259
|
-
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) => {
|
|
260
262
|
if (e) {
|
|
261
|
-
|
|
262
|
-
let e =
|
|
263
|
-
await
|
|
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");
|
|
264
266
|
} else {
|
|
265
|
-
|
|
266
|
-
let e =
|
|
267
|
-
if (await
|
|
268
|
-
|
|
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();
|
|
269
271
|
}
|
|
270
|
-
},
|
|
271
|
-
process.env.NODE_ENV !== "production" &&
|
|
272
|
-
|
|
272
|
+
}, Zt = () => {
|
|
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>.`);
|
|
273
275
|
});
|
|
274
276
|
};
|
|
275
|
-
|
|
276
|
-
e && (
|
|
277
|
-
}),
|
|
278
|
-
c.value &&
|
|
279
|
-
}),
|
|
280
|
-
e &&
|
|
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
|
+
e && Zt();
|
|
281
283
|
}, {
|
|
282
284
|
immediate: !0,
|
|
283
285
|
flush: "post"
|
|
284
|
-
}),
|
|
285
|
-
|
|
286
|
+
}), Xe(() => {
|
|
287
|
+
fe(k.value, {
|
|
288
|
+
id: K,
|
|
289
|
+
openClass: "bb-dialog--open",
|
|
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;
|
|
286
294
|
});
|
|
287
|
-
let
|
|
288
|
-
if (e.preventDefault(), !
|
|
289
|
-
},
|
|
290
|
-
|
|
295
|
+
let Qt = i(() => F.value ? "100%" : e(ct(v.size), lt.value)), $t = (e, t = "escape") => {
|
|
296
|
+
if (e.preventDefault(), !en(t)) return !1;
|
|
297
|
+
}, en = (e) => Ct.value ? (V(300), !1) : (Q(e), !0), Q = (e) => {
|
|
298
|
+
E.record(e), c.value = !1;
|
|
291
299
|
}, $ = () => {
|
|
292
|
-
|
|
293
|
-
},
|
|
294
|
-
show:
|
|
300
|
+
L.value ? V(300) : Q("close");
|
|
301
|
+
}, tn = (e) => Re(e, {
|
|
302
|
+
show: E.show,
|
|
295
303
|
close: $,
|
|
296
304
|
open: () => c.value
|
|
297
305
|
});
|
|
298
|
-
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({
|
|
299
315
|
key: 0,
|
|
300
316
|
modelValue: c.value,
|
|
301
317
|
"onUpdate:modelValue": t[0] ||= (e) => c.value = e,
|
|
302
318
|
class: "bb-dialog__sheet",
|
|
303
|
-
pt:
|
|
319
|
+
pt: m(O).forward({
|
|
304
320
|
root: "root",
|
|
305
321
|
header: "header",
|
|
306
322
|
title: "title",
|
|
@@ -309,134 +325,134 @@ var $e = [
|
|
|
309
325
|
footer: "footer",
|
|
310
326
|
close: "close",
|
|
311
327
|
sheet: "root"
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
onHidden:
|
|
315
|
-
onHide: t[1] ||= (e) =>
|
|
316
|
-
onShow: t[2] ||= (e) =>
|
|
317
|
-
onShown: t[3] ||= (e) =>
|
|
318
|
-
}),
|
|
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")
|
|
334
|
+
}), We({ _: 2 }, [
|
|
319
335
|
e.$slots.default ? {
|
|
320
336
|
name: "default",
|
|
321
|
-
fn:
|
|
322
|
-
complete:
|
|
323
|
-
data:
|
|
324
|
-
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
|
|
325
341
|
}))]),
|
|
326
342
|
key: "0"
|
|
327
343
|
} : void 0,
|
|
328
344
|
e.$slots.header ? {
|
|
329
345
|
name: "header",
|
|
330
|
-
fn:
|
|
331
|
-
complete:
|
|
332
|
-
data:
|
|
333
|
-
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
|
|
334
350
|
}))]),
|
|
335
351
|
key: "1"
|
|
336
352
|
} : void 0,
|
|
337
353
|
e.$slots.title ? {
|
|
338
354
|
name: "title",
|
|
339
|
-
fn:
|
|
355
|
+
fn: g((t) => [f(e.$slots, "title", l(t, { data: m(E).data.value }))]),
|
|
340
356
|
key: "2"
|
|
341
357
|
} : void 0,
|
|
342
358
|
e.$slots.description ? {
|
|
343
359
|
name: "description",
|
|
344
|
-
fn:
|
|
360
|
+
fn: g((t) => [f(e.$slots, "description", l(t, { data: m(E).data.value }))]),
|
|
345
361
|
key: "3"
|
|
346
362
|
} : void 0,
|
|
347
363
|
e.$slots.footer ? {
|
|
348
364
|
name: "footer",
|
|
349
|
-
fn:
|
|
350
|
-
complete:
|
|
351
|
-
data:
|
|
352
|
-
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
|
|
353
369
|
}))]),
|
|
354
370
|
key: "4"
|
|
355
371
|
} : void 0
|
|
356
|
-
]), 1040, ["modelValue", "pt"])) : (
|
|
372
|
+
]), 1040, ["modelValue", "pt"])) : (u(), s("dialog", l({
|
|
357
373
|
key: 1,
|
|
358
|
-
id:
|
|
374
|
+
id: m(E).domId.value || void 0,
|
|
359
375
|
ref_key: "dialog",
|
|
360
|
-
ref:
|
|
361
|
-
"aria-describedby":
|
|
362
|
-
"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,
|
|
363
379
|
class: ["bb-dialog", {
|
|
364
380
|
"bb-dialog--open": c.value,
|
|
365
|
-
"bb-dialog--visible":
|
|
366
|
-
"bb-dialog--fullscreen":
|
|
367
|
-
"bb-dialog--mobile":
|
|
368
|
-
"bb-dialog--deny-close":
|
|
369
|
-
"bb-dialog--covered":
|
|
370
|
-
"bb-dialog--above":
|
|
371
|
-
"bb-dialog--covering":
|
|
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
|
|
372
388
|
}],
|
|
373
|
-
inert: !c.value && !
|
|
389
|
+
inert: !c.value && !G.value || J.value,
|
|
374
390
|
style: {
|
|
375
|
-
"--max-width":
|
|
376
|
-
...
|
|
377
|
-
"--transition-duration": `${
|
|
391
|
+
"--max-width": Qt.value,
|
|
392
|
+
...Yt.value,
|
|
393
|
+
"--transition-duration": `${v.transitionDuration}ms`
|
|
378
394
|
}
|
|
379
|
-
},
|
|
380
|
-
onCancel:
|
|
381
|
-
onCommand:
|
|
382
|
-
onClick:
|
|
383
|
-
onPointercancel:
|
|
384
|
-
onPointerdown:
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
key: `body-1-${
|
|
395
|
+
}, $e(m(Oe), !0), {
|
|
396
|
+
onCancel: rt($t, ["self"]),
|
|
397
|
+
onCommand: tn,
|
|
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}`,
|
|
388
404
|
class: "bb-dialog__header"
|
|
389
|
-
},
|
|
405
|
+
}, m(O).header), [f(e.$slots, "header", {
|
|
390
406
|
close: $,
|
|
391
|
-
complete:
|
|
392
|
-
data:
|
|
393
|
-
reset:
|
|
407
|
+
complete: m(E).complete,
|
|
408
|
+
data: m(E).data.value,
|
|
409
|
+
reset: m(E).reset,
|
|
394
410
|
title: r.title,
|
|
395
|
-
titleId:
|
|
411
|
+
titleId: A
|
|
396
412
|
}, () => [
|
|
397
|
-
|
|
413
|
+
M() ? (u(), s("span", l({
|
|
398
414
|
key: 0,
|
|
399
|
-
id:
|
|
415
|
+
id: A,
|
|
400
416
|
class: "bb-dialog__title"
|
|
401
|
-
},
|
|
402
|
-
data:
|
|
417
|
+
}, m(O).title), [f(e.$slots, "title", {
|
|
418
|
+
data: m(E).data.value,
|
|
403
419
|
text: r.title
|
|
404
|
-
}, () => [
|
|
405
|
-
|
|
420
|
+
}, () => [Ge(p(r.title), 1)])], 16)) : o("", !0),
|
|
421
|
+
j() ? (u(), s("p", l({
|
|
406
422
|
key: 1,
|
|
407
|
-
id:
|
|
423
|
+
id: gt,
|
|
408
424
|
class: "bb-dialog__description"
|
|
409
|
-
},
|
|
410
|
-
data:
|
|
425
|
+
}, m(O).description), [f(e.$slots, "description", {
|
|
426
|
+
data: m(E).data.value,
|
|
411
427
|
text: r.description
|
|
412
|
-
}, () => [
|
|
413
|
-
r.hideClose ? o("", !0) : (
|
|
428
|
+
}, () => [Ge(p(r.description), 1)])], 16)) : o("", !0),
|
|
429
|
+
r.hideClose ? o("", !0) : (u(), a(we, l({
|
|
414
430
|
key: 2,
|
|
415
|
-
"aria-label":
|
|
416
|
-
},
|
|
431
|
+
"aria-label": m(x)("dialog.closeLabel").value
|
|
432
|
+
}, pt.value), null, 16, ["aria-label"]))
|
|
417
433
|
])], 16)) : o("", !0),
|
|
418
|
-
(
|
|
419
|
-
key: `body-2-${
|
|
434
|
+
(u(), s("div", l({
|
|
435
|
+
key: `body-2-${P.value}`,
|
|
420
436
|
class: "bb-dialog__content scrollbar-border"
|
|
421
|
-
},
|
|
437
|
+
}, m(O).content), [Ue("div", at, [!_t() && !e.$slots.header && !r.hideClose ? (u(), a(we, l({
|
|
422
438
|
key: 0,
|
|
423
|
-
"aria-label":
|
|
424
|
-
},
|
|
439
|
+
"aria-label": m(x)("dialog.closeLabel").value
|
|
440
|
+
}, pt.value), null, 16, ["aria-label"])) : o("", !0), f(e.$slots, "default", {
|
|
425
441
|
close: $,
|
|
426
|
-
complete:
|
|
427
|
-
data:
|
|
428
|
-
reset:
|
|
442
|
+
complete: m(E).complete,
|
|
443
|
+
data: m(E).data.value,
|
|
444
|
+
reset: m(E).reset
|
|
429
445
|
})])], 16)),
|
|
430
|
-
(
|
|
431
|
-
key: `body-3-${
|
|
446
|
+
(u(), s("div", l({
|
|
447
|
+
key: `body-3-${P.value}`,
|
|
432
448
|
class: "bb-dialog__footer"
|
|
433
|
-
},
|
|
449
|
+
}, m(O).footer), [f(e.$slots, "footer", {
|
|
434
450
|
close: $,
|
|
435
|
-
complete:
|
|
436
|
-
data:
|
|
437
|
-
reset:
|
|
438
|
-
}, () => [
|
|
439
|
-
], 64)) : o("", !0),
|
|
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));
|
|
440
456
|
}
|
|
441
457
|
});
|
|
442
|
-
export {
|
|
458
|
+
export { _ as default };
|