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
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
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
9b7e8eac90
pass label to format message
2018-06-28 09:30:14 +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
SachaG
6201b55837
insertableBy -> canCreate
2018-06-22 20:57:31 +09:00
SachaG
50fba6b0a3
viewableBy -> canRead
2018-06-22 20:55:22 +09:00
SachaG
6ee6dea156
Merge branch 'fieldViewEdit' of https://github.com/Apollinaire/Vulcan into Apollinaire-fieldViewEdit
2018-06-22 11:53:29 +09:00
Apollinaire
ac0a875c3a
remove backwards comp. from function name change and add new names to...
...
all instances of functions Users.can... in the whole code
2018-06-21 14:27:20 +02:00
SachaG
973b2bfce3
Pass document to form.reset() to avoid resetting it to pre-submission values
2018-06-21 10:29:00 +09:00
SachaG
b4ac2d23af
Revert formsy/formsy-react-component update
2018-06-21 10:28:34 +09:00
SachaG
eea1a1dadb
Update for new formsy-react & formsy-react-component
2018-06-20 10:23:54 +09:00
SachaG
e783d51dca
v1.11.2
2018-06-16 08:57:45 +09:00
SachaG
c0650893fa
v1.11.1
2018-06-14 08:51:03 +09:00
SachaG
55f3e10581
Re-enable form on submission success
2018-06-13 18:28:01 +09:00
SachaG
d3b6591f63
v1.11.0
2018-06-02 08:35:42 +09:00
SachaG
91ade8cd15
Do not use defaultValues for edit forms
2018-06-02 08:33:50 +09:00
SachaG
8f873fc6ad
Revert changes to schema_utils for now because they break FormIntl
2018-05-27 09:59:26 +09:00
Erik Schannen
373857131a
SubSchema Fields
...
- Added support for fields that have their own subschema
- The code flattens the subschema fields, so the path for `address: { street }`` becomes `'address.street'`
- Several places needed to be changed to properly support paths, so `currentValues[path]` becomes `get(currentValues, path)`
- In Form.getData(), replaced underscore's `pick` with lodash's `pick` which properly supports paths and returns a new object
- Fixed a bug in collection.getParameters that made it impossible to specify a `limit` with addView or addDefaultView
2018-05-23 16:02:36 -04:00
SachaG
9865eb5f63
Use field.nestedInput instead of type="nested"
2018-05-23 22:04:32 +09:00
SachaG
2b05700e41
Pass "raw" component constructor down to FormComponentInner instead of passing function that instantiates it
2018-05-23 17:12:04 +09:00
SachaG
2edebcf551
Do not apply compact when object is not an array
2018-05-23 17:09:32 +09:00
SachaG
1951000118
Merge branch 'master' into devel
...
# Conflicts:
# README.md
2018-05-23 15:12:33 +09:00
Apollinaire
f82efb1803
Popup warning on page closing for SmartForm unsaved changes
2018-05-22 09:51:36 +02:00
SachaG
d378cd9654
Small migration improvements
2018-05-22 08:43:27 +09:00
SachaG
cb93292e08
Do not try to be smart about translations order after all
2018-05-21 10:33:36 +09:00
SachaG
2b0f8cdd88
Change data structure of translations in db to match MongoDB standards
2018-05-21 09:42:08 +09:00
SachaG
640a52d3c2
v1.10.1
2018-05-18 08:27:41 +09:00
SachaG
b10d8bdb5c
Formatting
2018-05-11 09:52:04 +09:00
SachaG
ab674a1163
Merge branch 'devel' into i18n2
...
# Conflicts:
# packages/vulcan-forms/lib/components/Form.jsx
# packages/vulcan-forms/lib/components/FormComponent.jsx
2018-05-11 09:48:34 +09:00
SachaG
9638e4a759
Merge branch 'erikdakoda5' of https://github.com/ErikDakoda/Vulcan into ErikDakoda-erikdakoda5
...
# Conflicts:
# packages/vulcan-forms/lib/components/FormComponent.jsx
2018-05-11 09:40:45 +09:00
Erik Dakoda
2fe3b2cd28
Merge branch 'devel' into erikdakoda5
2018-05-10 10:10:27 -04:00
Erik Schannen
150d9392e7
Changes to SmartForm behaviour - refactoring
...
- Added new `FormComponent.isCustomInput` method
- Pulled `renderComponent` up from `FormComponentInner` to `FormComponent`
- Pulled some input-type-specific logic up when it was universal, or pushed it down when it should be handled by each ui library
2018-05-10 10:03:59 -04:00
SachaG
af666027c3
Add locale field to user schema; change it when setLocale is called on client
2018-05-10 17:48:06 +09:00
SachaG
6979ac8bee
addLocale -> registerLocale
2018-05-10 17:17:44 +09:00