@eslamdevui/ui 3.2.0-beta.1 → 3.2.0-beta.2
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/alert.ts +5 -0
- package/.nuxt/ui/badge.ts +5 -0
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +5 -0
- package/.nuxt/ui/carousel.ts +5 -0
- package/.nuxt/ui/content/content-navigation.ts +339 -0
- package/.nuxt/ui/content/content-search-button.ts +6 -0
- package/.nuxt/ui/content/content-search.ts +6 -0
- package/.nuxt/ui/content/content-surround.ts +39 -0
- package/.nuxt/ui/content/content-toc.ts +150 -0
- package/.nuxt/ui/content/index.ts +5 -0
- package/.nuxt/ui/content-surround.ts +5 -0
- package/.nuxt/ui/content-toc.ts +6 -6
- package/.nuxt/ui/dashboard-navbar.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar.ts +10 -0
- package/.nuxt/ui/error.ts +9 -0
- package/.nuxt/ui/index.ts +48 -1
- package/.nuxt/ui/input-menu.ts +9 -0
- package/.nuxt/ui/input-number.ts +5 -0
- package/.nuxt/ui/input-tags.ts +9 -0
- package/.nuxt/ui/input.ts +9 -0
- package/.nuxt/ui/prose/a.ts +6 -0
- package/.nuxt/ui/prose/accordion-item.ts +3 -0
- package/.nuxt/ui/prose/accordion.ts +6 -0
- package/.nuxt/ui/prose/badge.ts +3 -0
- package/.nuxt/ui/prose/blockquote.ts +3 -0
- package/.nuxt/ui/prose/callout.ts +129 -0
- package/.nuxt/ui/prose/card-group.ts +3 -0
- package/.nuxt/ui/prose/card.ts +119 -0
- package/.nuxt/ui/prose/code-collapse.ts +19 -0
- package/.nuxt/ui/prose/code-group.ts +13 -0
- package/.nuxt/ui/prose/code-icon.ts +66 -0
- package/.nuxt/ui/prose/code-preview.ts +14 -0
- package/.nuxt/ui/prose/code-tree.ts +28 -0
- package/.nuxt/ui/prose/code.ts +27 -0
- package/.nuxt/ui/prose/collapsible.ts +12 -0
- package/.nuxt/ui/prose/em.ts +3 -0
- package/.nuxt/ui/prose/field-group.ts +3 -0
- package/.nuxt/ui/prose/field.ts +11 -0
- package/.nuxt/ui/prose/h1.ts +6 -0
- package/.nuxt/ui/prose/h2.ts +14 -0
- package/.nuxt/ui/prose/h3.ts +14 -0
- package/.nuxt/ui/prose/h4.ts +6 -0
- package/.nuxt/ui/prose/hr.ts +3 -0
- package/.nuxt/ui/prose/icon.ts +3 -0
- package/.nuxt/ui/prose/img.ts +3 -0
- package/.nuxt/ui/prose/index.ts +41 -0
- package/.nuxt/ui/prose/kbd.ts +3 -0
- package/.nuxt/ui/prose/li.ts +3 -0
- package/.nuxt/ui/prose/ol.ts +3 -0
- package/.nuxt/ui/prose/p.ts +3 -0
- package/.nuxt/ui/prose/pre.ts +17 -0
- package/.nuxt/ui/prose/steps.ts +19 -0
- package/.nuxt/ui/prose/strong.ts +3 -0
- package/.nuxt/ui/prose/table.ts +6 -0
- package/.nuxt/ui/prose/tabs-item.ts +3 -0
- package/.nuxt/ui/prose/tabs.ts +5 -0
- package/.nuxt/ui/prose/tbody.ts +3 -0
- package/.nuxt/ui/prose/td.ts +3 -0
- package/.nuxt/ui/prose/th.ts +3 -0
- package/.nuxt/ui/prose/thead.ts +3 -0
- package/.nuxt/ui/prose/tr.ts +3 -0
- package/.nuxt/ui/prose/ul.ts +3 -0
- package/.nuxt/ui/select-menu.ts +9 -0
- package/.nuxt/ui/select.ts +9 -0
- package/.nuxt/ui/textarea.ts +9 -0
- package/.nuxt/ui/toast.ts +5 -0
- package/LICENSE.md +9 -9
- package/README.md +147 -147
- package/cli/commands/make/component.mjs +95 -95
- package/cli/commands/make/index.mjs +14 -14
- package/cli/commands/make/locale.mjs +64 -64
- package/cli/index.mjs +15 -15
- package/cli/package.json +13 -13
- package/cli/templates.mjs +236 -228
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +18 -13
- package/dist/runtime/components/Accordion.vue +36 -36
- package/dist/runtime/components/Alert.vue +46 -46
- package/dist/runtime/components/App.vue +10 -10
- package/dist/runtime/components/Avatar.vue +27 -27
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/Badge.vue +16 -16
- package/dist/runtime/components/Breadcrumb.vue +32 -32
- package/dist/runtime/components/Button.vue +28 -28
- package/dist/runtime/components/ButtonGroup.vue +3 -3
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Card.vue +13 -13
- package/dist/runtime/components/Carousel.vue +58 -58
- package/dist/runtime/components/ChatMessage.vue +35 -35
- package/dist/runtime/components/ChatMessages.vue +71 -71
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -2
- package/dist/runtime/components/ChatPrompt.vue +30 -31
- package/dist/runtime/components/ChatPrompt.vue.d.ts +4 -4
- package/dist/runtime/components/ChatPromptSubmit.vue +10 -10
- package/dist/runtime/components/Checkbox.vue +33 -33
- package/dist/runtime/components/CheckboxGroup.vue +32 -32
- package/dist/runtime/components/Chip.vue +11 -11
- package/dist/runtime/components/Collapsible.vue +9 -9
- package/dist/runtime/components/ColorPicker.vue +30 -30
- package/dist/runtime/components/CommandPalette.vue +117 -117
- package/dist/runtime/components/Container.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue +22 -22
- package/dist/runtime/components/ContextMenuContent.vue +105 -105
- package/dist/runtime/components/DashboardGroup.vue +3 -3
- package/dist/runtime/components/DashboardNavbar.vue +41 -41
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue +29 -29
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +24 -25
- package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardSearchButton.vue +63 -41
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +7 -1
- package/dist/runtime/components/DashboardSidebar.vue +77 -77
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +14 -17
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +4 -6
- package/dist/runtime/components/Drawer.vue +55 -55
- package/dist/runtime/components/DropdownMenu.vue +24 -24
- package/dist/runtime/components/DropdownMenuContent.vue +107 -107
- package/dist/runtime/components/Error.vue +57 -0
- package/dist/runtime/components/Error.vue.d.ts +52 -0
- package/dist/runtime/components/Form.vue +8 -8
- package/dist/runtime/components/Form.vue.d.ts +1 -1
- package/dist/runtime/components/FormField.vue +37 -37
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +34 -34
- package/dist/runtime/components/InputMenu.vue +163 -163
- package/dist/runtime/components/InputNumber.vue +49 -49
- package/dist/runtime/components/InputTags.vue +55 -55
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.vue +14 -14
- package/dist/runtime/components/LinkBase.vue +8 -8
- package/dist/runtime/components/Modal.vue +69 -69
- package/dist/runtime/components/NavigationMenu.vue +166 -166
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/PinInput.vue +20 -20
- package/dist/runtime/components/Popover.vue +17 -17
- package/dist/runtime/components/Progress.vue +19 -19
- package/dist/runtime/components/RadioGroup.vue +43 -43
- package/dist/runtime/components/Select.vue +96 -96
- package/dist/runtime/components/SelectMenu.vue +130 -130
- package/dist/runtime/components/Separator.vue +15 -15
- package/dist/runtime/components/Skeleton.vue +10 -10
- package/dist/runtime/components/Slideover.vue +76 -76
- package/dist/runtime/components/Slider.vue +27 -27
- package/dist/runtime/components/Stepper.vue +51 -51
- package/dist/runtime/components/Switch.vue +33 -33
- package/dist/runtime/components/Table.vue +77 -77
- package/dist/runtime/components/Tabs.vue +37 -37
- package/dist/runtime/components/Textarea.vue +33 -33
- package/dist/runtime/components/Timeline.vue +38 -38
- package/dist/runtime/components/Toast.vue +69 -69
- package/dist/runtime/components/Toaster.vue +28 -28
- package/dist/runtime/components/Tooltip.vue +19 -19
- package/dist/runtime/components/Tree.vue +60 -60
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeImage.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue +175 -0
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +53 -0
- package/dist/runtime/components/content/ContentSearch.vue +184 -0
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +111 -0
- package/dist/runtime/components/content/ContentSearchButton.vue +95 -0
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +12 -0
- package/dist/runtime/components/content/ContentSurround.vue +61 -0
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -0
- package/dist/runtime/components/content/ContentToc.vue +146 -0
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue +24 -0
- package/dist/runtime/components/prose/A.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Accordion.vue +43 -0
- package/dist/runtime/components/prose/Accordion.vue.d.ts +16 -0
- package/dist/runtime/components/prose/AccordionItem.vue +25 -0
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Badge.vue +21 -0
- package/dist/runtime/components/prose/Badge.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Blockquote.vue +21 -0
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Callout.vue +60 -0
- package/dist/runtime/components/prose/Callout.vue.d.ts +26 -0
- package/dist/runtime/components/prose/Card.vue +83 -0
- package/dist/runtime/components/prose/Card.vue.d.ts +30 -0
- package/dist/runtime/components/prose/CardGroup.vue +21 -0
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Code.vue +23 -0
- package/dist/runtime/components/prose/Code.vue.d.ts +22 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +44 -0
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +46 -0
- package/dist/runtime/components/prose/CodeGroup.vue +70 -0
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +37 -0
- package/dist/runtime/components/prose/CodeIcon.vue +28 -0
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +24 -0
- package/dist/runtime/components/prose/CodePreview.vue +28 -0
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +19 -0
- package/dist/runtime/components/prose/CodeTree.vue +160 -0
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +30 -0
- package/dist/runtime/components/prose/Collapsible.vue +41 -0
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +38 -0
- package/dist/runtime/components/prose/Em.vue +19 -0
- package/dist/runtime/components/prose/Em.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Field.vue +48 -0
- package/dist/runtime/components/prose/Field.vue.d.ts +39 -0
- package/dist/runtime/components/prose/FieldGroup.vue +23 -0
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +18 -0
- package/dist/runtime/components/prose/H1.vue +28 -0
- package/dist/runtime/components/prose/H1.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H2.vue +32 -0
- package/dist/runtime/components/prose/H2.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H3.vue +32 -0
- package/dist/runtime/components/prose/H3.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H4.vue +28 -0
- package/dist/runtime/components/prose/H4.vue.d.ts +19 -0
- package/dist/runtime/components/prose/Hr.vue +18 -0
- package/dist/runtime/components/prose/Hr.vue.d.ts +5 -0
- package/dist/runtime/components/prose/Icon.vue +19 -0
- package/dist/runtime/components/prose/Icon.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Img.vue +40 -0
- package/dist/runtime/components/prose/Img.vue.d.ts +9 -0
- package/dist/runtime/components/prose/Kbd.vue +19 -0
- package/dist/runtime/components/prose/Kbd.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Li.vue +21 -0
- package/dist/runtime/components/prose/Li.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ol.vue +21 -0
- package/dist/runtime/components/prose/Ol.vue.d.ts +13 -0
- package/dist/runtime/components/prose/P.vue +21 -0
- package/dist/runtime/components/prose/P.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Pre.vue +63 -0
- package/dist/runtime/components/prose/Pre.vue.d.ts +25 -0
- package/dist/runtime/components/prose/Script.vue +12 -0
- package/dist/runtime/components/prose/Script.vue.d.ts +12 -0
- package/dist/runtime/components/prose/Steps.vue +22 -0
- package/dist/runtime/components/prose/Steps.vue.d.ts +22 -0
- package/dist/runtime/components/prose/Strong.vue +21 -0
- package/dist/runtime/components/prose/Strong.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Table.vue +24 -0
- package/dist/runtime/components/prose/Table.vue.d.ts +18 -0
- package/dist/runtime/components/prose/Tabs.vue +78 -0
- package/dist/runtime/components/prose/Tabs.vue.d.ts +36 -0
- package/dist/runtime/components/prose/TabsItem.vue +25 -0
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Tbody.vue +21 -0
- package/dist/runtime/components/prose/Tbody.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Td.vue +21 -0
- package/dist/runtime/components/prose/Td.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Th.vue +21 -0
- package/dist/runtime/components/prose/Th.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Thead.vue +21 -0
- package/dist/runtime/components/prose/Thead.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Tr.vue +21 -0
- package/dist/runtime/components/prose/Tr.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ul.vue +21 -0
- package/dist/runtime/components/prose/Ul.vue.d.ts +13 -0
- package/dist/runtime/components/prose/callout/Caution.vue +11 -0
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Note.vue +11 -0
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Tip.vue +11 -0
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Warning.vue +11 -0
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +14 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/usePortal.d.ts +1 -1
- package/dist/runtime/composables/useResizable.d.ts +1 -1
- package/dist/runtime/inertia/components/Link.vue +12 -12
- package/dist/runtime/inertia/components/LinkBase.vue +15 -15
- package/dist/runtime/types/app.config.d.ts +6 -6
- package/dist/runtime/types/content.d.ts +4 -1
- package/dist/runtime/types/content.js +4 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/prose.d.ts +42 -1
- package/dist/runtime/types/prose.js +42 -0
- package/dist/runtime/types/tv.d.ts +2 -2
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +13 -4
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/Link.vue +31 -31
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +7 -7
- package/dist/shared/{ui.BcVNrqyb.mjs → ui.DQZ75GCP.mjs} +183 -180
- package/dist/unplugin.mjs +9 -9
- package/dist/vite.mjs +1 -1
- package/package.json +8 -9
- package/vue-plugin.d.ts +5 -5
|
@@ -89,36 +89,36 @@ function onUpdate(value) {
|
|
|
89
89
|
</script>
|
|
90
90
|
|
|
91
91
|
<template>
|
|
92
|
-
<CheckboxGroupRoot
|
|
93
|
-
:id="id"
|
|
94
|
-
v-bind="rootProps"
|
|
95
|
-
:name="name"
|
|
96
|
-
:disabled="disabled"
|
|
97
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
98
|
-
@update:model-value="onUpdate"
|
|
99
|
-
>
|
|
100
|
-
<fieldset :class="ui.fieldset({ class: props.ui?.fieldset })" v-bind="ariaAttrs">
|
|
101
|
-
<legend v-if="legend || !!slots.legend" :class="ui.legend({ class: props.ui?.legend })">
|
|
102
|
-
<slot name="legend">
|
|
103
|
-
{{ legend }}
|
|
104
|
-
</slot>
|
|
105
|
-
</legend>
|
|
106
|
-
|
|
107
|
-
<UCheckbox
|
|
108
|
-
v-for="item in normalizedItems"
|
|
109
|
-
:key="item.value"
|
|
110
|
-
v-bind="{ ...item, ...checkboxProps }"
|
|
111
|
-
:color="color"
|
|
112
|
-
:size="size"
|
|
113
|
-
:name="name"
|
|
114
|
-
:disabled="item.disabled || disabled"
|
|
115
|
-
:ui="{ ...props.ui ? omit(props.ui, ['root']) : void 0, ...item.ui || {} }"
|
|
116
|
-
:class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class] })"
|
|
117
|
-
>
|
|
118
|
-
<template v-for="(_, name) in proxySlots" #[name]>
|
|
119
|
-
<slot :name="name" :item="item" />
|
|
120
|
-
</template>
|
|
121
|
-
</UCheckbox>
|
|
122
|
-
</fieldset>
|
|
123
|
-
</CheckboxGroupRoot>
|
|
92
|
+
<CheckboxGroupRoot
|
|
93
|
+
:id="id"
|
|
94
|
+
v-bind="rootProps"
|
|
95
|
+
:name="name"
|
|
96
|
+
:disabled="disabled"
|
|
97
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
98
|
+
@update:model-value="onUpdate"
|
|
99
|
+
>
|
|
100
|
+
<fieldset :class="ui.fieldset({ class: props.ui?.fieldset })" v-bind="ariaAttrs">
|
|
101
|
+
<legend v-if="legend || !!slots.legend" :class="ui.legend({ class: props.ui?.legend })">
|
|
102
|
+
<slot name="legend">
|
|
103
|
+
{{ legend }}
|
|
104
|
+
</slot>
|
|
105
|
+
</legend>
|
|
106
|
+
|
|
107
|
+
<UCheckbox
|
|
108
|
+
v-for="item in normalizedItems"
|
|
109
|
+
:key="item.value"
|
|
110
|
+
v-bind="{ ...item, ...checkboxProps }"
|
|
111
|
+
:color="color"
|
|
112
|
+
:size="size"
|
|
113
|
+
:name="name"
|
|
114
|
+
:disabled="item.disabled || disabled"
|
|
115
|
+
:ui="{ ...props.ui ? omit(props.ui, ['root']) : void 0, ...item.ui || {} }"
|
|
116
|
+
:class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class] })"
|
|
117
|
+
>
|
|
118
|
+
<template v-for="(_, name) in proxySlots" #[name]>
|
|
119
|
+
<slot :name="name" :item="item" />
|
|
120
|
+
</template>
|
|
121
|
+
</UCheckbox>
|
|
122
|
+
</fieldset>
|
|
123
|
+
</CheckboxGroupRoot>
|
|
124
124
|
</template>
|
|
@@ -34,15 +34,15 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.chip || {} })
|
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
<template>
|
|
37
|
-
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
38
|
-
<Slot v-bind="$attrs">
|
|
39
|
-
<slot />
|
|
40
|
-
</Slot>
|
|
41
|
-
|
|
42
|
-
<span v-if="show" :class="ui.base({ class: props.ui?.base })">
|
|
43
|
-
<slot name="content">
|
|
44
|
-
{{ text }}
|
|
45
|
-
</slot>
|
|
46
|
-
</span>
|
|
47
|
-
</Primitive>
|
|
37
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
38
|
+
<Slot v-bind="$attrs">
|
|
39
|
+
<slot />
|
|
40
|
+
</Slot>
|
|
41
|
+
|
|
42
|
+
<span v-if="show" :class="ui.base({ class: props.ui?.base })">
|
|
43
|
+
<slot name="content">
|
|
44
|
+
{{ text }}
|
|
45
|
+
</slot>
|
|
46
|
+
</span>
|
|
47
|
+
</Primitive>
|
|
48
48
|
</template>
|
|
@@ -25,13 +25,13 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.collapsible |
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<template>
|
|
28
|
-
<CollapsibleRoot v-slot="{ open }" v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
29
|
-
<CollapsibleTrigger v-if="!!slots.default" as-child>
|
|
30
|
-
<slot :open="open" />
|
|
31
|
-
</CollapsibleTrigger>
|
|
32
|
-
|
|
33
|
-
<CollapsibleContent :class="ui.content({ class: props.ui?.content })">
|
|
34
|
-
<slot name="content" />
|
|
35
|
-
</CollapsibleContent>
|
|
36
|
-
</CollapsibleRoot>
|
|
28
|
+
<CollapsibleRoot v-slot="{ open }" v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
29
|
+
<CollapsibleTrigger v-if="!!slots.default" as-child>
|
|
30
|
+
<slot :open="open" />
|
|
31
|
+
</CollapsibleTrigger>
|
|
32
|
+
|
|
33
|
+
<CollapsibleContent :class="ui.content({ class: props.ui?.content })">
|
|
34
|
+
<slot name="content" />
|
|
35
|
+
</CollapsibleContent>
|
|
36
|
+
</CollapsibleRoot>
|
|
37
37
|
</template>
|
|
@@ -179,36 +179,36 @@ const trackThumbStyle = computed(() => ({
|
|
|
179
179
|
</script>
|
|
180
180
|
|
|
181
181
|
<template>
|
|
182
|
-
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })" :data-disabled="disabled ? true : void 0">
|
|
183
|
-
<div :class="ui.picker({ class: props.ui?.picker })">
|
|
184
|
-
<div
|
|
185
|
-
ref="selectorRef"
|
|
186
|
-
:class="ui.selector({ class: props.ui?.selector })"
|
|
187
|
-
:style="selectorStyle"
|
|
188
|
-
>
|
|
189
|
-
<div :class="ui.selectorBackground({ class: props.ui?.selectorBackground })" data-color-picker-background>
|
|
190
|
-
<div
|
|
191
|
-
ref="selectorThumbRef"
|
|
192
|
-
:class="ui.selectorThumb({ class: props.ui?.selectorThumb })"
|
|
193
|
-
:style="selectorThumbStyle"
|
|
194
|
-
:data-disabled="disabled ? true : void 0"
|
|
195
|
-
/>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
<div
|
|
199
|
-
ref="trackRef"
|
|
200
|
-
:class="ui.track({ class: props.ui?.track })"
|
|
201
|
-
data-color-picker-track
|
|
202
|
-
>
|
|
203
|
-
<div
|
|
204
|
-
ref="trackThumbRef"
|
|
205
|
-
:class="ui.trackThumb({ class: props.ui?.trackThumb })"
|
|
206
|
-
:style="trackThumbStyle"
|
|
207
|
-
:data-disabled="disabled ? true : void 0"
|
|
208
|
-
/>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
</Primitive>
|
|
182
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })" :data-disabled="disabled ? true : void 0">
|
|
183
|
+
<div :class="ui.picker({ class: props.ui?.picker })">
|
|
184
|
+
<div
|
|
185
|
+
ref="selectorRef"
|
|
186
|
+
:class="ui.selector({ class: props.ui?.selector })"
|
|
187
|
+
:style="selectorStyle"
|
|
188
|
+
>
|
|
189
|
+
<div :class="ui.selectorBackground({ class: props.ui?.selectorBackground })" data-color-picker-background>
|
|
190
|
+
<div
|
|
191
|
+
ref="selectorThumbRef"
|
|
192
|
+
:class="ui.selectorThumb({ class: props.ui?.selectorThumb })"
|
|
193
|
+
:style="selectorThumbStyle"
|
|
194
|
+
:data-disabled="disabled ? true : void 0"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
<div
|
|
199
|
+
ref="trackRef"
|
|
200
|
+
:class="ui.track({ class: props.ui?.track })"
|
|
201
|
+
data-color-picker-track
|
|
202
|
+
>
|
|
203
|
+
<div
|
|
204
|
+
ref="trackThumbRef"
|
|
205
|
+
:class="ui.trackThumb({ class: props.ui?.trackThumb })"
|
|
206
|
+
:style="trackThumbStyle"
|
|
207
|
+
:data-disabled="disabled ? true : void 0"
|
|
208
|
+
/>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</Primitive>
|
|
212
212
|
</template>
|
|
213
213
|
|
|
214
214
|
<style scoped>
|
|
@@ -155,121 +155,121 @@ function onSelect(e, item) {
|
|
|
155
155
|
</script>
|
|
156
156
|
|
|
157
157
|
<template>
|
|
158
|
-
<ListboxRoot v-bind="rootProps" ref="listboxRootRef" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
159
|
-
<ListboxFilter v-model="searchTerm" as-child>
|
|
160
|
-
<UInput
|
|
161
|
-
:placeholder="placeholder"
|
|
162
|
-
variant="none"
|
|
163
|
-
:autofocus="autofocus"
|
|
164
|
-
v-bind="inputProps"
|
|
165
|
-
:icon="icon || appConfig.ui.icons.search"
|
|
166
|
-
:class="ui.input({ class: props.ui?.input })"
|
|
167
|
-
@keydown.backspace="onBackspace"
|
|
168
|
-
>
|
|
169
|
-
<template v-if="history?.length && (back || !!slots.back)" #leading>
|
|
170
|
-
<slot name="back" :ui="ui">
|
|
171
|
-
<UButton
|
|
172
|
-
:icon="backIcon || appConfig.ui.icons.arrowLeft"
|
|
173
|
-
color="neutral"
|
|
174
|
-
variant="link"
|
|
175
|
-
:aria-label="t('commandPalette.back')"
|
|
176
|
-
v-bind="typeof back === 'object' ? back : {}"
|
|
177
|
-
:class="ui.back({ class: props.ui?.back })"
|
|
178
|
-
@click="navigateBack"
|
|
179
|
-
/>
|
|
180
|
-
</slot>
|
|
181
|
-
</template>
|
|
182
|
-
|
|
183
|
-
<template v-if="close || !!slots.close" #trailing>
|
|
184
|
-
<slot name="close" :ui="ui">
|
|
185
|
-
<UButton
|
|
186
|
-
v-if="close"
|
|
187
|
-
:icon="closeIcon || appConfig.ui.icons.close"
|
|
188
|
-
color="neutral"
|
|
189
|
-
variant="ghost"
|
|
190
|
-
:aria-label="t('commandPalette.close')"
|
|
191
|
-
v-bind="typeof close === 'object' ? close : {}"
|
|
192
|
-
:class="ui.close({ class: props.ui?.close })"
|
|
193
|
-
@click="emits('update:open', false)"
|
|
194
|
-
/>
|
|
195
|
-
</slot>
|
|
196
|
-
</template>
|
|
197
|
-
</UInput>
|
|
198
|
-
</ListboxFilter>
|
|
199
|
-
|
|
200
|
-
<ListboxContent :class="ui.content({ class: props.ui?.content })">
|
|
201
|
-
<div v-if="filteredGroups?.length" role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
202
|
-
<ListboxGroup v-for="group in filteredGroups" :key="`group-${group.id}`" :class="ui.group({ class: props.ui?.group })">
|
|
203
|
-
<ListboxGroupLabel v-if="get(group, props.labelKey)" :class="ui.label({ class: props.ui?.label })">
|
|
204
|
-
{{ get(group, props.labelKey) }}
|
|
205
|
-
</ListboxGroupLabel>
|
|
206
|
-
|
|
207
|
-
<ListboxItem
|
|
208
|
-
v-for="(item, index) in group.items"
|
|
209
|
-
:key="`group-${group.id}-${index}`"
|
|
210
|
-
:value="omit(item, ['matches', 'group', 'onSelect', 'labelHtml', 'suffixHtml', 'children'])"
|
|
211
|
-
:disabled="item.disabled"
|
|
212
|
-
as-child
|
|
213
|
-
@select="onSelect($event, item)"
|
|
214
|
-
>
|
|
215
|
-
<ULink v-slot="{ active, ...slotProps }" v-bind="pickLinkProps(item)" custom>
|
|
216
|
-
<ULinkBase v-bind="slotProps" :class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class], active: active || item.active })">
|
|
217
|
-
<slot :name="item.slot || group.slot || 'item'" :item="item" :index="index">
|
|
218
|
-
<slot :name="item.slot ? `${item.slot}-leading` : group.slot ? `${group.slot}-leading` : `item-leading`" :item="item" :index="index">
|
|
219
|
-
<UIcon v-if="item.loading" :name="loadingIcon || appConfig.ui.icons.loading" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon], loading: true })" />
|
|
220
|
-
<UIcon v-else-if="item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon], active: active || item.active })" />
|
|
221
|
-
<UAvatar v-else-if="item.avatar" :size="item.ui?.itemLeadingAvatarSize || props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: [props.ui?.itemLeadingAvatar, item.ui?.itemLeadingAvatar], active: active || item.active })" />
|
|
222
|
-
<UChip
|
|
223
|
-
v-else-if="item.chip"
|
|
224
|
-
:size="item.ui?.itemLeadingChipSize || props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
225
|
-
inset
|
|
226
|
-
standalone
|
|
227
|
-
v-bind="item.chip"
|
|
228
|
-
:class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip], active: active || item.active })"
|
|
229
|
-
/>
|
|
230
|
-
</slot>
|
|
231
|
-
|
|
232
|
-
<span v-if="item.labelHtml || get(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : group.slot ? `${group.slot}-label` : `item-label`]" :class="ui.itemLabel({ class: [props.ui?.itemLabel, item.ui?.itemLabel], active: active || item.active })">
|
|
233
|
-
<slot :name="item.slot ? `${item.slot}-label` : group.slot ? `${group.slot}-label` : `item-label`" :item="item" :index="index">
|
|
234
|
-
<span v-if="item.prefix" :class="ui.itemLabelPrefix({ class: [props.ui?.itemLabelPrefix, item.ui?.itemLabelPrefix] })">{{ item.prefix }}</span>
|
|
235
|
-
|
|
236
|
-
<span :class="ui.itemLabelBase({ class: [props.ui?.itemLabelBase, item.ui?.itemLabelBase], active: active || item.active })" v-html="item.labelHtml || get(item, props.labelKey)" />
|
|
237
|
-
|
|
238
|
-
<span :class="ui.itemLabelSuffix({ class: [props.ui?.itemLabelSuffix, item.ui?.itemLabelSuffix], active: active || item.active })" v-html="item.suffixHtml || item.suffix" />
|
|
239
|
-
</slot>
|
|
240
|
-
</span>
|
|
241
|
-
|
|
242
|
-
<span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, item.ui?.itemTrailing] })">
|
|
243
|
-
<slot :name="item.slot ? `${item.slot}-trailing` : group.slot ? `${group.slot}-trailing` : `item-trailing`" :item="item" :index="index">
|
|
244
|
-
<UIcon
|
|
245
|
-
v-if="item.children && item.children.length > 0"
|
|
246
|
-
:name="trailingIcon || appConfig.ui.icons.chevronRight"
|
|
247
|
-
:class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })"
|
|
248
|
-
/>
|
|
249
|
-
|
|
250
|
-
<span v-else-if="item.kbds?.length" :class="ui.itemTrailingKbds({ class: [props.ui?.itemTrailingKbds, item.ui?.itemTrailingKbds] })">
|
|
251
|
-
<UKbd v-for="(kbd, kbdIndex) in item.kbds" :key="kbdIndex" :size="item.ui?.itemTrailingKbdsSize || props.ui?.itemTrailingKbdsSize || ui.itemTrailingKbdsSize()" v-bind="typeof kbd === 'string' ? { value: kbd } : kbd" />
|
|
252
|
-
</span>
|
|
253
|
-
|
|
254
|
-
<UIcon v-else-if="group.highlightedIcon" :name="group.highlightedIcon" :class="ui.itemTrailingHighlightedIcon({ class: [props.ui?.itemTrailingHighlightedIcon, item.ui?.itemTrailingHighlightedIcon] })" />
|
|
255
|
-
</slot>
|
|
256
|
-
|
|
257
|
-
<ListboxItemIndicator v-if="!item.children?.length" as-child>
|
|
258
|
-
<UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })" />
|
|
259
|
-
</ListboxItemIndicator>
|
|
260
|
-
</span>
|
|
261
|
-
</slot>
|
|
262
|
-
</ULinkBase>
|
|
263
|
-
</ULink>
|
|
264
|
-
</ListboxItem>
|
|
265
|
-
</ListboxGroup>
|
|
266
|
-
</div>
|
|
267
|
-
|
|
268
|
-
<div v-else :class="ui.empty({ class: props.ui?.empty })">
|
|
269
|
-
<slot name="empty" :search-term="searchTerm">
|
|
270
|
-
{{ searchTerm ? t("commandPalette.noMatch", { searchTerm }) : t("commandPalette.noData") }}
|
|
271
|
-
</slot>
|
|
272
|
-
</div>
|
|
273
|
-
</ListboxContent>
|
|
274
|
-
</ListboxRoot>
|
|
158
|
+
<ListboxRoot v-bind="rootProps" ref="listboxRootRef" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
159
|
+
<ListboxFilter v-model="searchTerm" as-child>
|
|
160
|
+
<UInput
|
|
161
|
+
:placeholder="placeholder"
|
|
162
|
+
variant="none"
|
|
163
|
+
:autofocus="autofocus"
|
|
164
|
+
v-bind="inputProps"
|
|
165
|
+
:icon="icon || appConfig.ui.icons.search"
|
|
166
|
+
:class="ui.input({ class: props.ui?.input })"
|
|
167
|
+
@keydown.backspace="onBackspace"
|
|
168
|
+
>
|
|
169
|
+
<template v-if="history?.length && (back || !!slots.back)" #leading>
|
|
170
|
+
<slot name="back" :ui="ui">
|
|
171
|
+
<UButton
|
|
172
|
+
:icon="backIcon || appConfig.ui.icons.arrowLeft"
|
|
173
|
+
color="neutral"
|
|
174
|
+
variant="link"
|
|
175
|
+
:aria-label="t('commandPalette.back')"
|
|
176
|
+
v-bind="typeof back === 'object' ? back : {}"
|
|
177
|
+
:class="ui.back({ class: props.ui?.back })"
|
|
178
|
+
@click="navigateBack"
|
|
179
|
+
/>
|
|
180
|
+
</slot>
|
|
181
|
+
</template>
|
|
182
|
+
|
|
183
|
+
<template v-if="close || !!slots.close" #trailing>
|
|
184
|
+
<slot name="close" :ui="ui">
|
|
185
|
+
<UButton
|
|
186
|
+
v-if="close"
|
|
187
|
+
:icon="closeIcon || appConfig.ui.icons.close"
|
|
188
|
+
color="neutral"
|
|
189
|
+
variant="ghost"
|
|
190
|
+
:aria-label="t('commandPalette.close')"
|
|
191
|
+
v-bind="typeof close === 'object' ? close : {}"
|
|
192
|
+
:class="ui.close({ class: props.ui?.close })"
|
|
193
|
+
@click="emits('update:open', false)"
|
|
194
|
+
/>
|
|
195
|
+
</slot>
|
|
196
|
+
</template>
|
|
197
|
+
</UInput>
|
|
198
|
+
</ListboxFilter>
|
|
199
|
+
|
|
200
|
+
<ListboxContent :class="ui.content({ class: props.ui?.content })">
|
|
201
|
+
<div v-if="filteredGroups?.length" role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
202
|
+
<ListboxGroup v-for="group in filteredGroups" :key="`group-${group.id}`" :class="ui.group({ class: props.ui?.group })">
|
|
203
|
+
<ListboxGroupLabel v-if="get(group, props.labelKey)" :class="ui.label({ class: props.ui?.label })">
|
|
204
|
+
{{ get(group, props.labelKey) }}
|
|
205
|
+
</ListboxGroupLabel>
|
|
206
|
+
|
|
207
|
+
<ListboxItem
|
|
208
|
+
v-for="(item, index) in group.items"
|
|
209
|
+
:key="`group-${group.id}-${index}`"
|
|
210
|
+
:value="omit(item, ['matches', 'group', 'onSelect', 'labelHtml', 'suffixHtml', 'children'])"
|
|
211
|
+
:disabled="item.disabled"
|
|
212
|
+
as-child
|
|
213
|
+
@select="onSelect($event, item)"
|
|
214
|
+
>
|
|
215
|
+
<ULink v-slot="{ active, ...slotProps }" v-bind="pickLinkProps(item)" custom>
|
|
216
|
+
<ULinkBase v-bind="slotProps" :class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class], active: active || item.active })">
|
|
217
|
+
<slot :name="item.slot || group.slot || 'item'" :item="item" :index="index">
|
|
218
|
+
<slot :name="item.slot ? `${item.slot}-leading` : group.slot ? `${group.slot}-leading` : `item-leading`" :item="item" :index="index">
|
|
219
|
+
<UIcon v-if="item.loading" :name="loadingIcon || appConfig.ui.icons.loading" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon], loading: true })" />
|
|
220
|
+
<UIcon v-else-if="item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon], active: active || item.active })" />
|
|
221
|
+
<UAvatar v-else-if="item.avatar" :size="item.ui?.itemLeadingAvatarSize || props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: [props.ui?.itemLeadingAvatar, item.ui?.itemLeadingAvatar], active: active || item.active })" />
|
|
222
|
+
<UChip
|
|
223
|
+
v-else-if="item.chip"
|
|
224
|
+
:size="item.ui?.itemLeadingChipSize || props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
225
|
+
inset
|
|
226
|
+
standalone
|
|
227
|
+
v-bind="item.chip"
|
|
228
|
+
:class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip], active: active || item.active })"
|
|
229
|
+
/>
|
|
230
|
+
</slot>
|
|
231
|
+
|
|
232
|
+
<span v-if="item.labelHtml || get(item, props.labelKey) || !!slots[item.slot ? `${item.slot}-label` : group.slot ? `${group.slot}-label` : `item-label`]" :class="ui.itemLabel({ class: [props.ui?.itemLabel, item.ui?.itemLabel], active: active || item.active })">
|
|
233
|
+
<slot :name="item.slot ? `${item.slot}-label` : group.slot ? `${group.slot}-label` : `item-label`" :item="item" :index="index">
|
|
234
|
+
<span v-if="item.prefix" :class="ui.itemLabelPrefix({ class: [props.ui?.itemLabelPrefix, item.ui?.itemLabelPrefix] })">{{ item.prefix }}</span>
|
|
235
|
+
|
|
236
|
+
<span :class="ui.itemLabelBase({ class: [props.ui?.itemLabelBase, item.ui?.itemLabelBase], active: active || item.active })" v-html="item.labelHtml || get(item, props.labelKey)" />
|
|
237
|
+
|
|
238
|
+
<span :class="ui.itemLabelSuffix({ class: [props.ui?.itemLabelSuffix, item.ui?.itemLabelSuffix], active: active || item.active })" v-html="item.suffixHtml || item.suffix" />
|
|
239
|
+
</slot>
|
|
240
|
+
</span>
|
|
241
|
+
|
|
242
|
+
<span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, item.ui?.itemTrailing] })">
|
|
243
|
+
<slot :name="item.slot ? `${item.slot}-trailing` : group.slot ? `${group.slot}-trailing` : `item-trailing`" :item="item" :index="index">
|
|
244
|
+
<UIcon
|
|
245
|
+
v-if="item.children && item.children.length > 0"
|
|
246
|
+
:name="trailingIcon || appConfig.ui.icons.chevronRight"
|
|
247
|
+
:class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })"
|
|
248
|
+
/>
|
|
249
|
+
|
|
250
|
+
<span v-else-if="item.kbds?.length" :class="ui.itemTrailingKbds({ class: [props.ui?.itemTrailingKbds, item.ui?.itemTrailingKbds] })">
|
|
251
|
+
<UKbd v-for="(kbd, kbdIndex) in item.kbds" :key="kbdIndex" :size="item.ui?.itemTrailingKbdsSize || props.ui?.itemTrailingKbdsSize || ui.itemTrailingKbdsSize()" v-bind="typeof kbd === 'string' ? { value: kbd } : kbd" />
|
|
252
|
+
</span>
|
|
253
|
+
|
|
254
|
+
<UIcon v-else-if="group.highlightedIcon" :name="group.highlightedIcon" :class="ui.itemTrailingHighlightedIcon({ class: [props.ui?.itemTrailingHighlightedIcon, item.ui?.itemTrailingHighlightedIcon] })" />
|
|
255
|
+
</slot>
|
|
256
|
+
|
|
257
|
+
<ListboxItemIndicator v-if="!item.children?.length" as-child>
|
|
258
|
+
<UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })" />
|
|
259
|
+
</ListboxItemIndicator>
|
|
260
|
+
</span>
|
|
261
|
+
</slot>
|
|
262
|
+
</ULinkBase>
|
|
263
|
+
</ULink>
|
|
264
|
+
</ListboxItem>
|
|
265
|
+
</ListboxGroup>
|
|
266
|
+
</div>
|
|
267
|
+
|
|
268
|
+
<div v-else :class="ui.empty({ class: props.ui?.empty })">
|
|
269
|
+
<slot name="empty" :search-term="searchTerm">
|
|
270
|
+
{{ searchTerm ? t("commandPalette.noMatch", { searchTerm }) : t("commandPalette.noData") }}
|
|
271
|
+
</slot>
|
|
272
|
+
</div>
|
|
273
|
+
</ListboxContent>
|
|
274
|
+
</ListboxRoot>
|
|
275
275
|
</template>
|
|
@@ -17,7 +17,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.container ||
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
|
-
<Primitive :as="as" :class="ui({ class: props.class })">
|
|
21
|
-
<slot />
|
|
22
|
-
</Primitive>
|
|
20
|
+
<Primitive :as="as" :class="ui({ class: props.class })">
|
|
21
|
+
<slot />
|
|
22
|
+
</Primitive>
|
|
23
23
|
</template>
|
|
@@ -36,26 +36,26 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.contextMenu |
|
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
|
-
<ContextMenuRoot v-bind="rootProps">
|
|
40
|
-
<ContextMenuTrigger v-if="!!slots.default" as-child :disabled="disabled" :class="props.class">
|
|
41
|
-
<slot />
|
|
42
|
-
</ContextMenuTrigger>
|
|
43
|
-
|
|
44
|
-
<UContextMenuContent
|
|
45
|
-
:class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })"
|
|
46
|
-
:ui="ui"
|
|
47
|
-
:ui-override="props.ui"
|
|
48
|
-
v-bind="contentProps"
|
|
49
|
-
:items="items"
|
|
50
|
-
:portal="portal"
|
|
51
|
-
:label-key="labelKey"
|
|
52
|
-
:checked-icon="checkedIcon"
|
|
53
|
-
:loading-icon="loadingIcon"
|
|
54
|
-
:external-icon="externalIcon"
|
|
55
|
-
>
|
|
56
|
-
<template v-for="(_, name) in proxySlots" #[name]="slotData">
|
|
57
|
-
<slot :name="name" v-bind="slotData" />
|
|
58
|
-
</template>
|
|
59
|
-
</UContextMenuContent>
|
|
60
|
-
</ContextMenuRoot>
|
|
39
|
+
<ContextMenuRoot v-bind="rootProps">
|
|
40
|
+
<ContextMenuTrigger v-if="!!slots.default" as-child :disabled="disabled" :class="props.class">
|
|
41
|
+
<slot />
|
|
42
|
+
</ContextMenuTrigger>
|
|
43
|
+
|
|
44
|
+
<UContextMenuContent
|
|
45
|
+
:class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })"
|
|
46
|
+
:ui="ui"
|
|
47
|
+
:ui-override="props.ui"
|
|
48
|
+
v-bind="contentProps"
|
|
49
|
+
:items="items"
|
|
50
|
+
:portal="portal"
|
|
51
|
+
:label-key="labelKey"
|
|
52
|
+
:checked-icon="checkedIcon"
|
|
53
|
+
:loading-icon="loadingIcon"
|
|
54
|
+
:external-icon="externalIcon"
|
|
55
|
+
>
|
|
56
|
+
<template v-for="(_, name) in proxySlots" #[name]="slotData">
|
|
57
|
+
<slot :name="name" v-bind="slotData" />
|
|
58
|
+
</template>
|
|
59
|
+
</UContextMenuContent>
|
|
60
|
+
</ContextMenuRoot>
|
|
61
61
|
</template>
|