Refactor
parent
d01c40c55b
commit
94845433d8
|
@ -213,7 +213,7 @@
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": "",
|
"default": "false",
|
||||||
"description": "Whether the form field has been touched."
|
"description": "Whether the form field has been touched."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -221,7 +221,7 @@
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": "",
|
"default": "false",
|
||||||
"description": "Whether the form field has been modified."
|
"description": "Whether the form field has been modified."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": "",
|
"default": "true",
|
||||||
"description": "Whether the form field has not been modified."
|
"description": "Whether the form field has not been modified."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": "",
|
"default": "true",
|
||||||
"description": "Whether the form field is valid."
|
"description": "Whether the form field is valid."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -245,7 +245,7 @@
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": "",
|
"default": "false",
|
||||||
"description": "Whether the form field is invalid."
|
"description": "Whether the form field is invalid."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -261,7 +261,7 @@
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
"type": "any[]",
|
"type": "any[]",
|
||||||
"default": "",
|
"default": "[]",
|
||||||
"description": "All error messages of the form field."
|
"description": "All error messages of the form field."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -126,22 +126,27 @@ export interface FormFieldState {
|
||||||
value: any;
|
value: any;
|
||||||
/**
|
/**
|
||||||
* Whether the form field has been touched.
|
* Whether the form field has been touched.
|
||||||
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
touched: boolean;
|
touched: boolean;
|
||||||
/**
|
/**
|
||||||
* Whether the form field has been modified.
|
* Whether the form field has been modified.
|
||||||
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
dirty: boolean;
|
dirty: boolean;
|
||||||
/**
|
/**
|
||||||
* Whether the form field has not been modified.
|
* Whether the form field has not been modified.
|
||||||
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
pristine: boolean;
|
pristine: boolean;
|
||||||
/**
|
/**
|
||||||
* Whether the form field is valid.
|
* Whether the form field is valid.
|
||||||
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
valid: boolean;
|
valid: boolean;
|
||||||
/**
|
/**
|
||||||
* Whether the form field is invalid.
|
* Whether the form field is invalid.
|
||||||
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
invalid: boolean;
|
invalid: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -150,6 +155,7 @@ export interface FormFieldState {
|
||||||
error: any;
|
error: any;
|
||||||
/**
|
/**
|
||||||
* All error messages of the form field.
|
* All error messages of the form field.
|
||||||
|
* @defaultValue []
|
||||||
*/
|
*/
|
||||||
errors: any[];
|
errors: any[];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue