Commit graph

174 commits

Author SHA1 Message Date
SachaG
5b5884d33c Move intl logic to vulcan:lib (keep vulcan:i18n with same API as react-i18n); add isIntlField helper; add IntlString type 2018-05-08 12:23:42 +09:00
SachaG
2c03bd352a Use two-field strategy for getting all locale strings 2018-05-08 11:05:24 +09:00
SachaG
2dadce31e7 Merge branch 'devel' into i18n2 2018-05-07 17:46:14 +09:00
SachaG
55800a9b30 Add support for intl fields to API and SmartForm 2018-05-07 17:41:22 +09:00
SachaG
18bde83fbc v1.10.1 2018-05-04 12:04:10 +09:00
Bernardo Dias
087e5db923 Revert catch callback of removeMutation 2018-05-02 13:39:52 -03:00
Bernardo Dias
37200ec9ae Add document attributes to error catch of editMutation and removeMutation 2018-05-02 13:17:12 -03:00
Bernardo Dias
f099e6557d Include document prop in mutationErrorCallback method 2018-05-02 13:17:12 -03:00
SachaG
dd0ff54f9a Disable FormComponent shouldComponentUpdate callback for now 2018-05-02 18:14:15 +09:00
Bernardo Dias
aeef482e81
Update FormSubmit.jsx
`void` operator expects one argument, otherwise it throws `Uncaught SyntaxError: Unexpected token )`
2018-05-01 16:02:31 -03:00
SachaG
94fc8fffe9 Only rerender FormComponent when necessary 2018-04-30 09:36:42 +09:00
Sacha Greif
d94a568dd8
Merge pull request #1964 from Apollinaire/fieldErrors
Fix field errors display
2018-04-28 11:15:00 +09:00
SachaG
7b1c66cb43 Factor out error handling code; clean up form props; pass currentUser down to FormComponent 2018-04-28 10:54:03 +09:00
Apollinaire
1f67c9c29e Fix field errors display
Added `error.properties` to follow fae7b5a032 .
Kept `error.data` for backwards compatibility, not sure that it's needed. If it is, it might be good to add it to FormErrors too
2018-04-27 18:40:48 +02:00
Sacha Greif
c4efabdd07
Merge pull request #1960 from justinr1234/fix-form-props
Fix Form props
2018-04-24 10:31:04 +09:00
SachaG
f9ed4b0dd5 Button -> Components.Button 2018-04-24 10:20:51 +09:00
Justin Reynolds
30e340d8af Fix Form props 2018-04-23 13:00:08 -05:00
SachaG
2e0f9184cc Fixing mistakes 2018-04-23 09:51:33 +09:00
SachaG
b4f960301b Isolate bootstrap dependencies in new vulcan-ui-bootstrap package 2018-04-23 09:47:04 +09:00
SachaG
63bc4e562a v1.9.1 2018-04-21 18:30:15 +09:00
SachaG
23e261141b control -> input 2018-04-21 18:24:54 +09:00
SachaG
299d83df98 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-04-21 17:58:29 +09:00
SachaG
fae7b5a032 Improve error handling 2018-04-21 17:57:53 +09:00
Apollinaire
cde919b3ea do not pass FormNested's own inputProperties to FormNestedItem 2018-04-20 17:34:55 +02:00
Apollinaire
6e9da3fbb7 formInput -> input 2018-04-20 16:25:11 +02:00
SachaG
98b9be82f7 v1.9.0 2018-04-17 08:19:54 +09:00
SachaG
45d508ca89 control -> input; forn -> inputProperties 2018-04-14 18:09:35 +09:00
SachaG
bef525eea8 Improve upload error handling; add clearFieldErrors; 2018-04-14 17:21:10 +09:00
SachaG
e37704a94c handle default values properly 2018-04-10 17:23:23 +09:00
SachaG
cc97d1a473 Improve form error handling; fix control css class 2018-04-09 13:10:42 +09:00
SachaG
9b3b545219 Avoid error when no arguments are passed 2018-04-07 11:53:40 +09:00
SachaG
8073af7d11 Add option to keep/exclude hidden fields 2018-04-07 10:09:38 +09:00
SachaG
7c33b37004 Clean up form props/context 2018-04-06 17:56:25 +09:00
Apollinaire
6e39058e51 use this.getCollection() instead of props.collection 2018-03-29 12:15:21 +02:00
SachaG
6735f9aaf3 Improve errors & validation; improve getValue; get rid of autoValue 2018-03-29 11:58:24 +09:00
SachaG
f07d07d2ff Better nested form icons 2018-03-28 16:47:10 +09:00
SachaG
7f67f21eb9 handle arrays better when merging 2018-03-28 16:31:58 +09:00
SachaG
325cf4b140 Handle deleted values better 2018-03-28 11:51:18 +09:00
SachaG
991595581f Use SVGs for form group icons 2018-03-28 11:24:37 +09:00
SachaG
759899212f Remove __typename from datatable; fix select options 2018-03-28 11:20:41 +09:00
SachaG
9aa06cee82 Fix date components and new doc validation 2018-03-28 11:14:36 +09:00
SachaG
ce7e0b0b25 Get errors through props instead of context 2018-03-28 11:14:15 +09:00
SachaG
ceabbc1314 Get current value through props instead of through context 2018-03-27 10:45:17 +09:00
SachaG
98ddbff044 Do not pass value and control down 2018-03-27 08:25:16 +09:00
SachaG
97c26e23c8 More small fixes 2018-03-26 18:00:26 +09:00
SachaG
5675b50fb5 Cleaning up FormComponent props 2018-03-26 17:50:03 +09:00
SachaG
9d5963da12 Lodash's merge mutates its first argument 2018-03-26 16:24:01 +09:00
SachaG
667f43bd5b Fix a few issues 2018-03-26 14:49:05 +09:00
SachaG
5bfa885de5 More refactoring 2018-03-26 14:27:45 +09:00
SachaG
d1a674d36e Convert SimpleSchema schema to JSON object before using it in Form.jsx 2018-03-26 11:51:08 +09:00