@bolttech/form-engine 3.0.2-beta.3 → 3.0.2-beta.5
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/README.md +13 -12
- package/index.esm.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Mappers are the configuration that needs to be provided in order to use componen
|
|
|
122
122
|
The mapper configuration goes as it follows:
|
|
123
123
|
|
|
124
124
|
| Prop | Type | Description |
|
|
125
|
-
|
|
125
|
+
|------------------|------------------------|--------------------------------------------------------------------------------------------------------------------------|
|
|
126
126
|
| componentName | string | name to be used onto schema to identify the component to be rendered on a field |
|
|
127
127
|
| events | TComponentPropsMapping | events mapping that will reference the component prop with the respective form-engine prop that will handle it's content |
|
|
128
128
|
| valueChangeEvent | TValueChangeEvent | component handle function to define how the value is extracted from the 'onChange' event of the component |
|
|
@@ -131,17 +131,18 @@ The mapper configuration goes as it follows:
|
|
|
131
131
|
|
|
132
132
|
`events` are optional and will reference component props that will provide it's dynamic behaviour:
|
|
133
133
|
|
|
134
|
-
| Prop | Type | Description
|
|
135
|
-
|
|
136
|
-
| getValue | string | component property that will contain the value
|
|
137
|
-
| setValue | string | component property that handles onChange events triggered by the component
|
|
138
|
-
| onBlur | string | component property that handles onBlur events triggered by the component
|
|
139
|
-
| onClick | string | component property that handles onClick events triggered by the component
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
134
|
+
| Prop | Type | Description |
|
|
135
|
+
|-----------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
136
|
+
| getValue | string | component property that will contain the value |
|
|
137
|
+
| setValue | string | component property that handles onChange events triggered by the component |
|
|
138
|
+
| onBlur | string | component property that handles onBlur events triggered by the component |
|
|
139
|
+
| onClick | string | component property that handles onClick events triggered by the component |
|
|
140
|
+
| onSubmit | string | component property that handles form submission event triggered by the component (a way to submit a form using AsFormFieldBuilder, if used with AsFormField and Form will trigger submission twice) |
|
|
141
|
+
| onFocus | string | component property that handles onFocus events triggered by the component |
|
|
142
|
+
| onKeyUp | string | component property that handles onKeyUp events triggered by the component |
|
|
143
|
+
| onKeyDown | string | component property that handles onKeyDown events triggered by the component |
|
|
144
|
+
| setErrorMessage | string | component property that receives the errors of the field as string |
|
|
145
|
+
| setErrorState | string | component property that receives the error status of the field as boolean (not implemented) |
|
|
145
146
|
|
|
146
147
|
### component and asynccomponent
|
|
147
148
|
|
package/index.esm.js
CHANGED
|
@@ -2207,6 +2207,7 @@ const FieldWrapper = ({
|
|
|
2207
2207
|
if (events === null || events === void 0 ? void 0 : events.getValue) props[events.getValue] = handleChange;
|
|
2208
2208
|
if (events === null || events === void 0 ? void 0 : events.onFocus) props[events.onFocus] = () => handleEvent('ON_FIELD_FOCUS');
|
|
2209
2209
|
if (events === null || events === void 0 ? void 0 : events.onClick) props[events.onClick] = () => handleEvent('ON_FIELD_CLICK');
|
|
2210
|
+
if (events === null || events === void 0 ? void 0 : events.onSubmit) props[events.onSubmit] = () => handleEvent('ON_FORM_SUBMIT');
|
|
2210
2211
|
if (events === null || events === void 0 ? void 0 : events.onKeyUp) props[events.onKeyUp] = () => handleEvent('ON_FIELD_KEYUP');
|
|
2211
2212
|
if (events === null || events === void 0 ? void 0 : events.onKeyDown) props[events.onKeyDown] = () => handleEvent('ON_FIELD_KEYDOWN');
|
|
2212
2213
|
return props;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/form-engine",
|
|
3
|
-
"version": "3.0.2-beta.
|
|
3
|
+
"version": "3.0.2-beta.5",
|
|
4
4
|
"description": "A react adapter for bolttech form engine",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.esm.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@bolttech/form-engine-core": "0.0.3-beta.
|
|
9
|
+
"@bolttech/form-engine-core": "0.0.3-beta.5",
|
|
10
10
|
"react": "18.2.0",
|
|
11
11
|
"rxjs": "7.8.1"
|
|
12
12
|
},
|