bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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 +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
|
@@ -7,50 +7,51 @@ import a from "./BbDropdownList.vue.js";
|
|
|
7
7
|
import ee from "./DropdownRow.vue.js";
|
|
8
8
|
import { isImeComposing as o } from "../../utilities/functions/isImeComposing.js";
|
|
9
9
|
import { extractHtmlContainer as s } from "../../utilities/functions/extractDomContainer.js";
|
|
10
|
-
import {
|
|
10
|
+
import { keyHaystacks as te, rankByQuery as ne } from "../../utilities/functions/searchRank.js";
|
|
11
11
|
import { slotKey as c } from "../../utilities/functions/slotKey.js";
|
|
12
|
-
import
|
|
13
|
-
import { useId as
|
|
14
|
-
import { useImeDismissBlur as
|
|
15
|
-
import { useLocale as
|
|
16
|
-
import { useConfig as
|
|
17
|
-
import { isPrintableTypeaheadKey as
|
|
18
|
-
import { useSheetSurface as
|
|
19
|
-
import { levelHasSearch as
|
|
20
|
-
import { useDropdownContext as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
12
|
+
import re from "../../assets/svgs/search.svg_raw.js";
|
|
13
|
+
import { useId as ie } from "../../composables/useId.js";
|
|
14
|
+
import { useImeDismissBlur as ae } from "../../composables/useImeDismissBlur.js";
|
|
15
|
+
import { useLocale as oe } from "../../composables/useLocale.js";
|
|
16
|
+
import { useConfig as se } from "../../composables/useConfig.js";
|
|
17
|
+
import { isPrintableTypeaheadKey as ce, normalizeSearchToken as le, useTypeahead as ue } from "../../composables/useTypeahead.js";
|
|
18
|
+
import { useSheetSurface as de } from "../../composables/useSheetSurface.js";
|
|
19
|
+
import { levelHasSearch as fe, normalizeGroups as pe, sectionTitle as me } from "./normalizeGroups.js";
|
|
20
|
+
import { useDropdownContext as he } from "./useDropdownContext.js";
|
|
21
|
+
import { markRowsChanged as ge, pointerStill as _e, trackPointer as ve } from "./pointerTrail.js";
|
|
22
|
+
import { focusQuietly as ye, focusVisibly as be } from "../../utils/focusVisibility.js";
|
|
23
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as xe, createVNode as Se, defineComponent as h, h as Ce, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as we, onBeforeUnmount as Te, onMounted as y, onUpdated as Ee, openBlock as b, ref as x, renderList as S, resolveDynamicComponent as C, toDisplayString as w, unref as T, watch as E, watchEffect as De, withCtx as D, withKeys as Oe, withModifiers as ke } from "vue";
|
|
23
24
|
// src/components/BbDropdown/BbDropdownList.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var
|
|
25
|
+
var Ae = {
|
|
25
26
|
key: 0,
|
|
26
27
|
"aria-hidden": "true",
|
|
27
28
|
class: "bb-dropdown__divider"
|
|
28
|
-
},
|
|
29
|
+
}, je = [
|
|
29
30
|
"id",
|
|
30
31
|
"role",
|
|
31
32
|
"tabindex",
|
|
32
33
|
"onClick",
|
|
33
34
|
"onKeydown"
|
|
34
|
-
],
|
|
35
|
+
], Me = {
|
|
35
36
|
key: 4,
|
|
36
37
|
class: "group-title__content"
|
|
37
|
-
},
|
|
38
|
+
}, Ne = {
|
|
38
39
|
key: 2,
|
|
39
40
|
class: "bb-dropdown__sheet-selection"
|
|
40
|
-
},
|
|
41
|
+
}, Pe = { class: "bb-dropdown__sheet-chips" }, Fe = {
|
|
41
42
|
key: 3,
|
|
42
43
|
class: "bb-dropdown__group-search",
|
|
43
44
|
role: "none"
|
|
44
|
-
},
|
|
45
|
+
}, Ie = [
|
|
45
46
|
"aria-label",
|
|
46
47
|
"placeholder",
|
|
47
48
|
"value",
|
|
48
49
|
"onInput"
|
|
49
|
-
],
|
|
50
|
+
], Le = {
|
|
50
51
|
key: 0,
|
|
51
52
|
"aria-hidden": "true",
|
|
52
53
|
class: "bb-dropdown__group-loading"
|
|
53
|
-
},
|
|
54
|
+
}, Re = ["aria-labelledby", "role"], ze = ["id"], Be = { class: "group-title__content" }, Ve = { class: "item__content" }, He = [
|
|
54
55
|
"id",
|
|
55
56
|
"aria-label",
|
|
56
57
|
"data-bb-dropdown-surface",
|
|
@@ -58,7 +59,7 @@ var Oe = {
|
|
|
58
59
|
"role",
|
|
59
60
|
"onKeydown",
|
|
60
61
|
"onPointerleave"
|
|
61
|
-
],
|
|
62
|
+
], Ue = 289, We = 160, Ge = 100, Ke = 120, qe = /*@__PURE__*/ h({
|
|
62
63
|
__name: "BbDropdownList",
|
|
63
64
|
props: {
|
|
64
65
|
groups: {},
|
|
@@ -68,42 +69,41 @@ var Oe = {
|
|
|
68
69
|
slotDepth: {}
|
|
69
70
|
},
|
|
70
71
|
emits: ["close-level"],
|
|
71
|
-
setup(h, { expose:
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
let r = n && n.length ? n : e.description == null ? ["label"] : ["label", "description"];
|
|
72
|
+
setup(h, { expose: qe, emit: Je }) {
|
|
73
|
+
let O = h, Ye = Je, Xe = u(() => O.slotDepth ?? O.level), k = he(), { inSheet: A } = de(), { t: Ze } = oe(), Qe = Ze("select.searchLabel"), $e = Ze("common.emptyText"), et = (e, t) => {
|
|
74
|
+
let n = t && t.length ? t : e.description == null ? ["label"] : ["label", "description"];
|
|
75
75
|
try {
|
|
76
|
-
return te(e,
|
|
76
|
+
return te(e, n);
|
|
77
77
|
} catch {
|
|
78
|
-
return
|
|
78
|
+
return [];
|
|
79
79
|
}
|
|
80
|
-
},
|
|
81
|
-
if (!e.searchable || !e.id ||
|
|
82
|
-
let t =
|
|
80
|
+
}, j = u(() => O.groups.map((e) => at(tt(e)))), tt = (e) => {
|
|
81
|
+
if (!e.searchable || !e.id || k.isPipelineGroup(e.id)) return e;
|
|
82
|
+
let t = k.queryFor(e.id).trim();
|
|
83
83
|
if (!t) return e;
|
|
84
|
-
let n = e.items.filter((
|
|
85
|
-
return
|
|
84
|
+
let n = e.filterBy, r = n === !1 ? e.items : [...e.items.filter((e) => e.placeholder), ...ne(e.items.filter((e) => !e.placeholder), (e) => et(e, n), t, e.groupBy == null ? void 0 : (t) => nt(e, t))];
|
|
85
|
+
return r.length ? {
|
|
86
86
|
...e,
|
|
87
|
-
items:
|
|
87
|
+
items: r
|
|
88
88
|
} : {
|
|
89
89
|
...e,
|
|
90
90
|
items: [{
|
|
91
91
|
rowKey: "__bb-dropdown:no-results__",
|
|
92
92
|
domKey: "no-results",
|
|
93
93
|
placeholder: "empty",
|
|
94
|
-
label:
|
|
94
|
+
label: k.emptyText.value ?? $e.value,
|
|
95
95
|
disabled: !0
|
|
96
96
|
}]
|
|
97
97
|
};
|
|
98
|
-
},
|
|
99
|
-
if (!t.placeholder) return "section" in t ? t.section :
|
|
100
|
-
},
|
|
98
|
+
}, nt = (e, t) => {
|
|
99
|
+
if (!t.placeholder) return "section" in t ? t.section : me(e.groupBy, t);
|
|
100
|
+
}, rt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), at = (e) => {
|
|
101
101
|
if (e.groupBy == null) return e;
|
|
102
|
-
let t =
|
|
102
|
+
let t = it.get(e.items);
|
|
103
103
|
if (!t) {
|
|
104
104
|
let n = /* @__PURE__ */ new Map();
|
|
105
105
|
for (let t of e.items) {
|
|
106
|
-
let r =
|
|
106
|
+
let r = nt(e, t), i = r === void 0 ? "" : `section:${r}`, a = n.get(i);
|
|
107
107
|
a || n.set(i, a = {
|
|
108
108
|
title: r,
|
|
109
109
|
items: []
|
|
@@ -119,550 +119,554 @@ var Oe = {
|
|
|
119
119
|
start: t.length,
|
|
120
120
|
items: n.items
|
|
121
121
|
}), t.push(...n.items);
|
|
122
|
-
|
|
122
|
+
it.set(e.items, t), rt.set(t, a);
|
|
123
123
|
}
|
|
124
124
|
return {
|
|
125
125
|
...e,
|
|
126
126
|
items: t
|
|
127
127
|
};
|
|
128
|
-
},
|
|
128
|
+
}, ot = (e) => rt.get(e.items) ?? [{
|
|
129
129
|
key: "",
|
|
130
130
|
start: 0,
|
|
131
131
|
items: e.items
|
|
132
|
-
}],
|
|
133
|
-
|
|
134
|
-
let
|
|
135
|
-
if (
|
|
132
|
+
}], st = (e, { slots: t, attrs: n }) => e.titled ? Ce("div", n, t.default?.()) : t.default?.();
|
|
133
|
+
st.props = ["titled"], st.inheritAttrs = !1;
|
|
134
|
+
let ct = u(() => {
|
|
135
|
+
if (O.level === 0) for (let [e, t] of j.value.entries()) {
|
|
136
136
|
let n = t.items.find((e) => e.placeholder);
|
|
137
137
|
if (n) return {
|
|
138
138
|
gi: e,
|
|
139
139
|
item: n
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
}),
|
|
143
|
-
t instanceof HTMLElement ?
|
|
144
|
-
},
|
|
145
|
-
let e =
|
|
146
|
-
if (t !==
|
|
142
|
+
}), lt = {}, ut = (e, t) => {
|
|
143
|
+
t instanceof HTMLElement ? lt[e] = t : delete lt[e];
|
|
144
|
+
}, dt, M = O.level !== 0 || typeof MutationObserver > "u" ? void 0 : new MutationObserver(() => N()), N = () => {
|
|
145
|
+
let e = ct.value, t = e ? lt[e.gi] : void 0;
|
|
146
|
+
if (t !== dt && (M?.disconnect(), dt = t, t && M?.observe(t, {
|
|
147
147
|
characterData: !0,
|
|
148
148
|
childList: !0,
|
|
149
149
|
subtree: !0
|
|
150
|
-
})),
|
|
151
|
-
let n = t && e &&
|
|
152
|
-
|
|
150
|
+
})), O.level !== 0) return;
|
|
151
|
+
let n = t && e && I(e.item) ? t.textContent?.replace(/\s+/g, " ").trim() : void 0;
|
|
152
|
+
k.setStatus(n || e?.item.label);
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
y(N), y(() => {
|
|
155
|
+
ve(), ge();
|
|
156
|
+
}), Ee(N), E(ct, N, { flush: "post" }), Te(() => M?.disconnect()), De(() => {
|
|
157
|
+
for (let e of O.groups) e.id && k.isPipelineGroup(e.id) && k.activateGroup(e.id);
|
|
156
158
|
});
|
|
157
|
-
let
|
|
159
|
+
let P = x({}), ft = (e, t) => {
|
|
158
160
|
let n = s(t);
|
|
159
|
-
n instanceof HTMLInputElement ?
|
|
160
|
-
},
|
|
161
|
-
if (
|
|
162
|
-
let t = e.maxHeight ?? (e.searchable ?
|
|
161
|
+
n instanceof HTMLInputElement ? P.value[e] = n : delete P.value[e];
|
|
162
|
+
}, pt = u(() => j.value.find((e) => e.searchable && e.id)?.id), mt = (e) => {
|
|
163
|
+
if (A.value) return;
|
|
164
|
+
let t = e.maxHeight ?? (e.searchable ? Ue : void 0);
|
|
163
165
|
if (t != null && t !== 0 && t !== "none") return typeof t == "number" ? `${t}px` : t;
|
|
164
|
-
},
|
|
166
|
+
}, ht = (e) => pe(e).map((e) => e.selectable ? {
|
|
165
167
|
...e,
|
|
166
|
-
selected:
|
|
167
|
-
} : e),
|
|
168
|
-
let t =
|
|
169
|
-
return t === void 0 &&
|
|
170
|
-
},
|
|
168
|
+
selected: k.selectedFor(e.id ?? "")
|
|
169
|
+
} : e), gt = /* @__PURE__ */ new WeakMap(), _t = (e) => {
|
|
170
|
+
let t = gt.get(e);
|
|
171
|
+
return t === void 0 && gt.set(e, t = vt(e)), t;
|
|
172
|
+
}, vt = (e) => {
|
|
171
173
|
if (e.slotKey) return c(e.slotKey);
|
|
172
174
|
if (e.keyless) return null;
|
|
173
175
|
let t = e.value;
|
|
174
176
|
return typeof t == "number" ? c(String(t)) : typeof t == "string" && t !== "" ? c(t) : null;
|
|
175
|
-
},
|
|
176
|
-
let n =
|
|
177
|
-
if (n !== null) return
|
|
178
|
-
},
|
|
177
|
+
}, yt = (e, t) => {
|
|
178
|
+
let n = _t(e);
|
|
179
|
+
if (n !== null) return k.slots[t ? `${n}:${t}` : n];
|
|
180
|
+
}, bt = (e, t, n) => yt(t, n) ?? xt(e, n), xt = (e, t) => {
|
|
179
181
|
if (!e.id) return;
|
|
180
182
|
let n = `${c(e.id)}:item`;
|
|
181
|
-
return
|
|
182
|
-
},
|
|
183
|
+
return k.slots[t ? `${n}:${t}` : n];
|
|
184
|
+
}, St = (e) => e.variant && e.variant !== "default" ? `bb-dropdown__item--variant-${e.variant}` : void 0, Ct = (e) => e.variant && e.variant !== "default" ? `bb-dropdown__group-title--variant-${e.variant}` : void 0, wt = (e) => e.selectable ? e.multiple ? "menuitemcheckbox" : "menuitemradio" : "menuitem", Tt = (e, t) => e.selected.includes(t.rowKey), Et = /* @__PURE__ */ new WeakMap(), Dt = (e, t) => {
|
|
183
185
|
let n = Object.keys(e);
|
|
184
186
|
return n.length === Object.keys(t).length && n.every((n) => n === "selected" || e[n] === t[n]);
|
|
185
|
-
},
|
|
186
|
-
let t =
|
|
187
|
-
return t &&
|
|
188
|
-
},
|
|
187
|
+
}, Ot = (e) => {
|
|
188
|
+
let t = Et.get(e.items);
|
|
189
|
+
return t && Dt(t, e) ? t : (Et.set(e.items, e), e);
|
|
190
|
+
}, F = (e) => {
|
|
189
191
|
let t = 0;
|
|
190
|
-
for (let n = 0; n < e; n++) t +=
|
|
192
|
+
for (let n = 0; n < e; n++) t += j.value[n]?.items.length ?? 0;
|
|
191
193
|
return t;
|
|
192
|
-
},
|
|
194
|
+
}, kt = /* @__PURE__ */ new Set([...e.filter((e) => e !== "text" && e !== "disabled")]), At = (e) => {
|
|
193
195
|
let t = {};
|
|
194
|
-
for (let [n, r] of Object.entries(e))
|
|
196
|
+
for (let [n, r] of Object.entries(e)) kt.has(n) && (t[n] = r);
|
|
195
197
|
return t;
|
|
196
|
-
},
|
|
197
|
-
let a =
|
|
198
|
-
return g(
|
|
199
|
-
"aria-busy":
|
|
198
|
+
}, jt = (e, t, n, r, i) => {
|
|
199
|
+
let a = Mt("item", t, r, i);
|
|
200
|
+
return g(At(t), {
|
|
201
|
+
"aria-busy": k.isItemLoading(t.rowKey) || void 0,
|
|
200
202
|
"aria-checked": e.selectable ? r : void 0,
|
|
201
|
-
"aria-labelledby":
|
|
202
|
-
"aria-expanded": t.items ?
|
|
203
|
-
"aria-haspopup": t.items ?
|
|
204
|
-
"aria-controls": t.items &&
|
|
205
|
-
class: [
|
|
203
|
+
"aria-labelledby": Ht(e, t, n, a),
|
|
204
|
+
"aria-expanded": t.items ? Y.value === t.rowKey : void 0,
|
|
205
|
+
"aria-haspopup": t.items ? Gt(t) ? "dialog" : "menu" : void 0,
|
|
206
|
+
"aria-controls": t.items && Y.value === t.rowKey ? Kt(t) : void 0,
|
|
207
|
+
class: [St(t), {
|
|
206
208
|
"bb-dropdown__item--selected": r,
|
|
207
209
|
"bb-dropdown__item--has-submenu": !!t.items,
|
|
208
210
|
"bb-dropdown__item--description": !!t.description
|
|
209
211
|
}],
|
|
210
212
|
"data-dropdown-item": "",
|
|
211
|
-
disabled: t.disabled ||
|
|
212
|
-
role:
|
|
213
|
+
disabled: t.disabled || k.disabled.value,
|
|
214
|
+
role: wt(e),
|
|
213
215
|
tabindex: -1,
|
|
214
|
-
onClick: (r) =>
|
|
215
|
-
onKeydown: (e) =>
|
|
216
|
-
onMousedown: (t) =>
|
|
217
|
-
onPointerenter: (e) =>
|
|
218
|
-
onPointerleave: (e) =>
|
|
219
|
-
}, a, { "aria-describedby":
|
|
216
|
+
onClick: (r) => Ln(e, t, n, r),
|
|
217
|
+
onKeydown: (e) => Rn(t, n, e),
|
|
218
|
+
onMousedown: (t) => In(e, t),
|
|
219
|
+
onPointerenter: (e) => Mn(t, n, e),
|
|
220
|
+
onPointerleave: (e) => Pn(t, e)
|
|
221
|
+
}, a, { "aria-describedby": Ut(e, t, n, a) });
|
|
220
222
|
};
|
|
221
|
-
function
|
|
222
|
-
return
|
|
223
|
+
function Mt(e, t, n, r) {
|
|
224
|
+
return k.passthrough.part(e, {
|
|
223
225
|
selected: n,
|
|
224
|
-
disabled: t.disabled ||
|
|
226
|
+
disabled: t.disabled || k.disabled.value || void 0,
|
|
225
227
|
activeLink: !!r?.activeLink,
|
|
226
228
|
exactActiveLink: !!r?.exactActiveLink
|
|
227
|
-
},
|
|
229
|
+
}, L(t), t.variant ?? "default");
|
|
228
230
|
}
|
|
229
|
-
let
|
|
231
|
+
let Nt = (e) => k.passthrough.part("submenu", {}, L(e), e.variant ?? "default"), I = (e) => e.placeholder ? k.slots[e.placeholder === "loading" ? "loading" : "empty"] : void 0, L = (e) => {
|
|
230
232
|
let { rowKey: t, domKey: n, keyless: r, section: i, ...a } = e;
|
|
231
233
|
return a;
|
|
232
|
-
},
|
|
234
|
+
}, Pt = (e) => ({
|
|
233
235
|
id: e.id,
|
|
234
236
|
label: e.label,
|
|
235
237
|
meta: e.meta,
|
|
236
238
|
multiple: e.multiple,
|
|
237
239
|
selectable: e.selectable
|
|
238
|
-
}),
|
|
239
|
-
disabled: t.disabled ||
|
|
240
|
-
group:
|
|
240
|
+
}), Ft = (e, t, n, r, i) => ({
|
|
241
|
+
disabled: t.disabled || k.disabled.value,
|
|
242
|
+
group: Pt(e),
|
|
241
243
|
groupTitle: !1,
|
|
242
244
|
index: n,
|
|
243
|
-
item:
|
|
244
|
-
level:
|
|
245
|
+
item: L(t),
|
|
246
|
+
level: Xe.value,
|
|
245
247
|
selected: r,
|
|
246
|
-
loading:
|
|
247
|
-
open:
|
|
248
|
-
placement:
|
|
248
|
+
loading: k.isItemLoading(t.rowKey),
|
|
249
|
+
open: k.open.value,
|
|
250
|
+
placement: k.placement.value,
|
|
249
251
|
label: t.label,
|
|
250
252
|
description: t.description,
|
|
251
253
|
activeLink: !!i?.activeLink,
|
|
252
254
|
exactActiveLink: !!i?.exactActiveLink
|
|
253
|
-
}),
|
|
255
|
+
}), R = (e, t) => {
|
|
254
256
|
if (!e.id) return;
|
|
255
257
|
let n = c(e.id);
|
|
256
|
-
return
|
|
257
|
-
},
|
|
258
|
+
return k.slots[t ? `${n}:${t}` : n];
|
|
259
|
+
}, z = (e) => !e.hideLabel && (!!e.label || !!e["prepend:icon"] || !!e["append:icon"] || !!R(e) || !!R(e, "prepend") || !!R(e, "append")), It = (e) => !e.id || !e.selectable || !e.multiple ? [] : k.selectedChipsFor(e.id), B = ie().id, Lt = (e) => `${B.value}_group-title_${e}`, Rt = (e, t) => `${B.value}_section-title_${e}_${c(t) || "none"}`, zt = (e) => `${B.value}_row-text_${e}`, Bt = (e) => `${B.value}_row-description_${e}`, Vt = (e, t) => !!t.description && !bt(e, t), Ht = (e, t, n, r) => Vt(e, t) && !r["aria-label"] && !r["aria-labelledby"] ? zt(n) : r["aria-labelledby"], Ut = (e, t, n, r) => {
|
|
258
260
|
let i = r["aria-describedby"];
|
|
259
|
-
return
|
|
260
|
-
},
|
|
261
|
-
disabled:
|
|
262
|
-
group:
|
|
261
|
+
return Vt(e, t) ? [i, Bt(n)].filter(Boolean).join(" ") : i;
|
|
262
|
+
}, Wt = u(() => fe(j.value)), Gt = (e) => !!e.items && fe(ht(e.items)), Kt = (e) => `submenu_${k.rootId}_${e.domKey}`, qt = (e) => Wt.value ? "menu" : z(e) ? "group" : "none", Jt = (e, t) => z(e) ? Lt(t) : void 0, V = (e, t) => ({
|
|
263
|
+
disabled: k.disabled.value,
|
|
264
|
+
group: Pt(e),
|
|
263
265
|
groupTitle: !0,
|
|
264
266
|
index: t,
|
|
265
267
|
item: e,
|
|
266
|
-
level:
|
|
268
|
+
level: Xe.value,
|
|
267
269
|
selected: !1,
|
|
268
270
|
loading: !1,
|
|
269
|
-
open:
|
|
270
|
-
placement:
|
|
271
|
+
open: k.open.value,
|
|
272
|
+
placement: k.placement.value,
|
|
271
273
|
label: e.label
|
|
272
|
-
}),
|
|
274
|
+
}), Yt = (e) => e.key === "Escape" || e.key === "Esc", Xt = (e) => getComputedStyle(e).direction === "rtl", Zt = (e) => {
|
|
273
275
|
let { key: t, currentTarget: n } = e;
|
|
274
|
-
return t !== "ArrowLeft" && t !== "ArrowRight" || !(n instanceof Element) || !
|
|
275
|
-
},
|
|
276
|
+
return t !== "ArrowLeft" && t !== "ArrowRight" || !(n instanceof Element) || !Xt(n) ? t : t === "ArrowLeft" ? "ArrowRight" : "ArrowLeft";
|
|
277
|
+
}, H = x({}), Qt = (e, t) => {
|
|
276
278
|
let n = s(t);
|
|
277
|
-
n ?
|
|
278
|
-
},
|
|
279
|
+
n ? H.value[e] = n : delete H.value[e];
|
|
280
|
+
}, U = x({}), $t = (e, t) => {
|
|
279
281
|
let n = s(t);
|
|
280
|
-
n instanceof HTMLElement ?
|
|
281
|
-
},
|
|
282
|
+
n instanceof HTMLElement ? U.value[e] = n : delete U.value[e];
|
|
283
|
+
}, W = () => {
|
|
282
284
|
let e = [], t = 0;
|
|
283
|
-
for (let n of
|
|
284
|
-
n.onClick &&
|
|
285
|
-
for (let r of n.items) r.disabled ||
|
|
285
|
+
for (let n of j.value) {
|
|
286
|
+
n.onClick && z(n) && e.push(t - .5);
|
|
287
|
+
for (let r of n.items) r.disabled || k.disabled.value || e.push(t), t++;
|
|
286
288
|
}
|
|
287
289
|
return e;
|
|
288
|
-
},
|
|
290
|
+
}, en = (e) => {
|
|
289
291
|
let t = 0;
|
|
290
|
-
for (let n = 0; n <
|
|
292
|
+
for (let n = 0; n < j.value.length; n++) {
|
|
291
293
|
if (t - .5 === e) return n;
|
|
292
|
-
t +=
|
|
294
|
+
t += j.value[n].items.length;
|
|
293
295
|
}
|
|
294
296
|
return -1;
|
|
295
|
-
},
|
|
297
|
+
}, G = (e, t) => {
|
|
296
298
|
if (e == null) return;
|
|
297
|
-
let n = Number.isInteger(e) ?
|
|
298
|
-
t === void 0 ? n?.focus() : t ?
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
active:
|
|
302
|
-
input: () => Object.values(
|
|
299
|
+
let n = Number.isInteger(e) ? H.value[e] : U.value[en(e)];
|
|
300
|
+
t === void 0 ? n?.focus() : t ? be(n) : ye(n);
|
|
301
|
+
}, tn = () => Object.values(P.value).some((e) => e === document.activeElement);
|
|
302
|
+
ae({
|
|
303
|
+
active: A,
|
|
304
|
+
input: () => Object.values(P.value).find((e) => e === document.activeElement) ?? null
|
|
303
305
|
});
|
|
304
|
-
let
|
|
305
|
-
let e =
|
|
306
|
-
return e ? (
|
|
307
|
-
},
|
|
306
|
+
let nn = () => {
|
|
307
|
+
let e = pt.value;
|
|
308
|
+
return e ? (P.value[e]?.focus(), !0) : !1;
|
|
309
|
+
}, rn = (e) => G(W()[0], e), an = (e) => {
|
|
308
310
|
let t = 0;
|
|
309
|
-
for (let n of
|
|
311
|
+
for (let n of j.value) for (let r of n.items) {
|
|
310
312
|
if (r.rowKey === e) return t;
|
|
311
313
|
t++;
|
|
312
314
|
}
|
|
313
315
|
return -1;
|
|
314
|
-
},
|
|
315
|
-
let n =
|
|
316
|
+
}, K = (e, t) => {
|
|
317
|
+
let n = W();
|
|
316
318
|
if (!n.length) return;
|
|
317
319
|
let r = n.indexOf(e), i = r === -1 ? t > 0 ? 0 : n.length - 1 : (r + t + n.length) % n.length;
|
|
318
|
-
|
|
319
|
-
}, K = (e) => {
|
|
320
|
-
(O.value || !$t()) && W(e);
|
|
320
|
+
G(n[i], !0);
|
|
321
321
|
}, q = (e) => {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
322
|
+
(A.value || !nn()) && rn(e);
|
|
323
|
+
}, J = (e) => {
|
|
324
|
+
let t = W();
|
|
325
|
+
G(t[t.length - 1], e);
|
|
326
|
+
}, on = (e, t) => {
|
|
327
|
+
let n = an(e);
|
|
328
|
+
n === -1 ? q(t) : G(n, t);
|
|
329
|
+
}, sn = (e) => {
|
|
328
330
|
let t = 0;
|
|
329
|
-
for (let n of
|
|
331
|
+
for (let n of j.value) for (let r of n.items) {
|
|
330
332
|
if (t === e) return r;
|
|
331
333
|
t++;
|
|
332
334
|
}
|
|
333
|
-
},
|
|
334
|
-
candidates: () =>
|
|
335
|
-
getTokens: (e) => [
|
|
335
|
+
}, cn = se(), ln = ue({
|
|
336
|
+
candidates: () => W().filter(Number.isInteger),
|
|
337
|
+
getTokens: (e) => [le(sn(e)?.label ?? "", cn.locale)],
|
|
336
338
|
getCurrent: () => {
|
|
337
|
-
let e = Object.entries(
|
|
339
|
+
let e = Object.entries(H.value).find(([, e]) => e === document.activeElement);
|
|
338
340
|
return e ? Number(e[0]) : void 0;
|
|
339
341
|
},
|
|
340
|
-
onMatch: (e) =>
|
|
341
|
-
locale: () =>
|
|
342
|
-
}),
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
ArrowDown: () =>
|
|
346
|
-
ArrowUp: () =>
|
|
347
|
-
Down: () =>
|
|
348
|
-
Esc: () =>
|
|
349
|
-
Escape: () =>
|
|
350
|
-
Up: () =>
|
|
351
|
-
},
|
|
352
|
-
if (o(e) ||
|
|
353
|
-
let t =
|
|
342
|
+
onMatch: (e) => G(e, !0),
|
|
343
|
+
locale: () => cn.locale
|
|
344
|
+
}), un = (e) => {
|
|
345
|
+
ce(e) && ln.onKeydown(e);
|
|
346
|
+
}, dn = {
|
|
347
|
+
ArrowDown: () => rn(!0),
|
|
348
|
+
ArrowUp: () => J(!0),
|
|
349
|
+
Down: () => rn(!0),
|
|
350
|
+
Esc: () => k.close(),
|
|
351
|
+
Escape: () => k.close(),
|
|
352
|
+
Up: () => J(!0)
|
|
353
|
+
}, fn = (e) => {
|
|
354
|
+
if (o(e) || O.level > 0 && Yt(e)) return;
|
|
355
|
+
let t = dn[e.key];
|
|
354
356
|
t && (e.stopPropagation(), e.preventDefault(), t());
|
|
355
357
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
+
y(() => {
|
|
359
|
+
O.level === 0 && pt.value && !A.value && _(() => nn());
|
|
358
360
|
});
|
|
359
|
-
let
|
|
360
|
-
|
|
361
|
-
t != null &&
|
|
362
|
-
|
|
363
|
-
},
|
|
361
|
+
let Y = x(null), pn = x({}), X, Z, mn = 0, hn = x(null), gn;
|
|
362
|
+
E(Y, (e, t) => {
|
|
363
|
+
t != null && k.open.value && Cn(t) && G(an(t)), clearTimeout(gn), hn.value = t ?? null, t != null && (gn = setTimeout(() => {
|
|
364
|
+
hn.value = null;
|
|
365
|
+
}, Ke));
|
|
364
366
|
});
|
|
365
|
-
let
|
|
366
|
-
let e = Object.values(
|
|
367
|
+
let _n = (e) => Y.value !== e && hn.value !== e, vn = x(0), yn = x("right-start"), bn = () => {
|
|
368
|
+
let e = Object.values(H.value)[0], t = e?.closest(".bb-dropdown");
|
|
367
369
|
if (!e || !t) return;
|
|
368
|
-
let n =
|
|
369
|
-
|
|
370
|
+
let n = Xt(e);
|
|
371
|
+
yn.value = n ? "left-start" : "right-start";
|
|
370
372
|
let r = t.getBoundingClientRect(), i = e.getBoundingClientRect();
|
|
371
|
-
|
|
372
|
-
},
|
|
373
|
-
t instanceof HTMLElement ?
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
t ?
|
|
378
|
-
}, Q = () => clearTimeout(
|
|
379
|
-
|
|
380
|
-
clearTimeout(
|
|
373
|
+
vn.value = Math.max(0, n ? i.left - r.left : r.right - i.right);
|
|
374
|
+
}, xn = {}, Sn = (e, t) => {
|
|
375
|
+
t instanceof HTMLElement ? xn[e] = t : delete xn[e];
|
|
376
|
+
}, Cn = (e) => !!xn[e]?.contains(document.activeElement), wn = (e, t) => {
|
|
377
|
+
Yt(t) && !t.defaultPrevented && !o(t) && k.ownsEscape() && (t.preventDefault(), t.stopPropagation(), jn(e));
|
|
378
|
+
}, Tn = (e, t) => {
|
|
379
|
+
t ? pn.value[e] = t : delete pn.value[e];
|
|
380
|
+
}, Q = () => clearTimeout(X), $ = () => clearTimeout(Z);
|
|
381
|
+
Te(() => {
|
|
382
|
+
clearTimeout(Z), clearTimeout(X), clearTimeout(gn);
|
|
381
383
|
});
|
|
382
|
-
let
|
|
383
|
-
$(), clearTimeout(
|
|
384
|
-
|
|
385
|
-
},
|
|
386
|
-
},
|
|
384
|
+
let En = (e) => {
|
|
385
|
+
$(), clearTimeout(X), X = setTimeout(() => {
|
|
386
|
+
Y.value === e && (Y.value = null);
|
|
387
|
+
}, We);
|
|
388
|
+
}, Dn = (e) => {
|
|
387
389
|
let t = e.trim();
|
|
388
390
|
return t ? t.endsWith("ms") ? Number.parseFloat(t) || 0 : t.endsWith("s") ? (Number.parseFloat(t) || 0) * 1e3 : Number.parseFloat(t) || 0 : 0;
|
|
389
|
-
},
|
|
390
|
-
let t =
|
|
391
|
+
}, On = (e) => {
|
|
392
|
+
let t = H.value[e];
|
|
391
393
|
if (!t) return 0;
|
|
392
394
|
let n = t.closest(".bb-common-popover");
|
|
393
395
|
if (!n) return 0;
|
|
394
|
-
let r = getComputedStyle(n).getPropertyValue("--transition-duration"), i =
|
|
396
|
+
let r = getComputedStyle(n).getPropertyValue("--transition-duration"), i = Dn(r);
|
|
395
397
|
if (!i) return 0;
|
|
396
|
-
let a = performance.now() -
|
|
398
|
+
let a = performance.now() - mn;
|
|
397
399
|
return Math.max(0, i - a + 16);
|
|
398
|
-
},
|
|
399
|
-
Q(),
|
|
400
|
+
}, kn = async (e, t) => {
|
|
401
|
+
Q(), bn(), Y.value = e, t !== void 0 && (await _(), pn.value[e]?.focusFirst(t));
|
|
400
402
|
};
|
|
401
|
-
|
|
402
|
-
e ?
|
|
403
|
+
E(k.open, (e) => {
|
|
404
|
+
e ? mn = performance.now() : ($(), Q(), Y.value = null);
|
|
403
405
|
});
|
|
404
|
-
let
|
|
405
|
-
t ?
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
},
|
|
409
|
-
if (n.pointerType !== "mouse") return;
|
|
410
|
-
if (Q(), $(),
|
|
411
|
-
|
|
406
|
+
let An = (e, t) => {
|
|
407
|
+
t ? Y.value = e : Y.value === e && (Y.value = null);
|
|
408
|
+
}, jn = (e) => {
|
|
409
|
+
Y.value = null, _(() => G(e, !0));
|
|
410
|
+
}, Mn = (e, t, n) => {
|
|
411
|
+
if (n.pointerType !== "mouse" || _e(n)) return;
|
|
412
|
+
if (Q(), $(), Y.value !== null && Y.value === e.rowKey) {
|
|
413
|
+
Cn(e.rowKey) || G(t);
|
|
412
414
|
return;
|
|
413
415
|
}
|
|
414
416
|
let r = () => {
|
|
415
|
-
|
|
417
|
+
G(t), e.items ? kn(e.rowKey) : Y.value = null;
|
|
416
418
|
};
|
|
417
|
-
if (
|
|
418
|
-
let e =
|
|
419
|
-
e >= 0 && Math.abs(t - e) <= 1 ?
|
|
419
|
+
if (Y.value !== null) {
|
|
420
|
+
let e = an(Y.value);
|
|
421
|
+
e >= 0 && Math.abs(t - e) <= 1 ? Z = setTimeout(r, Ge) : r();
|
|
420
422
|
return;
|
|
421
423
|
}
|
|
422
|
-
let i = e.items ?
|
|
423
|
-
i ?
|
|
424
|
-
},
|
|
424
|
+
let i = e.items ? On(t) : 0;
|
|
425
|
+
i ? Z = setTimeout(r, i) : r();
|
|
426
|
+
}, Nn = () => {
|
|
425
427
|
Q(), $();
|
|
426
|
-
},
|
|
427
|
-
t.pointerType === "mouse" && e.items &&
|
|
428
|
-
},
|
|
429
|
-
t.pointerType === "mouse" &&
|
|
430
|
-
},
|
|
428
|
+
}, Pn = (e, t) => {
|
|
429
|
+
t.pointerType === "mouse" && e.items && En(e.rowKey);
|
|
430
|
+
}, Fn = (e, t) => {
|
|
431
|
+
t.pointerType === "mouse" && En(e);
|
|
432
|
+
}, In = (e, t) => {
|
|
431
433
|
e.searchable && t.preventDefault();
|
|
432
|
-
},
|
|
433
|
-
t.disabled ||
|
|
434
|
-
},
|
|
435
|
-
switch (
|
|
434
|
+
}, Ln = (e, t, n, r) => {
|
|
435
|
+
t.disabled || k.disabled.value || k.isItemLoading(t.rowKey) || (t.items ? (r.stopPropagation(), Q(), $(), O.navigate ? O.navigate(t) : kn(t.rowKey, r.detail === 0)) : e.selectable && e.id ? (r.stopPropagation(), k.toggleSelect(e, t), k.runItemAction(t, r), tn() || G(n)) : (r.stopPropagation(), k.runItemAction(t, r, { close: !0 })));
|
|
436
|
+
}, Rn = (e, t, n) => {
|
|
437
|
+
switch (Zt(n)) {
|
|
436
438
|
case "ArrowDown":
|
|
437
|
-
n.preventDefault(), $(), Q(),
|
|
439
|
+
n.preventDefault(), $(), Q(), Y.value = null, K(t, 1);
|
|
438
440
|
break;
|
|
439
441
|
case "ArrowUp":
|
|
440
|
-
n.preventDefault(), $(), Q(),
|
|
442
|
+
n.preventDefault(), $(), Q(), Y.value = null, K(t, -1);
|
|
441
443
|
break;
|
|
442
444
|
case "Home":
|
|
443
|
-
n.preventDefault(),
|
|
445
|
+
n.preventDefault(), q(!0);
|
|
444
446
|
break;
|
|
445
447
|
case "End":
|
|
446
|
-
n.preventDefault(),
|
|
448
|
+
n.preventDefault(), J(!0);
|
|
447
449
|
break;
|
|
448
450
|
case "ArrowRight":
|
|
449
|
-
e.items && (n.preventDefault(), n.stopPropagation(),
|
|
451
|
+
e.items && (n.preventDefault(), n.stopPropagation(), O.navigate ? O.navigate(e) : kn(e.rowKey, !0));
|
|
450
452
|
break;
|
|
451
453
|
case "ArrowLeft":
|
|
452
|
-
|
|
454
|
+
O.back ? (n.preventDefault(), n.stopPropagation(), O.back()) : O.level > 0 && (n.preventDefault(), n.stopPropagation(), Ye("close-level"));
|
|
453
455
|
break;
|
|
454
|
-
default:
|
|
456
|
+
default: un(n);
|
|
455
457
|
}
|
|
456
|
-
},
|
|
457
|
-
let n =
|
|
458
|
-
switch (
|
|
458
|
+
}, zn = (e, t) => {
|
|
459
|
+
let n = F(e) - .5;
|
|
460
|
+
switch (Zt(t)) {
|
|
459
461
|
case "ArrowDown":
|
|
460
|
-
t.preventDefault(),
|
|
462
|
+
t.preventDefault(), K(n, 1);
|
|
461
463
|
break;
|
|
462
464
|
case "ArrowUp":
|
|
463
|
-
t.preventDefault(),
|
|
465
|
+
t.preventDefault(), K(n, -1);
|
|
464
466
|
break;
|
|
465
467
|
case "Home":
|
|
466
|
-
t.preventDefault(),
|
|
468
|
+
t.preventDefault(), q(!0);
|
|
467
469
|
break;
|
|
468
470
|
case "End":
|
|
469
|
-
t.preventDefault(),
|
|
471
|
+
t.preventDefault(), J(!0);
|
|
470
472
|
break;
|
|
471
473
|
case "ArrowLeft":
|
|
472
|
-
|
|
474
|
+
O.back ? (t.preventDefault(), t.stopPropagation(), O.back()) : O.level > 0 && (t.preventDefault(), t.stopPropagation(), Ye("close-level"));
|
|
473
475
|
break;
|
|
474
|
-
default:
|
|
476
|
+
default: un(t);
|
|
475
477
|
}
|
|
476
|
-
},
|
|
477
|
-
slots:
|
|
478
|
-
setItemEl:
|
|
479
|
-
itemAttrs:
|
|
480
|
-
rowPart:
|
|
481
|
-
slotProps:
|
|
482
|
-
rowSlot:
|
|
483
|
-
itemSlot:
|
|
484
|
-
groupRowSlot:
|
|
485
|
-
rowTextId:
|
|
486
|
-
rowDescriptionId:
|
|
478
|
+
}, Bn = {
|
|
479
|
+
slots: k.slots,
|
|
480
|
+
setItemEl: Qt,
|
|
481
|
+
itemAttrs: jt,
|
|
482
|
+
rowPart: Mt,
|
|
483
|
+
slotProps: Ft,
|
|
484
|
+
rowSlot: bt,
|
|
485
|
+
itemSlot: yt,
|
|
486
|
+
groupRowSlot: xt,
|
|
487
|
+
rowTextId: zt,
|
|
488
|
+
rowDescriptionId: Bt
|
|
487
489
|
};
|
|
488
|
-
return
|
|
489
|
-
focusFirst:
|
|
490
|
-
focusLast:
|
|
491
|
-
focusRow:
|
|
492
|
-
}), (e, o) => (
|
|
493
|
-
e.divider ? (
|
|
494
|
-
|
|
490
|
+
return qe({
|
|
491
|
+
focusFirst: q,
|
|
492
|
+
focusLast: J,
|
|
493
|
+
focusRow: on
|
|
494
|
+
}), (e, o) => (b(!0), p(l, null, S(j.value, (e, s) => (b(), p(l, { key: e.id ?? s }, [
|
|
495
|
+
e.divider ? (b(), p("hr", Ae)) : f("", !0),
|
|
496
|
+
z(e) ? (b(), p("div", {
|
|
495
497
|
key: 1,
|
|
496
|
-
id:
|
|
498
|
+
id: Lt(s),
|
|
497
499
|
ref_for: !0,
|
|
498
|
-
ref: (e) =>
|
|
499
|
-
class:
|
|
500
|
+
ref: (e) => $t(s, e),
|
|
501
|
+
class: v(["bb-dropdown__group-title", Ct(e)]),
|
|
500
502
|
role: e.onClick ? "menuitem" : "presentation",
|
|
501
503
|
tabindex: e.onClick ? -1 : void 0,
|
|
502
504
|
onClick: (t) => e.onClick?.(t),
|
|
503
505
|
onKeydown: [
|
|
504
|
-
(t) => e.onClick &&
|
|
505
|
-
|
|
506
|
-
|
|
506
|
+
(t) => e.onClick && zn(s, t),
|
|
507
|
+
Oe((t) => e.onClick?.(t), ["enter"]),
|
|
508
|
+
Oe(ke((t) => e.onClick?.(t), ["prevent"]), ["space"])
|
|
507
509
|
]
|
|
508
510
|
}, [
|
|
509
|
-
|
|
511
|
+
R(e, "prepend") ? (b(), d(C(R(e, "prepend")), g({
|
|
510
512
|
key: 0,
|
|
511
513
|
ref_for: !0
|
|
512
|
-
},
|
|
514
|
+
}, V(e, F(s))), null, 16)) : T(k).slots["item:prepend"] ? (b(), d(C(T(k).slots["item:prepend"]), g({
|
|
513
515
|
key: 1,
|
|
514
516
|
ref_for: !0
|
|
515
|
-
},
|
|
517
|
+
}, V(e, F(s))), null, 16)) : e["prepend:icon"] ? (b(), d(n, {
|
|
516
518
|
key: 2,
|
|
517
519
|
class: "group-title__prepend-icon",
|
|
518
520
|
icon: e["prepend:icon"]
|
|
519
521
|
}, null, 8, ["icon"])) : f("", !0),
|
|
520
|
-
|
|
522
|
+
R(e) ? (b(), d(C(R(e)), g({
|
|
521
523
|
key: 3,
|
|
522
524
|
ref_for: !0
|
|
523
|
-
},
|
|
524
|
-
|
|
525
|
+
}, V(e, F(s))), null, 16)) : e.label ? (b(), p("span", Me, w(e.label), 1)) : f("", !0),
|
|
526
|
+
R(e, "append") ? (b(), d(C(R(e, "append")), g({
|
|
525
527
|
key: 5,
|
|
526
528
|
ref_for: !0
|
|
527
|
-
},
|
|
529
|
+
}, V(e, F(s))), null, 16)) : T(k).slots["item:append"] ? (b(), d(C(T(k).slots["item:append"]), g({
|
|
528
530
|
key: 6,
|
|
529
531
|
ref_for: !0
|
|
530
|
-
},
|
|
532
|
+
}, V(e, F(s))), null, 16)) : e["append:icon"] ? (b(), d(n, {
|
|
531
533
|
key: 7,
|
|
532
534
|
class: "group-title__append-icon",
|
|
533
535
|
icon: e["append:icon"]
|
|
534
536
|
}, null, 8, ["icon"])) : f("", !0)
|
|
535
|
-
], 42,
|
|
536
|
-
|
|
537
|
+
], 42, je)) : f("", !0),
|
|
538
|
+
T(A) && It(e).length ? (b(), p("div", Ne, [m("div", Pe, [(b(!0), p(l, null, S(It(e), (n) => (b(), d(t, {
|
|
537
539
|
key: n.key,
|
|
538
540
|
class: "bb-dropdown__sheet-chip",
|
|
539
|
-
clearable: !
|
|
541
|
+
clearable: !T(k).disabled.value,
|
|
540
542
|
size: "xl",
|
|
541
543
|
variant: "secondary",
|
|
542
|
-
"onClick:clear": (t) =>
|
|
543
|
-
onMousedown: o[0] ||=
|
|
544
|
+
"onClick:clear": (t) => T(k).deselect(e.id, n.key),
|
|
545
|
+
onMousedown: o[0] ||= ke(() => {}, ["prevent"])
|
|
544
546
|
}, {
|
|
545
|
-
default:
|
|
547
|
+
default: D(() => [xe(w(n.text), 1)]),
|
|
546
548
|
_: 2
|
|
547
549
|
}, 1032, ["clearable", "onClick:clear"]))), 128))])])) : f("", !0),
|
|
548
|
-
e.searchable && e.id ? (
|
|
549
|
-
|
|
550
|
+
e.searchable && e.id ? (b(), p("div", Fe, [
|
|
551
|
+
Se(n, {
|
|
550
552
|
"aria-hidden": "true",
|
|
551
553
|
class: "bb-dropdown__search-icon",
|
|
552
554
|
focusable: "false",
|
|
553
|
-
icon:
|
|
555
|
+
icon: T(re)
|
|
554
556
|
}, null, 8, ["icon"]),
|
|
555
557
|
m("input", g({
|
|
556
558
|
ref_for: !0,
|
|
557
|
-
ref: (t) =>
|
|
558
|
-
"aria-label": e.searchPlaceholder ||
|
|
559
|
+
ref: (t) => ft(e.id, t),
|
|
560
|
+
"aria-label": e.searchPlaceholder || T(Qe),
|
|
559
561
|
autocomplete: "off",
|
|
560
562
|
class: "bb-dropdown__search-input",
|
|
561
|
-
placeholder: e.searchPlaceholder ||
|
|
563
|
+
placeholder: e.searchPlaceholder || T(Qe),
|
|
562
564
|
role: "searchbox",
|
|
563
565
|
type: "text",
|
|
564
|
-
value:
|
|
565
|
-
}, { ref_for: !0 },
|
|
566
|
-
onInput: (t) =>
|
|
567
|
-
onKeydown:
|
|
568
|
-
}), null, 16,
|
|
569
|
-
e.id &&
|
|
566
|
+
value: T(k).queryFor(e.id)
|
|
567
|
+
}, { ref_for: !0 }, T(k).passthrough.input, {
|
|
568
|
+
onInput: (t) => T(k).setQuery(e.id, t.target.value),
|
|
569
|
+
onKeydown: fn
|
|
570
|
+
}), null, 16, Ie),
|
|
571
|
+
e.id && T(k).isGroupLoading(e.id) ? (b(), p("div", Le)) : f("", !0)
|
|
570
572
|
])) : f("", !0),
|
|
571
573
|
m("div", {
|
|
572
|
-
"aria-labelledby":
|
|
573
|
-
class:
|
|
574
|
-
"bb-dropdown__group-items--capped": !!
|
|
575
|
-
"bb-dropdown__group-items--loading": !!e.id &&
|
|
574
|
+
"aria-labelledby": Jt(e, s),
|
|
575
|
+
class: v(["bb-dropdown__group-items", {
|
|
576
|
+
"bb-dropdown__group-items--capped": !!mt(e),
|
|
577
|
+
"bb-dropdown__group-items--loading": !!e.id && T(k).isGroupLoading(e.id)
|
|
576
578
|
}]),
|
|
577
|
-
role:
|
|
578
|
-
style:
|
|
579
|
-
}, [(
|
|
579
|
+
role: qt(e),
|
|
580
|
+
style: we({ maxHeight: mt(e) })
|
|
581
|
+
}, [(b(!0), p(l, null, S(ot(e), (t) => (b(), d(st, g({
|
|
580
582
|
key: t.key,
|
|
581
583
|
titled: !!t.title
|
|
582
584
|
}, { ref_for: !0 }, t.title ? {
|
|
583
585
|
class: "bb-dropdown__section",
|
|
584
586
|
role: "group",
|
|
585
|
-
"aria-labelledby":
|
|
587
|
+
"aria-labelledby": Rt(s, t.key)
|
|
586
588
|
} : {}), {
|
|
587
|
-
default:
|
|
589
|
+
default: D(() => [t.title ? (b(), p("div", {
|
|
588
590
|
key: 0,
|
|
589
|
-
id:
|
|
591
|
+
id: Rt(s, t.key),
|
|
590
592
|
class: "bb-dropdown__group-title bb-dropdown__section-title",
|
|
591
593
|
role: "presentation"
|
|
592
|
-
}, [m("span",
|
|
594
|
+
}, [m("span", Be, w(t.title), 1)], 8, ze)) : f("", !0), (b(!0), p(l, null, S(t.items, (n, o) => (b(), p(l, { key: n.rowKey }, [n.placeholder ? (b(), p("div", {
|
|
593
595
|
key: 0,
|
|
594
596
|
ref_for: !0,
|
|
595
|
-
ref: (e) =>
|
|
596
|
-
class:
|
|
597
|
+
ref: (e) => ut(s, e),
|
|
598
|
+
class: v(["bb-dropdown__placeholder", `bb-dropdown__placeholder--${n.placeholder}`]),
|
|
597
599
|
role: "presentation"
|
|
598
|
-
}, [
|
|
600
|
+
}, [I(n) ? (b(), d(C(I(n)), g({
|
|
599
601
|
key: 0,
|
|
600
602
|
error: n.placeholder === "loading" ? void 0 : n.error ?? null
|
|
601
603
|
}, { ref_for: !0 }, {
|
|
602
604
|
groupId: e.id,
|
|
603
|
-
query: e.id ?
|
|
605
|
+
query: e.id ? T(k).queryFor(e.id) : "",
|
|
604
606
|
text: n.label
|
|
605
|
-
}), null, 16, ["error"])) : (
|
|
607
|
+
}), null, 16, ["error"])) : (b(), p(l, { key: 1 }, [n.placeholder === "failed" ? (b(), d(r, {
|
|
606
608
|
key: 0,
|
|
607
609
|
class: "bb-dropdown__placeholder-icon"
|
|
608
|
-
})) : f("", !0), m("span",
|
|
609
|
-
group:
|
|
610
|
-
index:
|
|
610
|
+
})) : f("", !0), m("span", Ve, w(n.label), 1)], 64))], 2)) : (b(), p(l, { key: 1 }, [Se(ee, {
|
|
611
|
+
group: Ot(e),
|
|
612
|
+
index: F(s) + t.start + o,
|
|
611
613
|
item: n,
|
|
612
|
-
row:
|
|
613
|
-
selected: !!e.selectable &&
|
|
614
|
+
row: Bn,
|
|
615
|
+
selected: !!e.selectable && Tt(e, n)
|
|
614
616
|
}, null, 8, [
|
|
615
617
|
"group",
|
|
616
618
|
"index",
|
|
617
619
|
"item",
|
|
618
620
|
"selected"
|
|
619
|
-
]), n.items && !h.navigate ? (
|
|
621
|
+
]), n.items && !h.navigate ? (b(), d(i, {
|
|
620
622
|
key: 0,
|
|
621
|
-
anchor:
|
|
623
|
+
anchor: H.value[F(s) + t.start + o],
|
|
624
|
+
"bubble-attrs": Nt(n),
|
|
622
625
|
class: "bb-dropdown bb-dropdown--submenu",
|
|
623
626
|
"hide-arrow": "",
|
|
624
|
-
"model-value":
|
|
625
|
-
offset:
|
|
626
|
-
placement:
|
|
627
|
+
"model-value": Y.value === n.rowKey,
|
|
628
|
+
offset: vn.value,
|
|
629
|
+
placement: yn.value,
|
|
627
630
|
role: "none",
|
|
628
|
-
"transition-duration":
|
|
629
|
-
"onUpdate:modelValue": (e) =>
|
|
631
|
+
"transition-duration": Ke,
|
|
632
|
+
"onUpdate:modelValue": (e) => An(n.rowKey, e)
|
|
630
633
|
}, {
|
|
631
|
-
default:
|
|
632
|
-
id:
|
|
634
|
+
default: D(({ availableHeight: e }) => [m("span", {
|
|
635
|
+
id: Kt(n),
|
|
633
636
|
ref_for: !0,
|
|
634
|
-
ref: (e) =>
|
|
637
|
+
ref: (e) => Sn(n.rowKey, e),
|
|
635
638
|
"aria-label": n.label,
|
|
636
639
|
class: "bb-dropdown__list",
|
|
637
|
-
"data-bb-dropdown-surface":
|
|
638
|
-
inert:
|
|
639
|
-
role:
|
|
640
|
-
style:
|
|
641
|
-
onKeydown: (e) =>
|
|
642
|
-
onPointerenter:
|
|
643
|
-
onPointerleave: (e) =>
|
|
644
|
-
}, [
|
|
640
|
+
"data-bb-dropdown-surface": T(k).rootId,
|
|
641
|
+
inert: _n(n.rowKey),
|
|
642
|
+
role: Gt(n) ? "dialog" : "menu",
|
|
643
|
+
style: we({ "--max-h": e == null ? void 0 : `${e}px` }),
|
|
644
|
+
onKeydown: (e) => wn(F(s) + t.start + o, e),
|
|
645
|
+
onPointerenter: Nn,
|
|
646
|
+
onPointerleave: (e) => Fn(n.rowKey, e)
|
|
647
|
+
}, [Se(a, {
|
|
645
648
|
ref_for: !0,
|
|
646
|
-
ref: (e) =>
|
|
647
|
-
groups:
|
|
649
|
+
ref: (e) => Tn(n.rowKey, e),
|
|
650
|
+
groups: ht(n.items),
|
|
648
651
|
level: h.level + 1,
|
|
649
|
-
onCloseLevel: (e) =>
|
|
652
|
+
onCloseLevel: (e) => jn(F(s) + t.start + o)
|
|
650
653
|
}, null, 8, [
|
|
651
654
|
"groups",
|
|
652
655
|
"level",
|
|
653
656
|
"onCloseLevel"
|
|
654
|
-
])], 44,
|
|
657
|
+
])], 44, He)]),
|
|
655
658
|
_: 2
|
|
656
659
|
}, 1032, [
|
|
657
660
|
"anchor",
|
|
661
|
+
"bubble-attrs",
|
|
658
662
|
"model-value",
|
|
659
663
|
"offset",
|
|
660
664
|
"placement",
|
|
661
665
|
"onUpdate:modelValue"
|
|
662
666
|
])) : f("", !0)], 64))], 64))), 128))]),
|
|
663
667
|
_: 2
|
|
664
|
-
}, 1040, ["titled"]))), 128))], 14,
|
|
668
|
+
}, 1040, ["titled"]))), 128))], 14, Re)
|
|
665
669
|
], 64))), 128));
|
|
666
670
|
}
|
|
667
671
|
});
|
|
668
|
-
export {
|
|
672
|
+
export { qe as default };
|