bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +31 -5
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +9 -5
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +19 -15
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +16 -3
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +16 -4
- package/dist/ai/BbDropdown.md +175 -67
- package/dist/ai/BbDropdownButton.md +27 -8
- package/dist/ai/BbForm.md +4 -1
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +8 -4
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +59 -34
- package/dist/ai/BbTimePicker.md +16 -3
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +215 -6
- package/dist/ai/components.json +77 -43
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +33 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +46 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +7 -4
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +6 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
- package/dist/ai/manifest/components/BbDropdown.json +23 -17
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
- package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +16 -6
- package/dist/ai/manifest/components/BbTimePicker.json +7 -4
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +2 -1
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -3
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +64 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +121 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +56 -55
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +59 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +71 -22
- package/dist/ai/source/BbDatePickerInput.md +72 -9
- package/dist/ai/source/BbDialog.md +45 -2
- package/dist/ai/source/BbDropdown.md +263 -63
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +121 -59
- package/dist/ai/source/BbForm.md +73 -6
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +22 -16
- package/dist/ai/source/BbOffCanvas.md +48 -2
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +19 -10
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +126 -32
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +69 -15
- package/dist/ai/source/BbTimePickerInput.md +45 -7
- package/dist/ai/source/BbToast.md +16 -2
- package/dist/ai/source/BbToastPortal.md +18 -6
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +28 -2
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
- package/dist/components/BbColorPalette/types.d.ts +8 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
- package/dist/components/BbDatePicker/types.d.ts +9 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
- package/dist/components/BbDialog/leaveGhost.js +38 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +73 -58
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
- package/dist/components/BbTimePicker/types.d.ts +9 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +7 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +35 -31
- package/dist/llms-full.txt +1428 -400
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +4 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/hash.js +97 -64
- package/dist/utilities/functions/isEqual.js +33 -25
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +11 -4
- package/llms.txt +4 -2
- package/package.json +3 -2
- package/scripts/README.md +3 -1
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +90 -24
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +5 -2
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +37 -2
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -8,13 +8,16 @@ import { warnRemovedAttrs as o } from "../../utilities/functions/warnRemovedAttr
|
|
|
8
8
|
import { transitions as s } from "../../utilities/misc/transitions.js";
|
|
9
9
|
import { BB_ALERT_PT as c } from "./types.js";
|
|
10
10
|
import { usePassthrough as l, variantPt as u } from "../../composables/usePassthrough.js";
|
|
11
|
-
import { Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _,
|
|
11
|
+
import { Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, normalizeProps as C, openBlock as w, renderSlot as T, toDisplayString as E, unref as D, useAttrs as O, useModel as k, withCtx as A } from "vue";
|
|
12
12
|
// src/components/BbAlert/BbAlert.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var j = ["aria-live", "role"], M = { class: "bb-alert__inner-container" }, N = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "bb-alert__icon-container"
|
|
16
|
+
}, P = { class: "bb-alert__content" }, F = /*@__PURE__*/ y({
|
|
14
17
|
mixins: [u(c)],
|
|
15
18
|
inheritAttrs: !1,
|
|
16
19
|
__name: "BbAlert",
|
|
17
|
-
props: /*@__PURE__*/
|
|
20
|
+
props: /*@__PURE__*/ x({
|
|
18
21
|
"pt:root": {},
|
|
19
22
|
"pt:root:outline": {},
|
|
20
23
|
"pt:root:primary": {},
|
|
@@ -65,47 +68,49 @@ var A = ["aria-live", "role"], j = { class: "bb-alert__inner-container" }, M = {
|
|
|
65
68
|
}),
|
|
66
69
|
emits: ["update:modelValue"],
|
|
67
70
|
setup(s) {
|
|
68
|
-
let u =
|
|
71
|
+
let u = k(s, "modelValue"), y = s, x = e("BbAlert", y, { hideClose: !1 }), F = l({
|
|
69
72
|
component: "BbAlert",
|
|
70
|
-
attrs:
|
|
71
|
-
props:
|
|
73
|
+
attrs: O(),
|
|
74
|
+
props: y,
|
|
72
75
|
parts: c.parts,
|
|
73
76
|
states: c.states,
|
|
74
77
|
active: {},
|
|
75
78
|
variant: {
|
|
76
79
|
...c.variant,
|
|
77
|
-
current: () =>
|
|
80
|
+
current: () => y.variant
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
process.env.NODE_ENV !== "production" && o("BbAlert", a("BbAlert"));
|
|
81
|
-
let { t:
|
|
84
|
+
let { t: I } = r(), L = i(), R = f(() => y.hideIcon ? void 0 : y.icon ?? L.variantIcons?.alert?.[y.variant]), z = f(() => y.variant === "destructive" || y.variant === "warning"), B = f(() => y.role ?? (z.value ? "alert" : "status")), V = f(() => y.ariaLive ? y.ariaLive : y.role ? y.role === "alert" ? "assertive" : "polite" : z.value ? "assertive" : "polite"), H = () => {
|
|
82
85
|
u.value = !1;
|
|
83
86
|
};
|
|
84
|
-
return (e, r) => (
|
|
85
|
-
default:
|
|
87
|
+
return (e, r) => (w(), p(d, { name: "bb-alert-transition" }, {
|
|
88
|
+
default: A(() => [u.value ? (w(), h("div", S({
|
|
86
89
|
key: 0,
|
|
87
90
|
"aria-atomic": "true",
|
|
88
|
-
"aria-live":
|
|
89
|
-
class: ["bb-alert", `bb-alert--${
|
|
90
|
-
role:
|
|
91
|
-
style: { "--transition-duration": `${
|
|
92
|
-
},
|
|
93
|
-
key: 0,
|
|
91
|
+
"aria-live": V.value,
|
|
92
|
+
class: ["bb-alert", `bb-alert--${y.variant}`],
|
|
93
|
+
role: B.value,
|
|
94
|
+
style: { "--transition-duration": `${y.transitionDuration}ms` }
|
|
95
|
+
}, D(F).rootAttrs), [g("div", M, [R.value ? (w(), h("div", N, [v(t, S({
|
|
94
96
|
class: "bb-alert__icon",
|
|
95
|
-
icon:
|
|
97
|
+
icon: R.value,
|
|
96
98
|
size: s.iconSize
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
+
}, D(F).icon), null, 16, ["icon", "size"])])) : m("", !0), g("div", P, [
|
|
100
|
+
D(x).hideClose ? m("", !0) : (w(), p(n, S({
|
|
99
101
|
key: 0,
|
|
100
102
|
class: "bb-alert__close",
|
|
101
|
-
label: s.closeLabel ||
|
|
102
|
-
onClick:
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
label: s.closeLabel || D(I)("common.closeLabel").value,
|
|
104
|
+
onClick: H
|
|
105
|
+
}, D(F).close), null, 16, ["label"])),
|
|
106
|
+
s.title || e.$slots.title ? (w(), h("div", S({
|
|
107
|
+
key: 1,
|
|
108
|
+
class: "bb-alert__title"
|
|
109
|
+
}, D(F).title), [T(e.$slots, "title", C(b({ text: s.title })), () => [_(E(s.title), 1)])], 16)) : m("", !0),
|
|
110
|
+
g("div", S({ class: "bb-alert__text" }, D(F).text), [T(e.$slots, "text", C(b({ text: s.text })), () => [T(e.$slots, "default", {}, () => [_(E(s.text), 1)])])], 16)
|
|
111
|
+
])])], 16, j)) : m("", !0)]),
|
|
107
112
|
_: 3
|
|
108
113
|
}));
|
|
109
114
|
}
|
|
110
115
|
});
|
|
111
|
-
export {
|
|
116
|
+
export { F as default };
|
|
@@ -5,6 +5,7 @@ type __VLS_Slots = BbAvatarSlots;
|
|
|
5
5
|
export type { BbAvatarProps, BbAvatarSlots };
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
7
|
size: number | import('../../types/CommonProps.js').CssSize | keyof import('../../types/SizeScale.js').Sizes;
|
|
8
|
+
color: boolean | string;
|
|
8
9
|
timeout: number;
|
|
9
10
|
alt: string;
|
|
10
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -9,83 +9,101 @@ import s from "../BbIcon/BbIcon.vue.js";
|
|
|
9
9
|
import c from "../../assets/svgs/user.svg_raw.js";
|
|
10
10
|
import { BB_AVATAR_PT as l } from "./types.js";
|
|
11
11
|
import { usePassthrough as u } from "../../composables/usePassthrough.js";
|
|
12
|
-
import {
|
|
12
|
+
import { useConfig as d } from "../../composables/useConfig.js";
|
|
13
|
+
import { LOCALE_TABLE as f, localeKeyOf as p } from "../../i18n/regions.js";
|
|
14
|
+
import { avatarHue as m, initialsOf as h } from "./avatarIdentity.js";
|
|
15
|
+
import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, defineComponent as b, mergeProps as x, normalizeClass as S, onMounted as C, openBlock as w, ref as T, renderSlot as E, toDisplayString as D, unref as O, useAttrs as k, watch as A } from "vue";
|
|
13
16
|
// src/components/BbAvatar/BbAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
17
|
+
var j = [
|
|
15
18
|
"alt",
|
|
16
19
|
"aria-hidden",
|
|
17
20
|
"sizes",
|
|
18
21
|
"src",
|
|
19
22
|
"srcset"
|
|
20
|
-
],
|
|
23
|
+
], M = /*@__PURE__*/ b({
|
|
21
24
|
inheritAttrs: !1,
|
|
22
25
|
__name: "BbAvatar",
|
|
23
26
|
props: {
|
|
24
27
|
size: { default: "md" },
|
|
25
28
|
"pt:root": {},
|
|
26
29
|
"pt:icon": {},
|
|
30
|
+
"pt:initials": {},
|
|
27
31
|
pt: {},
|
|
28
32
|
alt: { default: "" },
|
|
33
|
+
name: {},
|
|
34
|
+
color: {
|
|
35
|
+
type: [Boolean, String],
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
29
38
|
src: {},
|
|
30
39
|
srcset: {},
|
|
31
40
|
sizes: {},
|
|
32
41
|
timeout: { default: 400 }
|
|
33
42
|
},
|
|
34
|
-
setup(
|
|
35
|
-
let
|
|
43
|
+
setup(b) {
|
|
44
|
+
let M = b, N = u({
|
|
36
45
|
component: "BbAvatar",
|
|
37
|
-
attrs:
|
|
38
|
-
props:
|
|
46
|
+
attrs: k(),
|
|
47
|
+
props: M,
|
|
39
48
|
parts: l.parts,
|
|
40
49
|
states: l.states,
|
|
41
50
|
active: {}
|
|
42
|
-
}),
|
|
51
|
+
}), P = n("BbAvatar", r);
|
|
43
52
|
process.env.NODE_ENV !== "production" && o("BbAvatar", a("BbAvatar"));
|
|
44
|
-
let
|
|
45
|
-
if (
|
|
46
|
-
return e(
|
|
53
|
+
let F = i(), I = g(() => {
|
|
54
|
+
if (M.size != null) try {
|
|
55
|
+
return e(M.size, P.value);
|
|
47
56
|
} catch {
|
|
48
|
-
return
|
|
57
|
+
return F.warn(`Invalid size: "${M.size}" in BbAvatar. Falling back to "md".`), `${P.value.md}px`;
|
|
49
58
|
}
|
|
50
|
-
}),
|
|
59
|
+
}), L = d(), R = g(() => h(M.name, f[p(L.locale) ?? "en"].tag)), z = g(() => M.alt?.trim() || M.name?.trim() || ""), B = g(() => {
|
|
60
|
+
if (typeof M.color == "string" && M.color) return "bb-avatar--custom";
|
|
61
|
+
let e = M.color === !0 ? m(M.name) : void 0;
|
|
62
|
+
return e ? ["bb-avatar--colored", `bb-avatar--${e}`] : void 0;
|
|
63
|
+
}), V = g(() => {
|
|
51
64
|
let e = {};
|
|
52
|
-
return
|
|
53
|
-
}),
|
|
65
|
+
return I.value && (e["--size"] = I.value), typeof M.color == "string" && M.color && (e["--bg"] = M.color), e;
|
|
66
|
+
}), H = g(() => !!(M.src || M.srcset) && !Y.value), U = g(() => H.value && X.value && !J.value), W = g(() => !H.value || U.value), G = g(() => !W.value || !z.value ? {} : {
|
|
54
67
|
role: "img",
|
|
55
|
-
"aria-label":
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
"aria-label": z.value
|
|
69
|
+
}), K = (e) => !(!e || !e.complete || e.naturalWidth === 0), q = T(null), J = T(!1), Y = T(!1), X = T(!1);
|
|
70
|
+
C(async () => {
|
|
71
|
+
H.value && !Y.value && !J.value && q.value && (await t(M.timeout), X.value = !K(q.value));
|
|
59
72
|
});
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
73
|
+
let Z = () => {
|
|
74
|
+
J.value = !0, Y.value = !1, X.value = !1;
|
|
75
|
+
}, Q = () => {
|
|
76
|
+
Y.value = !0;
|
|
64
77
|
};
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
}), (e, t) => (
|
|
68
|
-
class: "bb-avatar",
|
|
69
|
-
style:
|
|
70
|
-
},
|
|
78
|
+
return A(() => [M.src, M.srcset], () => {
|
|
79
|
+
J.value = !1, Y.value = !1, X.value = !1;
|
|
80
|
+
}), (e, t) => (w(), y("span", x({
|
|
81
|
+
class: ["bb-avatar", B.value],
|
|
82
|
+
style: V.value
|
|
83
|
+
}, O(N).rootAttrs), [H.value ? (w(), y("img", {
|
|
71
84
|
key: 0,
|
|
72
85
|
ref_key: "image",
|
|
73
|
-
ref:
|
|
74
|
-
alt:
|
|
75
|
-
"aria-hidden":
|
|
76
|
-
class:
|
|
77
|
-
sizes:
|
|
78
|
-
src:
|
|
79
|
-
srcset:
|
|
80
|
-
onError:
|
|
81
|
-
onLoad:
|
|
82
|
-
}, null, 42,
|
|
86
|
+
ref: q,
|
|
87
|
+
alt: z.value,
|
|
88
|
+
"aria-hidden": U.value || void 0,
|
|
89
|
+
class: S(["bb-avatar__img", { "bb-avatar__img--hidden": U.value }]),
|
|
90
|
+
sizes: b.sizes,
|
|
91
|
+
src: b.src,
|
|
92
|
+
srcset: b.srcset,
|
|
93
|
+
onError: Q,
|
|
94
|
+
onLoad: Z
|
|
95
|
+
}, null, 42, j)) : v("", !0), W.value ? (w(), y("span", x({
|
|
83
96
|
key: 1,
|
|
84
97
|
class: "bb-avatar__fallback"
|
|
85
|
-
},
|
|
98
|
+
}, G.value), [E(e.$slots, "default", {}, () => [R.value ? (w(), y("span", x({
|
|
99
|
+
key: 0,
|
|
100
|
+
"aria-hidden": "true",
|
|
101
|
+
class: "bb-avatar__initials"
|
|
102
|
+
}, O(N).initials), D(R.value), 17)) : (w(), _(s, x({
|
|
103
|
+
key: 1,
|
|
86
104
|
class: "bb-avatar__default-icon",
|
|
87
|
-
icon:
|
|
88
|
-
},
|
|
105
|
+
icon: O(c)
|
|
106
|
+
}, O(N).icon), null, 16, ["icon"]))])], 16)) : v("", !0)], 16));
|
|
89
107
|
}
|
|
90
108
|
});
|
|
91
|
-
export {
|
|
109
|
+
export { M as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/components/BbAvatar/avatarIdentity.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"coral",
|
|
4
|
+
"tangerine",
|
|
5
|
+
"sunflower",
|
|
6
|
+
"mint",
|
|
7
|
+
"teal",
|
|
8
|
+
"sky",
|
|
9
|
+
"blue",
|
|
10
|
+
"violet",
|
|
11
|
+
"orchid",
|
|
12
|
+
"rose"
|
|
13
|
+
], t = /^\p{L}\p{M}*/u, n = (e, n) => {
|
|
14
|
+
let r = (e ?? "").trim().split(/\s+/).filter((e) => t.test(e));
|
|
15
|
+
if (!r.length) return "";
|
|
16
|
+
let i = (e) => e.match(t)[0];
|
|
17
|
+
return (r.length > 1 ? i(r[0]) + i(r[r.length - 1]) : i(r[0])).toLocaleUpperCase(n);
|
|
18
|
+
}, r = (t) => {
|
|
19
|
+
let n = (t ?? "").trim().replace(/\s+/g, " ").toLowerCase();
|
|
20
|
+
if (!n) return;
|
|
21
|
+
let r = 2166136261;
|
|
22
|
+
for (let e = 0; e < n.length; e++) r ^= n.charCodeAt(e), r = Math.imul(r, 16777619) >>> 0;
|
|
23
|
+
return e[r % e.length];
|
|
24
|
+
};
|
|
25
|
+
export { e as AVATAR_HUES, r as avatarHue, n as initialsOf };
|
|
@@ -6,7 +6,11 @@ export interface BbAvatarPtKeys {
|
|
|
6
6
|
*/
|
|
7
7
|
'pt:root'?: PtValue;
|
|
8
8
|
/**
|
|
9
|
-
* The default user glyph — rendered only while there is no image to show
|
|
9
|
+
* The default user glyph — rendered only while there is no image to show, the default slot is not overridden and `name` gives no initials, so it lands nowhere otherwise.
|
|
10
10
|
*/
|
|
11
11
|
'pt:icon'?: PtValue;
|
|
12
|
+
/**
|
|
13
|
+
* The initials from `name` — rendered only while there is no image to show and the default slot is not overridden.
|
|
14
|
+
*/
|
|
15
|
+
'pt:initials'?: PtValue;
|
|
12
16
|
}
|
|
@@ -8,13 +8,15 @@ import { BbAvatarPtKeys } from './ptKeys.generated.js';
|
|
|
8
8
|
*
|
|
9
9
|
* @part root - The avatar frame, with the image or the fallback inside.
|
|
10
10
|
* @part icon - The default user glyph — rendered only while there is no image
|
|
11
|
-
* to show
|
|
12
|
-
* otherwise.
|
|
11
|
+
* to show, the default slot is not overridden and `name` gives no
|
|
12
|
+
* initials, so it lands nowhere otherwise.
|
|
13
|
+
* @part initials - The initials from `name` — rendered only while there is
|
|
14
|
+
* no image to show and the default slot is not overridden.
|
|
13
15
|
*/
|
|
14
|
-
export type BbAvatarPtPart = 'root' | 'icon';
|
|
16
|
+
export type BbAvatarPtPart = 'root' | 'icon' | 'initials';
|
|
15
17
|
/** The runtime lists the resolver is wired with — no states: nothing this component paints is a state. */
|
|
16
18
|
export declare const BB_AVATAR_PT: {
|
|
17
|
-
readonly parts: readonly ["root", "icon"];
|
|
19
|
+
readonly parts: readonly ["root", "icon", "initials"];
|
|
18
20
|
readonly states: readonly [];
|
|
19
21
|
};
|
|
20
22
|
export type BbAvatarProps = Pick<BbIconProps, 'size'> & BbAvatarPtKeys & {
|
|
@@ -24,11 +26,28 @@ export type BbAvatarProps = Pick<BbIconProps, 'size'> & BbAvatarPtKeys & {
|
|
|
24
26
|
*/
|
|
25
27
|
pt?: PtMap<BbAvatarPtPart, never>;
|
|
26
28
|
/**
|
|
27
|
-
* Alternative text for the image, used for accessibility.
|
|
29
|
+
* Alternative text for the image, used for accessibility. Without it
|
|
30
|
+
* the avatar is labelled with `name`.
|
|
28
31
|
*
|
|
29
32
|
* @defaultValue `''`
|
|
30
33
|
*/
|
|
31
34
|
alt?: ImgHTMLAttributes['alt'];
|
|
35
|
+
/**
|
|
36
|
+
* The person's name. With no image and no default slot, the avatar
|
|
37
|
+
* shows its initials (first letters of the first and last word; none:
|
|
38
|
+
* the person icon). Also the accessible name when `alt` is empty, and
|
|
39
|
+
* the input of `color`.
|
|
40
|
+
*/
|
|
41
|
+
name?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Paints the fallback (initials or icon). `true`: a palette colour
|
|
44
|
+
* picked from `name`, stable across renders and the server. A string:
|
|
45
|
+
* any CSS colour or `var()` as the background, with black or white
|
|
46
|
+
* ink, whichever reads. Unset: the primary colour.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue `false`
|
|
49
|
+
*/
|
|
50
|
+
color?: boolean | string;
|
|
32
51
|
/**
|
|
33
52
|
* Source URL of the avatar image.
|
|
34
53
|
*/
|
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import e from "../BbIcon/BbIcon.vue.js";
|
|
2
2
|
import t from "../BbSpinner/BbSpinner.vue.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { SlotNodes as n } from "../../utilities/functions/slotContent.js";
|
|
4
|
+
import { useLogger as r } from "../../composables/useLogger.js";
|
|
5
|
+
import { useBadgeHost as i } from "./badgeButtonContext.js";
|
|
6
|
+
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, openBlock as p, renderSlot as m, unref as h } from "vue";
|
|
6
7
|
// src/components/BbBadge/BadgeBodyContent.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var g = /*@__PURE__*/ d({
|
|
8
9
|
__name: "BadgeBodyContent",
|
|
9
|
-
setup(
|
|
10
|
-
let
|
|
11
|
-
return (
|
|
10
|
+
setup(d) {
|
|
11
|
+
let g = i() ?? r().throw("[BbBadge] internal body renderer mounted outside a badge — this is a bug."), _ = () => g.iconNodes("prepend") ?? (g.prependIcon.value ? void 0 : g.iconNodes("append")), v = () => g.prependIcon.value ?? g.appendIcon.value;
|
|
12
|
+
return (r, i) => h(g).iconOnly.value ? (p(), c(a, { key: 0 }, [h(g).loading.value ? (p(), o(t, f({
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "bb-badge__spinner bb-badge__icon"
|
|
14
|
-
}, g
|
|
15
|
+
}, h(g).passthrough.spinner), null, 16)) : _() ? (p(), c("span", f({
|
|
15
16
|
key: 1,
|
|
16
17
|
class: "bb-badge__icon bb-badge__icon-slot"
|
|
17
|
-
}, g
|
|
18
|
+
}, h(g).passthrough.icon), [u(h(n), { nodes: _() }, null, 8, ["nodes"])], 16)) : v() ? (p(), o(e, f({
|
|
18
19
|
key: 2,
|
|
19
20
|
class: "bb-badge__icon",
|
|
20
|
-
icon:
|
|
21
|
-
}, g
|
|
22
|
-
g
|
|
21
|
+
icon: v()
|
|
22
|
+
}, h(g).passthrough.icon), null, 16, ["icon"])) : s("", !0), l("span", f({ class: "bb-badge__text bb-sr-only" }, h(g).passthrough.text), [m(r.$slots, "default")], 16)], 64)) : (p(), c(a, { key: 1 }, [
|
|
23
|
+
h(g).spinnerLeads.value ? (p(), o(t, f({
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "bb-badge__spinner bb-badge__prepend-icon"
|
|
25
|
-
}, g
|
|
26
|
+
}, h(g).passthrough.spinner), null, 16)) : h(g).iconNodes("prepend") ? (p(), c("span", f({
|
|
26
27
|
key: 1,
|
|
27
28
|
class: "bb-badge__prepend-icon bb-badge__icon-slot"
|
|
28
|
-
}, g
|
|
29
|
+
}, h(g).passthrough.icon), [u(h(n), { nodes: h(g).iconNodes("prepend") }, null, 8, ["nodes"])], 16)) : h(g).prependIcon.value ? (p(), o(e, f({
|
|
29
30
|
key: 2,
|
|
30
31
|
class: "bb-badge__prepend-icon",
|
|
31
|
-
icon: g
|
|
32
|
-
}, g
|
|
33
|
-
|
|
34
|
-
g
|
|
32
|
+
icon: h(g).prependIcon.value
|
|
33
|
+
}, h(g).passthrough.icon), null, 16, ["icon"])) : s("", !0),
|
|
34
|
+
l("span", f({ class: "bb-badge__text" }, h(g).passthrough.text), [m(r.$slots, "default")], 16),
|
|
35
|
+
h(g).clearable.value ? s("", !0) : (p(), c(a, { key: 3 }, [h(g).spinnerTrails.value ? (p(), o(t, f({
|
|
35
36
|
key: 0,
|
|
36
37
|
class: "bb-badge__append-icon"
|
|
37
|
-
}, g
|
|
38
|
+
}, h(g).passthrough.spinner), null, 16)) : h(g).iconNodes("append") ? (p(), c("span", f({
|
|
38
39
|
key: 1,
|
|
39
40
|
class: "bb-badge__append-icon bb-badge__icon-slot"
|
|
40
|
-
}, g
|
|
41
|
+
}, h(g).passthrough.icon), [u(h(n), { nodes: h(g).iconNodes("append") }, null, 8, ["nodes"])], 16)) : h(g).appendIcon.value ? (p(), o(e, f({
|
|
41
42
|
key: 2,
|
|
42
43
|
class: "bb-badge__append-icon",
|
|
43
|
-
icon: g
|
|
44
|
-
}, g
|
|
44
|
+
icon: h(g).appendIcon.value
|
|
45
|
+
}, h(g).passthrough.icon), null, 16, ["icon"])) : s("", !0)], 64))
|
|
45
46
|
], 64));
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
|
-
export {
|
|
49
|
+
export { g as default };
|