@nuxt/ui 4.0.0-alpha.1 → 4.0.0-beta.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/content/content-navigation.ts +2 -1
- package/.nuxt/ui/marquee.ts +1 -1
- package/.nuxt/ui/progress.ts +3 -3
- package/.nuxt/ui/prose/code-tree.ts +1 -1
- package/.nuxt/ui/prose/img.ts +1 -1
- package/.nuxt/ui/tree.ts +1 -1
- package/README.md +14 -1
- package/dist/module.d.mts +6 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +8 -6
- package/dist/runtime/components/Accordion.d.vue.ts +79 -0
- package/dist/runtime/components/Accordion.vue +3 -3
- package/dist/runtime/components/Accordion.vue.d.ts +2 -2
- package/dist/runtime/components/Alert.d.vue.ts +81 -0
- package/dist/runtime/components/App.d.vue.ts +25 -0
- package/dist/runtime/components/AuthForm.d.vue.ts +128 -0
- package/dist/runtime/components/AuthForm.vue.d.ts +39 -1
- package/dist/runtime/components/Avatar.d.vue.ts +41 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +31 -0
- package/dist/runtime/components/Badge.d.vue.ts +43 -0
- package/dist/runtime/components/Banner.d.vue.ts +72 -0
- package/dist/runtime/components/Banner.vue +1 -1
- package/dist/runtime/components/BlogPost.d.vue.ts +60 -0
- package/dist/runtime/components/BlogPosts.d.vue.ts +31 -0
- package/dist/runtime/components/Breadcrumb.d.vue.ts +67 -0
- package/dist/runtime/components/Breadcrumb.vue +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +2 -2
- package/dist/runtime/components/Button.d.vue.ts +44 -0
- package/dist/runtime/components/Calendar.d.vue.ts +112 -0
- package/dist/runtime/components/Card.d.vue.ts +29 -0
- package/dist/runtime/components/Carousel.d.vue.ts +127 -0
- package/dist/runtime/components/Carousel.vue.d.ts +10 -10
- package/dist/runtime/components/ChangelogVersion.d.vue.ts +59 -0
- package/dist/runtime/components/ChangelogVersions.d.vue.ts +78 -0
- package/dist/runtime/components/ChangelogVersions.vue +2 -2
- package/dist/runtime/components/ChatMessage.d.vue.ts +67 -0
- package/dist/runtime/components/ChatMessages.d.vue.ts +83 -0
- package/dist/runtime/components/ChatMessages.vue +6 -6
- package/dist/runtime/components/ChatPalette.d.vue.ts +24 -0
- package/dist/runtime/components/ChatPrompt.d.vue.ts +61 -0
- package/dist/runtime/components/ChatPrompt.vue +2 -2
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +100 -0
- package/dist/runtime/components/Checkbox.d.vue.ts +74 -0
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +89 -0
- package/dist/runtime/components/CheckboxGroup.vue +8 -8
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +20 -16
- package/dist/runtime/components/Chip.d.vue.ts +57 -0
- package/dist/runtime/components/Collapsible.d.vue.ts +35 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +48 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +193 -0
- package/dist/runtime/components/CommandPalette.vue +5 -4
- package/dist/runtime/components/CommandPalette.vue.d.ts +2 -1
- package/dist/runtime/components/Container.d.vue.ts +18 -0
- package/dist/runtime/components/ContextMenu.d.vue.ts +110 -0
- package/dist/runtime/components/ContextMenu.vue +2 -2
- package/dist/runtime/components/ContextMenu.vue.d.ts +2 -2
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +50 -0
- package/dist/runtime/components/ContextMenuContent.vue +2 -2
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardGroup.d.vue.ts +24 -0
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +52 -0
- package/dist/runtime/components/DashboardPanel.d.vue.ts +30 -0
- package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +18 -0
- package/dist/runtime/components/DashboardSearch.d.vue.ts +91 -0
- package/dist/runtime/components/DashboardSearch.vue +2 -2
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +59 -0
- package/dist/runtime/components/DashboardSearchButton.vue +2 -2
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +75 -0
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +19 -0
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +19 -0
- package/dist/runtime/components/DashboardToolbar.d.vue.ts +25 -0
- package/dist/runtime/components/Drawer.d.vue.ts +84 -0
- package/dist/runtime/components/DropdownMenu.d.vue.ts +120 -0
- package/dist/runtime/components/DropdownMenu.vue +2 -2
- package/dist/runtime/components/DropdownMenu.vue.d.ts +2 -2
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +56 -0
- package/dist/runtime/components/DropdownMenuContent.vue +2 -2
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/runtime/components/Error.d.vue.ts +47 -0
- package/dist/runtime/components/FieldGroup.d.vue.ts +34 -0
- package/dist/runtime/components/FileUpload.d.vue.ts +166 -0
- package/dist/runtime/components/FileUpload.vue +1 -0
- package/dist/runtime/components/Footer.d.vue.ts +29 -0
- package/dist/runtime/components/FooterColumns.d.vue.ts +57 -0
- package/dist/runtime/components/Form.d.vue.ts +114 -0
- package/dist/runtime/components/Form.vue +144 -60
- package/dist/runtime/components/Form.vue.d.ts +54 -11
- package/dist/runtime/components/FormField.d.vue.ts +61 -0
- package/dist/runtime/components/FormField.vue +9 -3
- package/dist/runtime/components/Header.d.vue.ts +68 -0
- package/dist/runtime/components/Icon.d.vue.ts +8 -0
- package/dist/runtime/components/Input.d.vue.ts +74 -0
- package/dist/runtime/components/Input.vue.d.ts +4 -3
- package/dist/runtime/components/InputMenu.d.vue.ts +330 -0
- package/dist/runtime/components/InputMenu.vue +2 -2
- package/dist/runtime/components/InputMenu.vue.d.ts +4 -4
- package/dist/runtime/components/InputNumber.d.vue.ts +188 -0
- package/dist/runtime/components/InputNumber.vue +2 -2
- package/dist/runtime/components/InputNumber.vue.d.ts +0 -2
- package/dist/runtime/components/InputTags.d.vue.ts +186 -0
- package/dist/runtime/components/InputTags.vue +2 -2
- package/dist/runtime/components/Kbd.d.vue.ts +38 -0
- package/dist/runtime/components/Link.d.vue.ts +91 -0
- package/dist/runtime/components/LinkBase.d.vue.ts +25 -0
- package/dist/runtime/components/Main.d.vue.ts +20 -0
- package/dist/runtime/components/Marquee.d.vue.ts +32 -0
- package/dist/runtime/components/Marquee.vue +1 -1
- package/dist/runtime/components/Modal.d.vue.ts +107 -0
- package/dist/runtime/components/NavigationMenu.d.vue.ts +171 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +2 -2
- package/dist/runtime/components/OverlayProvider.d.vue.ts +2 -0
- package/dist/runtime/components/Page.d.vue.ts +25 -0
- package/dist/runtime/components/PageAnchors.d.vue.ts +47 -0
- package/dist/runtime/components/PageAside.d.vue.ts +27 -0
- package/dist/runtime/components/PageBody.d.vue.ts +18 -0
- package/dist/runtime/components/PageCTA.d.vue.ts +56 -0
- package/dist/runtime/components/PageCard.d.vue.ts +72 -0
- package/dist/runtime/components/PageColumns.d.vue.ts +18 -0
- package/dist/runtime/components/PageFeature.d.vue.ts +44 -0
- package/dist/runtime/components/PageGrid.d.vue.ts +18 -0
- package/dist/runtime/components/PageHeader.d.vue.ts +36 -0
- package/dist/runtime/components/PageHero.d.vue.ts +53 -0
- package/dist/runtime/components/PageLinks.d.vue.ts +49 -0
- package/dist/runtime/components/PageList.d.vue.ts +21 -0
- package/dist/runtime/components/PageLogos.d.vue.ts +33 -0
- package/dist/runtime/components/PageSection.d.vue.ts +68 -0
- package/dist/runtime/components/Pagination.d.vue.ts +118 -0
- package/dist/runtime/components/PinInput.d.vue.ts +60 -0
- package/dist/runtime/components/Popover.d.vue.ts +71 -0
- package/dist/runtime/components/PricingPlan.d.vue.ts +112 -0
- package/dist/runtime/components/PricingPlans.d.vue.ts +44 -0
- package/dist/runtime/components/PricingTable.d.vue.ts +105 -0
- package/dist/runtime/components/Progress.d.vue.ts +66 -0
- package/dist/runtime/components/Progress.vue +2 -3
- package/dist/runtime/components/RadioGroup.d.vue.ts +99 -0
- package/dist/runtime/components/RadioGroup.vue +13 -11
- package/dist/runtime/components/RadioGroup.vue.d.ts +17 -13
- package/dist/runtime/components/Select.d.vue.ts +254 -0
- package/dist/runtime/components/Select.vue +3 -3
- package/dist/runtime/components/Select.vue.d.ts +5 -5
- package/dist/runtime/components/SelectMenu.d.vue.ts +303 -0
- package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
- package/dist/runtime/components/Separator.d.vue.ts +54 -0
- package/dist/runtime/components/Skeleton.d.vue.ts +17 -0
- package/dist/runtime/components/Slideover.d.vue.ts +108 -0
- package/dist/runtime/components/Slider.d.vue.ts +57 -0
- package/dist/runtime/components/Stepper.d.vue.ts +87 -0
- package/dist/runtime/components/Switch.d.vue.ts +71 -0
- package/dist/runtime/components/Table.d.vue.ts +201 -0
- package/dist/runtime/components/Table.vue.d.ts +26 -26
- package/dist/runtime/components/Tabs.d.vue.ts +99 -0
- package/dist/runtime/components/Tabs.vue +12 -5
- package/dist/runtime/components/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/Textarea.d.vue.ts +74 -0
- package/dist/runtime/components/Timeline.d.vue.ts +71 -0
- package/dist/runtime/components/Toast.d.vue.ts +165 -0
- package/dist/runtime/components/Toaster.d.vue.ts +44 -0
- package/dist/runtime/components/Tooltip.d.vue.ts +57 -0
- package/dist/runtime/components/Tree.d.vue.ts +112 -0
- package/dist/runtime/components/Tree.vue +88 -47
- package/dist/runtime/components/Tree.vue.d.ts +20 -24
- package/dist/runtime/components/User.d.vue.ts +47 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +7 -0
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +23 -0
- package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +6 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +5 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +5 -0
- package/dist/runtime/components/content/ContentNavigation.d.vue.ts +102 -0
- package/dist/runtime/components/content/ContentNavigation.vue +5 -4
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +114 -0
- package/dist/runtime/components/content/ContentSearch.vue +2 -2
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +59 -0
- package/dist/runtime/components/content/ContentSearchButton.vue +2 -2
- package/dist/runtime/components/content/ContentSurround.d.vue.ts +59 -0
- package/dist/runtime/components/content/ContentToc.d.vue.ts +88 -0
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +15 -0
- package/dist/runtime/components/prose/A.d.vue.ts +15 -0
- package/dist/runtime/components/prose/Accordion.d.vue.ts +16 -0
- package/dist/runtime/components/prose/AccordionItem.d.vue.ts +15 -0
- package/dist/runtime/components/prose/Badge.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Blockquote.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Callout.d.vue.ts +26 -0
- package/dist/runtime/components/prose/Card.d.vue.ts +29 -0
- package/dist/runtime/components/prose/CardGroup.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Code.d.vue.ts +22 -0
- package/dist/runtime/components/prose/CodeCollapse.d.vue.ts +47 -0
- package/dist/runtime/components/prose/CodeGroup.d.vue.ts +37 -0
- package/dist/runtime/components/prose/CodeIcon.d.vue.ts +7 -0
- package/dist/runtime/components/prose/CodePreview.d.vue.ts +19 -0
- package/dist/runtime/components/prose/CodeTree.d.vue.ts +28 -0
- package/dist/runtime/components/prose/CodeTree.vue +38 -31
- package/dist/runtime/components/prose/Collapsible.d.vue.ts +39 -0
- package/dist/runtime/components/prose/Em.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Field.d.vue.ts +39 -0
- package/dist/runtime/components/prose/FieldGroup.d.vue.ts +18 -0
- package/dist/runtime/components/prose/H1.d.vue.ts +19 -0
- package/dist/runtime/components/prose/H2.d.vue.ts +19 -0
- package/dist/runtime/components/prose/H3.d.vue.ts +19 -0
- package/dist/runtime/components/prose/H4.d.vue.ts +19 -0
- package/dist/runtime/components/prose/Hr.d.vue.ts +5 -0
- package/dist/runtime/components/prose/Icon.d.vue.ts +6 -0
- package/dist/runtime/components/prose/Img.d.vue.ts +21 -0
- package/dist/runtime/components/prose/Kbd.d.vue.ts +6 -0
- package/dist/runtime/components/prose/Li.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Ol.d.vue.ts +13 -0
- package/dist/runtime/components/prose/P.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Pre.d.vue.ts +26 -0
- package/dist/runtime/components/prose/Script.d.vue.ts +5 -0
- package/dist/runtime/components/prose/Steps.d.vue.ts +22 -0
- package/dist/runtime/components/prose/Strong.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Table.d.vue.ts +18 -0
- package/dist/runtime/components/prose/Tabs.d.vue.ts +36 -0
- package/dist/runtime/components/prose/TabsItem.d.vue.ts +15 -0
- package/dist/runtime/components/prose/Tbody.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Td.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Th.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Thead.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Tr.d.vue.ts +13 -0
- package/dist/runtime/components/prose/Ul.d.vue.ts +13 -0
- package/dist/runtime/components/prose/callout/Caution.d.vue.ts +14 -0
- package/dist/runtime/components/prose/callout/Note.d.vue.ts +14 -0
- package/dist/runtime/components/prose/callout/Tip.d.vue.ts +14 -0
- package/dist/runtime/components/prose/callout/Warning.d.vue.ts +14 -0
- package/dist/runtime/composables/useFormField.d.ts +1 -0
- package/dist/runtime/composables/useFormField.js +1 -4
- package/dist/runtime/inertia/components/Link.d.vue.ts +63 -0
- package/dist/runtime/inertia/components/LinkBase.d.vue.ts +25 -0
- package/dist/runtime/locale/de_ch.d.ts +3 -0
- package/dist/runtime/locale/de_ch.js +129 -0
- package/dist/runtime/locale/id.js +1 -1
- package/dist/runtime/locale/index.d.ts +2 -0
- package/dist/runtime/locale/index.js +2 -0
- package/dist/runtime/locale/ka.d.ts +3 -0
- package/dist/runtime/locale/ka.js +132 -0
- package/dist/runtime/locale/pt.js +2 -2
- package/dist/runtime/types/form.d.ts +12 -13
- package/dist/runtime/types/form.js +1 -3
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/tv.d.ts +9 -2
- package/dist/runtime/types/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +2 -6
- package/dist/runtime/utils/form.js +28 -60
- package/dist/runtime/utils/fuse.d.ts +2 -1
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/index.js +6 -3
- package/dist/runtime/vue/components/Icon.d.vue.ts +6 -0
- package/dist/runtime/vue/components/Link.d.vue.ts +93 -0
- package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +16 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +5 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +5 -0
- package/dist/shared/{ui.BEZXPd3d.mjs → ui.DGJZ-1aX.mjs} +18 -13
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +27 -40
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "Schweizerdeutsch",
|
|
4
|
+
code: "de-CH",
|
|
5
|
+
messages: {
|
|
6
|
+
alert: {
|
|
7
|
+
close: "Schliessen"
|
|
8
|
+
},
|
|
9
|
+
authForm: {
|
|
10
|
+
hidePassword: "Passwort verbergen",
|
|
11
|
+
showPassword: "Passwort anzeigen",
|
|
12
|
+
submit: "Weiter"
|
|
13
|
+
},
|
|
14
|
+
banner: {
|
|
15
|
+
close: "Schliessen"
|
|
16
|
+
},
|
|
17
|
+
calendar: {
|
|
18
|
+
nextMonth: "N\xE4chster Monat",
|
|
19
|
+
nextYear: "N\xE4chstes Jahr",
|
|
20
|
+
prevMonth: "Vorheriger Monat",
|
|
21
|
+
prevYear: "Vorheriges Jahr"
|
|
22
|
+
},
|
|
23
|
+
carousel: {
|
|
24
|
+
dots: "Folie zur Anzeige ausw\xE4hlen",
|
|
25
|
+
goto: "Gehe zu {slide}",
|
|
26
|
+
next: "Weiter",
|
|
27
|
+
prev: "Zur\xFCck"
|
|
28
|
+
},
|
|
29
|
+
chatPrompt: {
|
|
30
|
+
placeholder: "Hier schreiben Sie Ihre Nachricht..."
|
|
31
|
+
},
|
|
32
|
+
chatPromptSubmit: {
|
|
33
|
+
label: "Senden"
|
|
34
|
+
},
|
|
35
|
+
colorMode: {
|
|
36
|
+
dark: "Dunkel",
|
|
37
|
+
light: "Hell",
|
|
38
|
+
switchToDark: "Zum dunklen Modus wechseln",
|
|
39
|
+
switchToLight: "Zum hellen Modus wechseln",
|
|
40
|
+
system: "System"
|
|
41
|
+
},
|
|
42
|
+
commandPalette: {
|
|
43
|
+
back: "Zur\xFCck",
|
|
44
|
+
close: "Schliessen",
|
|
45
|
+
noData: "Keine Daten",
|
|
46
|
+
noMatch: "Nichts gefunden",
|
|
47
|
+
placeholder: "Geben Sie einen Befehl ein oder suchen Sie..."
|
|
48
|
+
},
|
|
49
|
+
contentSearch: {
|
|
50
|
+
links: "Links",
|
|
51
|
+
theme: "Thema"
|
|
52
|
+
},
|
|
53
|
+
contentSearchButton: {
|
|
54
|
+
label: "Suchen..."
|
|
55
|
+
},
|
|
56
|
+
contentToc: {
|
|
57
|
+
title: "Auf dieser Seite"
|
|
58
|
+
},
|
|
59
|
+
dashboardSearch: {
|
|
60
|
+
theme: "Thema"
|
|
61
|
+
},
|
|
62
|
+
dashboardSearchButton: {
|
|
63
|
+
label: "Suchen..."
|
|
64
|
+
},
|
|
65
|
+
dashboardSidebarCollapse: {
|
|
66
|
+
collapse: "Seitenleiste einklappen",
|
|
67
|
+
expand: "Seitenleiste erweitern"
|
|
68
|
+
},
|
|
69
|
+
dashboardSidebarToggle: {
|
|
70
|
+
close: "Seitenleiste schliessen",
|
|
71
|
+
open: "Seitenleiste \xF6ffnen"
|
|
72
|
+
},
|
|
73
|
+
error: {
|
|
74
|
+
clear: "Zur\xFCck zur Startseite"
|
|
75
|
+
},
|
|
76
|
+
fileUpload: {
|
|
77
|
+
removeFile: "{filename} entfernen"
|
|
78
|
+
},
|
|
79
|
+
header: {
|
|
80
|
+
close: "Men\xFC schliessen",
|
|
81
|
+
open: "Men\xFC \xF6ffnen"
|
|
82
|
+
},
|
|
83
|
+
inputMenu: {
|
|
84
|
+
create: '"{label}" erstellen',
|
|
85
|
+
noData: "Keine Daten",
|
|
86
|
+
noMatch: "Nichts gefunden"
|
|
87
|
+
},
|
|
88
|
+
inputNumber: {
|
|
89
|
+
decrement: "Verringern",
|
|
90
|
+
increment: "Erh\xF6hen"
|
|
91
|
+
},
|
|
92
|
+
modal: {
|
|
93
|
+
close: "Schliessen"
|
|
94
|
+
},
|
|
95
|
+
pricingTable: {
|
|
96
|
+
caption: "Preisplanvergleich"
|
|
97
|
+
},
|
|
98
|
+
prose: {
|
|
99
|
+
codeCollapse: {
|
|
100
|
+
closeText: "Reduzieren",
|
|
101
|
+
name: "Code",
|
|
102
|
+
openText: "Erweitern"
|
|
103
|
+
},
|
|
104
|
+
collapsible: {
|
|
105
|
+
closeText: "Ausblenden",
|
|
106
|
+
name: "Eigenschaften",
|
|
107
|
+
openText: "Anzeigen"
|
|
108
|
+
},
|
|
109
|
+
pre: {
|
|
110
|
+
copy: "Code in die Zwischenablage kopieren"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
selectMenu: {
|
|
114
|
+
create: '"{label}" erstellen',
|
|
115
|
+
noData: "Keine Daten",
|
|
116
|
+
noMatch: "Nichts gefunden",
|
|
117
|
+
search: "Suchen..."
|
|
118
|
+
},
|
|
119
|
+
slideover: {
|
|
120
|
+
close: "Schliessen"
|
|
121
|
+
},
|
|
122
|
+
table: {
|
|
123
|
+
noData: "Keine Daten"
|
|
124
|
+
},
|
|
125
|
+
toast: {
|
|
126
|
+
close: "Schliessen"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
@@ -7,6 +7,7 @@ export { default as ckb } from './ckb';
|
|
|
7
7
|
export { default as cs } from './cs';
|
|
8
8
|
export { default as da } from './da';
|
|
9
9
|
export { default as de } from './de';
|
|
10
|
+
export { default as de_ch } from './de_ch';
|
|
10
11
|
export { default as el } from './el';
|
|
11
12
|
export { default as en } from './en';
|
|
12
13
|
export { default as es } from './es';
|
|
@@ -21,6 +22,7 @@ export { default as hy } from './hy';
|
|
|
21
22
|
export { default as id } from './id';
|
|
22
23
|
export { default as it } from './it';
|
|
23
24
|
export { default as ja } from './ja';
|
|
25
|
+
export { default as ka } from './ka';
|
|
24
26
|
export { default as kk } from './kk';
|
|
25
27
|
export { default as km } from './km';
|
|
26
28
|
export { default as ko } from './ko';
|
|
@@ -7,6 +7,7 @@ export { default as ckb } from "./ckb.js";
|
|
|
7
7
|
export { default as cs } from "./cs.js";
|
|
8
8
|
export { default as da } from "./da.js";
|
|
9
9
|
export { default as de } from "./de.js";
|
|
10
|
+
export { default as de_ch } from "./de_ch.js";
|
|
10
11
|
export { default as el } from "./el.js";
|
|
11
12
|
export { default as en } from "./en.js";
|
|
12
13
|
export { default as es } from "./es.js";
|
|
@@ -21,6 +22,7 @@ export { default as hy } from "./hy.js";
|
|
|
21
22
|
export { default as id } from "./id.js";
|
|
22
23
|
export { default as it } from "./it.js";
|
|
23
24
|
export { default as ja } from "./ja.js";
|
|
25
|
+
export { default as ka } from "./ka.js";
|
|
24
26
|
export { default as kk } from "./kk.js";
|
|
25
27
|
export { default as km } from "./km.js";
|
|
26
28
|
export { default as ko } from "./ko.js";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineLocale } from "../composables/defineLocale.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",
|
|
4
|
+
code: "ka",
|
|
5
|
+
messages: {
|
|
6
|
+
alert: {
|
|
7
|
+
close: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0"
|
|
8
|
+
},
|
|
9
|
+
authForm: {
|
|
10
|
+
hidePassword: "\u10DE\u10D0\u10E0\u10DD\u10DA\u10D8\u10E1 \u10D3\u10D0\u10DB\u10D0\u10DA\u10D5\u10D0",
|
|
11
|
+
showPassword: "\u10DE\u10D0\u10E0\u10DD\u10DA\u10D8\u10E1 \u10E9\u10D5\u10D4\u10DC\u10D4\u10D1\u10D0",
|
|
12
|
+
submit: "\u10D2\u10D0\u10D2\u10E0\u10EB\u10D4\u10DA\u10D4\u10D1\u10D0"
|
|
13
|
+
},
|
|
14
|
+
banner: {
|
|
15
|
+
close: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0"
|
|
16
|
+
},
|
|
17
|
+
calendar: {
|
|
18
|
+
nextMonth: "\u10E8\u10D4\u10DB\u10D3\u10D4\u10D2\u10D8 \u10D7\u10D5\u10D4",
|
|
19
|
+
nextYear: "\u10E8\u10D4\u10DB\u10D3\u10D4\u10D2\u10D8 \u10EC\u10D4\u10DA\u10D8",
|
|
20
|
+
prevMonth: "\u10EC\u10D8\u10DC\u10D0 \u10D7\u10D5\u10D4",
|
|
21
|
+
prevYear: "\u10EC\u10D8\u10DC\u10D0 \u10EC\u10D4\u10DA\u10D8"
|
|
22
|
+
},
|
|
23
|
+
carousel: {
|
|
24
|
+
dots: "\u10D0\u10D8\u10E0\u10E9\u10D8\u10D4\u10D7 \u10E1\u10DA\u10D0\u10D8\u10D3\u10D8 \u10E1\u10D0\u10E9\u10D5\u10D4\u10DC\u10D4\u10D1\u10DA\u10D0\u10D3",
|
|
25
|
+
goto: "\u10D2\u10D0\u10D3\u10D0\u10E1\u10D5\u10DA\u10D0 \u10E1\u10DA\u10D0\u10D8\u10D3 {slide}-\u10D6\u10D4",
|
|
26
|
+
next: "\u10E8\u10D4\u10DB\u10D3\u10D4\u10D2\u10D8",
|
|
27
|
+
prev: "\u10EC\u10D8\u10DC\u10D0"
|
|
28
|
+
},
|
|
29
|
+
chatPrompt: {
|
|
30
|
+
placeholder: "\u10D3\u10D0\u10EC\u10D4\u10E0\u10D4\u10D7 \u10D7\u10E5\u10D5\u10D4\u10DC\u10D8 \u10DB\u10D4\u10E1\u10D8\u10EF\u10D8 \u10D0\u10E5..."
|
|
31
|
+
},
|
|
32
|
+
chatPromptSubmit: {
|
|
33
|
+
label: "\u10E8\u10D4\u10E2\u10E7\u10DD\u10D1\u10D8\u10DC\u10D4\u10D1\u10D8\u10E1 \u10D2\u10D0\u10D2\u10D6\u10D0\u10D5\u10DC\u10D0"
|
|
34
|
+
},
|
|
35
|
+
colorMode: {
|
|
36
|
+
dark: "\u10D1\u10DC\u10D4\u10DA\u10D8",
|
|
37
|
+
light: "\u10DC\u10D0\u10D7\u10D4\u10DA\u10D8",
|
|
38
|
+
switchToDark: "\u10D1\u10DC\u10D4\u10DA \u10E0\u10D4\u10EF\u10D8\u10DB\u10D6\u10D4 \u10D2\u10D0\u10D3\u10D0\u10E1\u10D5\u10DA\u10D0",
|
|
39
|
+
switchToLight: "\u10DC\u10D0\u10D7\u10D4\u10DA \u10E0\u10D4\u10EF\u10D8\u10DB\u10D6\u10D4 \u10D2\u10D0\u10D3\u10D0\u10E1\u10D5\u10DA\u10D0",
|
|
40
|
+
system: "\u10E1\u10D8\u10E1\u10E2\u10D4\u10DB\u10E3\u10E0\u10D8"
|
|
41
|
+
},
|
|
42
|
+
commandPalette: {
|
|
43
|
+
back: "\u10E3\u10D9\u10D0\u10DC",
|
|
44
|
+
close: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0",
|
|
45
|
+
noData: "\u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1",
|
|
46
|
+
noMatch: "\u10E8\u10D4\u10E1\u10D0\u10E2\u10E7\u10D5\u10D8\u10E1\u10D8 \u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1",
|
|
47
|
+
placeholder: "\u10E9\u10D0\u10EC\u10D4\u10E0\u10D4\u10D7 \u10D1\u10E0\u10EB\u10D0\u10DC\u10D4\u10D1\u10D0 \u10D0\u10DC \u10EB\u10D8\u10D4\u10D1\u10D0..."
|
|
48
|
+
},
|
|
49
|
+
contentSearch: {
|
|
50
|
+
links: "\u10D1\u10DB\u10E3\u10DA\u10D4\u10D1\u10D8",
|
|
51
|
+
theme: "\u10D7\u10D4\u10DB\u10D0"
|
|
52
|
+
},
|
|
53
|
+
contentSearchButton: {
|
|
54
|
+
label: "\u10EB\u10D8\u10D4\u10D1\u10D0..."
|
|
55
|
+
},
|
|
56
|
+
contentToc: {
|
|
57
|
+
title: "\u10D0\u10DB \u10D2\u10D5\u10D4\u10E0\u10D3\u10D6\u10D4"
|
|
58
|
+
},
|
|
59
|
+
dashboardSearch: {
|
|
60
|
+
theme: "\u10D7\u10D4\u10DB\u10D0"
|
|
61
|
+
},
|
|
62
|
+
dashboardSearchButton: {
|
|
63
|
+
label: "\u10EB\u10D8\u10D4\u10D1\u10D0..."
|
|
64
|
+
},
|
|
65
|
+
dashboardSidebarCollapse: {
|
|
66
|
+
collapse: "\u10D2\u10D5\u10D4\u10E0\u10D3\u10D8\u10D7\u10D8 \u10D6\u10DD\u10DA\u10D8\u10E1 \u10E9\u10D0\u10D9\u10D4\u10EA\u10D5\u10D0",
|
|
67
|
+
expand: "\u10D2\u10D5\u10D4\u10E0\u10D3\u10D8\u10D7\u10D8 \u10D6\u10DD\u10DA\u10D8\u10E1 \u10D2\u10D0\u10E8\u10DA\u10D0"
|
|
68
|
+
},
|
|
69
|
+
dashboardSidebarToggle: {
|
|
70
|
+
close: "\u10D2\u10D5\u10D4\u10E0\u10D3\u10D8\u10D7\u10D8 \u10D6\u10DD\u10DA\u10D8\u10E1 \u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0",
|
|
71
|
+
open: "\u10D2\u10D5\u10D4\u10E0\u10D3\u10D8\u10D7\u10D8 \u10D6\u10DD\u10DA\u10D8\u10E1 \u10D2\u10D0\u10EE\u10E1\u10DC\u10D0"
|
|
72
|
+
},
|
|
73
|
+
error: {
|
|
74
|
+
// While "home" translates as "სახლი", I chose to use "მთავარი" (meaning "main") as contextually this sounds better.
|
|
75
|
+
// If any Georgian prefers literal translation, please submit patch.
|
|
76
|
+
clear: "\u10DB\u10D7\u10D0\u10D5\u10D0\u10E0\u10D6\u10D4 \u10D3\u10D0\u10D1\u10E0\u10E3\u10DC\u10D4\u10D1\u10D0"
|
|
77
|
+
},
|
|
78
|
+
fileUpload: {
|
|
79
|
+
removeFile: "\u10DB\u10DD\u10D0\u10E8\u10DD\u10E0\u10D4 {filename}"
|
|
80
|
+
},
|
|
81
|
+
header: {
|
|
82
|
+
close: "\u10DB\u10D4\u10DC\u10D8\u10E3\u10E1 \u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0",
|
|
83
|
+
open: "\u10DB\u10D4\u10DC\u10D8\u10E3\u10E1 \u10D2\u10D0\u10EE\u10E1\u10DC\u10D0"
|
|
84
|
+
},
|
|
85
|
+
inputMenu: {
|
|
86
|
+
create: '\u10E8\u10D4\u10E5\u10DB\u10D4\u10DC\u10D8 "{label}"',
|
|
87
|
+
noData: "\u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1",
|
|
88
|
+
noMatch: "\u10E8\u10D4\u10E1\u10D0\u10E2\u10E7\u10D5\u10D8\u10E1\u10D8 \u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1"
|
|
89
|
+
},
|
|
90
|
+
inputNumber: {
|
|
91
|
+
decrement: "\u10D3\u10D0\u10D9\u10DA\u10D4\u10D1\u10D0",
|
|
92
|
+
increment: "\u10D3\u10D0\u10DB\u10D0\u10E2\u10D4\u10D1\u10D0"
|
|
93
|
+
},
|
|
94
|
+
modal: {
|
|
95
|
+
close: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0"
|
|
96
|
+
},
|
|
97
|
+
pricingTable: {
|
|
98
|
+
caption: "\u10E4\u10D0\u10E1\u10D8\u10E1 \u10D2\u10D4\u10D2\u10DB\u10D4\u10D1\u10D8\u10E1 \u10E8\u10D4\u10D3\u10D0\u10E0\u10D4\u10D1\u10D0"
|
|
99
|
+
},
|
|
100
|
+
prose: {
|
|
101
|
+
codeCollapse: {
|
|
102
|
+
closeText: "\u10E9\u10D0\u10D9\u10D4\u10EA\u10D5\u10D0",
|
|
103
|
+
name: "\u10D9\u10DD\u10D3\u10D8",
|
|
104
|
+
openText: "\u10D2\u10D0\u10E8\u10DA\u10D0"
|
|
105
|
+
},
|
|
106
|
+
collapsible: {
|
|
107
|
+
closeText: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0",
|
|
108
|
+
name: "\u10D7\u10D5\u10D8\u10E1\u10D4\u10D1\u10D4\u10D1\u10D8",
|
|
109
|
+
openText: "\u10E9\u10D5\u10D4\u10DC\u10D4\u10D1\u10D0"
|
|
110
|
+
},
|
|
111
|
+
pre: {
|
|
112
|
+
copy: "\u10D9\u10DD\u10D3\u10D8\u10E1 \u10D9\u10DD\u10DE\u10D8\u10E0\u10D4\u10D1\u10D0 \u10D1\u10E3\u10E4\u10D4\u10E0\u10E8\u10D8"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
selectMenu: {
|
|
116
|
+
create: '\u10D3\u10D0\u10D0\u10DB\u10D0\u10E2\u10D4 "{label}"',
|
|
117
|
+
// "Create" translates as "შექმნა", but since we are simply adding new choice, creating sounds wrong, thus I chose to use "დაამატე", meaning "add".
|
|
118
|
+
noData: "\u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1",
|
|
119
|
+
noMatch: "\u10E8\u10D4\u10E1\u10D0\u10E2\u10E7\u10D5\u10D8\u10E1\u10D8 \u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1",
|
|
120
|
+
search: "\u10EB\u10D8\u10D4\u10D1\u10D0..."
|
|
121
|
+
},
|
|
122
|
+
slideover: {
|
|
123
|
+
close: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0"
|
|
124
|
+
},
|
|
125
|
+
table: {
|
|
126
|
+
noData: "\u10DB\u10DD\u10DC\u10D0\u10EA\u10D4\u10DB\u10D4\u10D1\u10D8 \u10D0\u10E0 \u10D0\u10E0\u10D8\u10E1"
|
|
127
|
+
},
|
|
128
|
+
toast: {
|
|
129
|
+
close: "\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
@@ -27,7 +27,7 @@ export default defineLocale({
|
|
|
27
27
|
prev: "Anterior"
|
|
28
28
|
},
|
|
29
29
|
chatPrompt: {
|
|
30
|
-
placeholder: "Escreva sua mensagem aqui..."
|
|
30
|
+
placeholder: "Escreva a sua mensagem aqui..."
|
|
31
31
|
},
|
|
32
32
|
chatPromptSubmit: {
|
|
33
33
|
label: "Enviar"
|
|
@@ -114,7 +114,7 @@ export default defineLocale({
|
|
|
114
114
|
create: 'Criar "{label}"',
|
|
115
115
|
noData: "Sem dados",
|
|
116
116
|
noMatch: "Nenhum dado correspondente",
|
|
117
|
-
search: "
|
|
117
|
+
search: "Pesquisar..."
|
|
118
118
|
},
|
|
119
119
|
slideover: {
|
|
120
120
|
close: "Fechar"
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
import type { ComputedRef, DeepReadonly, Ref } from 'vue';
|
|
3
|
-
import type { Schema as JoiSchema } from 'joi';
|
|
4
|
-
import type { ObjectSchema as YupObjectSchema } from 'yup';
|
|
5
3
|
import type { GetObjectField } from './utils';
|
|
6
4
|
import type { Struct as SuperstructSchema } from 'superstruct';
|
|
7
5
|
export interface Form<S extends FormSchema> {
|
|
@@ -11,10 +9,10 @@ export interface Form<S extends FormSchema> {
|
|
|
11
9
|
nested?: boolean;
|
|
12
10
|
transform?: T;
|
|
13
11
|
}): Promise<FormData<S, T> | false>;
|
|
14
|
-
clear(path?: keyof FormData<S, false> | RegExp): void;
|
|
12
|
+
clear(path?: keyof FormData<S, false> | string | RegExp): void;
|
|
15
13
|
errors: Ref<FormError[]>;
|
|
16
|
-
setErrors(errs: FormError[], name?: keyof FormData<S, false> | RegExp): void;
|
|
17
|
-
getErrors(name?: keyof FormData<S, false> | RegExp): FormError[];
|
|
14
|
+
setErrors(errs: FormError[], name?: keyof FormData<S, false> | string | RegExp): void;
|
|
15
|
+
getErrors(name?: keyof FormData<S, false> | string | RegExp): FormError[];
|
|
18
16
|
submit(): Promise<void>;
|
|
19
17
|
disabled: ComputedRef<boolean>;
|
|
20
18
|
dirty: ComputedRef<boolean>;
|
|
@@ -23,9 +21,9 @@ export interface Form<S extends FormSchema> {
|
|
|
23
21
|
touchedFields: ReadonlySet<DeepReadonly<keyof FormData<S, false>>>;
|
|
24
22
|
blurredFields: ReadonlySet<DeepReadonly<keyof FormData<S, false>>>;
|
|
25
23
|
}
|
|
26
|
-
export type FormSchema<I extends object = object, O extends object = I> =
|
|
27
|
-
export type InferInput<Schema> = Schema extends StandardSchemaV1 ? StandardSchemaV1.InferInput<Schema> : Schema extends
|
|
28
|
-
export type InferOutput<Schema> = Schema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<Schema> : Schema extends
|
|
24
|
+
export type FormSchema<I extends object = object, O extends object = I> = SuperstructSchema<any, any> | StandardSchemaV1<I, O>;
|
|
25
|
+
export type InferInput<Schema> = Schema extends StandardSchemaV1 ? StandardSchemaV1.InferInput<Schema> : Schema extends SuperstructSchema<infer I, any> ? I : Schema extends StandardSchemaV1 ? StandardSchemaV1.InferInput<Schema> : never;
|
|
26
|
+
export type InferOutput<Schema> = Schema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<Schema> : Schema extends SuperstructSchema<infer O, any> ? O : never;
|
|
29
27
|
export type FormData<S extends FormSchema, T extends boolean = true> = T extends true ? InferOutput<S> : InferInput<S>;
|
|
30
28
|
export type FormInputEvents = 'input' | 'blur' | 'change' | 'focus';
|
|
31
29
|
export interface FormError<P extends string = string> {
|
|
@@ -40,14 +38,16 @@ export type FormSubmitEvent<T> = SubmitEvent & {
|
|
|
40
38
|
};
|
|
41
39
|
export type FormValidationError = {
|
|
42
40
|
errors: FormErrorWithId[];
|
|
43
|
-
children?:
|
|
41
|
+
children?: FormErrorWithId[];
|
|
44
42
|
};
|
|
45
43
|
export type FormErrorEvent = SubmitEvent & FormValidationError;
|
|
46
44
|
export type FormEventType = FormInputEvents;
|
|
47
|
-
export type FormChildAttachEvent = {
|
|
45
|
+
export type FormChildAttachEvent<S extends FormSchema> = {
|
|
48
46
|
type: 'attach';
|
|
49
47
|
formId: string | number;
|
|
50
48
|
validate: Form<any>['validate'];
|
|
49
|
+
name?: string;
|
|
50
|
+
api: Form<S>;
|
|
51
51
|
};
|
|
52
52
|
export type FormChildDetachEvent = {
|
|
53
53
|
type: 'detach';
|
|
@@ -58,7 +58,7 @@ export type FormInputEvent<T extends object> = {
|
|
|
58
58
|
name: keyof T;
|
|
59
59
|
eager?: boolean;
|
|
60
60
|
};
|
|
61
|
-
export type FormEvent<T extends object> = FormInputEvent<T> | FormChildAttachEvent | FormChildDetachEvent;
|
|
61
|
+
export type FormEvent<T extends object> = FormInputEvent<T> | FormChildAttachEvent<any> | FormChildDetachEvent;
|
|
62
62
|
export interface FormInjectedOptions {
|
|
63
63
|
disabled?: boolean;
|
|
64
64
|
validateOnInputDelay?: number;
|
|
@@ -82,6 +82,5 @@ export interface ValidateReturnSchema<T> {
|
|
|
82
82
|
export declare class FormValidationException extends Error {
|
|
83
83
|
formId: string | number;
|
|
84
84
|
errors: FormErrorWithId[];
|
|
85
|
-
|
|
86
|
-
constructor(formId: string | number, errors: FormErrorWithId[], childErrors?: FormValidationException[]);
|
|
85
|
+
constructor(formId: string | number, errors: FormErrorWithId[]);
|
|
87
86
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export class FormValidationException extends Error {
|
|
2
2
|
formId;
|
|
3
3
|
errors;
|
|
4
|
-
|
|
5
|
-
constructor(formId, errors, childErrors) {
|
|
4
|
+
constructor(formId, errors) {
|
|
6
5
|
super("Form validation exception");
|
|
7
6
|
this.formId = formId;
|
|
8
7
|
this.errors = errors;
|
|
9
|
-
this.children = childErrors;
|
|
10
8
|
Object.setPrototypeOf(this, FormValidationException.prototype);
|
|
11
9
|
}
|
|
12
10
|
}
|
|
@@ -4,11 +4,18 @@ import type { ClassValue, TVVariants, TVCompoundVariants, TVDefaultVariants } fr
|
|
|
4
4
|
*/
|
|
5
5
|
export type TVConfig<T extends Record<string, any>> = {
|
|
6
6
|
[P in keyof T]?: {
|
|
7
|
-
[K in keyof T[P] as K extends 'base' | 'slots' | 'variants' | '
|
|
7
|
+
[K in keyof T[P] as K extends 'base' | 'slots' | 'variants' | 'defaultVariants' ? K : never]?: K extends 'base' ? ClassValue : K extends 'slots' ? {
|
|
8
8
|
[S in keyof T[P]['slots']]?: ClassValue;
|
|
9
|
-
} : K extends 'variants' ? TVVariants<T[P]['slots'], ClassValue,
|
|
9
|
+
} : K extends 'variants' ? TVVariants<T[P]['slots'], ClassValue, WidenVariantsValues<T[P]['variants']>> : K extends 'defaultVariants' ? TVDefaultVariants<WidenVariantsValues<T[P]['variants']>, T[P]['slots'], object, undefined> : never;
|
|
10
|
+
};
|
|
11
|
+
} & {
|
|
12
|
+
[P in keyof T]?: {
|
|
13
|
+
compoundVariants?: TVCompoundVariants<WidenVariantsValues<T[P]['variants']>, T[P]['slots'], ClassValue, object, undefined>;
|
|
10
14
|
};
|
|
11
15
|
};
|
|
16
|
+
type WidenVariantsValues<V extends Record<string, any> | undefined> = V extends Record<string, any> ? V & {
|
|
17
|
+
[K in keyof V]: V[K] extends Record<string, any> ? V[K] & Record<string & {}, any> : V[K];
|
|
18
|
+
} : V;
|
|
12
19
|
/**
|
|
13
20
|
* Utility type to flatten intersection types for better IDE hover information.
|
|
14
21
|
* @template T The type to flatten.
|
|
@@ -14,7 +14,7 @@ export type DynamicSlots<T extends {
|
|
|
14
14
|
} & ExtraProps) => any;
|
|
15
15
|
};
|
|
16
16
|
export type GetObjectField<MaybeObject, Key extends string> = MaybeObject extends Record<string, any> ? MaybeObject[Key] : never;
|
|
17
|
-
export type AcceptableValue = Exclude<_AcceptableValue, Record<string, any
|
|
17
|
+
export type AcceptableValue = Exclude<_AcceptableValue, Record<string, any>> | boolean;
|
|
18
18
|
export type ArrayOrNested<T> = T[] | T[][];
|
|
19
19
|
export type NestedItem<T> = T extends Array<infer I> ? NestedItem<I> : T;
|
|
20
20
|
type AllKeys<T> = T extends any ? keyof T : never;
|
|
@@ -27,8 +27,12 @@ export type MergeTypes<T extends object> = {
|
|
|
27
27
|
} & {
|
|
28
28
|
[k in NonCommonKeys<T>]?: PickTypeOf<T, k>;
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
type DotPathKeys<T> = T extends Array<any> ? never : T extends object ? {
|
|
31
|
+
[K in keyof T & string]: T[K] extends Record<string, any> ? K | `${K}.${DotPathKeys<T[K]>}` : K;
|
|
32
|
+
}[keyof T & string] : never;
|
|
33
|
+
type DotPathValue<T, P extends DotPathKeys<T> | (string & {})> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? DotPathValue<T[K], Rest> : never : P extends keyof T ? T[P] : never;
|
|
34
|
+
export type GetItemKeys<I> = keyof Extract<NestedItem<I>, object> | DotPathKeys<Extract<NestedItem<I>, object>>;
|
|
35
|
+
export type GetItemValue<I, VK extends GetItemKeys<I> | undefined, T extends NestedItem<I> = NestedItem<I>> = T extends object ? VK extends undefined ? T : VK extends DotPathKeys<T> ? DotPathValue<T, VK> : never : T;
|
|
32
36
|
export type GetModelValue<T, VK extends GetItemKeys<T> | undefined, M extends boolean> = M extends true ? GetItemValue<T, VK>[] : GetItemValue<T, VK>;
|
|
33
37
|
export type GetModelValueEmits<T, VK extends GetItemKeys<T> | undefined, M extends boolean> = {
|
|
34
38
|
/** Event handler called when the value changes. */
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
-
import type { ValidationError as JoiError, Schema as JoiSchema } from 'joi';
|
|
3
|
-
import type { ObjectSchema as YupObjectSchema, ValidationError as YupError } from 'yup';
|
|
4
2
|
import type { Struct } from 'superstruct';
|
|
5
3
|
import type { FormSchema, ValidateReturnSchema } from '../types/form';
|
|
6
|
-
export declare function isYupSchema(schema: any): schema is YupObjectSchema<any>;
|
|
7
|
-
export declare function isYupError(error: any): error is YupError;
|
|
8
4
|
export declare function isSuperStructSchema(schema: any): schema is Struct<any, any>;
|
|
9
|
-
export declare function isJoiSchema(schema: any): schema is JoiSchema;
|
|
10
|
-
export declare function isJoiError(error: any): error is JoiError;
|
|
11
5
|
export declare function isStandardSchema(schema: any): schema is StandardSchemaV1;
|
|
12
6
|
export declare function validateStandardSchema(state: any, schema: StandardSchemaV1): Promise<ValidateReturnSchema<typeof state>>;
|
|
13
7
|
export declare function validateSchema<T extends object>(state: T, schema: FormSchema<T>): Promise<ValidateReturnSchema<typeof state>>;
|
|
8
|
+
export declare function getAtPath<T extends object>(data: T, path?: string): any;
|
|
9
|
+
export declare function setAtPath<T extends object>(data: T, path: string, value: any): T;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
export function isYupSchema(schema) {
|
|
2
|
-
return schema.validate && schema.__isYupSchema__;
|
|
3
|
-
}
|
|
4
|
-
export function isYupError(error) {
|
|
5
|
-
return error.inner !== void 0;
|
|
6
|
-
}
|
|
7
1
|
export function isSuperStructSchema(schema) {
|
|
8
2
|
return "schema" in schema && typeof schema.coercer === "function" && typeof schema.validator === "function" && typeof schema.refiner === "function";
|
|
9
3
|
}
|
|
10
|
-
export function isJoiSchema(schema) {
|
|
11
|
-
return schema.validateAsync !== void 0 && schema.id !== void 0;
|
|
12
|
-
}
|
|
13
|
-
export function isJoiError(error) {
|
|
14
|
-
return error.isJoi === true;
|
|
15
|
-
}
|
|
16
4
|
export function isStandardSchema(schema) {
|
|
17
5
|
return "~standard" in schema;
|
|
18
6
|
}
|
|
@@ -32,28 +20,6 @@ export async function validateStandardSchema(state, schema) {
|
|
|
32
20
|
result: result.value
|
|
33
21
|
};
|
|
34
22
|
}
|
|
35
|
-
async function validateYupSchema(state, schema) {
|
|
36
|
-
try {
|
|
37
|
-
const result = await schema.validate(state, { abortEarly: false });
|
|
38
|
-
return {
|
|
39
|
-
errors: null,
|
|
40
|
-
result
|
|
41
|
-
};
|
|
42
|
-
} catch (error) {
|
|
43
|
-
if (isYupError(error)) {
|
|
44
|
-
const errors = error.inner.map((issue) => ({
|
|
45
|
-
name: issue.path ?? "",
|
|
46
|
-
message: issue.message
|
|
47
|
-
}));
|
|
48
|
-
return {
|
|
49
|
-
errors,
|
|
50
|
-
result: null
|
|
51
|
-
};
|
|
52
|
-
} else {
|
|
53
|
-
throw error;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
23
|
async function validateSuperstructSchema(state, schema) {
|
|
58
24
|
const [err, result] = schema.validate(state);
|
|
59
25
|
if (err) {
|
|
@@ -71,38 +37,40 @@ async function validateSuperstructSchema(state, schema) {
|
|
|
71
37
|
result
|
|
72
38
|
};
|
|
73
39
|
}
|
|
74
|
-
async function validateJoiSchema(state, schema) {
|
|
75
|
-
try {
|
|
76
|
-
const result = await schema.validateAsync(state, { abortEarly: false });
|
|
77
|
-
return {
|
|
78
|
-
errors: null,
|
|
79
|
-
result
|
|
80
|
-
};
|
|
81
|
-
} catch (error) {
|
|
82
|
-
if (isJoiError(error)) {
|
|
83
|
-
const errors = error.details.map((issue) => ({
|
|
84
|
-
name: issue.path.join("."),
|
|
85
|
-
message: issue.message
|
|
86
|
-
}));
|
|
87
|
-
return {
|
|
88
|
-
errors,
|
|
89
|
-
result: null
|
|
90
|
-
};
|
|
91
|
-
} else {
|
|
92
|
-
throw error;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
40
|
export function validateSchema(state, schema) {
|
|
97
41
|
if (isStandardSchema(schema)) {
|
|
98
42
|
return validateStandardSchema(state, schema);
|
|
99
|
-
} else if (isJoiSchema(schema)) {
|
|
100
|
-
return validateJoiSchema(state, schema);
|
|
101
|
-
} else if (isYupSchema(schema)) {
|
|
102
|
-
return validateYupSchema(state, schema);
|
|
103
43
|
} else if (isSuperStructSchema(schema)) {
|
|
104
44
|
return validateSuperstructSchema(state, schema);
|
|
105
45
|
} else {
|
|
106
46
|
throw new Error("Form validation failed: Unsupported form schema");
|
|
107
47
|
}
|
|
108
48
|
}
|
|
49
|
+
export function getAtPath(data, path) {
|
|
50
|
+
if (!path) return data;
|
|
51
|
+
const value = path.split(".").reduce(
|
|
52
|
+
(value2, key) => value2?.[key],
|
|
53
|
+
data
|
|
54
|
+
);
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
export function setAtPath(data, path, value) {
|
|
58
|
+
if (!path) return Object.assign(data, value);
|
|
59
|
+
if (!data) return data;
|
|
60
|
+
const keys = path.split(".");
|
|
61
|
+
let current = data;
|
|
62
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
63
|
+
const key = keys[i];
|
|
64
|
+
if (current[key] === void 0 || current[key] === null) {
|
|
65
|
+
if (i + 1 < keys.length && !Number.isNaN(Number(keys[i + 1]))) {
|
|
66
|
+
current[key] = [];
|
|
67
|
+
} else {
|
|
68
|
+
current[key] = {};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
current = current[key];
|
|
72
|
+
}
|
|
73
|
+
const lastKey = keys[keys.length - 1];
|
|
74
|
+
current[lastKey] = value;
|
|
75
|
+
return data;
|
|
76
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FuseResult } from 'fuse.js';
|
|
2
|
+
import type { GetItemKeys } from '../types/utils';
|
|
2
3
|
export declare function highlight<T>(item: T & {
|
|
3
4
|
matches?: FuseResult<T>['matches'];
|
|
4
|
-
}, searchTerm: string, forceKey?:
|
|
5
|
+
}, searchTerm: string, forceKey?: GetItemKeys<T>, omitKeys?: GetItemKeys<T>[]): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetItemKeys
|
|
1
|
+
import type { GetItemKeys } from '../types/utils';
|
|
2
2
|
export declare function pick<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Pick<Data, Keys>;
|
|
3
3
|
export declare function omit<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Omit<Data, Keys>;
|
|
4
4
|
export declare function get(object: Record<string, any> | undefined, path: (string | number)[] | string, defaultValue?: any): any;
|
|
@@ -6,9 +6,9 @@ export declare function set(object: Record<string, any>, path: (string | number)
|
|
|
6
6
|
export declare function looseToNumber(val: any): any;
|
|
7
7
|
export declare function compare<T>(value?: T, currentValue?: T, comparator?: string | ((a: T, b: T) => boolean)): boolean;
|
|
8
8
|
export declare function isEmpty(value: unknown): boolean;
|
|
9
|
-
export declare function getDisplayValue<T
|
|
9
|
+
export declare function getDisplayValue<T extends Array<any>, V>(items: T, value: V | undefined | null, options?: {
|
|
10
10
|
valueKey?: GetItemKeys<T>;
|
|
11
|
-
labelKey?:
|
|
11
|
+
labelKey?: GetItemKeys<T>;
|
|
12
12
|
}): string | undefined;
|
|
13
13
|
export declare function isArrayOfArray<A>(item: A[] | A[][]): item is A[][];
|
|
14
14
|
export declare function mergeClasses(appConfigClass?: string | string[], propClass?: string): "" | (string | undefined)[];
|
|
@@ -92,13 +92,16 @@ export function isEmpty(value) {
|
|
|
92
92
|
}
|
|
93
93
|
export function getDisplayValue(items, value, options = {}) {
|
|
94
94
|
const { valueKey, labelKey } = options;
|
|
95
|
-
if (isEmpty(value)) {
|
|
96
|
-
return void 0;
|
|
97
|
-
}
|
|
98
95
|
const foundItem = items.find((item) => {
|
|
99
96
|
const itemValue = typeof item === "object" && item !== null && valueKey ? get(item, valueKey) : item;
|
|
100
97
|
return compare(itemValue, value);
|
|
101
98
|
});
|
|
99
|
+
if (isEmpty(value) && foundItem) {
|
|
100
|
+
return labelKey ? get(foundItem, labelKey) : void 0;
|
|
101
|
+
}
|
|
102
|
+
if (isEmpty(value)) {
|
|
103
|
+
return void 0;
|
|
104
|
+
}
|
|
102
105
|
const source = foundItem ?? value;
|
|
103
106
|
if (source === null || source === void 0) {
|
|
104
107
|
return void 0;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IconProps as NuxtIconProps } from '../../types';
|
|
2
|
+
export interface IconProps {
|
|
3
|
+
name: NuxtIconProps['name'];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|