@nuxt/ui 3.0.0-alpha.7 → 3.0.0-alpha.9
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/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +242 -0
- package/.nuxt/ui/avatar-group.ts +40 -0
- package/.nuxt/ui/avatar.ts +42 -0
- package/.nuxt/ui/badge.ts +194 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +344 -0
- package/.nuxt/ui/card.ts +8 -0
- package/.nuxt/ui/carousel.ts +41 -0
- package/.nuxt/ui/checkbox.ts +105 -0
- package/.nuxt/ui/chip.ts +67 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/command-palette.ts +40 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +198 -0
- package/.nuxt/ui/drawer.ts +55 -0
- package/.nuxt/ui/dropdown-menu.ts +199 -0
- package/.nuxt/ui/form-field.ts +40 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +45 -0
- package/.nuxt/ui/input-menu.ts +411 -0
- package/.nuxt/ui/input-number.ts +204 -0
- package/.nuxt/ui/input.ts +263 -0
- package/.nuxt/ui/kbd.ts +19 -0
- package/.nuxt/ui/link.ts +15 -0
- package/.nuxt/ui/modal.ts +28 -0
- package/.nuxt/ui/navigation-menu.ts +390 -0
- package/.nuxt/ui/pagination.ts +8 -0
- package/.nuxt/ui/pin-input.ts +145 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +258 -0
- package/.nuxt/ui/radio-group.ts +112 -0
- package/.nuxt/ui/select-menu.ts +316 -0
- package/.nuxt/ui/select.ts +314 -0
- package/.nuxt/ui/separator.ts +143 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +63 -0
- package/.nuxt/ui/slider.ts +148 -0
- package/.nuxt/ui/switch.ts +113 -0
- package/.nuxt/ui/table.ts +129 -0
- package/.nuxt/ui/tabs.ts +227 -0
- package/.nuxt/ui/textarea.ts +263 -0
- package/.nuxt/ui/toast.ts +66 -0
- package/.nuxt/ui/toaster.ts +75 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/README.md +52 -12
- package/cli/commands/{init.mjs → make/component.mjs} +4 -4
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +2 -2
- package/cli/templates.mjs +47 -2
- package/cli/utils.mjs +14 -0
- package/dist/chunks/component-meta.cjs +77249 -0
- package/dist/chunks/component-meta.mjs +77247 -0
- package/dist/client/devtools/200.html +1 -0
- package/dist/client/devtools/404.html +1 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
- package/dist/client/devtools/_nuxt/BDC8ywlR.js +1 -0
- package/dist/client/devtools/_nuxt/BT004Uxp.js +53 -0
- package/dist/client/devtools/_nuxt/C1H2Soz3.js +1 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +1 -0
- package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +1 -0
- package/dist/client/devtools/favicon.svg +1 -0
- package/dist/client/devtools/index.html +1 -0
- package/dist/devtools/runtime/DevtoolsRenderer.vue +53 -0
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +7 -0
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +8 -0
- package/dist/devtools/runtime/examples/CardExample.vue +13 -0
- package/dist/devtools/runtime/examples/CarouselExample.vue +13 -0
- package/dist/devtools/runtime/examples/ChipExample.vue +5 -0
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +8 -0
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +29 -0
- package/dist/devtools/runtime/examples/ContainerExample.vue +5 -0
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/DrawerExample.vue +8 -0
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/FormExample.vue +30 -0
- package/dist/devtools/runtime/examples/FormFieldExample.vue +5 -0
- package/dist/devtools/runtime/examples/LinkExample.vue +5 -0
- package/dist/devtools/runtime/examples/ModalExample.vue +8 -0
- package/dist/devtools/runtime/examples/PopoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/SkeletonExample.vue +3 -0
- package/dist/devtools/runtime/examples/SlideoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/ToasterExample.vue +11 -0
- package/dist/devtools/runtime/examples/TooltipExample.vue +5 -0
- package/dist/module.cjs +223 -4
- package/dist/module.d.cts +54 -0
- package/dist/module.d.mts +10 -0
- package/dist/module.d.ts +10 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +158 -2763
- package/dist/runtime/components/Accordion.vue +32 -1
- package/dist/runtime/components/Alert.vue +8 -1
- package/dist/runtime/components/App.vue +19 -5
- package/dist/runtime/components/Avatar.vue +23 -5
- package/dist/runtime/components/AvatarGroup.vue +3 -0
- package/dist/runtime/components/Badge.vue +33 -3
- package/dist/runtime/components/Breadcrumb.vue +33 -4
- package/dist/runtime/components/Button.vue +6 -1
- package/dist/runtime/components/ButtonGroup.vue +4 -1
- package/dist/runtime/components/Card.vue +3 -0
- package/dist/runtime/components/Carousel.vue +17 -8
- package/dist/runtime/components/Checkbox.vue +4 -0
- package/dist/runtime/components/Chip.vue +9 -2
- package/dist/runtime/components/Collapsible.vue +3 -0
- package/dist/runtime/components/CommandPalette.vue +8 -4
- package/dist/runtime/components/Container.vue +3 -0
- package/dist/runtime/components/ContextMenu.vue +64 -3
- package/dist/runtime/components/ContextMenuContent.vue +10 -8
- package/dist/runtime/components/Drawer.vue +3 -0
- package/dist/runtime/components/DropdownMenu.vue +52 -3
- package/dist/runtime/components/DropdownMenuContent.vue +10 -8
- package/dist/runtime/components/Form.vue +21 -20
- package/dist/runtime/components/FormField.vue +10 -3
- package/dist/runtime/components/Input.vue +1 -0
- package/dist/runtime/components/InputMenu.vue +118 -31
- package/dist/runtime/components/InputNumber.vue +192 -0
- package/dist/runtime/components/Kbd.vue +2 -0
- package/dist/runtime/components/Link.vue +69 -6
- package/dist/runtime/components/Modal.vue +15 -3
- package/dist/runtime/components/NavigationMenu.vue +95 -46
- package/dist/runtime/components/Pagination.vue +17 -6
- package/dist/runtime/components/PinInput.vue +96 -0
- package/dist/runtime/components/Popover.vue +20 -1
- package/dist/runtime/components/Progress.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +4 -1
- package/dist/runtime/components/Select.vue +24 -13
- package/dist/runtime/components/SelectMenu.vue +130 -42
- package/dist/runtime/components/Separator.vue +1 -1
- package/dist/runtime/components/Skeleton.vue +3 -0
- package/dist/runtime/components/Slideover.vue +15 -3
- package/dist/runtime/components/Slider.vue +1 -1
- package/dist/runtime/components/Switch.vue +5 -1
- package/dist/runtime/components/Table.vue +27 -8
- package/dist/runtime/components/Tabs.vue +20 -1
- package/dist/runtime/components/Textarea.vue +1 -1
- package/dist/runtime/components/Toast.vue +8 -1
- package/dist/runtime/components/Toaster.vue +29 -14
- package/dist/runtime/components/Tooltip.vue +3 -0
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/defineShortcuts.js +0 -6
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +7 -0
- package/dist/runtime/composables/extendDevtoolsMeta.js +2 -0
- package/dist/runtime/composables/useFormField.d.ts +4 -1
- package/dist/runtime/composables/useFormField.js +1 -1
- package/dist/runtime/composables/useKbd.d.ts +10 -3
- package/dist/runtime/composables/useKbd.js +14 -8
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/locale/ar.d.ts +2 -0
- package/dist/runtime/locale/ar.js +47 -0
- package/dist/runtime/locale/cs.d.ts +2 -0
- package/dist/runtime/locale/cs.js +46 -0
- package/dist/runtime/locale/de.d.ts +2 -0
- package/dist/runtime/locale/de.js +46 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +46 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +46 -0
- package/dist/runtime/locale/fa_ir.d.ts +2 -0
- package/dist/runtime/locale/fa_ir.js +47 -0
- package/dist/runtime/locale/fr.d.ts +2 -0
- package/dist/runtime/locale/fr.js +46 -0
- package/dist/runtime/locale/index.d.ts +12 -0
- package/dist/runtime/locale/index.js +12 -0
- package/dist/runtime/locale/it.d.ts +2 -0
- package/dist/runtime/locale/it.js +46 -0
- package/dist/runtime/locale/pl.d.ts +2 -0
- package/dist/runtime/locale/pl.js +46 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +46 -0
- package/dist/runtime/locale/zh_hans.d.ts +2 -0
- package/dist/runtime/locale/zh_hans.js +46 -0
- package/dist/runtime/locale/zh_hant.d.ts +2 -0
- package/dist/runtime/locale/zh_hant.js +46 -0
- package/dist/runtime/types/form.d.ts +7 -2
- package/dist/runtime/types/index.d.ts +3 -0
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/types/locale.d.ts +48 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +7 -0
- package/dist/runtime/utils/form.d.ts +5 -9
- package/dist/runtime/utils/form.js +115 -50
- package/dist/runtime/utils/index.js +1 -1
- package/dist/runtime/utils/link.d.ts +2 -2
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/vue/components/Icon.vue +15 -0
- package/dist/runtime/vue/components/Link.vue +195 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +6 -0
- package/dist/runtime/vue/stubs.d.ts +15 -0
- package/dist/runtime/vue/stubs.js +27 -0
- package/dist/shared/ui.BPnAe4QS.cjs +3030 -0
- package/dist/shared/ui.d52SSCwA.mjs +3023 -0
- package/dist/unplugin.cjs +192 -0
- package/dist/unplugin.d.cts +49 -0
- package/dist/unplugin.d.mts +49 -0
- package/dist/unplugin.d.ts +49 -0
- package/dist/unplugin.mjs +181 -0
- package/dist/vite.cjs +22 -0
- package/dist/vite.d.cts +13 -0
- package/dist/vite.d.mts +13 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.mjs +20 -0
- package/package.json +78 -33
- package/vue-plugin.d.ts +5 -0
- package/cli/node_modules/.ignored/citty/LICENSE +0 -36
- package/cli/node_modules/.ignored/citty/README.md +0 -134
- package/cli/node_modules/.ignored/citty/dist/index.cjs +0 -475
- package/cli/node_modules/.ignored/citty/dist/index.d.cts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.mts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.ts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.mjs +0 -463
- package/cli/node_modules/.ignored/citty/package.json +0 -49
- package/cli/node_modules/.ignored/consola/LICENSE +0 -47
- package/cli/node_modules/.ignored/consola/README.md +0 -318
- package/cli/node_modules/.ignored/consola/core.d.ts +0 -1
- package/cli/node_modules/.ignored/consola/dist/basic.cjs +0 -32
- package/cli/node_modules/.ignored/consola/dist/basic.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/basic.mjs +0 -24
- package/cli/node_modules/.ignored/consola/dist/browser.cjs +0 -80
- package/cli/node_modules/.ignored/consola/dist/browser.d.ts +0 -7
- package/cli/node_modules/.ignored/consola/dist/browser.mjs +0 -72
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +0 -436
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +0 -429
- package/cli/node_modules/.ignored/consola/dist/core.cjs +0 -415
- package/cli/node_modules/.ignored/consola/dist/core.d.ts +0 -124
- package/cli/node_modules/.ignored/consola/dist/core.mjs +0 -410
- package/cli/node_modules/.ignored/consola/dist/index.cjs +0 -21
- package/cli/node_modules/.ignored/consola/dist/index.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/index.mjs +0 -8
- package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +0 -62
- package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +0 -636
- package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +0 -645
- package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +0 -65
- package/cli/node_modules/.ignored/consola/dist/utils.cjs +0 -308
- package/cli/node_modules/.ignored/consola/dist/utils.d.ts +0 -169
- package/cli/node_modules/.ignored/consola/dist/utils.mjs +0 -284
- package/cli/node_modules/.ignored/consola/lib/index.cjs +0 -9
- package/cli/node_modules/.ignored/consola/package.json +0 -101
- package/cli/node_modules/.ignored/consola/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/pathe/LICENSE +0 -44
- package/cli/node_modules/.ignored/pathe/README.md +0 -69
- package/cli/node_modules/.ignored/pathe/dist/index.cjs +0 -23
- package/cli/node_modules/.ignored/pathe/dist/index.d.cts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.mts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.ts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.mjs +0 -1
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +0 -238
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +0 -221
- package/cli/node_modules/.ignored/pathe/dist/utils.cjs +0 -58
- package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.mjs +0 -54
- package/cli/node_modules/.ignored/pathe/package.json +0 -48
- package/cli/node_modules/.ignored/pathe/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/scule/LICENSE +0 -21
- package/cli/node_modules/.ignored/scule/README.md +0 -149
- package/cli/node_modules/.ignored/scule/dist/index.cjs +0 -92
- package/cli/node_modules/.ignored/scule/dist/index.d.cts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.mts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.ts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.mjs +0 -80
- package/cli/node_modules/.ignored/scule/package.json +0 -43
- package/cli/node_modules/.package-lock.json +0 -33
|
@@ -4,6 +4,7 @@ import type { ToastProviderProps } from 'radix-vue'
|
|
|
4
4
|
import type { AppConfig } from '@nuxt/schema'
|
|
5
5
|
import _appConfig from '#build/app.config'
|
|
6
6
|
import theme from '#build/ui/toaster'
|
|
7
|
+
import { extendDevtoolsMeta } from '../composables/extendDevtoolsMeta'
|
|
7
8
|
|
|
8
9
|
const appConfig = _appConfig as AppConfig & { ui: { toaster: Partial<typeof theme> } }
|
|
9
10
|
|
|
@@ -18,6 +19,11 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
18
19
|
* @defaultValue true
|
|
19
20
|
*/
|
|
20
21
|
expand?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* Render the toaster in a portal.
|
|
24
|
+
* @defaultValue true
|
|
25
|
+
*/
|
|
26
|
+
portal?: boolean
|
|
21
27
|
class?: any
|
|
22
28
|
ui?: Partial<typeof toaster.slots>
|
|
23
29
|
}
|
|
@@ -25,11 +31,17 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
25
31
|
export interface ToasterSlots {
|
|
26
32
|
default(props?: {}): any
|
|
27
33
|
}
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
name: 'Toaster'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
extendDevtoolsMeta({ example: 'ToasterExample' })
|
|
28
40
|
</script>
|
|
29
41
|
|
|
30
42
|
<script setup lang="ts">
|
|
31
43
|
import { ref, computed } from 'vue'
|
|
32
|
-
import { ToastProvider, ToastViewport, useForwardProps } from 'radix-vue'
|
|
44
|
+
import { ToastProvider, ToastViewport, ToastPortal, useForwardProps } from 'radix-vue'
|
|
33
45
|
import { reactivePick } from '@vueuse/core'
|
|
34
46
|
import { useToast } from '../composables/useToast'
|
|
35
47
|
import { omit } from '../utils'
|
|
@@ -37,6 +49,7 @@ import UToast from './Toast.vue'
|
|
|
37
49
|
|
|
38
50
|
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
39
51
|
expand: true,
|
|
52
|
+
portal: true,
|
|
40
53
|
duration: 5000
|
|
41
54
|
})
|
|
42
55
|
defineSlots<ToasterSlots>()
|
|
@@ -113,18 +126,20 @@ function getOffset(index: number) {
|
|
|
113
126
|
@click="toast.click && toast.click(toast)"
|
|
114
127
|
/>
|
|
115
128
|
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
<ToastPortal :disabled="!portal">
|
|
130
|
+
<ToastViewport
|
|
131
|
+
:data-expanded="expanded"
|
|
132
|
+
:class="ui.viewport({ class: [props.class, props.ui?.viewport] })"
|
|
133
|
+
:style="{
|
|
134
|
+
'--scale-factor': '0.05',
|
|
135
|
+
'--translate-factor': position?.startsWith('top') ? '1px' : '-1px',
|
|
136
|
+
'--gap': position?.startsWith('top') ? '16px' : '-16px',
|
|
137
|
+
'--front-height': `${frontHeight}px`,
|
|
138
|
+
'--height': `${height}px`
|
|
139
|
+
}"
|
|
140
|
+
@mouseenter="hovered = true"
|
|
141
|
+
@mouseleave="hovered = false"
|
|
142
|
+
/>
|
|
143
|
+
</ToastPortal>
|
|
129
144
|
</ToastProvider>
|
|
130
145
|
</template>
|
|
@@ -4,6 +4,7 @@ import type { TooltipRootProps, TooltipRootEmits, TooltipContentProps, TooltipAr
|
|
|
4
4
|
import type { AppConfig } from '@nuxt/schema'
|
|
5
5
|
import _appConfig from '#build/app.config'
|
|
6
6
|
import theme from '#build/ui/tooltip'
|
|
7
|
+
import { extendDevtoolsMeta } from '../composables/extendDevtoolsMeta'
|
|
7
8
|
import type { KbdProps } from '../types'
|
|
8
9
|
|
|
9
10
|
const appConfig = _appConfig as AppConfig & { ui: { tooltip: Partial<typeof theme> } }
|
|
@@ -40,6 +41,8 @@ export interface TooltipSlots {
|
|
|
40
41
|
default(props: { open: boolean }): any
|
|
41
42
|
content(props?: {}): any
|
|
42
43
|
}
|
|
44
|
+
|
|
45
|
+
extendDevtoolsMeta({ example: 'TooltipExample', defaultProps: { text: 'Hello world!' } })
|
|
43
46
|
</script>
|
|
44
47
|
|
|
45
48
|
<script setup lang="ts">
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Locale, Direction, Messages } from '../types/locale';
|
|
2
|
+
interface DefineLocaleOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
code: string;
|
|
5
|
+
dir?: Direction;
|
|
6
|
+
messages: Messages;
|
|
7
|
+
}
|
|
8
|
+
export declare function defineLocale(options: DefineLocaleOptions): Locale;
|
|
9
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ref, computed, toValue } from "vue";
|
|
2
2
|
import { useEventListener, useActiveElement, useDebounceFn } from "@vueuse/core";
|
|
3
|
-
import { useKbd } from "../composables/useKbd.js";
|
|
4
3
|
const chainedShortcutRegex = /^[^-]+.*-.*[^-]+$/;
|
|
5
4
|
const combinedShortcutRegex = /^[^_]+.*_.*[^_]+$/;
|
|
6
5
|
export function extractShortcuts(items) {
|
|
@@ -28,7 +27,6 @@ export function defineShortcuts(config, options = {}) {
|
|
|
28
27
|
chainedInputs.value.splice(0, chainedInputs.value.length);
|
|
29
28
|
};
|
|
30
29
|
const debouncedClearChainedInput = useDebounceFn(clearChainedInput, options.chainDelay ?? 800);
|
|
31
|
-
const { macOS } = useKbd();
|
|
32
30
|
const activeElement = useActiveElement();
|
|
33
31
|
const onKeyDown = (e) => {
|
|
34
32
|
if (!e.key) {
|
|
@@ -114,10 +112,6 @@ export function defineShortcuts(config, options = {}) {
|
|
|
114
112
|
};
|
|
115
113
|
}
|
|
116
114
|
shortcut.chained = chained;
|
|
117
|
-
if (!macOS.value && shortcut.metaKey && !shortcut.ctrlKey) {
|
|
118
|
-
shortcut.metaKey = false;
|
|
119
|
-
shortcut.ctrlKey = true;
|
|
120
|
-
}
|
|
121
115
|
if (typeof shortcutConfig === "function") {
|
|
122
116
|
shortcut.handler = shortcutConfig;
|
|
123
117
|
} else if (typeof shortcutConfig === "object") {
|
|
@@ -17,7 +17,10 @@ export declare const formOptionsInjectionKey: InjectionKey<ComputedRef<FormInjec
|
|
|
17
17
|
export declare const formBusInjectionKey: InjectionKey<UseEventBusReturn<FormEvent, string>>;
|
|
18
18
|
export declare const formFieldInjectionKey: InjectionKey<ComputedRef<FormFieldInjectedOptions<FormFieldProps>>>;
|
|
19
19
|
export declare const inputIdInjectionKey: InjectionKey<Ref<string | undefined>>;
|
|
20
|
-
export declare const formInputsInjectionKey: InjectionKey<Ref<Record<string,
|
|
20
|
+
export declare const formInputsInjectionKey: InjectionKey<Ref<Record<string, {
|
|
21
|
+
id?: string;
|
|
22
|
+
pattern?: RegExp;
|
|
23
|
+
}>>>;
|
|
21
24
|
export declare const formLoadingInjectionKey: InjectionKey<Readonly<Ref<boolean>>>;
|
|
22
25
|
export declare function useFormField<T>(props?: Props<T>, opts?: {
|
|
23
26
|
bind?: boolean;
|
|
@@ -19,7 +19,7 @@ export function useFormField(props, opts) {
|
|
|
19
19
|
inputId.value = props?.id;
|
|
20
20
|
}
|
|
21
21
|
if (formInputs && formField.value.name && inputId.value) {
|
|
22
|
-
formInputs.value[formField.value.name] = inputId.value;
|
|
22
|
+
formInputs.value[formField.value.name] = { id: inputId.value, pattern: formField.value.errorPattern };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
const blurred = ref(false);
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
type KbdKeysSpecificMap = {
|
|
2
|
+
meta: string;
|
|
3
|
+
alt: string;
|
|
4
|
+
ctrl: string;
|
|
5
|
+
};
|
|
1
6
|
export declare const kbdKeysMap: {
|
|
2
7
|
meta: string;
|
|
8
|
+
ctrl: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
win: string;
|
|
3
11
|
command: string;
|
|
4
12
|
shift: string;
|
|
5
|
-
ctrl: string;
|
|
6
13
|
option: string;
|
|
7
|
-
alt: string;
|
|
8
14
|
enter: string;
|
|
9
15
|
delete: string;
|
|
10
16
|
backspace: string;
|
|
@@ -21,8 +27,9 @@ export declare const kbdKeysMap: {
|
|
|
21
27
|
end: string;
|
|
22
28
|
};
|
|
23
29
|
export type KbdKey = keyof typeof kbdKeysMap;
|
|
30
|
+
export type KbdKeySpecific = keyof KbdKeysSpecificMap;
|
|
24
31
|
export declare const useKbd: () => {
|
|
25
32
|
macOS: import("vue").ComputedRef<false | "" | RegExpMatchArray | null | undefined>;
|
|
26
|
-
metaSymbol: import("vue").Ref<string, string>;
|
|
27
33
|
getKbdKey: (value?: KbdKey | string) => string | undefined;
|
|
28
34
|
};
|
|
35
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { reactive, computed, onMounted } from "vue";
|
|
1
2
|
import { createSharedComposable } from "@vueuse/core";
|
|
2
|
-
import { ref, computed, onMounted } from "vue";
|
|
3
3
|
export const kbdKeysMap = {
|
|
4
4
|
meta: "",
|
|
5
|
+
ctrl: "",
|
|
6
|
+
alt: "",
|
|
7
|
+
win: "\u229E",
|
|
5
8
|
command: "\u2318",
|
|
6
9
|
shift: "\u21E7",
|
|
7
|
-
ctrl: "\u2303",
|
|
8
10
|
option: "\u2325",
|
|
9
|
-
alt: "\u2387",
|
|
10
11
|
enter: "\u21B5",
|
|
11
12
|
delete: "\u2326",
|
|
12
13
|
backspace: "\u232B",
|
|
@@ -24,22 +25,27 @@ export const kbdKeysMap = {
|
|
|
24
25
|
};
|
|
25
26
|
const _useKbd = () => {
|
|
26
27
|
const macOS = computed(() => import.meta.client && navigator && navigator.userAgent && navigator.userAgent.match(/Macintosh;/));
|
|
27
|
-
const
|
|
28
|
+
const kbdKeysSpecificMap = reactive({
|
|
29
|
+
meta: " ",
|
|
30
|
+
alt: " ",
|
|
31
|
+
ctrl: " "
|
|
32
|
+
});
|
|
28
33
|
onMounted(() => {
|
|
29
|
-
|
|
34
|
+
kbdKeysSpecificMap.meta = macOS.value ? kbdKeysMap.command : kbdKeysMap.win;
|
|
35
|
+
kbdKeysSpecificMap.alt = macOS.value ? kbdKeysMap.option : "alt";
|
|
36
|
+
kbdKeysSpecificMap.ctrl = macOS.value ? "\u2303" : "ctrl";
|
|
30
37
|
});
|
|
31
38
|
function getKbdKey(value) {
|
|
32
39
|
if (!value) {
|
|
33
40
|
return;
|
|
34
41
|
}
|
|
35
|
-
if (
|
|
36
|
-
return
|
|
42
|
+
if (["meta", "alt", "ctrl"].includes(value)) {
|
|
43
|
+
return kbdKeysSpecificMap[value];
|
|
37
44
|
}
|
|
38
45
|
return kbdKeysMap[value] || value.toUpperCase();
|
|
39
46
|
}
|
|
40
47
|
return {
|
|
41
48
|
macOS,
|
|
42
|
-
metaSymbol,
|
|
43
49
|
getKbdKey
|
|
44
50
|
};
|
|
45
51
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import type { Locale } from '../types/locale';
|
|
3
|
+
export declare const localeContextInjectionKey: InjectionKey<Ref<Locale | undefined>>;
|
|
4
|
+
export declare const useLocale: (localeOverrides?: Ref<Locale | undefined>) => import("../utils/locale").LocaleContext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { computed, inject, ref } from "vue";
|
|
2
|
+
import { buildLocaleContext } from "../utils/locale.js";
|
|
3
|
+
import { en } from "../locale/index.js";
|
|
4
|
+
import { createSharedComposable } from "@vueuse/core";
|
|
5
|
+
export const localeContextInjectionKey = Symbol("nuxt-ui.locale-context");
|
|
6
|
+
const _useLocale = (localeOverrides) => {
|
|
7
|
+
const locale = localeOverrides || inject(localeContextInjectionKey, ref());
|
|
8
|
+
return buildLocaleContext(computed(() => locale.value || en));
|
|
9
|
+
};
|
|
10
|
+
export const useLocale = createSharedComposable(_useLocale);
|
package/dist/runtime/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "./keyframes.css";@
|
|
1
|
+
@import "./keyframes.css";@variant dark (&:where(.dark, .dark *));@layer base{body{@apply antialiased text-[var(--ui-text)] bg-[var(--ui-bg)]}:root{color-scheme:light;--ui-text-dimmed:var(--ui-color-neutral-400);--ui-text-muted:var(--ui-color-neutral-500);--ui-text-toned:var(--ui-color-neutral-600);--ui-text:var(--ui-color-neutral-700);--ui-text-highlighted:var(--ui-color-neutral-900);--ui-bg:var(--color-white);--ui-bg-muted:var(--ui-color-neutral-50);--ui-bg-elevated:var(--ui-color-neutral-100);--ui-bg-accented:var(--ui-color-neutral-200);--ui-bg-inverted:var(--ui-color-neutral-900);--ui-border:var(--ui-color-neutral-200);--ui-border-muted:var(--ui-color-neutral-200);--ui-border-accented:var(--ui-color-neutral-300);--ui-border-inverted:var(--ui-color-neutral-900);--ui-radius:var(--radius-sm);--ui-container:var(--container-7xl)}.dark{color-scheme:dark;--ui-text-dimmed:var(--ui-color-neutral-500);--ui-text-muted:var(--ui-color-neutral-400);--ui-text-toned:var(--ui-color-neutral-300);--ui-text:var(--ui-color-neutral-200);--ui-text-highlighted:var(--color-white);--ui-bg:var(--ui-color-neutral-900);--ui-bg-muted:var(--ui-color-neutral-800);--ui-bg-elevated:var(--ui-color-neutral-800);--ui-bg-accented:var(--ui-color-neutral-700);--ui-bg-inverted:var(--color-white);--ui-border:var(--ui-color-neutral-800);--ui-border-muted:var(--ui-color-neutral-700);--ui-border-accented:var(--ui-color-neutral-700);--ui-border-inverted:var(--color-white)}}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "\u0627\u0644\u0639\u0631\u0628\u064A\u0629",
|
|
4
|
+
code: "ar",
|
|
5
|
+
dir: "rtl",
|
|
6
|
+
messages: {
|
|
7
|
+
inputMenu: {
|
|
8
|
+
noMatch: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629",
|
|
9
|
+
noData: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A",
|
|
10
|
+
create: '\u0625\u0646\u0634\u0627\u0621 "{label}"'
|
|
11
|
+
},
|
|
12
|
+
inputNumber: {
|
|
13
|
+
increment: "\u0632\u064A\u0627\u062F\u0629",
|
|
14
|
+
decrement: "\u062A\u0642\u0644\u064A\u0644"
|
|
15
|
+
},
|
|
16
|
+
commandPalette: {
|
|
17
|
+
noMatch: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629",
|
|
18
|
+
noData: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A",
|
|
19
|
+
close: "\u0625\u063A\u0644\u0627\u0642"
|
|
20
|
+
},
|
|
21
|
+
selectMenu: {
|
|
22
|
+
noMatch: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629",
|
|
23
|
+
noData: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A",
|
|
24
|
+
create: '\u0625\u0646\u0634\u0627\u0621 "{label}"'
|
|
25
|
+
},
|
|
26
|
+
toast: {
|
|
27
|
+
close: "\u0625\u063A\u0644\u0627\u0642"
|
|
28
|
+
},
|
|
29
|
+
carousel: {
|
|
30
|
+
prev: "\u0627\u0644\u0633\u0627\u0628\u0642",
|
|
31
|
+
next: "\u0627\u0644\u062A\u0627\u0644\u064A",
|
|
32
|
+
goto: "\u0627\u0644\u0630\u0647\u0627\u0628 \u0625\u0644\u064A \u0634\u0631\u064A\u062D\u0629 {slide}"
|
|
33
|
+
},
|
|
34
|
+
modal: {
|
|
35
|
+
close: "\u0625\u063A\u0644\u0627\u0642"
|
|
36
|
+
},
|
|
37
|
+
slideover: {
|
|
38
|
+
close: "\u0625\u063A\u0644\u0627\u0642"
|
|
39
|
+
},
|
|
40
|
+
alert: {
|
|
41
|
+
close: "\u0625\u063A\u0644\u0627\u0642"
|
|
42
|
+
},
|
|
43
|
+
table: {
|
|
44
|
+
noData: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "\u010Ce\u0161tina",
|
|
4
|
+
code: "cs",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "\u017D\xE1dn\xE1 shoda",
|
|
8
|
+
noData: "\u017D\xE1dn\xE1 data",
|
|
9
|
+
create: 'Vytvo\u0159it "{label}"'
|
|
10
|
+
},
|
|
11
|
+
inputNumber: {
|
|
12
|
+
increment: "Zv\xFD\u0161it",
|
|
13
|
+
decrement: "Sn\xED\u017Eit"
|
|
14
|
+
},
|
|
15
|
+
commandPalette: {
|
|
16
|
+
noMatch: "\u017D\xE1dn\xE1 shoda",
|
|
17
|
+
noData: "\u017D\xE1dn\xE1 data",
|
|
18
|
+
close: "Zav\u0159\xEDt"
|
|
19
|
+
},
|
|
20
|
+
selectMenu: {
|
|
21
|
+
noMatch: "\u017D\xE1dn\xE1 shoda",
|
|
22
|
+
noData: "\u017D\xE1dn\xE1 data",
|
|
23
|
+
create: 'Vytvo\u0159it "{label}"'
|
|
24
|
+
},
|
|
25
|
+
toast: {
|
|
26
|
+
close: "Zav\u0159\xEDt"
|
|
27
|
+
},
|
|
28
|
+
carousel: {
|
|
29
|
+
prev: "P\u0159edchoz\xED",
|
|
30
|
+
next: "Dal\u0161\xED",
|
|
31
|
+
goto: "P\u0159ej\xEDt na {slide}"
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
close: "Zav\u0159\xEDt"
|
|
35
|
+
},
|
|
36
|
+
slideover: {
|
|
37
|
+
close: "Zav\u0159\xEDt"
|
|
38
|
+
},
|
|
39
|
+
alert: {
|
|
40
|
+
close: "Zav\u0159\xEDt"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
noData: "\u017D\xE1dn\xE1 data"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "Deutsch",
|
|
4
|
+
code: "de",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "Nichts gefunden",
|
|
8
|
+
noData: "Keine Daten",
|
|
9
|
+
create: '"{label}" erstellen'
|
|
10
|
+
},
|
|
11
|
+
inputNumber: {
|
|
12
|
+
increment: "Erh\xF6hen",
|
|
13
|
+
decrement: "Verringern"
|
|
14
|
+
},
|
|
15
|
+
commandPalette: {
|
|
16
|
+
noMatch: "Nichts gefunden",
|
|
17
|
+
noData: "Keine Daten",
|
|
18
|
+
close: "Schlie\xDFen"
|
|
19
|
+
},
|
|
20
|
+
selectMenu: {
|
|
21
|
+
noMatch: "Nichts gefunden",
|
|
22
|
+
noData: "Keine Daten",
|
|
23
|
+
create: '"{label}" erstellen'
|
|
24
|
+
},
|
|
25
|
+
toast: {
|
|
26
|
+
close: "Schlie\xDFen"
|
|
27
|
+
},
|
|
28
|
+
carousel: {
|
|
29
|
+
prev: "Weiter",
|
|
30
|
+
next: "Zur\xFCck",
|
|
31
|
+
goto: "Gehe zu {slide}"
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
close: "Schlie\xDFen"
|
|
35
|
+
},
|
|
36
|
+
slideover: {
|
|
37
|
+
close: "Schlie\xDFen"
|
|
38
|
+
},
|
|
39
|
+
alert: {
|
|
40
|
+
close: "Schlie\xDFen"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
noData: "Keine Daten"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "English",
|
|
4
|
+
code: "en",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "No matching data",
|
|
8
|
+
noData: "No data",
|
|
9
|
+
create: 'Create "{label}"'
|
|
10
|
+
},
|
|
11
|
+
inputNumber: {
|
|
12
|
+
increment: "Increment",
|
|
13
|
+
decrement: "Decrement"
|
|
14
|
+
},
|
|
15
|
+
commandPalette: {
|
|
16
|
+
noMatch: "No matching data",
|
|
17
|
+
noData: "No data",
|
|
18
|
+
close: "Close"
|
|
19
|
+
},
|
|
20
|
+
selectMenu: {
|
|
21
|
+
noMatch: "No matching data",
|
|
22
|
+
noData: "No data",
|
|
23
|
+
create: 'Create "{label}"'
|
|
24
|
+
},
|
|
25
|
+
toast: {
|
|
26
|
+
close: "Close"
|
|
27
|
+
},
|
|
28
|
+
carousel: {
|
|
29
|
+
prev: "Prev",
|
|
30
|
+
next: "Next",
|
|
31
|
+
goto: "Go to slide {slide}"
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
close: "Close"
|
|
35
|
+
},
|
|
36
|
+
slideover: {
|
|
37
|
+
close: "Close"
|
|
38
|
+
},
|
|
39
|
+
alert: {
|
|
40
|
+
close: "Close"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
noData: "No data"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "Espa\xF1ol",
|
|
4
|
+
code: "es",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "No hay datos coincidentes",
|
|
8
|
+
noData: "Sin datos",
|
|
9
|
+
create: 'Crear "{label}"'
|
|
10
|
+
},
|
|
11
|
+
inputNumber: {
|
|
12
|
+
increment: "Incremento",
|
|
13
|
+
decrement: "Decremento"
|
|
14
|
+
},
|
|
15
|
+
commandPalette: {
|
|
16
|
+
noMatch: "No hay datos coincidentes",
|
|
17
|
+
noData: "Sin datos",
|
|
18
|
+
close: "Cerrar"
|
|
19
|
+
},
|
|
20
|
+
selectMenu: {
|
|
21
|
+
noMatch: "No hay datos coincidentes",
|
|
22
|
+
noData: "Sin datos",
|
|
23
|
+
create: 'Crear "{label}"'
|
|
24
|
+
},
|
|
25
|
+
toast: {
|
|
26
|
+
close: "Cerrar"
|
|
27
|
+
},
|
|
28
|
+
carousel: {
|
|
29
|
+
prev: "Anterior",
|
|
30
|
+
next: "Siguiente",
|
|
31
|
+
goto: "Ir a la diapositiva {slide}"
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
close: "Cerrar"
|
|
35
|
+
},
|
|
36
|
+
slideover: {
|
|
37
|
+
close: "Cerrar"
|
|
38
|
+
},
|
|
39
|
+
alert: {
|
|
40
|
+
close: "Cerrar"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
noData: "Sin datos"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "\u0641\u0627\u0631\u0633\u06CC",
|
|
4
|
+
code: "fa-IR",
|
|
5
|
+
dir: "rtl",
|
|
6
|
+
messages: {
|
|
7
|
+
inputMenu: {
|
|
8
|
+
noMatch: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F",
|
|
9
|
+
noData: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A",
|
|
10
|
+
create: '\u0627\u06CC\u062C\u0627\u062F "{label}"'
|
|
11
|
+
},
|
|
12
|
+
inputNumber: {
|
|
13
|
+
increment: "\u0627\u0641\u0632\u0627\u06CC\u0634",
|
|
14
|
+
decrement: "\u06A9\u0627\u0647\u0634"
|
|
15
|
+
},
|
|
16
|
+
commandPalette: {
|
|
17
|
+
noMatch: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F",
|
|
18
|
+
noData: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A",
|
|
19
|
+
close: "\u0628\u0633\u062A\u0646"
|
|
20
|
+
},
|
|
21
|
+
selectMenu: {
|
|
22
|
+
noMatch: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F",
|
|
23
|
+
noData: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A",
|
|
24
|
+
create: '\u0627\u06CC\u062C\u0627\u062F "{label}"'
|
|
25
|
+
},
|
|
26
|
+
toast: {
|
|
27
|
+
close: "\u0628\u0633\u062A\u0646"
|
|
28
|
+
},
|
|
29
|
+
carousel: {
|
|
30
|
+
prev: "\u0642\u0628\u0644\u06CC",
|
|
31
|
+
next: "\u0628\u0639\u062F\u06CC",
|
|
32
|
+
goto: "\u0631\u0641\u062A\u0646 \u0628\u0647 \u0627\u0633\u0644\u0627\u06CC\u062F {slide}"
|
|
33
|
+
},
|
|
34
|
+
modal: {
|
|
35
|
+
close: "\u0628\u0633\u062A\u0646"
|
|
36
|
+
},
|
|
37
|
+
slideover: {
|
|
38
|
+
close: "\u0628\u0633\u062A\u0646"
|
|
39
|
+
},
|
|
40
|
+
alert: {
|
|
41
|
+
close: "\u0628\u0633\u062A\u0646"
|
|
42
|
+
},
|
|
43
|
+
table: {
|
|
44
|
+
noData: "\u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "Fran\xE7ais",
|
|
4
|
+
code: "fr",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "Aucune donn\xE9e correspondante",
|
|
8
|
+
noData: "Aucune donn\xE9e",
|
|
9
|
+
create: 'Cr\xE9er "{label}"'
|
|
10
|
+
},
|
|
11
|
+
inputNumber: {
|
|
12
|
+
increment: "Augmenter",
|
|
13
|
+
decrement: "Diminuer"
|
|
14
|
+
},
|
|
15
|
+
commandPalette: {
|
|
16
|
+
noMatch: "Aucune donn\xE9e correspondante",
|
|
17
|
+
noData: "Aucune donn\xE9e",
|
|
18
|
+
close: "Fermer"
|
|
19
|
+
},
|
|
20
|
+
selectMenu: {
|
|
21
|
+
noMatch: "Aucune donn\xE9e correspondante",
|
|
22
|
+
noData: "Aucune donn\xE9e",
|
|
23
|
+
create: 'Cr\xE9er "{label}"'
|
|
24
|
+
},
|
|
25
|
+
toast: {
|
|
26
|
+
close: "Fermer"
|
|
27
|
+
},
|
|
28
|
+
carousel: {
|
|
29
|
+
prev: "Pr\xE9c\xE9dent",
|
|
30
|
+
next: "Suivant",
|
|
31
|
+
goto: "Aller \xE0 {slide}"
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
close: "Fermer"
|
|
35
|
+
},
|
|
36
|
+
slideover: {
|
|
37
|
+
close: "Fermer"
|
|
38
|
+
},
|
|
39
|
+
alert: {
|
|
40
|
+
close: "Fermer"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
noData: "Aucune donn\xE9e"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as ar } from './ar';
|
|
2
|
+
export { default as cs } from './cs';
|
|
3
|
+
export { default as de } from './de';
|
|
4
|
+
export { default as en } from './en';
|
|
5
|
+
export { default as es } from './es';
|
|
6
|
+
export { default as fr } from './fr';
|
|
7
|
+
export { default as fa_ir } from './fa_ir';
|
|
8
|
+
export { default as it } from './it';
|
|
9
|
+
export { default as pl } from './pl';
|
|
10
|
+
export { default as ru } from './ru';
|
|
11
|
+
export { default as zh_hans } from './zh_hans';
|
|
12
|
+
export { default as zh_hant } from './zh_hant';
|