bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.21
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 +72 -33
- package/dist/ai/BbAccordion.md +3 -3
- package/dist/ai/BbAlert.md +9 -5
- package/dist/ai/BbAsterisk.md +17 -0
- package/dist/ai/BbAvatar.md +12 -3
- package/dist/ai/BbBadge.md +15 -10
- package/dist/ai/BbBadgeButton.md +16 -16
- package/dist/ai/BbBaseButton.md +16 -16
- package/dist/ai/BbBaseCheckbox.md +8 -8
- package/dist/ai/BbBaseCheckboxGroup.md +13 -13
- package/dist/ai/BbBaseCheckboxIcon.md +26 -9
- package/dist/ai/BbBaseColorInput.md +11 -11
- package/dist/ai/BbBaseDatePicker.md +6 -6
- package/dist/ai/BbBaseDatePickerInput.md +15 -15
- package/dist/ai/BbBaseInputContainer.md +12 -12
- package/dist/ai/BbBaseNumberInput.md +8 -8
- package/dist/ai/BbBaseRadio.md +5 -5
- package/dist/ai/BbBaseRadioGroup.md +7 -7
- package/dist/ai/BbBaseRadioIcon.md +25 -9
- package/dist/ai/BbBaseRating.md +5 -5
- package/dist/ai/BbBaseSelect.md +22 -21
- package/dist/ai/BbBaseSlider.md +9 -9
- package/dist/ai/BbBaseSwitch.md +8 -8
- package/dist/ai/BbBaseSwitchGroup.md +13 -13
- package/dist/ai/BbBaseSwitchIcon.md +28 -10
- package/dist/ai/BbBaseTag.md +10 -10
- package/dist/ai/BbBaseTextInput.md +9 -9
- package/dist/ai/BbBaseTextarea.md +9 -9
- package/dist/ai/BbBaseTimePickerInput.md +13 -13
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +15 -15
- package/dist/ai/BbCheckbox.md +18 -17
- package/dist/ai/BbCheckboxGroup.md +15 -14
- package/dist/ai/BbCollapsible.md +11 -9
- package/dist/ai/BbColorInput.md +15 -15
- package/dist/ai/BbColorPalette.md +12 -6
- package/dist/ai/BbConfirm.md +12 -5
- package/dist/ai/BbDatePicker.md +13 -13
- package/dist/ai/BbDatePickerInput.md +20 -20
- package/dist/ai/BbDialog.md +78 -12
- package/dist/ai/BbDropdown.md +132 -22
- package/dist/ai/BbDropdownButton.md +12 -12
- package/dist/ai/BbDropdownGroup.md +1 -1
- package/dist/ai/BbDropzone.md +4 -4
- package/dist/ai/BbForm.md +49 -14
- package/dist/ai/BbIcon.md +6 -0
- package/dist/ai/BbIndicator.md +5 -5
- package/dist/ai/BbNumberInput.md +11 -11
- package/dist/ai/BbOffCanvas.md +90 -20
- package/dist/ai/BbPagination.md +3 -3
- package/dist/ai/BbPopover.md +32 -17
- package/dist/ai/BbProgress.md +7 -4
- package/dist/ai/BbRadio.md +16 -15
- package/dist/ai/BbRadioGroup.md +20 -17
- package/dist/ai/BbRating.md +11 -11
- package/dist/ai/BbSelect.md +138 -37
- package/dist/ai/BbSelectPopover.md +40 -41
- package/dist/ai/BbSlider.md +37 -22
- package/dist/ai/BbSmoothHeight.md +1 -1
- package/dist/ai/BbSwitch.md +25 -10
- package/dist/ai/BbSwitchGroup.md +17 -14
- package/dist/ai/BbTable.md +920 -109
- package/dist/ai/BbTabs.md +28 -14
- package/dist/ai/BbTabsList.md +1 -1
- package/dist/ai/BbTabsPanes.md +1 -1
- package/dist/ai/BbTabsRoot.md +10 -10
- package/dist/ai/BbTag.md +14 -14
- package/dist/ai/BbTextInput.md +16 -15
- package/dist/ai/BbTextarea.md +13 -13
- package/dist/ai/BbTimePicker.md +10 -10
- package/dist/ai/BbTimePickerInput.md +17 -17
- package/dist/ai/BbToast.md +1 -1
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/BbTooltip.md +12 -10
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonInputWrapper.md +10 -10
- package/dist/ai/CommonPopover.md +6 -6
- package/dist/ai/FlatListBox.md +5 -5
- package/dist/ai/GroupedListBox.md +5 -5
- package/dist/ai/ListBox.md +4 -4
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +128 -2
- package/dist/ai/components.json +917 -100
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useConfirm.md +5 -3
- package/dist/ai/guides/ai-router.md +9 -4
- package/dist/ai/guides/component-picker.md +18 -18
- package/dist/ai/guides/design-language.md +14 -14
- package/dist/ai/guides/design-tokens.md +25 -18
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +11 -5
- package/dist/ai/guides/installation-and-plugin-setup.md +85 -23
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
- package/dist/ai/guides/migration/components/bb-rating.md +8 -2
- package/dist/ai/guides/migration/components/bb-select.md +5 -2
- package/dist/ai/guides/migration/components/bb-table.md +560 -28
- package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
- package/dist/ai/guides/migration/v2-to-v3.md +260 -89
- package/dist/ai/guides/ssr-prefill.md +120 -0
- package/dist/ai/index.md +10 -9
- package/dist/ai/recipes/inertia/approvals-inbox.md +0 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
- package/dist/ai/recipes/inertia/ownership-atlas.md +49 -29
- package/dist/ai/recipes/inertia/record-form.md +0 -1
- package/dist/ai/recipes/inertia/records-workspace.md +26 -8
- package/dist/ai/recipes/inertia/upload-center.md +0 -1
- package/dist/ai/recipes/nuxt/approvals-inbox.md +0 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
- package/dist/ai/recipes/nuxt/record-form.md +0 -1
- package/dist/ai/recipes/nuxt/records-workspace.md +26 -8
- package/dist/ai/recipes/nuxt/upload-center.md +0 -1
- package/dist/ai/recipes/vue/approvals-inbox.md +0 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
- package/dist/ai/recipes/vue/records-workspace.md +26 -8
- package/dist/ai/recipes/vue/upload-center.md +0 -1
- package/dist/ai/source/BbAlert.md +60 -2
- package/dist/ai/source/BbAvatar.md +3 -3
- package/dist/ai/source/BbBadge.md +60 -15
- package/dist/ai/source/BbBadgeButton.md +8 -2
- package/dist/ai/source/BbBaseButton.md +3 -1
- package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
- package/dist/ai/source/BbBaseDatePicker.md +3 -1
- package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
- package/dist/ai/source/BbBaseInputContainer.md +52 -1
- package/dist/ai/source/BbBaseRadioGroup.md +4 -0
- package/dist/ai/source/BbBaseRating.md +3 -1
- package/dist/ai/source/BbBaseSelect.md +71 -16
- package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
- package/dist/ai/source/BbBreadcrumbs.md +31 -0
- package/dist/ai/source/BbButton.md +51 -24
- package/dist/ai/source/BbCheckbox.md +15 -1
- package/dist/ai/source/BbCheckboxGroup.md +2 -1
- package/dist/ai/source/BbCollapsible.md +7 -1
- package/dist/ai/source/BbColorInput.md +3 -4
- package/dist/ai/source/BbColorPalette.md +3 -4
- package/dist/ai/source/BbDatePicker.md +5 -1
- package/dist/ai/source/BbDatePickerInput.md +5 -1
- package/dist/ai/source/BbDialog.md +175 -19
- package/dist/ai/source/BbDropdown.md +376 -69
- package/dist/ai/source/BbDropdownGroup.md +330 -59
- package/dist/ai/source/BbForm.md +93 -5
- package/dist/ai/source/BbIcon.md +46 -36
- package/dist/ai/source/BbNumberInput.md +3 -4
- package/dist/ai/source/BbOffCanvas.md +474 -194
- package/dist/ai/source/BbPopover.md +24 -17
- package/dist/ai/source/BbProgress.md +2 -2
- package/dist/ai/source/BbRadio.md +15 -1
- package/dist/ai/source/BbRadioGroup.md +3 -1
- package/dist/ai/source/BbSelect.md +50 -2
- package/dist/ai/source/BbSelectPopover.md +171 -23
- package/dist/ai/source/BbSlider.md +3 -4
- package/dist/ai/source/BbSwitch.md +15 -1
- package/dist/ai/source/BbSwitchGroup.md +8 -5
- package/dist/ai/source/BbTable.md +5092 -1446
- package/dist/ai/source/BbTabs.md +6 -7
- package/dist/ai/source/BbTabsList.md +6 -7
- package/dist/ai/source/BbTabsPanes.md +6 -7
- package/dist/ai/source/BbTabsRoot.md +6 -7
- package/dist/ai/source/BbTag.md +3 -4
- package/dist/ai/source/BbTextInput.md +3 -4
- package/dist/ai/source/BbTextarea.md +3 -4
- package/dist/ai/source/BbTimePicker.md +4 -1
- package/dist/ai/source/BbTimePickerInput.md +5 -1
- package/dist/ai/source/BbToast.md +3 -1
- package/dist/ai/source/BbTooltip.md +5 -1
- package/dist/ai/source/CommonInputWrapper.md +4 -0
- package/dist/ai/source/CommonPopover.md +6 -0
- package/dist/ai/source/FlatListBox.md +11 -5
- package/dist/ai/source/GroupedListBox.md +7 -5
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAlert/types.d.ts +10 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
- package/dist/components/BbBadge/types.d.ts +8 -2
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
- package/dist/components/BbBaseSelect/types.d.ts +22 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
- package/dist/components/BbCollapsible/types.d.ts +7 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
- package/dist/components/BbDialog/types.d.ts +29 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDropdown/types.d.ts +20 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
- package/dist/components/BbIcon/iconCache.d.ts +33 -0
- package/dist/components/BbIcon/iconCache.js +17 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
- package/dist/components/BbOffCanvas/types.d.ts +30 -5
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
- package/dist/components/BbPopover/types.d.ts +3 -2
- package/dist/components/BbRadioGroup/types.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
- package/dist/components/BbSelect/types.d.ts +32 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
- package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/components/BbTable/BbTable.vue.d.ts +10 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1433 -600
- package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
- package/dist/components/BbTable/BbTableDataRow.js +136 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
- package/dist/components/BbTable/BbTableExpandRow.js +52 -0
- package/dist/components/BbTable/types.d.ts +324 -111
- package/dist/components/BbTable/utils.d.ts +92 -4
- package/dist/components/BbTable/utils.js +71 -36
- package/dist/components/BbTabs/types.d.ts +0 -8
- package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/BbTooltip/types.d.ts +5 -1
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/composables/useBaseOptions.js +30 -20
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +5 -5
- package/dist/composables/usePrefill.d.ts +21 -2
- package/dist/composables/usePrefill.js +25 -19
- package/dist/composables/useSsrState.d.ts +20 -0
- package/dist/composables/useSsrState.js +13 -0
- package/dist/composables/useTableWidthContext.d.ts +24 -4
- package/dist/composables/useTableWidthContext.js +31 -28
- package/dist/composables/useToast.js +5 -5
- package/dist/deprecation/ai-deprecations.json.d.ts +121 -11
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +63 -23
- package/dist/i18n/locales/cs.json +4 -1
- package/dist/i18n/locales/da.json +4 -1
- package/dist/i18n/locales/de.json +4 -1
- package/dist/i18n/locales/el.json +4 -1
- package/dist/i18n/locales/en.json +4 -1
- package/dist/i18n/locales/es.json +4 -1
- package/dist/i18n/locales/fi.json +4 -1
- package/dist/i18n/locales/fr.json +4 -1
- package/dist/i18n/locales/hu.json +4 -1
- package/dist/i18n/locales/it.json +4 -1
- package/dist/i18n/locales/ja.json +4 -1
- package/dist/i18n/locales/ko.json +4 -1
- package/dist/i18n/locales/nb.json +4 -1
- package/dist/i18n/locales/nl.json +4 -1
- package/dist/i18n/locales/pl.json +4 -1
- package/dist/i18n/locales/pt.json +4 -1
- package/dist/i18n/locales/ro.json +4 -1
- package/dist/i18n/locales/ru.json +4 -1
- package/dist/i18n/locales/sv.json +4 -1
- package/dist/i18n/locales/tr.json +4 -1
- package/dist/i18n/locales/uk.json +4 -1
- package/dist/i18n/locales/zh-cn.json +4 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +69 -67
- package/dist/llms-full.txt +3997 -1458
- package/dist/llms-medium.txt +140 -73
- package/dist/llms.txt +7 -6
- package/dist/locale-blueprint.json +4 -1
- package/dist/nuxt-auto-imports.d.ts +100 -0
- package/dist/nuxt-auto-imports.js +55 -0
- package/dist/nuxt-module.d.ts +22 -1
- package/dist/nuxt.js +22 -8
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +20 -19
- package/dist/runtime/nuxt-plugin.js +28 -21
- package/dist/styles.css +1 -1
- package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
- package/dist/utilities/misc/listboxMetrics.js +2 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
- package/dist/validated/BbSelect.vue.d.ts +2 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/useValidatedField.js +25 -23
- package/dist/vite.js +7 -3
- package/llms.txt +8 -7
- package/package.json +2 -2
- package/scripts/lib/eslint-plugin.d.ts +19 -1
- package/scripts/lib/eslint-plugin.mjs +155 -14
- package/scripts/lib/html-attributes.mjs +91 -0
- package/scripts/lib/validate-bb-markup.mjs +59 -11
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BbPopoverProps, BbPopoverEvents, BbPopoverSlots, PopoverTrigger } from './types';
|
|
2
|
-
export type { BbPopoverProps, BbPopoverEvents, BbPopoverSlots, PopoverTrigger };
|
|
3
2
|
type __VLS_Props = BbPopoverProps;
|
|
4
3
|
type __VLS_Slots = BbPopoverSlots;
|
|
4
|
+
export type { BbPopoverProps, BbPopoverEvents, BbPopoverSlots, PopoverTrigger };
|
|
5
5
|
type __VLS_ModelProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Used by v-model to open / close the popover. A popover with no `v-model`
|
|
@@ -26,11 +26,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
26
26
|
onShown?: (() => any) | undefined;
|
|
27
27
|
onHidden?: (() => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
+
adaptive: boolean;
|
|
29
30
|
placement: import('../..').Placement | "cursor";
|
|
30
31
|
offset: number;
|
|
31
32
|
padding: number;
|
|
32
33
|
transitionDuration: number;
|
|
33
|
-
adaptive: boolean;
|
|
34
34
|
trigger: PopoverTrigger | PopoverTrigger[];
|
|
35
35
|
scrollable: boolean;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { useId as t } from "../../composables/useId.js";
|
|
3
|
+
import { useUntil as n } from "../../composables/useUntil.js";
|
|
4
|
+
import { removedPropsFor as r } from "../../deprecation/removedProps.js";
|
|
5
|
+
import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
6
|
+
import { extractDomContainer as a } from "../../utilities/functions/extractDomContainer.js";
|
|
7
|
+
import { transitions as o } from "../../utilities/misc/transitions.js";
|
|
7
8
|
import ee from "../CommonPopover/CommonPopover.vue.js";
|
|
8
|
-
import { parseWidthString as
|
|
9
|
-
import { isTopEscapeEntry as
|
|
10
|
-
import { useMobile as
|
|
11
|
-
import { useClosingInert as
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { useElementSize as ve, useIntersectionObserver as ye } from "@vueuse/core";
|
|
9
|
+
import { parseWidthString as te } from "../../utilities/functions/parseWidthString.js";
|
|
10
|
+
import { isTopEscapeEntry as ne, pushEscapeEntry as re, removeEscapeEntry as ie } from "../../utils/overlayEscapeStack.js";
|
|
11
|
+
import { useMobile as ae } from "../../composables/useMobile.js";
|
|
12
|
+
import { useClosingInert as oe } from "../../composables/useClosingInert.js";
|
|
13
|
+
import se from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
14
|
+
import { Fragment as ce, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as le, createSlots as ue, defineComponent as d, mergeModels as f, mergeProps as p, nextTick as de, normalizeClass as fe, normalizeProps as pe, normalizeStyle as me, onBeforeUnmount as he, onMounted as ge, openBlock as m, ref as h, renderSlot as g, unref as _, useModel as _e, useTemplateRef as ve, watch as v, withCtx as y } from "vue";
|
|
15
|
+
import { useElementSize as ye, useIntersectionObserver as be } from "@vueuse/core";
|
|
16
16
|
//#region src/components/BbPopover/BbPopover.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
17
|
+
var xe = ["inert"], Se = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "bb-popover__header"
|
|
20
|
-
},
|
|
20
|
+
}, Ce = { class: "bb-popover__content scrollbar-border" }, we = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "bb-popover__footer"
|
|
23
|
-
},
|
|
23
|
+
}, Te = 500, Ee = 10, b = /*@__PURE__*/ d({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "BbPopover",
|
|
26
|
-
props: /*@__PURE__*/
|
|
26
|
+
props: /*@__PURE__*/ f({
|
|
27
27
|
activator: {},
|
|
28
28
|
adaptive: {
|
|
29
29
|
type: Boolean,
|
|
@@ -42,7 +42,7 @@ var be = ["inert"], xe = {
|
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: !1
|
|
44
44
|
},
|
|
45
|
-
transitionDuration: { default:
|
|
45
|
+
transitionDuration: { default: o.medium },
|
|
46
46
|
trigger: { default: "click" },
|
|
47
47
|
width: {}
|
|
48
48
|
}, {
|
|
@@ -52,39 +52,39 @@ var be = ["inert"], xe = {
|
|
|
52
52
|
},
|
|
53
53
|
modelModifiers: {}
|
|
54
54
|
}),
|
|
55
|
-
emits: /*@__PURE__*/
|
|
55
|
+
emits: /*@__PURE__*/ f([
|
|
56
56
|
"show",
|
|
57
57
|
"hide",
|
|
58
58
|
"shown",
|
|
59
59
|
"hidden"
|
|
60
60
|
], ["update:modelValue"]),
|
|
61
|
-
setup(
|
|
62
|
-
let
|
|
63
|
-
process.env.NODE_ENV !== "production" &&
|
|
64
|
-
let { id:
|
|
65
|
-
|
|
66
|
-
() =>
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
setup(o, { emit: d }) {
|
|
62
|
+
let f = _e(o, "modelValue"), b = o, x = d, De = e();
|
|
63
|
+
process.env.NODE_ENV !== "production" && i("BbPopover", r("BbPopover"));
|
|
64
|
+
let { id: Oe } = t(), S = b.id ?? Oe.value, C = `bbp_${S}`, w = h(), T = ve("popoverRef"), E = s(() => a(T.value)), D = n(f), O = s(() => b.activator != null), { isMobile: k } = ae(), A = () => (b.adaptive ?? De.adaptive) && k.value ? "canvas" : "popover", j = h(A()), M = s(() => j.value === "canvas");
|
|
65
|
+
v([
|
|
66
|
+
() => b.adaptive,
|
|
67
|
+
k,
|
|
68
|
+
f
|
|
69
69
|
], () => {
|
|
70
|
-
|
|
70
|
+
f.value || (j.value = A());
|
|
71
71
|
});
|
|
72
|
-
let
|
|
72
|
+
let ke = s(() => ({
|
|
73
73
|
side: "bottom",
|
|
74
74
|
size: "auto",
|
|
75
75
|
draggable: !0,
|
|
76
|
-
eager:
|
|
77
|
-
disabled:
|
|
78
|
-
focusTarget:
|
|
79
|
-
transitionDuration:
|
|
80
|
-
...
|
|
81
|
-
...
|
|
82
|
-
})),
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
let e =
|
|
76
|
+
eager: b.eager,
|
|
77
|
+
disabled: b.disabled,
|
|
78
|
+
focusTarget: b.focusTarget,
|
|
79
|
+
transitionDuration: b.transitionDuration,
|
|
80
|
+
...b.offCanvasProps,
|
|
81
|
+
...D.value && !b.offCanvasProps?.title ? { "aria-labelledby": S } : {}
|
|
82
|
+
})), Ae = () => {
|
|
83
|
+
w.value?.focus(), x("hidden");
|
|
84
|
+
}, N = s(() => {
|
|
85
|
+
let e = b.trigger;
|
|
86
86
|
return new Set(Array.isArray(e) ? e : [e]);
|
|
87
|
-
}),
|
|
87
|
+
}), P = (e, t) => ({ getBoundingClientRect: () => ({
|
|
88
88
|
x: e,
|
|
89
89
|
y: t,
|
|
90
90
|
width: 0,
|
|
@@ -96,19 +96,19 @@ var be = ["inert"], xe = {
|
|
|
96
96
|
toJSON() {
|
|
97
97
|
return this;
|
|
98
98
|
}
|
|
99
|
-
}) }),
|
|
100
|
-
clearTimeout(
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
let e =
|
|
99
|
+
}) }), F = h(null), je = s(() => b.placement === "cursor" && F.value ? F.value : w.value), I, L = null, R = !1, z = () => {
|
|
100
|
+
clearTimeout(I), L = null;
|
|
101
|
+
}, B = (e) => {
|
|
102
|
+
w.value = a(e) ?? void 0;
|
|
103
|
+
}, Me = s(() => {
|
|
104
|
+
let e = N.value;
|
|
105
105
|
return {
|
|
106
|
-
"aria-expanded":
|
|
107
|
-
"aria-controls":
|
|
106
|
+
"aria-expanded": D.value ? f.value : void 0,
|
|
107
|
+
"aria-controls": D.value ? C : void 0,
|
|
108
108
|
"aria-haspopup": "dialog",
|
|
109
|
-
id:
|
|
110
|
-
disabled: !!
|
|
111
|
-
ref:
|
|
109
|
+
id: S,
|
|
110
|
+
disabled: !!b.disabled,
|
|
111
|
+
ref: B,
|
|
112
112
|
...e.has("click") ? { onClick: J } : {},
|
|
113
113
|
...e.has("contextMenu") ? {
|
|
114
114
|
onContextmenu: Y,
|
|
@@ -119,143 +119,146 @@ var be = ["inert"], xe = {
|
|
|
119
119
|
} : {}
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
|
-
|
|
123
|
-
e &&
|
|
124
|
-
}, { immediate: !0 }),
|
|
125
|
-
if (!e || !
|
|
122
|
+
v(() => b.activator, (e) => {
|
|
123
|
+
e && B(e);
|
|
124
|
+
}, { immediate: !0 }), v([w, N], ([e, t], n, r) => {
|
|
125
|
+
if (!e || !O.value) return;
|
|
126
126
|
let i = [];
|
|
127
127
|
t.has("click") && (e.addEventListener("click", J), i.push(() => e.removeEventListener("click", J))), t.has("contextMenu") && (e.addEventListener("contextmenu", Y), e.addEventListener("pointerdown", X), e.addEventListener("pointermove", Z), e.addEventListener("pointerup", Q), e.addEventListener("pointercancel", Q), i.push(() => {
|
|
128
|
-
e.removeEventListener("contextmenu", Y), e.removeEventListener("pointerdown", X), e.removeEventListener("pointermove", Z), e.removeEventListener("pointerup", Q), e.removeEventListener("pointercancel", Q),
|
|
128
|
+
e.removeEventListener("contextmenu", Y), e.removeEventListener("pointerdown", X), e.removeEventListener("pointermove", Z), e.removeEventListener("pointerup", Q), e.removeEventListener("pointercancel", Q), z();
|
|
129
129
|
})), e.setAttribute("aria-haspopup", "dialog"), r(() => {
|
|
130
130
|
i.forEach((e) => e()), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-haspopup");
|
|
131
131
|
});
|
|
132
|
-
}, { immediate: !0 }),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
}, { immediate: !0 }), v([
|
|
133
|
+
w,
|
|
134
|
+
f,
|
|
135
|
+
D
|
|
136
136
|
], ([e, t, n]) => {
|
|
137
|
-
!e || !
|
|
138
|
-
}, { immediate: !0 }),
|
|
139
|
-
e !== 1 &&
|
|
137
|
+
!e || !O.value || !n || (e.setAttribute("id", S), e.setAttribute("aria-expanded", String(t)), e.setAttribute("aria-controls", C));
|
|
138
|
+
}, { immediate: !0 }), be(w, ([{ intersectionRatio: e }]) => {
|
|
139
|
+
e !== 1 && f.value && !M.value && $();
|
|
140
140
|
}, { threshold: [0, 1] });
|
|
141
|
-
let
|
|
141
|
+
let V = (e) => {
|
|
142
142
|
let t = e.target;
|
|
143
143
|
if (!(t instanceof Node)) return;
|
|
144
|
-
let n =
|
|
144
|
+
let n = E.value?.contains(t), r = w.value?.contains(t);
|
|
145
145
|
!n && !r && $();
|
|
146
|
-
},
|
|
147
|
-
e.key === "Escape" &&
|
|
148
|
-
}, je = () => {
|
|
149
|
-
ne(U), document.addEventListener("click", H, { passive: !0 }), document.addEventListener("contextmenu", H, { passive: !0 }), document.addEventListener("keydown", W, { capture: !0 });
|
|
150
|
-
}, G = () => {
|
|
151
|
-
re(U), document.removeEventListener("click", H), document.removeEventListener("contextmenu", H), document.removeEventListener("keydown", W, { capture: !0 });
|
|
152
|
-
}, K = !1, Me = async () => {
|
|
153
|
-
if (N.value) return;
|
|
154
|
-
K = !0, S("show"), je(), await ue();
|
|
155
|
-
let e = x.focusTarget ?? "[tabindex]:not([tabindex=\"-1\"]), button, a, input, select, textarea", t = D.value?.querySelector(e);
|
|
156
|
-
t instanceof HTMLElement && t.focus(), S("shown");
|
|
146
|
+
}, H = Symbol("bb-popover"), U = (e) => {
|
|
147
|
+
e.key === "Escape" && ne(H) && (e.preventDefault(), e.stopImmediatePropagation(), $());
|
|
157
148
|
}, Ne = () => {
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
149
|
+
re(H), document.addEventListener("click", V, { passive: !0 }), document.addEventListener("contextmenu", V, { passive: !0 }), document.addEventListener("keydown", U, { capture: !0 });
|
|
150
|
+
}, W = () => {
|
|
151
|
+
ie(H), document.removeEventListener("click", V), document.removeEventListener("contextmenu", V), document.removeEventListener("keydown", U, { capture: !0 });
|
|
152
|
+
}, G = !1, K = async () => {
|
|
153
|
+
if (M.value) return;
|
|
154
|
+
G = !0, x("show"), Ne(), await de();
|
|
155
|
+
let e = b.focusTarget ?? "[tabindex]:not([tabindex=\"-1\"]), button, a, input, select, textarea", t = E.value?.querySelector(e);
|
|
156
|
+
t instanceof HTMLElement && t.focus(), x("shown");
|
|
157
|
+
}, Pe = () => {
|
|
158
|
+
G && (G = !1, x("hide"), W(), w.value && w.value.focus(), x("hidden"));
|
|
159
|
+
}, Fe = oe(f, () => b.transitionDuration);
|
|
160
|
+
v(f, (e) => {
|
|
161
|
+
e ? (j.value = A(), K()) : Pe();
|
|
162
|
+
}), ge(() => {
|
|
163
|
+
f.value && K();
|
|
162
164
|
}), he(() => {
|
|
163
|
-
|
|
164
|
-
}), me(() => {
|
|
165
|
-
B(), G();
|
|
165
|
+
z(), W();
|
|
166
166
|
});
|
|
167
167
|
let q = () => {
|
|
168
|
-
|
|
168
|
+
b.disabled || (f.value = !0);
|
|
169
169
|
}, J = (e) => {
|
|
170
|
-
if (
|
|
170
|
+
if (f.value) {
|
|
171
171
|
$();
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
if (
|
|
175
|
-
|
|
174
|
+
if (R) {
|
|
175
|
+
R = !1, e.preventDefault(), e.stopPropagation();
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
e.stopImmediatePropagation(),
|
|
178
|
+
e.stopImmediatePropagation(), b.placement === "cursor" && (F.value = P(e.clientX, e.clientY)), q();
|
|
179
179
|
}, Y = (e) => {
|
|
180
|
-
|
|
180
|
+
b.disabled || (e.preventDefault(), e.stopPropagation(), !(b.placement === "cursor" && (F.value = P(e.clientX, e.clientY), f.value)) && (f.value ? $() : q()));
|
|
181
181
|
}, X = (e) => {
|
|
182
|
-
|
|
182
|
+
b.disabled || e.pointerType === "mouse" || (R = !1, L = {
|
|
183
183
|
x: e.clientX,
|
|
184
184
|
y: e.clientY
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
},
|
|
185
|
+
}, I = setTimeout(() => {
|
|
186
|
+
R = !0, b.placement === "cursor" && L && (F.value = P(L.x, L.y)), L = null, q();
|
|
187
|
+
}, Te));
|
|
188
188
|
}, Z = (e) => {
|
|
189
|
-
if (!
|
|
190
|
-
let t = e.clientX -
|
|
191
|
-
Math.sqrt(t * t + n * n) >
|
|
189
|
+
if (!L) return;
|
|
190
|
+
let t = e.clientX - L.x, n = e.clientY - L.y;
|
|
191
|
+
Math.sqrt(t * t + n * n) > Ee && z();
|
|
192
192
|
}, Q = () => {
|
|
193
|
-
|
|
193
|
+
z();
|
|
194
194
|
}, $ = () => {
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
if (!
|
|
198
|
-
let { unit: e } =
|
|
195
|
+
f.value = !1;
|
|
196
|
+
}, Ie = s(() => {
|
|
197
|
+
if (!b.width) return !1;
|
|
198
|
+
let { unit: e } = te(b.width);
|
|
199
199
|
return e === "%";
|
|
200
|
-
}), { width:
|
|
200
|
+
}), { width: Le } = ye(s(() => Ie.value ? w.value : void 0), {
|
|
201
201
|
width: 0,
|
|
202
202
|
height: 0
|
|
203
|
-
}, { box: "border-box" }),
|
|
204
|
-
if (!
|
|
205
|
-
let { value: e, unit: t } =
|
|
206
|
-
return t === "%" &&
|
|
203
|
+
}, { box: "border-box" }), Re = s(() => {
|
|
204
|
+
if (!b.width) return;
|
|
205
|
+
let { value: e, unit: t } = te(b.width);
|
|
206
|
+
return t === "%" && w.value ? `${Le.value * (e / 100)}px` : `${e}px`;
|
|
207
207
|
});
|
|
208
|
-
return (e, t) => (
|
|
209
|
-
props:
|
|
208
|
+
return (e, t) => (m(), u(ce, null, [O.value ? l("", !0) : g(e.$slots, "activator", pe(p({ key: 0 }, {
|
|
209
|
+
props: Me.value,
|
|
210
210
|
disabled: !!e.disabled,
|
|
211
|
-
isOpen:
|
|
211
|
+
isOpen: f.value,
|
|
212
212
|
placement: e.placement
|
|
213
|
-
}))),
|
|
213
|
+
}))), M.value ? (m(), c(se, p({
|
|
214
214
|
key: 1,
|
|
215
|
-
id:
|
|
216
|
-
modelValue:
|
|
217
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
215
|
+
id: C,
|
|
216
|
+
modelValue: f.value,
|
|
217
|
+
"onUpdate:modelValue": t[0] ||= (e) => f.value = e,
|
|
218
218
|
class: "bb-popover-offcanvas"
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
219
|
+
}, {
|
|
220
|
+
...e.$attrs,
|
|
221
|
+
...ke.value
|
|
222
|
+
}, {
|
|
223
|
+
onHidden: Ae,
|
|
224
|
+
onHide: t[1] ||= (e) => x("hide"),
|
|
225
|
+
onShow: t[2] ||= (e) => x("show"),
|
|
226
|
+
onShown: t[3] ||= (e) => x("shown")
|
|
227
|
+
}), ue({
|
|
228
|
+
default: y(() => [g(e.$slots, "default", {
|
|
226
229
|
close: $,
|
|
227
230
|
disabled: !!e.disabled,
|
|
228
|
-
open:
|
|
231
|
+
open: f.value,
|
|
229
232
|
placement: e.placement
|
|
230
233
|
})]),
|
|
231
234
|
_: 2
|
|
232
235
|
}, [e.$slots.header ? {
|
|
233
236
|
name: "header",
|
|
234
|
-
fn:
|
|
237
|
+
fn: y(() => [g(e.$slots, "header", {
|
|
235
238
|
close: $,
|
|
236
239
|
disabled: !!e.disabled,
|
|
237
|
-
open:
|
|
240
|
+
open: f.value,
|
|
238
241
|
placement: e.placement
|
|
239
242
|
})]),
|
|
240
243
|
key: "0"
|
|
241
244
|
} : void 0, e.$slots.footer ? {
|
|
242
245
|
name: "footer",
|
|
243
|
-
fn:
|
|
246
|
+
fn: y(() => [g(e.$slots, "footer", {
|
|
244
247
|
close: $,
|
|
245
248
|
disabled: !!e.disabled,
|
|
246
|
-
open:
|
|
249
|
+
open: f.value,
|
|
247
250
|
placement: e.placement
|
|
248
251
|
})]),
|
|
249
252
|
key: "1"
|
|
250
|
-
} : void 0]), 1040, ["modelValue"])) : (
|
|
253
|
+
} : void 0]), 1040, ["modelValue"])) : (m(), c(ee, p({
|
|
251
254
|
key: 2,
|
|
252
|
-
id:
|
|
255
|
+
id: C,
|
|
253
256
|
ref_key: "popoverRef",
|
|
254
|
-
ref:
|
|
255
|
-
modelValue:
|
|
256
|
-
"onUpdate:modelValue": t[4] ||= (e) =>
|
|
257
|
-
anchor:
|
|
258
|
-
"aria-labelledby":
|
|
257
|
+
ref: T,
|
|
258
|
+
modelValue: f.value,
|
|
259
|
+
"onUpdate:modelValue": t[4] ||= (e) => f.value = e,
|
|
260
|
+
anchor: je.value,
|
|
261
|
+
"aria-labelledby": _(D) ? _(S) : void 0,
|
|
259
262
|
boundary: e.boundary,
|
|
260
263
|
class: "bb-popover",
|
|
261
264
|
dialog: "",
|
|
@@ -264,33 +267,33 @@ var be = ["inert"], xe = {
|
|
|
264
267
|
offset: e.offset,
|
|
265
268
|
padding: e.padding,
|
|
266
269
|
placement: e.placement === "cursor" ? "bottom-start" : e.placement,
|
|
267
|
-
style: { width:
|
|
270
|
+
style: { width: Re.value },
|
|
268
271
|
"transition-duration": e.transitionDuration
|
|
269
272
|
}, e.$attrs), {
|
|
270
|
-
default:
|
|
271
|
-
class:
|
|
272
|
-
inert:
|
|
273
|
-
style:
|
|
273
|
+
default: y(({ availableHeight: t }) => [le("div", {
|
|
274
|
+
class: fe(["bb-popover__panel", { "bb-popover__panel--scrollable": e.scrollable }]),
|
|
275
|
+
inert: _(Fe),
|
|
276
|
+
style: me({ "--max-h": e.scrollable && t != null ? `${t}px` : void 0 })
|
|
274
277
|
}, [
|
|
275
|
-
e.$slots.header ? (
|
|
278
|
+
e.$slots.header ? (m(), u("div", Se, [g(e.$slots, "header", {
|
|
276
279
|
close: $,
|
|
277
280
|
disabled: !!e.disabled,
|
|
278
|
-
open:
|
|
281
|
+
open: f.value,
|
|
279
282
|
placement: e.placement
|
|
280
283
|
})])) : l("", !0),
|
|
281
|
-
|
|
284
|
+
le("div", Ce, [g(e.$slots, "default", {
|
|
282
285
|
close: $,
|
|
283
286
|
disabled: !!e.disabled,
|
|
284
|
-
open:
|
|
287
|
+
open: f.value,
|
|
285
288
|
placement: e.placement
|
|
286
289
|
})]),
|
|
287
|
-
e.$slots.footer ? (
|
|
290
|
+
e.$slots.footer ? (m(), u("div", we, [g(e.$slots, "footer", {
|
|
288
291
|
close: $,
|
|
289
292
|
disabled: !!e.disabled,
|
|
290
|
-
open:
|
|
293
|
+
open: f.value,
|
|
291
294
|
placement: e.placement
|
|
292
295
|
})])) : l("", !0)
|
|
293
|
-
], 14,
|
|
296
|
+
], 14, xe)]),
|
|
294
297
|
_: 3
|
|
295
298
|
}, 16, [
|
|
296
299
|
"modelValue",
|
|
@@ -307,4 +310,4 @@ var be = ["inert"], xe = {
|
|
|
307
310
|
}
|
|
308
311
|
});
|
|
309
312
|
//#endregion
|
|
310
|
-
export {
|
|
313
|
+
export { b as default };
|
|
@@ -55,7 +55,7 @@ export type BbPopoverProps = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Overrides forwarded to the underlying `BbOffCanvas` when `adaptive` renders
|
|
57
57
|
* the sheet on mobile. Merged over the adaptive defaults
|
|
58
|
-
* (`
|
|
58
|
+
* (`side: 'bottom'`, `size: 'auto'`, `draggable: true`). Ignored when
|
|
59
59
|
* `adaptive` is `false`.
|
|
60
60
|
*/
|
|
61
61
|
offCanvasProps?: Partial<BbOffCanvasProps>;
|
|
@@ -67,7 +67,8 @@ export type BbPopoverProps = {
|
|
|
67
67
|
padding?: number;
|
|
68
68
|
/**
|
|
69
69
|
* Position of the popover relative to the activator.
|
|
70
|
-
* Use `'cursor'` to anchor at the mouse/touch coordinates
|
|
70
|
+
* Use `'cursor'` to anchor at the mouse/touch coordinates.
|
|
71
|
+
* (BbPopover never draws an arrow — arrows are tooltip-only in v3.)
|
|
71
72
|
*
|
|
72
73
|
* @defaultValue `'bottom'`
|
|
73
74
|
*/
|
|
@@ -68,7 +68,9 @@ export type BbRadioGroupProps<T> = {
|
|
|
68
68
|
*/
|
|
69
69
|
hasWarning?: boolean;
|
|
70
70
|
/**
|
|
71
|
-
* Visually hides
|
|
71
|
+
* Visually hides each option's label text (the text rendered next to every
|
|
72
|
+
* input) while keeping it accessible to screen readers.
|
|
73
|
+
* Does not affect the fieldset legend — use `hideLegend` for that.
|
|
72
74
|
*/
|
|
73
75
|
hideLabel?: boolean;
|
|
74
76
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import a from "
|
|
7
|
-
import
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { removedPropsFor as t } from "../../deprecation/removedProps.js";
|
|
3
|
+
import { warnRemovedAttrs as n } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
4
|
+
import { useMobile as r } from "../../composables/useMobile.js";
|
|
5
|
+
import i from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
|
|
6
|
+
import { isNotEmpty as a } from "../../utilities/functions/isNotEmpty.js";
|
|
7
|
+
import o from "../BbBaseSelect/BbBaseSelect.vue.js";
|
|
8
8
|
import { computed as s, createBlock as c, createSlots as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeProps as m, openBlock as h, ref as g, renderSlot as _, unref as v, withCtx as y } from "vue";
|
|
9
9
|
//#region src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var b = /*@__PURE__*/ d({
|
|
@@ -85,55 +85,58 @@ var b = /*@__PURE__*/ d({
|
|
|
85
85
|
"option:add"
|
|
86
86
|
],
|
|
87
87
|
setup(d, { emit: b }) {
|
|
88
|
-
let x = d, S = b;
|
|
89
|
-
process.env.NODE_ENV !== "production" &&
|
|
90
|
-
let
|
|
88
|
+
let x = d, S = b, C = e();
|
|
89
|
+
process.env.NODE_ENV !== "production" && n("BbSelect", t("BbSelect"));
|
|
90
|
+
let w = g(!1), { isMobile: T } = r(), E = s(() => x.persistentHint || w.value), D = s(() => !!x.clearable && a(x.modelValue)), O = s(() => a(x.modelValue)), k = s(() => x.labelMode ?? C.defaultInputLabelMode), A = s(() => ({
|
|
91
|
+
title: x.label,
|
|
92
|
+
...x.offCanvasProps
|
|
93
|
+
})), j = {
|
|
91
94
|
onBlur: (e) => {
|
|
92
|
-
|
|
95
|
+
w.value = !1, S("blur", e);
|
|
93
96
|
},
|
|
94
97
|
onChange: (e) => S("change", e),
|
|
95
98
|
onClick: (e) => S("click", e),
|
|
96
99
|
"onOption:add": (e) => S("option:add", e),
|
|
97
100
|
onFocus: (e) => {
|
|
98
|
-
|
|
101
|
+
w.value = !0, S("focus", e);
|
|
99
102
|
},
|
|
100
103
|
onActive: () => {
|
|
101
|
-
|
|
104
|
+
w.value = !0, S("active");
|
|
102
105
|
},
|
|
103
106
|
onInactive: () => {
|
|
104
|
-
|
|
107
|
+
w.value = !1, S("inactive");
|
|
105
108
|
},
|
|
106
109
|
onInput: (e) => S("input", e),
|
|
107
110
|
"onUpdate:modelValue": (e) => S("update:modelValue", e)
|
|
108
111
|
};
|
|
109
|
-
return (e, t) => (h(), c(
|
|
112
|
+
return (e, t) => (h(), c(i, {
|
|
110
113
|
id: e.id,
|
|
111
114
|
class: "bb-select",
|
|
112
|
-
clearable:
|
|
115
|
+
clearable: D.value,
|
|
113
116
|
compact: e.compact,
|
|
114
117
|
description: e.description,
|
|
115
118
|
direction: e.direction,
|
|
116
119
|
disabled: e.disabled,
|
|
117
120
|
errors: e.errors,
|
|
118
121
|
"has-errors": e.hasErrors,
|
|
119
|
-
"has-value":
|
|
122
|
+
"has-value": O.value,
|
|
120
123
|
"has-warning": e.hasWarning,
|
|
121
124
|
"hide-label": e.hideLabel,
|
|
122
125
|
hint: e.hint,
|
|
123
126
|
label: e.label,
|
|
124
|
-
"label-mode":
|
|
127
|
+
"label-mode": k.value,
|
|
125
128
|
"label-position": e.labelPosition,
|
|
126
129
|
loading: e.loading,
|
|
127
|
-
mobile: v(
|
|
130
|
+
mobile: v(T),
|
|
128
131
|
"model-value": e.modelValue,
|
|
129
132
|
name: e.name,
|
|
130
133
|
readonly: e.readonly,
|
|
131
134
|
reverse: e.reverse,
|
|
132
|
-
"show-hint":
|
|
135
|
+
"show-hint": E.value,
|
|
133
136
|
warnings: e.warnings
|
|
134
137
|
}, {
|
|
135
138
|
label: y((t) => [_(e.$slots, "label", m(f(t)))]),
|
|
136
|
-
input: y(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: i }) => [u(
|
|
139
|
+
input: y(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: i }) => [u(o, p({
|
|
137
140
|
id: t,
|
|
138
141
|
adaptive: e.adaptive,
|
|
139
142
|
"append:icon": x["append:icon"],
|
|
@@ -166,7 +169,7 @@ var b = /*@__PURE__*/ d({
|
|
|
166
169
|
multiple: e.multiple,
|
|
167
170
|
name: e.name,
|
|
168
171
|
"no-data-text": e.noDataText,
|
|
169
|
-
"off-canvas-props":
|
|
172
|
+
"off-canvas-props": A.value,
|
|
170
173
|
placeholder: e.placeholder,
|
|
171
174
|
prefill: e.prefill,
|
|
172
175
|
"prepend:icon": x["prepend:icon"],
|
|
@@ -177,7 +180,7 @@ var b = /*@__PURE__*/ d({
|
|
|
177
180
|
"selected-labels-fn": e.selectedLabelsFn,
|
|
178
181
|
stash: e.stash,
|
|
179
182
|
"transition-duration": e.transitionDuration
|
|
180
|
-
},
|
|
183
|
+
}, j), l({
|
|
181
184
|
"append-outer": y((t) => [_(e.$slots, "append-outer", m(f(t)))]),
|
|
182
185
|
append: y((t) => [_(e.$slots, "append", m(f(t)))]),
|
|
183
186
|
prepend: y((t) => [_(e.$slots, "prepend", m(f(t)))]),
|
|
@@ -186,6 +189,7 @@ var b = /*@__PURE__*/ d({
|
|
|
186
189
|
"no-data": y((t) => [_(e.$slots, "no-data", m(f(t)))]),
|
|
187
190
|
option: y((t) => [_(e.$slots, "option", m(f(t)))]),
|
|
188
191
|
group: y((t) => [_(e.$slots, "group", m(f(t)))]),
|
|
192
|
+
chip: y((t) => [_(e.$slots, "chip", m(f(t)))]),
|
|
189
193
|
_: 2
|
|
190
194
|
}, [
|
|
191
195
|
e.$slots.header ? {
|