bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73
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 +2 -2
- package/bin/cli.mjs +9 -3
- package/dist/ai/BbAccordion.md +38 -19
- package/dist/ai/BbBadge.md +25 -22
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +32 -27
- package/dist/ai/BbCalendar.md +1 -0
- package/dist/ai/BbCarousel.md +6 -4
- package/dist/ai/BbCheckboxGroup.md +2 -1
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbConfirm.md +65 -81
- package/dist/ai/BbConfirmPortal.md +2 -2
- package/dist/ai/BbDatePicker.md +1 -6
- package/dist/ai/BbDatePickerInput.md +2 -2
- package/dist/ai/BbDialog.md +233 -164
- package/dist/ai/BbDropdown.md +52 -16
- package/dist/ai/BbDropdownButton.md +11 -12
- package/dist/ai/BbDropzone.md +12 -8
- package/dist/ai/BbForm.md +100 -13
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbIcon.md +1 -1
- package/dist/ai/BbIndicator.md +17 -15
- package/dist/ai/BbNumberInput.md +7 -5
- package/dist/ai/BbOffCanvas.md +29 -7
- package/dist/ai/BbPagination.md +2 -2
- package/dist/ai/BbPopover.md +15 -9
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +29 -7
- package/dist/ai/BbRating.md +8 -7
- package/dist/ai/BbSelect.md +29 -8
- package/dist/ai/BbSelectPopover.md +9 -3
- package/dist/ai/BbSlider.md +12 -8
- package/dist/ai/BbSpinner.md +3 -2
- package/dist/ai/BbSwitch.md +3 -3
- package/dist/ai/BbSwitchGroup.md +7 -6
- package/dist/ai/BbTable.md +205 -82
- package/dist/ai/BbTabs.md +29 -4
- package/dist/ai/BbTag.md +1 -1
- package/dist/ai/BbTextInput.md +7 -5
- package/dist/ai/BbTextarea.md +4 -3
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTooltip.md +22 -17
- package/dist/ai/BbTree.md +49 -24
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/changelog.json +242 -9
- package/dist/ai/components.json +52 -51
- package/dist/ai/composables/useBbDialog.md +5 -8
- package/dist/ai/composables/useBbForm.md +3 -0
- package/dist/ai/composables/useConfirm.md +65 -56
- package/dist/ai/composables/useToast.md +2 -1
- package/dist/ai/guides/agent-contract.md +3 -3
- package/dist/ai/guides/app-layout.md +3 -2
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/floating-bottom-panel.md +3 -2
- package/dist/ai/guides/icons-policy.md +7 -5
- package/dist/ai/guides/inertia-helpers.md +35 -30
- package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
- package/dist/ai/guides/migration/adoption-checklist.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +12 -1
- package/dist/ai/guides/migration/components/bb-button.md +24 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
- package/dist/ai/guides/migration/components/bb-toast.md +11 -0
- package/dist/ai/guides/migration/components/use-confirm.md +72 -26
- package/dist/ai/guides/migration/v2-to-v3.md +52 -10
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
- package/dist/ai/guides/options-items-playbook.md +4 -3
- package/dist/ai/guides/passthrough.md +2 -2
- package/dist/ai/helpers/inertia/manifest.json +28 -15
- package/dist/ai/helpers/inertia/messages.ts +3 -3
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
- package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
- package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +3 -3
- package/dist/ai/manifest/components/BbAccordion.json +8 -5
- package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
- package/dist/ai/manifest/components/BbBadge.json +8 -7
- package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +5 -6
- package/dist/ai/manifest/components/BbButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbButton.tree.json +24 -7
- package/dist/ai/manifest/components/BbCalendar.json +2 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.json +1 -1
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +2 -2
- package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
- package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
- package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
- package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDialog.json +6 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
- package/dist/ai/manifest/components/BbDropdown.json +9 -8
- package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
- package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
- package/dist/ai/manifest/components/BbForm.json +3 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
- package/dist/ai/manifest/components/BbRating.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +16 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
- package/dist/ai/manifest/components/BbSwitch.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
- package/dist/ai/manifest/components/BbTable.json +15 -14
- package/dist/ai/manifest/components/BbTable.tree.json +2 -0
- package/dist/ai/manifest/components/BbTabs.json +3 -3
- package/dist/ai/manifest/components/BbTabsList.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +1 -1
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbToast.removed.json +2 -1
- package/dist/ai/manifest/components/BbTree.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
- package/dist/ai/manifest/index.json +4 -4
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +9 -9
- package/dist/ai/manifest/types.api.json +6 -5
- package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
- package/dist/ai/recipes/inertia/onboarding.md +23 -12
- package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
- package/dist/ai/recipes/inertia/record-form.md +12 -8
- package/dist/ai/recipes/inertia/records-workspace.md +14 -7
- package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
- package/dist/ai/recipes/inertia/upload-center.md +17 -9
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
- package/dist/ai/recipes/nuxt/onboarding.md +5 -4
- package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
- package/dist/ai/recipes/nuxt/record-form.md +14 -10
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
- package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
- package/dist/ai/recipes/nuxt/upload-center.md +17 -9
- package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
- package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
- package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
- package/dist/ai/recipes/vue/onboarding.md +5 -4
- package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
- package/dist/ai/recipes/vue/record-form.md +14 -10
- package/dist/ai/recipes/vue/records-workspace.md +14 -7
- package/dist/ai/recipes/vue/settings-workspace.md +70 -60
- package/dist/ai/recipes/vue/upload-center.md +17 -9
- package/dist/ai/recipes/vue/wizard-form.md +4 -4
- package/dist/ai/source/BbAccordion.md +50 -16
- package/dist/ai/source/BbBadge.md +420 -26
- package/dist/ai/source/BbBadgeButton.md +378 -12
- package/dist/ai/source/BbButton.md +205 -55
- package/dist/ai/source/BbCalendar.md +5 -0
- package/dist/ai/source/BbCheckboxGroup.md +38 -13
- package/dist/ai/source/BbConfigScope.md +19 -2
- package/dist/ai/source/BbConfirm.md +74 -80
- package/dist/ai/source/BbConfirmPortal.md +6 -6
- package/dist/ai/source/BbDatePicker.md +9 -2
- package/dist/ai/source/BbDatePickerInput.md +3 -1
- package/dist/ai/source/BbDialog.md +53 -2
- package/dist/ai/source/BbDropdown.md +350 -98
- package/dist/ai/source/BbDropdownButton.md +20 -12
- package/dist/ai/source/BbDropdownGroup.md +136 -58
- package/dist/ai/source/BbForm.md +152 -11
- package/dist/ai/source/BbOffCanvas.md +53 -2
- package/dist/ai/source/BbPagination.md +1 -1
- package/dist/ai/source/BbRadioGroup.md +72 -10
- package/dist/ai/source/BbRating.md +30 -22
- package/dist/ai/source/BbSelect.md +11 -1
- package/dist/ai/source/BbSelectPopover.md +105 -34
- package/dist/ai/source/BbSwitch.md +23 -8
- package/dist/ai/source/BbSwitchGroup.md +67 -21
- package/dist/ai/source/BbTable.md +359 -48
- package/dist/ai/source/BbTabs.md +6 -0
- package/dist/ai/source/BbTabsList.md +10 -0
- package/dist/ai/source/BbTabsPanels.md +6 -0
- package/dist/ai/source/BbTabsRoot.md +6 -0
- package/dist/ai/source/BbTree.md +14 -4
- package/dist/ai/source/CommonFieldInput.md +2 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbAccordion/types.d.ts +21 -7
- package/dist/components/BbAccordion/types.js +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
- package/dist/components/BbBadge/types.d.ts +15 -12
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
- package/dist/components/BbButton/types.d.ts +7 -6
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbCalendar/types.d.ts +5 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
- package/dist/components/BbCalendar/useDayGrid.js +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
- package/dist/components/BbConfirm/types.d.ts +5 -5
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbDatePicker/types.d.ts +5 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDatePickerInput/types.d.ts +2 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
- package/dist/components/BbDialog/overlayActions.js +94 -0
- package/dist/components/BbDialog/types.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
- package/dist/components/BbDropdown/dropdownHandle.js +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +58 -48
- package/dist/components/BbDropdown/types.d.ts +107 -48
- package/dist/components/BbDropdown/types.js +2 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbDropdownButton/types.d.ts +2 -4
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
- package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
- package/dist/components/BbForm/recognizeValidation.js +55 -0
- package/dist/components/BbForm/validationError.d.ts +10 -0
- package/dist/components/BbForm/validationError.js +11 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
- package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
- package/dist/components/BbRadioGroup/types.d.ts +9 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
- package/dist/components/BbRating/types.d.ts +3 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/BbSelect/types.d.ts +8 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
- package/dist/components/BbSelectPopover/types.d.ts +10 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
- package/dist/components/BbSwitchGroup/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
- package/dist/components/BbTable/BbTableDataRow.js +2 -1
- package/dist/components/BbTable/BbTableRowMenu.js +36 -0
- package/dist/components/BbTable/types.d.ts +32 -17
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbTabs/types.d.ts +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/BbTree/types.d.ts +8 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/composables/formSubmitLock.js +15 -8
- package/dist/composables/overlayRegistry.d.ts +5 -0
- package/dist/composables/overlayRegistry.js +154 -148
- package/dist/composables/useBbDropdown.d.ts +8 -0
- package/dist/composables/useBbDropdown.js +3 -1
- package/dist/composables/useBbTabs.js +138 -138
- package/dist/composables/useConfirm.d.ts +63 -52
- package/dist/composables/useConfirm.js +22 -18
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +7 -7
- package/dist/directives/bbDropdown.js +21 -14
- package/dist/directives/bbTooltip.d.ts +3 -3
- package/dist/directives/createPopoverDirective.js +57 -35
- package/dist/i18n/locales/ar.json +5 -1
- package/dist/i18n/locales/cs.json +5 -1
- package/dist/i18n/locales/da.json +5 -1
- package/dist/i18n/locales/de-CH.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/el.json +5 -1
- package/dist/i18n/locales/en-GB.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/es-MX.json +5 -1
- package/dist/i18n/locales/es.json +5 -1
- package/dist/i18n/locales/fa.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/he.json +5 -1
- package/dist/i18n/locales/hu.json +5 -1
- package/dist/i18n/locales/it.json +5 -1
- package/dist/i18n/locales/ja.json +5 -1
- package/dist/i18n/locales/ko.json +5 -1
- package/dist/i18n/locales/nb.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/pt-BR.json +5 -1
- package/dist/i18n/locales/pt-PT.json +5 -1
- package/dist/i18n/locales/ro.json +5 -1
- package/dist/i18n/locales/ru.json +5 -1
- package/dist/i18n/locales/sv.json +5 -1
- package/dist/i18n/locales/tr.json +5 -1
- package/dist/i18n/locales/uk.json +5 -1
- package/dist/i18n/locales/zh-CN.json +5 -1
- package/dist/i18n/locales/zh-HK.json +5 -1
- package/dist/i18n/locales/zh-TW.json +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/llms-full.txt +1997 -1151
- package/dist/llms-medium.txt +21 -18
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +5 -1
- package/dist/plugin.js +17 -40
- package/dist/pluginCore.js +30 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +26 -5
- package/dist/types/ActionButton.js +11 -0
- package/dist/types/ConfigDefaults.d.ts +34 -3
- package/dist/types/ConfigDefaults.js +14 -8
- package/dist/types/ItemPath.d.ts +33 -4
- package/dist/types/ptComponentMap.d.ts +1 -1
- package/dist/utilities/functions/clickCount.js +14 -0
- package/dist/utilities/functions/hash.js +90 -3
- package/dist/utilities/functions/isEqual.js +61 -3
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +0 -1
- package/llms.txt +2 -2
- package/package.json +12 -2
- package/scripts/README.md +43 -39
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/eslint-disable.mjs +5 -3
- package/scripts/lib/eslint-plugin.d.ts +2 -0
- package/scripts/lib/eslint-plugin.mjs +213 -1
- package/scripts/lib/helpers-add.mjs +21 -2
- package/scripts/lib/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +180 -5
- package/scripts/lib/renamed-item-field.mjs +4 -1
- package/scripts/lib/tab-links.mjs +4 -1
- package/scripts/lib/tree-default-expandable.mjs +53 -0
- package/scripts/lib/validate-bb-markup.mjs +536 -52
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import { parseSize as e } from "../../utilities/functions/parseSize.js";
|
|
2
|
-
import { escapeStackDepth as t, insertEscapeEntry as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useLocale as
|
|
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 { animationsSettled as
|
|
13
|
-
import { useConfigDefaults as
|
|
14
|
-
import { PANEL_SIZES as
|
|
15
|
-
import { BB_DIALOG_PT as
|
|
16
|
-
import { usePassthrough as
|
|
17
|
-
import { firstFocusableMatch as
|
|
18
|
-
import { withoutPt as
|
|
19
|
-
import { BB_OFF_CANVAS_PT as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { provideHostCloseLabel as
|
|
23
|
-
import { transitions as
|
|
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 {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
2
|
+
import { escapeStackDepth as t, insertEscapeEntry as ee, isTopEscapeEntry as te, pushEscapeEntry as ne, removeEscapeEntry as re } from "../../utils/overlayEscapeStack.js";
|
|
3
|
+
import { useId as ie } from "../../composables/useId.js";
|
|
4
|
+
import { useLocale as ae } from "../../composables/useLocale.js";
|
|
5
|
+
import { useLogger as n } from "../../composables/useLogger.js";
|
|
6
|
+
import { useMobile as oe } from "../../composables/useMobile.js";
|
|
7
|
+
import { useBreakpoint as se } from "../../composables/useBreakpoint.js";
|
|
8
|
+
import { useUntil as ce } from "../../composables/useUntil.js";
|
|
9
|
+
import { removedPropsFor as le } from "../../deprecation/removedProps.js";
|
|
10
|
+
import { warnRemovedAttrs as ue } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
11
|
+
import { wait as de } from "../../utilities/functions/wait.js";
|
|
12
|
+
import { animationsSettled as fe } from "../../utilities/functions/animationsSettled.js";
|
|
13
|
+
import { useConfigDefaults as pe, useSizeMap as me } from "../../composables/useConfigDefaults.js";
|
|
14
|
+
import { PANEL_SIZES as he } from "../../types/SizeScale.js";
|
|
15
|
+
import { BB_DIALOG_PT as ge } from "./types.js";
|
|
16
|
+
import { usePassthrough as _e } from "../../composables/usePassthrough.js";
|
|
17
|
+
import { firstFocusableMatch as ve } from "../../utils/focusVisibility.js";
|
|
18
|
+
import { withoutPt as ye } from "../../utils/passthrough.js";
|
|
19
|
+
import { BB_OFF_CANVAS_PT as be } from "../BbOffCanvas/types.js";
|
|
20
|
+
import xe from "../CloseIcon/CloseButton.vue.js";
|
|
21
|
+
import Se from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
22
|
+
import { provideHostCloseLabel as Ce } from "../BbOffCanvas/hostCloseLabel.js";
|
|
23
|
+
import { transitions as r } from "../../utilities/misc/transitions.js";
|
|
24
|
+
import { pageText as we } from "../../utilities/misc/pageText.js";
|
|
25
|
+
import { overlaySurfaceIsolation as Te } from "../../utils/overlaySurfaceIsolation.js";
|
|
26
|
+
import { useDialogStack as Ee } from "./useDialogStack.js";
|
|
27
|
+
import { registerTopLayerHost as De } from "../../composables/useTopLayer.js";
|
|
28
|
+
import { useBodyScrollLock as Oe } from "../../composables/useBodyScrollLock.js";
|
|
29
|
+
import { useRefusedCloseAnnouncement as ke } from "../../composables/useRefusedCloseAnnouncement.js";
|
|
30
|
+
import { provideOverlaySubmitGuard as Ae } from "../../composables/formSubmitLock.js";
|
|
31
|
+
import { ownCompleteListener as je, useOverlayActions as Me } from "./overlayActions.js";
|
|
32
|
+
import { provideOverlayStandIn as Ne, rootElementOf as Pe, routeNativeCommand as Fe, useOverlayHost as Ie } from "../../composables/overlayRegistry.js";
|
|
33
|
+
import { provideStandInClose as Le, useOverlayNavigation as Re } from "../../composables/useOverlayNavigation.js";
|
|
34
|
+
import { Fragment as ze, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as Be, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineComponent as We, getCurrentInstance as Ge, mergeModels as c, mergeProps as l, nextTick as u, onBeforeUnmount as Ke, onDeactivated as qe, onMounted as Je, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, toHandlers as Ye, unref as h, useAttrs as Xe, useModel as g, useSlots as Ze, watch as _, withCtx as v, withModifiers as Qe } from "vue";
|
|
34
35
|
// src/components/BbDialog/BbDialog.vue?vue&type=script&setup=true&lang.ts
|
|
35
|
-
var
|
|
36
|
+
var $e = [
|
|
36
37
|
"id",
|
|
37
38
|
"aria-describedby",
|
|
38
39
|
"aria-labelledby",
|
|
39
40
|
"inert"
|
|
40
|
-
],
|
|
41
|
+
], et = { class: "bb-dialog__body-content" }, tt = {
|
|
41
42
|
"aria-live": "polite",
|
|
42
43
|
class: "bb-sr-only"
|
|
43
|
-
},
|
|
44
|
+
}, nt = 4, y = /*@__PURE__*/ We({
|
|
44
45
|
inheritAttrs: !1,
|
|
45
46
|
__name: "BbDialog",
|
|
46
|
-
props: /*@__PURE__*/
|
|
47
|
+
props: /*@__PURE__*/ c({
|
|
47
48
|
"pt:root": {},
|
|
48
49
|
"pt:root:open": {},
|
|
49
50
|
"pt:root:fullscreen": {},
|
|
@@ -95,8 +96,22 @@ var Je = [
|
|
|
95
96
|
navigation: { type: Boolean },
|
|
96
97
|
queryKey: { default: "dialog" },
|
|
97
98
|
replace: { type: Boolean },
|
|
99
|
+
ok: { type: [
|
|
100
|
+
Boolean,
|
|
101
|
+
String,
|
|
102
|
+
Object
|
|
103
|
+
] },
|
|
104
|
+
cancel: { type: [
|
|
105
|
+
Boolean,
|
|
106
|
+
String,
|
|
107
|
+
Object
|
|
108
|
+
] },
|
|
109
|
+
actions: {
|
|
110
|
+
type: [Boolean, Array],
|
|
111
|
+
default: void 0
|
|
112
|
+
},
|
|
98
113
|
title: {},
|
|
99
|
-
transitionDuration: { default:
|
|
114
|
+
transitionDuration: { default: r.medium }
|
|
100
115
|
}, {
|
|
101
116
|
modelValue: {
|
|
102
117
|
type: Boolean,
|
|
@@ -106,173 +121,186 @@ var Je = [
|
|
|
106
121
|
snap: {},
|
|
107
122
|
snapModifiers: {}
|
|
108
123
|
}),
|
|
109
|
-
emits: /*@__PURE__*/
|
|
124
|
+
emits: /*@__PURE__*/ c([
|
|
125
|
+
"complete",
|
|
110
126
|
"show",
|
|
111
127
|
"hide",
|
|
112
128
|
"shown",
|
|
113
129
|
"hidden"
|
|
114
130
|
], ["update:modelValue", "update:snap"]),
|
|
115
|
-
setup(
|
|
116
|
-
let
|
|
117
|
-
process.env.NODE_ENV !== "production" &&
|
|
118
|
-
let { t:
|
|
131
|
+
setup(r, { emit: We }) {
|
|
132
|
+
let c = g(r, "modelValue"), y = g(r, "snap"), b = r, x = We, S = Ze();
|
|
133
|
+
process.env.NODE_ENV !== "production" && ue("BbDialog", le("BbDialog"));
|
|
134
|
+
let { t: C } = ae(), { isMobile: w } = oe(), { resolve: rt } = se(), T = pe("BbDialog", b, {
|
|
119
135
|
adaptive: !0,
|
|
120
136
|
fullscreen: !1
|
|
121
|
-
}),
|
|
122
|
-
|
|
123
|
-
let
|
|
124
|
-
id: () =>
|
|
125
|
-
model:
|
|
126
|
-
element: () =>
|
|
127
|
-
defaultData: () =>
|
|
137
|
+
}), it = me("BbDialog", he), E = () => T.adaptive && w.value ? "canvas" : "dialog", D = f(E());
|
|
138
|
+
Ce(() => D.value === "canvas" ? C("dialog.closeLabel").value : null);
|
|
139
|
+
let at = Ge(), O = Ie("dialog", {
|
|
140
|
+
id: () => b.id,
|
|
141
|
+
model: c,
|
|
142
|
+
element: () => Pe(at),
|
|
143
|
+
defaultData: () => b.defaultData,
|
|
144
|
+
onComplete: () => je(at)
|
|
128
145
|
});
|
|
129
|
-
|
|
130
|
-
let
|
|
131
|
-
|
|
146
|
+
Ne();
|
|
147
|
+
let ot = Le();
|
|
148
|
+
b.navigation && O.onDemand && process.env.NODE_ENV !== "production" && n().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."), Re({
|
|
132
149
|
component: "BbDialog",
|
|
133
|
-
enabled: () => !!
|
|
134
|
-
key: () =>
|
|
135
|
-
replace: () => !!
|
|
136
|
-
id: () =>
|
|
137
|
-
model:
|
|
150
|
+
enabled: () => !!b.navigation && !O.onDemand,
|
|
151
|
+
key: () => b.queryKey,
|
|
152
|
+
replace: () => !!b.replace,
|
|
153
|
+
id: () => b.id,
|
|
154
|
+
model: c,
|
|
138
155
|
requestClose: () => {
|
|
139
|
-
if (
|
|
140
|
-
let e =
|
|
156
|
+
if (D.value === "dialog") return Yt("escape");
|
|
157
|
+
let e = ot();
|
|
141
158
|
return e === null ? (Q("escape"), !0) : e;
|
|
142
159
|
}
|
|
143
160
|
});
|
|
144
|
-
let
|
|
145
|
-
|
|
161
|
+
let k = () => {
|
|
162
|
+
O.afterHidden(), x("hidden");
|
|
146
163
|
};
|
|
147
|
-
|
|
148
|
-
|
|
164
|
+
_([() => T.adaptive, w], () => {
|
|
165
|
+
c.value || (D.value = E());
|
|
149
166
|
});
|
|
150
|
-
let
|
|
167
|
+
let A = Xe(), j = _e({
|
|
151
168
|
component: "BbDialog",
|
|
152
|
-
attrs:
|
|
153
|
-
props:
|
|
154
|
-
parts:
|
|
155
|
-
states:
|
|
169
|
+
attrs: A,
|
|
170
|
+
props: b,
|
|
171
|
+
parts: ge.parts,
|
|
172
|
+
states: ge.states,
|
|
156
173
|
active: {
|
|
157
|
-
open: () =>
|
|
158
|
-
fullscreen: () =>
|
|
174
|
+
open: () => c.value,
|
|
175
|
+
fullscreen: () => R.value
|
|
159
176
|
}
|
|
160
|
-
}),
|
|
177
|
+
}), st = i(() => l({
|
|
161
178
|
class: "bb-dialog__close",
|
|
162
179
|
onClick: $
|
|
163
|
-
},
|
|
164
|
-
id:
|
|
165
|
-
description:
|
|
166
|
-
preventClose:
|
|
167
|
-
eager:
|
|
168
|
-
focusTarget:
|
|
169
|
-
fullscreen:
|
|
170
|
-
hideClose:
|
|
171
|
-
persistent:
|
|
172
|
-
stack:
|
|
173
|
-
title:
|
|
174
|
-
transitionDuration:
|
|
180
|
+
}, j.close)), ct = i(() => ({
|
|
181
|
+
id: O.domId.value || b.id,
|
|
182
|
+
description: b.description,
|
|
183
|
+
preventClose: b.preventClose ?? (O.completing.value ? !0 : void 0),
|
|
184
|
+
eager: b.eager,
|
|
185
|
+
focusTarget: b.focusTarget,
|
|
186
|
+
fullscreen: T.fullscreen,
|
|
187
|
+
hideClose: b.hideClose,
|
|
188
|
+
persistent: b.persistent,
|
|
189
|
+
stack: b.stack,
|
|
190
|
+
title: b.title,
|
|
191
|
+
transitionDuration: b.transitionDuration,
|
|
175
192
|
side: "bottom",
|
|
176
193
|
draggable: !0,
|
|
177
194
|
size: "auto",
|
|
178
|
-
snapPoints:
|
|
179
|
-
snap:
|
|
195
|
+
snapPoints: b.snapPoints,
|
|
196
|
+
snap: y.value,
|
|
197
|
+
ok: z.resolved.value.ok ?? void 0,
|
|
198
|
+
cancel: z.resolved.value.cancel ?? void 0,
|
|
199
|
+
actions: z.resolved.value.actions,
|
|
180
200
|
"onUpdate:snap": (e) => {
|
|
181
|
-
|
|
201
|
+
y.value = e;
|
|
182
202
|
},
|
|
183
|
-
...
|
|
184
|
-
})),
|
|
185
|
-
let { class: e, ...t } =
|
|
186
|
-
return
|
|
187
|
-
}),
|
|
188
|
-
|
|
189
|
-
e && !t && !
|
|
203
|
+
...ye(b.offCanvasProps)
|
|
204
|
+
})), lt = i(() => {
|
|
205
|
+
let { class: e, ...t } = A;
|
|
206
|
+
return l(ct.value, t);
|
|
207
|
+
}), M = f(null), N = `title_${ie().id.value}`, ut = `desc_${ie().id.value}`, P = () => !!b.description || !!S.description, F = () => !!b.title || !!S.title, dt = () => F() || P(), ft = ce(() => c.value || b.eager, { initialValue: c.value || b.eager }), I = i(() => !!b.eager || c.value || q.value), L = f(0);
|
|
208
|
+
_(c, (e, t) => {
|
|
209
|
+
e && !t && !b.eager && L.value++;
|
|
190
210
|
}, { flush: "sync" });
|
|
191
|
-
let
|
|
211
|
+
let R = i(() => T.fullscreen === !0 || T.fullscreen === "mobile" && w.value), pt = () => typeof document < "u", mt = Ae(), ht = mt.saving, z = Me({
|
|
212
|
+
component: "BbDialog",
|
|
213
|
+
props: () => b,
|
|
214
|
+
surface: mt,
|
|
215
|
+
complete: O.complete,
|
|
216
|
+
data: () => O.data.value,
|
|
217
|
+
close: () => $(),
|
|
218
|
+
block: "bb-dialog"
|
|
219
|
+
}), gt = () => z.render(), _t = i(() => b.preventClose ?? (ht() || O.completing.value)), vt = i(() => _t.value || !!b.persistent), B = f(!1), V = f(null), yt = () => {
|
|
192
220
|
V.value = null;
|
|
193
|
-
},
|
|
221
|
+
}, bt = (e) => {
|
|
194
222
|
V.value = {
|
|
195
223
|
startX: e.clientX,
|
|
196
224
|
startY: e.clientY,
|
|
197
225
|
startedOnBackdrop: e.target === e.currentTarget
|
|
198
226
|
};
|
|
199
|
-
},
|
|
227
|
+
}, xt = (e) => {
|
|
200
228
|
let t = V.value;
|
|
201
|
-
|
|
202
|
-
}, H,
|
|
203
|
-
|
|
229
|
+
yt(), t && !t.startedOnBackdrop || t && (Math.abs(e.clientX - t.startX) > nt || Math.abs(e.clientY - t.startY) > nt) || Jt(e, "backdrop");
|
|
230
|
+
}, H, St = ke(() => C("dialog.closeRefused").value), U = (e) => {
|
|
231
|
+
St.announce(), clearTimeout(H), B.value = !0, H = setTimeout(() => {
|
|
204
232
|
B.value = !1;
|
|
205
233
|
}, e);
|
|
206
|
-
}, W = Symbol("bb-dialog-escape"),
|
|
207
|
-
let e = { element: () =>
|
|
208
|
-
G ?
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
if (e.key === "Escape" && !X.value &&
|
|
215
|
-
}, K =
|
|
216
|
-
|
|
217
|
-
let J = Symbol("bb-dialog"), { stacks:
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
}, X =
|
|
222
|
-
if (!
|
|
223
|
-
let e =
|
|
234
|
+
}, W = Symbol("bb-dialog-escape"), Ct = t(), G = !1, wt = () => {
|
|
235
|
+
let e = { element: () => M.value };
|
|
236
|
+
G ? ee(W, Ct, e) : ne(W, e), pt() && document.addEventListener("keydown", Dt, { capture: !0 });
|
|
237
|
+
}, Tt = () => {
|
|
238
|
+
re(W), pt() && document.removeEventListener("keydown", Dt, { capture: !0 });
|
|
239
|
+
}, Et = () => {
|
|
240
|
+
b.focusTarget && ve(M.value, b.focusTarget)?.focus();
|
|
241
|
+
}, Dt = (e) => {
|
|
242
|
+
if (e.key === "Escape" && !X.value && te(W) && (e.stopImmediatePropagation(), vt.value)) return e.preventDefault(), U(200), !1;
|
|
243
|
+
}, K = f(0), q = f(!1);
|
|
244
|
+
Oe(q);
|
|
245
|
+
let J = Symbol("bb-dialog"), { stacks: Ot, openOrder: kt, closing: At, enter: jt, leave: Mt, registerOpen: Nt, deregisterOpen: Pt, setClosing: Y } = Ee(), Ft = () => {
|
|
246
|
+
Nt(J), b.stack && jt(b.stack, J);
|
|
247
|
+
}, It = () => {
|
|
248
|
+
Pt(J), b.stack && Mt(b.stack, J);
|
|
249
|
+
}, X = i(() => {
|
|
250
|
+
if (!b.stack) return !1;
|
|
251
|
+
let e = Ot.value[b.stack];
|
|
224
252
|
return !e || !e.includes(J) ? !1 : e[e.length - 1] !== J;
|
|
225
|
-
}),
|
|
226
|
-
t !== -1 && (e.value =
|
|
227
|
-
}, { immediate: !0 }),
|
|
228
|
-
|
|
229
|
-
let
|
|
230
|
-
|
|
231
|
-
let
|
|
253
|
+
}), Lt = i(() => kt.value.indexOf(J)), Rt = (e, t) => _([t, () => At.value.length > 0], ([t, ee]) => {
|
|
254
|
+
t !== -1 && (e.value = ee && e.value || t > 0);
|
|
255
|
+
}, { immediate: !0 }), zt = f(!1);
|
|
256
|
+
Rt(zt, Lt);
|
|
257
|
+
let Bt = i(() => (Lt.value !== -1 || q.value) && zt.value), Vt = i(() => b.stack ? Ot.value[b.stack]?.indexOf(J) ?? -1 : -1), Ht = f(!1);
|
|
258
|
+
Rt(Ht, Vt);
|
|
259
|
+
let Ut = i(() => (Vt.value !== -1 || q.value) && Ht.value), Wt = f(), Z = null, Gt = async (e) => {
|
|
232
260
|
if (e) {
|
|
233
|
-
|
|
261
|
+
x("show"), K.value++, Wt.value = we(), wt(), await u(), q.value = !0, M.value && !M.value.open && M.value.showModal(), Ft(), Y(J, !1), M.value && (Z = De(M.value)), Et();
|
|
234
262
|
let e = K.value;
|
|
235
|
-
await
|
|
263
|
+
await de(b.transitionDuration), await fe(M.value), e === K.value && c.value && x("shown");
|
|
236
264
|
} else {
|
|
237
|
-
|
|
265
|
+
x("hide", O.closingResult()), Y(J, !0), It();
|
|
238
266
|
let e = K.value;
|
|
239
|
-
if (await
|
|
240
|
-
|
|
267
|
+
if (await de(b.transitionDuration), e !== K.value) return;
|
|
268
|
+
Tt(), M.value?.close(), Z?.(), Z = null, q.value = !1, Y(J, !1), k();
|
|
241
269
|
}
|
|
242
|
-
},
|
|
243
|
-
process.env.NODE_ENV !== "production" &&
|
|
244
|
-
|
|
270
|
+
}, Kt = () => {
|
|
271
|
+
process.env.NODE_ENV !== "production" && S.header && !b.title && A["aria-labelledby"] == null && u(() => {
|
|
272
|
+
M.value && !document.getElementById(N) && n().warn(`BbDialog: the #header slot does not contain an element with id="${N}", 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>.`);
|
|
245
273
|
});
|
|
246
274
|
};
|
|
247
|
-
|
|
248
|
-
e && (
|
|
249
|
-
}),
|
|
250
|
-
|
|
251
|
-
}),
|
|
252
|
-
e &&
|
|
275
|
+
_(c, (e) => {
|
|
276
|
+
e && (D.value = E()), D.value === "dialog" && Gt(e);
|
|
277
|
+
}), Je(() => {
|
|
278
|
+
c.value && D.value === "dialog" && (G = !0, Gt(!0), G = !1);
|
|
279
|
+
}), _(ft, (e) => {
|
|
280
|
+
e && Kt();
|
|
253
281
|
}, {
|
|
254
282
|
immediate: !0,
|
|
255
283
|
flush: "post"
|
|
256
|
-
}),
|
|
257
|
-
|
|
284
|
+
}), Ke(() => {
|
|
285
|
+
M.value?.open && M.value.close(), clearTimeout(H), Tt(), It(), Y(J, !1), Z?.(), Z = null;
|
|
258
286
|
});
|
|
259
|
-
let
|
|
260
|
-
if (e.preventDefault(), !
|
|
261
|
-
},
|
|
262
|
-
|
|
287
|
+
let qt = i(() => R.value ? "100%" : e(rt(b.size), it.value)), Jt = (e, t = "escape") => {
|
|
288
|
+
if (e.preventDefault(), !Yt(t)) return !1;
|
|
289
|
+
}, Yt = (e) => vt.value ? (U(300), !1) : (Q(e), !0), Q = (e) => {
|
|
290
|
+
O.record(e), c.value = !1;
|
|
263
291
|
}, $ = () => {
|
|
264
|
-
|
|
265
|
-
},
|
|
266
|
-
show:
|
|
292
|
+
_t.value ? U(300) : Q("close");
|
|
293
|
+
}, Xt = (e) => Fe(e, {
|
|
294
|
+
show: O.show,
|
|
267
295
|
close: $,
|
|
268
|
-
open: () =>
|
|
296
|
+
open: () => c.value
|
|
269
297
|
});
|
|
270
|
-
return
|
|
298
|
+
return qe(() => Q("unmounted")), (e, t) => D.value === "canvas" ? (d(), a(Se, l({
|
|
271
299
|
key: 0,
|
|
272
|
-
modelValue:
|
|
273
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
300
|
+
modelValue: c.value,
|
|
301
|
+
"onUpdate:modelValue": t[0] ||= (e) => c.value = e,
|
|
274
302
|
class: "bb-dialog__sheet",
|
|
275
|
-
pt:
|
|
303
|
+
pt: h(j).forward({
|
|
276
304
|
root: "root",
|
|
277
305
|
header: "header",
|
|
278
306
|
title: "title",
|
|
@@ -281,134 +309,134 @@ var Je = [
|
|
|
281
309
|
footer: "footer",
|
|
282
310
|
close: "close",
|
|
283
311
|
sheet: "root"
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
onHidden:
|
|
287
|
-
onHide: t[1] ||= (e) =>
|
|
288
|
-
onShow: t[2] ||= (e) =>
|
|
289
|
-
onShown: t[3] ||= (e) =>
|
|
290
|
-
}),
|
|
312
|
+
}, h(be).states, () => r.offCanvasProps?.pt)
|
|
313
|
+
}, lt.value, {
|
|
314
|
+
onHidden: k,
|
|
315
|
+
onHide: t[1] ||= (e) => x("hide", h(O).closingResult()),
|
|
316
|
+
onShow: t[2] ||= (e) => x("show"),
|
|
317
|
+
onShown: t[3] ||= (e) => x("shown")
|
|
318
|
+
}), Ve({ _: 2 }, [
|
|
291
319
|
e.$slots.default ? {
|
|
292
320
|
name: "default",
|
|
293
|
-
fn:
|
|
294
|
-
complete:
|
|
295
|
-
data:
|
|
296
|
-
reset:
|
|
321
|
+
fn: v((t) => [p(e.$slots, "default", l(t, {
|
|
322
|
+
complete: h(O).complete,
|
|
323
|
+
data: h(O).data.value,
|
|
324
|
+
reset: h(O).reset
|
|
297
325
|
}))]),
|
|
298
326
|
key: "0"
|
|
299
327
|
} : void 0,
|
|
300
328
|
e.$slots.header ? {
|
|
301
329
|
name: "header",
|
|
302
|
-
fn:
|
|
303
|
-
complete:
|
|
304
|
-
data:
|
|
305
|
-
reset:
|
|
330
|
+
fn: v((t) => [p(e.$slots, "header", l(t, {
|
|
331
|
+
complete: h(O).complete,
|
|
332
|
+
data: h(O).data.value,
|
|
333
|
+
reset: h(O).reset
|
|
306
334
|
}))]),
|
|
307
335
|
key: "1"
|
|
308
336
|
} : void 0,
|
|
309
337
|
e.$slots.title ? {
|
|
310
338
|
name: "title",
|
|
311
|
-
fn:
|
|
339
|
+
fn: v((t) => [p(e.$slots, "title", l(t, { data: h(O).data.value }))]),
|
|
312
340
|
key: "2"
|
|
313
341
|
} : void 0,
|
|
314
342
|
e.$slots.description ? {
|
|
315
343
|
name: "description",
|
|
316
|
-
fn:
|
|
344
|
+
fn: v((t) => [p(e.$slots, "description", l(t, { data: h(O).data.value }))]),
|
|
317
345
|
key: "3"
|
|
318
346
|
} : void 0,
|
|
319
347
|
e.$slots.footer ? {
|
|
320
348
|
name: "footer",
|
|
321
|
-
fn:
|
|
322
|
-
complete:
|
|
323
|
-
data:
|
|
324
|
-
reset:
|
|
349
|
+
fn: v((t) => [p(e.$slots, "footer", l(t, {
|
|
350
|
+
complete: h(O).complete,
|
|
351
|
+
data: h(O).data.value,
|
|
352
|
+
reset: h(O).reset
|
|
325
353
|
}))]),
|
|
326
354
|
key: "4"
|
|
327
355
|
} : void 0
|
|
328
|
-
]), 1040, ["modelValue", "pt"])) : (
|
|
356
|
+
]), 1040, ["modelValue", "pt"])) : (d(), s("dialog", l({
|
|
329
357
|
key: 1,
|
|
330
|
-
id:
|
|
358
|
+
id: h(O).domId.value || void 0,
|
|
331
359
|
ref_key: "dialog",
|
|
332
|
-
ref:
|
|
333
|
-
"aria-describedby":
|
|
334
|
-
"aria-labelledby":
|
|
360
|
+
ref: M,
|
|
361
|
+
"aria-describedby": I.value && P() ? ut : void 0,
|
|
362
|
+
"aria-labelledby": I.value && (F() || e.$slots.header) ? N : void 0,
|
|
335
363
|
class: ["bb-dialog", {
|
|
336
|
-
"bb-dialog--open":
|
|
364
|
+
"bb-dialog--open": c.value,
|
|
337
365
|
"bb-dialog--visible": q.value,
|
|
338
|
-
"bb-dialog--fullscreen":
|
|
339
|
-
"bb-dialog--mobile":
|
|
366
|
+
"bb-dialog--fullscreen": R.value,
|
|
367
|
+
"bb-dialog--mobile": h(w),
|
|
340
368
|
"bb-dialog--deny-close": B.value,
|
|
341
369
|
"bb-dialog--covered": X.value,
|
|
342
|
-
"bb-dialog--above":
|
|
343
|
-
"bb-dialog--covering":
|
|
370
|
+
"bb-dialog--above": Bt.value,
|
|
371
|
+
"bb-dialog--covering": Ut.value
|
|
344
372
|
}],
|
|
345
|
-
inert: !
|
|
373
|
+
inert: !c.value && !q.value || X.value,
|
|
346
374
|
style: {
|
|
347
|
-
"--max-width":
|
|
348
|
-
...
|
|
349
|
-
"--transition-duration": `${
|
|
375
|
+
"--max-width": qt.value,
|
|
376
|
+
...Wt.value,
|
|
377
|
+
"--transition-duration": `${b.transitionDuration}ms`
|
|
350
378
|
}
|
|
351
|
-
},
|
|
352
|
-
onCancel:
|
|
353
|
-
onCommand:
|
|
354
|
-
onClick:
|
|
355
|
-
onPointercancel:
|
|
356
|
-
onPointerdown:
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
key: `body-1-${
|
|
379
|
+
}, Ye(h(Te), !0), {
|
|
380
|
+
onCancel: Qe(Jt, ["self"]),
|
|
381
|
+
onCommand: Xt,
|
|
382
|
+
onClick: Qe(xt, ["self"]),
|
|
383
|
+
onPointercancel: yt,
|
|
384
|
+
onPointerdown: bt
|
|
385
|
+
}, h(j).rootAttrs), [I.value ? (d(), s(ze, { key: 0 }, [
|
|
386
|
+
dt() || e.$slots.header ? (d(), s("div", l({
|
|
387
|
+
key: `body-1-${L.value}`,
|
|
360
388
|
class: "bb-dialog__header"
|
|
361
|
-
},
|
|
389
|
+
}, h(j).header), [p(e.$slots, "header", {
|
|
362
390
|
close: $,
|
|
363
|
-
complete:
|
|
364
|
-
data:
|
|
365
|
-
reset:
|
|
366
|
-
title:
|
|
367
|
-
titleId:
|
|
391
|
+
complete: h(O).complete,
|
|
392
|
+
data: h(O).data.value,
|
|
393
|
+
reset: h(O).reset,
|
|
394
|
+
title: r.title,
|
|
395
|
+
titleId: N
|
|
368
396
|
}, () => [
|
|
369
|
-
|
|
397
|
+
F() ? (d(), s("span", l({
|
|
370
398
|
key: 0,
|
|
371
|
-
id:
|
|
399
|
+
id: N,
|
|
372
400
|
class: "bb-dialog__title"
|
|
373
|
-
},
|
|
374
|
-
data:
|
|
375
|
-
text:
|
|
376
|
-
}, () => [
|
|
377
|
-
|
|
401
|
+
}, h(j).title), [p(e.$slots, "title", {
|
|
402
|
+
data: h(O).data.value,
|
|
403
|
+
text: r.title
|
|
404
|
+
}, () => [He(m(r.title), 1)])], 16)) : o("", !0),
|
|
405
|
+
P() ? (d(), s("p", l({
|
|
378
406
|
key: 1,
|
|
379
|
-
id:
|
|
407
|
+
id: ut,
|
|
380
408
|
class: "bb-dialog__description"
|
|
381
|
-
},
|
|
382
|
-
data:
|
|
383
|
-
text:
|
|
384
|
-
}, () => [
|
|
385
|
-
|
|
409
|
+
}, h(j).description), [p(e.$slots, "description", {
|
|
410
|
+
data: h(O).data.value,
|
|
411
|
+
text: r.description
|
|
412
|
+
}, () => [He(m(r.description), 1)])], 16)) : o("", !0),
|
|
413
|
+
r.hideClose ? o("", !0) : (d(), a(xe, l({
|
|
386
414
|
key: 2,
|
|
387
|
-
"aria-label":
|
|
388
|
-
},
|
|
389
|
-
])], 16)) :
|
|
390
|
-
(
|
|
391
|
-
key: `body-2-${
|
|
415
|
+
"aria-label": h(C)("dialog.closeLabel").value
|
|
416
|
+
}, st.value), null, 16, ["aria-label"]))
|
|
417
|
+
])], 16)) : o("", !0),
|
|
418
|
+
(d(), s("div", l({
|
|
419
|
+
key: `body-2-${L.value}`,
|
|
392
420
|
class: "bb-dialog__content scrollbar-border"
|
|
393
|
-
},
|
|
421
|
+
}, h(j).content), [Be("div", et, [!dt() && !e.$slots.header && !r.hideClose ? (d(), a(xe, l({
|
|
394
422
|
key: 0,
|
|
395
|
-
"aria-label":
|
|
396
|
-
},
|
|
423
|
+
"aria-label": h(C)("dialog.closeLabel").value
|
|
424
|
+
}, st.value), null, 16, ["aria-label"])) : o("", !0), p(e.$slots, "default", {
|
|
397
425
|
close: $,
|
|
398
|
-
complete:
|
|
399
|
-
data:
|
|
400
|
-
reset:
|
|
426
|
+
complete: h(O).complete,
|
|
427
|
+
data: h(O).data.value,
|
|
428
|
+
reset: h(O).reset
|
|
401
429
|
})])], 16)),
|
|
402
|
-
(
|
|
403
|
-
key: `body-3-${
|
|
430
|
+
(d(), s("div", l({
|
|
431
|
+
key: `body-3-${L.value}`,
|
|
404
432
|
class: "bb-dialog__footer"
|
|
405
|
-
},
|
|
433
|
+
}, h(j).footer), [p(e.$slots, "footer", {
|
|
406
434
|
close: $,
|
|
407
|
-
complete:
|
|
408
|
-
data:
|
|
409
|
-
reset:
|
|
410
|
-
})], 16))
|
|
411
|
-
], 64)) :
|
|
435
|
+
complete: h(O).complete,
|
|
436
|
+
data: h(O).data.value,
|
|
437
|
+
reset: h(O).reset
|
|
438
|
+
}, () => [Ue(gt)])], 16))
|
|
439
|
+
], 64)) : o("", !0), Be("span", tt, m(h(St).text.value), 1)], 16, $e));
|
|
412
440
|
}
|
|
413
441
|
});
|
|
414
|
-
export {
|
|
442
|
+
export { y as default };
|