@nuxt/ui 4.4.0 → 4.5.1
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/.nuxt/ui.css +2 -0
- package/README.md +4 -1
- package/cli/package.json +1 -1
- package/cli/templates.mjs +5 -8
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.d.vue.ts +8 -7
- package/dist/runtime/components/Accordion.vue +12 -10
- package/dist/runtime/components/Accordion.vue.d.ts +8 -7
- package/dist/runtime/components/Alert.d.vue.ts +8 -7
- package/dist/runtime/components/Alert.vue +12 -10
- package/dist/runtime/components/Alert.vue.d.ts +8 -7
- package/dist/runtime/components/App.d.vue.ts +2 -1
- package/dist/runtime/components/App.vue.d.ts +2 -1
- package/dist/runtime/components/AuthForm.d.vue.ts +13 -12
- package/dist/runtime/components/AuthForm.vue +19 -17
- package/dist/runtime/components/AuthForm.vue.d.ts +13 -12
- package/dist/runtime/components/Avatar.d.vue.ts +2 -1
- package/dist/runtime/components/Avatar.vue +7 -5
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/AvatarGroup.d.vue.ts +2 -1
- package/dist/runtime/components/AvatarGroup.vue +6 -4
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Badge.d.vue.ts +7 -6
- package/dist/runtime/components/Badge.vue +8 -6
- package/dist/runtime/components/Badge.vue.d.ts +7 -6
- package/dist/runtime/components/Banner.d.vue.ts +7 -6
- package/dist/runtime/components/Banner.vue +12 -10
- package/dist/runtime/components/Banner.vue.d.ts +7 -6
- package/dist/runtime/components/BlogPost.d.vue.ts +14 -12
- package/dist/runtime/components/BlogPost.vue +16 -14
- package/dist/runtime/components/BlogPost.vue.d.ts +14 -12
- package/dist/runtime/components/BlogPosts.d.vue.ts +8 -4
- package/dist/runtime/components/BlogPosts.vue +5 -2
- package/dist/runtime/components/BlogPosts.vue.d.ts +8 -4
- package/dist/runtime/components/Breadcrumb.d.vue.ts +15 -14
- package/dist/runtime/components/Breadcrumb.vue +12 -10
- package/dist/runtime/components/Breadcrumb.vue.d.ts +15 -14
- package/dist/runtime/components/Button.d.vue.ts +7 -6
- package/dist/runtime/components/Button.vue +8 -6
- package/dist/runtime/components/Button.vue.d.ts +7 -6
- package/dist/runtime/components/Calendar.d.vue.ts +6 -5
- package/dist/runtime/components/Calendar.vue +15 -13
- package/dist/runtime/components/Calendar.vue.d.ts +6 -5
- package/dist/runtime/components/Card.d.vue.ts +4 -3
- package/dist/runtime/components/Card.vue +7 -5
- package/dist/runtime/components/Card.vue.d.ts +4 -3
- package/dist/runtime/components/Carousel.d.vue.ts +3 -2
- package/dist/runtime/components/Carousel.vue +13 -11
- package/dist/runtime/components/Carousel.vue.d.ts +3 -2
- package/dist/runtime/components/ChangelogVersion.d.vue.ts +17 -15
- package/dist/runtime/components/ChangelogVersion.vue +19 -17
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +17 -15
- package/dist/runtime/components/ChangelogVersions.d.vue.ts +6 -5
- package/dist/runtime/components/ChangelogVersions.vue +7 -5
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +6 -5
- package/dist/runtime/components/ChatMessage.d.vue.ts +6 -5
- package/dist/runtime/components/ChatMessage.vue +10 -8
- package/dist/runtime/components/ChatMessage.vue.d.ts +6 -5
- package/dist/runtime/components/ChatMessages.d.vue.ts +9 -8
- package/dist/runtime/components/ChatMessages.vue +16 -11
- package/dist/runtime/components/ChatMessages.vue.d.ts +9 -8
- package/dist/runtime/components/ChatPalette.d.vue.ts +3 -2
- package/dist/runtime/components/ChatPalette.vue +6 -4
- package/dist/runtime/components/ChatPalette.vue.d.ts +3 -2
- package/dist/runtime/components/ChatPrompt.d.vue.ts +3 -2
- package/dist/runtime/components/ChatPrompt.vue +9 -6
- package/dist/runtime/components/ChatPrompt.vue.d.ts +3 -2
- package/dist/runtime/components/ChatPromptSubmit.vue +5 -3
- package/dist/runtime/components/Checkbox.d.vue.ts +7 -6
- package/dist/runtime/components/Checkbox.vue +19 -12
- package/dist/runtime/components/Checkbox.vue.d.ts +7 -6
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +10 -9
- package/dist/runtime/components/CheckboxGroup.vue +9 -7
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +10 -9
- package/dist/runtime/components/Chip.d.vue.ts +3 -2
- package/dist/runtime/components/Chip.vue +5 -3
- package/dist/runtime/components/Chip.vue.d.ts +3 -2
- package/dist/runtime/components/Collapsible.d.vue.ts +4 -3
- package/dist/runtime/components/Collapsible.vue +5 -3
- package/dist/runtime/components/Collapsible.vue.d.ts +4 -3
- package/dist/runtime/components/ColorPicker.vue +10 -8
- package/dist/runtime/components/CommandPalette.d.vue.ts +23 -22
- package/dist/runtime/components/CommandPalette.vue +33 -31
- package/dist/runtime/components/CommandPalette.vue.d.ts +23 -22
- package/dist/runtime/components/Container.d.vue.ts +5 -1
- package/dist/runtime/components/Container.vue +5 -2
- package/dist/runtime/components/Container.vue.d.ts +5 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +19 -18
- package/dist/runtime/components/ContextMenu.vue +5 -3
- package/dist/runtime/components/ContextMenu.vue.d.ts +19 -18
- package/dist/runtime/components/ContextMenuContent.vue +1 -0
- package/dist/runtime/components/DashboardGroup.d.vue.ts +5 -1
- package/dist/runtime/components/DashboardGroup.vue +4 -1
- package/dist/runtime/components/DashboardGroup.vue.d.ts +5 -1
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +11 -10
- package/dist/runtime/components/DashboardNavbar.vue +10 -8
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +11 -10
- package/dist/runtime/components/DashboardPanel.d.vue.ts +7 -6
- package/dist/runtime/components/DashboardPanel.vue +6 -4
- package/dist/runtime/components/DashboardPanel.vue.d.ts +7 -6
- package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +5 -1
- package/dist/runtime/components/DashboardResizeHandle.vue +5 -2
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +5 -1
- package/dist/runtime/components/DashboardSearch.d.vue.ts +4 -3
- package/dist/runtime/components/DashboardSearch.vue +6 -3
- package/dist/runtime/components/DashboardSearch.vue.d.ts +4 -3
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSearchButton.vue +6 -4
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +25 -19
- package/dist/runtime/components/DashboardSidebar.vue +19 -15
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +25 -19
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +3 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue +4 -2
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +3 -0
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +3 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +4 -2
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +3 -0
- package/dist/runtime/components/DashboardToolbar.d.vue.ts +4 -3
- package/dist/runtime/components/DashboardToolbar.vue +6 -4
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +4 -3
- package/dist/runtime/components/Drawer.d.vue.ts +9 -8
- package/dist/runtime/components/Drawer.vue +16 -11
- package/dist/runtime/components/Drawer.vue.d.ts +9 -8
- package/dist/runtime/components/DropdownMenu.d.vue.ts +21 -19
- package/dist/runtime/components/DropdownMenu.vue +7 -5
- package/dist/runtime/components/DropdownMenu.vue.d.ts +21 -19
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +4 -3
- package/dist/runtime/components/DropdownMenuContent.vue +1 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -3
- package/dist/runtime/components/Editor.d.vue.ts +5 -3
- package/dist/runtime/components/Editor.vue +16 -4
- package/dist/runtime/components/Editor.vue.d.ts +5 -3
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +16 -3
- package/dist/runtime/components/EditorDragHandle.vue +17 -8
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +16 -3
- package/dist/runtime/components/EditorEmojiMenu.vue +1 -1
- package/dist/runtime/components/EditorMentionMenu.d.vue.ts +1 -1
- package/dist/runtime/components/EditorMentionMenu.vue +5 -2
- package/dist/runtime/components/EditorMentionMenu.vue.d.ts +1 -1
- package/dist/runtime/components/EditorSuggestionMenu.vue +1 -1
- package/dist/runtime/components/EditorToolbar.d.vue.ts +3 -2
- package/dist/runtime/components/EditorToolbar.vue +10 -7
- package/dist/runtime/components/EditorToolbar.vue.d.ts +3 -2
- package/dist/runtime/components/Empty.d.vue.ts +9 -8
- package/dist/runtime/components/Empty.vue +11 -9
- package/dist/runtime/components/Empty.vue.d.ts +9 -8
- package/dist/runtime/components/Error.d.vue.ts +6 -5
- package/dist/runtime/components/Error.vue +8 -6
- package/dist/runtime/components/Error.vue.d.ts +6 -5
- package/dist/runtime/components/FieldGroup.d.vue.ts +5 -2
- package/dist/runtime/components/FieldGroup.vue +4 -2
- package/dist/runtime/components/FieldGroup.vue.d.ts +5 -2
- package/dist/runtime/components/FileUpload.d.vue.ts +30 -29
- package/dist/runtime/components/FileUpload.vue +18 -16
- package/dist/runtime/components/FileUpload.vue.d.ts +30 -29
- package/dist/runtime/components/Footer.d.vue.ts +6 -5
- package/dist/runtime/components/Footer.vue +10 -8
- package/dist/runtime/components/Footer.vue.d.ts +6 -5
- package/dist/runtime/components/FooterColumns.d.vue.ts +12 -11
- package/dist/runtime/components/FooterColumns.vue +14 -12
- package/dist/runtime/components/FooterColumns.vue.d.ts +12 -11
- package/dist/runtime/components/Form.d.vue.ts +6 -2
- package/dist/runtime/components/Form.vue +10 -2
- package/dist/runtime/components/Form.vue.d.ts +6 -2
- package/dist/runtime/components/FormField.d.vue.ts +19 -18
- package/dist/runtime/components/FormField.vue +12 -10
- package/dist/runtime/components/FormField.vue.d.ts +19 -18
- package/dist/runtime/components/Header.d.vue.ts +18 -12
- package/dist/runtime/components/Header.vue +16 -12
- package/dist/runtime/components/Header.vue.d.ts +18 -12
- package/dist/runtime/components/Input.d.vue.ts +60 -17
- package/dist/runtime/components/Input.vue +16 -12
- package/dist/runtime/components/Input.vue.d.ts +60 -17
- package/dist/runtime/components/InputDate.d.vue.ts +11 -9
- package/dist/runtime/components/InputDate.vue +18 -11
- package/dist/runtime/components/InputDate.vue.d.ts +11 -9
- package/dist/runtime/components/InputMenu.d.vue.ts +177 -47
- package/dist/runtime/components/InputMenu.vue +52 -59
- package/dist/runtime/components/InputMenu.vue.d.ts +177 -47
- package/dist/runtime/components/InputNumber.d.vue.ts +18 -10
- package/dist/runtime/components/InputNumber.vue +23 -14
- package/dist/runtime/components/InputNumber.vue.d.ts +18 -10
- package/dist/runtime/components/InputTags.d.vue.ts +12 -9
- package/dist/runtime/components/InputTags.vue +16 -12
- package/dist/runtime/components/InputTags.vue.d.ts +12 -9
- package/dist/runtime/components/InputTime.d.vue.ts +13 -11
- package/dist/runtime/components/InputTime.vue +18 -10
- package/dist/runtime/components/InputTime.vue.d.ts +13 -11
- package/dist/runtime/components/Kbd.d.vue.ts +5 -1
- package/dist/runtime/components/Kbd.vue +5 -2
- package/dist/runtime/components/Kbd.vue.d.ts +5 -1
- package/dist/runtime/components/Link.d.vue.ts +4 -3
- package/dist/runtime/components/Link.vue +7 -7
- package/dist/runtime/components/Link.vue.d.ts +4 -3
- package/dist/runtime/components/Main.d.vue.ts +5 -1
- package/dist/runtime/components/Main.vue +5 -2
- package/dist/runtime/components/Main.vue.d.ts +5 -1
- package/dist/runtime/components/Marquee.d.vue.ts +2 -1
- package/dist/runtime/components/Marquee.vue +5 -3
- package/dist/runtime/components/Marquee.vue.d.ts +2 -1
- package/dist/runtime/components/Modal.d.vue.ts +18 -17
- package/dist/runtime/components/Modal.vue +17 -24
- package/dist/runtime/components/Modal.vue.d.ts +18 -17
- package/dist/runtime/components/NavigationMenu.d.vue.ts +33 -21
- package/dist/runtime/components/NavigationMenu.vue +83 -53
- package/dist/runtime/components/NavigationMenu.vue.d.ts +33 -21
- package/dist/runtime/components/Page.d.vue.ts +4 -3
- package/dist/runtime/components/Page.vue +16 -8
- package/dist/runtime/components/Page.vue.d.ts +4 -3
- package/dist/runtime/components/PageAnchors.d.vue.ts +8 -7
- package/dist/runtime/components/PageAnchors.vue +11 -9
- package/dist/runtime/components/PageAnchors.vue.d.ts +8 -7
- package/dist/runtime/components/PageAside.d.vue.ts +4 -3
- package/dist/runtime/components/PageAside.vue +9 -7
- package/dist/runtime/components/PageAside.vue.d.ts +4 -3
- package/dist/runtime/components/PageBody.d.vue.ts +5 -1
- package/dist/runtime/components/PageBody.vue +5 -2
- package/dist/runtime/components/PageBody.vue.d.ts +5 -1
- package/dist/runtime/components/PageCTA.d.vue.ts +10 -9
- package/dist/runtime/components/PageCTA.vue +12 -10
- package/dist/runtime/components/PageCTA.vue.d.ts +10 -9
- package/dist/runtime/components/PageCard.d.vue.ts +9 -8
- package/dist/runtime/components/PageCard.vue +14 -12
- package/dist/runtime/components/PageCard.vue.d.ts +9 -8
- package/dist/runtime/components/PageColumns.d.vue.ts +5 -1
- package/dist/runtime/components/PageColumns.vue +5 -2
- package/dist/runtime/components/PageColumns.vue.d.ts +5 -1
- package/dist/runtime/components/PageFeature.d.vue.ts +6 -5
- package/dist/runtime/components/PageFeature.vue +9 -7
- package/dist/runtime/components/PageFeature.vue.d.ts +6 -5
- package/dist/runtime/components/PageGrid.d.vue.ts +5 -1
- package/dist/runtime/components/PageGrid.vue +5 -2
- package/dist/runtime/components/PageGrid.vue.d.ts +5 -1
- package/dist/runtime/components/PageHeader.d.vue.ts +6 -5
- package/dist/runtime/components/PageHeader.vue +10 -8
- package/dist/runtime/components/PageHeader.vue.d.ts +6 -5
- package/dist/runtime/components/PageHero.d.vue.ts +11 -10
- package/dist/runtime/components/PageHero.vue +13 -11
- package/dist/runtime/components/PageHero.vue.d.ts +11 -10
- package/dist/runtime/components/PageLinks.d.vue.ts +9 -8
- package/dist/runtime/components/PageLinks.vue +11 -9
- package/dist/runtime/components/PageLinks.vue.d.ts +9 -8
- package/dist/runtime/components/PageList.d.vue.ts +5 -1
- package/dist/runtime/components/PageList.vue +5 -2
- package/dist/runtime/components/PageList.vue.d.ts +5 -1
- package/dist/runtime/components/PageLogos.d.vue.ts +2 -1
- package/dist/runtime/components/PageLogos.vue +9 -7
- package/dist/runtime/components/PageLogos.vue.d.ts +2 -1
- package/dist/runtime/components/PageSection.d.vue.ts +15 -14
- package/dist/runtime/components/PageSection.vue +16 -14
- package/dist/runtime/components/PageSection.vue.d.ts +15 -14
- package/dist/runtime/components/Pagination.d.vue.ts +10 -9
- package/dist/runtime/components/Pagination.vue +11 -9
- package/dist/runtime/components/Pagination.vue.d.ts +10 -9
- package/dist/runtime/components/PinInput.d.vue.ts +2 -0
- package/dist/runtime/components/PinInput.vue +12 -5
- package/dist/runtime/components/PinInput.vue.d.ts +2 -0
- package/dist/runtime/components/Popover.d.vue.ts +9 -5
- package/dist/runtime/components/Popover.vue +9 -4
- package/dist/runtime/components/Popover.vue.d.ts +9 -5
- package/dist/runtime/components/PricingPlan.d.vue.ts +17 -16
- package/dist/runtime/components/PricingPlan.vue +24 -22
- package/dist/runtime/components/PricingPlan.vue.d.ts +17 -16
- package/dist/runtime/components/PricingPlans.d.vue.ts +8 -4
- package/dist/runtime/components/PricingPlans.vue +5 -2
- package/dist/runtime/components/PricingPlans.vue.d.ts +8 -4
- package/dist/runtime/components/PricingTable.d.vue.ts +20 -19
- package/dist/runtime/components/PricingTable.vue +38 -36
- package/dist/runtime/components/PricingTable.vue.d.ts +20 -19
- package/dist/runtime/components/Progress.d.vue.ts +4 -3
- package/dist/runtime/components/Progress.vue +9 -7
- package/dist/runtime/components/Progress.vue.d.ts +4 -3
- package/dist/runtime/components/RadioGroup.d.vue.ts +8 -7
- package/dist/runtime/components/RadioGroup.vue +13 -11
- package/dist/runtime/components/RadioGroup.vue.d.ts +8 -7
- package/dist/runtime/components/ScrollArea.d.vue.ts +13 -2
- package/dist/runtime/components/ScrollArea.vue +37 -13
- package/dist/runtime/components/ScrollArea.vue.d.ts +13 -2
- package/dist/runtime/components/Select.d.vue.ts +82 -41
- package/dist/runtime/components/Select.vue +35 -36
- package/dist/runtime/components/Select.vue.d.ts +82 -41
- package/dist/runtime/components/SelectMenu.d.vue.ts +138 -52
- package/dist/runtime/components/SelectMenu.vue +52 -58
- package/dist/runtime/components/SelectMenu.vue.d.ts +138 -52
- package/dist/runtime/components/Separator.d.vue.ts +3 -2
- package/dist/runtime/components/Separator.vue +9 -7
- package/dist/runtime/components/Separator.vue.d.ts +3 -2
- package/dist/runtime/components/Skeleton.d.vue.ts +3 -0
- package/dist/runtime/components/Skeleton.vue +5 -2
- package/dist/runtime/components/Skeleton.vue.d.ts +3 -0
- package/dist/runtime/components/Slideover.d.vue.ts +19 -18
- package/dist/runtime/components/Slideover.vue +16 -11
- package/dist/runtime/components/Slideover.vue.d.ts +19 -18
- package/dist/runtime/components/Slider.d.vue.ts +1 -1
- package/dist/runtime/components/Slider.vue +8 -6
- package/dist/runtime/components/Slider.vue.d.ts +1 -1
- package/dist/runtime/components/Stepper.d.vue.ts +9 -8
- package/dist/runtime/components/Stepper.vue +15 -13
- package/dist/runtime/components/Stepper.vue.d.ts +9 -8
- package/dist/runtime/components/Switch.d.vue.ts +7 -6
- package/dist/runtime/components/Switch.vue +20 -13
- package/dist/runtime/components/Switch.vue.d.ts +7 -6
- package/dist/runtime/components/Table.d.vue.ts +12 -13
- package/dist/runtime/components/Table.vue +26 -24
- package/dist/runtime/components/Table.vue.d.ts +12 -13
- package/dist/runtime/components/Tabs.d.vue.ts +9 -9
- package/dist/runtime/components/Tabs.vue +17 -12
- package/dist/runtime/components/Tabs.vue.d.ts +9 -9
- package/dist/runtime/components/Textarea.d.vue.ts +60 -17
- package/dist/runtime/components/Textarea.vue +16 -12
- package/dist/runtime/components/Textarea.vue.d.ts +60 -17
- package/dist/runtime/components/Theme.d.vue.ts +18 -0
- package/dist/runtime/components/Theme.vue +17 -0
- package/dist/runtime/components/Theme.vue.d.ts +18 -0
- package/dist/runtime/components/Timeline.d.vue.ts +8 -7
- package/dist/runtime/components/Timeline.vue +12 -10
- package/dist/runtime/components/Timeline.vue.d.ts +8 -7
- package/dist/runtime/components/Toast.d.vue.ts +8 -7
- package/dist/runtime/components/Toast.vue +16 -16
- package/dist/runtime/components/Toast.vue.d.ts +8 -7
- package/dist/runtime/components/Toaster.d.vue.ts +2 -1
- package/dist/runtime/components/Toaster.vue +7 -4
- package/dist/runtime/components/Toaster.vue.d.ts +2 -1
- package/dist/runtime/components/Tooltip.d.vue.ts +6 -4
- package/dist/runtime/components/Tooltip.vue +9 -7
- package/dist/runtime/components/Tooltip.vue.d.ts +6 -4
- package/dist/runtime/components/Tree.d.vue.ts +7 -6
- package/dist/runtime/components/Tree.vue +13 -11
- package/dist/runtime/components/Tree.vue.d.ts +7 -6
- package/dist/runtime/components/User.d.vue.ts +6 -5
- package/dist/runtime/components/User.vue +9 -7
- package/dist/runtime/components/User.vue.d.ts +6 -5
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue +5 -3
- package/dist/runtime/components/color-mode/ColorModeImage.vue +8 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -1
- package/dist/runtime/components/content/ContentNavigation.d.vue.ts +7 -6
- package/dist/runtime/components/content/ContentNavigation.vue +22 -20
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +7 -6
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +5 -4
- package/dist/runtime/components/content/ContentSearch.vue +6 -3
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +5 -4
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +1 -1
- package/dist/runtime/components/content/ContentSearchButton.vue +6 -4
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSurround.d.vue.ts +6 -5
- package/dist/runtime/components/content/ContentSurround.vue +9 -7
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +6 -5
- package/dist/runtime/components/content/ContentToc.d.vue.ts +15 -14
- package/dist/runtime/components/content/ContentToc.vue +21 -20
- package/dist/runtime/components/content/ContentToc.vue.d.ts +15 -14
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +1 -1
- package/dist/runtime/components/locale/LocaleSelect.vue +2 -2
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.d.vue.ts +5 -1
- package/dist/runtime/components/prose/A.vue +7 -4
- package/dist/runtime/components/prose/A.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Accordion.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Accordion.vue +4 -2
- package/dist/runtime/components/prose/Accordion.vue.d.ts +2 -1
- package/dist/runtime/components/prose/AccordionItem.d.vue.ts +5 -1
- package/dist/runtime/components/prose/AccordionItem.vue +5 -2
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Badge.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Badge.vue +5 -2
- package/dist/runtime/components/prose/Badge.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Blockquote.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Blockquote.vue +5 -2
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Callout.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Callout.vue +6 -4
- package/dist/runtime/components/prose/Callout.vue.d.ts +2 -1
- package/dist/runtime/components/prose/Card.d.vue.ts +3 -2
- package/dist/runtime/components/prose/Card.vue +8 -6
- package/dist/runtime/components/prose/Card.vue.d.ts +3 -2
- package/dist/runtime/components/prose/CardGroup.d.vue.ts +5 -1
- package/dist/runtime/components/prose/CardGroup.vue +5 -2
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Code.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Code.vue +5 -2
- package/dist/runtime/components/prose/Code.vue.d.ts +5 -1
- package/dist/runtime/components/prose/CodeCollapse.d.vue.ts +2 -1
- package/dist/runtime/components/prose/CodeCollapse.vue +7 -5
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +2 -1
- package/dist/runtime/components/prose/CodeGroup.d.vue.ts +2 -1
- package/dist/runtime/components/prose/CodeGroup.vue +9 -7
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +2 -1
- package/dist/runtime/components/prose/CodePreview.d.vue.ts +3 -2
- package/dist/runtime/components/prose/CodePreview.vue +6 -4
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +3 -2
- package/dist/runtime/components/prose/CodeTree.d.vue.ts +2 -1
- package/dist/runtime/components/prose/CodeTree.vue +14 -12
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +2 -1
- package/dist/runtime/components/prose/Collapsible.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Collapsible.vue +7 -5
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +2 -1
- package/dist/runtime/components/prose/Em.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Em.vue +5 -2
- package/dist/runtime/components/prose/Em.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Field.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Field.vue +10 -8
- package/dist/runtime/components/prose/Field.vue.d.ts +2 -1
- package/dist/runtime/components/prose/FieldGroup.d.vue.ts +5 -1
- package/dist/runtime/components/prose/FieldGroup.vue +5 -2
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +5 -1
- package/dist/runtime/components/prose/H1.d.vue.ts +2 -1
- package/dist/runtime/components/prose/H1.vue +5 -3
- package/dist/runtime/components/prose/H1.vue.d.ts +2 -1
- package/dist/runtime/components/prose/H2.d.vue.ts +2 -1
- package/dist/runtime/components/prose/H2.vue +7 -5
- package/dist/runtime/components/prose/H2.vue.d.ts +2 -1
- package/dist/runtime/components/prose/H3.d.vue.ts +2 -1
- package/dist/runtime/components/prose/H3.vue +7 -5
- package/dist/runtime/components/prose/H3.vue.d.ts +2 -1
- package/dist/runtime/components/prose/H4.d.vue.ts +2 -1
- package/dist/runtime/components/prose/H4.vue +5 -3
- package/dist/runtime/components/prose/H4.vue.d.ts +2 -1
- package/dist/runtime/components/prose/Hr.d.vue.ts +3 -0
- package/dist/runtime/components/prose/Hr.vue +5 -2
- package/dist/runtime/components/prose/Hr.vue.d.ts +3 -0
- package/dist/runtime/components/prose/Icon.d.vue.ts +3 -0
- package/dist/runtime/components/prose/Icon.vue +5 -2
- package/dist/runtime/components/prose/Icon.vue.d.ts +3 -0
- package/dist/runtime/components/prose/Img.vue +9 -15
- package/dist/runtime/components/prose/Kbd.d.vue.ts +3 -0
- package/dist/runtime/components/prose/Kbd.vue +5 -2
- package/dist/runtime/components/prose/Kbd.vue.d.ts +3 -0
- package/dist/runtime/components/prose/Li.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Li.vue +5 -2
- package/dist/runtime/components/prose/Li.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Ol.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Ol.vue +5 -2
- package/dist/runtime/components/prose/Ol.vue.d.ts +5 -1
- package/dist/runtime/components/prose/P.d.vue.ts +5 -1
- package/dist/runtime/components/prose/P.vue +5 -2
- package/dist/runtime/components/prose/P.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Pre.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Pre.vue +9 -7
- package/dist/runtime/components/prose/Pre.vue.d.ts +2 -1
- package/dist/runtime/components/prose/Steps.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Steps.vue +5 -2
- package/dist/runtime/components/prose/Steps.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Strong.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Strong.vue +5 -2
- package/dist/runtime/components/prose/Strong.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Table.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Table.vue +5 -3
- package/dist/runtime/components/prose/Table.vue.d.ts +2 -1
- package/dist/runtime/components/prose/Tabs.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Tabs.vue +4 -2
- package/dist/runtime/components/prose/Tabs.vue.d.ts +2 -1
- package/dist/runtime/components/prose/TabsItem.d.vue.ts +5 -1
- package/dist/runtime/components/prose/TabsItem.vue +5 -2
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Tbody.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Tbody.vue +5 -2
- package/dist/runtime/components/prose/Tbody.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Td.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Td.vue +5 -2
- package/dist/runtime/components/prose/Td.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Th.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Th.vue +5 -2
- package/dist/runtime/components/prose/Th.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Thead.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Thead.vue +5 -2
- package/dist/runtime/components/prose/Thead.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Tr.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Tr.vue +5 -2
- package/dist/runtime/components/prose/Tr.vue.d.ts +5 -1
- package/dist/runtime/components/prose/Ul.d.vue.ts +5 -1
- package/dist/runtime/components/prose/Ul.vue +5 -2
- package/dist/runtime/components/prose/Ul.vue.d.ts +5 -1
- package/dist/runtime/composables/defineShortcuts.js +4 -1
- package/dist/runtime/composables/internal/useFilter.d.ts +9 -0
- package/dist/runtime/composables/internal/useFilter.js +60 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentUI.d.ts +33 -0
- package/dist/runtime/composables/useComponentUI.js +13 -0
- package/dist/runtime/composables/useEditorMenu.js +27 -10
- package/dist/runtime/composables/useFieldGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +1 -1
- package/dist/runtime/composables/useResizable.d.ts +2 -2
- package/dist/runtime/composables/useResizable.js +2 -2
- package/dist/runtime/composables/useToast.d.ts +4 -0
- package/dist/runtime/composables/useToast.js +25 -1
- package/dist/runtime/keyframes.css +1 -1
- package/dist/runtime/locale/be.d.ts +3 -0
- package/dist/runtime/locale/be.js +129 -0
- package/dist/runtime/locale/index.d.ts +1 -0
- package/dist/runtime/locale/index.js +1 -0
- package/dist/runtime/types/html.d.ts +3 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/input.d.ts +16 -6
- package/dist/runtime/types/utils.d.ts +12 -10
- package/dist/runtime/utils/index.d.ts +2 -1
- package/dist/runtime/utils/index.js +11 -1
- package/dist/runtime/utils/overlay.d.ts +19 -0
- package/dist/runtime/utils/overlay.js +13 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +2 -2
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -1
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +4 -3
- package/dist/runtime/vue/overrides/inertia/Link.vue +4 -2
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +4 -3
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +4 -4
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +4 -4
- package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +4 -3
- package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +4 -3
- package/dist/runtime/vue/stubs/base.d.ts +6 -0
- package/dist/runtime/vue/stubs/base.js +8 -0
- package/dist/shared/{ui.Ddb3hKxo.mjs → ui.DI_ypO2T.mjs} +107 -57
- package/dist/unplugin.d.mts +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +51 -52
|
@@ -4,14 +4,16 @@ import theme from "#build/ui/input-menu";
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed, useTemplateRef, toRef, onMounted, toRaw, nextTick } from "vue";
|
|
7
|
-
import { ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxCancel, ComboboxPortal, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxVirtualizer, ComboboxLabel, ComboboxSeparator, ComboboxItem, ComboboxItemIndicator, TagsInputRoot, TagsInputItem, TagsInputItemText, TagsInputItemDelete, TagsInputInput, useForwardPropsEmits
|
|
7
|
+
import { ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxCancel, ComboboxPortal, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxVirtualizer, ComboboxLabel, ComboboxSeparator, ComboboxItem, ComboboxItemIndicator, TagsInputRoot, TagsInputItem, TagsInputItemText, TagsInputItemDelete, TagsInputInput, useForwardPropsEmits } from "reka-ui";
|
|
8
8
|
import { defu } from "defu";
|
|
9
9
|
import { isEqual } from "ohash/utils";
|
|
10
10
|
import { reactivePick, createReusableTemplate } from "@vueuse/core";
|
|
11
11
|
import { useAppConfig } from "#imports";
|
|
12
|
+
import { useComponentUI } from "../composables/useComponentUI";
|
|
12
13
|
import { useFieldGroup } from "../composables/useFieldGroup";
|
|
13
14
|
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
14
15
|
import { useFormField } from "../composables/useFormField";
|
|
16
|
+
import { useFilter } from "../composables/internal/useFilter";
|
|
15
17
|
import { useLocale } from "../composables/useLocale";
|
|
16
18
|
import { usePortal } from "../composables/usePortal";
|
|
17
19
|
import { compare, get, getDisplayValue, isArrayOfArray, looseToNumber } from "../utils";
|
|
@@ -48,14 +50,15 @@ const props = defineProps({
|
|
|
48
50
|
items: { type: null, required: false },
|
|
49
51
|
defaultValue: { type: null, required: false },
|
|
50
52
|
modelValue: { type: null, required: false },
|
|
51
|
-
modelModifiers: { type:
|
|
53
|
+
modelModifiers: { type: null, required: false },
|
|
52
54
|
multiple: { type: Boolean, required: false },
|
|
53
55
|
highlight: { type: Boolean, required: false },
|
|
56
|
+
fixed: { type: Boolean, required: false },
|
|
54
57
|
createItem: { type: [Boolean, String, Object], required: false },
|
|
55
58
|
filterFields: { type: Array, required: false },
|
|
56
59
|
ignoreFilter: { type: Boolean, required: false },
|
|
57
60
|
class: { type: null, required: false },
|
|
58
|
-
ui: { type:
|
|
61
|
+
ui: { type: Object, required: false },
|
|
59
62
|
open: { type: Boolean, required: false },
|
|
60
63
|
defaultOpen: { type: Boolean, required: false },
|
|
61
64
|
disabled: { type: Boolean, required: false },
|
|
@@ -75,16 +78,17 @@ const props = defineProps({
|
|
|
75
78
|
loading: { type: Boolean, required: false },
|
|
76
79
|
loadingIcon: { type: null, required: false }
|
|
77
80
|
});
|
|
78
|
-
const emits = defineEmits(["
|
|
81
|
+
const emits = defineEmits(["change", "blur", "focus", "create", "clear", "highlight", "remove-tag", "update:modelValue", "update:open"]);
|
|
79
82
|
const slots = defineSlots();
|
|
80
83
|
const searchTerm = defineModel("searchTerm", { type: String, ...{ default: "" } });
|
|
81
84
|
const { t } = useLocale();
|
|
82
85
|
const appConfig = useAppConfig();
|
|
83
|
-
const
|
|
86
|
+
const uiProp = useComponentUI("inputMenu", props);
|
|
87
|
+
const { filterGroups } = useFilter();
|
|
84
88
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "open", "defaultOpen", "required", "multiple", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "openOnClick", "openOnFocus", "by"), emits);
|
|
85
89
|
const portalProps = usePortal(toRef(() => props.portal));
|
|
86
90
|
const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8, position: "popper" }));
|
|
87
|
-
const arrowProps = toRef(() => props.arrow);
|
|
91
|
+
const arrowProps = toRef(() => defu(props.arrow, { rounded: true }));
|
|
88
92
|
const clearProps = computed(() => typeof props.clear === "object" ? props.clear : {});
|
|
89
93
|
const virtualizerProps = toRef(() => {
|
|
90
94
|
if (!props.virtualize) return false;
|
|
@@ -115,6 +119,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.inputMenu ||
|
|
|
115
119
|
size: inputSize?.value,
|
|
116
120
|
loading: props.loading,
|
|
117
121
|
highlight: highlight.value,
|
|
122
|
+
fixed: props.fixed,
|
|
118
123
|
leading: isLeading.value || !!props.avatar || !!slots.leading,
|
|
119
124
|
trailing: isTrailing.value || !!slots.trailing,
|
|
120
125
|
multiple: props.multiple,
|
|
@@ -137,23 +142,10 @@ const filteredGroups = computed(() => {
|
|
|
137
142
|
return groups.value;
|
|
138
143
|
}
|
|
139
144
|
const fields = Array.isArray(props.filterFields) ? props.filterFields : [props.labelKey];
|
|
140
|
-
return groups.value
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
if (typeof item !== "object") {
|
|
145
|
-
return contains(String(item), searchTerm.value);
|
|
146
|
-
}
|
|
147
|
-
if (item.type && ["label", "separator"].includes(item.type)) {
|
|
148
|
-
return true;
|
|
149
|
-
}
|
|
150
|
-
return fields.some((field) => {
|
|
151
|
-
const value = get(item, field);
|
|
152
|
-
return value !== void 0 && value !== null && contains(String(value), searchTerm.value);
|
|
153
|
-
});
|
|
154
|
-
})).filter((group) => group.filter(
|
|
155
|
-
(item) => !isInputItem(item) || (!item.type || !["label", "separator"].includes(item.type))
|
|
156
|
-
).length > 0);
|
|
145
|
+
return filterGroups(groups.value, searchTerm.value, {
|
|
146
|
+
fields,
|
|
147
|
+
isStructural: (item) => isInputItem(item) && !!item.type && ["label", "separator"].includes(item.type)
|
|
148
|
+
});
|
|
157
149
|
});
|
|
158
150
|
const filteredItems = computed(() => filteredGroups.value.flatMap((group) => group));
|
|
159
151
|
const createItem = computed(() => {
|
|
@@ -185,7 +177,7 @@ function onUpdate(value) {
|
|
|
185
177
|
if (toRaw(props.modelValue) === value) {
|
|
186
178
|
return;
|
|
187
179
|
}
|
|
188
|
-
if (props.modelModifiers?.trim) {
|
|
180
|
+
if (props.modelModifiers?.trim && (typeof value === "string" || value === null || value === void 0)) {
|
|
189
181
|
value = value?.trim() ?? null;
|
|
190
182
|
}
|
|
191
183
|
if (props.modelModifiers?.number) {
|
|
@@ -194,7 +186,7 @@ function onUpdate(value) {
|
|
|
194
186
|
if (props.modelModifiers?.nullable) {
|
|
195
187
|
value ??= null;
|
|
196
188
|
}
|
|
197
|
-
if (props.modelModifiers?.optional) {
|
|
189
|
+
if (props.modelModifiers?.optional && !props.modelModifiers?.nullable && value !== null) {
|
|
198
190
|
value ??= void 0;
|
|
199
191
|
}
|
|
200
192
|
const event = new Event("change", { target: { value } });
|
|
@@ -278,11 +270,11 @@ defineExpose({
|
|
|
278
270
|
<DefineCreateItemTemplate>
|
|
279
271
|
<ComboboxItem
|
|
280
272
|
data-slot="item"
|
|
281
|
-
:class="ui.item({ class:
|
|
273
|
+
:class="ui.item({ class: uiProp?.item })"
|
|
282
274
|
:value="searchTerm"
|
|
283
275
|
@select="onCreate"
|
|
284
276
|
>
|
|
285
|
-
<span data-slot="itemLabel" :class="ui.itemLabel({ class:
|
|
277
|
+
<span data-slot="itemLabel" :class="ui.itemLabel({ class: uiProp?.itemLabel })">
|
|
286
278
|
<slot name="create-item-label" :item="searchTerm">
|
|
287
279
|
{{ t("inputMenu.create", { label: searchTerm }) }}
|
|
288
280
|
</slot>
|
|
@@ -291,54 +283,54 @@ defineExpose({
|
|
|
291
283
|
</DefineCreateItemTemplate>
|
|
292
284
|
|
|
293
285
|
<DefineItemTemplate v-slot="{ item, index }">
|
|
294
|
-
<ComboboxLabel v-if="isInputItem(item) && item.type === 'label'" data-slot="label" :class="ui.label({ class: [
|
|
286
|
+
<ComboboxLabel v-if="isInputItem(item) && item.type === 'label'" data-slot="label" :class="ui.label({ class: [uiProp?.label, item.ui?.label, item.class] })">
|
|
295
287
|
{{ get(item, props.labelKey) }}
|
|
296
288
|
</ComboboxLabel>
|
|
297
289
|
|
|
298
|
-
<ComboboxSeparator v-else-if="isInputItem(item) && item.type === 'separator'" data-slot="separator" :class="ui.separator({ class: [
|
|
290
|
+
<ComboboxSeparator v-else-if="isInputItem(item) && item.type === 'separator'" data-slot="separator" :class="ui.separator({ class: [uiProp?.separator, item.ui?.separator, item.class] })" />
|
|
299
291
|
|
|
300
292
|
<ComboboxItem
|
|
301
293
|
v-else
|
|
302
294
|
data-slot="item"
|
|
303
|
-
:class="ui.item({ class: [
|
|
295
|
+
:class="ui.item({ class: [uiProp?.item, isInputItem(item) && item.ui?.item, isInputItem(item) && item.class] })"
|
|
304
296
|
:disabled="isInputItem(item) && item.disabled"
|
|
305
297
|
:value="props.valueKey && isInputItem(item) ? get(item, props.valueKey) : item"
|
|
306
298
|
@select="onSelect($event, item)"
|
|
307
299
|
>
|
|
308
300
|
<slot name="item" :item="item" :index="index" :ui="ui">
|
|
309
301
|
<slot name="item-leading" :item="item" :index="index" :ui="ui">
|
|
310
|
-
<UIcon v-if="isInputItem(item) && item.icon" :name="item.icon" data-slot="itemLeadingIcon" :class="ui.itemLeadingIcon({ class: [
|
|
311
|
-
<UAvatar v-else-if="isInputItem(item) && item.avatar" :size="item.ui?.itemLeadingAvatarSize ||
|
|
302
|
+
<UIcon v-if="isInputItem(item) && item.icon" :name="item.icon" data-slot="itemLeadingIcon" :class="ui.itemLeadingIcon({ class: [uiProp?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
|
|
303
|
+
<UAvatar v-else-if="isInputItem(item) && item.avatar" :size="item.ui?.itemLeadingAvatarSize || uiProp?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" data-slot="itemLeadingAvatar" :class="ui.itemLeadingAvatar({ class: [uiProp?.itemLeadingAvatar, item.ui?.itemLeadingAvatar] })" />
|
|
312
304
|
<UChip
|
|
313
305
|
v-else-if="isInputItem(item) && item.chip"
|
|
314
|
-
:size="item.ui?.itemLeadingChipSize ||
|
|
306
|
+
:size="item.ui?.itemLeadingChipSize || uiProp?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
315
307
|
inset
|
|
316
308
|
standalone
|
|
317
309
|
v-bind="item.chip"
|
|
318
310
|
data-slot="itemLeadingChip"
|
|
319
|
-
:class="ui.itemLeadingChip({ class: [
|
|
311
|
+
:class="ui.itemLeadingChip({ class: [uiProp?.itemLeadingChip, item.ui?.itemLeadingChip] })"
|
|
320
312
|
/>
|
|
321
313
|
</slot>
|
|
322
314
|
|
|
323
|
-
<span data-slot="itemWrapper" :class="ui.itemWrapper({ class: [
|
|
324
|
-
<span data-slot="itemLabel" :class="ui.itemLabel({ class: [
|
|
315
|
+
<span data-slot="itemWrapper" :class="ui.itemWrapper({ class: [uiProp?.itemWrapper, isInputItem(item) && item.ui?.itemWrapper] })">
|
|
316
|
+
<span data-slot="itemLabel" :class="ui.itemLabel({ class: [uiProp?.itemLabel, isInputItem(item) && item.ui?.itemLabel] })">
|
|
325
317
|
<slot name="item-label" :item="item" :index="index">
|
|
326
318
|
{{ isInputItem(item) ? get(item, props.labelKey) : item }}
|
|
327
319
|
</slot>
|
|
328
320
|
</span>
|
|
329
321
|
|
|
330
|
-
<span v-if="isInputItem(item) && (get(item, props.descriptionKey) || !!slots['item-description'])" data-slot="itemDescription" :class="ui.itemDescription({ class: [
|
|
322
|
+
<span v-if="isInputItem(item) && (get(item, props.descriptionKey) || !!slots['item-description'])" data-slot="itemDescription" :class="ui.itemDescription({ class: [uiProp?.itemDescription, isInputItem(item) && item.ui?.itemDescription] })">
|
|
331
323
|
<slot name="item-description" :item="item" :index="index">
|
|
332
324
|
{{ get(item, props.descriptionKey) }}
|
|
333
325
|
</slot>
|
|
334
326
|
</span>
|
|
335
327
|
</span>
|
|
336
328
|
|
|
337
|
-
<span data-slot="itemTrailing" :class="ui.itemTrailing({ class: [
|
|
329
|
+
<span data-slot="itemTrailing" :class="ui.itemTrailing({ class: [uiProp?.itemTrailing, isInputItem(item) && item.ui?.itemTrailing] })">
|
|
338
330
|
<slot name="item-trailing" :item="item" :index="index" :ui="ui" />
|
|
339
331
|
|
|
340
332
|
<ComboboxItemIndicator as-child>
|
|
341
|
-
<UIcon :name="selectedIcon || appConfig.ui.icons.check" data-slot="itemTrailingIcon" :class="ui.itemTrailingIcon({ class: [
|
|
333
|
+
<UIcon :name="selectedIcon || appConfig.ui.icons.check" data-slot="itemTrailingIcon" :class="ui.itemTrailingIcon({ class: [uiProp?.itemTrailingIcon, isInputItem(item) && item.ui?.itemTrailingIcon] })" />
|
|
342
334
|
</ComboboxItemIndicator>
|
|
343
335
|
</span>
|
|
344
336
|
</slot>
|
|
@@ -351,13 +343,13 @@ defineExpose({
|
|
|
351
343
|
:name="name"
|
|
352
344
|
:disabled="disabled"
|
|
353
345
|
data-slot="root"
|
|
354
|
-
:class="ui.root({ class: [
|
|
346
|
+
:class="ui.root({ class: [uiProp?.root, props.class] })"
|
|
355
347
|
:as-child="!!multiple"
|
|
356
348
|
ignore-filter
|
|
357
349
|
@update:model-value="onUpdate"
|
|
358
350
|
@update:open="onUpdateOpen"
|
|
359
351
|
>
|
|
360
|
-
<ComboboxAnchor :as-child="!multiple" data-slot="base" :class="ui.base({ class:
|
|
352
|
+
<ComboboxAnchor :as-child="!multiple" data-slot="base" :class="ui.base({ class: uiProp?.base })">
|
|
361
353
|
<TagsInputRoot
|
|
362
354
|
v-if="multiple"
|
|
363
355
|
v-slot="{ modelValue: tags }"
|
|
@@ -370,16 +362,16 @@ defineExpose({
|
|
|
370
362
|
@focus="onFocus"
|
|
371
363
|
@remove-tag="onRemoveTag($event, modelValue)"
|
|
372
364
|
>
|
|
373
|
-
<TagsInputItem v-for="(item, index) in tags" :key="index" :value="item" data-slot="tagsItem" :class="ui.tagsItem({ class: [
|
|
374
|
-
<TagsInputItemText data-slot="tagsItemText" :class="ui.tagsItemText({ class: [
|
|
365
|
+
<TagsInputItem v-for="(item, index) in tags" :key="index" :value="item" data-slot="tagsItem" :class="ui.tagsItem({ class: [uiProp?.tagsItem, isInputItem(item) && item.ui?.tagsItem] })">
|
|
366
|
+
<TagsInputItemText data-slot="tagsItemText" :class="ui.tagsItemText({ class: [uiProp?.tagsItemText, isInputItem(item) && item.ui?.tagsItemText] })">
|
|
375
367
|
<slot name="tags-item-text" :item="item" :index="index">
|
|
376
368
|
{{ displayValue(item) }}
|
|
377
369
|
</slot>
|
|
378
370
|
</TagsInputItemText>
|
|
379
371
|
|
|
380
|
-
<TagsInputItemDelete data-slot="tagsItemDelete" :class="ui.tagsItemDelete({ class: [
|
|
372
|
+
<TagsInputItemDelete data-slot="tagsItemDelete" :class="ui.tagsItemDelete({ class: [uiProp?.tagsItemDelete, isInputItem(item) && item.ui?.tagsItemDelete] })" :disabled="disabled">
|
|
381
373
|
<slot name="tags-item-delete" :item="item" :index="index" :ui="ui">
|
|
382
|
-
<UIcon :name="deleteIcon || appConfig.ui.icons.close" data-slot="tagsItemDeleteIcon" :class="ui.tagsItemDeleteIcon({ class: [
|
|
374
|
+
<UIcon :name="deleteIcon || appConfig.ui.icons.close" data-slot="tagsItemDeleteIcon" :class="ui.tagsItemDeleteIcon({ class: [uiProp?.tagsItemDeleteIcon, isInputItem(item) && item.ui?.tagsItemDeleteIcon] })" />
|
|
383
375
|
</slot>
|
|
384
376
|
</TagsInputItemDelete>
|
|
385
377
|
</TagsInputItem>
|
|
@@ -391,7 +383,7 @@ defineExpose({
|
|
|
391
383
|
v-bind="{ ...$attrs, ...ariaAttrs }"
|
|
392
384
|
:placeholder="placeholder"
|
|
393
385
|
data-slot="tagsInput"
|
|
394
|
-
:class="ui.tagsInput({ class:
|
|
386
|
+
:class="ui.tagsInput({ class: uiProp?.tagsInput })"
|
|
395
387
|
@change.stop
|
|
396
388
|
/>
|
|
397
389
|
</ComboboxInput>
|
|
@@ -412,45 +404,46 @@ defineExpose({
|
|
|
412
404
|
@update:model-value="searchTerm = $event"
|
|
413
405
|
/>
|
|
414
406
|
|
|
415
|
-
<span v-if="isLeading || !!avatar || !!slots.leading" data-slot="leading" :class="ui.leading({ class:
|
|
407
|
+
<span v-if="isLeading || !!avatar || !!slots.leading" data-slot="leading" :class="ui.leading({ class: uiProp?.leading })">
|
|
416
408
|
<slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
|
|
417
|
-
<UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" data-slot="leadingIcon" :class="ui.leadingIcon({ class:
|
|
418
|
-
<UAvatar v-else-if="!!avatar" :size="
|
|
409
|
+
<UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" data-slot="leadingIcon" :class="ui.leadingIcon({ class: uiProp?.leadingIcon })" />
|
|
410
|
+
<UAvatar v-else-if="!!avatar" :size="uiProp?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="avatar" data-slot="itemLeadingAvatar" :class="ui.itemLeadingAvatar({ class: uiProp?.itemLeadingAvatar })" />
|
|
419
411
|
</slot>
|
|
420
412
|
</span>
|
|
421
413
|
|
|
422
|
-
<ComboboxTrigger v-if="isTrailing || !!slots.trailing || !!clear" data-slot="trailing" :class="ui.trailing({ class:
|
|
414
|
+
<ComboboxTrigger v-if="isTrailing || !!slots.trailing || !!clear" data-slot="trailing" :class="ui.trailing({ class: uiProp?.trailing })">
|
|
423
415
|
<slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
|
|
424
416
|
<ComboboxCancel v-if="!!clear && !isModelValueEmpty(modelValue)" as-child>
|
|
425
417
|
<UButton
|
|
426
418
|
as="span"
|
|
427
419
|
:icon="clearIcon || appConfig.ui.icons.close"
|
|
420
|
+
:size="inputSize"
|
|
428
421
|
variant="link"
|
|
429
422
|
color="neutral"
|
|
430
423
|
tabindex="-1"
|
|
431
424
|
v-bind="clearProps"
|
|
432
425
|
data-slot="trailingClear"
|
|
433
|
-
:class="ui.trailingClear({ class:
|
|
426
|
+
:class="ui.trailingClear({ class: uiProp?.trailingClear })"
|
|
434
427
|
@click.stop="onClear"
|
|
435
428
|
/>
|
|
436
429
|
</ComboboxCancel>
|
|
437
430
|
|
|
438
|
-
<UIcon v-else-if="trailingIconName" :name="trailingIconName" data-slot="trailingIcon" :class="ui.trailingIcon({ class:
|
|
431
|
+
<UIcon v-else-if="trailingIconName" :name="trailingIconName" data-slot="trailingIcon" :class="ui.trailingIcon({ class: uiProp?.trailingIcon })" />
|
|
439
432
|
</slot>
|
|
440
433
|
</ComboboxTrigger>
|
|
441
434
|
</ComboboxAnchor>
|
|
442
435
|
|
|
443
436
|
<ComboboxPortal v-bind="portalProps">
|
|
444
|
-
<ComboboxContent data-slot="content" :class="ui.content({ class:
|
|
437
|
+
<ComboboxContent data-slot="content" :class="ui.content({ class: uiProp?.content })" v-bind="contentProps" @focus-outside.prevent>
|
|
445
438
|
<slot name="content-top" />
|
|
446
439
|
|
|
447
|
-
<ComboboxEmpty data-slot="empty" :class="ui.empty({ class:
|
|
440
|
+
<ComboboxEmpty data-slot="empty" :class="ui.empty({ class: uiProp?.empty })">
|
|
448
441
|
<slot name="empty" :search-term="searchTerm">
|
|
449
442
|
{{ searchTerm ? t("inputMenu.noMatch", { searchTerm }) : t("inputMenu.noData") }}
|
|
450
443
|
</slot>
|
|
451
444
|
</ComboboxEmpty>
|
|
452
445
|
|
|
453
|
-
<div ref="viewportRef" role="presentation" data-slot="viewport" :class="ui.viewport({ class:
|
|
446
|
+
<div ref="viewportRef" role="presentation" data-slot="viewport" :class="ui.viewport({ class: uiProp?.viewport })">
|
|
454
447
|
<template v-if="!!virtualize">
|
|
455
448
|
<ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'top'" />
|
|
456
449
|
|
|
@@ -467,15 +460,15 @@ defineExpose({
|
|
|
467
460
|
</template>
|
|
468
461
|
|
|
469
462
|
<template v-else>
|
|
470
|
-
<ComboboxGroup v-if="createItem && createItemPosition === 'top'" data-slot="group" :class="ui.group({ class:
|
|
463
|
+
<ComboboxGroup v-if="createItem && createItemPosition === 'top'" data-slot="group" :class="ui.group({ class: uiProp?.group })">
|
|
471
464
|
<ReuseCreateItemTemplate />
|
|
472
465
|
</ComboboxGroup>
|
|
473
466
|
|
|
474
|
-
<ComboboxGroup v-for="(group, groupIndex) in filteredGroups" :key="`group-${groupIndex}`" data-slot="group" :class="ui.group({ class:
|
|
467
|
+
<ComboboxGroup v-for="(group, groupIndex) in filteredGroups" :key="`group-${groupIndex}`" data-slot="group" :class="ui.group({ class: uiProp?.group })">
|
|
475
468
|
<ReuseItemTemplate v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`" :item="item" :index="index" />
|
|
476
469
|
</ComboboxGroup>
|
|
477
470
|
|
|
478
|
-
<ComboboxGroup v-if="createItem && createItemPosition === 'bottom'" data-slot="group" :class="ui.group({ class:
|
|
471
|
+
<ComboboxGroup v-if="createItem && createItemPosition === 'bottom'" data-slot="group" :class="ui.group({ class: uiProp?.group })">
|
|
479
472
|
<ReuseCreateItemTemplate />
|
|
480
473
|
</ComboboxGroup>
|
|
481
474
|
</template>
|
|
@@ -483,7 +476,7 @@ defineExpose({
|
|
|
483
476
|
|
|
484
477
|
<slot name="content-bottom" />
|
|
485
478
|
|
|
486
|
-
<ComboboxArrow v-if="!!arrow" v-bind="arrowProps" data-slot="arrow" :class="ui.arrow({ class:
|
|
479
|
+
<ComboboxArrow v-if="!!arrow" v-bind="arrowProps" data-slot="arrow" :class="ui.arrow({ class: uiProp?.arrow })" />
|
|
487
480
|
</ComboboxContent>
|
|
488
481
|
</ComboboxPortal>
|
|
489
482
|
</ComboboxRoot>
|