Commit graph

326 commits

Author SHA1 Message Date
SachaG
b6da989deb Move Utils.performCheck to server; convert actions to lowercase 2019-03-05 10:22:33 +09:00
SachaG
9e1b5cd76e Do not discard data for hidden/removed fields 2019-03-02 18:31:22 +09:00
SachaG
8fa164914e Remove unnecessary form.reset() 2019-02-18 10:33:00 +09:00
SachaG
5a3ac3e6d0 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2019-02-15 20:25:40 +09:00
SachaG
303bb2b3ff Fix type casting in FormComponent's handleChange (fix #2197) 2019-02-15 20:24:33 +09:00
Apollinaire
f6f8ae3a41 Merge branch 'devel-apollo1' into devel 2019-02-12 15:15:46 +01:00
SachaG
0d69d81301 Cast values to numbers when calling updateCurrentValues 2019-02-09 16:53:29 +09:00
Eric Burel
d7afee4793
Merge pull request #2186 from Neobii/formTest
Form test
2019-02-06 09:09:40 +01:00
Apollinaire
f16b3dc480 Merge remote-tracking branch 'upstream/devel' into i18nLabel 2019-01-30 11:37:56 +01:00
Apollinaire
78af913820 rewrite Form.getLabel 2019-01-29 18:41:50 +01:00
SachaG
a42a3b492a Handle intl fields properly when specifying form fields with "fields" prop 2019-01-28 18:12:12 +09:00
SachaG
0af75807e5 No need for getModel() anymore 2019-01-28 17:57:25 +09:00
SachaG
5e916f6604 Use getPath to get valid path for intl fields; use isEqual for array and/or object comparisons 2019-01-28 17:54:44 +09:00
SachaG
02f0f9bb58 Use horizontal form layout; add FormElement component; pass itemProperties to FormItem 2019-01-27 09:48:45 +09:00
SachaG
5f941d7d76 Remove Formsy dependency 2019-01-24 18:01:53 +09:00
SachaG
12ec3190ff Clean up Form component's render function 2019-01-23 09:56:15 +09:00
neobii
5da98fa30b Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into formTest 2019-01-22 12:35:18 -06:00
Apollinaire
744a02be32 rework arrow function with default value 2019-01-21 15:31:38 +01:00
Apollinaire
cc0778039d Fix forms label generation
the case `formatMessage({ id: fieldName })` was never evalutaed because the condition was always wrong
2019-01-18 18:09:26 +01:00
neobii
37e9937129 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into formTest 2019-01-16 10:37:43 -06:00
neobii
58a64fdec9 more strict propTypes 2019-01-07 09:01:14 -06:00
Apollinaire
a0280d86e9 Go back to using FormNestedFoot in Nested Array Fields 2019-01-02 18:35:36 +01:00
SachaG
111e00ecae Fix semicolons and other linting issues 2018-12-31 15:22:17 +09:00
SachaG
7a4de1c799 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-12-29 22:01:21 +09:00
SachaG
857b20867c Update to Bootstrap 4 2018-12-28 08:52:40 +09:00
neobii
5daae54ed9 forgot to add variable 2018-12-26 16:47:36 -06:00
neobii
23c24c66ae fixed nested array field error 2018-12-25 14:47:26 -06:00
Apollinaire
149932a6b8 avoid importing all of lodash to reduce the bundle size 2018-12-19 14:45:36 +01:00
Eric Burel
ed33f5a7ae
Merge pull request #2131 from lbke/feature/smart-form-reset
Feature/smart form reset
2018-12-18 09:52:30 +01:00
SachaG
ab13f16a26 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-12-16 22:52:11 +09:00
Eric Burel
5818df05a1
Merge branch 'devel' into feature/smart-form-reset 2018-12-15 17:33:19 +01:00
Eric Burel
c55aa27983
Merge pull request #2126 from lbke/cleanup-components
Cleanup Datatable / withComponents pattern
2018-12-15 17:31:33 +01:00
Eric Burel
93566aba1c
Merge branch 'devel' into feature/smart-form-reset 2018-12-15 17:16:24 +01:00
SachaG
5e06e47d6b Make callback hook names case-insensitive; port forms callbacks to new single argument syntax 2018-12-15 18:25:15 +09:00
Sacha Greif
1cbb2976f0
Merge pull request #2130 from slimui/nnenna
Add Prettier and Husky
2018-12-15 17:57:59 +09:00
Sara Itani
33ab51972e Support form id attribute 2018-12-13 12:45:20 -08:00
neobii
aabd1baf93 more elegant code 2018-12-07 05:49:21 -06:00
neobii
3edbd2c97a fixed bug if maxCount was not speficied 2018-12-07 05:34:40 -06:00
neobii
798c93c142 populate initial values if minCount is supplied 2018-12-07 04:45:17 -06:00
neobii
9f7a43c823 added minCount and maxCount to show SmartForm array fields 2018-12-07 02:53:37 -06:00
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
eric-burel
38ce8ef886 expose mergeWithComponents 2018-11-29 14:24:18 +01:00
eric-burel
80c511e348 add prefilledProps given the current implementation 2018-11-26 15:06:57 +01:00
eric-burel
047181992e props update trigger a reset only in relevant cases 2018-11-26 15:03:56 +01:00
eric-burel
fde4d90924 add bootstrap-ui to allow form mounting 2018-11-26 11:06:01 +01:00
Nnenna John
b0f4ecdae7 Add Prettier and Husky 2018-11-25 16:11:50 -08:00
SachaG
8edd46a6b9 Fix form bug 2018-11-24 09:56:51 +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