Commit graph

20 commits

Author SHA1 Message Date
SachaG
111e00ecae Fix semicolons and other linting issues 2018-12-31 15:22:17 +09:00
eric-burel
38ce8ef886 expose mergeWithComponents 2018-11-29 14:24:18 +01:00
SachaG
dfa4c77314 ESLint fixes 2018-09-16 11:48:38 +09:00
SachaG
43515b39bb Fix replaceComponent 2018-09-12 11:59:58 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
3c48f20273 Refactor registerComponent to fix #2061 (see also #2031) 2018-09-12 10:07:08 +09:00
SachaG
b1452551ea Missing component.hocs should not throw exception 2018-08-31 07:06:50 +09:00
ochicf
90abd27d77 warn when replacing a non-registered component and register it anyway 2018-08-10 13:03:15 +02:00
SachaG
9b4d913fab Handle form deletions more explicitly (split into two cases); pass value down to FormNested; uniq -> uniqBy 2018-08-05 11:17:46 +09:00
SachaG
45afb1d1f7 Don't use arrow function since it breaks arguments 2018-08-03 11:44:00 +09:00
ochicf
d783afb3df Merge remote-tracking branch 'upstream/devel' into dynamic-loader 2018-06-30 12:15:16 +02:00
ochicf
fb096256a1 add delayedComponent function 2018-06-30 11:21:45 +02:00
Matt Black
8b8976db58 Allow passing multiple args to HOCs 2018-06-20 16:08:49 -04:00
SachaG
629e4c2c58 Minor clean-ups 2018-06-17 08:00:19 +09:00
SachaG
ecc97f157e Support new syntax for registerComponent 2018-06-15 14:30:45 +09:00
Erik Schannen
c3f33cb7e0 Changes to SmartForm behaviour
- Moved UI portions of FormComponent to FormComponentInner.jsx in vulcan-ui-bootstrap

 - Added user alert when the user navigates to another route while there are unsaved changed in the form (disabled by default)

 - Added setting forms.warnUnsavedChanges and SmartForm property warnUnsavedChanges to enable user alert

 - Added optional Revert button in FormSubmits to allow the user to discard any changes to the form; this is activated by passing a "revertCallback" property to SmartForm (which can be empty: () => {})

 - Added two functions that form components can access in the child context: refetchForm() to refetch the document from the database (in case it was updated by a background process), isChanged() to determine if there are any unsaved changes

 - For any phrases I have added to en_US.js I also added it to es_ES.js and fr_FR.js with the comment // TODO: translate

 - Updated Form.clearForm and Form.mutationSuccessCallback so that the user can continue working on the document after submitting it

 - The form now scrolls the flash message into view when a submit results in errors

 - Fixed bugs in FormComponent.shouldComponentUpdate() and Form.getDocument()

 - Fixed bug in FormComponent.handleChange() - number fields could not be cleared, only set to 0

 - Fixed a bug in FormComponent.getValue() - it returned the initial value of a checkbox even after it was set to false, and a number even after it was set to 0
2018-05-08 20:09:42 -04:00
SachaG
5e0a6fd28c Do not use Proxy after all, because it makes even if (Components.Foo) statements trigger error 2018-05-02 11:00:58 +09:00
SachaG
0bc0000cb9 Use Proxy to generate better errors when components are not defined 2018-05-01 09:31:31 +09:00
SachaG
6887c70fc0 Telescope -> Vulcan 2017-06-13 00:16:52 -07:00
SachaG
72be56a590 renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
Renamed from packages/nova-lib/lib/modules/components.js (Browse further)