@redseed/redseed-ui-vue3 1.0.10 → 1.0.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/package.json
CHANGED
|
@@ -11,9 +11,12 @@ const props = defineProps({
|
|
|
11
11
|
form: {
|
|
12
12
|
type: Object,
|
|
13
13
|
default: {
|
|
14
|
-
name:
|
|
15
|
-
email:
|
|
16
|
-
password:
|
|
14
|
+
name: null,
|
|
15
|
+
email: null,
|
|
16
|
+
password: null,
|
|
17
|
+
terms: false,
|
|
18
|
+
processing: false,
|
|
19
|
+
errors: {},
|
|
17
20
|
},
|
|
18
21
|
},
|
|
19
22
|
})
|
|
@@ -41,7 +44,7 @@ const formRef = ref(props.form)
|
|
|
41
44
|
</div>
|
|
42
45
|
|
|
43
46
|
<slot name="name"
|
|
44
|
-
formRef="formRef"
|
|
47
|
+
:formRef="formRef"
|
|
45
48
|
>
|
|
46
49
|
<FormFieldText
|
|
47
50
|
v-model="formRef.name"
|
|
@@ -49,6 +52,10 @@ const formRef = ref(props.form)
|
|
|
49
52
|
<template #label>
|
|
50
53
|
Name
|
|
51
54
|
</template>
|
|
55
|
+
|
|
56
|
+
<template #error v-if="formRef.errors.name">
|
|
57
|
+
{{ formRef.errors.name }}
|
|
58
|
+
</template>
|
|
52
59
|
</FormFieldText>
|
|
53
60
|
</slot>
|
|
54
61
|
|
|
@@ -58,6 +65,10 @@ const formRef = ref(props.form)
|
|
|
58
65
|
<template #label>
|
|
59
66
|
Email
|
|
60
67
|
</template>
|
|
68
|
+
|
|
69
|
+
<template #error v-if="formRef.errors.email">
|
|
70
|
+
{{ formRef.errors.email }}
|
|
71
|
+
</template>
|
|
61
72
|
</FormFieldEmail>
|
|
62
73
|
|
|
63
74
|
<FormFieldPasswordToggle
|
|
@@ -66,18 +77,32 @@ const formRef = ref(props.form)
|
|
|
66
77
|
<template #label>
|
|
67
78
|
Password
|
|
68
79
|
</template>
|
|
80
|
+
|
|
81
|
+
<template #error v-if="formRef.errors.password">
|
|
82
|
+
{{ formRef.errors.password }}
|
|
83
|
+
</template>
|
|
69
84
|
</FormFieldPasswordToggle>
|
|
70
85
|
|
|
71
|
-
<
|
|
86
|
+
<slot></slot>
|
|
87
|
+
|
|
88
|
+
<FormFieldCheckbox
|
|
89
|
+
v-model:checked="formRef.terms"
|
|
90
|
+
>
|
|
72
91
|
<template #label>
|
|
73
92
|
<slot name="terms"></slot>
|
|
74
93
|
</template>
|
|
94
|
+
|
|
95
|
+
<template #error v-if="formRef.errors.terms">
|
|
96
|
+
{{ formRef.errors.terms }}
|
|
97
|
+
</template>
|
|
75
98
|
</FormFieldCheckbox>
|
|
76
99
|
|
|
100
|
+
<slot name="recaptcha" :formRef="formRef"></slot>
|
|
101
|
+
|
|
77
102
|
<slot name="submit"
|
|
78
103
|
formRef="formRef"
|
|
79
104
|
>
|
|
80
|
-
<ButtonPrimary full lg submit>
|
|
105
|
+
<ButtonPrimary full lg submit :disabled="form.processing">
|
|
81
106
|
<template #label>
|
|
82
107
|
<slot name="submit-label">
|
|
83
108
|
Register
|