bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +4 -4
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +13 -1
- package/dist/ai/BbColorPalette.md +12 -7
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +13 -1
- package/dist/ai/BbDatePickerInput.md +18 -2
- package/dist/ai/BbDialog.md +6 -3
- package/dist/ai/BbDropdown.md +174 -77
- package/dist/ai/BbDropdownButton.md +37 -16
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +227 -105
- package/dist/ai/BbSelectPopover.md +139 -14
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +18 -17
- package/dist/ai/BbTimePicker.md +13 -1
- package/dist/ai/BbTimePickerInput.md +16 -2
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +3 -2
- package/dist/ai/ListBox.md +4 -2
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +310 -7
- package/dist/ai/components.json +33 -35
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +9 -5
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +70 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
- package/dist/ai/manifest/components/BbDropdown.json +36 -28
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
- package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +47 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +9 -1
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +3 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +3 -2
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +128 -11
- package/dist/ai/source/BbBadge.md +18 -7
- package/dist/ai/source/BbBreadcrumbs.md +57 -56
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +41 -34
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +23 -2
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +47 -3
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +296 -99
- package/dist/ai/source/BbDropdownButton.md +61 -19
- package/dist/ai/source/BbDropdownGroup.md +189 -98
- package/dist/ai/source/BbGallery.md +82 -60
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +151 -112
- package/dist/ai/source/BbSelectPopover.md +244 -29
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +114 -35
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +21 -2
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +33 -7
- package/dist/ai/source/GroupedListBox.md +85 -14
- package/dist/ai/source/ListBox.md +11 -1
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
- package/dist/components/BbDropdown/types.d.ts +109 -87
- package/dist/components/BbDropdown/types.js +3 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
- package/dist/components/BbDropdownButton/types.d.ts +23 -10
- package/dist/components/BbDropdownButton/types.js +4 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +110 -111
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +32 -17
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +1038 -451
- package/dist/llms-medium.txt +33 -28
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +5 -5
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +323 -307
- package/llms.txt +2 -2
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +93 -12
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -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
|
@@ -4,21 +4,21 @@ import { useItemText as n } from "../../composables/useItemText.js";
|
|
|
4
4
|
import { useItemValue as r } from "../../composables/useItemValue.js";
|
|
5
5
|
import { asDescription as i, createItemPropsResolver as a } from "../../utilities/functions/itemProps.js";
|
|
6
6
|
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
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
|
|
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
|
-
setup(
|
|
21
|
-
let
|
|
20
|
+
setup(d) {
|
|
21
|
+
let b = d, ce = /* @__PURE__ */ new Set([
|
|
22
22
|
"value",
|
|
23
23
|
"label",
|
|
24
24
|
"rowKey",
|
|
@@ -30,115 +30,121 @@ var _ = "__bb-dropdown-group:loading__", v = "__bb-dropdown-group:no-data__", se
|
|
|
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
|
-
|
|
37
|
-
],
|
|
42
|
+
me()
|
|
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) => {
|
|
38
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
47
|
return Object.keys(t).sort().reduce((e, n) => (e[n] = U(t[n]), e), {});
|
|
42
|
-
},
|
|
43
|
-
if (typeof e == "string") return
|
|
44
|
-
if (e == null || typeof e == "number" || typeof e == "boolean") return
|
|
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
52
|
let t = JSON.stringify(U(e));
|
|
47
|
-
return
|
|
53
|
+
return c(t ?? String(e));
|
|
48
54
|
} catch {
|
|
49
|
-
return
|
|
55
|
+
return c(String(e));
|
|
50
56
|
}
|
|
51
|
-
}, { getter:
|
|
52
|
-
items:
|
|
53
|
-
debounce:
|
|
54
|
-
}), q =
|
|
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 W.value) e.set(
|
|
62
|
+
for (let t of W.value) e.set(o(B(t)), t);
|
|
57
63
|
return e;
|
|
58
|
-
}),
|
|
64
|
+
}), we = u(() => {
|
|
59
65
|
let e = W.value;
|
|
60
|
-
if (!
|
|
61
|
-
let t = new Set(e.map((e) =>
|
|
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
69
|
}), J = /* @__PURE__ */ new Map();
|
|
64
|
-
|
|
65
|
-
if (!
|
|
70
|
+
x?.onPick(b.id, (e) => {
|
|
71
|
+
if (!I.value) return;
|
|
66
72
|
let t = q.value.get(e);
|
|
67
73
|
t !== void 0 && J.set(e, t);
|
|
68
|
-
}), p(() =>
|
|
69
|
-
if (!
|
|
70
|
-
let e =
|
|
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
81
|
let e = q.value.get(n) ?? J.get(n);
|
|
76
|
-
e !== void 0 &&
|
|
82
|
+
e !== void 0 && R(e), J.delete(n);
|
|
77
83
|
}
|
|
78
84
|
});
|
|
79
|
-
let Y =
|
|
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
|
-
}))), X =
|
|
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
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
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
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
114
|
for (let t of Y.value) t.description != null && e.set(t.key, t.description);
|
|
109
115
|
return e;
|
|
110
|
-
}), Z =
|
|
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
|
|
122
|
+
let Ae = u(() => w.value?.multiple ?? x?.multipleFor(b.id) ?? !1), Q = u(() => G.value && Y.value.length > 0), je = u(() => {
|
|
117
123
|
if (G.value && !Y.value.length) return [{
|
|
118
|
-
rowKey:
|
|
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
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
|
-
}] : K.value === null ? !
|
|
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
149
|
for (let [n, r] of Object.entries(V.value.all(e.item))) ce.has(n) || (t[n] = r);
|
|
144
150
|
return {
|
|
@@ -148,53 +154,62 @@ var _ = "__bb-dropdown-group:loading__", v = "__bb-dropdown-group:no-data__", se
|
|
|
148
154
|
label: e.text,
|
|
149
155
|
description: e.description,
|
|
150
156
|
fetched: !0,
|
|
151
|
-
...
|
|
157
|
+
...w.value?.groupBy == null ? {} : { groupByValue: ne(w.value.groupBy, e.item) },
|
|
152
158
|
disabled: (H.value ? !H.value(e.item) : !1) || n && !Z.value.includes(e.key)
|
|
153
159
|
};
|
|
154
160
|
});
|
|
155
|
-
return K.value !== null && r.push($()), r;
|
|
161
|
+
return K.value !== null && !G.value && r.push($()), r;
|
|
156
162
|
}), $ = () => ({
|
|
157
163
|
rowKey: se,
|
|
158
164
|
placeholder: "failed",
|
|
159
|
-
label:
|
|
165
|
+
label: w.value?.failedText ?? S.failedText.value ?? le.value,
|
|
160
166
|
disabled: !0
|
|
161
167
|
});
|
|
162
|
-
if (
|
|
163
|
-
let e =
|
|
164
|
-
key:
|
|
165
|
-
items:
|
|
166
|
-
order:
|
|
168
|
+
if (x) {
|
|
169
|
+
let e = u(() => ({
|
|
170
|
+
key: b.id,
|
|
171
|
+
items: je.value,
|
|
172
|
+
order: C
|
|
167
173
|
}));
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
valueByKey:
|
|
171
|
-
itemByKey:
|
|
172
|
-
textByKey:
|
|
173
|
-
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
|
|
174
180
|
});
|
|
175
|
-
}),
|
|
176
|
-
let t =
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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;
|
|
188
203
|
}
|
|
189
|
-
|
|
204
|
+
Se(() => N("search"));
|
|
190
205
|
}
|
|
191
|
-
}),
|
|
192
|
-
|
|
193
|
-
}, { debounce:
|
|
194
|
-
|
|
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);
|
|
195
210
|
});
|
|
196
211
|
}
|
|
197
|
-
return (e, t) =>
|
|
212
|
+
return (e, t) => h(e.$slots, "default");
|
|
198
213
|
}
|
|
199
214
|
});
|
|
200
|
-
export {
|
|
215
|
+
export { b as default };
|
|
@@ -1,14 +1,13 @@
|
|
|
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 { useInternalIcon as s } from "../../composables/useInternalIcon.js";
|
|
8
|
+
import { createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, openBlock as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
7
9
|
// 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({
|
|
10
|
+
var y = { class: "item__content" }, b = ["id"], x = ["id"], S = /*@__PURE__*/ p({
|
|
12
11
|
__name: "DropdownRow",
|
|
13
12
|
props: {
|
|
14
13
|
group: {},
|
|
@@ -17,8 +16,8 @@ var y = {
|
|
|
17
16
|
selected: { type: Boolean },
|
|
18
17
|
row: {}
|
|
19
18
|
},
|
|
20
|
-
setup(
|
|
21
|
-
let S =
|
|
19
|
+
setup(p) {
|
|
20
|
+
let S = p, C = s("next", o), w = s("check", a), T = r({
|
|
22
21
|
get to() {
|
|
23
22
|
return S.item.to;
|
|
24
23
|
},
|
|
@@ -38,40 +37,70 @@ var y = {
|
|
|
38
37
|
return S.item.replace;
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
|
-
return n(
|
|
42
|
-
ref: (e) =>
|
|
40
|
+
return n(T), (n, r) => (h(), c(e, m({
|
|
41
|
+
ref: (e) => p.row.setItemEl(p.index, e),
|
|
43
42
|
class: "bb-dropdown__item"
|
|
44
|
-
},
|
|
43
|
+
}, p.row.itemAttrs(p.group, p.item, p.index, p.selected, _(T))), {
|
|
45
44
|
default: v(() => [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
f(_(i), {
|
|
46
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
47
|
+
slots: [
|
|
48
|
+
p.row.itemSlot(p.item, "prepend"),
|
|
49
|
+
p.row.groupRowSlot(p.group, "prepend"),
|
|
50
|
+
p.row.slots["item:prepend"]
|
|
51
|
+
]
|
|
52
|
+
}, {
|
|
53
|
+
default: v(() => [p.item["prepend:icon"] ? (h(), c(t, m({
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "bb-dropdown__item-icon item__prepend-icon",
|
|
56
|
+
icon: p.item["prepend:icon"]
|
|
57
|
+
}, p.row.rowPart("itemIcon", p.item, p.selected, _(T))), null, 16, ["icon"])) : l("", !0)]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["props", "slots"]),
|
|
60
|
+
f(_(i), {
|
|
61
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
62
|
+
slots: [p.row.itemSlot(p.item), p.row.groupRowSlot(p.group)]
|
|
63
|
+
}, {
|
|
64
|
+
default: v(() => [d("span", y, [d("span", m({
|
|
65
|
+
id: p.row.rowTextId(p.index),
|
|
66
|
+
class: "bb-dropdown__item-text"
|
|
67
|
+
}, p.row.rowPart("itemText", p.item, p.selected, _(T))), g(p.item.label), 17, b), p.item.description ? (h(), u("span", m({
|
|
68
|
+
key: 0,
|
|
69
|
+
id: p.row.rowDescriptionId(p.index),
|
|
70
|
+
class: "bb-dropdown__item-description"
|
|
71
|
+
}, p.row.rowPart("itemDescription", p.item, p.selected, _(T))), g(p.item.description), 17, x)) : l("", !0)])]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["props", "slots"]),
|
|
74
|
+
p.group.selectable ? (h(), c(t, m({
|
|
55
75
|
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
76
|
"aria-hidden": "true",
|
|
62
|
-
class: "item__check",
|
|
63
|
-
icon: _(
|
|
64
|
-
},
|
|
65
|
-
|
|
77
|
+
class: ["item__check", { "item__check--own": _(w) !== _(a) }],
|
|
78
|
+
icon: _(w)
|
|
79
|
+
}, p.row.rowPart("check", p.item, p.selected, _(T))), null, 16, ["class", "icon"])) : l("", !0),
|
|
80
|
+
p.selected ? l("", !0) : (h(), c(_(i), {
|
|
66
81
|
key: 1,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
83
|
+
slots: [p.row.itemSlot(p.item, "append")]
|
|
84
|
+
}, {
|
|
85
|
+
default: v(() => [p.item.items ? (h(), c(t, {
|
|
86
|
+
key: 0,
|
|
87
|
+
"aria-hidden": "true",
|
|
88
|
+
class: "item__chevron",
|
|
89
|
+
icon: _(C)
|
|
90
|
+
}, null, 8, ["icon"])) : (h(), c(_(i), {
|
|
91
|
+
key: 1,
|
|
92
|
+
props: p.row.slotProps(p.group, p.item, p.index, p.selected, _(T)),
|
|
93
|
+
slots: [p.row.groupRowSlot(p.group, "append"), p.row.slots["item:append"]]
|
|
94
|
+
}, {
|
|
95
|
+
default: v(() => [p.item["append:icon"] ? (h(), c(t, m({
|
|
96
|
+
key: 0,
|
|
97
|
+
class: "bb-dropdown__item-icon item__append-icon",
|
|
98
|
+
icon: p.item["append:icon"]
|
|
99
|
+
}, p.row.rowPart("itemIcon", p.item, p.selected, _(T))), null, 16, ["icon"])) : l("", !0)]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["props", "slots"]))]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["props", "slots"]))
|
|
75
104
|
]),
|
|
76
105
|
_: 1
|
|
77
106
|
}, 16));
|
|
@@ -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 };
|