Commit graph

5878 commits

Author SHA1 Message Date
Sacha Greif
287be4371c
Merge pull request #2024 from OrigenStudio/fix/open-crud-forms
Pass opencrud field properties to the form
2018-07-28 12:37:48 +09:00
Eric Burel
e79b8a524f updated schema_utils and FormComponent to correctly detect nested objects 2018-07-27 17:27:44 +02:00
ochicf
65cc9e0b38 initialize fragment when trying to retrieve it for the first time 2018-07-27 10:17:53 +02:00
ochicf
e2fe2ce556 initalizeFragments can now be parametrized with fragments to initialize 2018-07-27 10:16:56 +02:00
ochicf
d661e1a48b add opencrud field properties so they are passed to the form 2018-07-27 09:50:44 +02:00
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
Eric Burel
25db5c04b8 load Components correctly in tests
Now `vulcan:ui-bootstrap` is explicitely loaded in the `vulcan:forms`
package. This avoid undefined `Components.Button` if the use did not
load a specific styling package
2018-07-26 16:39:40 +02:00
Eric Burel
d21dd5fcfa wrote passing tests and a failing test for nested objects 2018-07-25 18:03:43 +02:00
Sacha Greif
c68604876b
Merge pull request #2022 from lbke/bugfix/nested-objects-b34f0a25ce0c775a29a14241b14e9bc0e47976c8
Bugfix/nested objects b34f0a25ce
2018-07-25 05:12:21 +02:00
Eric Burel
56eb3ab4b6 fixed nested form generation
Schema must be passed explicitely to the field retrieval methods
(otherwise the main schema will be used instead of the nested schemas)
2018-07-24 20:33:43 +02:00
Eric Burel
4d6e87cbca pass the nested schema to the field retrieval methods 2018-07-24 18:29:27 +02:00
Eric Burel
474456148e setup tests 2018-07-24 18:13:34 +02:00
Eric Burel
b2c5f8c352
Fixed backers image link 2018-07-24 18:07:52 +02:00
Eric Burel
9e2233f0c9 Merge remote-tracking branch 'upstream/devel' into devel 2018-07-24 15:50:54 +02:00
Sacha Greif
858fbece5e
Merge pull request #2021 from Apollinaire/getParametersFix
collection.getParameters handles schema extension for searchable fields
2018-07-23 15:14:44 +02:00
Apollinaire
fefc21bb2f collection.getParameters handles schema extension for searchable fields
Instead of using `schema` passed when creating the collection, `getParameters` should fetch the schema from `collection.simpleSchema()._schema` to include the fields added with `collection.addField`.

I originally found this when making the `groups` field searchable, with: 
```
Users.addField([
  {
    fieldName: 'groups',
    fieldSchema: {
      type: Array,
      searchable: true,
    },
  },
  {
    fieldName: 'groups.$',
    fieldSchema: {
      type: String,
    },
  },
]);
```
2018-07-23 11:59:22 +02:00
Sacha Greif
0edde32608
Merge pull request #2020 from monkeywithacupcake/patch-1
Open Collective Updates
2018-07-22 21:06:19 +02:00
jess
025551b04b
Open Collective Updates
Hi, I'm making updates for Open Collective. Either you or a supporter signed this repo up for Open Collective. This pull request adds backers and sponsors from your Open Collective https://opencollective.com/vulcan❤️

It adds two badges at the top to show the latest number of backers and sponsors. It also adds placeholders so that the avatar/logo of new backers/sponsors can automatically be shown without having to update your README.md. [more info](https://github.com/opencollective/opencollective/wiki/Github-banner). See how it looks on this [repo](https://github.com/apex/apex#backers).

You can also add a postinstall script to let people know after npm|yarn install that you are welcoming donations (optional). [More info](https://github.com/OpenCollective/opencollective-cli)
You can also add a "Donate" button to your website and automatically show your backers and sponsors there with our widgets. Have a look here: https://opencollective.com/widgets

P.S: As with any pull request, feel free to comment or suggest changes. The only thing "required" are the placeholders on the README because we believe it's important to acknowledge the people in your community that are contributing (financially or with code!).

Thank you for your great contribution to the open source community. You are awesome! 🙌
And welcome to the open collective community! 😊

Come chat with us in the #opensource channel on https://slack.opencollective.com - great place to ask questions and share best practices with other open source sustainers!
2018-07-22 11:42:38 -07:00
SachaG
39ae84b81a New callback hooks: *.create.before, *.create.async, etc. act like previous mutation callbacks but run for all collections; foo.collection runs when collection is created. 2018-07-22 09:26:41 +02:00
Eric Burel
f4ed4bffcf use meteortesting:mocha instead of TinyTest 2018-07-18 12:06:04 +02:00
Eric Burel
6deab6bb8f setup an example test with Tinytest and added Jest's expect to dependencies 2018-07-18 11:12:37 +02:00
Sacha Greif
4fe5278bcc
Merge pull request #2013 from OrigenStudio/dynamic-loader
Dynamic loader improvements
2018-07-14 13:51:59 +02:00
SachaG
97c1ea1630 Improve MutatioButton 2018-07-14 09:09:01 +02:00
SachaG
dfd4bb023e MutationButton component 2018-07-13 21:47:36 +02:00
SachaG
4af2492e07 Make Card and Datatable components more flexible when working with static data; add title prop 2018-07-11 08:34:01 +02:00
SachaG
2eeb5af8a8 Add static text component to display simple text data in forms 2018-07-10 10:08:42 +02:00
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
5f7d9f792f Merge branch 'OrigenStudio-form-errors' into devel 2018-06-30 09:26:35 +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