tsv2-library 1.1.0-dev-alpha.7 → 1.1.0-dev-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +1 -1
- package/dist/src/components/v2/Form/Form.vue.d.ts +8 -0
- package/dist/src/components/v2/InputText/InputText.vue.d.ts +10 -1
- package/dist/tsv2-library.es.js +729 -447
- package/dist/tsv2-library.umd.js +7 -7
- package/package.json +1 -1
- package/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +1 -1
- package/src/components/v2/Form/Form.vue.d.ts +8 -0
- package/src/components/v2/InputText/InputText.vue.d.ts +10 -1
|
@@ -120,6 +120,14 @@ declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
|
|
|
120
120
|
* Clears the form fields.
|
|
121
121
|
*/
|
|
122
122
|
clearField: () => void;
|
|
123
|
+
/**
|
|
124
|
+
* Sets the errors for the form fields.
|
|
125
|
+
*/
|
|
126
|
+
setErrors: (errors: Partial<Record<string, string | undefined>>) => void;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the error for a specific field.
|
|
129
|
+
*/
|
|
130
|
+
setFieldError: (field: string, error: string | undefined) => void;
|
|
123
131
|
}
|
|
124
132
|
|
|
125
133
|
declare module '@vue/runtime-core' {
|
|
@@ -55,7 +55,16 @@ export interface InputTextProps {
|
|
|
55
55
|
* Set custom validator message.
|
|
56
56
|
* Will be show if invalid="true"
|
|
57
57
|
*/
|
|
58
|
-
validatorMessage?:
|
|
58
|
+
validatorMessage?:
|
|
59
|
+
| string
|
|
60
|
+
| {
|
|
61
|
+
exist?: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Function to check the availability of the input value.
|
|
65
|
+
* Useful for checking if a username or email already exists.
|
|
66
|
+
*/
|
|
67
|
+
checkAvailability?: (value: string) => Promise<boolean>;
|
|
59
68
|
/**
|
|
60
69
|
* Validate the input on blur event.
|
|
61
70
|
*
|