bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.72
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 +6 -1
- 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 +230 -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 +93 -7
- 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 +238 -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 +69 -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 +144 -10
- 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 +240 -198
- 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 +1984 -1145
- 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/utils/versionCheck.js +1 -1
- package/llms.txt +2 -2
- package/package.json +11 -1
- package/scripts/README.md +31 -27
- 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/redundant-item-accessor.mjs +4 -1
- package/scripts/lib/release-results.mjs +32 -1
- 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
|
@@ -30,25 +30,26 @@ import { usePassthrough as Ne } from "../../composables/usePassthrough.js";
|
|
|
30
30
|
import { useKeyboardInset as Pe } from "../../composables/useKeyboardInset.js";
|
|
31
31
|
import { useRefusedCloseAnnouncement as Fe } from "../../composables/useRefusedCloseAnnouncement.js";
|
|
32
32
|
import { provideOverlaySubmitGuard as Ie } from "../../composables/formSubmitLock.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
33
|
+
import { ownCompleteListener as Le, useOverlayActions as Re } from "../BbDialog/overlayActions.js";
|
|
34
|
+
import { isOverlayStandIn as ze, rootElementOf as Be, routeNativeCommand as Ve, useOverlayHost as He } from "../../composables/overlayRegistry.js";
|
|
35
|
+
import { registerStandInClose as Ue, useOverlayNavigation as We } from "../../composables/useOverlayNavigation.js";
|
|
36
|
+
import { Fragment as Ge, computed as a, createBlock as Ke, createCommentVNode as o, createElementBlock as s, createElementVNode as qe, createTextVNode as Je, createVNode as Ye, defineComponent as Xe, getCurrentInstance as Ze, mergeModels as c, mergeProps as l, nextTick as Qe, onBeforeUnmount as $e, onDeactivated as et, onMounted as tt, openBlock as u, ref as d, renderSlot as f, toDisplayString as nt, toHandlers as rt, unref as p, useAttrs as it, useModel as at, useSlots as ot, watch as m, withModifiers as st } from "vue";
|
|
37
|
+
import { useSwipe as ct } from "@vueuse/core";
|
|
37
38
|
// src/components/BbOffCanvas/BbOffCanvas.vue?vue&type=script&setup=true&lang.ts
|
|
38
|
-
var
|
|
39
|
+
var lt = [
|
|
39
40
|
"id",
|
|
40
41
|
"aria-describedby",
|
|
41
42
|
"aria-labelledby",
|
|
42
43
|
"inert"
|
|
43
|
-
],
|
|
44
|
+
], ut = { class: "bb-offcanvas__body-content" }, dt = [
|
|
44
45
|
"aria-label",
|
|
45
46
|
"aria-valuemax",
|
|
46
47
|
"aria-valuenow",
|
|
47
48
|
"aria-valuetext"
|
|
48
|
-
],
|
|
49
|
+
], ft = {
|
|
49
50
|
"aria-live": "polite",
|
|
50
51
|
class: "bb-sr-only"
|
|
51
|
-
},
|
|
52
|
+
}, pt = 4, mt = 50, ht = 8, h = 500, gt = "cubic-bezier(0.32, 0.72, 0, 1)", g = /*@__PURE__*/ Xe({
|
|
52
53
|
inheritAttrs: !1,
|
|
53
54
|
__name: "BbOffCanvas",
|
|
54
55
|
props: /*@__PURE__*/ c({
|
|
@@ -97,6 +98,20 @@ var ot = [
|
|
|
97
98
|
},
|
|
98
99
|
hideClose: { type: Boolean },
|
|
99
100
|
size: { default: "sm" },
|
|
101
|
+
ok: { type: [
|
|
102
|
+
Boolean,
|
|
103
|
+
String,
|
|
104
|
+
Object
|
|
105
|
+
] },
|
|
106
|
+
cancel: { type: [
|
|
107
|
+
Boolean,
|
|
108
|
+
String,
|
|
109
|
+
Object
|
|
110
|
+
] },
|
|
111
|
+
actions: {
|
|
112
|
+
type: [Boolean, Array],
|
|
113
|
+
default: void 0
|
|
114
|
+
},
|
|
100
115
|
title: {},
|
|
101
116
|
transitionDuration: { default: i.medium },
|
|
102
117
|
side: { default: void 0 }
|
|
@@ -110,536 +125,546 @@ var ot = [
|
|
|
110
125
|
snapModifiers: {}
|
|
111
126
|
}),
|
|
112
127
|
emits: /*@__PURE__*/ c([
|
|
128
|
+
"complete",
|
|
113
129
|
"show",
|
|
114
130
|
"hide",
|
|
115
131
|
"shown",
|
|
116
132
|
"hidden"
|
|
117
133
|
], ["update:modelValue", "update:snap"]),
|
|
118
|
-
setup(i, { emit:
|
|
119
|
-
let c =
|
|
120
|
-
id: () =>
|
|
134
|
+
setup(i, { emit: Xe }) {
|
|
135
|
+
let c = at(i, "modelValue"), g = at(i, "snap"), _ = i, _t = Xe, v = ot(), vt = ye("BbOffCanvas", _, { side: "start" }), yt = Ze(), bt = ze(), y = He("offCanvas", {
|
|
136
|
+
id: () => _.id,
|
|
121
137
|
model: c,
|
|
122
|
-
element: () =>
|
|
123
|
-
enabled: !
|
|
124
|
-
defaultData: () =>
|
|
138
|
+
element: () => Be(yt),
|
|
139
|
+
enabled: !bt,
|
|
140
|
+
defaultData: () => _.defaultData,
|
|
141
|
+
onComplete: () => Le(yt)
|
|
125
142
|
});
|
|
126
|
-
|
|
143
|
+
bt ? Ue(() => nn("escape")) : _.navigation && y.onDemand && process.env.NODE_ENV !== "production" && ie().warn("BbOffCanvas: `navigation` is ignored on a panel opened on demand: it has no place in the page URL. For a URL panel, render the wrapper in the page and open it by id."), We({
|
|
127
144
|
component: "BbOffCanvas",
|
|
128
|
-
enabled: () => !!
|
|
129
|
-
key: () =>
|
|
130
|
-
replace: () => !!
|
|
131
|
-
id: () =>
|
|
145
|
+
enabled: () => !!_.navigation && !bt && !y.onDemand,
|
|
146
|
+
key: () => _.queryKey,
|
|
147
|
+
replace: () => !!_.replace,
|
|
148
|
+
id: () => _.id,
|
|
132
149
|
model: c,
|
|
133
|
-
requestClose: () =>
|
|
150
|
+
requestClose: () => nn("escape")
|
|
134
151
|
});
|
|
135
|
-
let
|
|
152
|
+
let xt = it(), b = Ne({
|
|
136
153
|
component: "BbOffCanvas",
|
|
137
|
-
attrs:
|
|
138
|
-
props:
|
|
154
|
+
attrs: xt,
|
|
155
|
+
props: _,
|
|
139
156
|
parts: Me.parts,
|
|
140
157
|
states: Me.states,
|
|
141
158
|
active: {
|
|
142
159
|
open: () => c.value,
|
|
143
|
-
fullscreen: () =>
|
|
160
|
+
fullscreen: () => ln.value
|
|
144
161
|
}
|
|
145
|
-
}),
|
|
162
|
+
}), St = a(() => l({
|
|
146
163
|
class: "bb-offcanvas__close",
|
|
147
|
-
onClick:
|
|
148
|
-
},
|
|
164
|
+
onClick: M
|
|
165
|
+
}, b.close)), Ct = be("BbOffCanvas", xe);
|
|
149
166
|
process.env.NODE_ENV !== "production" && pe("BbOffCanvas", fe("BbOffCanvas"));
|
|
150
|
-
let { t:
|
|
167
|
+
let { t: x } = re(), wt = Ce(), Tt = a(() => wt() ?? x("offCanvas.closeLabel").value), Et = () => !!_.title || !!v.title, Dt = () => Et() || !!v.header || Lt(), Ot = Ie(), kt = Ot.saving, At = Re({
|
|
168
|
+
component: "BbOffCanvas",
|
|
169
|
+
props: () => _,
|
|
170
|
+
surface: Ot,
|
|
171
|
+
complete: y.complete,
|
|
172
|
+
data: () => y.data.value,
|
|
173
|
+
close: () => M(),
|
|
174
|
+
block: "bb-offcanvas"
|
|
175
|
+
}), jt = () => At.render(), Mt = a(() => _.preventClose ?? (kt() || y.completing.value)), S = a(() => Mt.value || !!_.persistent), Nt = () => typeof document < "u", C = d(null), w = Pe({
|
|
151
176
|
active: () => c.value,
|
|
152
|
-
container: () =>
|
|
153
|
-
}),
|
|
177
|
+
container: () => C.value
|
|
178
|
+
}), Pt = de(() => c.value || _.eager, { initialValue: c.value || _.eager }), Ft = a(() => !!_.eager || c.value || O.value), T = d(0);
|
|
154
179
|
m(c, (e, t) => {
|
|
155
|
-
e && !t && !
|
|
180
|
+
e && !t && !_.eager && T.value++;
|
|
156
181
|
}, { flush: "sync" });
|
|
157
|
-
let
|
|
158
|
-
je(
|
|
159
|
-
let
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
|
|
182
|
+
let E = `title_${ne().id.value}`, It = `desc_${ne().id.value}`, Lt = () => !!_.description || !!v.description, D = d(0), O = d(!1);
|
|
183
|
+
je(O);
|
|
184
|
+
let Rt = d(null), zt = () => {
|
|
185
|
+
Rt.value = null;
|
|
186
|
+
}, Bt = (e) => {
|
|
187
|
+
Rt.value = {
|
|
163
188
|
startX: e.clientX,
|
|
164
189
|
startY: e.clientY,
|
|
165
190
|
startedOnBackdrop: e.target === e.currentTarget
|
|
166
191
|
};
|
|
167
|
-
},
|
|
168
|
-
let t =
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
|
|
192
|
+
}, Vt = (e) => {
|
|
193
|
+
let t = Rt.value;
|
|
194
|
+
zt(), t && !t.startedOnBackdrop || t && (Math.abs(e.clientX - t.startX) > pt || Math.abs(e.clientY - t.startY) > pt) || tn(e, "backdrop");
|
|
195
|
+
}, Ht, Ut = Fe(() => x("dialog.closeRefused").value), k = (e) => {
|
|
196
|
+
Ut.announce(), clearTimeout(Ht), an.value = !0, Ht = setTimeout(() => {
|
|
197
|
+
an.value = !1;
|
|
173
198
|
}, e);
|
|
174
|
-
},
|
|
175
|
-
let e = { element: () =>
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
te(
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
},
|
|
182
|
-
if (e.key === "Escape" && !
|
|
183
|
-
},
|
|
199
|
+
}, Wt = Symbol("bb-off-canvas-escape"), Gt = t(), Kt = !1, qt = () => {
|
|
200
|
+
let e = { element: () => C.value };
|
|
201
|
+
Kt ? n(Wt, Gt, e) : ee(Wt, e), Nt() && document.addEventListener("keydown", Xt, { capture: !0 });
|
|
202
|
+
}, Jt = () => {
|
|
203
|
+
te(Wt), Nt() && document.removeEventListener("keydown", Xt, { capture: !0 });
|
|
204
|
+
}, Yt = () => {
|
|
205
|
+
_.focusTarget && _e(C.value, _.focusTarget)?.focus();
|
|
206
|
+
}, Xt = (e) => {
|
|
207
|
+
if (e.key === "Escape" && !Dn.value && r(Wt) && (e.stopImmediatePropagation(), S.value)) return e.preventDefault(), k(200), !1;
|
|
208
|
+
}, Zt = d(), A = null, Qt = async (e) => {
|
|
184
209
|
if (e) {
|
|
185
|
-
|
|
186
|
-
let e =
|
|
187
|
-
await me(
|
|
210
|
+
N.value = cn(), _t("show"), D.value++, Zt.value = ge(), qt(), await Qe(), O.value = !0, C.value && !C.value.open && C.value.showModal(), Tn(), yn(P, !1), C.value && (A = Ae(C.value)), Yt();
|
|
211
|
+
let e = D.value;
|
|
212
|
+
await me(_.transitionDuration), await he(C.value), e === D.value && c.value && _t("shown");
|
|
188
213
|
} else {
|
|
189
|
-
|
|
190
|
-
let e =
|
|
191
|
-
if (await me(
|
|
192
|
-
|
|
214
|
+
_t("hide", y.closingResult()), yn(P, !0), En();
|
|
215
|
+
let e = D.value;
|
|
216
|
+
if (await me(_.transitionDuration), e !== D.value) return;
|
|
217
|
+
Jt(), C.value?.close(), A?.(), A = null, O.value = !1, yn(P, !1), V = !1, Fn.value = !1, Wn(), y.afterHidden(), _t("hidden");
|
|
193
218
|
}
|
|
194
|
-
},
|
|
195
|
-
process.env.NODE_ENV !== "production" &&
|
|
196
|
-
|
|
219
|
+
}, $t = () => {
|
|
220
|
+
process.env.NODE_ENV !== "production" && v.header && !_.title && xt["aria-labelledby"] == null && Qe(() => {
|
|
221
|
+
C.value && !document.getElementById(E) && ie().warn(`BbOffCanvas: the #header slot does not contain an element with id="${E}", so aria-labelledby points at nothing and the panel announces as unnamed. Bind the slot's \`titleId\` to your heading: <template #header="{ titleId }"><h2 :id="titleId">…</h2></template>.`);
|
|
197
222
|
});
|
|
198
223
|
};
|
|
199
|
-
m(c,
|
|
200
|
-
c.value && (
|
|
201
|
-
}), m(
|
|
202
|
-
e &&
|
|
224
|
+
m(c, Qt), tt(() => {
|
|
225
|
+
c.value && (Kt = !0, Qt(!0), Kt = !1);
|
|
226
|
+
}), m(Pt, (e) => {
|
|
227
|
+
e && $t();
|
|
203
228
|
}, {
|
|
204
229
|
immediate: !0,
|
|
205
230
|
flush: "post"
|
|
206
|
-
}),
|
|
207
|
-
clearTimeout(
|
|
231
|
+
}), $e(() => {
|
|
232
|
+
clearTimeout(Ht), Jt(), z.value?.removeEventListener("scroll", Rn), H?.disconnect(), H = null, En(), yn(P, !1), C.value?.open && C.value.close(), A?.(), A = null;
|
|
208
233
|
});
|
|
209
|
-
let
|
|
210
|
-
if (
|
|
211
|
-
let t =
|
|
212
|
-
return t === "auto" ? "fit-content" : e(t,
|
|
213
|
-
}),
|
|
214
|
-
if (e.preventDefault(), !
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
show:
|
|
221
|
-
close:
|
|
234
|
+
let en = a(() => {
|
|
235
|
+
if (ln.value) return "100%";
|
|
236
|
+
let t = sn(_.size);
|
|
237
|
+
return t === "auto" ? "fit-content" : e(t, Ct.value);
|
|
238
|
+
}), tn = (e, t = "escape") => {
|
|
239
|
+
if (e.preventDefault(), !nn(t)) return !1;
|
|
240
|
+
}, nn = (e) => S.value ? (k(300), !1) : (j(e), !0), j = (e) => {
|
|
241
|
+
y.record(e), c.value = !1;
|
|
242
|
+
}, M = () => {
|
|
243
|
+
Mt.value ? k(300) : j("close");
|
|
244
|
+
}, rn = (e) => Ve(e, {
|
|
245
|
+
show: y.show,
|
|
246
|
+
close: M,
|
|
222
247
|
open: () => c.value
|
|
223
|
-
}),
|
|
224
|
-
m(() => JSON.stringify(
|
|
225
|
-
let
|
|
226
|
-
let e =
|
|
227
|
-
return e ?
|
|
228
|
-
},
|
|
229
|
-
typeof ResizeObserver < "u" &&
|
|
230
|
-
|
|
231
|
-
}),
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
let e =
|
|
240
|
-
return
|
|
241
|
-
}),
|
|
242
|
-
m([() =>
|
|
243
|
-
e !== -1 && (
|
|
248
|
+
}), an = d(!1), { isMobile: on } = ae(), { resolve: sn } = ce(), cn = () => le(sn(vt.side), C.value), N = d(cn());
|
|
249
|
+
m(() => JSON.stringify(vt.side), () => N.value = cn()), m(ue, () => N.value = cn());
|
|
250
|
+
let ln = a(() => _.fullscreen === !0 || _.fullscreen === "mobile" && on.value), P = Symbol("bb-offcanvas"), { stacks: un, push: dn, setSize: fn, remove: pn, offset: mn, openOrder: hn, registerOpen: gn, deregisterOpen: _n, closing: vn, setClosing: yn } = we(), F = a(() => N.value === "left" || N.value === "right" ? "x" : "y"), I = a(() => N.value === "right" || N.value === "bottom" ? 1 : -1), bn = `bb-offcanvas-${ne().id.value}`, L = a(() => _.stack || bn), R = null, xn = () => {
|
|
251
|
+
let e = C.value?.getBoundingClientRect();
|
|
252
|
+
return e ? F.value === "x" ? e.width : e.height : 0;
|
|
253
|
+
}, Sn = null, Cn = () => {
|
|
254
|
+
typeof ResizeObserver < "u" && C.value && (Sn = new ResizeObserver(() => {
|
|
255
|
+
R !== null && fn(R, P, xn());
|
|
256
|
+
}), Sn.observe(C.value));
|
|
257
|
+
}, wn = () => {
|
|
258
|
+
Sn?.disconnect(), Sn = null;
|
|
259
|
+
}, Tn = () => {
|
|
260
|
+
R = L.value, dn(R, P, N.value, xn(), _.stackGap), gn(P), Cn();
|
|
261
|
+
}, En = () => {
|
|
262
|
+
wn(), _n(P), R !== null && (pn(R, P), R = null);
|
|
263
|
+
}, Dn = a(() => {
|
|
264
|
+
let e = hn.value.indexOf(P);
|
|
265
|
+
return O.value && e !== -1 && e < hn.value.length - 1;
|
|
266
|
+
}), On = d(!1);
|
|
267
|
+
m([() => hn.value.indexOf(P), () => vn.value.length > 0], ([e, t]) => {
|
|
268
|
+
e !== -1 && (On.value = t && On.value || e > 0);
|
|
244
269
|
}, { immediate: !0 });
|
|
245
|
-
let
|
|
270
|
+
let kn = a(() => (hn.value.includes(P) || O.value) && On.value);
|
|
246
271
|
m([
|
|
247
|
-
|
|
248
|
-
() =>
|
|
249
|
-
() =>
|
|
272
|
+
L,
|
|
273
|
+
() => N.value,
|
|
274
|
+
() => _.stackGap
|
|
250
275
|
], ([e]) => {
|
|
251
|
-
|
|
276
|
+
R !== null && (pn(R, P), R = e, dn(e, P, N.value, xn(), _.stackGap));
|
|
252
277
|
});
|
|
253
|
-
let
|
|
254
|
-
|
|
255
|
-
let e =
|
|
278
|
+
let An = a(() => on.value ? 14 : 20), jn = a(() => {
|
|
279
|
+
un.value;
|
|
280
|
+
let e = F.value === "x" ? se.value : oe.value, t = mn(L.value, P, e, An.value);
|
|
256
281
|
return {
|
|
257
|
-
[
|
|
282
|
+
[F.value === "x" ? "--stack-x" : "--stack-y"]: `${-I.value * t}px`,
|
|
258
283
|
"--stack-fill": `${t}px`
|
|
259
284
|
};
|
|
260
|
-
}),
|
|
261
|
-
let e =
|
|
285
|
+
}), Mn = d(!1), Nn = 0, Pn = () => {
|
|
286
|
+
let e = un.value[L.value];
|
|
262
287
|
if (!e) return !1;
|
|
263
|
-
let t = e.filter((e) => e.direction ===
|
|
288
|
+
let t = e.filter((e) => e.direction === N.value), n = t.findIndex((e) => e.id === P);
|
|
264
289
|
return n !== -1 && n !== t.length - 1;
|
|
265
290
|
};
|
|
266
|
-
m(() =>
|
|
267
|
-
let t = e?.length ?? 0, n = t > 0 && t ===
|
|
268
|
-
|
|
291
|
+
m(() => un.value[L.value], (e) => {
|
|
292
|
+
let t = e?.length ?? 0, n = t > 0 && t === Nn;
|
|
293
|
+
Nn = t, Mn.value = n && Pn(), Mn.value && Qe(() => Mn.value = !1);
|
|
269
294
|
});
|
|
270
|
-
let
|
|
271
|
-
|
|
272
|
-
},
|
|
273
|
-
m(
|
|
274
|
-
t?.removeEventListener("scroll",
|
|
295
|
+
let z = d(null), B = d(!1), Fn = d(!1), V = !1, H = null, In = !1, U = !1, Ln = !1, W = !1, G = () => {
|
|
296
|
+
z.value?.style.removeProperty("touch-action");
|
|
297
|
+
}, Rn = () => G();
|
|
298
|
+
m(z, (e, t) => {
|
|
299
|
+
t?.removeEventListener("scroll", Rn), H?.disconnect(), H = null, e && (e.addEventListener("scroll", Rn, { passive: !0 }), typeof ResizeObserver < "u" && (H = new ResizeObserver(() => G()), H.observe(e)), G());
|
|
275
300
|
}, { flush: "post" }), m([
|
|
276
|
-
() =>
|
|
277
|
-
() =>
|
|
278
|
-
|
|
279
|
-
], () =>
|
|
280
|
-
let
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
-
let t =
|
|
301
|
+
() => _.draggable,
|
|
302
|
+
() => N.value,
|
|
303
|
+
O
|
|
304
|
+
], () => G());
|
|
305
|
+
let zn = () => F.value === "y" ? I.value === 1 ? -Zn.value : Zn.value : I.value === 1 ? -Xn.value : Xn.value, Bn = () => {
|
|
306
|
+
C.value && (C.value.style.transition = "none"), z.value && F.value === "y" && (z.value.style.touchAction = "none");
|
|
307
|
+
}, Vn = (e) => {
|
|
308
|
+
let t = C.value;
|
|
284
309
|
if (!t) return;
|
|
285
|
-
let n = e > 0 ? e *
|
|
286
|
-
t.style.transform =
|
|
287
|
-
},
|
|
288
|
-
let e =
|
|
289
|
-
e && (e.style.transform =
|
|
290
|
-
},
|
|
291
|
-
let t =
|
|
292
|
-
t && (e ? (t.style.transition = `transform ${
|
|
293
|
-
t.isConnected && !
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
let e =
|
|
297
|
-
e && (
|
|
298
|
-
},
|
|
299
|
-
let e =
|
|
300
|
-
e ? (
|
|
301
|
-
},
|
|
310
|
+
let n = e > 0 ? e * I.value : 0;
|
|
311
|
+
t.style.transform = F.value === "x" ? `translate3d(${n}px, 0, 0)` : `translate3d(0, ${n}px, 0)`;
|
|
312
|
+
}, Hn = () => {
|
|
313
|
+
let e = C.value;
|
|
314
|
+
e && (e.style.transform = N.value === "bottom" ? "translate3d(0, 100%, 0)" : N.value === "top" ? "translate3d(0, -100%, 0)" : N.value === "left" ? "translate3d(-100%, 0, 0)" : "translate3d(100%, 0, 0)");
|
|
315
|
+
}, Un = (e) => {
|
|
316
|
+
let t = C.value;
|
|
317
|
+
t && (e ? (t.style.transition = `transform ${h}ms ${gt}`, t.style.transform = "translate3d(0, 0, 0)", window.setTimeout(() => {
|
|
318
|
+
t.isConnected && !V && (t.style.removeProperty("transform"), t.style.removeProperty("transition"), G());
|
|
319
|
+
}, h)) : (t.style.transition = "", G()));
|
|
320
|
+
}, Wn = () => {
|
|
321
|
+
let e = C.value;
|
|
322
|
+
e && (V || (e.style.removeProperty("transition"), e.style.removeProperty("transform")));
|
|
323
|
+
}, Gn = async () => {
|
|
324
|
+
let e = C.value;
|
|
325
|
+
e ? (V = !0, Fn.value = !0, e.style.transition = `transform ${h}ms ${gt}`, Hn(), await me(h), c.value ? (e.style.transition = "none", Hn(), j("swipe")) : (V = !1, Fn.value = !1, e.style.removeProperty("transform"), e.style.removeProperty("transition"), G())) : j("swipe");
|
|
326
|
+
}, Kn = (e) => {
|
|
302
327
|
let { overflowY: t } = getComputedStyle(e);
|
|
303
328
|
return t !== "auto" && t !== "scroll" ? !1 : e.scrollHeight > e.clientHeight + 1;
|
|
304
|
-
},
|
|
305
|
-
let t =
|
|
329
|
+
}, qn = (e) => I.value === 1 ? e.scrollTop <= 1 : e.scrollTop + e.clientHeight >= e.scrollHeight - 1, Jn = (e) => {
|
|
330
|
+
let t = C.value;
|
|
306
331
|
if (!t) return !1;
|
|
307
332
|
let n = e;
|
|
308
333
|
for (; n && n !== t;) {
|
|
309
|
-
if (n instanceof HTMLElement &&
|
|
334
|
+
if (n instanceof HTMLElement && Kn(n) && !qn(n)) return !0;
|
|
310
335
|
n = n.parentElement;
|
|
311
336
|
}
|
|
312
337
|
return !1;
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
}, { lengthX:
|
|
316
|
-
threshold:
|
|
338
|
+
}, Yn = () => {
|
|
339
|
+
In = !1, U = !1, Ln = !1, W = !1, B.value = !1;
|
|
340
|
+
}, { lengthX: Xn, lengthY: Zn } = ct(C, {
|
|
341
|
+
threshold: ht,
|
|
317
342
|
passive: !1,
|
|
318
343
|
onSwipeStart: (e) => {
|
|
319
|
-
if (
|
|
344
|
+
if (Yn(), !_.draggable || !O.value || e.target === C.value) return;
|
|
320
345
|
let t = e.target;
|
|
321
|
-
t instanceof Element && (t.closest("[data-bb-no-drag]") || (
|
|
346
|
+
t instanceof Element && (t.closest("[data-bb-no-drag]") || (In = !0, U = !!t.closest(".bb-offcanvas__content"), W = U && !rr() && Jn(t), K.value && wr()));
|
|
322
347
|
},
|
|
323
348
|
onSwipe: (e) => {
|
|
324
|
-
if (!
|
|
325
|
-
if (
|
|
326
|
-
|
|
349
|
+
if (!In || !_.draggable || W) return;
|
|
350
|
+
if (K.value) {
|
|
351
|
+
Or(e);
|
|
327
352
|
return;
|
|
328
353
|
}
|
|
329
|
-
let t =
|
|
330
|
-
if (!
|
|
331
|
-
if (
|
|
332
|
-
|
|
354
|
+
let t = zn();
|
|
355
|
+
if (!Ln) {
|
|
356
|
+
if (U && t < -8) {
|
|
357
|
+
W = !0;
|
|
333
358
|
return;
|
|
334
359
|
}
|
|
335
|
-
if (t <
|
|
336
|
-
|
|
360
|
+
if (t < ht) return;
|
|
361
|
+
Ln = !0, B.value = !0, Bn();
|
|
337
362
|
}
|
|
338
|
-
e.preventDefault(),
|
|
363
|
+
e.preventDefault(), Vn(t);
|
|
339
364
|
},
|
|
340
365
|
onSwipeEnd: (e) => {
|
|
341
|
-
if (
|
|
342
|
-
|
|
366
|
+
if (K.value) {
|
|
367
|
+
Ar(e.timeStamp);
|
|
343
368
|
return;
|
|
344
369
|
}
|
|
345
|
-
if (!
|
|
346
|
-
|
|
370
|
+
if (!Ln) {
|
|
371
|
+
Yn();
|
|
347
372
|
return;
|
|
348
373
|
}
|
|
349
|
-
let t =
|
|
350
|
-
|
|
374
|
+
let t = zn();
|
|
375
|
+
Yn(), t >= mt && !S.value ? Gn() : (Un(!0), t >= mt && k(300));
|
|
351
376
|
}
|
|
352
|
-
}),
|
|
353
|
-
if (!
|
|
377
|
+
}), K = a(() => N.value === "bottom" && _.draggable && !ln.value && !!_.snapPoints?.length), Qn = d(0), $n = () => {
|
|
378
|
+
if (!Nt()) return;
|
|
354
379
|
let e = document.createElement("div");
|
|
355
|
-
e.style.cssText = "position:fixed;visibility:hidden;height:env(safe-area-inset-top,0px)", document.body.append(e),
|
|
356
|
-
},
|
|
357
|
-
process.env.NODE_ENV !== "production" && (
|
|
358
|
-
}) : []),
|
|
359
|
-
let e = ke(
|
|
380
|
+
e.style.cssText = "position:fixed;visibility:hidden;height:env(safe-area-inset-top,0px)", document.body.append(e), Qn.value = e.getBoundingClientRect().height, e.remove();
|
|
381
|
+
}, q = a(() => Math.max(0, oe.value - w.value - Qn.value - An.value)), er = /* @__PURE__ */ new Set(), J = a(() => K.value ? De(_.snapPoints, q.value, (e) => {
|
|
382
|
+
process.env.NODE_ENV !== "production" && (er.has(e) || (er.add(e), ie().warn(`BbOffCanvas: snap point ${JSON.stringify(e)} is not a stop. Use a fraction of the screen in (0, 1] or a pixel height like '240px'.`)));
|
|
383
|
+
}) : []), Y = d(0), tr = a(() => J.value[J.value.length - 1]?.height ?? 0), nr = (e) => tr.value - (J.value[e]?.height ?? 0), rr = () => K.value && Y.value < J.value.length - 1, ir = () => {
|
|
384
|
+
let e = ke(J.value, g.value);
|
|
360
385
|
if (e !== -1) return e;
|
|
361
|
-
if (
|
|
362
|
-
let [e] = De([
|
|
386
|
+
if (g.value !== void 0) {
|
|
387
|
+
let [e] = De([g.value], q.value), t = e ? J.value.findIndex((t) => Math.abs(t.height - e.height) < 1) : -1;
|
|
363
388
|
if (t !== -1) return t;
|
|
364
389
|
}
|
|
365
390
|
return 0;
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
clearTimeout(
|
|
370
|
-
|
|
391
|
+
}, X = d(null), ar = (e) => {
|
|
392
|
+
C.value?.style.setProperty("--snap-y", `${e}px`);
|
|
393
|
+
}, or = () => parseFloat(C.value?.style.getPropertyValue("--snap-y") || "0") || 0, Z, sr = 0, cr = (e) => {
|
|
394
|
+
clearTimeout(Z), Y.value = e, X.value = "instant", ar(nr(e)), cancelAnimationFrame(sr), sr = requestAnimationFrame(() => {
|
|
395
|
+
X.value === "instant" && (X.value = null);
|
|
371
396
|
});
|
|
372
|
-
},
|
|
373
|
-
let n =
|
|
374
|
-
n && (
|
|
375
|
-
},
|
|
376
|
-
function
|
|
377
|
-
clearTimeout(
|
|
397
|
+
}, Q = (e, { report: t = !0 } = {}) => {
|
|
398
|
+
let n = J.value[e];
|
|
399
|
+
n && (X.value === "settle" && Math.abs(Tr() - or()) < 1 && fr(), clearTimeout(Z), C.value?.removeEventListener("transitionend", pr), Y.value = e, X.value = "settle", ar(nr(e)), lr = t ? n.value : void 0, dr = t, C.value?.addEventListener("transitionend", pr), Z = setTimeout(fr, 550));
|
|
400
|
+
}, lr, ur, dr = !1;
|
|
401
|
+
function fr() {
|
|
402
|
+
clearTimeout(Z), C.value?.removeEventListener("transitionend", pr), X.value === "settle" && (X.value = null), dr && g.value !== lr && (ur = lr, g.value = lr), dr = !1, G();
|
|
378
403
|
}
|
|
379
|
-
function
|
|
380
|
-
e.target ===
|
|
404
|
+
function pr(e) {
|
|
405
|
+
e.target === C.value && e.propertyName === "translate" && fr();
|
|
381
406
|
}
|
|
382
|
-
let
|
|
383
|
-
let e =
|
|
407
|
+
let mr = () => {
|
|
408
|
+
let e = yt?.vnode.props;
|
|
384
409
|
return !!e && ("snap" in e || "onUpdate:snap" in e);
|
|
385
|
-
},
|
|
386
|
-
|
|
410
|
+
}, hr = () => {
|
|
411
|
+
K.value && ($n(), clearTimeout(Z), X.value = null, Y.value = mr() ? ir() : 0, ar(nr(Y.value)));
|
|
387
412
|
};
|
|
388
413
|
m(c, (e) => {
|
|
389
|
-
e &&
|
|
390
|
-
}),
|
|
391
|
-
c.value &&
|
|
392
|
-
}), m(
|
|
393
|
-
if (e !== void 0 && e ===
|
|
394
|
-
|
|
414
|
+
e && hr();
|
|
415
|
+
}), tt(() => {
|
|
416
|
+
c.value && hr();
|
|
417
|
+
}), m(g, (e) => {
|
|
418
|
+
if (e !== void 0 && e === ur) {
|
|
419
|
+
ur = void 0;
|
|
395
420
|
return;
|
|
396
421
|
}
|
|
397
|
-
if (
|
|
398
|
-
let t =
|
|
399
|
-
(t !==
|
|
400
|
-
}), m(() =>
|
|
401
|
-
if (!c.value || !
|
|
402
|
-
let e =
|
|
403
|
-
|
|
422
|
+
if (ur = void 0, !c.value || !K.value || X.value === "drag") return;
|
|
423
|
+
let t = ir();
|
|
424
|
+
(t !== Y.value || X.value === "settle") && Q(t, { report: !1 });
|
|
425
|
+
}), m(() => J.value.map((e) => e.height).join(), () => {
|
|
426
|
+
if (!c.value || !K.value || X.value === "drag") return;
|
|
427
|
+
let e = J.value.length - 1;
|
|
428
|
+
cr(Math.min(Y.value, Math.max(0, e)));
|
|
404
429
|
});
|
|
405
|
-
let
|
|
406
|
-
m(() =>
|
|
407
|
-
if (!c.value || !
|
|
408
|
-
let t =
|
|
409
|
-
e &&
|
|
430
|
+
let gr = null;
|
|
431
|
+
m(() => w.value > 0, (e) => {
|
|
432
|
+
if (!c.value || !K.value) return;
|
|
433
|
+
let t = J.value.length - 1;
|
|
434
|
+
e && Y.value < t ? (gr = Y.value, Q(t)) : !e && gr !== null && (Y.value === t && Q(gr), gr = null);
|
|
410
435
|
});
|
|
411
|
-
let
|
|
412
|
-
let t =
|
|
413
|
-
if (t < 0) return -Oe(-t,
|
|
414
|
-
let n =
|
|
415
|
-
return
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
let e =
|
|
436
|
+
let _r = Te(), vr = 0, yr = 0, br = 0, $ = !1, xr = !1, Sr = () => nr(0), Cr = (e) => {
|
|
437
|
+
let t = yr + e;
|
|
438
|
+
if (t < 0) return -Oe(-t, q.value);
|
|
439
|
+
let n = Sr();
|
|
440
|
+
return S.value && t > n ? n + Oe(t - n, q.value) : t;
|
|
441
|
+
}, wr = (e = 0) => {
|
|
442
|
+
_r.reset(), $ = !1, xr = !1, vr = Y.value, yr = or(), br = e;
|
|
443
|
+
}, Tr = () => {
|
|
444
|
+
let e = C.value;
|
|
420
445
|
if (!e) return 0;
|
|
421
|
-
let t = oe.value -
|
|
422
|
-
return e.getBoundingClientRect().top - (t -
|
|
423
|
-
},
|
|
424
|
-
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
},
|
|
428
|
-
let t = -
|
|
429
|
-
if (
|
|
430
|
-
if (
|
|
431
|
-
|
|
446
|
+
let t = oe.value - w.value;
|
|
447
|
+
return e.getBoundingClientRect().top - (t - tr.value);
|
|
448
|
+
}, Er = () => {
|
|
449
|
+
X.value === "settle" && (yr = Tr()), $ = !0, xr = !0, clearTimeout(Z), X.value = "drag", B.value = !0, z.value && (z.value.style.touchAction = "none");
|
|
450
|
+
}, Dr = (e, t) => {
|
|
451
|
+
ar(Cr(e)), _r.add(t, -e);
|
|
452
|
+
}, Or = (e) => {
|
|
453
|
+
let t = -Zn.value;
|
|
454
|
+
if (!$) {
|
|
455
|
+
if (U && !rr() && t < -8) {
|
|
456
|
+
W = !0;
|
|
432
457
|
return;
|
|
433
458
|
}
|
|
434
|
-
if (Math.abs(t) <
|
|
435
|
-
if (Math.abs(
|
|
436
|
-
|
|
459
|
+
if (Math.abs(t) < ht) return;
|
|
460
|
+
if (Math.abs(Xn.value) > Math.abs(t)) {
|
|
461
|
+
In = !1;
|
|
437
462
|
return;
|
|
438
463
|
}
|
|
439
|
-
|
|
464
|
+
Er();
|
|
440
465
|
}
|
|
441
|
-
e.preventDefault(),
|
|
442
|
-
},
|
|
443
|
-
let t =
|
|
466
|
+
e.preventDefault(), Dr(t, e.timeStamp);
|
|
467
|
+
}, kr = (e) => {
|
|
468
|
+
let t = or(), n = J.value, r = Ee({
|
|
444
469
|
heights: n.map((e) => e.height),
|
|
445
|
-
height:
|
|
446
|
-
velocity:
|
|
447
|
-
startIndex:
|
|
470
|
+
height: tr.value - t,
|
|
471
|
+
velocity: _r.velocity(e),
|
|
472
|
+
startIndex: vr
|
|
448
473
|
});
|
|
449
|
-
if (
|
|
450
|
-
if (
|
|
451
|
-
|
|
474
|
+
if (B.value = !1, r === -1) {
|
|
475
|
+
if (S.value) {
|
|
476
|
+
k(300), Q(0);
|
|
452
477
|
return;
|
|
453
478
|
}
|
|
454
|
-
|
|
455
|
-
} else
|
|
456
|
-
},
|
|
457
|
-
let t =
|
|
458
|
-
|
|
459
|
-
},
|
|
479
|
+
X.value = null, Gn();
|
|
480
|
+
} else Q(r);
|
|
481
|
+
}, Ar = (e) => {
|
|
482
|
+
let t = $;
|
|
483
|
+
$ = !1, Yn(), t && kr(e);
|
|
484
|
+
}, jr = null, Mr = (e) => {
|
|
460
485
|
if (e.pointerType !== "touch" && e.button === 0) {
|
|
461
|
-
|
|
486
|
+
jr = e.pointerId;
|
|
462
487
|
try {
|
|
463
488
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
464
489
|
} catch {}
|
|
465
|
-
|
|
490
|
+
wr(e.clientY);
|
|
466
491
|
}
|
|
467
|
-
},
|
|
468
|
-
if (e.pointerId !==
|
|
469
|
-
let t = e.clientY -
|
|
470
|
-
if (
|
|
471
|
-
if (Math.abs(t) <
|
|
472
|
-
|
|
492
|
+
}, Nr = (e) => {
|
|
493
|
+
if (e.pointerId !== jr) return;
|
|
494
|
+
let t = e.clientY - br;
|
|
495
|
+
if (!$) {
|
|
496
|
+
if (Math.abs(t) < ht) return;
|
|
497
|
+
Er();
|
|
473
498
|
}
|
|
474
|
-
|
|
475
|
-
},
|
|
476
|
-
if (e.pointerId !==
|
|
477
|
-
|
|
478
|
-
let t =
|
|
479
|
-
|
|
480
|
-
},
|
|
481
|
-
if (
|
|
482
|
-
|
|
499
|
+
Dr(t, e.timeStamp);
|
|
500
|
+
}, Pr = (e) => {
|
|
501
|
+
if (e.pointerId !== jr) return;
|
|
502
|
+
jr = null;
|
|
503
|
+
let t = $;
|
|
504
|
+
$ = !1, t && kr(e.timeStamp);
|
|
505
|
+
}, Fr = () => {
|
|
506
|
+
if (xr) {
|
|
507
|
+
xr = !1;
|
|
483
508
|
return;
|
|
484
509
|
}
|
|
485
|
-
let e = (
|
|
486
|
-
|
|
487
|
-
},
|
|
488
|
-
let t =
|
|
489
|
-
ArrowUp:
|
|
490
|
-
ArrowRight:
|
|
491
|
-
PageUp:
|
|
492
|
-
ArrowDown:
|
|
493
|
-
ArrowLeft:
|
|
494
|
-
PageDown:
|
|
510
|
+
let e = (Y.value + 1) % J.value.length;
|
|
511
|
+
Q(e);
|
|
512
|
+
}, Ir = (e) => {
|
|
513
|
+
let t = J.value.length - 1, n = {
|
|
514
|
+
ArrowUp: Y.value + 1,
|
|
515
|
+
ArrowRight: Y.value + 1,
|
|
516
|
+
PageUp: Y.value + 1,
|
|
517
|
+
ArrowDown: Y.value - 1,
|
|
518
|
+
ArrowLeft: Y.value - 1,
|
|
519
|
+
PageDown: Y.value - 1,
|
|
495
520
|
Home: 0,
|
|
496
521
|
End: t
|
|
497
522
|
};
|
|
498
523
|
if (!(e.key in n)) return;
|
|
499
524
|
e.preventDefault();
|
|
500
525
|
let r = Math.min(t, Math.max(0, n[e.key]));
|
|
501
|
-
r !==
|
|
502
|
-
},
|
|
503
|
-
let e =
|
|
504
|
-
return t === e - 1 && n &&
|
|
505
|
-
}),
|
|
506
|
-
if (
|
|
526
|
+
r !== Y.value && Q(r);
|
|
527
|
+
}, Lr = a(() => J.value.length > 1), Rr = a(() => {
|
|
528
|
+
let e = J.value.length, t = Y.value, n = J.value[t];
|
|
529
|
+
return t === e - 1 && n && q.value - n.height < 1 ? x("offCanvas.snapFull").value : x("offCanvas.snapValue", t + 1, e).value;
|
|
530
|
+
}), zr = (e) => {
|
|
531
|
+
if (!rr() || X.value === "drag") return;
|
|
507
532
|
let t = e.target;
|
|
508
533
|
if (!(t instanceof HTMLElement) || !t.closest(".bb-offcanvas__content")) return;
|
|
509
|
-
let n = (
|
|
510
|
-
t.getBoundingClientRect().bottom > n + 1 &&
|
|
511
|
-
},
|
|
512
|
-
"--snap-h": `${
|
|
513
|
-
"--snap-floor": `${
|
|
534
|
+
let n = (C.value?.querySelector(".bb-offcanvas__footer"))?.getBoundingClientRect().top ?? oe.value;
|
|
535
|
+
t.getBoundingClientRect().bottom > n + 1 && Q(J.value.length - 1);
|
|
536
|
+
}, Br = a(() => K.value ? {
|
|
537
|
+
"--snap-h": `${tr.value}px`,
|
|
538
|
+
"--snap-floor": `${Sr()}px`
|
|
514
539
|
} : {});
|
|
515
|
-
return
|
|
516
|
-
clearTimeout(
|
|
517
|
-
}),
|
|
518
|
-
id: p(
|
|
540
|
+
return $e(() => {
|
|
541
|
+
clearTimeout(Z), cancelAnimationFrame(sr);
|
|
542
|
+
}), et(() => j("unmounted")), (e, t) => (u(), s("dialog", l({
|
|
543
|
+
id: p(y).domId.value || void 0,
|
|
519
544
|
ref_key: "dialog",
|
|
520
|
-
ref:
|
|
521
|
-
"aria-describedby":
|
|
522
|
-
"aria-labelledby":
|
|
545
|
+
ref: C,
|
|
546
|
+
"aria-describedby": Ft.value && Lt() ? It : void 0,
|
|
547
|
+
"aria-labelledby": Ft.value && (Et() || e.$slots.header) ? E : void 0,
|
|
523
548
|
class: ["bb-offcanvas", [{
|
|
524
549
|
"bb-offcanvas--open": c.value,
|
|
525
|
-
"bb-offcanvas--visible":
|
|
526
|
-
"bb-offcanvas--fullscreen":
|
|
527
|
-
"bb-offcanvas--deny-close":
|
|
528
|
-
"bb-offcanvas--dragging":
|
|
529
|
-
"bb-offcanvas--swipe-exit":
|
|
530
|
-
"bb-offcanvas--instant-stack":
|
|
531
|
-
"bb-offcanvas--covered":
|
|
532
|
-
"bb-offcanvas--above":
|
|
550
|
+
"bb-offcanvas--visible": O.value,
|
|
551
|
+
"bb-offcanvas--fullscreen": ln.value,
|
|
552
|
+
"bb-offcanvas--deny-close": an.value,
|
|
553
|
+
"bb-offcanvas--dragging": B.value,
|
|
554
|
+
"bb-offcanvas--swipe-exit": Fn.value,
|
|
555
|
+
"bb-offcanvas--instant-stack": Mn.value,
|
|
556
|
+
"bb-offcanvas--covered": Dn.value,
|
|
557
|
+
"bb-offcanvas--above": kn.value,
|
|
533
558
|
"bb-offcanvas--has-handle": i.draggable,
|
|
534
|
-
"bb-offcanvas--no-header": !
|
|
535
|
-
"bb-offcanvas--keyboard": p(
|
|
536
|
-
"bb-offcanvas--snap":
|
|
537
|
-
"bb-offcanvas--snap-low":
|
|
538
|
-
"bb-offcanvas--snap-settling":
|
|
539
|
-
"bb-offcanvas--snap-instant":
|
|
540
|
-
[`bb-offcanvas--${
|
|
559
|
+
"bb-offcanvas--no-header": !Dt(),
|
|
560
|
+
"bb-offcanvas--keyboard": p(w) > 0,
|
|
561
|
+
"bb-offcanvas--snap": K.value,
|
|
562
|
+
"bb-offcanvas--snap-low": rr(),
|
|
563
|
+
"bb-offcanvas--snap-settling": X.value === "settle",
|
|
564
|
+
"bb-offcanvas--snap-instant": X.value === "instant",
|
|
565
|
+
[`bb-offcanvas--${N.value}`]: !0
|
|
541
566
|
}].flat()],
|
|
542
|
-
inert: !c.value && !
|
|
567
|
+
inert: !c.value && !O.value || Dn.value,
|
|
543
568
|
style: {
|
|
544
|
-
"--max-size":
|
|
545
|
-
...
|
|
546
|
-
"--transition-duration": `${
|
|
547
|
-
"--stack-gap": `${
|
|
548
|
-
"--keyboard": `${p(
|
|
549
|
-
...
|
|
550
|
-
...
|
|
569
|
+
"--max-size": en.value,
|
|
570
|
+
...Zt.value,
|
|
571
|
+
"--transition-duration": `${_.transitionDuration}ms`,
|
|
572
|
+
"--stack-gap": `${_.stackGap}px`,
|
|
573
|
+
"--keyboard": `${p(w)}px`,
|
|
574
|
+
...jn.value,
|
|
575
|
+
...Br.value
|
|
551
576
|
}
|
|
552
|
-
},
|
|
553
|
-
onCancel:
|
|
554
|
-
onCommand:
|
|
555
|
-
onClick:
|
|
556
|
-
onFocusin:
|
|
557
|
-
onPointercancel:
|
|
558
|
-
onPointerdown:
|
|
559
|
-
}, p(
|
|
560
|
-
|
|
561
|
-
i.draggable && !
|
|
562
|
-
key: `body-1-${
|
|
577
|
+
}, rt(p(ve), !0), {
|
|
578
|
+
onCancel: st(tn, ["self"]),
|
|
579
|
+
onCommand: rn,
|
|
580
|
+
onClick: st(Vt, ["self"]),
|
|
581
|
+
onFocusin: zr,
|
|
582
|
+
onPointercancel: zt,
|
|
583
|
+
onPointerdown: Bt
|
|
584
|
+
}, p(b).rootAttrs), [
|
|
585
|
+
Ft.value ? (u(), s(Ge, { key: 0 }, [
|
|
586
|
+
i.draggable && !Lr.value ? (u(), s("div", {
|
|
587
|
+
key: `body-1-${T.value}`,
|
|
563
588
|
"aria-hidden": "true",
|
|
564
589
|
class: "bb-offcanvas__handle"
|
|
565
590
|
})) : o("", !0),
|
|
566
|
-
|
|
567
|
-
key: `body-2-${
|
|
591
|
+
Dt() ? (u(), s("div", l({
|
|
592
|
+
key: `body-2-${T.value}`,
|
|
568
593
|
class: "bb-offcanvas__header"
|
|
569
|
-
}, p(
|
|
570
|
-
close:
|
|
571
|
-
complete: p(
|
|
572
|
-
data: p(
|
|
573
|
-
reset: p(
|
|
594
|
+
}, p(b).header), [f(e.$slots, "header", {
|
|
595
|
+
close: M,
|
|
596
|
+
complete: p(y).complete,
|
|
597
|
+
data: p(y).data.value,
|
|
598
|
+
reset: p(y).reset,
|
|
574
599
|
title: i.title,
|
|
575
|
-
titleId:
|
|
600
|
+
titleId: E
|
|
576
601
|
}, () => [
|
|
577
|
-
|
|
602
|
+
Et() ? (u(), s("span", l({
|
|
578
603
|
key: 0,
|
|
579
|
-
id:
|
|
604
|
+
id: E,
|
|
580
605
|
class: "bb-offcanvas__title"
|
|
581
|
-
}, p(
|
|
582
|
-
data: p(
|
|
606
|
+
}, p(b).title), [f(e.$slots, "title", {
|
|
607
|
+
data: p(y).data.value,
|
|
583
608
|
text: i.title
|
|
584
|
-
}, () => [
|
|
585
|
-
|
|
609
|
+
}, () => [Je(nt(i.title), 1)])], 16)) : o("", !0),
|
|
610
|
+
Lt() ? (u(), s("p", l({
|
|
586
611
|
key: 1,
|
|
587
|
-
id:
|
|
612
|
+
id: It,
|
|
588
613
|
class: "bb-offcanvas__description"
|
|
589
|
-
}, p(
|
|
590
|
-
data: p(
|
|
614
|
+
}, p(b).description), [f(e.$slots, "description", {
|
|
615
|
+
data: p(y).data.value,
|
|
591
616
|
text: i.description
|
|
592
|
-
}, () => [
|
|
593
|
-
i.hideClose ? o("", !0) : (u(),
|
|
617
|
+
}, () => [Je(nt(i.description), 1)])], 16)) : o("", !0),
|
|
618
|
+
i.hideClose ? o("", !0) : (u(), Ke(Se, l({
|
|
594
619
|
key: 2,
|
|
595
|
-
"aria-label":
|
|
596
|
-
},
|
|
620
|
+
"aria-label": Tt.value
|
|
621
|
+
}, St.value), null, 16, ["aria-label"]))
|
|
597
622
|
])], 16)) : o("", !0),
|
|
598
623
|
(u(), s("div", l({
|
|
599
|
-
key: `body-3-${
|
|
624
|
+
key: `body-3-${T.value}`,
|
|
600
625
|
ref_key: "body",
|
|
601
|
-
ref:
|
|
626
|
+
ref: z,
|
|
602
627
|
class: "bb-offcanvas__content scrollbar-border"
|
|
603
|
-
}, p(
|
|
604
|
-
close:
|
|
605
|
-
complete: p(
|
|
606
|
-
data: p(
|
|
607
|
-
reset: p(
|
|
608
|
-
}), !
|
|
628
|
+
}, p(b).content), [qe("div", ut, [f(e.$slots, "default", {
|
|
629
|
+
close: M,
|
|
630
|
+
complete: p(y).complete,
|
|
631
|
+
data: p(y).data.value,
|
|
632
|
+
reset: p(y).reset
|
|
633
|
+
}), !Dt() && !i.hideClose ? (u(), Ke(Se, l({
|
|
609
634
|
key: 0,
|
|
610
|
-
"aria-label":
|
|
611
|
-
},
|
|
635
|
+
"aria-label": Tt.value
|
|
636
|
+
}, St.value), null, 16, ["aria-label"])) : o("", !0)])], 16)),
|
|
612
637
|
(u(), s("div", l({
|
|
613
|
-
key: `body-4-${
|
|
638
|
+
key: `body-4-${T.value}`,
|
|
614
639
|
class: "bb-offcanvas__footer"
|
|
615
|
-
}, p(
|
|
616
|
-
close:
|
|
617
|
-
complete: p(
|
|
618
|
-
data: p(
|
|
619
|
-
reset: p(
|
|
620
|
-
})], 16))
|
|
640
|
+
}, p(b).footer), [f(e.$slots, "footer", {
|
|
641
|
+
close: M,
|
|
642
|
+
complete: p(y).complete,
|
|
643
|
+
data: p(y).data.value,
|
|
644
|
+
reset: p(y).reset
|
|
645
|
+
}, () => [Ye(jt)])], 16))
|
|
621
646
|
], 64)) : o("", !0),
|
|
622
|
-
|
|
647
|
+
Ft.value && Lr.value ? (u(), s("div", {
|
|
623
648
|
key: 1,
|
|
624
|
-
"aria-label": p(
|
|
649
|
+
"aria-label": p(x)("offCanvas.snapLabel").value,
|
|
625
650
|
"aria-orientation": "vertical",
|
|
626
|
-
"aria-valuemax":
|
|
651
|
+
"aria-valuemax": J.value.length,
|
|
627
652
|
"aria-valuemin": "1",
|
|
628
|
-
"aria-valuenow":
|
|
629
|
-
"aria-valuetext":
|
|
653
|
+
"aria-valuenow": Y.value + 1,
|
|
654
|
+
"aria-valuetext": Rr.value,
|
|
630
655
|
class: "bb-offcanvas__handle bb-offcanvas__handle--slider",
|
|
631
656
|
role: "slider",
|
|
632
657
|
tabindex: "0",
|
|
633
|
-
onClick:
|
|
634
|
-
onKeydown:
|
|
635
|
-
onLostpointercapture:
|
|
636
|
-
onPointercancel:
|
|
637
|
-
onPointerdown:
|
|
638
|
-
onPointermove:
|
|
639
|
-
onPointerup:
|
|
640
|
-
}, null, 40,
|
|
641
|
-
|
|
642
|
-
], 16,
|
|
658
|
+
onClick: Fr,
|
|
659
|
+
onKeydown: Ir,
|
|
660
|
+
onLostpointercapture: Pr,
|
|
661
|
+
onPointercancel: Pr,
|
|
662
|
+
onPointerdown: Mr,
|
|
663
|
+
onPointermove: Nr,
|
|
664
|
+
onPointerup: Pr
|
|
665
|
+
}, null, 40, dt)) : o("", !0),
|
|
666
|
+
qe("span", ft, nt(p(Ut).text.value), 1)
|
|
667
|
+
], 16, lt));
|
|
643
668
|
}
|
|
644
669
|
});
|
|
645
|
-
export {
|
|
670
|
+
export { g as default };
|