SachaG
b34f0a25ce
Add support for new addFields form props to force adding unmutable "static" (disabled) fields
2018-07-10 10:02:08 +02:00
SachaG
8a446680cf
Minor fixes to form, mutators; query, and payments
2018-07-07 18:49:04 +02:00
SachaG
a55ef866b0
Clear all current values
2018-07-04 11:25:44 +02:00
SachaG
b2fc0d0c5b
Use Utils.pluralize function
2018-07-04 11:11:46 +02:00
SachaG
e0b540eeb1
Use callback ref; fix withMutation; handle errors with no path
2018-07-04 10:59:10 +02:00
SachaG
861980b468
Internationalize field labels in forms and form errors
2018-07-02 16:59:29 +02:00
ochicf
3b156b73bd
eslint disable
2018-06-30 12:19:32 +02:00
ochicf
d783afb3df
Merge remote-tracking branch 'upstream/devel' into dynamic-loader
2018-06-30 12:15:16 +02:00
ochicf
4b17124877
refactor dynamicLoader, rename getDynamicComponent
...
getDynamicComponent is renamed to renderDynamicComponent and the first is marked as deprecated.
2018-06-30 12:14:43 +02:00
SachaG
35c811e791
Fix form error labels to work with intl fields
2018-06-30 11:48:37 +02:00
SachaG
bb80001056
Fix eslint issues
2018-06-30 11:34:17 +02:00
ochicf
fb096256a1
add delayedComponent function
2018-06-30 11:21:45 +02:00
Sacha Greif
5230f3ae06
Merge pull request #2011 from OrigenStudio/field-value-merge
...
FormComponent value handling improvements
2018-06-30 09:35:42 +02:00
SachaG
12dd5b1141
Missed a conflict
2018-06-30 09:33:31 +02:00
SachaG
da98a6bd53
Merge branch 'form-errors' of https://github.com/OrigenStudio/Vulcan into OrigenStudio-form-errors
...
# Conflicts:
# packages/vulcan-lib/lib/modules/validation.js
2018-06-30 09:26:26 +02:00
SachaG
7a10103590
Pass down disabled prop explicitely
2018-06-30 09:23:49 +02:00
ochicf
cafa28fa90
retrieve nested values using path instead of name
2018-06-29 20:04:01 +02:00
ochicf
affd4d61f1
remove added props to remove complexity
...
this commit undoes some changes introduced in this PR that added more complexity than usefulness
2018-06-29 20:03:54 +02:00
ochicf
1433ca9629
rename context to errorContext to avoid confusion with React's
2018-06-29 19:26:06 +02:00
ochicf
7d4a1685d4
add missing import
2018-06-29 13:22:46 +02:00
ochicf
f7b949b86c
use getDeletedValues to apply DRY
2018-06-29 13:22:21 +02:00
ochicf
198d7f6e5d
refactor mergeValue
...
- takes into account deletedValues
- only will merge simple objects. this prevents merging with different prototype such as `File`
2018-06-29 13:06:52 +02:00
ochicf
2e2c480b34
add getDeletedValues and getNestedDeletedValues functions
2018-06-29 13:04:35 +02:00
ochicf
59965f9614
fix: properly retrieve parent path when current path is of an array elem
...
Example: for path `fieldArray[0]`, parent path was `fieldArray[0`, now is `fieldArray`.
2018-06-29 13:01:56 +02:00
ochicf
ea01b8ef10
add path utils module
2018-06-29 12:58:59 +02:00
ochicf
6f437f0284
remove shouldMergeValue function
2018-06-29 12:57:11 +02:00
ochicf
3f6a3f6731
return undefined to indiciate that the merge has not happened
2018-06-29 12:55:55 +02:00
ochicf
057896f0df
remove shouldMergeValue prop
2018-06-29 12:55:03 +02:00
SachaG
e921c9762c
Remove intl fields sub-schema optional:false
2018-06-28 22:17:58 +02:00
SachaG
dc3d8f8ec0
Refactor
2018-06-28 21:54:45 +02:00
SachaG
a13e61d8b0
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
2018-06-28 21:35:55 +02:00
SachaG
2d2d1033b5
Enable required locale validation for individual locales; add support for intl: true
on schema fields
2018-06-28 21:35:44 +02:00
SachaG
a01ca2ab6e
Move FormIntl/FormNested switch from FromComponentInner to FormComponent
2018-06-28 18:36:57 +02:00
Sacha Greif
8b5ff7918d
Merge pull request #2009 from Apollinaire/apolloTracing
...
New default for Apollo tracing
2018-06-28 17:37:35 +02:00
ochicf
939f2d7ca5
Merge branch 'devel' into field-value-merge
2018-06-28 12:34:31 +02:00
ochicf
d3f24f43cd
use shouldMergeValue and mergeValue & allow them to be injected as props
2018-06-28 12:32:32 +02:00
ochicf
84ea1bd84e
add shouldMergeValue and mergeValue functions
2018-06-28 12:31:35 +02:00
ochicf
c821610d46
allow injection of emptyValue and defaultValue
...
both default to '' so they behave the same way as they did
2018-06-28 12:30:56 +02:00
ochicf
8025590020
allow injection of isEmptyValue as prop, default to FormUtils' one
2018-06-28 12:20:45 +02:00
ochicf
8031e9e17b
Merge branch 'devel' into form-errors
2018-06-28 10:32:09 +02:00
ochicf
9c2500cde4
pass collection name as error property
2018-06-28 10:26:12 +02:00
ochicf
8f0af09e78
add es_ES errors translations
2018-06-28 09:30:52 +02:00
ochicf
4f76207378
use label instead of name
2018-06-28 09:30:41 +02:00
ochicf
9b7e8eac90
pass label to format message
2018-06-28 09:30:14 +02:00
SachaG
d0832c3c20
Update events tracking
2018-06-28 08:37:04 +02:00
ochicf
c8ae445720
pass getLabel as child context
2018-06-27 19:53:21 +02:00
ochicf
198d912be7
use FormError
2018-06-27 19:33:06 +02:00
ochicf
54cfd87923
add FormError component to apply DRY
2018-06-27 19:32:51 +02:00
Apollinaire
2458d82ef1
New default for Apollo tracing
...
Default behaviour for apollo tracing is now enabled on dev and disabled on prod. To enable on prod, or disable on dev, the private boolean setting `apolloTracing` is available
2018-06-27 15:11:19 +02:00
Apollinaire
a80c66e0ca
Remove hardcoded limit to users List resolver
...
The limit is already set in `Users.getParameters`, where it's taken from the setting `maxDocumentsPerRequest`, and was overwritten to be maxed at 100.
2018-06-27 14:43:39 +02:00