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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useLocale as e } from "../../composables/useLocale.js";
|
|
2
|
+
import t from "../ErrorIcon/ErrorIcon.vue.js";
|
|
3
|
+
import { useDropdownContext as n } from "./useDropdownContext.js";
|
|
4
|
+
import { Fragment as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, openBlock as c, renderList as l, toDisplayString as u, unref as d } from "vue";
|
|
5
|
+
// src/components/BbDropdown/DropdownFailures.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var f = { class: "bb-dropdown__failed-text" }, p = ["onClick"], m = /*@__PURE__*/ s({
|
|
7
|
+
__name: "DropdownFailures",
|
|
8
|
+
setup(s) {
|
|
9
|
+
let m = n(), { t: h } = e();
|
|
10
|
+
return (e, n) => (c(!0), i(r, null, l(d(m).failures.value, (e) => (c(), i("div", {
|
|
11
|
+
key: e.key,
|
|
12
|
+
class: "bb-dropdown__failed"
|
|
13
|
+
}, [
|
|
14
|
+
o(t, { class: "bb-dropdown__placeholder-icon" }),
|
|
15
|
+
a("span", f, u(e.text), 1),
|
|
16
|
+
a("button", {
|
|
17
|
+
class: "bb-load-retry",
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: (t) => d(m).retryFailure(e.key, t)
|
|
20
|
+
}, u(d(h)("common.retryLabel").value), 9, p)
|
|
21
|
+
]))), 128));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export { m as default };
|
package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -2,23 +2,23 @@ import { useArray as e } from "../../composables/useArray.js";
|
|
|
2
2
|
import { useItemsGetter as t } from "../../composables/useItemsGetter.js";
|
|
3
3
|
import { useItemText as n } from "../../composables/useItemText.js";
|
|
4
4
|
import { useItemValue as r } from "../../composables/useItemValue.js";
|
|
5
|
-
import { asDescription as i, createItemPropsResolver as
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import {
|
|
8
|
-
import { useHashedWatcher as
|
|
9
|
-
import { hash as
|
|
10
|
-
import { keyHaystacks as
|
|
11
|
-
import { slotKey as
|
|
12
|
-
import { useDropdownContext as
|
|
13
|
-
import { useDropdownGroupRegistry as
|
|
14
|
-
import { selectablePredicateOf as
|
|
15
|
-
import { computed as u, defineComponent as d, getCurrentInstance as
|
|
5
|
+
import { asDescription as i, createItemPropsResolver as a } from "../../utilities/functions/itemProps.js";
|
|
6
|
+
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
7
|
+
import { groupByTitle as te, groupByValue as ne } from "./normalizeGroups.js";
|
|
8
|
+
import { useHashedWatcher as re } from "../../composables/useHashedWatcher.js";
|
|
9
|
+
import { hash as o } from "../../utilities/functions/hash.js";
|
|
10
|
+
import { keyHaystacks as s, rankByQuery as ie } from "../../utilities/functions/searchRank.js";
|
|
11
|
+
import { slotKey as c } from "../../utilities/functions/slotKey.js";
|
|
12
|
+
import { useDropdownContext as ae } from "./useDropdownContext.js";
|
|
13
|
+
import { useDropdownGroupRegistry as oe } from "./useDropdownGroupRegistry.js";
|
|
14
|
+
import { selectablePredicateOf as l } from "./types.js";
|
|
15
|
+
import { computed as u, defineComponent as d, getCurrentInstance as f, onUnmounted as p, ref as m, renderSlot as h, watch as g, watchEffect as _ } from "vue";
|
|
16
16
|
// src/components/BbDropdown/DropdownPipelineResolver.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
17
|
+
var v = "__bb-dropdown-group:loading__", y = "__bb-dropdown-group:no-data__", se = "__bb-dropdown-group:failed__", b = /*@__PURE__*/ d({
|
|
18
18
|
__name: "DropdownPipelineResolver",
|
|
19
19
|
props: { id: {} },
|
|
20
20
|
setup(d) {
|
|
21
|
-
let
|
|
21
|
+
let b = d, ce = /* @__PURE__ */ new Set([
|
|
22
22
|
"value",
|
|
23
23
|
"label",
|
|
24
24
|
"rowKey",
|
|
@@ -30,117 +30,123 @@ var g = "__bb-dropdown-group:loading__", _ = "__bb-dropdown-group:no-data__", ce
|
|
|
30
30
|
"placeholder",
|
|
31
31
|
"slotKey",
|
|
32
32
|
"disabled"
|
|
33
|
-
]),
|
|
34
|
-
|
|
33
|
+
]), x = oe(), S = ae(), C = f().uid, w = u(() => x?.configFor(b.id)), { t: T } = ee(), E = T("common.loadingText"), D = T("common.emptyText"), le = T("common.failedText"), ue = T("select.searchToStart"), de = u(() => {
|
|
34
|
+
let e = w.value?.minQueryLength ?? 0;
|
|
35
|
+
return e > 1 ? T("select.searchMinLength", e).value : ue.value;
|
|
36
|
+
}), O = u(() => !!w.value?.searchable), k = u(() => S.queryFor(b.id)), fe = u(() => {
|
|
37
|
+
let e = w.value?.minQueryLength ?? 0;
|
|
38
|
+
return e > 0 && [...k.value.trim()].length < e;
|
|
39
|
+
}), A = u(() => fe.value ? "" : k.value), j = u(() => w.value?.filterBy ?? []), M = u(() => w.value?.prefill ?? "interaction"), pe = u(() => M.value === !1), me = () => x?.modelValueFor(b.id), N = (e) => [
|
|
40
|
+
O.value ? A.value : void 0,
|
|
35
41
|
e,
|
|
36
42
|
me()
|
|
37
|
-
],
|
|
38
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
43
|
+
], P = (e) => xe(...N(e)), F = m(!1), I = u(() => !!w.value?.stash), { array: L, add: R, remove: z } = e(), { getOptionText: he } = n(), { getOptionValue: ge } = r(), B = (e) => ge(e, w.value?.itemValue), _e = (e) => he(e, w.value?.itemText), V = u(() => a(w.value?.itemProps)), H = u(() => w.value ? l(w.value) : void 0), ve = (e) => i(V.value.field(e, "description")), ye = (e) => !!V.value.field(e, "hidden"), U = (e) => {
|
|
44
|
+
if (Array.isArray(e)) return e.map((e) => U(e));
|
|
39
45
|
if (!e || typeof e != "object") return e;
|
|
40
46
|
let t = e;
|
|
41
|
-
return Object.keys(t).sort().reduce((e, n) => (e[n] =
|
|
42
|
-
},
|
|
43
|
-
if (typeof e == "string") return
|
|
44
|
-
if (e == null || typeof e == "number" || typeof e == "boolean") return
|
|
47
|
+
return Object.keys(t).sort().reduce((e, n) => (e[n] = U(t[n]), e), {});
|
|
48
|
+
}, be = (e) => {
|
|
49
|
+
if (typeof e == "string") return c(e);
|
|
50
|
+
if (e == null || typeof e == "number" || typeof e == "boolean") return c(String(e));
|
|
45
51
|
try {
|
|
46
|
-
let t = JSON.stringify(
|
|
47
|
-
return
|
|
52
|
+
let t = JSON.stringify(U(e));
|
|
53
|
+
return c(t ?? String(e));
|
|
48
54
|
} catch {
|
|
49
|
-
return
|
|
55
|
+
return c(String(e));
|
|
50
56
|
}
|
|
51
|
-
}, { getter:
|
|
52
|
-
items: u(() =>
|
|
53
|
-
debounce:
|
|
54
|
-
}),
|
|
57
|
+
}, { getter: xe, debouncedGetter: Se, items: W, loading: G, error: K, retry: Ce } = t({
|
|
58
|
+
items: u(() => w.value?.items),
|
|
59
|
+
debounce: S.queryDebounceTime.value
|
|
60
|
+
}), q = u(() => {
|
|
55
61
|
let e = /* @__PURE__ */ new Map();
|
|
56
|
-
for (let t of
|
|
62
|
+
for (let t of W.value) e.set(o(B(t)), t);
|
|
57
63
|
return e;
|
|
58
|
-
}),
|
|
59
|
-
let e =
|
|
60
|
-
if (!
|
|
61
|
-
let t = new Set(e.map((e) =>
|
|
64
|
+
}), we = u(() => {
|
|
65
|
+
let e = W.value;
|
|
66
|
+
if (!I.value || !L.value.length) return e;
|
|
67
|
+
let t = new Set(e.map((e) => o(B(e)))), n = L.value.filter((e) => !t.has(o(B(e))));
|
|
62
68
|
return n.length ? [...e, ...n] : e;
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
if (!
|
|
66
|
-
let t =
|
|
67
|
-
t !== void 0 &&
|
|
68
|
-
}),
|
|
69
|
-
if (!
|
|
70
|
-
let e =
|
|
69
|
+
}), J = /* @__PURE__ */ new Map();
|
|
70
|
+
x?.onPick(b.id, (e) => {
|
|
71
|
+
if (!I.value) return;
|
|
72
|
+
let t = q.value.get(e);
|
|
73
|
+
t !== void 0 && J.set(e, t);
|
|
74
|
+
}), p(() => x?.onPick(b.id, null)), _(() => {
|
|
75
|
+
if (!I.value) return;
|
|
76
|
+
let e = x?.selectionFor(b.id) ?? [];
|
|
71
77
|
if (!e.length) return;
|
|
72
|
-
let t = new Set(
|
|
78
|
+
let t = new Set(L.value.map((e) => o(B(e))));
|
|
73
79
|
for (let n of e) {
|
|
74
80
|
if (t.has(n)) continue;
|
|
75
|
-
let e =
|
|
76
|
-
e !== void 0 &&
|
|
81
|
+
let e = q.value.get(n) ?? J.get(n);
|
|
82
|
+
e !== void 0 && R(e), J.delete(n);
|
|
77
83
|
}
|
|
78
84
|
});
|
|
79
|
-
let
|
|
85
|
+
let Y = u(() => we.value.map((e) => ({
|
|
80
86
|
item: e,
|
|
81
|
-
value:
|
|
82
|
-
key:
|
|
83
|
-
slotToken:
|
|
84
|
-
text:
|
|
85
|
-
description:
|
|
86
|
-
hidden:
|
|
87
|
-
}))),
|
|
88
|
-
if (!
|
|
89
|
-
let e =
|
|
90
|
-
return
|
|
87
|
+
value: B(e),
|
|
88
|
+
key: o(B(e)),
|
|
89
|
+
slotToken: be(B(e)),
|
|
90
|
+
text: _e(e),
|
|
91
|
+
description: ve(e),
|
|
92
|
+
hidden: ye(e)
|
|
93
|
+
}))), X = u(() => Y.value.filter((e) => !e.hidden)), Te = u(() => {
|
|
94
|
+
if (!O.value || !A.value || j.value === !1) return X.value;
|
|
95
|
+
let e = j.value, t = w.value?.groupBy;
|
|
96
|
+
return ie(X.value, (t) => e.length ? s(t.item, e) : s({
|
|
91
97
|
text: t.text,
|
|
92
98
|
description: t.description
|
|
93
|
-
}, t.description == null ? ["text"] : ["text", "description"]),
|
|
94
|
-
}),
|
|
99
|
+
}, t.description == null ? ["text"] : ["text", "description"]), A.value, t == null ? void 0 : (e) => te(t, e.item));
|
|
100
|
+
}), Ee = u(() => {
|
|
95
101
|
let e = /* @__PURE__ */ new Map();
|
|
96
|
-
for (let t of
|
|
102
|
+
for (let t of Y.value) e.set(t.key, t.value);
|
|
97
103
|
return e;
|
|
98
|
-
}),
|
|
104
|
+
}), De = u(() => {
|
|
99
105
|
let e = /* @__PURE__ */ new Map();
|
|
100
|
-
for (let t of
|
|
106
|
+
for (let t of Y.value) e.set(t.key, t.item);
|
|
101
107
|
return e;
|
|
102
|
-
}),
|
|
108
|
+
}), Oe = u(() => {
|
|
103
109
|
let e = /* @__PURE__ */ new Map();
|
|
104
|
-
for (let t of
|
|
110
|
+
for (let t of Y.value) e.set(t.key, t.text);
|
|
105
111
|
return e;
|
|
106
|
-
}),
|
|
112
|
+
}), ke = u(() => {
|
|
107
113
|
let e = /* @__PURE__ */ new Map();
|
|
108
|
-
for (let t of
|
|
114
|
+
for (let t of Y.value) t.description != null && e.set(t.key, t.description);
|
|
109
115
|
return e;
|
|
110
|
-
}), Z = u(() =>
|
|
111
|
-
|
|
112
|
-
if (!
|
|
116
|
+
}), Z = u(() => x?.selectionFor(b.id) ?? []);
|
|
117
|
+
g(Z, (e) => {
|
|
118
|
+
if (!I.value || !L.value.length) return;
|
|
113
119
|
let t = new Set(e);
|
|
114
|
-
|
|
120
|
+
z((e) => t.has(o(B(e))));
|
|
115
121
|
});
|
|
116
|
-
let
|
|
117
|
-
if (
|
|
118
|
-
rowKey:
|
|
122
|
+
let Ae = u(() => w.value?.multiple ?? x?.multipleFor(b.id) ?? !1), Q = u(() => G.value && Y.value.length > 0), je = u(() => {
|
|
123
|
+
if (G.value && !Y.value.length) return [{
|
|
124
|
+
rowKey: v,
|
|
119
125
|
placeholder: "loading",
|
|
120
|
-
label:
|
|
126
|
+
label: w.value?.loadingText ?? S.loadingText.value ?? E.value,
|
|
121
127
|
disabled: !0
|
|
122
128
|
}];
|
|
123
|
-
if (
|
|
124
|
-
rowKey:
|
|
129
|
+
if (O.value && pe.value && !F.value) return [{
|
|
130
|
+
rowKey: y,
|
|
125
131
|
placeholder: "empty",
|
|
126
|
-
label:
|
|
132
|
+
label: de.value,
|
|
127
133
|
disabled: !0
|
|
128
134
|
}];
|
|
129
|
-
let e =
|
|
135
|
+
let e = Te.value;
|
|
130
136
|
if (!e.length) return Q.value ? [{
|
|
131
|
-
rowKey:
|
|
137
|
+
rowKey: v,
|
|
132
138
|
placeholder: "loading",
|
|
133
|
-
label:
|
|
139
|
+
label: w.value?.loadingText ?? S.loadingText.value ?? E.value,
|
|
134
140
|
disabled: !0
|
|
135
|
-
}] :
|
|
136
|
-
rowKey:
|
|
141
|
+
}] : K.value === null ? !A.value && Y.value.length && !X.value.length ? [] : [{
|
|
142
|
+
rowKey: y,
|
|
137
143
|
placeholder: "empty",
|
|
138
|
-
label:
|
|
144
|
+
label: w.value?.emptyText ?? S.emptyText.value ?? D.value,
|
|
139
145
|
disabled: !0
|
|
140
146
|
}] : [$()];
|
|
141
|
-
let t =
|
|
147
|
+
let t = w.value?.max ?? Infinity, n = Ae.value && Z.value.length >= t, r = e.map((e) => {
|
|
142
148
|
let t = {};
|
|
143
|
-
for (let [n, r] of Object.entries(
|
|
149
|
+
for (let [n, r] of Object.entries(V.value.all(e.item))) ce.has(n) || (t[n] = r);
|
|
144
150
|
return {
|
|
145
151
|
...t,
|
|
146
152
|
rowKey: e.key,
|
|
@@ -148,54 +154,62 @@ var g = "__bb-dropdown-group:loading__", _ = "__bb-dropdown-group:no-data__", ce
|
|
|
148
154
|
label: e.text,
|
|
149
155
|
description: e.description,
|
|
150
156
|
fetched: !0,
|
|
151
|
-
...
|
|
152
|
-
disabled: (
|
|
157
|
+
...w.value?.groupBy == null ? {} : { groupByValue: ne(w.value.groupBy, e.item) },
|
|
158
|
+
disabled: (H.value ? !H.value(e.item) : !1) || n && !Z.value.includes(e.key)
|
|
153
159
|
};
|
|
154
160
|
});
|
|
155
|
-
return
|
|
161
|
+
return K.value !== null && !G.value && r.push($()), r;
|
|
156
162
|
}), $ = () => ({
|
|
157
|
-
rowKey:
|
|
163
|
+
rowKey: se,
|
|
158
164
|
placeholder: "failed",
|
|
159
|
-
|
|
160
|
-
label: S.value?.failedText ?? b.failedText.value ?? de.value,
|
|
165
|
+
label: w.value?.failedText ?? S.failedText.value ?? le.value,
|
|
161
166
|
disabled: !0
|
|
162
167
|
});
|
|
163
|
-
if (
|
|
168
|
+
if (x) {
|
|
164
169
|
let e = u(() => ({
|
|
165
|
-
key:
|
|
166
|
-
items:
|
|
167
|
-
order:
|
|
170
|
+
key: b.id,
|
|
171
|
+
items: je.value,
|
|
172
|
+
order: C
|
|
168
173
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
valueByKey:
|
|
172
|
-
itemByKey:
|
|
173
|
-
textByKey:
|
|
174
|
-
descriptionByKey:
|
|
174
|
+
x.register(C, e), _(() => {
|
|
175
|
+
x.publishPipeline(b.id, {
|
|
176
|
+
valueByKey: Ee.value,
|
|
177
|
+
itemByKey: De.value,
|
|
178
|
+
textByKey: Oe.value,
|
|
179
|
+
descriptionByKey: ke.value
|
|
175
180
|
});
|
|
176
|
-
}),
|
|
177
|
-
let t = u(() =>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
181
|
+
}), _(() => x.publishLoading(b.id, Q.value)), _(() => x.publishFetching(b.id, G.value));
|
|
182
|
+
let t = u(() => w.value?.enforceCoherence ?? S.enforceCoherence.value ?? !1), n = async () => {
|
|
183
|
+
await Ce() === "applied" && r();
|
|
184
|
+
};
|
|
185
|
+
_(() => {
|
|
186
|
+
x.publishFailure(b.id, K.value !== null && !G.value ? {
|
|
187
|
+
text: $().label,
|
|
188
|
+
retry: n
|
|
189
|
+
} : null);
|
|
190
|
+
});
|
|
191
|
+
let r = () => {
|
|
192
|
+
if (!x || !t.value) return;
|
|
193
|
+
let e = q.value, n = x.selectionFor(b.id), r = n.filter((t) => e.has(t));
|
|
194
|
+
r.length !== n.length && (x.isControlled(b.id) ? x.request(b.id, { keep: new Set(e.keys()) }) : x.setSelection(b.id, r));
|
|
195
|
+
}, i = u(() => S.isTopLevelPipeline(b.id) ? S.open.value : S.isActivated(b.id)), a = u(() => M.value === !0 ? !0 : M.value === "interaction" || !O.value ? i.value : !1);
|
|
196
|
+
g(a, async (e) => {
|
|
197
|
+
e && !F.value && (F.value = !0, await P("initial") === "applied" && r());
|
|
198
|
+
}, { immediate: !0 }), g(A, () => {
|
|
199
|
+
if (O.value) {
|
|
200
|
+
if (!F.value) {
|
|
201
|
+
if (!A.value) return;
|
|
202
|
+
F.value = !0;
|
|
189
203
|
}
|
|
190
|
-
|
|
204
|
+
Se(() => N("search"));
|
|
191
205
|
}
|
|
192
|
-
}),
|
|
193
|
-
|
|
194
|
-
}, { debounce:
|
|
195
|
-
|
|
206
|
+
}), re(() => [w.value?.dependencies], async () => {
|
|
207
|
+
F.value && await P("dependencies") === "applied" && r();
|
|
208
|
+
}, { debounce: w.value?.depsDebounceTime ?? 0 }), p(() => {
|
|
209
|
+
x.unregister(C), x.publishPipeline(b.id, null), x.publishLoading(b.id, !1), x.publishFetching(b.id, !1), x.publishFailure(b.id, null);
|
|
196
210
|
});
|
|
197
211
|
}
|
|
198
|
-
return (e, t) =>
|
|
212
|
+
return (e, t) => h(e.$slots, "default");
|
|
199
213
|
}
|
|
200
214
|
});
|
|
201
|
-
export {
|
|
215
|
+
export { b as default };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import e from "../BbBaseButton/BbBaseButton.vue.js";
|
|
2
2
|
import t from "../BbIcon/BbIcon.vue.js";
|
|
3
3
|
import { provideLinkState as n, useLinkState as r } from "../BbBaseButton/useLinkState.js";
|
|
4
|
-
import i from "../../
|
|
5
|
-
import a from "../../assets/svgs/
|
|
6
|
-
import
|
|
4
|
+
import { SlotChain as i } from "../../utilities/functions/slotContent.js";
|
|
5
|
+
import a from "../../assets/svgs/check_stroke.svg_raw.js";
|
|
6
|
+
import o from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
7
|
+
import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, openBlock as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
7
8
|
// src/components/BbDropdown/DropdownRow.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var y = {
|
|
9
|
-
key: 4,
|
|
10
|
-
class: "item__content"
|
|
11
|
-
}, b = ["id"], x = ["id"], S = /*@__PURE__*/ d({
|
|
9
|
+
var v = { class: "item__content" }, y = ["id"], b = ["id"], x = /*@__PURE__*/ f({
|
|
12
10
|
__name: "DropdownRow",
|
|
13
11
|
props: {
|
|
14
12
|
group: {},
|
|
@@ -17,64 +15,94 @@ var y = {
|
|
|
17
15
|
selected: { type: Boolean },
|
|
18
16
|
row: {}
|
|
19
17
|
},
|
|
20
|
-
setup(
|
|
21
|
-
let
|
|
18
|
+
setup(f) {
|
|
19
|
+
let x = f, S = r({
|
|
22
20
|
get to() {
|
|
23
|
-
return
|
|
21
|
+
return x.item.to;
|
|
24
22
|
},
|
|
25
23
|
get href() {
|
|
26
|
-
return
|
|
24
|
+
return x.item.href;
|
|
27
25
|
},
|
|
28
26
|
get disabled() {
|
|
29
|
-
return
|
|
27
|
+
return x.item.disabled;
|
|
30
28
|
},
|
|
31
29
|
get external() {
|
|
32
|
-
return
|
|
30
|
+
return x.item.external;
|
|
33
31
|
},
|
|
34
32
|
get target() {
|
|
35
|
-
return
|
|
33
|
+
return x.item.target;
|
|
36
34
|
},
|
|
37
35
|
get replace() {
|
|
38
|
-
return
|
|
36
|
+
return x.item.replace;
|
|
39
37
|
}
|
|
40
38
|
});
|
|
41
|
-
return n(
|
|
42
|
-
ref: (e) =>
|
|
39
|
+
return n(S), (n, r) => (m(), s(e, p({
|
|
40
|
+
ref: (e) => f.row.setItemEl(f.index, e),
|
|
43
41
|
class: "bb-dropdown__item"
|
|
44
|
-
},
|
|
45
|
-
default:
|
|
46
|
-
d
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
}, f.row.itemAttrs(f.group, f.item, f.index, f.selected, g(S))), {
|
|
43
|
+
default: _(() => [
|
|
44
|
+
d(g(i), {
|
|
45
|
+
props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
|
|
46
|
+
slots: [
|
|
47
|
+
f.row.itemSlot(f.item, "prepend"),
|
|
48
|
+
f.row.groupRowSlot(f.group, "prepend"),
|
|
49
|
+
f.row.slots["item:prepend"]
|
|
50
|
+
]
|
|
51
|
+
}, {
|
|
52
|
+
default: _(() => [f.item["prepend:icon"] ? (m(), s(t, p({
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "bb-dropdown__item-icon item__prepend-icon",
|
|
55
|
+
icon: f.item["prepend:icon"]
|
|
56
|
+
}, f.row.rowPart("itemIcon", f.item, f.selected, g(S))), null, 16, ["icon"])) : c("", !0)]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["props", "slots"]),
|
|
59
|
+
d(g(i), {
|
|
60
|
+
props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
|
|
61
|
+
slots: [f.row.itemSlot(f.item), f.row.groupRowSlot(f.group)]
|
|
62
|
+
}, {
|
|
63
|
+
default: _(() => [u("span", v, [u("span", p({
|
|
64
|
+
id: f.row.rowTextId(f.index),
|
|
65
|
+
class: "bb-dropdown__item-text"
|
|
66
|
+
}, f.row.rowPart("itemText", f.item, f.selected, g(S))), h(f.item.label), 17, y), f.item.description ? (m(), l("span", p({
|
|
67
|
+
key: 0,
|
|
68
|
+
id: f.row.rowDescriptionId(f.index),
|
|
69
|
+
class: "bb-dropdown__item-description"
|
|
70
|
+
}, f.row.rowPart("itemDescription", f.item, f.selected, g(S))), h(f.item.description), 17, b)) : c("", !0)])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["props", "slots"]),
|
|
73
|
+
f.group.selectable ? (m(), s(t, p({
|
|
55
74
|
key: 0,
|
|
56
|
-
id: d.row.rowDescriptionId(d.index),
|
|
57
|
-
class: "bb-dropdown__item-description"
|
|
58
|
-
}, d.row.rowPart("itemDescription", d.item, d.selected, _(C))), g(d.item.description), 17, x)) : c("", !0)])),
|
|
59
|
-
d.group.selectable ? (m(), s(t, f({
|
|
60
|
-
key: 5,
|
|
61
75
|
"aria-hidden": "true",
|
|
62
76
|
class: "item__check",
|
|
63
|
-
icon:
|
|
64
|
-
},
|
|
65
|
-
|
|
77
|
+
icon: g(a)
|
|
78
|
+
}, f.row.rowPart("check", f.item, f.selected, g(S))), null, 16, ["icon"])) : c("", !0),
|
|
79
|
+
f.selected ? c("", !0) : (m(), s(g(i), {
|
|
66
80
|
key: 1,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
|
|
82
|
+
slots: [f.row.itemSlot(f.item, "append")]
|
|
83
|
+
}, {
|
|
84
|
+
default: _(() => [f.item.items ? (m(), s(t, {
|
|
85
|
+
key: 0,
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
class: "item__chevron",
|
|
88
|
+
icon: g(o)
|
|
89
|
+
}, null, 8, ["icon"])) : (m(), s(g(i), {
|
|
90
|
+
key: 1,
|
|
91
|
+
props: f.row.slotProps(f.group, f.item, f.index, f.selected, g(S)),
|
|
92
|
+
slots: [f.row.groupRowSlot(f.group, "append"), f.row.slots["item:append"]]
|
|
93
|
+
}, {
|
|
94
|
+
default: _(() => [f.item["append:icon"] ? (m(), s(t, p({
|
|
95
|
+
key: 0,
|
|
96
|
+
class: "bb-dropdown__item-icon item__append-icon",
|
|
97
|
+
icon: f.item["append:icon"]
|
|
98
|
+
}, f.row.rowPart("itemIcon", f.item, f.selected, g(S))), null, 16, ["icon"])) : c("", !0)]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["props", "slots"]))]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["props", "slots"]))
|
|
75
103
|
]),
|
|
76
104
|
_: 1
|
|
77
105
|
}, 16));
|
|
78
106
|
}
|
|
79
107
|
});
|
|
80
|
-
export {
|
|
108
|
+
export { x as default };
|
|
@@ -45,6 +45,7 @@ var f = (e) => e.map(d).filter((e) => l(e)), p = (e = []) => {
|
|
|
45
45
|
onClick: e.onClick,
|
|
46
46
|
searchable: e.searchable,
|
|
47
47
|
searchPlaceholder: e.searchPlaceholder,
|
|
48
|
+
minQueryLength: e.minQueryLength,
|
|
48
49
|
groupBy: e.groupBy,
|
|
49
50
|
filterBy: e.filterBy,
|
|
50
51
|
maxHeight: e.maxHeight,
|
|
@@ -98,6 +99,9 @@ var f = (e) => e.map(d).filter((e) => l(e)), p = (e = []) => {
|
|
|
98
99
|
}, g = (e, t) => {
|
|
99
100
|
if (e == null || t == null) return;
|
|
100
101
|
let r = typeof e == "function" ? e(t) : n(t, e);
|
|
101
|
-
return r == null || r === "" ? void 0 :
|
|
102
|
+
return r == null || r === "" ? void 0 : r;
|
|
103
|
+
}, _ = (e, t) => {
|
|
104
|
+
let n = g(e, t);
|
|
105
|
+
return n === void 0 ? void 0 : String(n);
|
|
102
106
|
};
|
|
103
|
-
export { m as hasRowValue, u as hasVisibleRow, c as levelHasSearch, p as normalizeGroups
|
|
107
|
+
export { _ as groupByTitle, g as groupByValue, m as hasRowValue, u as hasVisibleRow, c as levelHasSearch, p as normalizeGroups };
|
|
@@ -41,6 +41,14 @@ export interface BbDropdownPtKeys {
|
|
|
41
41
|
* The menu's footer band. While `open`: the menu is open.
|
|
42
42
|
*/
|
|
43
43
|
'pt:footer:open'?: PtValue;
|
|
44
|
+
/**
|
|
45
|
+
* Every searchable group's search box (field and magnifier), as `box` on a field; desktop and phone.
|
|
46
|
+
*/
|
|
47
|
+
'pt:box'?: PtValue;
|
|
48
|
+
/**
|
|
49
|
+
* Every searchable group's search box (field and magnifier), as `box` on a field; desktop and phone. While `open`: the menu is open.
|
|
50
|
+
*/
|
|
51
|
+
'pt:box:open'?: PtValue;
|
|
44
52
|
/**
|
|
45
53
|
* A searchable group's search field — a broadcast: it lands on every searchable group's field, desktop and phone alike. Its magnifier glyph is chrome.
|
|
46
54
|
*/
|