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