Eric Burel
b5e54ead17
Splitted FormNested between objects an arrays
...
Nested form is much simpler for objects than for arrays.
2018-07-26 17:25:33 +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
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
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
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
939f2d7ca5
Merge branch 'devel' into field-value-merge
2018-06-28 12:34:31 +02:00
ochicf
84ea1bd84e
add shouldMergeValue and mergeValue functions
2018-06-28 12:31:35 +02:00
ochicf
8031e9e17b
Merge branch 'devel' into form-errors
2018-06-28 10:32:09 +02:00
ochicf
54cfd87923
add FormError component to apply DRY
2018-06-27 19:32:51 +02: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
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
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
f320b3363b
Move registerSetting to index
2018-05-10 10:18:55 +09:00
SachaG
4950f10b20
Get locale from GraphQL header
2018-05-09 09:46:47 +09:00
SachaG
55800a9b30
Add support for intl fields to API and SmartForm
2018-05-07 17:41:22 +09: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
45d508ca89
control -> input; forn -> inputProperties
2018-04-14 18:09:35 +09:00
SachaG
5675b50fb5
Cleaning up FormComponent props
2018-03-26 17:50:03 +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
SachaG
1d7cef5556
Work on form errors & validation
2018-03-25 10:54:45 +09:00
SachaG
268090dcb2
Working on nested forms support
2018-03-22 19:22:54 +09:00
SachaG
e7b0110e5f
Replace FormComponent onBlur handler by debounced onChange; add date component
2018-03-19 11:59:30 +09:00
SachaG
08016947db
Split select form component into select and selectmultiple; Make "--select option--" the default selection for select form components
2018-03-08 11:28:29 +09:00
SachaG
8d0cc3e5e2
Make form sub-property optional; Handle extra queries in FormWrapper; remove resolveAs fragment shape "guessing" code
2017-12-28 11:31:55 +09:00
Sacha Greif
f9ccef64ca
Add new Time component; add new 'default' form schema option
2017-11-03 11:40:53 +09:00
Erik Schannen
88da22952d
Abstract out bootstrap-specific components in vulcan:forms and register
...
them using registerComponent so that they can be overridden by other gui
frameworks like material-ui.
2017-10-17 09:35:41 -04:00
SachaG
0348f93c7b
Improve how "hidden" form option works
2017-10-01 11:49:19 +09:00
SachaG
6a9f53e82b
Update to Meteor 1.5.2.1
2017-09-29 09:19:23 +09:00
SachaG
0e836c7cc4
more forms clean-up
2017-08-19 16:17:52 +09:00
SachaG
a5d88880fa
Reorganize forms package; individual forms component can now be overridden with replaceComponent
2017-08-19 10:41:08 +09:00