@eslamdevui/ui 3.2.0-beta.2 → 3.2.0
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 +0 -5
- package/.nuxt/ui/badge.ts +0 -5
- package/.nuxt/ui/button-group.ts +0 -13
- package/.nuxt/ui/button.ts +0 -5
- package/.nuxt/ui/carousel.ts +0 -5
- package/.nuxt/ui/content-surround.ts +0 -5
- package/.nuxt/ui/dashboard-navbar.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar.ts +0 -10
- package/.nuxt/ui/index.ts +1 -48
- package/.nuxt/ui/input-menu.ts +0 -9
- package/.nuxt/ui/input-number.ts +0 -5
- package/.nuxt/ui/input-tags.ts +0 -9
- package/.nuxt/ui/input.ts +0 -9
- package/.nuxt/ui/select-menu.ts +0 -9
- package/.nuxt/ui/select.ts +0 -9
- package/.nuxt/ui/textarea.ts +0 -9
- package/.nuxt/ui/toast.ts +0 -5
- 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 -236
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- 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 +55 -55
- package/dist/runtime/components/ChatPrompt.vue +26 -26
- 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 +40 -40
- package/dist/runtime/components/DashboardPanel.vue +27 -27
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +20 -20
- package/dist/runtime/components/DashboardSearchButton.vue +43 -43
- package/dist/runtime/components/DashboardSidebar.vue +74 -74
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue +7 -7
- 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 +22 -22
- package/dist/runtime/components/Form.vue +8 -8
- 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/ColorModeButton.vue +16 -16
- 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/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/content/ContentNavigation.vue +109 -109
- package/dist/runtime/components/content/ContentSearch.vue +25 -25
- package/dist/runtime/components/content/ContentSearchButton.vue +38 -38
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +12 -12
- package/dist/runtime/components/content/ContentSurround.vue +29 -29
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -59
- package/dist/runtime/components/content/ContentToc.vue +68 -68
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -88
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/prose/A.vue +3 -3
- package/dist/runtime/components/prose/Accordion.vue +5 -5
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +3 -3
- package/dist/runtime/components/prose/Blockquote.vue +3 -3
- package/dist/runtime/components/prose/Callout.vue +27 -27
- package/dist/runtime/components/prose/Card.vue +43 -43
- package/dist/runtime/components/prose/CardGroup.vue +3 -3
- package/dist/runtime/components/prose/Code.vue +3 -3
- package/dist/runtime/components/prose/CodeCollapse.vue +16 -16
- package/dist/runtime/components/prose/CodeGroup.vue +15 -15
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodePreview.vue +9 -9
- package/dist/runtime/components/prose/CodeTree.vue +61 -61
- package/dist/runtime/components/prose/Collapsible.vue +15 -15
- package/dist/runtime/components/prose/Em.vue +1 -1
- package/dist/runtime/components/prose/Field.vue +23 -23
- package/dist/runtime/components/prose/FieldGroup.vue +3 -3
- package/dist/runtime/components/prose/H1.vue +6 -6
- package/dist/runtime/components/prose/H2.vue +10 -10
- package/dist/runtime/components/prose/H3.vue +10 -10
- package/dist/runtime/components/prose/H4.vue +6 -6
- package/dist/runtime/components/prose/Hr.vue +1 -1
- package/dist/runtime/components/prose/Icon.vue +1 -1
- package/dist/runtime/components/prose/Img.vue +8 -8
- package/dist/runtime/components/prose/Kbd.vue +1 -1
- package/dist/runtime/components/prose/Li.vue +3 -3
- package/dist/runtime/components/prose/Ol.vue +3 -3
- package/dist/runtime/components/prose/P.vue +3 -3
- package/dist/runtime/components/prose/Pre.vue +20 -20
- package/dist/runtime/components/prose/Script.vue +3 -3
- package/dist/runtime/components/prose/Steps.vue +3 -3
- package/dist/runtime/components/prose/Strong.vue +3 -3
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +14 -14
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +3 -3
- package/dist/runtime/components/prose/Td.vue +3 -3
- package/dist/runtime/components/prose/Th.vue +3 -3
- package/dist/runtime/components/prose/Thead.vue +3 -3
- package/dist/runtime/components/prose/Tr.vue +3 -3
- package/dist/runtime/components/prose/Ul.vue +3 -3
- package/dist/runtime/components/prose/callout/Caution.vue +3 -3
- package/dist/runtime/components/prose/callout/Note.vue +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue +3 -3
- 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/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/package.json +1 -1
- package/vue-plugin.d.ts +5 -5
- package/.nuxt/ui/content/content-navigation.ts +0 -339
- package/.nuxt/ui/content/content-search-button.ts +0 -6
- package/.nuxt/ui/content/content-search.ts +0 -6
- package/.nuxt/ui/content/content-surround.ts +0 -39
- package/.nuxt/ui/content/content-toc.ts +0 -150
- package/.nuxt/ui/content/index.ts +0 -5
- package/.nuxt/ui/error.ts +0 -9
- package/.nuxt/ui/prose/a.ts +0 -6
- package/.nuxt/ui/prose/accordion-item.ts +0 -3
- package/.nuxt/ui/prose/accordion.ts +0 -6
- package/.nuxt/ui/prose/badge.ts +0 -3
- package/.nuxt/ui/prose/blockquote.ts +0 -3
- package/.nuxt/ui/prose/callout.ts +0 -129
- package/.nuxt/ui/prose/card-group.ts +0 -3
- package/.nuxt/ui/prose/card.ts +0 -119
- package/.nuxt/ui/prose/code-collapse.ts +0 -19
- package/.nuxt/ui/prose/code-group.ts +0 -13
- package/.nuxt/ui/prose/code-icon.ts +0 -66
- package/.nuxt/ui/prose/code-preview.ts +0 -14
- package/.nuxt/ui/prose/code-tree.ts +0 -28
- package/.nuxt/ui/prose/code.ts +0 -27
- package/.nuxt/ui/prose/collapsible.ts +0 -12
- package/.nuxt/ui/prose/em.ts +0 -3
- package/.nuxt/ui/prose/field-group.ts +0 -3
- package/.nuxt/ui/prose/field.ts +0 -11
- package/.nuxt/ui/prose/h1.ts +0 -6
- package/.nuxt/ui/prose/h2.ts +0 -14
- package/.nuxt/ui/prose/h3.ts +0 -14
- package/.nuxt/ui/prose/h4.ts +0 -6
- package/.nuxt/ui/prose/hr.ts +0 -3
- package/.nuxt/ui/prose/icon.ts +0 -3
- package/.nuxt/ui/prose/img.ts +0 -3
- package/.nuxt/ui/prose/index.ts +0 -41
- package/.nuxt/ui/prose/kbd.ts +0 -3
- package/.nuxt/ui/prose/li.ts +0 -3
- package/.nuxt/ui/prose/ol.ts +0 -3
- package/.nuxt/ui/prose/p.ts +0 -3
- package/.nuxt/ui/prose/pre.ts +0 -17
- package/.nuxt/ui/prose/steps.ts +0 -19
- package/.nuxt/ui/prose/strong.ts +0 -3
- package/.nuxt/ui/prose/table.ts +0 -6
- package/.nuxt/ui/prose/tabs-item.ts +0 -3
- package/.nuxt/ui/prose/tabs.ts +0 -5
- package/.nuxt/ui/prose/tbody.ts +0 -3
- package/.nuxt/ui/prose/td.ts +0 -3
- package/.nuxt/ui/prose/th.ts +0 -3
- package/.nuxt/ui/prose/thead.ts +0 -3
- package/.nuxt/ui/prose/tr.ts +0 -3
- package/.nuxt/ui/prose/ul.ts +0 -3
|
@@ -195,134 +195,134 @@ defineExpose({
|
|
|
195
195
|
</script>
|
|
196
196
|
|
|
197
197
|
<template>
|
|
198
|
-
<DefineCreateItemTemplate>
|
|
199
|
-
<ComboboxGroup :class="ui.group({ class: props.ui?.group })">
|
|
200
|
-
<ComboboxItem
|
|
201
|
-
:class="ui.item({ class: props.ui?.item })"
|
|
202
|
-
:value="searchTerm"
|
|
203
|
-
@select.prevent="emits('create', searchTerm)"
|
|
204
|
-
>
|
|
205
|
-
<span :class="ui.itemLabel({ class: props.ui?.itemLabel })">
|
|
206
|
-
<slot name="create-item-label" :item="searchTerm">
|
|
207
|
-
{{ t("selectMenu.create", { label: searchTerm }) }}
|
|
208
|
-
</slot>
|
|
209
|
-
</span>
|
|
210
|
-
</ComboboxItem>
|
|
211
|
-
</ComboboxGroup>
|
|
212
|
-
</DefineCreateItemTemplate>
|
|
213
|
-
|
|
214
|
-
<ComboboxRoot
|
|
215
|
-
:id="id"
|
|
216
|
-
v-slot="{ modelValue, open }"
|
|
217
|
-
v-bind="{ ...rootProps, ...$attrs, ...ariaAttrs }"
|
|
218
|
-
ignore-filter
|
|
219
|
-
as-child
|
|
220
|
-
:name="name"
|
|
221
|
-
:disabled="disabled"
|
|
222
|
-
@update:model-value="onUpdate"
|
|
223
|
-
@update:open="onUpdateOpen"
|
|
224
|
-
>
|
|
225
|
-
<ComboboxAnchor as-child>
|
|
226
|
-
<ComboboxTrigger ref="triggerRef" :class="ui.base({ class: [props.ui?.base, props.class] })" tabindex="0">
|
|
227
|
-
<span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
228
|
-
<slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
|
|
229
|
-
<UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
230
|
-
<UAvatar v-else-if="!!avatar" :size="props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="avatar" :class="ui.itemLeadingAvatar({ class: props.ui?.itemLeadingAvatar })" />
|
|
231
|
-
</slot>
|
|
232
|
-
</span>
|
|
233
|
-
|
|
234
|
-
<slot :model-value="modelValue" :open="open">
|
|
235
|
-
<template v-for="displayedModelValue in [displayValue(modelValue)]" :key="displayedModelValue">
|
|
236
|
-
<span v-if="displayedModelValue !== void 0 && displayedModelValue !== null" :class="ui.value({ class: props.ui?.value })">
|
|
237
|
-
{{ displayedModelValue }}
|
|
238
|
-
</span>
|
|
239
|
-
<span v-else :class="ui.placeholder({ class: props.ui?.placeholder })">
|
|
240
|
-
{{ placeholder ?? "\xA0" }}
|
|
241
|
-
</span>
|
|
242
|
-
</template>
|
|
243
|
-
</slot>
|
|
244
|
-
|
|
245
|
-
<span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
|
|
246
|
-
<slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
|
|
247
|
-
<UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
|
|
248
|
-
</slot>
|
|
249
|
-
</span>
|
|
250
|
-
</ComboboxTrigger>
|
|
251
|
-
</ComboboxAnchor>
|
|
252
|
-
|
|
253
|
-
<ComboboxPortal v-bind="portalProps">
|
|
254
|
-
<ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
|
|
255
|
-
<FocusScope trapped :class="ui.focusScope({ class: props.ui?.focusScope })">
|
|
256
|
-
<slot name="content-top" />
|
|
257
|
-
|
|
258
|
-
<ComboboxInput v-if="!!searchInput" v-model="searchTerm" :display-value="() => searchTerm" as-child>
|
|
259
|
-
<UInput autofocus autocomplete="off" :size="size" v-bind="searchInputProps" :class="ui.input({ class: props.ui?.input })" />
|
|
260
|
-
</ComboboxInput>
|
|
261
|
-
|
|
262
|
-
<ComboboxEmpty :class="ui.empty({ class: props.ui?.empty })">
|
|
263
|
-
<slot name="empty" :search-term="searchTerm">
|
|
264
|
-
{{ searchTerm ? t("selectMenu.noMatch", { searchTerm }) : t("selectMenu.noData") }}
|
|
265
|
-
</slot>
|
|
266
|
-
</ComboboxEmpty>
|
|
267
|
-
|
|
268
|
-
<div role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
269
|
-
<ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'top'" />
|
|
270
|
-
|
|
271
|
-
<ComboboxGroup v-for="(group, groupIndex) in filteredGroups" :key="`group-${groupIndex}`" :class="ui.group({ class: props.ui?.group })">
|
|
272
|
-
<template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
|
|
273
|
-
<ComboboxLabel v-if="isSelectItem(item) && item.type === 'label'" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })">
|
|
274
|
-
{{ get(item, props.labelKey) }}
|
|
275
|
-
</ComboboxLabel>
|
|
276
|
-
|
|
277
|
-
<ComboboxSeparator v-else-if="isSelectItem(item) && item.type === 'separator'" :class="ui.separator({ class: [props.ui?.separator, item.ui?.separator, item.class] })" />
|
|
278
|
-
|
|
279
|
-
<ComboboxItem
|
|
280
|
-
v-else
|
|
281
|
-
:class="ui.item({ class: [props.ui?.item, isSelectItem(item) && item.ui?.item, isSelectItem(item) && item.class] })"
|
|
282
|
-
:disabled="isSelectItem(item) && item.disabled"
|
|
283
|
-
:value="props.valueKey && isSelectItem(item) ? get(item, props.valueKey) : item"
|
|
284
|
-
@select="onSelect($event, item)"
|
|
285
|
-
>
|
|
286
|
-
<slot name="item" :item="item" :index="index">
|
|
287
|
-
<slot name="item-leading" :item="item" :index="index">
|
|
288
|
-
<UIcon v-if="isSelectItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
|
|
289
|
-
<UAvatar v-else-if="isSelectItem(item) && 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] })" />
|
|
290
|
-
<UChip
|
|
291
|
-
v-else-if="isSelectItem(item) && item.chip"
|
|
292
|
-
:size="props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
293
|
-
inset
|
|
294
|
-
standalone
|
|
295
|
-
v-bind="item.chip"
|
|
296
|
-
:class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip] })"
|
|
297
|
-
/>
|
|
298
|
-
</slot>
|
|
299
|
-
|
|
300
|
-
<span :class="ui.itemLabel({ class: [props.ui?.itemLabel, isSelectItem(item) && item.ui?.itemLabel] })">
|
|
301
|
-
<slot name="item-label" :item="item" :index="index">
|
|
302
|
-
{{ isSelectItem(item) ? get(item, props.labelKey) : item }}
|
|
303
|
-
</slot>
|
|
304
|
-
</span>
|
|
305
|
-
|
|
306
|
-
<span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, isSelectItem(item) && item.ui?.itemTrailing] })">
|
|
307
|
-
<slot name="item-trailing" :item="item" :index="index" />
|
|
308
|
-
|
|
309
|
-
<ComboboxItemIndicator as-child>
|
|
310
|
-
<UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, isSelectItem(item) && item.ui?.itemTrailingIcon] })" />
|
|
311
|
-
</ComboboxItemIndicator>
|
|
312
|
-
</span>
|
|
313
|
-
</slot>
|
|
314
|
-
</ComboboxItem>
|
|
315
|
-
</template>
|
|
316
|
-
</ComboboxGroup>
|
|
317
|
-
|
|
318
|
-
<ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'bottom'" />
|
|
319
|
-
</div>
|
|
320
|
-
|
|
321
|
-
<slot name="content-bottom" />
|
|
322
|
-
</FocusScope>
|
|
323
|
-
|
|
324
|
-
<ComboboxArrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
|
|
325
|
-
</ComboboxContent>
|
|
326
|
-
</ComboboxPortal>
|
|
327
|
-
</ComboboxRoot>
|
|
198
|
+
<DefineCreateItemTemplate>
|
|
199
|
+
<ComboboxGroup :class="ui.group({ class: props.ui?.group })">
|
|
200
|
+
<ComboboxItem
|
|
201
|
+
:class="ui.item({ class: props.ui?.item })"
|
|
202
|
+
:value="searchTerm"
|
|
203
|
+
@select.prevent="emits('create', searchTerm)"
|
|
204
|
+
>
|
|
205
|
+
<span :class="ui.itemLabel({ class: props.ui?.itemLabel })">
|
|
206
|
+
<slot name="create-item-label" :item="searchTerm">
|
|
207
|
+
{{ t("selectMenu.create", { label: searchTerm }) }}
|
|
208
|
+
</slot>
|
|
209
|
+
</span>
|
|
210
|
+
</ComboboxItem>
|
|
211
|
+
</ComboboxGroup>
|
|
212
|
+
</DefineCreateItemTemplate>
|
|
213
|
+
|
|
214
|
+
<ComboboxRoot
|
|
215
|
+
:id="id"
|
|
216
|
+
v-slot="{ modelValue, open }"
|
|
217
|
+
v-bind="{ ...rootProps, ...$attrs, ...ariaAttrs }"
|
|
218
|
+
ignore-filter
|
|
219
|
+
as-child
|
|
220
|
+
:name="name"
|
|
221
|
+
:disabled="disabled"
|
|
222
|
+
@update:model-value="onUpdate"
|
|
223
|
+
@update:open="onUpdateOpen"
|
|
224
|
+
>
|
|
225
|
+
<ComboboxAnchor as-child>
|
|
226
|
+
<ComboboxTrigger ref="triggerRef" :class="ui.base({ class: [props.ui?.base, props.class] })" tabindex="0">
|
|
227
|
+
<span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
228
|
+
<slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
|
|
229
|
+
<UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
230
|
+
<UAvatar v-else-if="!!avatar" :size="props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="avatar" :class="ui.itemLeadingAvatar({ class: props.ui?.itemLeadingAvatar })" />
|
|
231
|
+
</slot>
|
|
232
|
+
</span>
|
|
233
|
+
|
|
234
|
+
<slot :model-value="modelValue" :open="open">
|
|
235
|
+
<template v-for="displayedModelValue in [displayValue(modelValue)]" :key="displayedModelValue">
|
|
236
|
+
<span v-if="displayedModelValue !== void 0 && displayedModelValue !== null" :class="ui.value({ class: props.ui?.value })">
|
|
237
|
+
{{ displayedModelValue }}
|
|
238
|
+
</span>
|
|
239
|
+
<span v-else :class="ui.placeholder({ class: props.ui?.placeholder })">
|
|
240
|
+
{{ placeholder ?? "\xA0" }}
|
|
241
|
+
</span>
|
|
242
|
+
</template>
|
|
243
|
+
</slot>
|
|
244
|
+
|
|
245
|
+
<span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
|
|
246
|
+
<slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
|
|
247
|
+
<UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
|
|
248
|
+
</slot>
|
|
249
|
+
</span>
|
|
250
|
+
</ComboboxTrigger>
|
|
251
|
+
</ComboboxAnchor>
|
|
252
|
+
|
|
253
|
+
<ComboboxPortal v-bind="portalProps">
|
|
254
|
+
<ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
|
|
255
|
+
<FocusScope trapped :class="ui.focusScope({ class: props.ui?.focusScope })">
|
|
256
|
+
<slot name="content-top" />
|
|
257
|
+
|
|
258
|
+
<ComboboxInput v-if="!!searchInput" v-model="searchTerm" :display-value="() => searchTerm" as-child>
|
|
259
|
+
<UInput autofocus autocomplete="off" :size="size" v-bind="searchInputProps" :class="ui.input({ class: props.ui?.input })" />
|
|
260
|
+
</ComboboxInput>
|
|
261
|
+
|
|
262
|
+
<ComboboxEmpty :class="ui.empty({ class: props.ui?.empty })">
|
|
263
|
+
<slot name="empty" :search-term="searchTerm">
|
|
264
|
+
{{ searchTerm ? t("selectMenu.noMatch", { searchTerm }) : t("selectMenu.noData") }}
|
|
265
|
+
</slot>
|
|
266
|
+
</ComboboxEmpty>
|
|
267
|
+
|
|
268
|
+
<div role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
269
|
+
<ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'top'" />
|
|
270
|
+
|
|
271
|
+
<ComboboxGroup v-for="(group, groupIndex) in filteredGroups" :key="`group-${groupIndex}`" :class="ui.group({ class: props.ui?.group })">
|
|
272
|
+
<template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
|
|
273
|
+
<ComboboxLabel v-if="isSelectItem(item) && item.type === 'label'" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })">
|
|
274
|
+
{{ get(item, props.labelKey) }}
|
|
275
|
+
</ComboboxLabel>
|
|
276
|
+
|
|
277
|
+
<ComboboxSeparator v-else-if="isSelectItem(item) && item.type === 'separator'" :class="ui.separator({ class: [props.ui?.separator, item.ui?.separator, item.class] })" />
|
|
278
|
+
|
|
279
|
+
<ComboboxItem
|
|
280
|
+
v-else
|
|
281
|
+
:class="ui.item({ class: [props.ui?.item, isSelectItem(item) && item.ui?.item, isSelectItem(item) && item.class] })"
|
|
282
|
+
:disabled="isSelectItem(item) && item.disabled"
|
|
283
|
+
:value="props.valueKey && isSelectItem(item) ? get(item, props.valueKey) : item"
|
|
284
|
+
@select="onSelect($event, item)"
|
|
285
|
+
>
|
|
286
|
+
<slot name="item" :item="item" :index="index">
|
|
287
|
+
<slot name="item-leading" :item="item" :index="index">
|
|
288
|
+
<UIcon v-if="isSelectItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
|
|
289
|
+
<UAvatar v-else-if="isSelectItem(item) && 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] })" />
|
|
290
|
+
<UChip
|
|
291
|
+
v-else-if="isSelectItem(item) && item.chip"
|
|
292
|
+
:size="props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
293
|
+
inset
|
|
294
|
+
standalone
|
|
295
|
+
v-bind="item.chip"
|
|
296
|
+
:class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip] })"
|
|
297
|
+
/>
|
|
298
|
+
</slot>
|
|
299
|
+
|
|
300
|
+
<span :class="ui.itemLabel({ class: [props.ui?.itemLabel, isSelectItem(item) && item.ui?.itemLabel] })">
|
|
301
|
+
<slot name="item-label" :item="item" :index="index">
|
|
302
|
+
{{ isSelectItem(item) ? get(item, props.labelKey) : item }}
|
|
303
|
+
</slot>
|
|
304
|
+
</span>
|
|
305
|
+
|
|
306
|
+
<span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, isSelectItem(item) && item.ui?.itemTrailing] })">
|
|
307
|
+
<slot name="item-trailing" :item="item" :index="index" />
|
|
308
|
+
|
|
309
|
+
<ComboboxItemIndicator as-child>
|
|
310
|
+
<UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, isSelectItem(item) && item.ui?.itemTrailingIcon] })" />
|
|
311
|
+
</ComboboxItemIndicator>
|
|
312
|
+
</span>
|
|
313
|
+
</slot>
|
|
314
|
+
</ComboboxItem>
|
|
315
|
+
</template>
|
|
316
|
+
</ComboboxGroup>
|
|
317
|
+
|
|
318
|
+
<ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'bottom'" />
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
<slot name="content-bottom" />
|
|
322
|
+
</FocusScope>
|
|
323
|
+
|
|
324
|
+
<ComboboxArrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
|
|
325
|
+
</ComboboxContent>
|
|
326
|
+
</ComboboxPortal>
|
|
327
|
+
</ComboboxRoot>
|
|
328
328
|
</template>
|
|
@@ -35,19 +35,19 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.separator ||
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<template>
|
|
38
|
-
<Separator v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
39
|
-
<div :class="ui.border({ class: props.ui?.border })" />
|
|
40
|
-
|
|
41
|
-
<template v-if="label || icon || avatar || !!slots.default">
|
|
42
|
-
<div :class="ui.container({ class: props.ui?.container })">
|
|
43
|
-
<slot>
|
|
44
|
-
<span v-if="label" :class="ui.label({ class: props.ui?.label })">{{ label }}</span>
|
|
45
|
-
<UIcon v-else-if="icon" :name="icon" :class="ui.icon({ class: props.ui?.icon })" />
|
|
46
|
-
<UAvatar v-else-if="avatar" :size="props.ui?.avatarSize || ui.avatarSize()" v-bind="avatar" :class="ui.avatar({ class: props.ui?.avatar })" />
|
|
47
|
-
</slot>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div :class="ui.border({ class: props.ui?.border })" />
|
|
51
|
-
</template>
|
|
52
|
-
</Separator>
|
|
38
|
+
<Separator v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
39
|
+
<div :class="ui.border({ class: props.ui?.border })" />
|
|
40
|
+
|
|
41
|
+
<template v-if="label || icon || avatar || !!slots.default">
|
|
42
|
+
<div :class="ui.container({ class: props.ui?.container })">
|
|
43
|
+
<slot>
|
|
44
|
+
<span v-if="label" :class="ui.label({ class: props.ui?.label })">{{ label }}</span>
|
|
45
|
+
<UIcon v-else-if="icon" :name="icon" :class="ui.icon({ class: props.ui?.icon })" />
|
|
46
|
+
<UAvatar v-else-if="avatar" :size="props.ui?.avatarSize || ui.avatarSize()" v-bind="avatar" :class="ui.avatar({ class: props.ui?.avatar })" />
|
|
47
|
+
</slot>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div :class="ui.border({ class: props.ui?.border })" />
|
|
51
|
+
</template>
|
|
52
|
+
</Separator>
|
|
53
53
|
</template>
|
|
@@ -16,14 +16,14 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.skeleton || {
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<Primitive
|
|
20
|
-
:as="as"
|
|
21
|
-
aria-busy="true"
|
|
22
|
-
aria-label="loading"
|
|
23
|
-
aria-live="polite"
|
|
24
|
-
role="alert"
|
|
25
|
-
:class="ui({ class: props.class })"
|
|
26
|
-
>
|
|
27
|
-
<slot />
|
|
28
|
-
</Primitive>
|
|
19
|
+
<Primitive
|
|
20
|
+
:as="as"
|
|
21
|
+
aria-busy="true"
|
|
22
|
+
aria-label="loading"
|
|
23
|
+
aria-live="polite"
|
|
24
|
+
role="alert"
|
|
25
|
+
:class="ui({ class: props.class })"
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</Primitive>
|
|
29
29
|
</template>
|
|
@@ -58,80 +58,80 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.slideover ||
|
|
|
58
58
|
</script>
|
|
59
59
|
|
|
60
60
|
<template>
|
|
61
|
-
<DialogRoot v-slot="{ open, close }" v-bind="rootProps">
|
|
62
|
-
<DialogTrigger v-if="!!slots.default" as-child :class="props.class">
|
|
63
|
-
<slot :open="open" />
|
|
64
|
-
</DialogTrigger>
|
|
65
|
-
|
|
66
|
-
<DialogPortal v-bind="portalProps">
|
|
67
|
-
<DialogOverlay v-if="overlay" :class="ui.overlay({ class: props.ui?.overlay })" />
|
|
68
|
-
|
|
69
|
-
<DialogContent
|
|
70
|
-
:data-side="side"
|
|
71
|
-
:class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })"
|
|
72
|
-
v-bind="contentProps"
|
|
73
|
-
@after-enter="emits('after:enter')"
|
|
74
|
-
@after-leave="emits('after:leave')"
|
|
75
|
-
v-on="contentEvents"
|
|
76
|
-
>
|
|
77
|
-
<VisuallyHidden v-if="!!slots.content && (title || !!slots.title || (description || !!slots.description))">
|
|
78
|
-
<DialogTitle v-if="title || !!slots.title">
|
|
79
|
-
<slot name="title">
|
|
80
|
-
{{ title }}
|
|
81
|
-
</slot>
|
|
82
|
-
</DialogTitle>
|
|
83
|
-
|
|
84
|
-
<DialogDescription v-if="description || !!slots.description">
|
|
85
|
-
<slot name="description">
|
|
86
|
-
{{ description }}
|
|
87
|
-
</slot>
|
|
88
|
-
</DialogDescription>
|
|
89
|
-
</VisuallyHidden>
|
|
90
|
-
|
|
91
|
-
<slot name="content" :close="close">
|
|
92
|
-
<div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="ui.header({ class: props.ui?.header })">
|
|
93
|
-
<slot name="header" :close="close">
|
|
94
|
-
<div :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
95
|
-
<DialogTitle v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
96
|
-
<slot name="title">
|
|
97
|
-
{{ title }}
|
|
98
|
-
</slot>
|
|
99
|
-
</DialogTitle>
|
|
100
|
-
|
|
101
|
-
<DialogDescription v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
|
|
102
|
-
<slot name="description">
|
|
103
|
-
{{ description }}
|
|
104
|
-
</slot>
|
|
105
|
-
</DialogDescription>
|
|
106
|
-
</div>
|
|
107
|
-
|
|
108
|
-
<slot name="actions" />
|
|
109
|
-
|
|
110
|
-
<DialogClose v-if="props.close || !!slots.close" as-child>
|
|
111
|
-
<slot name="close" :close="close" :ui="ui">
|
|
112
|
-
<UButton
|
|
113
|
-
v-if="props.close"
|
|
114
|
-
:icon="closeIcon || appConfig.ui.icons.close"
|
|
115
|
-
color="neutral"
|
|
116
|
-
variant="ghost"
|
|
117
|
-
:aria-label="t('slideover.close')"
|
|
118
|
-
v-bind="typeof props.close === 'object' ? props.close : {}"
|
|
119
|
-
:class="ui.close({ class: props.ui?.close })"
|
|
120
|
-
/>
|
|
121
|
-
</slot>
|
|
122
|
-
</DialogClose>
|
|
123
|
-
</slot>
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<div :class="ui.body({ class: props.ui?.body })">
|
|
127
|
-
<slot name="body" :close="close" />
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
<div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
131
|
-
<slot name="footer" :close="close" />
|
|
132
|
-
</div>
|
|
133
|
-
</slot>
|
|
134
|
-
</DialogContent>
|
|
135
|
-
</DialogPortal>
|
|
136
|
-
</DialogRoot>
|
|
61
|
+
<DialogRoot v-slot="{ open, close }" v-bind="rootProps">
|
|
62
|
+
<DialogTrigger v-if="!!slots.default" as-child :class="props.class">
|
|
63
|
+
<slot :open="open" />
|
|
64
|
+
</DialogTrigger>
|
|
65
|
+
|
|
66
|
+
<DialogPortal v-bind="portalProps">
|
|
67
|
+
<DialogOverlay v-if="overlay" :class="ui.overlay({ class: props.ui?.overlay })" />
|
|
68
|
+
|
|
69
|
+
<DialogContent
|
|
70
|
+
:data-side="side"
|
|
71
|
+
:class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })"
|
|
72
|
+
v-bind="contentProps"
|
|
73
|
+
@after-enter="emits('after:enter')"
|
|
74
|
+
@after-leave="emits('after:leave')"
|
|
75
|
+
v-on="contentEvents"
|
|
76
|
+
>
|
|
77
|
+
<VisuallyHidden v-if="!!slots.content && (title || !!slots.title || (description || !!slots.description))">
|
|
78
|
+
<DialogTitle v-if="title || !!slots.title">
|
|
79
|
+
<slot name="title">
|
|
80
|
+
{{ title }}
|
|
81
|
+
</slot>
|
|
82
|
+
</DialogTitle>
|
|
83
|
+
|
|
84
|
+
<DialogDescription v-if="description || !!slots.description">
|
|
85
|
+
<slot name="description">
|
|
86
|
+
{{ description }}
|
|
87
|
+
</slot>
|
|
88
|
+
</DialogDescription>
|
|
89
|
+
</VisuallyHidden>
|
|
90
|
+
|
|
91
|
+
<slot name="content" :close="close">
|
|
92
|
+
<div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="ui.header({ class: props.ui?.header })">
|
|
93
|
+
<slot name="header" :close="close">
|
|
94
|
+
<div :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
95
|
+
<DialogTitle v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
96
|
+
<slot name="title">
|
|
97
|
+
{{ title }}
|
|
98
|
+
</slot>
|
|
99
|
+
</DialogTitle>
|
|
100
|
+
|
|
101
|
+
<DialogDescription v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
|
|
102
|
+
<slot name="description">
|
|
103
|
+
{{ description }}
|
|
104
|
+
</slot>
|
|
105
|
+
</DialogDescription>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<slot name="actions" />
|
|
109
|
+
|
|
110
|
+
<DialogClose v-if="props.close || !!slots.close" as-child>
|
|
111
|
+
<slot name="close" :close="close" :ui="ui">
|
|
112
|
+
<UButton
|
|
113
|
+
v-if="props.close"
|
|
114
|
+
:icon="closeIcon || appConfig.ui.icons.close"
|
|
115
|
+
color="neutral"
|
|
116
|
+
variant="ghost"
|
|
117
|
+
:aria-label="t('slideover.close')"
|
|
118
|
+
v-bind="typeof props.close === 'object' ? props.close : {}"
|
|
119
|
+
:class="ui.close({ class: props.ui?.close })"
|
|
120
|
+
/>
|
|
121
|
+
</slot>
|
|
122
|
+
</DialogClose>
|
|
123
|
+
</slot>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div :class="ui.body({ class: props.ui?.body })">
|
|
127
|
+
<slot name="body" :close="close" />
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
131
|
+
<slot name="footer" :close="close" />
|
|
132
|
+
</div>
|
|
133
|
+
</slot>
|
|
134
|
+
</DialogContent>
|
|
135
|
+
</DialogPortal>
|
|
136
|
+
</DialogRoot>
|
|
137
137
|
</template>
|
|
@@ -64,31 +64,31 @@ function onChange(value) {
|
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
66
|
<template>
|
|
67
|
-
<SliderRoot
|
|
68
|
-
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
69
|
-
:id="id"
|
|
70
|
-
v-model="sliderValue"
|
|
71
|
-
:name="name"
|
|
72
|
-
:disabled="disabled"
|
|
73
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
74
|
-
:default-value="defaultSliderValue"
|
|
75
|
-
@update:model-value="emitFormInput()"
|
|
76
|
-
@value-commit="onChange"
|
|
77
|
-
>
|
|
78
|
-
<SliderTrack :class="ui.track({ class: props.ui?.track })">
|
|
79
|
-
<SliderRange :class="ui.range({ class: props.ui?.range })" />
|
|
80
|
-
</SliderTrack>
|
|
81
|
-
|
|
82
|
-
<template v-for="thumb in thumbs" :key="thumb">
|
|
83
|
-
<UTooltip
|
|
84
|
-
v-if="!!tooltip"
|
|
85
|
-
:text="thumbs > 1 ? String(sliderValue?.[thumb - 1]) : String(sliderValue)"
|
|
86
|
-
disable-closing-trigger
|
|
87
|
-
v-bind="typeof tooltip === 'object' ? tooltip : {}"
|
|
88
|
-
>
|
|
89
|
-
<SliderThumb :class="ui.thumb({ class: props.ui?.thumb })" />
|
|
90
|
-
</UTooltip>
|
|
91
|
-
<SliderThumb v-else :class="ui.thumb({ class: props.ui?.thumb })" />
|
|
92
|
-
</template>
|
|
93
|
-
</SliderRoot>
|
|
67
|
+
<SliderRoot
|
|
68
|
+
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
69
|
+
:id="id"
|
|
70
|
+
v-model="sliderValue"
|
|
71
|
+
:name="name"
|
|
72
|
+
:disabled="disabled"
|
|
73
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
74
|
+
:default-value="defaultSliderValue"
|
|
75
|
+
@update:model-value="emitFormInput()"
|
|
76
|
+
@value-commit="onChange"
|
|
77
|
+
>
|
|
78
|
+
<SliderTrack :class="ui.track({ class: props.ui?.track })">
|
|
79
|
+
<SliderRange :class="ui.range({ class: props.ui?.range })" />
|
|
80
|
+
</SliderTrack>
|
|
81
|
+
|
|
82
|
+
<template v-for="thumb in thumbs" :key="thumb">
|
|
83
|
+
<UTooltip
|
|
84
|
+
v-if="!!tooltip"
|
|
85
|
+
:text="thumbs > 1 ? String(sliderValue?.[thumb - 1]) : String(sliderValue)"
|
|
86
|
+
disable-closing-trigger
|
|
87
|
+
v-bind="typeof tooltip === 'object' ? tooltip : {}"
|
|
88
|
+
>
|
|
89
|
+
<SliderThumb :class="ui.thumb({ class: props.ui?.thumb })" />
|
|
90
|
+
</UTooltip>
|
|
91
|
+
<SliderThumb v-else :class="ui.thumb({ class: props.ui?.thumb })" />
|
|
92
|
+
</template>
|
|
93
|
+
</SliderRoot>
|
|
94
94
|
</template>
|