@nuxt/ui 4.0.0-alpha.1 → 4.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/ui/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/tree.ts +1 -1
- package/README.md +13 -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 +2 -2
- 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 +17 -13
- 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/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 +111 -52
- package/dist/runtime/components/Form.vue.d.ts +54 -11
- package/dist/runtime/components/FormField.d.vue.ts +61 -0
- 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 +1 -1
- 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/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 +10 -3
- 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 +116 -0
- package/dist/runtime/components/Tree.vue +68 -40
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- 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 -0
- 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/types/form.d.ts +9 -8
- 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/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +2 -0
- package/dist/runtime/utils/form.js +28 -0
- 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.Bs5uUhtm.mjs} +17 -12
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +21 -34
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'vue';
|
|
2
|
+
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
3
|
+
interface NuxtLinkProps extends Omit<InertiaLinkProps, 'href' | 'onClick'> {
|
|
4
|
+
activeClass?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Route Location the link should navigate to when clicked on.
|
|
7
|
+
*/
|
|
8
|
+
to?: string;
|
|
9
|
+
/**
|
|
10
|
+
* An alias for `to`. If used with `to`, `href` will be ignored
|
|
11
|
+
*/
|
|
12
|
+
href?: NuxtLinkProps['to'];
|
|
13
|
+
/**
|
|
14
|
+
* Forces the link to be considered as external (true) or internal (false). This is helpful to handle edge-cases
|
|
15
|
+
*/
|
|
16
|
+
external?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
19
|
+
*/
|
|
20
|
+
target?: '_blank' | '_parent' | '_self' | '_top' | (string & {}) | null;
|
|
21
|
+
ariaCurrentValue?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface LinkProps extends NuxtLinkProps {
|
|
24
|
+
/**
|
|
25
|
+
* The element or component this component should render as when not a link.
|
|
26
|
+
* @defaultValue 'button'
|
|
27
|
+
*/
|
|
28
|
+
as?: any;
|
|
29
|
+
/**
|
|
30
|
+
* The type of the button when not a link.
|
|
31
|
+
* @defaultValue 'button'
|
|
32
|
+
*/
|
|
33
|
+
type?: ButtonHTMLAttributes['type'];
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Force the link to be active independent of the current route. */
|
|
36
|
+
active?: boolean;
|
|
37
|
+
/** Will only be active if the current route is an exact match. */
|
|
38
|
+
exact?: boolean;
|
|
39
|
+
/** The class to apply when the link is inactive. */
|
|
40
|
+
inactiveClass?: string;
|
|
41
|
+
custom?: boolean;
|
|
42
|
+
/** When `true`, only styles from `class`, `activeClass`, and `inactiveClass` will be applied. */
|
|
43
|
+
raw?: boolean;
|
|
44
|
+
class?: any;
|
|
45
|
+
}
|
|
46
|
+
export interface LinkSlots {
|
|
47
|
+
default(props: {
|
|
48
|
+
active: boolean;
|
|
49
|
+
}): any;
|
|
50
|
+
}
|
|
51
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
52
|
+
type: "reset" | "submit" | "button";
|
|
53
|
+
as: any;
|
|
54
|
+
activeClass: string;
|
|
55
|
+
active: boolean;
|
|
56
|
+
inactiveClass: string;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { LinkProps } from '../../types';
|
|
2
|
+
export interface LinkBaseProps {
|
|
3
|
+
as?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onClick?: ((e: MouseEvent) => void | Promise<void>) | Array<((e: MouseEvent) => void | Promise<void>)>;
|
|
7
|
+
href?: string;
|
|
8
|
+
target?: LinkProps['target'];
|
|
9
|
+
active?: boolean;
|
|
10
|
+
isExternal?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
13
|
+
type: string;
|
|
14
|
+
as: string;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
16
|
+
default?: (props: {}) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -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
|
+
});
|
|
@@ -11,10 +11,10 @@ export interface Form<S extends FormSchema> {
|
|
|
11
11
|
nested?: boolean;
|
|
12
12
|
transform?: T;
|
|
13
13
|
}): Promise<FormData<S, T> | false>;
|
|
14
|
-
clear(path?: keyof FormData<S, false> | RegExp): void;
|
|
14
|
+
clear(path?: keyof FormData<S, false> | string | RegExp): void;
|
|
15
15
|
errors: Ref<FormError[]>;
|
|
16
|
-
setErrors(errs: FormError[], name?: keyof FormData<S, false> | RegExp): void;
|
|
17
|
-
getErrors(name?: keyof FormData<S, false> | RegExp): FormError[];
|
|
16
|
+
setErrors(errs: FormError[], name?: keyof FormData<S, false> | string | RegExp): void;
|
|
17
|
+
getErrors(name?: keyof FormData<S, false> | string | RegExp): FormError[];
|
|
18
18
|
submit(): Promise<void>;
|
|
19
19
|
disabled: ComputedRef<boolean>;
|
|
20
20
|
dirty: ComputedRef<boolean>;
|
|
@@ -40,14 +40,16 @@ export type FormSubmitEvent<T> = SubmitEvent & {
|
|
|
40
40
|
};
|
|
41
41
|
export type FormValidationError = {
|
|
42
42
|
errors: FormErrorWithId[];
|
|
43
|
-
children?:
|
|
43
|
+
children?: FormErrorWithId[];
|
|
44
44
|
};
|
|
45
45
|
export type FormErrorEvent = SubmitEvent & FormValidationError;
|
|
46
46
|
export type FormEventType = FormInputEvents;
|
|
47
|
-
export type FormChildAttachEvent = {
|
|
47
|
+
export type FormChildAttachEvent<S extends FormSchema> = {
|
|
48
48
|
type: 'attach';
|
|
49
49
|
formId: string | number;
|
|
50
50
|
validate: Form<any>['validate'];
|
|
51
|
+
name?: string;
|
|
52
|
+
api: Form<S>;
|
|
51
53
|
};
|
|
52
54
|
export type FormChildDetachEvent = {
|
|
53
55
|
type: 'detach';
|
|
@@ -58,7 +60,7 @@ export type FormInputEvent<T extends object> = {
|
|
|
58
60
|
name: keyof T;
|
|
59
61
|
eager?: boolean;
|
|
60
62
|
};
|
|
61
|
-
export type FormEvent<T extends object> = FormInputEvent<T> | FormChildAttachEvent | FormChildDetachEvent;
|
|
63
|
+
export type FormEvent<T extends object> = FormInputEvent<T> | FormChildAttachEvent<any> | FormChildDetachEvent;
|
|
62
64
|
export interface FormInjectedOptions {
|
|
63
65
|
disabled?: boolean;
|
|
64
66
|
validateOnInputDelay?: number;
|
|
@@ -82,6 +84,5 @@ export interface ValidateReturnSchema<T> {
|
|
|
82
84
|
export declare class FormValidationException extends Error {
|
|
83
85
|
formId: string | number;
|
|
84
86
|
errors: FormErrorWithId[];
|
|
85
|
-
|
|
86
|
-
constructor(formId: string | number, errors: FormErrorWithId[], childErrors?: FormValidationException[]);
|
|
87
|
+
constructor(formId: string | number, errors: FormErrorWithId[]);
|
|
87
88
|
}
|
|
@@ -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
|
}
|
|
@@ -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. */
|
|
@@ -11,3 +11,5 @@ export declare function isJoiError(error: any): error is JoiError;
|
|
|
11
11
|
export declare function isStandardSchema(schema: any): schema is StandardSchemaV1;
|
|
12
12
|
export declare function validateStandardSchema(state: any, schema: StandardSchemaV1): Promise<ValidateReturnSchema<typeof state>>;
|
|
13
13
|
export declare function validateSchema<T extends object>(state: T, schema: FormSchema<T>): Promise<ValidateReturnSchema<typeof state>>;
|
|
14
|
+
export declare function getAtPath<T extends object>(data: T, path?: string): any;
|
|
15
|
+
export declare function setAtPath<T extends object>(data: T, path: string, value: any): T;
|
|
@@ -106,3 +106,31 @@ export function validateSchema(state, schema) {
|
|
|
106
106
|
throw new Error("Form validation failed: Unsupported form schema");
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
+
export function getAtPath(data, path) {
|
|
110
|
+
if (!path) return data;
|
|
111
|
+
const value = path.split(".").reduce(
|
|
112
|
+
(value2, key) => value2?.[key],
|
|
113
|
+
data
|
|
114
|
+
);
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
export function setAtPath(data, path, value) {
|
|
118
|
+
if (!path) return Object.assign(data, value);
|
|
119
|
+
if (!data) return data;
|
|
120
|
+
const keys = path.split(".");
|
|
121
|
+
let current = data;
|
|
122
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
123
|
+
const key = keys[i];
|
|
124
|
+
if (current[key] === void 0 || current[key] === null) {
|
|
125
|
+
if (i + 1 < keys.length && !Number.isNaN(Number(keys[i + 1]))) {
|
|
126
|
+
current[key] = [];
|
|
127
|
+
} else {
|
|
128
|
+
current[key] = {};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
current = current[key];
|
|
132
|
+
}
|
|
133
|
+
const lastKey = keys[keys.length - 1];
|
|
134
|
+
current[lastKey] = value;
|
|
135
|
+
return data;
|
|
136
|
+
}
|
|
@@ -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;
|