@progress/kendo-react-form 7.2.3-develop.1 → 7.2.3-develop.3
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/index.mjs +1 -1
- package/interfaces/FieldRenderProps.d.ts +2 -61
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ const I = {
|
|
|
68
68
|
name: "@progress/kendo-react-form",
|
|
69
69
|
productName: "KendoReact",
|
|
70
70
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
71
|
-
publishDate:
|
|
71
|
+
publishDate: 1709029709,
|
|
72
72
|
version: "",
|
|
73
73
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
74
74
|
}, P = 0;
|
|
@@ -2,68 +2,9 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { FieldRenderPropsBase } from '@progress/kendo-react-common';
|
|
5
6
|
/**
|
|
6
7
|
* Represents the props that are passed to the component which is rendered by Field.
|
|
7
8
|
*/
|
|
8
|
-
export interface FieldRenderProps {
|
|
9
|
-
/**
|
|
10
|
-
* A callback you have to call when the value of the rendered component is changed
|
|
11
|
-
* ([see example]({% slug common_scenarios_form %}#toc-changing-the-field-value)).
|
|
12
|
-
* The `value` property of the event takes precedence over `target.value`.
|
|
13
|
-
*/
|
|
14
|
-
onChange: (event: {
|
|
15
|
-
target?: any;
|
|
16
|
-
value?: any;
|
|
17
|
-
}) => void;
|
|
18
|
-
/**
|
|
19
|
-
* A callback you have to call when the rendered component is focused.
|
|
20
|
-
* Responsible for setting the visited state of the Field.
|
|
21
|
-
*/
|
|
22
|
-
onFocus: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* A callback you have to call when the rendered component is blurred.
|
|
25
|
-
* Responsible for setting the touched state of the Field.
|
|
26
|
-
*/
|
|
27
|
-
onBlur: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Represents the current value of the Field
|
|
30
|
-
* ([see example]({% slug custom_components_form %}#toc-using-basic-properties)).
|
|
31
|
-
*/
|
|
32
|
-
value: any;
|
|
33
|
-
/**
|
|
34
|
-
* Represents the error message that is returned by the validator.
|
|
35
|
-
* The Field is considered valid if the `validationMessage` field is empty.
|
|
36
|
-
*/
|
|
37
|
-
validationMessage: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Indicates if the field is touched.
|
|
40
|
-
* The touched state is set to `true` when the `onBlur` callback is called.
|
|
41
|
-
*/
|
|
42
|
-
touched: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Indicates if the field is modified.
|
|
45
|
-
* The modified state is set to `true` when the `onChange` callback for the current field is called for first time.
|
|
46
|
-
*/
|
|
47
|
-
modified: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates if the field is visited.
|
|
50
|
-
* The visited state is set to `true` when the `onFocus` callback is called.
|
|
51
|
-
*/
|
|
52
|
-
visited: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* A calculated property based on whether `validationMessage` is present and the `touched` state is set to `true`.
|
|
55
|
-
*/
|
|
56
|
-
valid: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Represents the children that are passed to the Field.
|
|
59
|
-
*/
|
|
60
|
-
children: any;
|
|
61
|
-
/**
|
|
62
|
-
* The name of the field in the Form state.
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
[customProp: string]: any;
|
|
9
|
+
export interface FieldRenderProps extends FieldRenderPropsBase {
|
|
69
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-form",
|
|
3
|
-
"version": "7.2.3-develop.
|
|
3
|
+
"version": "7.2.3-develop.3",
|
|
4
4
|
"description": "React Form is a small and fast package for form state management with zero dependencies. KendoReact Form package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-common": "7.2.3-develop.
|
|
26
|
+
"@progress/kendo-react-common": "7.2.3-develop.3",
|
|
27
27
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
28
28
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
29
29
|
},
|