nuance-ui 0.2.10 → 0.2.12
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/dist/module.json +1 -1
- package/dist/module.mjs +12 -0
- package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +11 -10
- package/dist/runtime/components/action-icon/action-icon-section.vue +17 -20
- package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +11 -10
- package/dist/runtime/components/action-icon/action-icon.d.vue.ts +17 -14
- package/dist/runtime/components/action-icon/action-icon.vue +18 -17
- package/dist/runtime/components/action-icon/action-icon.vue.d.ts +17 -14
- package/dist/runtime/components/alert.d.vue.ts +8 -6
- package/dist/runtime/components/alert.vue +15 -101
- package/dist/runtime/components/alert.vue.d.ts +8 -6
- package/dist/runtime/components/app-shell/app-shell-aside.vue +2 -28
- package/dist/runtime/components/app-shell/app-shell-footer.vue +2 -27
- package/dist/runtime/components/app-shell/app-shell-header.vue +2 -28
- package/dist/runtime/components/app-shell/app-shell-main.vue +2 -16
- package/dist/runtime/components/app-shell/app-shell-navbar.vue +2 -32
- package/dist/runtime/components/app-shell/app-shell-section.vue +2 -8
- package/dist/runtime/components/app-shell/app-shell.vue +20 -44
- package/dist/runtime/components/avatar/avatar-group.d.vue.ts +2 -2
- package/dist/runtime/components/avatar/avatar-group.vue +1 -1
- package/dist/runtime/components/avatar/avatar-group.vue.d.ts +2 -2
- package/dist/runtime/components/avatar/avatar.d.vue.ts +9 -5
- package/dist/runtime/components/avatar/avatar.vue +26 -26
- package/dist/runtime/components/avatar/avatar.vue.d.ts +9 -5
- package/dist/runtime/components/background-image.d.vue.ts +2 -2
- package/dist/runtime/components/background-image.vue +3 -19
- package/dist/runtime/components/background-image.vue.d.ts +2 -2
- package/dist/runtime/components/badge.d.vue.ts +9 -8
- package/dist/runtime/components/badge.vue +18 -154
- package/dist/runtime/components/badge.vue.d.ts +9 -8
- package/dist/runtime/components/breadcrumbs.d.vue.ts +4 -4
- package/dist/runtime/components/breadcrumbs.vue +2 -48
- package/dist/runtime/components/breadcrumbs.vue.d.ts +4 -4
- package/dist/runtime/components/button/button.d.vue.ts +21 -31
- package/dist/runtime/components/button/button.vue +36 -45
- package/dist/runtime/components/button/button.vue.d.ts +21 -31
- package/dist/runtime/components/button/unstyled-button.vue +2 -21
- package/dist/runtime/components/calendar/calendar.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/calendar.vue +3 -10
- package/dist/runtime/components/calendar/calendar.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-cell.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-cell.vue +3 -114
- package/dist/runtime/components/calendar/ui/core/calendar-cell.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-header.vue +2 -67
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue +3 -25
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/ui/levels/calendar-month.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/ui/levels/calendar-month.vue +9 -34
- package/dist/runtime/components/calendar/ui/levels/calendar-month.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/ui/levels/calendar-year.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/ui/levels/calendar-year.vue +3 -25
- package/dist/runtime/components/calendar/ui/levels/calendar-year.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-card.vue +2 -28
- package/dist/runtime/components/checkbox/checkbox-group.vue +3 -3
- package/dist/runtime/components/checkbox/checkbox-indicator.d.vue.ts +5 -4
- package/dist/runtime/components/checkbox/checkbox-indicator.vue +15 -123
- package/dist/runtime/components/checkbox/checkbox-indicator.vue.d.ts +5 -4
- package/dist/runtime/components/checkbox/checkbox.d.vue.ts +5 -7
- package/dist/runtime/components/checkbox/checkbox.vue +30 -136
- package/dist/runtime/components/checkbox/checkbox.vue.d.ts +5 -7
- package/dist/runtime/components/chip/chip.d.vue.ts +3 -2
- package/dist/runtime/components/chip/chip.vue +29 -212
- package/dist/runtime/components/chip/chip.vue.d.ts +3 -2
- package/dist/runtime/components/combobox/combobox-dropdown.vue +2 -4
- package/dist/runtime/components/container.d.vue.ts +2 -2
- package/dist/runtime/components/container.vue +1 -1
- package/dist/runtime/components/container.vue.d.ts +2 -2
- package/dist/runtime/components/date-time-picker.vue +6 -10
- package/dist/runtime/components/dialog/ui/dialog-close-button.vue +11 -7
- package/dist/runtime/components/dialog/ui/dialog-root.d.vue.ts +11 -9
- package/dist/runtime/components/dialog/ui/dialog-root.vue +5 -5
- package/dist/runtime/components/dialog/ui/dialog-root.vue.d.ts +11 -9
- package/dist/runtime/components/dialog/ui/dialog-title.vue +2 -2
- package/dist/runtime/components/drawer/drawer-close-button.vue +6 -6
- package/dist/runtime/components/drawer/drawer-root.vue +4 -4
- package/dist/runtime/components/drawer/drawer-title.vue +2 -2
- package/dist/runtime/components/files/file-upload-button.vue +8 -8
- package/dist/runtime/components/files/file-upload-icon.vue +5 -5
- package/dist/runtime/components/input/date-picker.vue +6 -10
- package/dist/runtime/components/input/email-input.vue +4 -4
- package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +5 -5
- package/dist/runtime/components/input/number-input.vue +7 -85
- package/dist/runtime/components/input/password-input.vue +4 -4
- package/dist/runtime/components/input/text-input.vue +8 -5
- package/dist/runtime/components/input/ui/button-input.vue +6 -25
- package/dist/runtime/components/input/ui/input-base.vue +6 -265
- package/dist/runtime/components/input/ui/input-inline.d.vue.ts +2 -2
- package/dist/runtime/components/input/ui/input-inline.vue +3 -82
- package/dist/runtime/components/input/ui/input-inline.vue.d.ts +2 -2
- package/dist/runtime/components/input/ui/input-label.d.vue.ts +2 -2
- package/dist/runtime/components/input/ui/input-label.vue +1 -1
- package/dist/runtime/components/input/ui/input-label.vue.d.ts +2 -2
- package/dist/runtime/components/input/ui/input-wrapper.d.vue.ts +5 -1
- package/dist/runtime/components/input/ui/input-wrapper.vue +13 -65
- package/dist/runtime/components/input/ui/input-wrapper.vue.d.ts +5 -1
- package/dist/runtime/components/input/ui/spin-input.vue +2 -53
- package/dist/runtime/components/link/link-button.vue +9 -9
- package/dist/runtime/components/link/link.vue +2 -2
- package/dist/runtime/components/loader/loader.d.vue.ts +7 -7
- package/dist/runtime/components/loader/loader.vue +8 -7
- package/dist/runtime/components/loader/loader.vue.d.ts +7 -7
- package/dist/runtime/components/modal/modal-close-button.vue +6 -6
- package/dist/runtime/components/modal/modal-root.vue +4 -4
- package/dist/runtime/components/modal/modal-title.vue +2 -2
- package/dist/runtime/components/nav-link/nav-icon-link.vue +4 -4
- package/dist/runtime/components/nav-link/nav-link.d.vue.ts +6 -5
- package/dist/runtime/components/nav-link/nav-link.vue +30 -113
- package/dist/runtime/components/nav-link/nav-link.vue.d.ts +6 -5
- package/dist/runtime/components/paper.vue +2 -31
- package/dist/runtime/components/popover/popover-dropdown.vue +2 -54
- package/dist/runtime/components/progress/progress-root.d.vue.ts +3 -3
- package/dist/runtime/components/progress/progress-root.vue +2 -2
- package/dist/runtime/components/progress/progress-root.vue.d.ts +3 -3
- package/dist/runtime/components/progress/progress-section.d.vue.ts +3 -0
- package/dist/runtime/components/progress/progress-section.vue +8 -6
- package/dist/runtime/components/progress/progress-section.vue.d.ts +3 -0
- package/dist/runtime/components/progress/progress.vue +2 -2
- package/dist/runtime/components/select.vue +6 -10
- package/dist/runtime/components/switch/switch-group.vue +3 -3
- package/dist/runtime/components/switch/switch.d.vue.ts +3 -0
- package/dist/runtime/components/switch/switch.vue +15 -205
- package/dist/runtime/components/switch/switch.vue.d.ts +3 -0
- package/dist/runtime/components/table/types.d.ts +4 -3
- package/dist/runtime/components/table/ui/table-sortable-header.vue +9 -9
- package/dist/runtime/components/table/ui/table.vue +9 -174
- package/dist/runtime/components/tabs/tabs-root.d.vue.ts +14 -16
- package/dist/runtime/components/tabs/tabs-root.vue +14 -12
- package/dist/runtime/components/tabs/tabs-root.vue.d.ts +14 -16
- package/dist/runtime/components/text.d.vue.ts +10 -9
- package/dist/runtime/components/text.vue +16 -77
- package/dist/runtime/components/text.vue.d.ts +10 -9
- package/dist/runtime/components/textarea.d.vue.ts +5 -3
- package/dist/runtime/components/textarea.vue +31 -18
- package/dist/runtime/components/textarea.vue.d.ts +5 -3
- package/dist/runtime/components/time-picker/time-picker.vue +6 -132
- package/dist/runtime/components/title.vue +4 -8
- package/dist/runtime/components/tree/_ui/tree-item.vue +2 -62
- package/dist/runtime/components/tree/_ui/tree-root.d.vue.ts +7 -6
- package/dist/runtime/components/tree/_ui/tree-root.vue +13 -19
- package/dist/runtime/components/tree/_ui/tree-root.vue.d.ts +7 -6
- package/dist/runtime/components/tree/tree.vue +5 -5
- package/dist/runtime/composables/index.d.ts +1 -1
- package/dist/runtime/composables/index.js +1 -1
- package/dist/runtime/composables/use-vars-resolver.d.ts +4 -0
- package/dist/runtime/composables/use-vars-resolver.js +6 -0
- package/dist/runtime/form/date-field.d.vue.ts +45 -0
- package/dist/runtime/form/date-field.vue +88 -0
- package/dist/runtime/form/date-field.vue.d.ts +45 -0
- package/dist/runtime/form/date-time-field.d.vue.ts +37 -0
- package/dist/runtime/form/date-time-field.vue +76 -0
- package/dist/runtime/form/date-time-field.vue.d.ts +37 -0
- package/dist/runtime/form/email-field.d.vue.ts +37 -0
- package/dist/runtime/form/email-field.vue +76 -0
- package/dist/runtime/form/email-field.vue.d.ts +37 -0
- package/dist/runtime/form/number-field.d.vue.ts +37 -0
- package/dist/runtime/form/number-field.vue +79 -0
- package/dist/runtime/form/number-field.vue.d.ts +37 -0
- package/dist/runtime/form/password-field.d.vue.ts +37 -0
- package/dist/runtime/form/password-field.vue +76 -0
- package/dist/runtime/form/password-field.vue.d.ts +37 -0
- package/dist/runtime/form/select-field.d.vue.ts +50 -0
- package/dist/runtime/form/select-field.vue +86 -0
- package/dist/runtime/form/select-field.vue.d.ts +50 -0
- package/dist/runtime/form/text-field.d.vue.ts +37 -0
- package/dist/runtime/form/text-field.vue +76 -0
- package/dist/runtime/form/text-field.vue.d.ts +37 -0
- package/dist/runtime/form/textarea-field.d.vue.ts +37 -0
- package/dist/runtime/form/textarea-field.vue +75 -0
- package/dist/runtime/form/textarea-field.vue.d.ts +37 -0
- package/dist/runtime/form/time-field.d.vue.ts +37 -0
- package/dist/runtime/form/time-field.vue +84 -0
- package/dist/runtime/form/time-field.vue.d.ts +37 -0
- package/dist/runtime/types/index.d.ts +1 -2
- package/dist/runtime/types/styling.d.ts +3 -1
- package/dist/runtime/types/theme.d.ts +10 -15
- package/dist/runtime/utils/style/create-variant-color-resolver.d.ts +2 -2
- package/package.json +12 -3
- package/dist/runtime/composables/use-style-resolver.d.ts +0 -5
- package/dist/runtime/composables/use-style-resolver.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import {
|
|
2
|
+
import { useVarsResolver } from "@nui/composables";
|
|
3
3
|
import { getSize } from "@nui/utils";
|
|
4
4
|
import { onClickOutside, useEventListener } from "@vueuse/core";
|
|
5
5
|
import { useTemplateRef } from "vue";
|
|
@@ -19,24 +19,26 @@ const {
|
|
|
19
19
|
loadBranch,
|
|
20
20
|
filter
|
|
21
21
|
} = defineProps({
|
|
22
|
-
loop: { type: Boolean, required: false },
|
|
23
|
-
orientation: { type: String, required: false },
|
|
24
|
-
attr: { type: String, required: false },
|
|
25
22
|
iconResolver: { type: Function, required: false },
|
|
26
23
|
removable: { type: Boolean, required: false },
|
|
27
24
|
selectable: { type: Boolean, required: false },
|
|
28
25
|
loadBranch: { type: Function, required: true },
|
|
29
26
|
filter: { type: [String, null, Function], required: false },
|
|
30
|
-
variant: { type: String, required: false },
|
|
31
27
|
color: { type: null, required: false },
|
|
32
|
-
size: { type: null, required: false }
|
|
28
|
+
size: { type: null, required: false },
|
|
29
|
+
variant: { type: String, required: false },
|
|
30
|
+
loop: { type: Boolean, required: false },
|
|
31
|
+
orientation: { type: String, required: false },
|
|
32
|
+
attr: { type: String, required: false }
|
|
33
33
|
});
|
|
34
34
|
const emit = defineEmits(["delete"]);
|
|
35
35
|
const active = defineModel("active", { type: [String, null], ...{ default: null } });
|
|
36
36
|
const selected = defineModel("selected", { type: Array, ...{ default: [] } });
|
|
37
37
|
const expanded = defineModel("expanded", { type: Array, ...{ default: [] } });
|
|
38
|
-
const style =
|
|
39
|
-
|
|
38
|
+
const style = useVarsResolver(() => ({
|
|
39
|
+
root: {
|
|
40
|
+
"--icon-size": getSize(size)
|
|
41
|
+
}
|
|
40
42
|
}));
|
|
41
43
|
const root = useTemplateRef("parent");
|
|
42
44
|
onClickOutside(root, () => selected.value = []);
|
|
@@ -69,7 +71,7 @@ if (removable) {
|
|
|
69
71
|
is='ul'
|
|
70
72
|
ref='parent'
|
|
71
73
|
role='tree'
|
|
72
|
-
:style
|
|
74
|
+
:style='style.root'
|
|
73
75
|
:class='$style.root'
|
|
74
76
|
@keydown.esc.prevent='selected = []'
|
|
75
77
|
>
|
|
@@ -78,14 +80,6 @@ if (removable) {
|
|
|
78
80
|
</RovingFocus>
|
|
79
81
|
</template>
|
|
80
82
|
|
|
81
|
-
<style module
|
|
82
|
-
.root
|
|
83
|
-
--tree-icon-size: var(--spacing-md);
|
|
84
|
-
|
|
85
|
-
display: flex;
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
gap: .25rem;
|
|
88
|
-
|
|
89
|
-
padding-inline-start: 0;
|
|
90
|
-
}
|
|
83
|
+
<style module>
|
|
84
|
+
.root{--tree-icon-size:var(--spacing-md);display:flex;flex-direction:column;gap:.25rem;padding-inline-start:0}
|
|
91
85
|
</style>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ButtonProps } from '@nui/components';
|
|
1
|
+
import type { ButtonProps, ButtonVariant } from '@nui/components';
|
|
2
|
+
import type { NuanceColor } from '@nui/types';
|
|
2
3
|
import type { RovingFocusProps } from '../../roving-focus/roving-focus.vue.js';
|
|
3
4
|
import type { TreeFilter, TreeIconResolver, TreeLoader, TreeModels } from '../types.js';
|
|
4
|
-
export
|
|
5
|
+
export interface TreeRootProps extends RovingFocusProps {
|
|
5
6
|
/** Resolves the icon for a given tree item */
|
|
6
7
|
iconResolver?: TreeIconResolver;
|
|
7
8
|
/** If set, selected items can be deleted with the Delete key */
|
|
@@ -12,13 +13,13 @@ export type TreeRootProps = RovingFocusProps & {
|
|
|
12
13
|
loadBranch: TreeLoader;
|
|
13
14
|
/** Filters which items are rendered */
|
|
14
15
|
filter?: TreeFilter;
|
|
15
|
-
/** Visual variant */
|
|
16
|
-
variant?: ButtonProps['variant'];
|
|
17
16
|
/** Color from theme */
|
|
18
|
-
color?:
|
|
17
|
+
color?: NuanceColor;
|
|
19
18
|
/** Component size */
|
|
20
19
|
size?: ButtonProps['size'];
|
|
21
|
-
|
|
20
|
+
/** Visual variant */
|
|
21
|
+
variant?: ButtonVariant;
|
|
22
|
+
}
|
|
22
23
|
type __VLS_Props = TreeRootProps;
|
|
23
24
|
type __VLS_ModelProps = {
|
|
24
25
|
'active'?: TreeModels['active'];
|
|
@@ -11,17 +11,17 @@ const {
|
|
|
11
11
|
filter = "directory",
|
|
12
12
|
...props
|
|
13
13
|
} = defineProps({
|
|
14
|
-
loop: { type: Boolean, required: false },
|
|
15
|
-
orientation: { type: String, required: false },
|
|
16
|
-
attr: { type: String, required: false },
|
|
17
14
|
iconResolver: { type: Function, required: false },
|
|
18
15
|
removable: { type: Boolean, required: false },
|
|
19
16
|
selectable: { type: Boolean, required: false },
|
|
20
17
|
loadBranch: { type: Function, required: true },
|
|
21
18
|
filter: { type: [String, null, Function], required: false },
|
|
22
|
-
variant: { type: String, required: false },
|
|
23
19
|
color: { type: null, required: false },
|
|
24
|
-
size: { type: null, required: false }
|
|
20
|
+
size: { type: null, required: false },
|
|
21
|
+
variant: { type: String, required: false },
|
|
22
|
+
loop: { type: Boolean, required: false },
|
|
23
|
+
orientation: { type: String, required: false },
|
|
24
|
+
attr: { type: String, required: false }
|
|
25
25
|
});
|
|
26
26
|
defineEmits(["delete"]);
|
|
27
27
|
const active = defineModel("active", { type: [String, null], ...{ default: null } });
|
|
@@ -2,5 +2,5 @@ export * from './create-strict-injection.js';
|
|
|
2
2
|
export * from './use-active-link.js';
|
|
3
3
|
export * from './use-date-config.js';
|
|
4
4
|
export * from './use-selectable-group.js';
|
|
5
|
-
export * from './use-style-resolver.js';
|
|
6
5
|
export * from './use-theme.js';
|
|
6
|
+
export * from './use-vars-resolver.js';
|
|
@@ -2,5 +2,5 @@ export * from "./create-strict-injection.js";
|
|
|
2
2
|
export * from "./use-active-link.js";
|
|
3
3
|
export * from "./use-date-config.js";
|
|
4
4
|
export * from "./use-selectable-group.js";
|
|
5
|
-
export * from "./use-style-resolver.js";
|
|
6
5
|
export * from "./use-theme.js";
|
|
6
|
+
export * from "./use-vars-resolver.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CssVariable, NuanceTheme, TransformVars } from '@nui/types';
|
|
2
|
+
import type { ComputedRef } from 'vue';
|
|
3
|
+
/** Reactive style object builder. */
|
|
4
|
+
export declare function useVarsResolver<T extends Record<never, CssVariable>>(factory: (theme: NuanceTheme) => TransformVars<T>): ComputedRef<TransformVars<T>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { DateSelection, SelectionMode } from '../components/calendar/index.js';
|
|
3
|
+
import type { DatePickerProps } from '../components/input/date-picker.vue.js';
|
|
4
|
+
export interface DateFieldProps<Mode extends SelectionMode = 'single'> extends Omit<DatePickerProps<Mode>, 'error'> {
|
|
5
|
+
/** Field name used by vee-validate */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Validation rules, applied when `controlled: false` or as field-level override */
|
|
8
|
+
rules?: RuleExpression<DateSelection<Mode>>;
|
|
9
|
+
/** When to trigger validation @default `'change'` */
|
|
10
|
+
validateOn?: 'change' | 'submit';
|
|
11
|
+
/** Pre-fills the field value */
|
|
12
|
+
initialValue?: DateSelection<Mode>;
|
|
13
|
+
/** If `false`, disconnects the field from the parent form context @default `true` */
|
|
14
|
+
controlled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const __VLS_export: <Mode extends SelectionMode = "single">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<DateFieldProps<Mode>> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {
|
|
23
|
+
leftSection?: (props: {}) => any;
|
|
24
|
+
} & {
|
|
25
|
+
rightSection?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
label?: (props: {}) => any;
|
|
28
|
+
} & {
|
|
29
|
+
description?: (props: {}) => any;
|
|
30
|
+
} & {
|
|
31
|
+
error?: (props: {
|
|
32
|
+
error: string | undefined;
|
|
33
|
+
}) => any;
|
|
34
|
+
};
|
|
35
|
+
emit: {};
|
|
36
|
+
}>) => import("vue").VNode & {
|
|
37
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
38
|
+
};
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} : {
|
|
44
|
+
[K in keyof T as K]: T[K];
|
|
45
|
+
}) & {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useField } from "vee-validate";
|
|
3
|
+
import DatePicker from "../components/input/date-picker.vue";
|
|
4
|
+
const {
|
|
5
|
+
name,
|
|
6
|
+
rules,
|
|
7
|
+
validateOn = "change",
|
|
8
|
+
initialValue,
|
|
9
|
+
controlled = true,
|
|
10
|
+
...props
|
|
11
|
+
} = defineProps({
|
|
12
|
+
name: { type: String, required: true },
|
|
13
|
+
rules: { type: [String, Object, Function, Array], required: false, skipCheck: true },
|
|
14
|
+
validateOn: { type: String, required: false },
|
|
15
|
+
initialValue: { type: null, required: false },
|
|
16
|
+
controlled: { type: Boolean, required: false },
|
|
17
|
+
valueFormat: { type: [String, Object], required: false },
|
|
18
|
+
size: { type: [String, Object], required: false },
|
|
19
|
+
withWeekNumbers: { type: Boolean, required: false },
|
|
20
|
+
prevDisabled: { type: Function, required: false },
|
|
21
|
+
nextDisabled: { type: Function, required: false },
|
|
22
|
+
minLevel: { type: String, required: false },
|
|
23
|
+
maxLevel: { type: String, required: false },
|
|
24
|
+
withCellSpacing: { type: Boolean, required: false },
|
|
25
|
+
mode: { type: null, required: false },
|
|
26
|
+
numberOfMonths: { type: Number, required: false },
|
|
27
|
+
weekdayFormat: { type: String, required: false },
|
|
28
|
+
fixedWeeks: { type: Boolean, required: false },
|
|
29
|
+
minDate: { type: [Date, String], required: false },
|
|
30
|
+
maxDate: { type: [Date, String], required: false },
|
|
31
|
+
excludeDate: { type: Function, required: false },
|
|
32
|
+
highlightToday: { type: Boolean, required: false },
|
|
33
|
+
hideOutsideDates: { type: Boolean, required: false },
|
|
34
|
+
disabled: { type: Boolean, required: false },
|
|
35
|
+
readonly: { type: Boolean, required: false },
|
|
36
|
+
config: { type: Object, required: false },
|
|
37
|
+
multiline: { type: Boolean, required: false },
|
|
38
|
+
classes: { type: Object, required: false },
|
|
39
|
+
description: { type: String, required: false },
|
|
40
|
+
label: { type: String, required: false },
|
|
41
|
+
required: { type: Boolean, required: false },
|
|
42
|
+
id: { type: [String, null], required: false },
|
|
43
|
+
radius: { type: [String, Number, Object], required: false },
|
|
44
|
+
variant: { type: String, required: false },
|
|
45
|
+
resize: { type: void 0, required: false },
|
|
46
|
+
leftSectionPE: { type: void 0, required: false },
|
|
47
|
+
rightSectionPE: { type: void 0, required: false }
|
|
48
|
+
});
|
|
49
|
+
const {
|
|
50
|
+
value,
|
|
51
|
+
errorMessage,
|
|
52
|
+
handleChange
|
|
53
|
+
} = useField(() => name, rules, {
|
|
54
|
+
validateOnValueUpdate: false,
|
|
55
|
+
validateOnMount: false,
|
|
56
|
+
initialValue,
|
|
57
|
+
controlled
|
|
58
|
+
});
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
62
|
+
<DatePicker
|
|
63
|
+
v-bind='props'
|
|
64
|
+
:model-value='value'
|
|
65
|
+
:error='errorMessage'
|
|
66
|
+
@update:model-value='handleChange($event, validateOn === "change" || !!errorMessage)'
|
|
67
|
+
>
|
|
68
|
+
<template v-if='$slots.leftSection' #leftSection>
|
|
69
|
+
<slot name='leftSection' />
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<template v-if='$slots.rightSection' #rightSection>
|
|
73
|
+
<slot name='rightSection' />
|
|
74
|
+
</template>
|
|
75
|
+
|
|
76
|
+
<template v-if='$slots.label' #label>
|
|
77
|
+
<slot name='label' />
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<template v-if='$slots.description' #description>
|
|
81
|
+
<slot name='description' />
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<template v-if='$slots.error' #error>
|
|
85
|
+
<slot name='error' :error='errorMessage' />
|
|
86
|
+
</template>
|
|
87
|
+
</DatePicker>
|
|
88
|
+
</template>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { DateSelection, SelectionMode } from '../components/calendar/index.js';
|
|
3
|
+
import type { DatePickerProps } from '../components/input/date-picker.vue.js';
|
|
4
|
+
export interface DateFieldProps<Mode extends SelectionMode = 'single'> extends Omit<DatePickerProps<Mode>, 'error'> {
|
|
5
|
+
/** Field name used by vee-validate */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Validation rules, applied when `controlled: false` or as field-level override */
|
|
8
|
+
rules?: RuleExpression<DateSelection<Mode>>;
|
|
9
|
+
/** When to trigger validation @default `'change'` */
|
|
10
|
+
validateOn?: 'change' | 'submit';
|
|
11
|
+
/** Pre-fills the field value */
|
|
12
|
+
initialValue?: DateSelection<Mode>;
|
|
13
|
+
/** If `false`, disconnects the field from the parent form context @default `true` */
|
|
14
|
+
controlled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const __VLS_export: <Mode extends SelectionMode = "single">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<DateFieldProps<Mode>> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {
|
|
23
|
+
leftSection?: (props: {}) => any;
|
|
24
|
+
} & {
|
|
25
|
+
rightSection?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
label?: (props: {}) => any;
|
|
28
|
+
} & {
|
|
29
|
+
description?: (props: {}) => any;
|
|
30
|
+
} & {
|
|
31
|
+
error?: (props: {
|
|
32
|
+
error: string | undefined;
|
|
33
|
+
}) => any;
|
|
34
|
+
};
|
|
35
|
+
emit: {};
|
|
36
|
+
}>) => import("vue").VNode & {
|
|
37
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
38
|
+
};
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} : {
|
|
44
|
+
[K in keyof T as K]: T[K];
|
|
45
|
+
}) & {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { DatePickerProps } from '../components/date-time-picker.vue.js';
|
|
3
|
+
export interface DateTimeFieldProps extends Omit<DatePickerProps, 'error'> {
|
|
4
|
+
/** Field name used by vee-validate */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Validation rules, applied when `controlled: false` or as field-level override */
|
|
7
|
+
rules?: RuleExpression<string | Date | null>;
|
|
8
|
+
/** When to trigger validation @default `'change'` */
|
|
9
|
+
validateOn?: 'change' | 'submit';
|
|
10
|
+
/** Pre-fills the field value */
|
|
11
|
+
initialValue?: string | Date | null;
|
|
12
|
+
/** If `false`, disconnects the field from the parent form context @default `true` */
|
|
13
|
+
controlled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {
|
|
16
|
+
error: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
leftSection?: (props: typeof __VLS_11) => any;
|
|
20
|
+
} & {
|
|
21
|
+
rightSection?: (props: typeof __VLS_14) => any;
|
|
22
|
+
} & {
|
|
23
|
+
label?: (props: typeof __VLS_17) => any;
|
|
24
|
+
} & {
|
|
25
|
+
description?: (props: typeof __VLS_20) => any;
|
|
26
|
+
} & {
|
|
27
|
+
error?: (props: typeof __VLS_23) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<DateTimeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DateTimeFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useField } from "vee-validate";
|
|
3
|
+
import DateTimePicker from "../components/date-time-picker.vue";
|
|
4
|
+
const {
|
|
5
|
+
name,
|
|
6
|
+
rules,
|
|
7
|
+
validateOn = "change",
|
|
8
|
+
initialValue = null,
|
|
9
|
+
controlled = true,
|
|
10
|
+
...props
|
|
11
|
+
} = defineProps({
|
|
12
|
+
name: { type: String, required: true },
|
|
13
|
+
rules: { type: [String, Object, Function, Array], required: false, skipCheck: true },
|
|
14
|
+
validateOn: { type: String, required: false },
|
|
15
|
+
initialValue: { type: [String, Date, null], required: false },
|
|
16
|
+
controlled: { type: Boolean, required: false },
|
|
17
|
+
format: { type: [String, Object], required: false },
|
|
18
|
+
calendarProps: { type: Object, required: false },
|
|
19
|
+
timePickerProps: { type: Object, required: false },
|
|
20
|
+
clearable: { type: Boolean, required: false },
|
|
21
|
+
multiline: { type: Boolean, required: false },
|
|
22
|
+
classes: { type: Object, required: false },
|
|
23
|
+
description: { type: String, required: false },
|
|
24
|
+
label: { type: String, required: false },
|
|
25
|
+
required: { type: Boolean, required: false },
|
|
26
|
+
id: { type: [String, null], required: false },
|
|
27
|
+
radius: { type: [String, Number, Object], required: false },
|
|
28
|
+
size: { type: [String, Object], required: false },
|
|
29
|
+
variant: { type: String, required: false },
|
|
30
|
+
resize: { type: void 0, required: false },
|
|
31
|
+
leftSectionPE: { type: void 0, required: false },
|
|
32
|
+
rightSectionPE: { type: void 0, required: false },
|
|
33
|
+
readonly: { type: Boolean, required: false },
|
|
34
|
+
disabled: { type: Boolean, required: false },
|
|
35
|
+
withSeconds: { type: Boolean, required: false }
|
|
36
|
+
});
|
|
37
|
+
const {
|
|
38
|
+
value,
|
|
39
|
+
errorMessage,
|
|
40
|
+
handleChange
|
|
41
|
+
} = useField(() => name, rules, {
|
|
42
|
+
validateOnValueUpdate: false,
|
|
43
|
+
validateOnMount: false,
|
|
44
|
+
initialValue,
|
|
45
|
+
controlled
|
|
46
|
+
});
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<DateTimePicker
|
|
51
|
+
v-bind='props'
|
|
52
|
+
:model-value='value'
|
|
53
|
+
:error='errorMessage'
|
|
54
|
+
@update:model-value='handleChange($event, validateOn === "change" || !!errorMessage)'
|
|
55
|
+
>
|
|
56
|
+
<template v-if='$slots.leftSection' #leftSection>
|
|
57
|
+
<slot name='leftSection' />
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<template v-if='$slots.rightSection' #rightSection>
|
|
61
|
+
<slot name='rightSection' />
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<template v-if='$slots.label' #label>
|
|
65
|
+
<slot name='label' />
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<template v-if='$slots.description' #description>
|
|
69
|
+
<slot name='description' />
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<template v-if='$slots.error' #error>
|
|
73
|
+
<slot name='error' :error='errorMessage' />
|
|
74
|
+
</template>
|
|
75
|
+
</DateTimePicker>
|
|
76
|
+
</template>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { DatePickerProps } from '../components/date-time-picker.vue.js';
|
|
3
|
+
export interface DateTimeFieldProps extends Omit<DatePickerProps, 'error'> {
|
|
4
|
+
/** Field name used by vee-validate */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Validation rules, applied when `controlled: false` or as field-level override */
|
|
7
|
+
rules?: RuleExpression<string | Date | null>;
|
|
8
|
+
/** When to trigger validation @default `'change'` */
|
|
9
|
+
validateOn?: 'change' | 'submit';
|
|
10
|
+
/** Pre-fills the field value */
|
|
11
|
+
initialValue?: string | Date | null;
|
|
12
|
+
/** If `false`, disconnects the field from the parent form context @default `true` */
|
|
13
|
+
controlled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {
|
|
16
|
+
error: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
leftSection?: (props: typeof __VLS_11) => any;
|
|
20
|
+
} & {
|
|
21
|
+
rightSection?: (props: typeof __VLS_14) => any;
|
|
22
|
+
} & {
|
|
23
|
+
label?: (props: typeof __VLS_17) => any;
|
|
24
|
+
} & {
|
|
25
|
+
description?: (props: typeof __VLS_20) => any;
|
|
26
|
+
} & {
|
|
27
|
+
error?: (props: typeof __VLS_23) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<DateTimeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DateTimeFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { TextInputProps } from '../components/input/text-input.vue.js';
|
|
3
|
+
export interface EmailFieldProps extends Omit<TextInputProps, 'error'> {
|
|
4
|
+
/** Field name used by vee-validate */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Validation rules, applied when `controlled: false` or as field-level override */
|
|
7
|
+
rules?: RuleExpression<string>;
|
|
8
|
+
/** When to trigger validation @default `'blur'` */
|
|
9
|
+
validateOn?: 'blur' | 'submit' | 'change';
|
|
10
|
+
/** Pre-fills the field value */
|
|
11
|
+
initialValue?: string;
|
|
12
|
+
/** If `false`, disconnects the field from the parent form context @default `true` */
|
|
13
|
+
controlled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare var __VLS_12: {}, __VLS_15: {}, __VLS_18: {}, __VLS_21: {}, __VLS_24: {
|
|
16
|
+
error: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
leftSection?: (props: typeof __VLS_12) => any;
|
|
20
|
+
} & {
|
|
21
|
+
rightSection?: (props: typeof __VLS_15) => any;
|
|
22
|
+
} & {
|
|
23
|
+
label?: (props: typeof __VLS_18) => any;
|
|
24
|
+
} & {
|
|
25
|
+
description?: (props: typeof __VLS_21) => any;
|
|
26
|
+
} & {
|
|
27
|
+
error?: (props: typeof __VLS_24) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<EmailFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmailFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useField } from "vee-validate";
|
|
3
|
+
import EmailInput from "../components/input/email-input.vue";
|
|
4
|
+
const {
|
|
5
|
+
name,
|
|
6
|
+
rules,
|
|
7
|
+
validateOn = "blur",
|
|
8
|
+
initialValue,
|
|
9
|
+
controlled = true,
|
|
10
|
+
...props
|
|
11
|
+
} = defineProps({
|
|
12
|
+
name: { type: String, required: true },
|
|
13
|
+
rules: { type: [String, Object, Function, Array], required: false, skipCheck: true },
|
|
14
|
+
validateOn: { type: String, required: false },
|
|
15
|
+
initialValue: { type: String, required: false },
|
|
16
|
+
controlled: { type: Boolean, required: false },
|
|
17
|
+
multiline: { type: Boolean, required: false },
|
|
18
|
+
withAria: { type: Boolean, required: false },
|
|
19
|
+
classes: { type: Object, required: false },
|
|
20
|
+
icon: { type: String, required: false },
|
|
21
|
+
description: { type: String, required: false },
|
|
22
|
+
label: { type: String, required: false },
|
|
23
|
+
required: { type: Boolean, required: false },
|
|
24
|
+
id: { type: [String, null], required: false },
|
|
25
|
+
radius: { type: [String, Number, Object], required: false },
|
|
26
|
+
size: { type: [String, Object], required: false },
|
|
27
|
+
variant: { type: String, required: false },
|
|
28
|
+
resize: { type: void 0, required: false },
|
|
29
|
+
leftSectionPE: { type: void 0, required: false },
|
|
30
|
+
rightSectionPE: { type: void 0, required: false },
|
|
31
|
+
readonly: { type: Boolean, required: false },
|
|
32
|
+
disabled: { type: Boolean, required: false }
|
|
33
|
+
});
|
|
34
|
+
const {
|
|
35
|
+
value,
|
|
36
|
+
errorMessage,
|
|
37
|
+
handleBlur,
|
|
38
|
+
handleChange
|
|
39
|
+
} = useField(() => name, rules, {
|
|
40
|
+
validateOnValueUpdate: false,
|
|
41
|
+
validateOnMount: false,
|
|
42
|
+
initialValue,
|
|
43
|
+
controlled
|
|
44
|
+
});
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<EmailInput
|
|
49
|
+
v-bind='props'
|
|
50
|
+
:model-value='value'
|
|
51
|
+
:error='errorMessage'
|
|
52
|
+
:name
|
|
53
|
+
@update:model-value='handleChange($event, !!errorMessage)'
|
|
54
|
+
@blur='handleBlur($event, validateOn === "blur")'
|
|
55
|
+
>
|
|
56
|
+
<template v-if='$slots.leftSection' #leftSection>
|
|
57
|
+
<slot name='leftSection' />
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<template v-if='$slots.rightSection' #rightSection>
|
|
61
|
+
<slot name='rightSection' />
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<template v-if='$slots.label' #label>
|
|
65
|
+
<slot name='label' />
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<template v-if='$slots.description' #description>
|
|
69
|
+
<slot name='description' />
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<template v-if='$slots.error' #error>
|
|
73
|
+
<slot name='error' :error='errorMessage' />
|
|
74
|
+
</template>
|
|
75
|
+
</EmailInput>
|
|
76
|
+
</template>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { TextInputProps } from '../components/input/text-input.vue.js';
|
|
3
|
+
export interface EmailFieldProps extends Omit<TextInputProps, 'error'> {
|
|
4
|
+
/** Field name used by vee-validate */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Validation rules, applied when `controlled: false` or as field-level override */
|
|
7
|
+
rules?: RuleExpression<string>;
|
|
8
|
+
/** When to trigger validation @default `'blur'` */
|
|
9
|
+
validateOn?: 'blur' | 'submit' | 'change';
|
|
10
|
+
/** Pre-fills the field value */
|
|
11
|
+
initialValue?: string;
|
|
12
|
+
/** If `false`, disconnects the field from the parent form context @default `true` */
|
|
13
|
+
controlled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare var __VLS_12: {}, __VLS_15: {}, __VLS_18: {}, __VLS_21: {}, __VLS_24: {
|
|
16
|
+
error: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
leftSection?: (props: typeof __VLS_12) => any;
|
|
20
|
+
} & {
|
|
21
|
+
rightSection?: (props: typeof __VLS_15) => any;
|
|
22
|
+
} & {
|
|
23
|
+
label?: (props: typeof __VLS_18) => any;
|
|
24
|
+
} & {
|
|
25
|
+
description?: (props: typeof __VLS_21) => any;
|
|
26
|
+
} & {
|
|
27
|
+
error?: (props: typeof __VLS_24) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<EmailFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmailFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|