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
|
@@ -7,12 +7,13 @@ import { BB_SELECT_POPOVER_PT as n } from "../BbSelectPopover/types.js";
|
|
|
7
7
|
import { useMobile as re } from "../../composables/useMobile.js";
|
|
8
8
|
import { useConfigDefaults as r } from "../../composables/useConfigDefaults.js";
|
|
9
9
|
import { useFormBinding as ie } from "../../composables/useFormBinding.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
10
|
+
import { useOpenProp as i } from "../../composables/useOpenModel.js";
|
|
11
|
+
import { useLocale as a } from "../../composables/useLocale.js";
|
|
12
|
+
import { SELECT_CONTROL_NATIVE_ATTRS as o, formControlPtActive as s, usePassthrough as ae, variantPt as c } from "../../composables/usePassthrough.js";
|
|
13
|
+
import { removedPropsFor as l } from "../../deprecation/removedProps.js";
|
|
14
|
+
import { warnRemovedAttrs as u } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
15
|
+
import { hasVnodeListener as d } from "../../utilities/functions/hasVnodeListener.js";
|
|
16
|
+
import { isNotEmpty as f } from "../../utilities/functions/isNotEmpty.js";
|
|
16
17
|
import { throttle as oe } from "../../utilities/functions/throttle.js";
|
|
17
18
|
import { when as se } from "../../utilities/functions/when.js";
|
|
18
19
|
import { hash as ce } from "../../utilities/functions/hash.js";
|
|
@@ -21,8 +22,8 @@ import ue from "../../assets/svgs/chevron_down.svg_raw.js";
|
|
|
21
22
|
import { provideSheetChipAttrs as de } from "../BbSelectPopover/sheetChipAttrs.js";
|
|
22
23
|
import { provideReclickClears as fe } from "../BbSelectPopover/reclickClears.js";
|
|
23
24
|
import { KnownItemsScope as pe, indexKnownRows as me, knownRowsCover as he } from "../BbSelectPopover/knownItems.js";
|
|
24
|
-
import { BB_SELECT_PT as
|
|
25
|
-
import { Fragment as
|
|
25
|
+
import { BB_SELECT_PT as p } from "./types.js";
|
|
26
|
+
import { Fragment as m, computed as h, createBlock as ge, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as _e, createVNode as b, defineComponent as ve, getCurrentInstance as ye, guardReactiveProps as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeProps as T, onMounted as be, onUnmounted as xe, openBlock as E, ref as D, renderList as O, renderSlot as k, toDisplayString as A, unref as j, useAttrs as Se, watch as M, withCtx as N, withDirectives as Ce, withModifiers as we } from "vue";
|
|
26
27
|
// src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
|
|
27
28
|
var Te = ["id"], Ee = [
|
|
28
29
|
"id",
|
|
@@ -37,8 +38,8 @@ var Te = ["id"], Ee = [
|
|
|
37
38
|
}, Oe = {
|
|
38
39
|
key: 2,
|
|
39
40
|
class: "bb-select__display-value bb-select__placeholder"
|
|
40
|
-
}, ke = ["id"],
|
|
41
|
-
mixins: [c(
|
|
41
|
+
}, ke = ["id"], P = /*@__PURE__*/ ve({
|
|
42
|
+
mixins: [c(p)],
|
|
42
43
|
inheritAttrs: !1,
|
|
43
44
|
__name: "BbSelect",
|
|
44
45
|
props: {
|
|
@@ -281,6 +282,7 @@ var Te = ["id"], Ee = [
|
|
|
281
282
|
"pt:comma:errors": {},
|
|
282
283
|
"pt:comma:open": {},
|
|
283
284
|
"pt:comma:loading": {},
|
|
285
|
+
open: { type: Boolean },
|
|
284
286
|
pt: {},
|
|
285
287
|
adaptive: {
|
|
286
288
|
type: Boolean,
|
|
@@ -372,6 +374,7 @@ var Te = ["id"], Ee = [
|
|
|
372
374
|
"show",
|
|
373
375
|
"shown",
|
|
374
376
|
"hide",
|
|
377
|
+
"update:open",
|
|
375
378
|
"hidden",
|
|
376
379
|
"blur",
|
|
377
380
|
"change",
|
|
@@ -384,35 +387,35 @@ var Te = ["id"], Ee = [
|
|
|
384
387
|
"option:add"
|
|
385
388
|
],
|
|
386
389
|
setup(c, { emit: ve }) {
|
|
387
|
-
let
|
|
390
|
+
let P = c, Ae = ve, { props: F, emit: I, showAsterisk: je, errors: Me, ariaRequired: Ne, required: Pe, model: Fe, readonly: L } = ie(P, Ae, {
|
|
388
391
|
componentName: "BbSelect",
|
|
389
|
-
identifierFallback: () =>
|
|
392
|
+
identifierFallback: () => P.label,
|
|
390
393
|
leaveOn: "inactive"
|
|
391
|
-
}),
|
|
392
|
-
process.env.NODE_ENV !== "production" &&
|
|
393
|
-
let
|
|
394
|
+
}), Ie = h(() => Ne.value ?? (Pe.value ? !0 : void 0)), { t: Le } = a();
|
|
395
|
+
process.env.NODE_ENV !== "production" && u("BbSelect", l("BbSelect"));
|
|
396
|
+
let R = D(!1), { isMobile: Re } = re(), ze = h(() => F.persistentHint || R.value), z = h(() => f(F.modelValue)), Be = h(() => !!F.clearable && z.value), B = r("BbSelect", F, {
|
|
394
397
|
labelMode: "outside",
|
|
395
398
|
compact: !1,
|
|
396
399
|
reverse: !1
|
|
397
|
-
}),
|
|
400
|
+
}), Ve = h(() => B.labelMode), V = D(!1), { model: He, set: Ue } = i(P, Ae), H = ae({
|
|
398
401
|
component: "BbSelect",
|
|
399
402
|
attrs: Se(),
|
|
400
|
-
controlAttrs:
|
|
401
|
-
props:
|
|
402
|
-
parts:
|
|
403
|
-
states:
|
|
403
|
+
controlAttrs: o,
|
|
404
|
+
props: F,
|
|
405
|
+
parts: p.parts,
|
|
406
|
+
states: p.states,
|
|
404
407
|
active: {
|
|
405
|
-
...
|
|
406
|
-
open: () =>
|
|
408
|
+
...s(F, () => z.value),
|
|
409
|
+
open: () => V.value
|
|
407
410
|
},
|
|
408
411
|
variant: {
|
|
409
|
-
...
|
|
410
|
-
current: () =>
|
|
412
|
+
...p.variant,
|
|
413
|
+
current: () => F.variant ?? "outline"
|
|
411
414
|
}
|
|
412
415
|
});
|
|
413
|
-
de((e) =>
|
|
414
|
-
let
|
|
415
|
-
...
|
|
416
|
+
de((e) => H.part("badge", {}, e)), fe(() => !!F.clearable);
|
|
417
|
+
let We = () => ({
|
|
418
|
+
...H.forward([
|
|
416
419
|
"panel",
|
|
417
420
|
"sheet",
|
|
418
421
|
"header",
|
|
@@ -420,138 +423,138 @@ var Te = ["id"], Ee = [
|
|
|
420
423
|
"input",
|
|
421
424
|
"list"
|
|
422
425
|
], n.states.filter((e) => e !== "disabled")),
|
|
423
|
-
...
|
|
426
|
+
...H.forward([
|
|
424
427
|
"option",
|
|
425
428
|
"itemText",
|
|
426
429
|
"itemIcon",
|
|
427
430
|
"itemDescription",
|
|
428
431
|
"check"
|
|
429
432
|
], n.states)
|
|
430
|
-
}),
|
|
433
|
+
}), Ge = [
|
|
431
434
|
"box",
|
|
432
435
|
"icon",
|
|
433
436
|
"spinner",
|
|
434
437
|
"clear",
|
|
435
438
|
"prefix",
|
|
436
439
|
"suffix"
|
|
437
|
-
],
|
|
438
|
-
title:
|
|
439
|
-
...
|
|
440
|
-
})),
|
|
441
|
-
rows: () =>
|
|
442
|
-
prefill: () =>
|
|
443
|
-
},
|
|
444
|
-
known: !!
|
|
440
|
+
], Ke = (e) => Object.fromEntries(Ge.map((t) => [t, H.part(t, { loading: e })])), qe = h(() => ({
|
|
441
|
+
title: F.label,
|
|
442
|
+
...F.offCanvasProps
|
|
443
|
+
})), Je = h(() => F["append:icon"] === void 0 ? ue : F["append:icon"]), U = h(() => F.maxSelectedLabels === void 0 ? Infinity : F.maxSelectedLabels), W = {
|
|
444
|
+
rows: () => F.knownItems,
|
|
445
|
+
prefill: () => F.prefill
|
|
446
|
+
}, Ye = (e) => ({
|
|
447
|
+
known: !!W.isKnown?.(e),
|
|
445
448
|
item: e
|
|
446
|
-
}),
|
|
447
|
-
if (
|
|
448
|
-
if (
|
|
449
|
-
let t = le(
|
|
450
|
-
|
|
451
|
-
} else
|
|
449
|
+
}), Xe = h(() => he(me(F.knownItems), F.modelValue, F.multiple)), Ze = h(() => z.value && !Xe.value ? !0 : F.prefill ?? "interaction"), G = D(), K = D(), Qe = D(), q = h(() => F.multiple ? Array.isArray(F.modelValue) ? F.modelValue.length : F.modelValue == null ? 0 : 1 : 0), $e = h(() => U.value !== Infinity), J = h(() => !$e.value), Y = D(!1), X = h(() => q.value <= 1 ? !1 : $e.value ? q.value > U.value : Y.value), Z = h(() => !F.disabled && !F.readonly), et = (e) => {
|
|
450
|
+
if (Z.value) {
|
|
451
|
+
if (W.userUnpick?.([e.value]), F.multiple) {
|
|
452
|
+
let t = le(F.modelValue, e.value);
|
|
453
|
+
I("update:modelValue", t);
|
|
454
|
+
} else I("update:modelValue", null);
|
|
452
455
|
}
|
|
453
|
-
},
|
|
454
|
-
(
|
|
455
|
-
},
|
|
456
|
-
let e =
|
|
457
|
-
!
|
|
456
|
+
}, tt = () => {
|
|
457
|
+
(G.value?.$el)?.querySelector(".bb-select__activator")?.focus();
|
|
458
|
+
}, nt = h(() => F.selectedLabelsFn ? F.selectedLabelsFn(q.value) : Le("select.multipleMaxReached", q.value).value), rt = (e) => F.multiple && X.value ? nt.value : e || F.placeholder || "", Q = oe(() => {
|
|
459
|
+
let e = Qe.value;
|
|
460
|
+
!J.value || !e || q.value <= 1 ? Y.value = !1 : Y.value = e.scrollWidth > e.clientWidth + 1;
|
|
458
461
|
}, 100, {
|
|
459
462
|
leading: !0,
|
|
460
463
|
trailing: !0
|
|
461
|
-
}), $ = null,
|
|
462
|
-
$?.disconnect(), $ = null,
|
|
464
|
+
}), $ = null, it = () => {
|
|
465
|
+
$?.disconnect(), $ = null, J.value && ($ = new ResizeObserver(Q), K.value && $.observe(K.value), C(() => {
|
|
463
466
|
Q();
|
|
464
467
|
}));
|
|
465
468
|
};
|
|
466
|
-
be(
|
|
469
|
+
be(it), M(J, it, { flush: "post" }), xe(() => {
|
|
467
470
|
$?.disconnect(), Q.cancel();
|
|
468
|
-
}),
|
|
469
|
-
|
|
471
|
+
}), M(() => [F.modelValue, U.value], () => {
|
|
472
|
+
J.value && C(() => {
|
|
470
473
|
Q();
|
|
471
474
|
});
|
|
472
|
-
}),
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
475
|
+
}), M(() => [
|
|
476
|
+
B.compact,
|
|
477
|
+
F.comma,
|
|
478
|
+
F["prepend:icon"]
|
|
476
479
|
], () => {
|
|
477
|
-
|
|
480
|
+
J.value && C(() => {
|
|
478
481
|
Q();
|
|
479
482
|
});
|
|
480
483
|
});
|
|
481
|
-
let
|
|
482
|
-
disabled:
|
|
483
|
-
name:
|
|
484
|
-
required:
|
|
484
|
+
let at = se((e) => typeof e != "string", JSON.stringify), ot = h(() => (F.multiple ? [].concat(F.modelValue ?? []) : [F.modelValue]).filter((e) => e != null).map((e) => ({
|
|
485
|
+
disabled: F.disabled,
|
|
486
|
+
name: F.name,
|
|
487
|
+
required: F.required,
|
|
485
488
|
type: "hidden",
|
|
486
|
-
value:
|
|
487
|
-
}))),
|
|
489
|
+
value: at(e)
|
|
490
|
+
}))), st = {
|
|
488
491
|
onBlur: (e) => {
|
|
489
|
-
|
|
492
|
+
R.value = !1, I("blur", e);
|
|
490
493
|
},
|
|
491
|
-
onChange: (e) =>
|
|
492
|
-
onClick: (e) =>
|
|
494
|
+
onChange: (e) => I("change", e),
|
|
495
|
+
onClick: (e) => I("click", e),
|
|
493
496
|
onFocus: (e) => {
|
|
494
|
-
|
|
497
|
+
R.value = !0, I("focus", e);
|
|
495
498
|
},
|
|
496
499
|
onActive: () => {
|
|
497
|
-
|
|
500
|
+
R.value = !0, I("active");
|
|
498
501
|
},
|
|
499
502
|
onShow: () => {
|
|
500
|
-
|
|
503
|
+
V.value = !0, I("show");
|
|
501
504
|
},
|
|
502
|
-
onShown: () =>
|
|
505
|
+
onShown: () => I("shown"),
|
|
503
506
|
onHide: () => {
|
|
504
|
-
|
|
507
|
+
V.value = !1, I("hide");
|
|
505
508
|
},
|
|
506
|
-
onHidden: () =>
|
|
509
|
+
onHidden: () => I("hidden"),
|
|
507
510
|
onInactive: () => {
|
|
508
|
-
|
|
511
|
+
R.value = !1, I("inactive");
|
|
509
512
|
},
|
|
510
|
-
onInput: (e) =>
|
|
511
|
-
"onUpdate:modelValue": (e) =>
|
|
512
|
-
},
|
|
513
|
-
...
|
|
514
|
-
"onOption:add": (e) =>
|
|
515
|
-
},
|
|
516
|
-
return (n, re) => (
|
|
513
|
+
onInput: (e) => I("input", e),
|
|
514
|
+
"onUpdate:modelValue": (e) => I("update:modelValue", e)
|
|
515
|
+
}, ct = {
|
|
516
|
+
...st,
|
|
517
|
+
"onOption:add": (e) => I("option:add", e)
|
|
518
|
+
}, lt = ye(), ut = () => d(lt, "option:add") ? ct : st;
|
|
519
|
+
return (n, re) => (E(), ge(t, S({
|
|
517
520
|
id: c.id,
|
|
518
521
|
class: "bb-select",
|
|
519
|
-
clearable:
|
|
520
|
-
compact:
|
|
522
|
+
clearable: Be.value,
|
|
523
|
+
compact: j(B).compact,
|
|
521
524
|
description: c.description,
|
|
522
525
|
disabled: c.disabled,
|
|
523
|
-
errors:
|
|
526
|
+
errors: j(Me),
|
|
524
527
|
"has-errors": c.hasErrors,
|
|
525
|
-
"has-value":
|
|
528
|
+
"has-value": z.value,
|
|
526
529
|
"has-warnings": c.hasWarnings,
|
|
527
530
|
"hide-label": c.hideLabel,
|
|
528
531
|
hint: c.hint,
|
|
529
532
|
"input-align": c.inputAlign,
|
|
530
533
|
label: c.label,
|
|
531
534
|
"label-align": c.labelAlign,
|
|
532
|
-
"label-mode":
|
|
535
|
+
"label-mode": Ve.value,
|
|
533
536
|
"label-position": c.labelPosition,
|
|
534
|
-
layout:
|
|
537
|
+
layout: j(B).layout,
|
|
535
538
|
loading: c.loading,
|
|
536
|
-
mobile:
|
|
539
|
+
mobile: j(Re),
|
|
537
540
|
name: c.name,
|
|
538
|
-
passthrough:
|
|
539
|
-
readonly:
|
|
540
|
-
reverse:
|
|
541
|
-
"show-asterisk":
|
|
542
|
-
"show-hint":
|
|
541
|
+
passthrough: j(H),
|
|
542
|
+
readonly: j(L),
|
|
543
|
+
reverse: j(B).reverse,
|
|
544
|
+
"show-asterisk": j(je),
|
|
545
|
+
"show-hint": ze.value,
|
|
543
546
|
warnings: c.warnings
|
|
544
|
-
},
|
|
545
|
-
label:
|
|
546
|
-
input:
|
|
547
|
-
default:
|
|
547
|
+
}, j(H).forwardAttrs), y({
|
|
548
|
+
label: N((e) => [k(n.$slots, "label", T(x(e)))]),
|
|
549
|
+
input: N(({ id: t, hasErrors: r, hasWarnings: ie, ariaDescribedby: i }) => [b(j(pe), { source: W }, {
|
|
550
|
+
default: N(() => [b(ne, S({
|
|
548
551
|
id: t,
|
|
549
|
-
adaptive:
|
|
550
|
-
anchor:
|
|
552
|
+
adaptive: j(B).adaptive,
|
|
553
|
+
anchor: G.value,
|
|
551
554
|
"aria-describedby": i,
|
|
552
555
|
"aria-invalid": r || void 0,
|
|
553
|
-
autocomplete:
|
|
554
|
-
compact:
|
|
556
|
+
autocomplete: j(B).autocomplete,
|
|
557
|
+
compact: j(B).compact,
|
|
555
558
|
dependencies: c.dependencies,
|
|
556
559
|
"deps-debounce-time": c.depsDebounceTime,
|
|
557
560
|
"disable-writing": c.disableWriting,
|
|
@@ -571,121 +574,122 @@ var Te = ["id"], Ee = [
|
|
|
571
574
|
"loading-text": c.loadingText,
|
|
572
575
|
max: c.max,
|
|
573
576
|
"min-query-length": c.minQueryLength,
|
|
574
|
-
"model-value":
|
|
577
|
+
"model-value": j(Fe),
|
|
575
578
|
"model-value-debounce-time": c.modelValueDebounceTime,
|
|
576
579
|
multiple: c.multiple,
|
|
577
|
-
"off-canvas-props":
|
|
578
|
-
|
|
579
|
-
|
|
580
|
+
"off-canvas-props": qe.value,
|
|
581
|
+
open: j(He),
|
|
582
|
+
prefill: Ze.value,
|
|
583
|
+
pt: We(),
|
|
580
584
|
"query-debounce-time": c.queryDebounceTime,
|
|
581
|
-
readonly:
|
|
585
|
+
readonly: j(L),
|
|
582
586
|
selectable: c.selectable,
|
|
583
587
|
stash: c.stash,
|
|
584
588
|
"transition-duration": c.transitionDuration,
|
|
585
589
|
width: "100%"
|
|
586
|
-
},
|
|
587
|
-
activator:
|
|
590
|
+
}, ut(), { "onUpdate:open": j(Ue) }), y({
|
|
591
|
+
activator: N(({ props: ne, shown: i, loading: a, text: o, selectedOptions: s, clear: ae, query: l, focus: u, close: d, toggle: f }) => [b(ee, {
|
|
588
592
|
ref_key: "wrapperRef",
|
|
589
|
-
ref:
|
|
593
|
+
ref: G,
|
|
590
594
|
active: i,
|
|
591
|
-
"append:icon":
|
|
592
|
-
class:
|
|
595
|
+
"append:icon": Je.value,
|
|
596
|
+
class: w(["bb-select__field", {
|
|
593
597
|
"bb-select__field--shown": i,
|
|
594
598
|
"bb-select__field--disabled": c.disabled,
|
|
595
|
-
"bb-select__field--readonly":
|
|
599
|
+
"bb-select__field--readonly": j(L)
|
|
596
600
|
}]),
|
|
597
601
|
clearable: c.clearable,
|
|
598
|
-
compact:
|
|
602
|
+
compact: j(B).compact,
|
|
599
603
|
disabled: c.disabled,
|
|
600
604
|
"has-errors": r,
|
|
601
|
-
"has-value":
|
|
605
|
+
"has-value": z.value,
|
|
602
606
|
"has-warnings": ie,
|
|
603
607
|
loading: a,
|
|
604
|
-
passthrough:
|
|
605
|
-
"prepend:icon":
|
|
606
|
-
readonly:
|
|
608
|
+
passthrough: Ke(a),
|
|
609
|
+
"prepend:icon": P["prepend:icon"],
|
|
610
|
+
readonly: j(L),
|
|
607
611
|
variant: c.variant,
|
|
608
612
|
"onClick:clear": () => {
|
|
609
|
-
ae(),
|
|
613
|
+
ae(), C(tt);
|
|
610
614
|
},
|
|
611
|
-
"onContainer:click":
|
|
612
|
-
},
|
|
613
|
-
"append:outer":
|
|
615
|
+
"onContainer:click": f
|
|
616
|
+
}, y({
|
|
617
|
+
"append:outer": N(() => [k(n.$slots, "append:outer", T(x({
|
|
614
618
|
query: l,
|
|
615
619
|
close: d
|
|
616
620
|
})))]),
|
|
617
|
-
append:
|
|
621
|
+
append: N(() => [k(n.$slots, "append", T(x({
|
|
618
622
|
query: l,
|
|
619
623
|
focus: u,
|
|
620
624
|
close: d
|
|
621
625
|
})))]),
|
|
622
|
-
prepend:
|
|
626
|
+
prepend: N(() => [k(n.$slots, "prepend", T(x({
|
|
623
627
|
query: l,
|
|
624
628
|
focus: u,
|
|
625
629
|
close: d
|
|
626
630
|
})))]),
|
|
627
|
-
"prepend:outer":
|
|
631
|
+
"prepend:outer": N(() => [k(n.$slots, "prepend:outer", T(x({
|
|
628
632
|
query: l,
|
|
629
633
|
close: d
|
|
630
634
|
})))]),
|
|
631
|
-
default:
|
|
635
|
+
default: N(() => [v("span", {
|
|
632
636
|
id: `${t}__value`,
|
|
633
637
|
ref_key: "valueRef",
|
|
634
|
-
ref:
|
|
638
|
+
ref: K,
|
|
635
639
|
class: "bb-select__value"
|
|
636
|
-
}, [Ce(
|
|
640
|
+
}, [Ce(v("input", S({
|
|
637
641
|
id: t,
|
|
638
642
|
"aria-labelledby": `${t}__label ${t}__selection`,
|
|
639
|
-
"aria-readonly":
|
|
640
|
-
"aria-required":
|
|
643
|
+
"aria-readonly": j(L) || void 0,
|
|
644
|
+
"aria-required": Ie.value,
|
|
641
645
|
autofocus: c.autofocus,
|
|
642
646
|
class: "bb-select__activator",
|
|
643
647
|
disabled: c.disabled,
|
|
644
648
|
type: "button"
|
|
645
|
-
},
|
|
646
|
-
|
|
649
|
+
}, S(ne, j(H).part("activator", { loading: a }))), null, 16, Ee), [[j(e)]]), c.multiple ? (E(), _(m, { key: 0 }, [
|
|
650
|
+
J.value || !X.value ? (E(), _("span", {
|
|
647
651
|
key: 0,
|
|
648
652
|
ref_key: "chipsContainerRef",
|
|
649
|
-
ref:
|
|
650
|
-
class:
|
|
651
|
-
"bb-select__chips-row--hidden":
|
|
653
|
+
ref: Qe,
|
|
654
|
+
class: w(["bb-select__chips-row", {
|
|
655
|
+
"bb-select__chips-row--hidden": X.value,
|
|
652
656
|
"bb-select__chips-row--chips": !c.comma && !!s.length
|
|
653
657
|
}]),
|
|
654
|
-
onVnodeUpdated: re[0] ||= (e) =>
|
|
655
|
-
}, [c.comma ? (
|
|
656
|
-
key:
|
|
658
|
+
onVnodeUpdated: re[0] ||= (e) => J.value && j(Q)()
|
|
659
|
+
}, [c.comma ? (E(!0), _(m, { key: 0 }, O(s, (e) => (E(), _("span", S({
|
|
660
|
+
key: j(ce)(e.value),
|
|
657
661
|
class: "bb-select__comma"
|
|
658
|
-
}, { ref_for: !0 },
|
|
659
|
-
deselect: () =>
|
|
660
|
-
disabled: !
|
|
662
|
+
}, { ref_for: !0 }, j(H).part("comma", {}, e.item)), A(e.text), 17))), 128)) : (E(!0), _(m, { key: 1 }, O(s, (e) => k(n.$slots, "chip", S({
|
|
663
|
+
deselect: () => et(e),
|
|
664
|
+
disabled: !Z.value,
|
|
661
665
|
text: e.text,
|
|
662
666
|
value: e.value
|
|
663
|
-
}, { ref_for: !0 },
|
|
667
|
+
}, { ref_for: !0 }, Ye(e.item)), () => [b(te, S({
|
|
664
668
|
class: "bb-select__badge",
|
|
665
|
-
clearable:
|
|
669
|
+
clearable: Z.value,
|
|
666
670
|
size: "lg",
|
|
667
671
|
variant: "secondary"
|
|
668
|
-
}, { ref_for: !0 },
|
|
669
|
-
default:
|
|
672
|
+
}, { ref_for: !0 }, j(H).part("badge", {}, e.item), { "onClick:clear": we((t) => et(e), ["stop"]) }), {
|
|
673
|
+
default: N(() => [_e(A(e.text), 1)]),
|
|
670
674
|
_: 2
|
|
671
|
-
}, 1040, ["clearable", "onClick:clear"])], void 0,
|
|
672
|
-
|
|
673
|
-
!s.length && c.placeholder ? (
|
|
674
|
-
], 64)) : (
|
|
675
|
+
}, 1040, ["clearable", "onClick:clear"])], void 0, j(ce)(e.value))), 128))], 2)) : g("", !0),
|
|
676
|
+
X.value ? (E(), _("span", De, A(nt.value), 1)) : g("", !0),
|
|
677
|
+
!s.length && c.placeholder ? (E(), _("span", Oe, A(c.placeholder), 1)) : g("", !0)
|
|
678
|
+
], 64)) : (E(), _("span", {
|
|
675
679
|
key: 1,
|
|
676
|
-
class:
|
|
677
|
-
},
|
|
680
|
+
class: w(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
|
|
681
|
+
}, A(o || c.placeholder), 3))], 8, Te), v("span", {
|
|
678
682
|
id: `${t}__selection`,
|
|
679
683
|
hidden: ""
|
|
680
|
-
},
|
|
684
|
+
}, A(rt(o)), 9, ke)]),
|
|
681
685
|
_: 2
|
|
682
686
|
}, [n.$slots.prefix ? {
|
|
683
687
|
name: "prefix",
|
|
684
|
-
fn:
|
|
688
|
+
fn: N(() => [k(n.$slots, "prefix")]),
|
|
685
689
|
key: "0"
|
|
686
690
|
} : void 0, n.$slots.suffix ? {
|
|
687
691
|
name: "suffix",
|
|
688
|
-
fn:
|
|
692
|
+
fn: N(() => [k(n.$slots, "suffix")]),
|
|
689
693
|
key: "1"
|
|
690
694
|
} : void 0]), 1032, [
|
|
691
695
|
"active",
|
|
@@ -704,36 +708,36 @@ var Te = ["id"], Ee = [
|
|
|
704
708
|
"variant",
|
|
705
709
|
"onClick:clear",
|
|
706
710
|
"onContainer:click"
|
|
707
|
-
]), (
|
|
708
|
-
loading:
|
|
709
|
-
empty:
|
|
710
|
-
group:
|
|
711
|
+
]), (E(!0), _(m, null, O(ot.value, (e) => (E(), _("input", S({ key: e.value }, { ref_for: !0 }, S(e, j(H).controlAttrs)), null, 16))), 128))]),
|
|
712
|
+
loading: N((e) => [k(n.$slots, "loading", T(x(e)))]),
|
|
713
|
+
empty: N((e) => [k(n.$slots, "empty", T(x(e)))]),
|
|
714
|
+
group: N((e) => [k(n.$slots, "group", T(x(e)))]),
|
|
711
715
|
_: 2
|
|
712
716
|
}, [
|
|
713
717
|
n.$slots.header ? {
|
|
714
718
|
name: "header",
|
|
715
|
-
fn:
|
|
719
|
+
fn: N((e) => [k(n.$slots, "header", T(x(e)))]),
|
|
716
720
|
key: "0"
|
|
717
721
|
} : void 0,
|
|
718
722
|
n.$slots.footer ? {
|
|
719
723
|
name: "footer",
|
|
720
|
-
fn:
|
|
724
|
+
fn: N((e) => [k(n.$slots, "footer", T(x(e)))]),
|
|
721
725
|
key: "1"
|
|
722
726
|
} : void 0,
|
|
723
727
|
n.$slots.option ? {
|
|
724
728
|
name: "option",
|
|
725
|
-
fn:
|
|
729
|
+
fn: N((e) => [k(n.$slots, "option", S({ hasErrors: r }, e))]),
|
|
726
730
|
key: "2"
|
|
727
731
|
} : void 0
|
|
728
|
-
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
|
|
732
|
+
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.open.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration.onUpdate:open".split("."))]),
|
|
729
733
|
_: 2
|
|
730
734
|
}, 1024)]),
|
|
731
735
|
_: 2
|
|
732
736
|
}, [n.$slots.description ? {
|
|
733
737
|
name: "description",
|
|
734
|
-
fn:
|
|
738
|
+
fn: N((e) => [k(n.$slots, "description", T(x(e)))]),
|
|
735
739
|
key: "0"
|
|
736
740
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.mobile.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
|
|
737
741
|
}
|
|
738
742
|
});
|
|
739
|
-
export {
|
|
743
|
+
export { P as default };
|