@bolttech/form-engine 0.11.2 → 0.11.4
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/CHANGELOG.md +15 -0
- package/README.md +9 -7
- package/{asFormField-50ffeedd.js → asFormField-eb01bb1b.js} +2 -2
- package/{asFormField-50ffeedd.js.map → asFormField-eb01bb1b.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/react.js +1 -1
- package/react.js.map +1 -1
- package/src/adapters/react/asFormField.d.ts +2 -2
- package/src/adapters/react/types.d.ts +18 -7
- package/src/adapters/react/useForm.d.ts +2 -2
- package/src/adapters/react/useFormGroup.d.ts +2 -2
- package/src/core/types/index.d.ts +7 -0
- package/types.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.11.4](http://bitbucket.org/gofrank/bolttech-frontend/compare/form-engine-0.11.3...form-engine-0.11.4) (2024-02-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* change onClick event callback declaration ([cf1e014](http://bitbucket.org/gofrank/bolttech-frontend/commit/cf1e0146eecf504443b05eaffdb1b0632d69075f))
|
|
11
|
+
* update readme ([b8db372](http://bitbucket.org/gofrank/bolttech-frontend/commit/b8db372ddf68d4ab6b8bedadf67857e986a1992c))
|
|
12
|
+
|
|
13
|
+
## [0.11.3](http://bitbucket.org/gofrank/bolttech-frontend/compare/form-engine-0.11.2...form-engine-0.11.3) (2024-02-21)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* react hook adapter ([02ae862](http://bitbucket.org/gofrank/bolttech-frontend/commit/02ae86208394e939d741e5622013e78af773257c))
|
|
19
|
+
|
|
5
20
|
## [0.11.2](http://bitbucket.org/gofrank/bolttech-frontend/compare/form-engine-0.11.1...form-engine-0.11.2) (2024-02-21)
|
|
6
21
|
|
|
7
22
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Achieve form logic re-usage with forms expressed in json format.
|
|
4
4
|
|
|
5
|
-
> stable version 0.11.
|
|
5
|
+
> stable version 0.11.4
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -1678,6 +1678,7 @@ You can use the following arguments to tho hook
|
|
|
1678
1678
|
| id | string | The id of the form you want to connect to |
|
|
1679
1679
|
| ids | array of string | A range of ids of the each form you want to connect to |
|
|
1680
1680
|
| onValid | callback | Called whenever form validation changes |
|
|
1681
|
+
| onClick | callback | Called whenever field has clicked |
|
|
1681
1682
|
| onData | callback | Called whenever data changes |
|
|
1682
1683
|
| onSubmit | callback | Called whenever form is submitted |
|
|
1683
1684
|
|
|
@@ -1735,10 +1736,11 @@ Similar to `useForm`
|
|
|
1735
1736
|
You can use the following arguments to tho hook
|
|
1736
1737
|
|
|
1737
1738
|
| Prop | Type | Description |
|
|
1738
|
-
| -------- | ---------------
|
|
1739
|
+
| -------- | --------------- |-----------------------------------------------------------|
|
|
1739
1740
|
| ids | array of string | The ids we want to listen to |
|
|
1740
1741
|
| group | string | A string to identify the form group we want to connect to |
|
|
1741
1742
|
| onValid | callback | Called whenever form validation changes |
|
|
1743
|
+
| onClick | callback | Called whenever field has clicked |
|
|
1742
1744
|
| onData | callback | Called whenever data changes |
|
|
1743
1745
|
| onSubmit | callback | Called whenever form is submitted |
|
|
1744
1746
|
|
|
@@ -1802,12 +1804,12 @@ Allows you to add separate components from a standard form engine form schema. T
|
|
|
1802
1804
|
|
|
1803
1805
|
You can use the following arguments declare a component as a form field
|
|
1804
1806
|
|
|
1805
|
-
| Prop
|
|
1806
|
-
|
|
1807
|
-
| Comp
|
|
1808
|
-
|
|
|
1807
|
+
| Prop | Type | Description |
|
|
1808
|
+
|---------------|--------------------------|-----------------------------------------------------------------------------|
|
|
1809
|
+
| Comp | React Function Component | The component to be used as form field. |
|
|
1810
|
+
| propsMapping | TComponentPropsMapping | Link for the TComponentPropsMapping likely props mapper from default form. |
|
|
1809
1811
|
|
|
1810
|
-
And
|
|
1812
|
+
And this will give you the following properties in addition to the native ones of your component
|
|
1811
1813
|
|
|
1812
1814
|
| Prop | Type | Description |
|
|
1813
1815
|
|----------------------|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|