Commit graph

332 commits

Author SHA1 Message Date
SachaG
a58c1ad22b Pass form instance to callbacks 2018-12-02 22:33:45 +09:00
SachaG
50315bcf73 Fix linting 2018-12-02 10:28:04 +09:00
SachaG
6f11c9cf89 v1.12.10 2018-11-24 09:57:55 +09:00
SachaG
8edd46a6b9 Fix form bug 2018-11-24 09:56:51 +09:00
SachaG
a3a14c8489 v1.12.9 2018-11-23 11:39:38 +09:00
SachaG
77332324f1 If "addFields" prop is specified, add its fields to default generated fragments; fix FormIntl key issue; add class to FormGroup 2018-11-22 16:09:31 +09:00
Eric Burel
08b9cf5c5e updated tests, reuse utils for Form and FormWrapper 2018-10-29 22:34:29 +01:00
Eric Burel
284cdbae18 start splitting code, reuse options handler 2018-10-29 22:08:41 +01:00
Eric Burel
6114ee9da6 add change callback to wrapper props 2018-10-29 08:50:51 +01:00
Eric Burel
5d0ff2d05f add a changeCallback to forms 2018-10-29 08:50:51 +01:00
Eric Burel
44bc79552a skipped some tests 2018-10-29 08:50:51 +01:00
Eric Burel
3cacbc8cb7 form components layout are now replaceable 2018-10-29 08:50:51 +01:00
Eric Burel
3c912215d3 fix FormNested proptypes 2018-10-25 10:26:54 +02:00
Eric Burel
154b511a5c fix intl message, add tests 2018-10-25 10:23:00 +02:00
Eric Burel
562400dc77 fixed field path and default setup 2018-10-24 16:52:34 +02:00
Eric Burel
5d71a2c59a pass down form components to NestedArray/NestedObject 2018-10-24 14:56:55 +02:00
Eric Burel
295a6482b1 started to write a test for array items 2018-10-23 17:32:05 +02:00
Eric Burel
d13d0a05b4 cleanup tests 2018-10-23 17:00:00 +02:00
Eric Burel
04fb76ae16 allow override of Array and Object nested inputs
Input props was ignored for arrays and nested objectsw
2018-10-23 14:33:20 +02:00
Eric Burel
ae6b45f847 clean createField and allow to create field for the array subfield 2018-10-23 14:31:17 +02:00
Eric Burel
767f075e1e do not discard subfield definition in arrays 2018-10-23 14:29:46 +02:00
Eric Burel
4e31ead9c9 fix default props 2018-10-09 15:09:52 +02:00
Eric Burel
3677181f02 fix FormComponents merge with registered components in FormComponent.jsx 2018-10-09 15:02:31 +02:00
Sacha Greif
66b1aa467f
Merge pull request #2080 from VulcanJS/custom-form-components
Custom form components
2018-10-08 07:22:03 +09:00
Sacha Greif
725c9b6959
Merge pull request #2060 from OrigenStudio/fix/clear-current-values-on-edit
only clear current values for new document's form
2018-10-05 09:43:35 +09:00
ochicf
16ca286a05 clear everything, allow to initialize form with a new document 2018-10-04 20:08:14 +02:00
Bogdan Dimofte
3ea00f6ded SmartForm: use prop schema, if given 2018-10-01 11:03:10 +03:00
Erik Dakoda
73086be5ca SubmitButtonLabels
- `submitLabel`, `cancelLabel`, and `revertLabel` now take a node (which is backwards compatible with string) so that you can include a FormattedMessage, an icon, etc.
2018-09-25 09:42:56 -04:00
SachaG
6864b572be Merge branch 'devel' into custom-form-components
# Conflicts:
#	packages/vulcan-forms/lib/components/FormNestedArray.jsx
2018-09-23 08:16:48 +09:00
SachaG
07427a2c96 Add formComponents prop to forms to enable customizing a specific form's components 2018-09-23 08:13:09 +09:00
Erik Dakoda
5ca08daa8e SmartForm.getLabel() now falls back to a "global" namespace when a collection-specific intl string is not found; then it falls back to using no namespace 2018-09-19 21:12:27 -04:00
Erik Dakoda
7e66908d21 Refactoring to remove react-bootstrap and to customize FormNestedArray for material-ui 2018-09-19 13:16:48 -04:00
SachaG
f5e44dc68e v1.12.8 2018-09-17 09:54:10 +09:00
SachaG
c095572bf1 v1.12.7 2018-09-16 15:39:23 +09:00
SachaG
11c49f9185 Formatting clean up 2018-09-16 11:48:56 +09:00
SachaG
dfa4c77314 ESLint fixes 2018-09-16 11:48:38 +09:00
ochicf
b392bad1db update clearForm call, pass document as initial only for edit mutations 2018-09-14 11:14:05 +02:00
ochicf
01b918a8f6 remove options 2018-09-14 11:13:38 +02:00
ochicf
157527fda4 update clearForm call 2018-09-14 11:13:05 +02:00
ochicf
55895431a3 simplify clearForm options 2018-09-14 11:12:45 +02:00
ochicf
f7bda07db0 Merge remote-tracking branch 'upstream/devel' into fix/clear-current-values-on-edit 2018-09-14 11:08:09 +02:00
ochicf
40af573cb5 do not clear current document on edit, and set it as initial 2018-09-12 16:01:14 +02:00
ochicf
a70e476887 retrieve and pass clear form options 2018-09-12 15:58:21 +02:00
ochicf
95d0e9c3d7 add option to parametrize whether to clear initial document or not 2018-09-12 15:57:37 +02:00
ochicf
7866fc380c add option to parametrize whether to clear current document or not 2018-09-12 15:54:40 +02:00
SachaG
a18c4ebb6a v1.12.6 2018-09-12 14:52:49 +09:00
SachaG
0c99b9a7ac v1.12.5 2018-09-12 12:01:10 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
8e325122c6 v1.12.4 2018-09-12 10:32:45 +09:00
Eric Burel
755d5f6ad0 allow user to return nothing in submitCallback
Useful when the callback is meant for side effect and not for modifying the data
2018-09-05 17:08:29 +02:00