@progress/kendo-react-common 7.2.3-develop.1 → 7.2.3-develop.2

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.
Files changed (2) hide show
  1. package/FormComponent.d.ts +65 -0
  2. package/package.json +1 -1
@@ -100,3 +100,68 @@ export declare abstract class FormComponent {
100
100
  abstract get validity(): FormComponentValidity;
101
101
  abstract get name(): string | undefined;
102
102
  }
103
+ /**
104
+ * @hidden
105
+ */
106
+ export interface FieldRenderPropsBase {
107
+ /**
108
+ * A callback you have to call when the value of the rendered component is changed
109
+ * ([see example]({% slug common_scenarios_form %}#toc-changing-the-field-value)).
110
+ * The `value` property of the event takes precedence over `target.value`.
111
+ */
112
+ onChange: (event: {
113
+ target?: any;
114
+ value?: any;
115
+ }) => void;
116
+ /**
117
+ * A callback you have to call when the rendered component is focused.
118
+ * Responsible for setting the visited state of the Field.
119
+ */
120
+ onFocus: () => void;
121
+ /**
122
+ * A callback you have to call when the rendered component is blurred.
123
+ * Responsible for setting the touched state of the Field.
124
+ */
125
+ onBlur: () => void;
126
+ /**
127
+ * Represents the current value of the Field
128
+ * ([see example]({% slug custom_components_form %}#toc-using-basic-properties)).
129
+ */
130
+ value: any;
131
+ /**
132
+ * Represents the error message that is returned by the validator.
133
+ * The Field is considered valid if the `validationMessage` field is empty.
134
+ */
135
+ validationMessage: string | null;
136
+ /**
137
+ * Indicates if the field is touched.
138
+ * The touched state is set to `true` when the `onBlur` callback is called.
139
+ */
140
+ touched: boolean;
141
+ /**
142
+ * Indicates if the field is modified.
143
+ * The modified state is set to `true` when the `onChange` callback for the current field is called for first time.
144
+ */
145
+ modified: boolean;
146
+ /**
147
+ * Indicates if the field is visited.
148
+ * The visited state is set to `true` when the `onFocus` callback is called.
149
+ */
150
+ visited: boolean;
151
+ /**
152
+ * A calculated property based on whether `validationMessage` is present and the `touched` state is set to `true`.
153
+ */
154
+ valid: boolean;
155
+ /**
156
+ * Represents the children that are passed to the Field.
157
+ */
158
+ children: any;
159
+ /**
160
+ * The name of the field in the Form state.
161
+ */
162
+ name: string;
163
+ /**
164
+ * @hidden
165
+ */
166
+ [customProp: string]: any;
167
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-common",
3
- "version": "7.2.3-develop.1",
3
+ "version": "7.2.3-develop.2",
4
4
  "description": "React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",