bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +4 -4
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +13 -1
- package/dist/ai/BbColorPalette.md +12 -7
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +13 -1
- package/dist/ai/BbDatePickerInput.md +18 -2
- package/dist/ai/BbDialog.md +6 -3
- package/dist/ai/BbDropdown.md +174 -77
- package/dist/ai/BbDropdownButton.md +37 -16
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +227 -105
- package/dist/ai/BbSelectPopover.md +139 -14
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +18 -17
- package/dist/ai/BbTimePicker.md +13 -1
- package/dist/ai/BbTimePickerInput.md +16 -2
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +3 -2
- package/dist/ai/ListBox.md +4 -2
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +310 -7
- package/dist/ai/components.json +33 -35
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +9 -5
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +70 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
- package/dist/ai/manifest/components/BbDropdown.json +36 -28
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
- package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +47 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +9 -1
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +3 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +3 -2
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +128 -11
- package/dist/ai/source/BbBadge.md +18 -7
- package/dist/ai/source/BbBreadcrumbs.md +57 -56
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +41 -34
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +23 -2
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +47 -3
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +296 -99
- package/dist/ai/source/BbDropdownButton.md +61 -19
- package/dist/ai/source/BbDropdownGroup.md +189 -98
- package/dist/ai/source/BbGallery.md +82 -60
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +151 -112
- package/dist/ai/source/BbSelectPopover.md +244 -29
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +114 -35
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +21 -2
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +33 -7
- package/dist/ai/source/GroupedListBox.md +85 -14
- package/dist/ai/source/ListBox.md +11 -1
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
- package/dist/components/BbDropdown/types.d.ts +109 -87
- package/dist/components/BbDropdown/types.js +3 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
- package/dist/components/BbDropdownButton/types.d.ts +23 -10
- package/dist/components/BbDropdownButton/types.js +4 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +110 -111
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +32 -17
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +1038 -451
- package/dist/llms-medium.txt +33 -28
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +5 -5
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +323 -307
- package/llms.txt +2 -2
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +93 -12
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -2,31 +2,32 @@ import { useBbFormSavingById as e } from "../../composables/useBbForm.js";
|
|
|
2
2
|
import t from "../BbBaseButton/BbBaseButton.vue.js";
|
|
3
3
|
import n from "../BbSpinner/BbSpinner.vue.js";
|
|
4
4
|
import r from "../BbIcon/BbIcon.vue.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
5
|
+
import { SlotContent as i, SlotNodes as a } from "../../utilities/functions/slotContent.js";
|
|
6
|
+
import { BB_FORM_SUBMIT_LOCK as o } from "../../composables/formSubmitLock.js";
|
|
7
|
+
import { pickBy as ee } from "../../utilities/functions/pickBy.js";
|
|
8
|
+
import { noop as te } from "../../utilities/functions/noop.js";
|
|
9
|
+
import { useLocale as ne } from "../../composables/useLocale.js";
|
|
10
|
+
import { useLogger as re } from "../../composables/useLogger.js";
|
|
11
|
+
import { useUntil as s } from "../../composables/useUntil.js";
|
|
12
|
+
import { removedPropsFor as c } from "../../deprecation/removedProps.js";
|
|
13
|
+
import { warnRemovedAttrs as l } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
14
|
+
import { extractHtmlContainer as u } from "../../utilities/functions/extractDomContainer.js";
|
|
15
|
+
import { isEqual as d } from "../../utilities/functions/isEqual.js";
|
|
16
|
+
import { usePassthrough as f, variantPt as p } from "../../composables/usePassthrough.js";
|
|
17
|
+
import { useConfigDefaults as m } from "../../composables/useConfigDefaults.js";
|
|
18
|
+
import { BB_BUTTON_PT as h } from "./types.js";
|
|
19
|
+
import { useToggleRoving as ie } from "./toggleRoving.js";
|
|
20
|
+
import { provideLinkState as ae, useLinkState as oe } from "../BbBaseButton/useLinkState.js";
|
|
21
|
+
import { Transition as se, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as ce, createTextVNode as le, createVNode as b, defineComponent as x, guardReactiveProps as ue, inject as de, mergeModels as S, mergeProps as C, normalizeProps as w, openBlock as T, ref as E, renderSlot as fe, toDisplayString as D, unref as O, useAttrs as k, useModel as A, useSlots as j, watchEffect as M, withCtx as N } from "vue";
|
|
21
22
|
// src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts
|
|
22
23
|
var P = {
|
|
23
|
-
key:
|
|
24
|
+
key: 2,
|
|
24
25
|
class: "bb-button__loading-label bb-sr-only"
|
|
25
|
-
}, F = /*@__PURE__*/
|
|
26
|
-
mixins: [
|
|
26
|
+
}, F = /*@__PURE__*/ x({
|
|
27
|
+
mixins: [p(h)],
|
|
27
28
|
inheritAttrs: !1,
|
|
28
29
|
__name: "BbButton",
|
|
29
|
-
props: /*@__PURE__*/
|
|
30
|
+
props: /*@__PURE__*/ S({
|
|
30
31
|
"pt:root": {},
|
|
31
32
|
"pt:root:activeLink": {},
|
|
32
33
|
"pt:root:exactActiveLink": {},
|
|
@@ -147,14 +148,14 @@ var P = {
|
|
|
147
148
|
modelModifiers: {}
|
|
148
149
|
}),
|
|
149
150
|
emits: ["update:modelValue"],
|
|
150
|
-
setup(
|
|
151
|
-
let
|
|
151
|
+
setup(p, { expose: x }) {
|
|
152
|
+
let S = A(p, "modelValue"), F = p, I = j(), L = m("BbButton", F, {
|
|
152
153
|
disableAutoLoading: !1,
|
|
153
154
|
size: "md",
|
|
154
155
|
variant: "primary",
|
|
155
156
|
block: !1
|
|
156
157
|
});
|
|
157
|
-
process.env.NODE_ENV !== "production" &&
|
|
158
|
+
process.env.NODE_ENV !== "production" && l("BbButton", c("BbButton"));
|
|
158
159
|
let R = [
|
|
159
160
|
"xs",
|
|
160
161
|
"sm",
|
|
@@ -169,61 +170,61 @@ var P = {
|
|
|
169
170
|
"lg",
|
|
170
171
|
"xl",
|
|
171
172
|
"2xl"
|
|
172
|
-
], B =
|
|
173
|
+
], B = re(), V = g(() => S.value !== void 0), H = g(() => d(S.value, F.trueValue)), { t: pe } = ne(), U = k(), W = E();
|
|
173
174
|
process.env.NODE_ENV !== "production" && M(() => {
|
|
174
|
-
V.value || "aria-pressed" in
|
|
175
|
+
V.value || "aria-pressed" in U && B.warn("BbButton: `aria-pressed` is managed by the component and your binding is ignored. Bind `v-model` (with `true-value`/`false-value` when the state is not boolean) — that sets `aria-pressed`, applies `bb-button--pressed`, and flips the value on click.");
|
|
175
176
|
});
|
|
176
|
-
let
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
let { onClick: e, class: t, ...n } =
|
|
177
|
+
let me = (e) => {
|
|
178
|
+
W.value = u(e) ?? void 0;
|
|
179
|
+
}, he = g(() => {
|
|
180
|
+
let { onClick: e, class: t, ...n } = U;
|
|
180
181
|
return n;
|
|
181
|
-
}),
|
|
182
|
-
|
|
183
|
-
let
|
|
182
|
+
}), G = E(0), ge = de(o, null), K = () => F.type === "submit" && U.form != null ? String(U.form) : void 0, _e = e(K), ve = () => F.type === "submit" && (K() ? _e(W.value) : !!ge?.savingFor(W.value)), q = g(() => F.loading || !L.disableAutoLoading && (!!G.value || ve())), ye = s(q), J = oe(F);
|
|
183
|
+
ae(J);
|
|
184
|
+
let be = g(() => {
|
|
184
185
|
let e = F.iconOnly;
|
|
185
186
|
if (!e) return [];
|
|
186
187
|
if (e === !0) return ["bb-button--icon"];
|
|
187
188
|
let t = !!e.default;
|
|
188
189
|
return z.flatMap((n) => (n !== "default" && e[n] !== void 0 && (t = !!e[n]), t ? [`bb-button--icon-${n}`] : []));
|
|
189
|
-
}),
|
|
190
|
-
...
|
|
190
|
+
}), Y = g(() => ({
|
|
191
|
+
...J.value,
|
|
191
192
|
pressed: V.value && H.value,
|
|
192
|
-
loading:
|
|
193
|
+
loading: q.value,
|
|
193
194
|
disabled: !!F.disabled
|
|
194
|
-
})),
|
|
195
|
+
})), X = f({
|
|
195
196
|
component: "BbButton",
|
|
196
|
-
attrs:
|
|
197
|
+
attrs: U,
|
|
197
198
|
props: F,
|
|
198
|
-
parts:
|
|
199
|
-
states:
|
|
199
|
+
parts: h.parts,
|
|
200
|
+
states: h.states,
|
|
200
201
|
active: {
|
|
201
|
-
loading: () =>
|
|
202
|
+
loading: () => q.value,
|
|
202
203
|
disabled: () => !!F.disabled,
|
|
203
204
|
pressed: () => V.value && H.value,
|
|
204
|
-
activeLink: () =>
|
|
205
|
-
exactActiveLink: () =>
|
|
205
|
+
activeLink: () => J.value.activeLink,
|
|
206
|
+
exactActiveLink: () => J.value.exactActiveLink
|
|
206
207
|
},
|
|
207
208
|
variant: {
|
|
208
|
-
...
|
|
209
|
+
...h.variant,
|
|
209
210
|
current: () => L.variant
|
|
210
211
|
}
|
|
211
|
-
}),
|
|
212
|
-
if (
|
|
212
|
+
}), Z = async (e) => {
|
|
213
|
+
if (q.value && !F.interactiveWhileLoading) return (F.type === "submit" || F.href || F.to) && e.preventDefault(), null;
|
|
213
214
|
if (V.value) {
|
|
214
215
|
let e = F.trueValue, t = F.falseValue;
|
|
215
|
-
|
|
216
|
+
S.value = d(S.value, e) ? t : e;
|
|
216
217
|
}
|
|
217
|
-
let t = [
|
|
218
|
+
let t = [U.onClick ?? te].flat(), n = t.map((t) => t(e)), r = n.filter((e) => e && typeof e.then == "function");
|
|
218
219
|
if (!r.length) return n[0];
|
|
219
220
|
let i = t.length === 1 ? n[0] : Promise.all(r).then(() => {});
|
|
220
|
-
|
|
221
|
+
G.value++;
|
|
221
222
|
try {
|
|
222
223
|
return await i;
|
|
223
224
|
} finally {
|
|
224
|
-
|
|
225
|
+
G.value--;
|
|
225
226
|
}
|
|
226
|
-
},
|
|
227
|
+
}, xe = g(() => {
|
|
227
228
|
let e = typeof L.size == "string" ? { default: L.size } : {
|
|
228
229
|
default: "md",
|
|
229
230
|
...L.size
|
|
@@ -232,7 +233,7 @@ var P = {
|
|
|
232
233
|
let n = t;
|
|
233
234
|
return R.includes(t) || (B.warn(`Invalid size: "${t}" in BbButton. Expected one of: ${R.join(", ")}. Falling back to "md".`), n = "md"), [e === "default" ? `bb-button--${n}` : `bb-button--${e}-${n}`, !0];
|
|
234
235
|
}));
|
|
235
|
-
}),
|
|
236
|
+
}), Se = /* @__PURE__ */ new Set([
|
|
236
237
|
"append:icon",
|
|
237
238
|
"disableAutoLoading",
|
|
238
239
|
"disabled",
|
|
@@ -246,28 +247,28 @@ var P = {
|
|
|
246
247
|
"size",
|
|
247
248
|
"trueValue",
|
|
248
249
|
"variant"
|
|
249
|
-
]),
|
|
250
|
-
...
|
|
251
|
-
...
|
|
252
|
-
})), Q =
|
|
250
|
+
]), Ce = g(() => ({
|
|
251
|
+
...he.value,
|
|
252
|
+
...ee(F, (e, t) => !Se.has(t) && t !== "pt" && !t.startsWith("pt:"))
|
|
253
|
+
})), Q = g(() => q.value && !F.interactiveWhileLoading), $ = ie(W, g(() => !!F.group && V.value && !("tabindex" in U)), () => [
|
|
253
254
|
H.value,
|
|
254
255
|
F.disabled,
|
|
255
256
|
Q.value
|
|
256
|
-
]),
|
|
257
|
+
]), we = g(() => {
|
|
257
258
|
let e = Q.value ? -1 : $.tabindex.value;
|
|
258
259
|
return {
|
|
259
260
|
...Q.value ? { "aria-disabled": !0 } : {},
|
|
260
261
|
...e === void 0 ? {} : { tabindex: e }
|
|
261
262
|
};
|
|
262
|
-
}),
|
|
263
|
-
...
|
|
263
|
+
}), Te = g(() => C(Ce.value, {
|
|
264
|
+
...we.value,
|
|
264
265
|
"aria-pressed": V.value ? H.value : void 0,
|
|
265
266
|
class: [
|
|
266
267
|
"bb-button",
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
xe.value,
|
|
269
|
+
be.value,
|
|
269
270
|
{
|
|
270
|
-
"bb-button--loading":
|
|
271
|
+
"bb-button--loading": q.value,
|
|
271
272
|
"bb-button--soft-disabled": Q.value,
|
|
272
273
|
"bb-button--group": F.group,
|
|
273
274
|
"bb-button--pressed": V.value && H.value,
|
|
@@ -275,41 +276,55 @@ var P = {
|
|
|
275
276
|
}
|
|
276
277
|
],
|
|
277
278
|
disabled: F.disabled,
|
|
278
|
-
onClick:
|
|
279
|
+
onClick: Z,
|
|
279
280
|
onFocusin: $.onFocusin,
|
|
280
281
|
onKeydown: $.onKeydown
|
|
281
|
-
},
|
|
282
|
-
return
|
|
282
|
+
}, X.root));
|
|
283
|
+
return x({ $el: W }), (e, o) => (T(), _(t, C({ ref: me }, Te.value), {
|
|
283
284
|
default: N(() => [
|
|
284
|
-
|
|
285
|
+
O(ye) ? (T(), _(se, {
|
|
285
286
|
key: 0,
|
|
286
287
|
appear: "",
|
|
287
288
|
name: "bb-button-spinner"
|
|
288
289
|
}, {
|
|
289
|
-
default: N(() => [
|
|
290
|
+
default: N(() => [q.value ? (T(), _(n, C({
|
|
290
291
|
key: 0,
|
|
291
292
|
class: "bb-button__spinner"
|
|
292
|
-
},
|
|
293
|
+
}, O(X).spinner), null, 16)) : v("", !0)]),
|
|
293
294
|
_: 1
|
|
294
|
-
})) :
|
|
295
|
-
I["prepend:icon"] ? (
|
|
295
|
+
})) : v("", !0),
|
|
296
|
+
I["prepend:icon"] || F["prepend:icon"] ? (T(), _(O(i), {
|
|
296
297
|
key: 1,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
298
|
+
of: I["prepend:icon"],
|
|
299
|
+
props: Y.value
|
|
300
|
+
}, {
|
|
301
|
+
default: N(({ nodes: e }) => [e ? (T(), y("span", C({
|
|
302
|
+
key: 0,
|
|
303
|
+
class: "bb-button__prepend-icon bb-button__icon-slot"
|
|
304
|
+
}, O(X).icon), [b(O(a), { nodes: e }, null, 8, ["nodes"])], 16)) : F["prepend:icon"] ? (T(), _(r, C({
|
|
305
|
+
key: 1,
|
|
306
|
+
class: "bb-button__prepend-icon",
|
|
307
|
+
icon: F["prepend:icon"]
|
|
308
|
+
}, O(X).icon), null, 16, ["icon"])) : v("", !0)]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, ["of", "props"])) : v("", !0),
|
|
311
|
+
ce("span", C({ class: ["bb-button__text", { "bb-sr-only": F.iconOnly === !0 }] }, O(X).text), [fe(e.$slots, "default", w(ue(O(J))), () => [le(D(p.text), 1)])], 16),
|
|
312
|
+
q.value ? (T(), y("span", P, D(O(pe)("common.loadingText")), 1)) : v("", !0),
|
|
313
|
+
I["append:icon"] || F["append:icon"] ? (T(), _(O(i), {
|
|
314
|
+
key: 3,
|
|
315
|
+
of: I["append:icon"],
|
|
316
|
+
props: Y.value
|
|
317
|
+
}, {
|
|
318
|
+
default: N(({ nodes: e }) => [e ? (T(), y("span", C({
|
|
319
|
+
key: 0,
|
|
320
|
+
class: "bb-button__append-icon bb-button__icon-slot"
|
|
321
|
+
}, O(X).icon), [b(O(a), { nodes: e }, null, 8, ["nodes"])], 16)) : F["append:icon"] ? (T(), _(r, C({
|
|
322
|
+
key: 1,
|
|
323
|
+
class: "bb-button__append-icon",
|
|
324
|
+
icon: F["append:icon"]
|
|
325
|
+
}, O(X).icon), null, 16, ["icon"])) : v("", !0)]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["of", "props"])) : v("", !0)
|
|
313
328
|
]),
|
|
314
329
|
_: 3
|
|
315
330
|
}, 16));
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
41
41
|
disabled?: boolean;
|
|
42
42
|
readonly?: boolean;
|
|
43
43
|
clearable?: boolean;
|
|
44
|
-
} & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "
|
|
44
|
+
} & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "max" | "selectable" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
|
|
45
45
|
"onUpdate:modelValue"?: ((value: import('./types.js').BbDateValue<R, M>) => any) | undefined;
|
|
46
46
|
"onUpdate:activeSegment"?: ((value: BbCalendarSegment) => any) | undefined;
|
|
47
47
|
"onTime-pick"?: ((payload: {
|