Commit graph

32 commits

Author SHA1 Message Date
Sebastian Grebe
0799976f77
Form loading state fix
In some cases it seems that the loading property is set to true altough the document is already there.
2018-01-11 12:38:55 +01:00
SachaG
1eba12a8fa Disable polling in withDocument when used through FormWrapper 2018-01-11 09:07:56 +09:00
Luca Hagel
97116235fa Clear FormWrapper warnings, remove shouldCompUpdate & make it PureFunction 2018-01-06 08:38:14 +01:00
Luca Hagel
98b4b92bcd Make FormWrapper a stadnard component so shouldComponentUpdate actually gets called 2018-01-06 07:50:00 +01:00
SachaG
79958ea18f Fix extraQueries check 2018-01-04 08:58:50 +09:00
SachaG
a6ee63bbed Handle extra queries in New Document forms as well (since they don't have withDocument HoC) 2018-01-03 22:03:50 +09:00
SachaG
a248d60ee0 Only populate checkboxes following default values for New Document forms 2018-01-03 22:03:20 +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
SachaG
aad9dc9222 Revert change to form fragments when field has a resolver and contains an array 2017-12-28 09:58:18 +09:00
SachaG
0fb118b534 Pass on error data to flash component to help with #1787 2017-12-20 09:43:42 +09:00
SachaG
0cbb904f2d Set enableCache when defining HoC rather than when defining resolvers for more granularity 2017-12-13 18:39:19 +09:00
Sacha Greif
60c563f15e
Merge pull request #1772 from ErikDakoda/erikdakoda
Changes to support vulcan-material-ui
2017-11-14 11:43:30 +09:00
SachaG
1a33e91554 Fix time component 2017-11-14 10:49:13 +09:00
Erik Schannen
e9acedd00a - Pass all properties of fieldSchema.form on to the form component
- Restore missing delete link
2017-11-10 15:35:01 -05:00
SachaG
41b585adfa Move form's wrapped component instantiation to constructor 2017-11-09 10:01:51 +09:00
SachaG
9e959b96c6 Add repeatErrors prop to Forms 2017-11-09 10:01:22 +09:00
Sacha Greif
f9ccef64ca Add new Time component; add new 'default' form schema option 2017-11-03 11:40:53 +09:00
Sacha Greif
33296c1421 Add fetchPolicy and propertyName options to withList and withDocument 2017-11-01 15:37:57 +09:00
Sacha Greif
4e259ec117 Finish work on form field clearing feature 2017-10-20 10:08:56 +09:00
Sacha Greif
df2db270e5 Fix default checked values for when options is a function 2017-10-20 10:08:09 +09:00
Sacha Greif
1f312c5fe6 Enable checking checkboxes by default by setting checked = true in options 2017-10-19 12:36:18 +09:00
Sacha Greif
2139bc63f3 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2017-10-18 20:07:46 +09:00
Sacha Greif
a5f9d64a2e Working on form clearing 2017-10-18 20:07:43 +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
3a0692cc4a Fix form components ref 2017-09-16 22:26:52 +02:00
Sacha Greif
094a51a26e Merge pull request #1722 from Discordius/formSubmit-PR
Added submit option to `updateCurrentValues` in Form.jsx context
2017-09-11 16:01:06 +02:00
Discordius
7603be5d2e Added submitForm() to context for Form components 2017-09-08 22:52:54 -07:00
SachaG
d9ed258b7b Give proper cursor to delete link 2017-09-06 18:12:02 +02:00
SachaG
1258619ef0 Fix handling of GraphQL schema-level validation errors in forms. Note: GraphQL errors currently happen before server-side validation errors, instead of happening at the same time. 2017-09-06 18:10:26 +02: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