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
package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -6,12 +6,12 @@ import { get as a } from "../../utilities/functions/get.js";
|
|
|
6
6
|
import { hash as o } from "../../utilities/functions/hash.js";
|
|
7
7
|
import { readableValue as s } from "../../utilities/functions/readableValue.js";
|
|
8
8
|
import { settlesVisible as c } from "../../utilities/functions/settlesVisible.js";
|
|
9
|
-
import { useItemValue as
|
|
10
|
-
import { useItemText as
|
|
11
|
-
import { createItemPropsResolver as
|
|
12
|
-
import { useLogger as
|
|
13
|
-
import { isNil as
|
|
14
|
-
import {
|
|
9
|
+
import { useItemValue as l } from "../../composables/useItemValue.js";
|
|
10
|
+
import { useItemText as ee } from "../../composables/useItemText.js";
|
|
11
|
+
import { createItemPropsResolver as te, itemPropsDeclares as ne } from "../../utilities/functions/itemProps.js";
|
|
12
|
+
import { useLogger as re } from "../../composables/useLogger.js";
|
|
13
|
+
import { isNil as ie } from "../../utilities/functions/isNil.js";
|
|
14
|
+
import { keyHaystacks as ae, rankByQuery as oe } from "../../utilities/functions/searchRank.js";
|
|
15
15
|
import { parseWidthString as se } from "../../utilities/functions/parseWidthString.js";
|
|
16
16
|
import { useArray as ce } from "../../composables/useArray.js";
|
|
17
17
|
import { useBaseOptions as le } from "../../composables/useBaseOptions.js";
|
|
@@ -24,42 +24,44 @@ import { useIndexById as _e } from "../../composables/useIndexById.js";
|
|
|
24
24
|
import { useItemsGetter as ve } from "../../composables/useItemsGetter.js";
|
|
25
25
|
import { SsrMarker as ye } from "../../composables/ssrMarker.js";
|
|
26
26
|
import { provideSheetChipAttrs as be, useSheetChipAttrs as xe } from "./sheetChipAttrs.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import {
|
|
53
|
-
import
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
27
|
+
import { provideReclickClears as Se, useReclickClears as Ce } from "./reclickClears.js";
|
|
28
|
+
import { indexKnownRows as we, knownRowsCover as Te, provideKnownItems as Ee, useKnownItems as De } from "./knownItems.js";
|
|
29
|
+
import { useLocale as Oe } from "../../composables/useLocale.js";
|
|
30
|
+
import { useMobile as ke } from "../../composables/useMobile.js";
|
|
31
|
+
import { provideSheetSurface as Ae } from "../../composables/useSheetSurface.js";
|
|
32
|
+
import { usePrefill as je } from "../../composables/usePrefill.js";
|
|
33
|
+
import { useConfig as Me } from "../../composables/useConfig.js";
|
|
34
|
+
import { useConfigDefaults as Ne, useConfigSetting as Pe } from "../../composables/useConfigDefaults.js";
|
|
35
|
+
import { isPrintableTypeaheadKey as Fe, normalizeSearchToken as Ie, useTypeahead as Le } from "../../composables/useTypeahead.js";
|
|
36
|
+
import { useUntil as Re } from "../../composables/useUntil.js";
|
|
37
|
+
import { useClosingInert as ze } from "../../composables/useClosingInert.js";
|
|
38
|
+
import { wait as Be } from "../../utilities/functions/wait.js";
|
|
39
|
+
import Ve from "../BbBadge/BbBadge.vue.js";
|
|
40
|
+
import He from "../BbIcon/BbIcon.vue.js";
|
|
41
|
+
import Ue from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
42
|
+
import We from "../ClearableButton/ClearableButton.vue.js";
|
|
43
|
+
import Ge from "../CommonPopover/CommonPopover.vue.js";
|
|
44
|
+
import Ke from "../ErrorIcon/ErrorIcon.vue.js";
|
|
45
|
+
import qe from "../WarningIcon/WarningIcon.vue.js";
|
|
46
|
+
import Je from "../../assets/svgs/search.svg_raw.js";
|
|
47
|
+
import Ye from "../ListBox/ListBox.vue.js";
|
|
48
|
+
import { waitFor as Xe } from "../../utilities/functions/waitFor.js";
|
|
49
|
+
import { BB_SELECT_POPOVER_PT as Ze } from "./types.js";
|
|
50
|
+
import { BB_OFF_CANVAS_PT as Qe } from "../BbOffCanvas/types.js";
|
|
51
|
+
import { usePassthrough as $e } from "../../composables/usePassthrough.js";
|
|
52
|
+
import { withoutClass as et, withoutPt as tt } from "../../utils/passthrough.js";
|
|
53
|
+
import nt from "../BbSmoothHeight/BbSmoothHeight.vue.js";
|
|
54
|
+
import { transitions as u } from "../../utilities/misc/transitions.js";
|
|
55
|
+
import { removedPropsFor as rt } from "../../deprecation/removedProps.js";
|
|
56
|
+
import { warnRemovedAttrs as it } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
57
|
+
import { hasVnodeListener as at } from "../../utilities/functions/hasVnodeListener.js";
|
|
58
|
+
import { Fragment as ot, computed as d, createBlock as st, createCommentVNode as ct, createElementBlock as f, createElementVNode as lt, createSlots as ut, createTextVNode as dt, createVNode as p, defineComponent as ft, getCurrentInstance as pt, guardReactiveProps as m, mergeProps as h, nextTick as mt, normalizeProps as g, onBeforeMount as ht, onBeforeUnmount as gt, onDeactivated as _t, openBlock as _, ref as v, renderList as vt, renderSlot as y, shallowRef as yt, toDisplayString as bt, toRef as xt, unref as b, vModelText as St, watch as x, withCtx as S, withDirectives as Ct, withKeys as wt, withModifiers as C } from "vue";
|
|
59
|
+
import { createReusableTemplate as Tt, useDebounceFn as Et, useElementSize as Dt, useIntersectionObserver as Ot } from "@vueuse/core";
|
|
58
60
|
// src/components/BbSelectPopover/BbSelectPopover.vue?vue&type=script&setup=true&lang.ts
|
|
59
|
-
var
|
|
61
|
+
var kt = {
|
|
60
62
|
key: 0,
|
|
61
63
|
class: "bb-select-popover__search-container"
|
|
62
|
-
},
|
|
64
|
+
}, At = [
|
|
63
65
|
"id",
|
|
64
66
|
"aria-activedescendant",
|
|
65
67
|
"aria-controls",
|
|
@@ -70,11 +72,11 @@ var Tt = {
|
|
|
70
72
|
"inputmode",
|
|
71
73
|
"placeholder",
|
|
72
74
|
"tabindex"
|
|
73
|
-
],
|
|
75
|
+
], jt = {
|
|
74
76
|
key: 1,
|
|
75
77
|
"aria-hidden": "true",
|
|
76
78
|
class: "bb-select-popover__search-strip"
|
|
77
|
-
},
|
|
79
|
+
}, Mt = [
|
|
78
80
|
"aria-activedescendant",
|
|
79
81
|
"aria-controls",
|
|
80
82
|
"aria-describedby",
|
|
@@ -82,10 +84,10 @@ var Tt = {
|
|
|
82
84
|
"aria-invalid",
|
|
83
85
|
"aria-label",
|
|
84
86
|
"onKeydown"
|
|
85
|
-
],
|
|
87
|
+
], Nt = {
|
|
86
88
|
key: 0,
|
|
87
89
|
class: "bb-select-popover__sheet-selection"
|
|
88
|
-
},
|
|
90
|
+
}, Pt = { class: "bb-select-popover__sheet-chips" }, Ft = ["inert"], It = ["inert"], w = /*@__PURE__*/ ft({
|
|
89
91
|
__name: "BbSelectPopover",
|
|
90
92
|
props: {
|
|
91
93
|
"pt:root": {},
|
|
@@ -106,6 +108,7 @@ var Tt = {
|
|
|
106
108
|
"pt:itemText:open": {},
|
|
107
109
|
"pt:itemIcon:open": {},
|
|
108
110
|
"pt:itemDescription:open": {},
|
|
111
|
+
"pt:check:open": {},
|
|
109
112
|
"pt:header:open": {},
|
|
110
113
|
"pt:footer:open": {},
|
|
111
114
|
"pt:option:selected": {},
|
|
@@ -116,10 +119,13 @@ var Tt = {
|
|
|
116
119
|
"pt:itemIcon:disabled": {},
|
|
117
120
|
"pt:itemDescription:selected": {},
|
|
118
121
|
"pt:itemDescription:disabled": {},
|
|
122
|
+
"pt:check:selected": {},
|
|
123
|
+
"pt:check:disabled": {},
|
|
119
124
|
"pt:option": {},
|
|
120
125
|
"pt:itemText": {},
|
|
121
126
|
"pt:itemIcon": {},
|
|
122
127
|
"pt:itemDescription": {},
|
|
128
|
+
"pt:check": {},
|
|
123
129
|
pt: {},
|
|
124
130
|
activator: {},
|
|
125
131
|
adaptive: {
|
|
@@ -139,7 +145,10 @@ var Tt = {
|
|
|
139
145
|
},
|
|
140
146
|
autocomplete: { default: "off" },
|
|
141
147
|
boundary: {},
|
|
142
|
-
compact: {
|
|
148
|
+
compact: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
default: void 0
|
|
151
|
+
},
|
|
143
152
|
dependencies: { default: () => [] },
|
|
144
153
|
depsDebounceTime: { default: 0 },
|
|
145
154
|
clearable: { type: Boolean },
|
|
@@ -169,7 +178,7 @@ var Tt = {
|
|
|
169
178
|
multiple: { type: Boolean },
|
|
170
179
|
emptyText: {},
|
|
171
180
|
failedText: {},
|
|
172
|
-
offset: { default:
|
|
181
|
+
offset: { default: void 0 },
|
|
173
182
|
padding: { default: 10 },
|
|
174
183
|
placement: { default: "bottom" },
|
|
175
184
|
prefill: {
|
|
@@ -184,7 +193,7 @@ var Tt = {
|
|
|
184
193
|
default: !0
|
|
185
194
|
},
|
|
186
195
|
stash: { type: Boolean },
|
|
187
|
-
transitionDuration: { default:
|
|
196
|
+
transitionDuration: { default: u.medium },
|
|
188
197
|
width: { default: "200" }
|
|
189
198
|
},
|
|
190
199
|
emits: [
|
|
@@ -202,300 +211,300 @@ var Tt = {
|
|
|
202
211
|
"update:modelValue",
|
|
203
212
|
"option:add"
|
|
204
213
|
],
|
|
205
|
-
setup(
|
|
206
|
-
let
|
|
214
|
+
setup(u, { emit: ft }) {
|
|
215
|
+
let w = u, T = ft, Lt = Pe(null, "popoverOffset"), E = $e({
|
|
207
216
|
component: "BbSelectPopover",
|
|
208
|
-
props:
|
|
209
|
-
parts:
|
|
210
|
-
states:
|
|
217
|
+
props: w,
|
|
218
|
+
parts: Ze.parts,
|
|
219
|
+
states: Ze.states,
|
|
211
220
|
active: { open: () => Y.value },
|
|
212
|
-
facts: (e) => ({ known:
|
|
213
|
-
}),
|
|
214
|
-
process.env.NODE_ENV !== "production" &&
|
|
215
|
-
let [
|
|
216
|
-
|
|
217
|
-
|
|
221
|
+
facts: (e) => ({ known: P(e) })
|
|
222
|
+
}), Rt = Me();
|
|
223
|
+
process.env.NODE_ENV !== "production" && it("BbSelectPopover", rt("BbSelectPopover"));
|
|
224
|
+
let [zt, Bt] = Tt(), [Vt, Ht] = Tt();
|
|
225
|
+
ht(() => {
|
|
226
|
+
w.multiple && !Array.isArray(w.modelValue) && re().throw(`BbSelectPopover: \`multiple\` requires an array modelValue, received ${w.modelValue === null ? "null" : typeof w.modelValue}. Seed it with \`[]\` for an empty selection — \`null\`/\`undefined\` are not accepted, because a multi-select with no array has no way to express "nothing selected" separately from "not ready".`);
|
|
218
227
|
});
|
|
219
|
-
let
|
|
220
|
-
if (
|
|
221
|
-
let e = r(
|
|
228
|
+
let D = v(), O = v(null), Ut = v(null), Wt = v(null), Gt = v(null), Kt = v(), qt = d(() => {
|
|
229
|
+
if (w.anchor) {
|
|
230
|
+
let e = r(w.anchor);
|
|
222
231
|
if (e) return e;
|
|
223
232
|
}
|
|
224
|
-
return
|
|
225
|
-
}), { width:
|
|
233
|
+
return D.value;
|
|
234
|
+
}), { width: Jt } = Dt(() => n(qt.value), {
|
|
226
235
|
width: 0,
|
|
227
236
|
height: 0
|
|
228
|
-
}, { box: "border-box" }),
|
|
237
|
+
}, { box: "border-box" }), Yt = d(() => w.activator != null), Xt = (e) => {
|
|
229
238
|
let t = r(e);
|
|
230
|
-
t && (
|
|
239
|
+
t && (D.value = t);
|
|
231
240
|
};
|
|
232
|
-
|
|
233
|
-
e &&
|
|
241
|
+
x(() => w.activator, (e) => {
|
|
242
|
+
e && Xt(e);
|
|
234
243
|
}, { immediate: !0 });
|
|
235
|
-
let { isMobile:
|
|
236
|
-
if (
|
|
237
|
-
let e =
|
|
238
|
-
return !(e > 0) ||
|
|
239
|
-
},
|
|
240
|
-
let e =
|
|
241
|
-
return e === "auto" ? !
|
|
242
|
-
}),
|
|
243
|
-
let e =
|
|
244
|
-
return Y.value &&
|
|
245
|
-
}),
|
|
246
|
-
if (
|
|
247
|
-
|
|
244
|
+
let { isMobile: Zt } = ke(), Qt = d(() => w.disableWriting ?? "auto"), $t = Pe(null, "autoDisableWritingThreshold"), en = pt(), tn = () => {
|
|
245
|
+
if (Qt.value !== "auto" || !Array.isArray(w.items)) return !1;
|
|
246
|
+
let e = $t() ?? 6;
|
|
247
|
+
return !(e > 0) || at(en, "option:add") ? !1 : w.items.length < e;
|
|
248
|
+
}, nn = v(tn()), k = d(() => {
|
|
249
|
+
let e = Qt.value;
|
|
250
|
+
return e === "auto" ? !nn.value : e === "mobile" ? !Zt.value : e === "desktop" ? Zt.value : !e;
|
|
251
|
+
}), rn = d(() => Qt.value === "mobile" && Zt.value || Qt.value === "desktop" && !Zt.value ? "none" : void 0), { t: an } = Oe(), on = d(() => w.searchInputAriaLabel ?? an("select.searchLabel").value), sn = d(() => !!w.clearable && (M.value.length > 0 || (w.multiple ? Array.isArray(w.modelValue) && w.modelValue.length > 0 : !ie(w.modelValue)))), cn = fe().id.value, A = w.id || cn, ln = d(() => w.ariaInvalid ?? !!w.hasErrors ? "true" : void 0), un = d(() => {
|
|
252
|
+
let e = w.ariaDescribedby, t = Array.isArray(e) ? e.map((e) => e.trim()).filter(Boolean) : typeof e == "string" && e.trim() ? [e.trim()] : [];
|
|
253
|
+
return Y.value && N.value !== null && t.push(`${A}_listbox_failed`), t.length ? t.join(" ") : void 0;
|
|
254
|
+
}), dn = !1, { resume: fn, pause: pn } = Ot(() => n(D.value), async ([{ intersectionRatio: e }]) => {
|
|
255
|
+
if (dn) {
|
|
256
|
+
dn = !1;
|
|
248
257
|
return;
|
|
249
258
|
}
|
|
250
259
|
if (e >= .99 || !Y.value) return;
|
|
251
|
-
let t =
|
|
260
|
+
let t = D.value;
|
|
252
261
|
t && await c(t) || Y.value && await $();
|
|
253
262
|
}, {
|
|
254
263
|
threshold: [0, 1],
|
|
255
264
|
immediate: !1
|
|
256
|
-
}),
|
|
257
|
-
if (
|
|
258
|
-
if (
|
|
265
|
+
}), mn = d(() => {
|
|
266
|
+
if (w.width === "auto") return "auto";
|
|
267
|
+
if (w.width == null || w.width === "") return Jt.value ? `${Jt.value}px` : "320px";
|
|
259
268
|
try {
|
|
260
|
-
let { value: e, unit: t } = se(
|
|
261
|
-
return t === "%" ?
|
|
269
|
+
let { value: e, unit: t } = se(w.width);
|
|
270
|
+
return t === "%" ? Jt.value ? `${Jt.value * (e / 100)}px` : "320px" : `${e}${t}`;
|
|
262
271
|
} catch {
|
|
263
|
-
return typeof
|
|
272
|
+
return typeof w.width == "string" ? w.width.trim() : Jt.value ? `${Jt.value}px` : "320px";
|
|
264
273
|
}
|
|
265
|
-
}),
|
|
274
|
+
}), hn = d(() => h({ class: "bb-select-popover__panel" }, X.value ? {} : E.panel ?? {})), gn = d(() => h({
|
|
266
275
|
class: ["bb-select-popover bb-select-popover--sheet", {
|
|
267
|
-
"bb-select-popover--errors":
|
|
268
|
-
"bb-select-popover--warnings":
|
|
276
|
+
"bb-select-popover--errors": xi.value,
|
|
277
|
+
"bb-select-popover--warnings": Si.value,
|
|
269
278
|
"bb-select-popover--loading": J.value,
|
|
270
|
-
"bb-select-popover--reloading":
|
|
271
|
-
"bb-select-popover--clearable-active":
|
|
279
|
+
"bb-select-popover--reloading": yi.value,
|
|
280
|
+
"bb-select-popover--clearable-active": sn.value
|
|
272
281
|
}],
|
|
273
282
|
tabindex: -1
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
+
}, hn.value)), _n = d(() => ({ "--w": mn.value })), j = () => {
|
|
284
|
+
D.value?.focus();
|
|
285
|
+
}, vn = () => {
|
|
286
|
+
Ut.value instanceof HTMLInputElement && Ut.value.focus();
|
|
287
|
+
}, yn = () => {
|
|
288
|
+
Wt.value instanceof HTMLButtonElement && Wt.value.focus();
|
|
289
|
+
}, bn = () => {
|
|
290
|
+
k.value ? vn() : yn();
|
|
291
|
+
}, xn = () => {
|
|
283
292
|
let e = document.activeElement;
|
|
284
|
-
return e ===
|
|
285
|
-
},
|
|
286
|
-
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
let t =
|
|
296
|
-
Promise.resolve(
|
|
297
|
-
|
|
293
|
+
return e === Ut.value || !!D.value?.contains(e);
|
|
294
|
+
}, Sn = (e) => {
|
|
295
|
+
T("focus", e), ga();
|
|
296
|
+
}, Cn = (e) => {
|
|
297
|
+
T("blur", e), ba();
|
|
298
|
+
}, wn = (e) => {
|
|
299
|
+
T("change", e);
|
|
300
|
+
}, Tn = (e) => {
|
|
301
|
+
ga();
|
|
302
|
+
}, En = (e) => {
|
|
303
|
+
T("input", e), Pr();
|
|
304
|
+
let t = Dr;
|
|
305
|
+
Promise.resolve($n(() => (t = Dr, [
|
|
306
|
+
M.value,
|
|
298
307
|
"search",
|
|
299
|
-
|
|
300
|
-
]))).then((e) =>
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
},
|
|
308
|
+
w.modelValue
|
|
309
|
+
]))).then((e) => Ei(t, "search", e));
|
|
310
|
+
}, Dn = (e) => {
|
|
311
|
+
Kt.value = e;
|
|
312
|
+
}, On = async (e) => {
|
|
304
313
|
let t = e.target instanceof Element ? e.target : e.target instanceof Text ? e.target.parentElement : null;
|
|
305
314
|
if (!t) return;
|
|
306
|
-
let n =
|
|
307
|
-
if (n || r || e.type === "focusin" &&
|
|
315
|
+
let n = qt.value?.contains(t), r = !!t.closest(".bb-common-popover");
|
|
316
|
+
if (n || r || e.type === "focusin" && qt.value && t.contains(qt.value)) return;
|
|
308
317
|
let i = t instanceof HTMLLabelElement ? t : t.closest("label");
|
|
309
|
-
i?.control &&
|
|
310
|
-
},
|
|
318
|
+
i?.control && qt.value?.contains(i.control) || (await $(), _a());
|
|
319
|
+
}, kn = d(() => !(w.readonly || w.disabled || J.value && !nr.value.length)), An = new AbortController(), jn = async () => Xe(() => !!O.value, {
|
|
311
320
|
interval: 100,
|
|
312
|
-
signal:
|
|
313
|
-
}),
|
|
321
|
+
signal: An.signal
|
|
322
|
+
}), Mn = () => {
|
|
314
323
|
let e = q.value[0];
|
|
315
|
-
e?.valueHash ?
|
|
316
|
-
},
|
|
324
|
+
e?.valueHash ? O.value?.focusByHash(e.valueHash) : O.value?.focusFirstSelected();
|
|
325
|
+
}, Nn = () => {
|
|
317
326
|
let e = q.value[q.value.length - 1];
|
|
318
|
-
e?.valueHash ?
|
|
319
|
-
},
|
|
327
|
+
e?.valueHash ? O.value?.focusByHash(e.valueHash) : O.value?.focusLastSelected();
|
|
328
|
+
}, Pn = null, Fn = (e) => {
|
|
320
329
|
let t = (async () => {
|
|
321
|
-
await
|
|
330
|
+
await da({ focusPopoverContent: !1 }), await jn(), await Be(w.transitionDuration), e();
|
|
322
331
|
})();
|
|
323
|
-
|
|
332
|
+
Pn = t;
|
|
324
333
|
let n = () => {
|
|
325
|
-
|
|
334
|
+
Pn === t && (Pn = null);
|
|
326
335
|
};
|
|
327
336
|
return t.then(n, n), t;
|
|
328
|
-
},
|
|
329
|
-
for (;
|
|
330
|
-
},
|
|
331
|
-
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
candidates: () => (
|
|
338
|
-
getTokens: (e) => [
|
|
339
|
-
getCurrent: () =>
|
|
337
|
+
}, In = async () => {
|
|
338
|
+
for (; Pn;) await Pn.catch(() => void 0);
|
|
339
|
+
}, Ln = async () => {
|
|
340
|
+
kn.value && (await In(), Y.value ? (ca(), O.value?.focusPrevious()) : await Fn(Nn));
|
|
341
|
+
}, Rn = async () => {
|
|
342
|
+
kn.value && (await In(), Y.value ? (ca(), O.value?.focusNext()) : await Fn(Mn));
|
|
343
|
+
}, zn = async (e) => {
|
|
344
|
+
kn.value && (await In(), Y.value || await Fn(() => void 0), ca(), e === "first" ? O.value?.focusFirst() : O.value?.focusLast());
|
|
345
|
+
}, Bn = () => zn("first"), Vn = () => zn("last"), Hn = Le({
|
|
346
|
+
candidates: () => (w.groupBy ? Yi.value.flatMap((e) => e.options) : Ki.value).filter((e) => !e.disabled),
|
|
347
|
+
getTokens: (e) => [Ie(String(e.text ?? ""), Rt.locale)],
|
|
348
|
+
getCurrent: () => O.value?.getHighlighted() ?? void 0,
|
|
340
349
|
onMatch: (e) => {
|
|
341
|
-
|
|
350
|
+
ca(), O.value?.focusByHash(e.valueHash);
|
|
342
351
|
},
|
|
343
|
-
locale: () =>
|
|
344
|
-
}),
|
|
345
|
-
e.preventDefault(), await
|
|
346
|
-
let t =
|
|
352
|
+
locale: () => Rt.locale
|
|
353
|
+
}), Un = async (e) => {
|
|
354
|
+
e.preventDefault(), await In();
|
|
355
|
+
let t = Ut.value;
|
|
347
356
|
if (!(t instanceof HTMLInputElement) || document.activeElement !== t) return;
|
|
348
357
|
let n = t.value.length;
|
|
349
358
|
t.setRangeText(e.key, t.selectionStart ?? n, t.selectionEnd ?? n, "end"), t.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
if (!
|
|
354
|
-
if (await
|
|
355
|
-
await
|
|
356
|
-
q.value.length ?
|
|
359
|
+
}, Wn = async (e) => {
|
|
360
|
+
Fe(e) && (k.value ? Pn && await Un(e) : kn.value && (e.preventDefault(), Y.value || (await da({ focusPopoverContent: !1 }), await jn(), await Be(w.transitionDuration)), Hn.onKeydown(e)));
|
|
361
|
+
}, Gn = async () => {
|
|
362
|
+
if (!kn.value) return;
|
|
363
|
+
if (await In(), !Y.value) {
|
|
364
|
+
await Fn(() => {
|
|
365
|
+
q.value.length ? Mn() : k.value ? vn() : yn();
|
|
357
366
|
});
|
|
358
367
|
return;
|
|
359
368
|
}
|
|
360
|
-
if (
|
|
361
|
-
|
|
369
|
+
if (O.value?.getHighlighted()) {
|
|
370
|
+
O.value.confirmOption();
|
|
362
371
|
return;
|
|
363
372
|
}
|
|
364
|
-
if (!
|
|
365
|
-
let e =
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
Y.value && (await $(),
|
|
369
|
-
},
|
|
370
|
-
ArrowDown: () =>
|
|
371
|
-
ArrowUp: () =>
|
|
372
|
-
Down: () =>
|
|
373
|
-
Enter: () =>
|
|
374
|
-
Esc: () =>
|
|
375
|
-
Escape: () =>
|
|
376
|
-
Up: () =>
|
|
377
|
-
},
|
|
373
|
+
if (!k.value) return;
|
|
374
|
+
let e = M.value.trim();
|
|
375
|
+
Ir(e) || (T("option:add", e), M.value = "");
|
|
376
|
+
}, Kn = async () => {
|
|
377
|
+
Y.value && (await $(), j());
|
|
378
|
+
}, qn = {
|
|
379
|
+
ArrowDown: () => Rn(),
|
|
380
|
+
ArrowUp: () => Ln(),
|
|
381
|
+
Down: () => Rn(),
|
|
382
|
+
Enter: () => Gn(),
|
|
383
|
+
Esc: () => Kn(),
|
|
384
|
+
Escape: () => Kn(),
|
|
385
|
+
Up: () => Ln()
|
|
386
|
+
}, Jn = (e) => {
|
|
378
387
|
if (t(e)) return;
|
|
379
|
-
let n =
|
|
388
|
+
let n = qn[e.key];
|
|
380
389
|
n && (e.stopPropagation(), e.preventDefault(), n());
|
|
381
|
-
},
|
|
382
|
-
Y.value && e.key === "Escape" && me(
|
|
383
|
-
},
|
|
384
|
-
items:
|
|
385
|
-
debounce:
|
|
390
|
+
}, Yn = Symbol("bb-select-popover-escape"), Xn = (e) => {
|
|
391
|
+
Y.value && e.key === "Escape" && me(Yn) && (e.stopImmediatePropagation(), e.preventDefault(), Kn());
|
|
392
|
+
}, M = v(""), Zn = v(!1), { getter: Qn, debouncedGetter: $n, clientReproducible: er, hydratedFromSsr: tr, items: nr, loading: rr, error: N, ssrMarker: ir, startedArgs: ar, settledArgs: or, settledCount: sr, inFlight: cr, discard: lr, discardScheduled: ur } = ve({
|
|
393
|
+
items: xt(w, "items"),
|
|
394
|
+
debounce: w.queryDebounceTime,
|
|
386
395
|
marker: !0
|
|
387
|
-
}), { array:
|
|
388
|
-
|
|
389
|
-
let
|
|
390
|
-
let e =
|
|
396
|
+
}), { array: dr, add: fr, remove: pr, set: mr } = ce(), hr = d(() => w.multiple ? !!w.modelValue?.length : !ie(w.modelValue)), { getOptionValue: gr } = l(), { getOptionText: _r } = ee(), vr = De();
|
|
397
|
+
Ee(null);
|
|
398
|
+
let yr = () => w.knownItems === void 0 ? vr?.rows() : w.knownItems, br = /* @__PURE__ */ new WeakSet(), P = (e) => typeof e == "object" && !!e && br.has(e), xr = /* @__PURE__ */ new Map(), F = d(() => {
|
|
399
|
+
let e = we(yr()), t = /* @__PURE__ */ new Map();
|
|
391
400
|
for (let [n, r] of e) {
|
|
392
|
-
let i = o(r), a =
|
|
401
|
+
let i = o(r), a = xr.get(n), s = a?.contents === i ? a.row : r;
|
|
393
402
|
e.set(n, s), t.set(n, {
|
|
394
403
|
row: s,
|
|
395
404
|
contents: i
|
|
396
|
-
}),
|
|
405
|
+
}), br.add(s);
|
|
397
406
|
}
|
|
398
|
-
return
|
|
399
|
-
}),
|
|
400
|
-
alreadyLoaded:
|
|
401
|
-
clientReproducible:
|
|
402
|
-
trigger:
|
|
407
|
+
return xr = t, e;
|
|
408
|
+
}), Sr = (e) => o(P(e) ? e.value : gr(e, w.itemValue)), Cr = d(() => o([...F.value.values()])), wr = d(() => F.value.size > 0), Tr = d(() => yr() != null), Er = d(() => Te(F.value, w.modelValue, w.multiple)), I = v("none"), Dr = 0, Or = d(() => I.value === "none" && Er.value), kr = d(() => w.prefill === !1 && !Array.isArray(w.items) && k.value && (!hr.value || Er.value)), Ar = d(() => N.value === null ? kr.value && !M.value ? an("select.searchToStart").value : w.emptyText : w.failedText || an("common.failedText").value), { hasPrefilled: L, isPrefilling: jr, canLoad: Mr, prefill: Nr, markPrefilled: Pr } = je({
|
|
409
|
+
alreadyLoaded: tr,
|
|
410
|
+
clientReproducible: er,
|
|
411
|
+
trigger: d(() => Array.isArray(w.items) || w.prefill === !0 || w.enforceCoherence && hr.value && !Or.value || w.prefill === "interaction" && Zn.value),
|
|
403
412
|
currentValue: void 0,
|
|
404
413
|
multiple: !1,
|
|
405
414
|
fn: async () => {
|
|
406
|
-
await
|
|
415
|
+
await Di(M.value, "initial", w.modelValue) === "applied" && (w.stash && fr(...G.value.filter((e) => e.selected).map((e) => e.item)), hi());
|
|
407
416
|
}
|
|
408
|
-
}),
|
|
417
|
+
}), Fr = d(() => w.multiple ? [].concat(w.modelValue) : [w.modelValue]), { data: R, get: Ir } = _e({ items: Fr }), z = yt(/* @__PURE__ */ new Map()), B = /* @__PURE__ */ new Map(), Lr = /* @__PURE__ */ new Map(), Rr = d(() => !!w.stash || wr.value), zr = d(() => {
|
|
409
418
|
let e = /* @__PURE__ */ new Map();
|
|
410
|
-
for (let t of
|
|
411
|
-
let n = o(
|
|
419
|
+
for (let t of dr.value) {
|
|
420
|
+
let n = o(gr(t, w.itemValue));
|
|
412
421
|
e.has(n) || e.set(n, t);
|
|
413
422
|
}
|
|
414
423
|
return e;
|
|
415
|
-
}),
|
|
416
|
-
disabled:
|
|
417
|
-
itemText:
|
|
418
|
-
itemProps:
|
|
419
|
-
itemValue:
|
|
424
|
+
}), Br = d(() => Er.value || Mr.value || Zn.value), Vr = (e) => z.value.get(e) ?? (Br.value ? F.value.get(e) : void 0) ?? zr.value.get(e), Hr = {
|
|
425
|
+
disabled: xt(() => w.disabled),
|
|
426
|
+
itemText: w.itemText,
|
|
427
|
+
itemProps: xt(() => w.itemProps),
|
|
428
|
+
itemValue: w.itemValue,
|
|
420
429
|
optionDefaults: !0,
|
|
421
|
-
max:
|
|
422
|
-
selectable:
|
|
430
|
+
max: xt(() => w.max),
|
|
431
|
+
selectable: xt(() => w.selectable),
|
|
423
432
|
selectedIndexedByHash: R
|
|
424
|
-
},
|
|
425
|
-
...
|
|
426
|
-
items:
|
|
427
|
-
}),
|
|
433
|
+
}, Ur = le({
|
|
434
|
+
...Hr,
|
|
435
|
+
items: nr
|
|
436
|
+
}), Wr = d(() => {
|
|
428
437
|
let e = /* @__PURE__ */ new Map();
|
|
429
|
-
return
|
|
438
|
+
return Ur.baseOptions.value.forEach((t, n) => {
|
|
430
439
|
e.has(t.valueHash) || e.set(t.valueHash, n);
|
|
431
440
|
}), e;
|
|
432
|
-
}), V =
|
|
441
|
+
}), V = d(() => {
|
|
433
442
|
let e = /* @__PURE__ */ new Map();
|
|
434
|
-
for (let t of
|
|
443
|
+
for (let t of Ur.baseOptions.value) e.has(t.valueHash) || e.set(t.valueHash, t.item);
|
|
435
444
|
return e;
|
|
436
|
-
}),
|
|
445
|
+
}), Gr = (e) => {
|
|
437
446
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
438
|
-
for (let r of
|
|
447
|
+
for (let r of Fr.value) {
|
|
439
448
|
let i = o(r);
|
|
440
449
|
if (n.has(i)) continue;
|
|
441
450
|
n.add(i);
|
|
442
|
-
let a =
|
|
451
|
+
let a = Vr(i);
|
|
443
452
|
a === void 0 || e().has(i) || t.push(a);
|
|
444
453
|
}
|
|
445
454
|
return t;
|
|
446
|
-
},
|
|
447
|
-
let t =
|
|
448
|
-
return t.length ? e && e.length === t.length && e.every((e, n) => e === t[n]) ? e : t :
|
|
449
|
-
}), H =
|
|
450
|
-
let t = Z.value ?
|
|
451
|
-
if (e && typeof
|
|
455
|
+
}, Kr = /* @__PURE__ */ new Map(), qr = [], Jr = v(!1), Yr = (e, t) => t.length ? e && e.length === t.length && e.every((e, n) => e === t[n]) ? e : t : qr, Xr = d((e) => Yr(e, Gr(() => Kr))), Zr = d((e) => {
|
|
456
|
+
let t = Gr(() => V.value);
|
|
457
|
+
return t.length ? e && e.length === t.length && e.every((e, n) => e === t[n]) ? e : t : qr;
|
|
458
|
+
}), H = yt([]), U = [], Qr = ({ keepSticky: e = !0 } = {}) => {
|
|
459
|
+
let t = Z.value ? Gr(() => Kr) : Zr.value, n = [], r = /* @__PURE__ */ new Set(), i = R.value;
|
|
460
|
+
if (e && typeof w.items == "function") for (let e of U) {
|
|
452
461
|
if (i[e] === void 0) continue;
|
|
453
|
-
let t = V.value.get(e) ??
|
|
462
|
+
let t = V.value.get(e) ?? Vr(e);
|
|
454
463
|
t !== void 0 && (n.push({
|
|
455
464
|
valueHash: e,
|
|
456
465
|
row: t
|
|
457
466
|
}), r.add(e));
|
|
458
467
|
}
|
|
459
468
|
for (let e of t) {
|
|
460
|
-
let t =
|
|
469
|
+
let t = Sr(e);
|
|
461
470
|
r.has(t) || (r.add(t), n.push({
|
|
462
471
|
valueHash: t,
|
|
463
472
|
row: e
|
|
464
473
|
}));
|
|
465
474
|
}
|
|
466
|
-
H.value = n, Z.value ? W = !0 : U = typeof
|
|
467
|
-
}, W = !1,
|
|
468
|
-
let e =
|
|
469
|
-
if (
|
|
475
|
+
H.value = n, Z.value ? W = !0 : U = typeof w.items == "function" ? n.map(({ valueHash: e }) => e) : [];
|
|
476
|
+
}, W = !1, $r = () => {
|
|
477
|
+
let e = or();
|
|
478
|
+
if (N.value !== null || e?.[0] || e?.[1] === "search") return;
|
|
470
479
|
let t = new Set(U);
|
|
471
|
-
H.value = H.value.filter(({ valueHash: e }) =>
|
|
472
|
-
},
|
|
480
|
+
H.value = H.value.filter(({ valueHash: e }) => F.value.has(e) || t.has(e) || K.has(e) || !V.value.has(e)), typeof w.items == "function" && (U = H.value.map(({ valueHash: e }) => e));
|
|
481
|
+
}, ei = (e) => {
|
|
473
482
|
let t = H.value.filter(({ valueHash: t }) => e.has(t) || V.value.has(t));
|
|
474
483
|
t.length !== H.value.length && (H.value = t);
|
|
475
|
-
},
|
|
476
|
-
let t = [...
|
|
477
|
-
for (let { valueHash: e, row: n } of H.value)
|
|
478
|
-
return
|
|
479
|
-
}),
|
|
480
|
-
...
|
|
481
|
-
itemValue: (e) =>
|
|
482
|
-
itemText: (e) =>
|
|
483
|
-
itemProps:
|
|
484
|
-
if (!
|
|
485
|
-
let { all: e } =
|
|
486
|
-
return (t) =>
|
|
484
|
+
}, ti = d((e) => {
|
|
485
|
+
let t = [...Xr.value];
|
|
486
|
+
for (let { valueHash: e, row: n } of H.value) Wr.value.has(e) || t.push(Vr(e) ?? n);
|
|
487
|
+
return Yr(e, t);
|
|
488
|
+
}), ni = le({
|
|
489
|
+
...Hr,
|
|
490
|
+
itemValue: (e) => P(e) ? e.value : gr(e, w.itemValue),
|
|
491
|
+
itemText: (e) => P(e) ? e.label : _r(e, w.itemText),
|
|
492
|
+
itemProps: d(() => {
|
|
493
|
+
if (!w.itemProps) return w.itemProps;
|
|
494
|
+
let { all: e } = te(w.itemProps);
|
|
495
|
+
return (t) => P(t) ? {} : e(t);
|
|
487
496
|
}),
|
|
488
|
-
selectable:
|
|
489
|
-
let e =
|
|
490
|
-
return typeof e == "function" ? (t) =>
|
|
497
|
+
selectable: d(() => {
|
|
498
|
+
let e = w.selectable;
|
|
499
|
+
return typeof e == "function" ? (t) => P(t) || e(t) : e;
|
|
491
500
|
}),
|
|
492
|
-
items:
|
|
493
|
-
}),
|
|
494
|
-
let e =
|
|
501
|
+
items: ti
|
|
502
|
+
}), ri = d(() => new Set(Xr.value.map(Sr))), G = d(() => {
|
|
503
|
+
let e = Ur.options.value, t = ni.options.value, n = Jr.value && !M.value;
|
|
495
504
|
if (!t.length && !(n && H.value.length)) return e;
|
|
496
|
-
let r =
|
|
505
|
+
let r = Wr.value;
|
|
497
506
|
if (!n) {
|
|
498
|
-
let n = t.filter((e) => !r.has(e.valueHash) &&
|
|
507
|
+
let n = t.filter((e) => !r.has(e.valueHash) && ri.value.has(e.valueHash));
|
|
499
508
|
return n.length ? [...e, ...n] : e;
|
|
500
509
|
}
|
|
501
510
|
let i = new Map(t.map((e) => [e.valueHash, e])), a = [], o = /* @__PURE__ */ new Set(), s = !Z.value;
|
|
@@ -505,25 +514,25 @@ var Tt = {
|
|
|
505
514
|
let c = n === void 0 ? i.get(t) : e[n];
|
|
506
515
|
c && !o.has(t) && (a.push(c), o.add(t));
|
|
507
516
|
}
|
|
508
|
-
for (let e of t) r.has(e.valueHash) || o.has(e.valueHash) ||
|
|
517
|
+
for (let e of t) r.has(e.valueHash) || o.has(e.valueHash) || ri.value.has(e.valueHash) && (a.push(e), o.add(e.valueHash));
|
|
509
518
|
return a.length ? [...a, ...e.filter((e) => !o.has(e.valueHash))] : e;
|
|
510
|
-
}), K = /* @__PURE__ */ new Set(),
|
|
519
|
+
}), K = /* @__PURE__ */ new Set(), ii = () => {
|
|
511
520
|
if (!U.length) return;
|
|
512
521
|
let e = R.value;
|
|
513
522
|
U = U.filter((t) => e[t] !== void 0);
|
|
514
|
-
},
|
|
515
|
-
if (!Y.value || !
|
|
516
|
-
let t = new Set(
|
|
523
|
+
}, ai = () => !M.value, oi = (e) => {
|
|
524
|
+
if (!Y.value || !ai()) return;
|
|
525
|
+
let t = new Set(Ki.value.map((e) => e.valueHash));
|
|
517
526
|
for (let n of e) {
|
|
518
527
|
let e = o(n);
|
|
519
|
-
t.has(e) && (K.add(e),
|
|
528
|
+
t.has(e) && (K.add(e), si(e));
|
|
520
529
|
}
|
|
521
|
-
},
|
|
530
|
+
}, si = (e) => {
|
|
522
531
|
let t = new Set(H.value.map((e) => e.valueHash));
|
|
523
532
|
if (t.has(e) || V.value.has(e)) return;
|
|
524
533
|
let n = [];
|
|
525
|
-
for (let r of
|
|
526
|
-
let i =
|
|
534
|
+
for (let r of Zr.value) {
|
|
535
|
+
let i = Sr(r);
|
|
527
536
|
if (!t.has(i) && (n.push({
|
|
528
537
|
valueHash: i,
|
|
529
538
|
row: r
|
|
@@ -533,40 +542,40 @@ var Tt = {
|
|
|
533
542
|
}
|
|
534
543
|
}
|
|
535
544
|
};
|
|
536
|
-
|
|
537
|
-
let
|
|
545
|
+
vr && (vr.userUnpick = oi, vr.isKnown = P);
|
|
546
|
+
let ci = (e) => ({
|
|
538
547
|
...e,
|
|
539
548
|
loading: J.value,
|
|
540
|
-
known:
|
|
549
|
+
known: P(e.item)
|
|
541
550
|
});
|
|
542
|
-
|
|
543
|
-
if (Y.value ||
|
|
551
|
+
x(R, (e) => {
|
|
552
|
+
if (Y.value || ii(), H.value.length) {
|
|
544
553
|
let t = H.value.filter(({ valueHash: t }) => e[t] !== void 0 || K.has(t));
|
|
545
554
|
t.length !== H.value.length && (H.value = t);
|
|
546
555
|
}
|
|
547
|
-
for (let t of [...B.keys()]) e[t] === void 0 && !
|
|
556
|
+
for (let t of [...B.keys()]) e[t] === void 0 && !F.value.has(t) && B.delete(t);
|
|
548
557
|
if (z.value.size) {
|
|
549
558
|
let t = null;
|
|
550
|
-
for (let n of z.value.keys()) e[n] !== void 0 ||
|
|
559
|
+
for (let n of z.value.keys()) e[n] !== void 0 || F.value.has(n) || (t ??= new Map(z.value), t.delete(n));
|
|
551
560
|
t && (z.value = t);
|
|
552
561
|
}
|
|
553
|
-
|
|
562
|
+
w.stash && dr.value.length && pr((t) => e[o(gr(t, w.itemValue))] !== void 0);
|
|
554
563
|
});
|
|
555
|
-
let { data:
|
|
564
|
+
let { data: li } = _e({
|
|
556
565
|
items: G,
|
|
557
566
|
key: "valueHash"
|
|
558
567
|
});
|
|
559
|
-
|
|
568
|
+
x(() => Rr.value && (wr.value || dr.value.length) ? li.value : null, (e) => {
|
|
560
569
|
if (!e) return;
|
|
561
|
-
let t =
|
|
570
|
+
let t = wr.value ? [.../* @__PURE__ */ new Set([...Object.keys(R.value), ...F.value.keys()])] : [...zr.value.keys()], n = null;
|
|
562
571
|
for (let r of t) {
|
|
563
572
|
let t = e[r]?.item;
|
|
564
573
|
if (t === void 0) continue;
|
|
565
574
|
let i = z.value.get(r);
|
|
566
|
-
if (t !==
|
|
567
|
-
let e =
|
|
568
|
-
if (e?.rows ===
|
|
569
|
-
|
|
575
|
+
if (t !== F.value.get(r) && t !== zr.value.get(r) && t !== i) {
|
|
576
|
+
let e = Lr.get(r);
|
|
577
|
+
if (e?.rows === nr.value && e.row === t) continue;
|
|
578
|
+
Lr.delete(r), B.set(r, t);
|
|
570
579
|
continue;
|
|
571
580
|
}
|
|
572
581
|
let a = B.get(r);
|
|
@@ -574,101 +583,101 @@ var Tt = {
|
|
|
574
583
|
}
|
|
575
584
|
n && (z.value = n);
|
|
576
585
|
});
|
|
577
|
-
let { coherent:
|
|
578
|
-
modelValue:
|
|
579
|
-
multiple:
|
|
580
|
-
iteratee: (e) => !!
|
|
581
|
-
}),
|
|
582
|
-
modelValue:
|
|
583
|
-
multiple:
|
|
586
|
+
let { coherent: ui } = ue({
|
|
587
|
+
modelValue: xt(() => w.modelValue),
|
|
588
|
+
multiple: w.multiple,
|
|
589
|
+
iteratee: (e) => !!li.value[o(e)]
|
|
590
|
+
}), di = d(() => new Set(nr.value.map((e) => o(gr(e, w.itemValue))))), { coherent: fi, coherentValue: pi } = ue({
|
|
591
|
+
modelValue: xt(() => w.modelValue),
|
|
592
|
+
multiple: w.multiple,
|
|
584
593
|
iteratee: (e) => {
|
|
585
594
|
let t = o(e);
|
|
586
|
-
return
|
|
595
|
+
return di.value.has(t) || typeof w.items == "function" && I.value !== "revoked" && F.value.has(t);
|
|
587
596
|
}
|
|
588
|
-
}),
|
|
589
|
-
if (!
|
|
590
|
-
let e = o(
|
|
591
|
-
if (e ===
|
|
592
|
-
|
|
593
|
-
|
|
597
|
+
}), mi, hi = () => {
|
|
598
|
+
if (!w.enforceCoherence || fi.value) return !1;
|
|
599
|
+
let e = o(w.modelValue);
|
|
600
|
+
if (e === mi) return !1;
|
|
601
|
+
mi = e, mt(() => {
|
|
602
|
+
mi === e && (mi = void 0);
|
|
594
603
|
});
|
|
595
|
-
let t =
|
|
596
|
-
return
|
|
597
|
-
}, q =
|
|
604
|
+
let t = pi.value;
|
|
605
|
+
return ei(new Set((w.multiple ? [].concat(t) : [t]).map((e) => o(e)))), T("update:modelValue", t), !0;
|
|
606
|
+
}, q = d(() => Fr.value.map((e) => li.value[o(e)]).filter(Boolean)), gi = d(() => N.value === null ? q.value : Fr.value.map((e) => {
|
|
598
607
|
let t = o(e);
|
|
599
|
-
return
|
|
608
|
+
return li.value[t] ?? {
|
|
600
609
|
value: e,
|
|
601
610
|
valueHash: t,
|
|
602
611
|
text: s(e),
|
|
603
612
|
unresolved: !0
|
|
604
613
|
};
|
|
605
|
-
})),
|
|
614
|
+
})), _i = (e) => ({
|
|
606
615
|
item: e.item,
|
|
607
616
|
text: e.text,
|
|
608
617
|
value: e.value,
|
|
609
618
|
selected: e.selected ?? !0,
|
|
610
619
|
disabled: e.disabled ?? !1
|
|
611
|
-
}),
|
|
612
|
-
function
|
|
613
|
-
return !
|
|
620
|
+
}), vi = d(() => q.value.map(_i)), J = d(() => !!(rr.value || w.loading)), yi = d(() => J.value && !Z.value && !bi.value && G.value.length > 0), bi = d(() => J.value && Ki.value.length > 0 && (Z.value || wr.value && !nr.value.length)), xi = d(() => !!w.hasErrors), Si = d(() => !!w.hasWarnings && !xi.value), Ci = d(() => gi.value.map((e) => e.text).filter(Boolean).join(", ") || ""), wi = yt(/* @__PURE__ */ new Set());
|
|
621
|
+
function Ti() {
|
|
622
|
+
return !w.enforceCoherence || I.value === "none" || !wr.value || typeof w.items != "function" ? !1 : Fr.value.some((e) => {
|
|
614
623
|
let t = o(e);
|
|
615
|
-
return
|
|
624
|
+
return F.value.has(t) && !wi.value.has(t);
|
|
616
625
|
});
|
|
617
626
|
}
|
|
618
|
-
let
|
|
619
|
-
if (n === "applied" && e ===
|
|
620
|
-
if (typeof
|
|
621
|
-
let e = new Set(
|
|
627
|
+
let Ei = (e, t, n) => {
|
|
628
|
+
if (n === "applied" && e === Dr) {
|
|
629
|
+
if (typeof w.items == "function" && (Tr.value || I.value !== "none")) {
|
|
630
|
+
let e = new Set(wi.value);
|
|
622
631
|
for (let t of V.value.keys()) e.add(t);
|
|
623
|
-
|
|
632
|
+
wi.value = e;
|
|
624
633
|
}
|
|
625
|
-
t !== "search" &&
|
|
634
|
+
t !== "search" && I.value === "pending" && (I.value = "revoked", ei(new Set(Object.keys(R.value))));
|
|
626
635
|
}
|
|
627
636
|
};
|
|
628
|
-
async function
|
|
629
|
-
let r =
|
|
630
|
-
return
|
|
637
|
+
async function Di(e, t, n) {
|
|
638
|
+
let r = Dr, i = await Qn(e, t, n);
|
|
639
|
+
return Ei(r, t, i), i;
|
|
631
640
|
}
|
|
632
|
-
function
|
|
633
|
-
|
|
641
|
+
function Oi() {
|
|
642
|
+
ki = !1, oa = !1, W && (W = !1, $r()), Z.value = !1;
|
|
634
643
|
}
|
|
635
|
-
let
|
|
636
|
-
if (!
|
|
637
|
-
if (
|
|
638
|
-
|
|
644
|
+
let ki = !1, Ai = !1, ji = () => {
|
|
645
|
+
if (!hr.value || ui.value) return;
|
|
646
|
+
if (cr()) {
|
|
647
|
+
ar()?.[1] === "search" && (Ai = !0);
|
|
639
648
|
return;
|
|
640
649
|
}
|
|
641
|
-
let e =
|
|
642
|
-
e === "initial" &&
|
|
643
|
-
e === "applied" &&
|
|
650
|
+
let e = L.value ? "model" : "initial";
|
|
651
|
+
e === "initial" && Pr(), Di(M.value, e, w.modelValue).then((e) => {
|
|
652
|
+
e === "applied" && hi();
|
|
644
653
|
});
|
|
645
|
-
},
|
|
646
|
-
|
|
647
|
-
|
|
654
|
+
}, Mi = Et(ji, w.depsDebounceTime);
|
|
655
|
+
x(sr, () => {
|
|
656
|
+
Ai && (Ai = !1, ji());
|
|
648
657
|
});
|
|
649
|
-
let
|
|
650
|
-
if (typeof
|
|
651
|
-
let e =
|
|
652
|
-
|
|
653
|
-
t === "applied" && e !== "search" &&
|
|
658
|
+
let Ni = () => {
|
|
659
|
+
if (typeof w.items != "function" || (Z.value = !0, Qr(), kr.value && !M.value)) return;
|
|
660
|
+
let e = M.value ? "search" : "initial";
|
|
661
|
+
Di(M.value, e, w.modelValue).then((t) => {
|
|
662
|
+
t === "applied" && e !== "search" && hi();
|
|
654
663
|
});
|
|
655
|
-
},
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
664
|
+
}, Pi = () => new Map([...F.value].map(([e, t]) => [e, o(t)])), Fi = Pi(), Ii = /* @__PURE__ */ new WeakMap(), Li = 0, Ri = (e) => typeof e == "function" ? e : Array.isArray(e) ? (Ii.has(e) || Ii.set(e, ++Li), `array:${Ii.get(e)}`) : e, zi = d(() => o([w.dependencies, Ri(w.items)])), Bi = d(() => o(w.modelValue)), Vi, Hi;
|
|
665
|
+
x([
|
|
666
|
+
zi,
|
|
667
|
+
Cr,
|
|
668
|
+
Bi
|
|
660
669
|
], ([e, t, n], [r, i, a]) => {
|
|
661
670
|
let o = e !== r, s = t !== i, c = n !== a;
|
|
662
671
|
if (s) {
|
|
663
|
-
let e =
|
|
672
|
+
let e = Pi();
|
|
664
673
|
if (z.value.size || B.size) {
|
|
665
674
|
let t = null;
|
|
666
675
|
for (let [n, r] of e) {
|
|
667
|
-
if (
|
|
676
|
+
if (Fi.get(n) === r) continue;
|
|
668
677
|
B.delete(n);
|
|
669
678
|
let e = V.value.get(n);
|
|
670
|
-
e !== void 0 &&
|
|
671
|
-
rows:
|
|
679
|
+
e !== void 0 && Lr.set(n, {
|
|
680
|
+
rows: nr.value,
|
|
672
681
|
row: e
|
|
673
682
|
}), z.value.has(n) && (t ??= new Map(z.value), t.delete(n));
|
|
674
683
|
}
|
|
@@ -676,73 +685,73 @@ var Tt = {
|
|
|
676
685
|
}
|
|
677
686
|
if (z.value.size || B.size) {
|
|
678
687
|
let t = R.value, n = null;
|
|
679
|
-
for (let r of
|
|
688
|
+
for (let r of Fi.keys()) e.has(r) || t[r] !== void 0 || (B.delete(r), z.value.has(r) && (n ??= new Map(z.value), n.delete(r)));
|
|
680
689
|
n && (z.value = n);
|
|
681
690
|
}
|
|
682
|
-
|
|
691
|
+
Fi = e;
|
|
683
692
|
}
|
|
684
|
-
if (o && Array.isArray(
|
|
685
|
-
if (
|
|
686
|
-
let t =
|
|
687
|
-
|
|
688
|
-
} else o ? (
|
|
689
|
-
}, { flush: "pre" }), de(() =>
|
|
690
|
-
if (!
|
|
691
|
-
let e =
|
|
692
|
-
if (Array.isArray(
|
|
693
|
+
if (o && Array.isArray(w.items) && Oi(), o && s && c && Er.value) {
|
|
694
|
+
if (I.value = "none", wi.value = /* @__PURE__ */ new Set(), Dr++, Vi = e, typeof w.items != "function") return;
|
|
695
|
+
let t = L.value || cr();
|
|
696
|
+
lr(), Y.value ? Ni() : t && (ki = !0);
|
|
697
|
+
} else o ? (I.value = "pending", wi.value = /* @__PURE__ */ new Set(), Dr++, Vi = void 0, c && (Hi = n)) : (c && (Hi = void 0), s && !c && !Er.value && Mi());
|
|
698
|
+
}, { flush: "pre" }), de(() => w.modelValue, async () => {
|
|
699
|
+
if (!Mr.value) return;
|
|
700
|
+
let e = Ti() && Bi.value !== Hi;
|
|
701
|
+
if (Array.isArray(w.items) && w.enforceCoherence && wr.value && Fr.value.some((e) => {
|
|
693
702
|
let t = o(e);
|
|
694
|
-
return
|
|
695
|
-
}) || !
|
|
696
|
-
let e =
|
|
697
|
-
if (e === "initial" &&
|
|
698
|
-
|
|
703
|
+
return F.value.has(t) && !V.value.has(t);
|
|
704
|
+
}) || !ui.value || e) {
|
|
705
|
+
let e = L.value ? "model" : "initial";
|
|
706
|
+
if (e === "initial" && Pr(), await Di(M.value, e, w.modelValue) !== "applied") return;
|
|
707
|
+
hi() && O.value?.blur();
|
|
699
708
|
}
|
|
700
|
-
}, { debounce:
|
|
701
|
-
if (
|
|
702
|
-
let e =
|
|
703
|
-
if (!
|
|
704
|
-
let t =
|
|
705
|
-
|
|
706
|
-
}, { debounce:
|
|
707
|
-
let
|
|
708
|
-
let t =
|
|
709
|
-
if (!
|
|
710
|
-
K.delete(e.valueHash),
|
|
711
|
-
},
|
|
712
|
-
let t =
|
|
713
|
-
if (!
|
|
714
|
-
|
|
709
|
+
}, { debounce: w.modelValueDebounceTime }), de(() => [w.dependencies, w.items], async () => {
|
|
710
|
+
if (zi.value === Vi && typeof w.items == "function") return;
|
|
711
|
+
let e = Tr.value && w.enforceCoherence && hr.value;
|
|
712
|
+
if (!Mr.value && !e) return;
|
|
713
|
+
let t = L.value || Tr.value ? "dependencies" : "initial";
|
|
714
|
+
L.value || Pr(), await Di(M.value, t, w.modelValue) === "applied" && (ei(new Set(Object.keys(R.value))), hi() && O.value?.blur());
|
|
715
|
+
}, { debounce: w.depsDebounceTime });
|
|
716
|
+
let Ui = async (e) => {
|
|
717
|
+
let t = xn();
|
|
718
|
+
if (!w.multiple) for (let e of Object.keys(R.value)) K.add(e);
|
|
719
|
+
K.delete(e.valueHash), w.multiple ? (T("update:modelValue", [...w.modelValue, e.value]), w.stash && fr(e.item)) : (w.stash && mr(e.item), T("update:modelValue", e.value), await mt()), w.multiple && k.value && Y.value ? t && vn() : j(), w.multiple || $();
|
|
720
|
+
}, Wi = async (e) => {
|
|
721
|
+
let t = xn();
|
|
722
|
+
if (!w.multiple) {
|
|
723
|
+
na?.() && xa(), j(), $();
|
|
715
724
|
return;
|
|
716
725
|
}
|
|
717
|
-
|
|
726
|
+
ai() && (K.add(e.valueHash), si(e.valueHash));
|
|
718
727
|
let n = { ...R.value };
|
|
719
|
-
delete n[e.valueHash],
|
|
720
|
-
},
|
|
721
|
-
let e =
|
|
728
|
+
delete n[e.valueHash], T("update:modelValue", Object.values(n)), k.value && Y.value ? t && vn() : j();
|
|
729
|
+
}, Gi = d(() => {
|
|
730
|
+
let e = ne(w.itemProps, "description");
|
|
722
731
|
return e === void 0 ? G.value.some((e) => e.description !== void 0) : e;
|
|
723
|
-
}),
|
|
732
|
+
}), Ki = d(() => {
|
|
724
733
|
if (Z.value) {
|
|
725
734
|
if (!H.value.length) return [];
|
|
726
735
|
let e = new Set(H.value.map(({ valueHash: e }) => e));
|
|
727
736
|
return G.value.filter((t) => e.has(t.valueHash));
|
|
728
737
|
}
|
|
729
|
-
if (!
|
|
730
|
-
let e =
|
|
731
|
-
return Array.isArray(
|
|
732
|
-
}),
|
|
733
|
-
if (
|
|
734
|
-
if (!
|
|
735
|
-
},
|
|
736
|
-
let e =
|
|
737
|
-
return
|
|
738
|
-
let a =
|
|
739
|
-
|
|
740
|
-
id:
|
|
741
|
-
data:
|
|
738
|
+
if (!M.value || !w.multiple && q.value.some((e) => e.text === M.value) || w.filterBy === !1) return G.value;
|
|
739
|
+
let e = w.filterBy;
|
|
740
|
+
return Array.isArray(e) && e.length ? oe(G.value, (t) => ae(t.item, e), M.value) : oe(G.value, (e) => ae(e, e.description == null ? ["text"] : ["text", "description"]), M.value);
|
|
741
|
+
}), qi = Symbol("default"), Ji = (e) => {
|
|
742
|
+
if (ie(w.groupBy)) return qi;
|
|
743
|
+
if (!P(e.item)) return typeof w.groupBy == "function" ? w.groupBy(e.item) : a(e.item, w.groupBy);
|
|
744
|
+
}, Yi = d(() => {
|
|
745
|
+
let e = M.value ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([...H.value.map(({ valueHash: e }) => e).filter((e) => Z.value || !Wr.value.has(e)), ...Jr.value ? Zr.value.map(Sr) : []]), t = [], n = {}, r = new Map(G.value.map((e, t) => [e.valueHash, t]));
|
|
746
|
+
return Ki.value.forEach((i) => {
|
|
747
|
+
let a = r.get(i.valueHash) ?? Infinity, s = Ji(i), c = o(s), l = n[c];
|
|
748
|
+
l || (l = n[c] = {
|
|
749
|
+
id: c,
|
|
750
|
+
data: s ?? null,
|
|
742
751
|
options: [],
|
|
743
752
|
pinnedOptions: [],
|
|
744
753
|
firstListed: Infinity
|
|
745
|
-
}, t.push(
|
|
754
|
+
}, t.push(l)), e.has(i.valueHash) ? l.pinnedOptions.push(i) : (l.options.push(i), l.firstListed = Math.min(l.firstListed, a));
|
|
746
755
|
}), t.map((e, t) => ({
|
|
747
756
|
group: e,
|
|
748
757
|
order: t
|
|
@@ -751,304 +760,309 @@ var Tt = {
|
|
|
751
760
|
data: t,
|
|
752
761
|
options: [...r, ...n]
|
|
753
762
|
})).filter((e) => e.options.length);
|
|
754
|
-
}), Y =
|
|
755
|
-
|
|
756
|
-
let
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
763
|
+
}), Y = v(!1);
|
|
764
|
+
x(Y, (e) => Jr.value = e, { flush: "sync" });
|
|
765
|
+
let Xi = Re(Y), Zi = ze(Y, () => w.transitionDuration), Qi = Ne("BbSelectPopover", w, {
|
|
766
|
+
adaptive: !0,
|
|
767
|
+
compact: !1
|
|
768
|
+
}), $i = () => Qi.adaptive && Zt.value ? "canvas" : "popover", ea = v($i()), X = d(() => ea.value === "canvas");
|
|
769
|
+
x([
|
|
770
|
+
() => Qi.adaptive,
|
|
771
|
+
Zt,
|
|
760
772
|
Y
|
|
761
773
|
], () => {
|
|
762
|
-
Y.value || (
|
|
763
|
-
}),
|
|
764
|
-
let
|
|
765
|
-
be(null)
|
|
774
|
+
Y.value || (ea.value = $i());
|
|
775
|
+
}), Ae(X);
|
|
776
|
+
let ta = xe();
|
|
777
|
+
be(null);
|
|
778
|
+
let na = Ce();
|
|
779
|
+
Se(null), pe({
|
|
766
780
|
active: () => Y.value && X.value,
|
|
767
|
-
input: () =>
|
|
781
|
+
input: () => Ut.value
|
|
768
782
|
});
|
|
769
|
-
let
|
|
770
|
-
onShow: () =>
|
|
771
|
-
onShown: () =>
|
|
772
|
-
onHide: () =>
|
|
773
|
-
onHidden: () =>
|
|
774
|
-
},
|
|
775
|
-
...
|
|
783
|
+
let ra = {
|
|
784
|
+
onShow: () => T("show"),
|
|
785
|
+
onShown: () => T("shown"),
|
|
786
|
+
onHide: () => T("hide"),
|
|
787
|
+
onHidden: () => T("hidden")
|
|
788
|
+
}, ia = {
|
|
789
|
+
...ra,
|
|
776
790
|
onHidden: () => {
|
|
777
|
-
|
|
791
|
+
pa(), T("hidden");
|
|
778
792
|
}
|
|
779
|
-
},
|
|
793
|
+
}, aa = d(() => ({
|
|
780
794
|
side: "bottom",
|
|
781
795
|
size: "auto",
|
|
782
796
|
draggable: !0,
|
|
783
797
|
focusTarget: ".bb-select-popover--sheet",
|
|
784
798
|
hideClose: !0,
|
|
785
|
-
transitionDuration:
|
|
786
|
-
...
|
|
787
|
-
...
|
|
788
|
-
})),
|
|
789
|
-
|
|
790
|
-
Z.value = !1, W && (W = !1,
|
|
791
|
-
let e =
|
|
792
|
-
|
|
799
|
+
transitionDuration: w.transitionDuration,
|
|
800
|
+
...w.offCanvasProps?.title ? {} : { "aria-label": Ea.value },
|
|
801
|
+
...tt(w.offCanvasProps)
|
|
802
|
+
})), oa = !1, Z = v(!1);
|
|
803
|
+
x(sr, () => {
|
|
804
|
+
Z.value = !1, W && (W = !1, $r());
|
|
805
|
+
let e = or();
|
|
806
|
+
sa && Y.value && !M.value && e?.[0] === "" && N.value === null && (sa = !1, Qr({ keepSticky: !1 }));
|
|
793
807
|
});
|
|
794
|
-
let
|
|
795
|
-
|
|
796
|
-
Y.value && t && !e && (
|
|
797
|
-
}),
|
|
798
|
-
Q = !1, Y.value &&
|
|
808
|
+
let sa = !1;
|
|
809
|
+
x(M, (e, t) => {
|
|
810
|
+
Y.value && t && !e && (sa = !0);
|
|
811
|
+
}), x(M, () => {
|
|
812
|
+
Q = !1, Y.value && O.value?.scrollToTop();
|
|
799
813
|
}, { flush: "post" });
|
|
800
|
-
let Q = !1,
|
|
814
|
+
let Q = !1, ca = () => {
|
|
801
815
|
Q = !1;
|
|
802
816
|
};
|
|
803
|
-
|
|
804
|
-
Q && Y.value && !
|
|
817
|
+
x(sr, async () => {
|
|
818
|
+
Q && Y.value && !M.value && or()?.[0] === "" && (Q = !1, await mt(), Y.value && O.value?.scrollToSelected());
|
|
805
819
|
}, { flush: "post" });
|
|
806
|
-
let
|
|
807
|
-
if (
|
|
820
|
+
let la = () => {
|
|
821
|
+
if (ur(), typeof w.items != "function") return;
|
|
808
822
|
let e = (e) => !!e?.[0];
|
|
809
|
-
(e(
|
|
810
|
-
},
|
|
811
|
-
if (!
|
|
812
|
-
let e =
|
|
813
|
-
|
|
814
|
-
e === "applied" &&
|
|
823
|
+
(e(or()) || cr() && e(ar())) && (oa = !0, lr());
|
|
824
|
+
}, ua = () => {
|
|
825
|
+
if (!oa && !ki) return;
|
|
826
|
+
let e = ki ? "initial" : "reopen";
|
|
827
|
+
oa = !1, ki = !1, Pr(), Z.value = !0, kr.value || Di("", e, w.modelValue).then((e) => {
|
|
828
|
+
e === "applied" && hi();
|
|
815
829
|
});
|
|
816
|
-
},
|
|
817
|
-
if (
|
|
818
|
-
|
|
819
|
-
let t = !
|
|
820
|
-
await
|
|
821
|
-
},
|
|
822
|
-
await
|
|
823
|
-
let e =
|
|
830
|
+
}, da = async ({ focusPopoverContent: e = !0 } = {}) => {
|
|
831
|
+
if (w.disabled || w.readonly || Y.value) return;
|
|
832
|
+
ea.value = $i(), nn.value = tn(), Zn.value = !0, ua(), Qr(), Q = typeof w.items == "function" && !kr.value && (Z.value || cr() || !L.value), Y.value = !0;
|
|
833
|
+
let t = !L.value && !jr.value && !kr.value ? Nr() : void 0;
|
|
834
|
+
await fa(e), await t;
|
|
835
|
+
}, fa = async (e) => {
|
|
836
|
+
await mt(), Y.value && (X.value || (dn = !0, fn(), he(Yn, { element: () => {
|
|
837
|
+
let e = O.value?.$el;
|
|
824
838
|
return e instanceof Element ? e.closest(".bb-common-popover") : null;
|
|
825
|
-
} }), document.addEventListener("click",
|
|
839
|
+
} }), document.addEventListener("click", On, { capture: !0 }), document.addEventListener("focusin", On, { capture: !0 }), document.addEventListener("keydown", Xn, { capture: !0 }), e && (await Be(0), Y.value && (k.value ? vn() : yn()))));
|
|
826
840
|
}, $ = async () => {
|
|
827
|
-
Y.value && (Y.value = !1,
|
|
828
|
-
},
|
|
829
|
-
|
|
830
|
-
},
|
|
831
|
-
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
},
|
|
841
|
+
Y.value && (Y.value = !1, O.value?.blur(), Kt.value = void 0, M.value = "", Q = !1, la(), H.value = [], K.clear(), sa = !1, W = !1, ii(), X.value || (Gt.value?.$el.contains(document.activeElement) && D.value?.focus({ preventScroll: !0 }), pn(), ge(Yn), document.removeEventListener("click", On, { capture: !0 }), document.removeEventListener("focusin", On, { capture: !0 }), document.removeEventListener("keydown", Xn, { capture: !0 })));
|
|
842
|
+
}, pa = () => {
|
|
843
|
+
O.value?.blur(), Kt.value = void 0, M.value = "", Q = !1, la(), H.value = [], K.clear(), sa = !1, W = !1, ii(), _a(), j();
|
|
844
|
+
}, ma = () => Y.value ? $() : da(), ha = v(!1), ga = () => {
|
|
845
|
+
ha.value || (ha.value = !0, T("active"));
|
|
846
|
+
}, _a = () => {
|
|
847
|
+
ha.value && (ha.value = !1, T("inactive"));
|
|
848
|
+
}, va = (e) => {
|
|
835
849
|
if (!(e instanceof Node)) return !1;
|
|
836
|
-
let t = !!
|
|
850
|
+
let t = !!D.value?.contains(e), n = O.value?.$el, r = n instanceof Element && !!n.closest(".bb-common-popover")?.contains(e);
|
|
837
851
|
return t || r;
|
|
838
|
-
},
|
|
839
|
-
clearTimeout(
|
|
840
|
-
Y.value ||
|
|
852
|
+
}, ya, ba = () => {
|
|
853
|
+
clearTimeout(ya), ya = setTimeout(() => {
|
|
854
|
+
Y.value || va(document.activeElement) ? ga() : _a();
|
|
841
855
|
}, 0);
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
},
|
|
856
|
+
}, xa = () => {
|
|
857
|
+
oi(Fr.value), T("update:modelValue", w.multiple ? [] : null);
|
|
858
|
+
}, Sa = () => {
|
|
859
|
+
M.value = "", xa();
|
|
860
|
+
}, Ca = d(() => !J.value && (w.groupBy ? Yi.value.every((e) => !e.options.length) : !Ki.value.length)), wa = d(() => ({
|
|
847
861
|
close: $,
|
|
848
|
-
clear:
|
|
849
|
-
empty:
|
|
850
|
-
focus:
|
|
851
|
-
query:
|
|
852
|
-
selectedOptions:
|
|
853
|
-
titleId: `${
|
|
854
|
-
})),
|
|
855
|
-
|
|
856
|
-
e && (
|
|
862
|
+
clear: xa,
|
|
863
|
+
empty: Ca.value,
|
|
864
|
+
focus: bn,
|
|
865
|
+
query: M.value,
|
|
866
|
+
selectedOptions: vi.value,
|
|
867
|
+
titleId: `${A}_title`
|
|
868
|
+
})), Ta = null, Ea = v();
|
|
869
|
+
x(Y, (e) => {
|
|
870
|
+
e && (Ea.value = i(D.value));
|
|
857
871
|
}, {
|
|
858
872
|
immediate: !0,
|
|
859
873
|
flush: "sync"
|
|
860
874
|
});
|
|
861
|
-
let
|
|
862
|
-
let e =
|
|
875
|
+
let Da = d(() => {
|
|
876
|
+
let e = D.value;
|
|
863
877
|
return e ? e.hasAttribute("aria-label") || e.hasAttribute("aria-labelledby") : !1;
|
|
864
|
-
}),
|
|
865
|
-
return
|
|
866
|
-
if (
|
|
878
|
+
}), Oa = d(() => an("select.triggerLabel").value), ka = v(), Aa = v();
|
|
879
|
+
return x(D, (e) => {
|
|
880
|
+
if (Ta &&= (Ta(), null), !e) return;
|
|
867
881
|
e.setAttribute("role", "combobox"), e.setAttribute("aria-haspopup", "listbox");
|
|
868
882
|
let t = !e.id;
|
|
869
|
-
t && (e.id = `${
|
|
870
|
-
let n =
|
|
871
|
-
|
|
883
|
+
t && (e.id = `${A}_activator`);
|
|
884
|
+
let n = Da.value, r = async (e) => {
|
|
885
|
+
T("click", e), w.disabled || (e.preventDefault(), w.readonly ? j() : Y.value ? (await $(), j()) : await da());
|
|
872
886
|
}, i = (e) => {
|
|
873
|
-
|
|
887
|
+
w.readonly && !w.disabled && (e.preventDefault(), ga(), j());
|
|
874
888
|
}, a = (e) => {
|
|
875
889
|
switch (e.key) {
|
|
876
890
|
case "ArrowDown":
|
|
877
|
-
e.preventDefault(),
|
|
891
|
+
e.preventDefault(), Rn();
|
|
878
892
|
break;
|
|
879
893
|
case "ArrowUp":
|
|
880
|
-
e.preventDefault(),
|
|
894
|
+
e.preventDefault(), Ln();
|
|
881
895
|
break;
|
|
882
896
|
case "Home":
|
|
883
|
-
e.preventDefault(),
|
|
897
|
+
e.preventDefault(), Bn();
|
|
884
898
|
break;
|
|
885
899
|
case "End":
|
|
886
|
-
e.preventDefault(),
|
|
900
|
+
e.preventDefault(), Vn();
|
|
887
901
|
break;
|
|
888
902
|
default:
|
|
889
|
-
|
|
903
|
+
Wn(e);
|
|
890
904
|
break;
|
|
891
905
|
case "Enter":
|
|
892
|
-
e.preventDefault(),
|
|
906
|
+
e.preventDefault(), Gn();
|
|
893
907
|
break;
|
|
894
|
-
case "Escape": Y.value && (e.preventDefault(),
|
|
908
|
+
case "Escape": Y.value && (e.preventDefault(), Kn());
|
|
895
909
|
}
|
|
896
910
|
}, o = (e) => {
|
|
897
|
-
|
|
911
|
+
T("focus", e), ga();
|
|
898
912
|
}, s = (e) => {
|
|
899
|
-
|
|
913
|
+
T("blur", e), ba();
|
|
900
914
|
};
|
|
901
|
-
e.addEventListener("click", r), e.addEventListener("pointerdown", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("blur", s),
|
|
915
|
+
e.addEventListener("click", r), e.addEventListener("pointerdown", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("blur", s), Ta = () => {
|
|
902
916
|
e.removeEventListener("click", r), e.removeEventListener("pointerdown", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("blur", s), e.removeAttribute("role"), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), e.removeAttribute("aria-activedescendant"), n || e.removeAttribute("aria-label"), t && e.removeAttribute("id");
|
|
903
917
|
};
|
|
904
|
-
}, { immediate: !0 }),
|
|
905
|
-
|
|
918
|
+
}, { immediate: !0 }), x([
|
|
919
|
+
D,
|
|
906
920
|
Y,
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
921
|
+
Xi,
|
|
922
|
+
ln,
|
|
923
|
+
un,
|
|
924
|
+
Kt,
|
|
925
|
+
Da,
|
|
926
|
+
Oa
|
|
913
927
|
], ([e, t, n, r, i, a, o, s]) => {
|
|
914
|
-
e && (e.setAttribute("aria-expanded", String(t)), o || e.setAttribute("aria-label", s),
|
|
915
|
-
}, { immediate: !0 }),
|
|
916
|
-
clearTimeout(
|
|
917
|
-
}),
|
|
928
|
+
e && (e.setAttribute("aria-expanded", String(t)), o || e.setAttribute("aria-label", s), ka.value = e.getAttribute("aria-labelledby") ?? void 0, Aa.value = e.getAttribute("aria-label") ?? void 0, r == null ? e.removeAttribute("aria-invalid") : e.setAttribute("aria-invalid", r), n ? e.setAttribute("aria-controls", `${A}_listbox`) : e.removeAttribute("aria-controls"), i == null ? e.removeAttribute("aria-describedby") : e.setAttribute("aria-describedby", i), t && a ? e.setAttribute("aria-activedescendant", a) : e.removeAttribute("aria-activedescendant"));
|
|
929
|
+
}, { immediate: !0 }), gt(() => {
|
|
930
|
+
clearTimeout(ya), Ta?.(), An.abort(), ge(Yn), document.removeEventListener("click", On, { capture: !0 }), document.removeEventListener("focusin", On, { capture: !0 }), document.removeEventListener("keydown", Xn, { capture: !0 });
|
|
931
|
+
}), _t(() => {
|
|
918
932
|
$();
|
|
919
|
-
}), (t, n) => (
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
props: { ref:
|
|
933
|
+
}), (t, n) => (_(), f(ot, null, [
|
|
934
|
+
p(b(ye), { value: b(ir) }, null, 8, ["value"]),
|
|
935
|
+
Yt.value ? ct("", !0) : y(t.$slots, "activator", g(m({
|
|
936
|
+
props: { ref: Xt },
|
|
923
937
|
shown: Y.value,
|
|
924
|
-
disabled:
|
|
925
|
-
readonly:
|
|
938
|
+
disabled: u.disabled,
|
|
939
|
+
readonly: u.readonly,
|
|
926
940
|
loading: J.value,
|
|
927
|
-
query:
|
|
928
|
-
selectedOptions:
|
|
929
|
-
text:
|
|
930
|
-
clear:
|
|
931
|
-
focus:
|
|
932
|
-
open:
|
|
941
|
+
query: M.value,
|
|
942
|
+
selectedOptions: vi.value,
|
|
943
|
+
text: Ci.value,
|
|
944
|
+
clear: xa,
|
|
945
|
+
focus: bn,
|
|
946
|
+
open: da,
|
|
933
947
|
close: $,
|
|
934
|
-
toggle:
|
|
948
|
+
toggle: ma
|
|
935
949
|
})), void 0, void 0, 0),
|
|
936
|
-
|
|
937
|
-
default:
|
|
938
|
-
|
|
939
|
-
id: `${
|
|
950
|
+
p(b(zt), null, {
|
|
951
|
+
default: S(() => [k.value ? (_(), f("div", kt, [
|
|
952
|
+
Ct(lt("input", h({
|
|
953
|
+
id: `${b(A)}_search`,
|
|
940
954
|
ref_key: "searchInput",
|
|
941
|
-
ref:
|
|
942
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
943
|
-
"aria-activedescendant":
|
|
944
|
-
"aria-controls":
|
|
945
|
-
"aria-describedby":
|
|
946
|
-
"aria-invalid":
|
|
947
|
-
"aria-label":
|
|
948
|
-
autocomplete:
|
|
955
|
+
ref: Ut,
|
|
956
|
+
"onUpdate:modelValue": n[0] ||= (e) => M.value = e,
|
|
957
|
+
"aria-activedescendant": Kt.value,
|
|
958
|
+
"aria-controls": b(Xi) ? `${b(A)}_listbox` : void 0,
|
|
959
|
+
"aria-describedby": un.value,
|
|
960
|
+
"aria-invalid": ln.value,
|
|
961
|
+
"aria-label": on.value,
|
|
962
|
+
autocomplete: u.autocomplete,
|
|
949
963
|
class: "bb-select-popover__input",
|
|
950
|
-
inputmode:
|
|
951
|
-
placeholder:
|
|
964
|
+
inputmode: rn.value,
|
|
965
|
+
placeholder: on.value,
|
|
952
966
|
role: "searchbox",
|
|
953
967
|
tabindex: Y.value ? 0 : -1,
|
|
954
968
|
type: "text",
|
|
955
|
-
onBlur:
|
|
956
|
-
onChange:
|
|
957
|
-
onFocus:
|
|
958
|
-
onInput:
|
|
959
|
-
onKeydown:
|
|
960
|
-
},
|
|
961
|
-
|
|
969
|
+
onBlur: C(Cn, ["stop"]),
|
|
970
|
+
onChange: C(wn, ["stop"]),
|
|
971
|
+
onFocus: C(Sn, ["stop"]),
|
|
972
|
+
onInput: C(En, ["stop"]),
|
|
973
|
+
onKeydown: Jn
|
|
974
|
+
}, b(E).input), null, 16, At), [[St, M.value]]),
|
|
975
|
+
p(Ke, {
|
|
962
976
|
"aria-hidden": "true",
|
|
963
977
|
class: "bb-select-popover__search-error-icon",
|
|
964
978
|
focusable: "false"
|
|
965
979
|
}),
|
|
966
|
-
|
|
980
|
+
p(qe, {
|
|
967
981
|
"aria-hidden": "true",
|
|
968
982
|
class: "bb-select-popover__search-warning-icon",
|
|
969
983
|
focusable: "false"
|
|
970
984
|
}),
|
|
971
|
-
|
|
985
|
+
p(He, {
|
|
972
986
|
"aria-hidden": "true",
|
|
973
987
|
class: "bb-select-popover__search-icon",
|
|
974
988
|
focusable: "false",
|
|
975
|
-
icon:
|
|
989
|
+
icon: b(Je)
|
|
976
990
|
}, null, 8, ["icon"]),
|
|
977
|
-
|
|
991
|
+
u.clearable ? (_(), st(We, h({
|
|
978
992
|
key: 0,
|
|
979
993
|
class: "bb-select-popover__clear",
|
|
980
|
-
tabindex:
|
|
981
|
-
onClick:
|
|
982
|
-
onMousedown: n[1] ||=
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
])) : (
|
|
994
|
+
tabindex: sn.value && Y.value ? 0 : -1,
|
|
995
|
+
onClick: C(Sa, ["stop"]),
|
|
996
|
+
onMousedown: n[1] ||= C(() => {}, ["prevent"])
|
|
997
|
+
}, b(E).clear), null, 16, ["tabindex"])) : ct("", !0),
|
|
998
|
+
yi.value ? (_(), f("div", jt)) : ct("", !0)
|
|
999
|
+
])) : (_(), f("button", {
|
|
986
1000
|
key: 1,
|
|
987
1001
|
ref_key: "popoverFocusProxy",
|
|
988
|
-
ref:
|
|
989
|
-
"aria-activedescendant":
|
|
990
|
-
"aria-controls": `${
|
|
991
|
-
"aria-describedby":
|
|
1002
|
+
ref: Wt,
|
|
1003
|
+
"aria-activedescendant": Kt.value,
|
|
1004
|
+
"aria-controls": `${b(A)}_listbox`,
|
|
1005
|
+
"aria-describedby": un.value,
|
|
992
1006
|
"aria-expanded": Y.value,
|
|
993
|
-
"aria-invalid":
|
|
994
|
-
"aria-label":
|
|
1007
|
+
"aria-invalid": ln.value,
|
|
1008
|
+
"aria-label": on.value,
|
|
995
1009
|
class: "bb-select-popover__focus-proxy bb-sr-only",
|
|
996
1010
|
role: "combobox",
|
|
997
1011
|
tabindex: "-1",
|
|
998
1012
|
type: "button",
|
|
999
|
-
onFocus:
|
|
1013
|
+
onFocus: Tn,
|
|
1000
1014
|
onKeydown: [
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1015
|
+
Wn,
|
|
1016
|
+
wt(C(Rn, ["stop", "prevent"]), ["down"]),
|
|
1017
|
+
wt(C(Vn, ["stop", "prevent"]), ["end"]),
|
|
1018
|
+
wt(C(Gn, ["stop", "prevent"]), ["enter"]),
|
|
1019
|
+
wt(C(Kn, ["stop", "prevent"]), ["esc"]),
|
|
1020
|
+
wt(C(Bn, ["stop", "prevent"]), ["home"]),
|
|
1021
|
+
wt(C(Ln, ["stop", "prevent"]), ["up"])
|
|
1008
1022
|
]
|
|
1009
|
-
}, null, 40,
|
|
1023
|
+
}, null, 40, Mt))]),
|
|
1010
1024
|
_: 1
|
|
1011
1025
|
}),
|
|
1012
|
-
|
|
1013
|
-
default:
|
|
1014
|
-
id: `${
|
|
1026
|
+
p(b(Vt), null, {
|
|
1027
|
+
default: S(() => [p(Ye, {
|
|
1028
|
+
id: `${b(A)}_listbox`,
|
|
1015
1029
|
ref_key: "optionsContainer",
|
|
1016
|
-
ref:
|
|
1017
|
-
compact:
|
|
1018
|
-
described:
|
|
1019
|
-
"empty-text":
|
|
1020
|
-
"failed-text":
|
|
1021
|
-
groups:
|
|
1022
|
-
"header-height":
|
|
1023
|
-
"list-label": X.value ?
|
|
1024
|
-
"list-labelledby": X.value ? void 0 :
|
|
1030
|
+
ref: O,
|
|
1031
|
+
compact: b(Qi).compact,
|
|
1032
|
+
described: Gi.value,
|
|
1033
|
+
"empty-text": Ar.value,
|
|
1034
|
+
"failed-text": b(N) === null ? void 0 : Ar.value,
|
|
1035
|
+
groups: u.groupBy ? Yi.value : void 0,
|
|
1036
|
+
"header-height": u.headerHeight,
|
|
1037
|
+
"list-label": X.value ? Ea.value : Aa.value,
|
|
1038
|
+
"list-labelledby": X.value ? void 0 : ka.value,
|
|
1025
1039
|
loading: J.value,
|
|
1026
|
-
"loading-below":
|
|
1027
|
-
"loading-text":
|
|
1028
|
-
multiple:
|
|
1040
|
+
"loading-below": bi.value,
|
|
1041
|
+
"loading-text": u.loadingText,
|
|
1042
|
+
multiple: u.multiple,
|
|
1029
1043
|
open: Y.value,
|
|
1030
|
-
"option-height":
|
|
1031
|
-
options:
|
|
1032
|
-
passthrough:
|
|
1033
|
-
"onFocused:change":
|
|
1034
|
-
"onOption:selected":
|
|
1035
|
-
"onOption:unselected":
|
|
1036
|
-
onPointerdown:
|
|
1037
|
-
onTouchmovePassive:
|
|
1038
|
-
onWheelPassive:
|
|
1039
|
-
},
|
|
1040
|
-
loading:
|
|
1041
|
-
empty:
|
|
1044
|
+
"option-height": u.itemHeight,
|
|
1045
|
+
options: u.groupBy ? void 0 : Ki.value,
|
|
1046
|
+
passthrough: b(E),
|
|
1047
|
+
"onFocused:change": Dn,
|
|
1048
|
+
"onOption:selected": Ui,
|
|
1049
|
+
"onOption:unselected": Wi,
|
|
1050
|
+
onPointerdown: ca,
|
|
1051
|
+
onTouchmovePassive: ca,
|
|
1052
|
+
onWheelPassive: ca
|
|
1053
|
+
}, ut({
|
|
1054
|
+
loading: S(() => [y(t.$slots, "loading", { query: M.value })]),
|
|
1055
|
+
empty: S(() => [y(t.$slots, "empty", {
|
|
1042
1056
|
close: $,
|
|
1043
|
-
error:
|
|
1044
|
-
focus:
|
|
1045
|
-
query:
|
|
1057
|
+
error: b(N),
|
|
1058
|
+
focus: bn,
|
|
1059
|
+
query: M.value
|
|
1046
1060
|
})]),
|
|
1047
|
-
group:
|
|
1061
|
+
group: S((e) => [y(t.$slots, "group", g(m(e)))]),
|
|
1048
1062
|
_: 2
|
|
1049
1063
|
}, [t.$slots.option ? {
|
|
1050
1064
|
name: "option",
|
|
1051
|
-
fn:
|
|
1065
|
+
fn: S((e) => [y(t.$slots, "option", g(m(ci(e))))]),
|
|
1052
1066
|
key: "0"
|
|
1053
1067
|
} : void 0]), 1032, [
|
|
1054
1068
|
"id",
|
|
@@ -1071,90 +1085,90 @@ var Tt = {
|
|
|
1071
1085
|
])]),
|
|
1072
1086
|
_: 3
|
|
1073
1087
|
}),
|
|
1074
|
-
X.value ? (
|
|
1088
|
+
X.value ? (_(), st(Ue, h({
|
|
1075
1089
|
key: 1,
|
|
1076
1090
|
modelValue: Y.value,
|
|
1077
1091
|
"onUpdate:modelValue": n[3] ||= (e) => Y.value = e,
|
|
1078
1092
|
class: "bb-select-popover__sheet",
|
|
1079
|
-
pt:
|
|
1093
|
+
pt: b(E).forward({
|
|
1080
1094
|
header: "header",
|
|
1081
1095
|
footer: "footer",
|
|
1082
1096
|
panel: "root",
|
|
1083
1097
|
sheet: "root"
|
|
1084
|
-
},
|
|
1085
|
-
},
|
|
1086
|
-
default:
|
|
1087
|
-
|
|
1098
|
+
}, b(Qe).states, () => u.offCanvasProps?.pt)
|
|
1099
|
+
}, h(aa.value, ia, b(e)(b(et)(t.$attrs)))), ut({
|
|
1100
|
+
default: S(() => [lt("div", g(m(gn.value)), [
|
|
1101
|
+
u.multiple && gi.value.length ? (_(), f("div", Nt, [lt("div", Pt, [(_(!0), f(ot, null, vt(gi.value, (e) => (_(), st(Ve, h({
|
|
1088
1102
|
key: e.valueHash,
|
|
1089
1103
|
class: "bb-select-popover__sheet-chip",
|
|
1090
|
-
clearable: !
|
|
1104
|
+
clearable: !u.disabled && !u.readonly,
|
|
1091
1105
|
size: "xl",
|
|
1092
1106
|
variant: "secondary"
|
|
1093
|
-
}, { ref_for: !0 }, e.unresolved ? void 0 :
|
|
1094
|
-
"onClick:clear": (t) =>
|
|
1095
|
-
onMousedown: n[2] ||=
|
|
1107
|
+
}, { ref_for: !0 }, e.unresolved ? void 0 : b(ta)?.(e.item), {
|
|
1108
|
+
"onClick:clear": (t) => Wi(e),
|
|
1109
|
+
onMousedown: n[2] ||= C(() => {}, ["prevent"])
|
|
1096
1110
|
}), {
|
|
1097
|
-
default:
|
|
1111
|
+
default: S(() => [dt(bt(e.text), 1)]),
|
|
1098
1112
|
_: 2
|
|
1099
|
-
}, 1040, ["clearable", "onClick:clear"]))), 128))])])) :
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
default:
|
|
1113
|
+
}, 1040, ["clearable", "onClick:clear"]))), 128))])])) : ct("", !0),
|
|
1114
|
+
p(b(Bt)),
|
|
1115
|
+
p(nt, null, {
|
|
1116
|
+
default: S(() => [p(b(Ht))]),
|
|
1103
1117
|
_: 1
|
|
1104
1118
|
})
|
|
1105
1119
|
], 16)]),
|
|
1106
1120
|
_: 2
|
|
1107
1121
|
}, [t.$slots.header ? {
|
|
1108
1122
|
name: "header",
|
|
1109
|
-
fn:
|
|
1110
|
-
...
|
|
1123
|
+
fn: S(({ titleId: e }) => [y(t.$slots, "header", g(m({
|
|
1124
|
+
...wa.value,
|
|
1111
1125
|
titleId: e
|
|
1112
1126
|
})))]),
|
|
1113
1127
|
key: "0"
|
|
1114
1128
|
} : void 0, t.$slots.footer ? {
|
|
1115
1129
|
name: "footer",
|
|
1116
|
-
fn:
|
|
1130
|
+
fn: S(() => [y(t.$slots, "footer", g(m(wa.value)))]),
|
|
1117
1131
|
key: "1"
|
|
1118
|
-
} : void 0]), 1040, ["modelValue", "pt"])) : (
|
|
1132
|
+
} : void 0]), 1040, ["modelValue", "pt"])) : (_(), st(Ge, h({
|
|
1119
1133
|
key: 2,
|
|
1120
1134
|
ref_key: "popoverSurface",
|
|
1121
|
-
ref:
|
|
1135
|
+
ref: Gt,
|
|
1122
1136
|
modelValue: Y.value,
|
|
1123
1137
|
"onUpdate:modelValue": n[4] ||= (e) => Y.value = e,
|
|
1124
|
-
anchor:
|
|
1125
|
-
"aria-hidden":
|
|
1126
|
-
boundary:
|
|
1127
|
-
"bubble-attrs":
|
|
1138
|
+
anchor: qt.value,
|
|
1139
|
+
"aria-hidden": b(Zi) || void 0,
|
|
1140
|
+
boundary: u.boundary,
|
|
1141
|
+
"bubble-attrs": hn.value,
|
|
1128
1142
|
class: ["bb-select-popover", {
|
|
1129
|
-
"bb-select-popover--errors":
|
|
1130
|
-
"bb-select-popover--warnings":
|
|
1143
|
+
"bb-select-popover--errors": xi.value,
|
|
1144
|
+
"bb-select-popover--warnings": Si.value,
|
|
1131
1145
|
"bb-select-popover--loading": J.value,
|
|
1132
|
-
"bb-select-popover--reloading":
|
|
1133
|
-
"bb-select-popover--clearable-active":
|
|
1134
|
-
"bb-select-popover--compact":
|
|
1146
|
+
"bb-select-popover--reloading": yi.value,
|
|
1147
|
+
"bb-select-popover--clearable-active": sn.value,
|
|
1148
|
+
"bb-select-popover--compact": b(Qi).compact
|
|
1135
1149
|
}],
|
|
1136
|
-
"disable-flip":
|
|
1150
|
+
"disable-flip": u.disableFlip,
|
|
1137
1151
|
"hide-arrow": "",
|
|
1138
|
-
offset:
|
|
1139
|
-
padding:
|
|
1140
|
-
placement:
|
|
1141
|
-
style:
|
|
1152
|
+
offset: u.offset ?? b(Lt)() ?? 4,
|
|
1153
|
+
padding: u.padding,
|
|
1154
|
+
placement: u.placement,
|
|
1155
|
+
style: _n.value,
|
|
1142
1156
|
tag: "span",
|
|
1143
|
-
"transition-duration":
|
|
1144
|
-
},
|
|
1145
|
-
default:
|
|
1146
|
-
t.$slots.header ? (
|
|
1157
|
+
"transition-duration": u.transitionDuration
|
|
1158
|
+
}, h(ra, t.$attrs, b(E).root)), {
|
|
1159
|
+
default: S(() => [
|
|
1160
|
+
t.$slots.header ? (_(), f("div", h({
|
|
1147
1161
|
key: 0,
|
|
1148
1162
|
class: "bb-select-popover__header",
|
|
1149
|
-
inert:
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
t.$slots.footer ? (
|
|
1163
|
+
inert: b(Zi)
|
|
1164
|
+
}, b(E).header), [y(t.$slots, "header", g(m(wa.value)))], 16, Ft)) : ct("", !0),
|
|
1165
|
+
p(b(Bt)),
|
|
1166
|
+
p(b(Ht)),
|
|
1167
|
+
t.$slots.footer ? (_(), f("div", h({
|
|
1154
1168
|
key: 1,
|
|
1155
1169
|
class: "bb-select-popover__footer",
|
|
1156
|
-
inert:
|
|
1157
|
-
},
|
|
1170
|
+
inert: b(Zi)
|
|
1171
|
+
}, b(E).footer), [y(t.$slots, "footer", g(m(wa.value)))], 16, It)) : ct("", !0)
|
|
1158
1172
|
]),
|
|
1159
1173
|
_: 3
|
|
1160
1174
|
}, 16, [
|
|
@@ -1174,4 +1188,4 @@ var Tt = {
|
|
|
1174
1188
|
], 64));
|
|
1175
1189
|
}
|
|
1176
1190
|
});
|
|
1177
|
-
export {
|
|
1191
|
+
export { w as default };
|