@nuxt/ui 3.0.0-alpha.8 → 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/button.ts +1 -1
- package/.nuxt/ui/card.ts +1 -1
- package/.nuxt/ui/carousel.ts +2 -2
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/index.ts +2 -0
- package/.nuxt/ui/input-menu.ts +3 -3
- package/.nuxt/ui/input-number.ts +204 -0
- package/.nuxt/ui/input.ts +2 -2
- package/.nuxt/ui/navigation-menu.ts +1 -1
- package/.nuxt/ui/pin-input.ts +145 -0
- package/.nuxt/ui/select-menu.ts +8 -13
- package/.nuxt/ui/select.ts +2 -2
- package/.nuxt/ui/table.ts +1 -0
- package/.nuxt/ui/tabs.ts +1 -1
- package/.nuxt/ui/textarea.ts +2 -2
- package/.nuxt/ui/toaster.ts +1 -1
- package/.nuxt/ui/tooltip.ts +1 -1
- 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 +46 -1
- package/cli/utils.mjs +14 -0
- package/dist/chunks/component-meta.cjs +7320 -3335
- package/dist/chunks/component-meta.mjs +7320 -3335
- package/dist/client/devtools/200.html +1 -1
- package/dist/client/devtools/404.html +1 -1
- package/dist/client/devtools/_nuxt/{hKiujHsR.js → BDC8ywlR.js} +1 -1
- package/dist/client/devtools/_nuxt/{DM3_wAgz.js → BT004Uxp.js} +22 -31
- package/dist/client/devtools/_nuxt/{Bj9hdafK.js → C1H2Soz3.js} +1 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
- 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/index.html +1 -1
- package/dist/module.cjs +13 -12
- package/dist/module.json +1 -1
- package/dist/module.mjs +13 -12
- package/dist/runtime/components/Alert.vue +4 -1
- package/dist/runtime/components/App.vue +11 -5
- package/dist/runtime/components/Breadcrumb.vue +8 -3
- package/dist/runtime/components/Carousel.vue +11 -7
- package/dist/runtime/components/CommandPalette.vue +5 -3
- package/dist/runtime/components/ContextMenuContent.vue +2 -0
- package/dist/runtime/components/DropdownMenuContent.vue +2 -0
- package/dist/runtime/components/Form.vue +18 -20
- package/dist/runtime/components/FormField.vue +7 -3
- package/dist/runtime/components/InputMenu.vue +97 -21
- package/dist/runtime/components/InputNumber.vue +192 -0
- package/dist/runtime/components/Link.vue +19 -5
- package/dist/runtime/components/Modal.vue +12 -3
- package/dist/runtime/components/NavigationMenu.vue +4 -2
- package/dist/runtime/components/Pagination.vue +12 -5
- package/dist/runtime/components/PinInput.vue +96 -0
- package/dist/runtime/components/Popover.vue +17 -1
- package/dist/runtime/components/Select.vue +1 -1
- package/dist/runtime/components/SelectMenu.vue +106 -30
- package/dist/runtime/components/Slideover.vue +12 -3
- package/dist/runtime/components/Table.vue +11 -1
- package/dist/runtime/components/Textarea.vue +1 -1
- package/dist/runtime/components/Toast.vue +4 -1
- package/dist/runtime/components/Toaster.vue +22 -14
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/useFormField.d.ts +4 -1
- package/dist/runtime/composables/useFormField.js +1 -1
- 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/utils/form.d.ts +5 -9
- package/dist/runtime/utils/form.js +115 -50
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/shared/{ui.BU7wzH0D.cjs → ui.BPnAe4QS.cjs} +194 -36
- package/dist/shared/{ui.BufKhDiD.mjs → ui.d52SSCwA.mjs} +194 -36
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.d.cts +5 -3
- package/dist/unplugin.d.mts +5 -3
- package/dist/unplugin.d.ts +5 -3
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +33 -26
- package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +0 -1
- package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +0 -24
- package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +0 -1
|
@@ -41,6 +41,7 @@ export interface TableData {
|
|
|
41
41
|
export interface TableProps<T> {
|
|
42
42
|
data?: T[]
|
|
43
43
|
columns?: TableColumn<T>[]
|
|
44
|
+
caption?: string
|
|
44
45
|
/**
|
|
45
46
|
* Whether the table should have a sticky header.
|
|
46
47
|
* @defaultValue false
|
|
@@ -95,6 +96,7 @@ type DynamicCellSlots<T, K = keyof T> = Record<string, (props: CellContext<T, un
|
|
|
95
96
|
export type TableSlots<T> = {
|
|
96
97
|
expanded: (props: { row: Row<T> }) => any
|
|
97
98
|
empty: (props?: {}) => any
|
|
99
|
+
caption: (props?: {}) => any
|
|
98
100
|
} & DynamicHeaderSlots<T> & DynamicCellSlots<T>
|
|
99
101
|
|
|
100
102
|
</script>
|
|
@@ -110,10 +112,12 @@ import {
|
|
|
110
112
|
useVueTable
|
|
111
113
|
} from '@tanstack/vue-table'
|
|
112
114
|
import { upperFirst } from 'scule'
|
|
115
|
+
import { useLocale } from '../composables/useLocale'
|
|
113
116
|
|
|
114
117
|
const props = defineProps<TableProps<T>>()
|
|
115
118
|
defineSlots<TableSlots<T>>()
|
|
116
119
|
|
|
120
|
+
const { t } = useLocale()
|
|
117
121
|
const data = computed(() => props.data ?? [])
|
|
118
122
|
const columns = computed<TableColumn<T>[]>(() => props.columns ?? Object.keys(data.value[0] ?? {}).map((accessorKey: string) => ({ accessorKey, header: upperFirst(accessorKey) })))
|
|
119
123
|
|
|
@@ -190,6 +194,12 @@ defineExpose({
|
|
|
190
194
|
<template>
|
|
191
195
|
<div :class="ui.root({ class: [props.class, props.ui?.root] })">
|
|
192
196
|
<table :class="ui.base({ class: [props.ui?.base] })">
|
|
197
|
+
<caption v-if="caption" :class="ui.caption({ class: [props.ui?.caption] })">
|
|
198
|
+
<slot name="caption">
|
|
199
|
+
{{ caption }}
|
|
200
|
+
</slot>
|
|
201
|
+
</caption>
|
|
202
|
+
|
|
193
203
|
<thead :class="ui.thead({ class: [props.ui?.thead] })">
|
|
194
204
|
<tr v-for="headerGroup in tableApi.getHeaderGroups()" :key="headerGroup.id" :class="ui.tr({ class: [props.ui?.tr] })">
|
|
195
205
|
<th
|
|
@@ -231,7 +241,7 @@ defineExpose({
|
|
|
231
241
|
<tr v-else :class="ui.tr({ class: [props.ui?.tr] })">
|
|
232
242
|
<td :colspan="columns?.length" :class="ui.empty({ class: props.ui?.empty })">
|
|
233
243
|
<slot name="empty">
|
|
234
|
-
|
|
244
|
+
{{ t('table.noData') }}
|
|
235
245
|
</slot>
|
|
236
246
|
</td>
|
|
237
247
|
</tr>
|
|
@@ -28,6 +28,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
28
28
|
* Display a list of actions:
|
|
29
29
|
* - under the title and description if multiline
|
|
30
30
|
* - next to the close button if not multiline
|
|
31
|
+
* `{ size: 'xs' }`{lang="ts-type"}
|
|
31
32
|
*/
|
|
32
33
|
actions?: ButtonProps[]
|
|
33
34
|
/**
|
|
@@ -63,6 +64,7 @@ import { ref, computed, onMounted } from 'vue'
|
|
|
63
64
|
import { ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastClose, useForwardPropsEmits } from 'radix-vue'
|
|
64
65
|
import { reactivePick } from '@vueuse/core'
|
|
65
66
|
import { useAppConfig } from '#imports'
|
|
67
|
+
import { useLocale } from '../composables/useLocale'
|
|
66
68
|
import UIcon from './Icon.vue'
|
|
67
69
|
import UAvatar from './Avatar.vue'
|
|
68
70
|
import UButton from './Button.vue'
|
|
@@ -74,6 +76,7 @@ const emits = defineEmits<ToastEmits>()
|
|
|
74
76
|
const slots = defineSlots<ToastSlots>()
|
|
75
77
|
|
|
76
78
|
const appConfig = useAppConfig()
|
|
79
|
+
const { t } = useLocale()
|
|
77
80
|
const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultOpen', 'open', 'duration', 'type'), emits)
|
|
78
81
|
|
|
79
82
|
const multiline = computed(() => !!props.title && !!props.description)
|
|
@@ -151,7 +154,7 @@ defineExpose({
|
|
|
151
154
|
size="md"
|
|
152
155
|
color="neutral"
|
|
153
156
|
variant="link"
|
|
154
|
-
aria-label="
|
|
157
|
+
:aria-label="t('toast.close')"
|
|
155
158
|
v-bind="typeof close === 'object' ? close : undefined"
|
|
156
159
|
:class="ui.close({ class: props.ui?.close })"
|
|
157
160
|
@click.stop
|
|
@@ -19,6 +19,11 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
19
19
|
* @defaultValue true
|
|
20
20
|
*/
|
|
21
21
|
expand?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* Render the toaster in a portal.
|
|
24
|
+
* @defaultValue true
|
|
25
|
+
*/
|
|
26
|
+
portal?: boolean
|
|
22
27
|
class?: any
|
|
23
28
|
ui?: Partial<typeof toaster.slots>
|
|
24
29
|
}
|
|
@@ -36,7 +41,7 @@ extendDevtoolsMeta({ example: 'ToasterExample' })
|
|
|
36
41
|
|
|
37
42
|
<script setup lang="ts">
|
|
38
43
|
import { ref, computed } from 'vue'
|
|
39
|
-
import { ToastProvider, ToastViewport, useForwardProps } from 'radix-vue'
|
|
44
|
+
import { ToastProvider, ToastViewport, ToastPortal, useForwardProps } from 'radix-vue'
|
|
40
45
|
import { reactivePick } from '@vueuse/core'
|
|
41
46
|
import { useToast } from '../composables/useToast'
|
|
42
47
|
import { omit } from '../utils'
|
|
@@ -44,6 +49,7 @@ import UToast from './Toast.vue'
|
|
|
44
49
|
|
|
45
50
|
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
46
51
|
expand: true,
|
|
52
|
+
portal: true,
|
|
47
53
|
duration: 5000
|
|
48
54
|
})
|
|
49
55
|
defineSlots<ToasterSlots>()
|
|
@@ -120,18 +126,20 @@ function getOffset(index: number) {
|
|
|
120
126
|
@click="toast.click && toast.click(toast)"
|
|
121
127
|
/>
|
|
122
128
|
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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>
|
|
136
144
|
</ToastProvider>
|
|
137
145
|
</template>
|
|
@@ -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 {};
|
|
@@ -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);
|
|
@@ -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';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as ar } from "./ar.js";
|
|
2
|
+
export { default as cs } from "./cs.js";
|
|
3
|
+
export { default as de } from "./de.js";
|
|
4
|
+
export { default as en } from "./en.js";
|
|
5
|
+
export { default as es } from "./es.js";
|
|
6
|
+
export { default as fr } from "./fr.js";
|
|
7
|
+
export { default as fa_ir } from "./fa_ir.js";
|
|
8
|
+
export { default as it } from "./it.js";
|
|
9
|
+
export { default as pl } from "./pl.js";
|
|
10
|
+
export { default as ru } from "./ru.js";
|
|
11
|
+
export { default as zh_hans } from "./zh_hans.js";
|
|
12
|
+
export { default as zh_hant } from "./zh_hant.js";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "Italiano",
|
|
4
|
+
code: "it",
|
|
5
|
+
messages: {
|
|
6
|
+
inputMenu: {
|
|
7
|
+
noMatch: "Nessun dato corrispondente",
|
|
8
|
+
noData: "Nessun dato",
|
|
9
|
+
create: 'Crea "{label}"'
|
|
10
|
+
},
|
|
11
|
+
inputNumber: {
|
|
12
|
+
increment: "Aumenta",
|
|
13
|
+
decrement: "Diminuisci"
|
|
14
|
+
},
|
|
15
|
+
commandPalette: {
|
|
16
|
+
noMatch: "Nessun dato corrispondente",
|
|
17
|
+
noData: "Nessun dato",
|
|
18
|
+
close: "Chiudi"
|
|
19
|
+
},
|
|
20
|
+
selectMenu: {
|
|
21
|
+
noMatch: "Nessun dato corrispondente",
|
|
22
|
+
noData: "Nessun dato",
|
|
23
|
+
create: 'Crea "{label}"'
|
|
24
|
+
},
|
|
25
|
+
toast: {
|
|
26
|
+
close: "Chiudi"
|
|
27
|
+
},
|
|
28
|
+
carousel: {
|
|
29
|
+
prev: "Precedente",
|
|
30
|
+
next: "Successiva",
|
|
31
|
+
goto: "Vai alla slide {slide}"
|
|
32
|
+
},
|
|
33
|
+
modal: {
|
|
34
|
+
close: "Chiudi"
|
|
35
|
+
},
|
|
36
|
+
slideover: {
|
|
37
|
+
close: "Chiudi"
|
|
38
|
+
},
|
|
39
|
+
alert: {
|
|
40
|
+
close: "Chiudi"
|
|
41
|
+
},
|
|
42
|
+
table: {
|
|
43
|
+
noData: "Nessun dato"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|