Giter Club home page Giter Club logo

redux-autoform's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

redux-autoform's Issues

Add support for Wizard Form

In redux-form there are some examples of types of forms, and one of them is the wizard form, I want to add support for this.

Add support for Questionnaire forms.

Hi @andrerpena!, we were thinking of another type of form that we can add ๐Ÿ˜„ , these forms will have a rollover and will show a percentage of advance while the user fills the fields, does it makes sense for you ??

Reopen Match dateTimePicker.less case

Hi! I have created this issue as #20 was already closed but after installing 0.6.2 version, lib/less/defaultFactories still includes DateTimePicker.less with capital D.

previous issue: #20

Thanks

Add the possibility to define callbacks for each event in Fields

Hi @andrerpena, first for all thank you for including me in the organization! ๐Ÿ˜„
I was thinking to allow the developer to include in each field a callback for an event. For example,

{
   fields: {
         name: {
            type: "string",
            component: "Input",
             change : (event) => { console.log("Hey!, i'm changing! :P ";)}
         }
    }
}

And do this for each type of event, this way each field will be more cutomizable.
What do you think??

migrate to redux form v6

first of all, thank you for your awesome work on this project! ๐Ÿ’ฏ

since redux form v6 release is right around the corner, it probably makes sense to consider the impact of these api changes sooner than later... https://github.com/erikras/redux-form/releases/tag/v6.0.0-alpha.15

http://redux-form.com/6.0.0-alpha.15/docs/MigrationGuide.md:

In v5, only the outer form component was connected to the Redux state, and the props for each field were passed in via the form component. The problem with this is that the entire form component had to rerender on every single keypress that changed a form value. This was fine for small login forms, but lead to extremely slow performance on larger forms with dozens or hundreds of fields.

In v6, every single field is connected to the Redux store. The outer form component is also connected, but is connected in such a manner that does not require it to refresh every time a value changes.

Because of this inversion of control, there is no incremental upgrade path. I would love to provide new API and provide deprecation warnings on the old API, but there is just no path from here to there that allows for such a transition.

without digging too deep into both APIs, i wanted to ask if you had considered these changes and plan on supporting the new api/optimizations?

New contributor

@andrerpena one of my co-workers @danigomez wants to collaborate to this project. He will be helping me with the material-ui-addon.

Can I add him as an organization member? :)

Proposal: Demo should be moved from redux-autoform

I will explain why I think this should be better:

  • We delete all dependencies need for the demo from the project
  • Redux-autoform is the core of the library so only should be placed the main lib code
  • Each demo could be placed in the gh-pages of the ui-projects, and we can point them by using the redux-autoform.github.io as repository for a homepage.

In this way we get everything more clean..

Material UI support

Hi, first of all, thanks for your project! I'm currently working with it, and it's a cool stuff.

I have been looking a little bit at your code, and some parts could be upgraded to ES6 sintax.. I would like to make a PR with this, and even more, I want to create a MaterialUIComponentFactory, for those who use material-ui in their projects.

Let me know what do you think about this.

Remove underscore and clone libs and refactor code using native ES6 functions.

The following files are using functions provided by underscore and clone which can be replaced by native ES6 code.

  • metadata\evaluator\filter\arrayMetadataFilter.js
  • metadata\evaluator\filter\defaultMetadataFilter.js
  • metadata\evaluator\filter\entityMetadataFilter.js
  • metadata\evaluator\metadataEvaluator.js
  • metadata\model\modelParser.js
  • metadata\validator\metadataValidator.js
  • metadata\MetadataProvider.js

What do you think??, is there a reason to not change unsderscore to native ES6??

Support for an alternative and simpler syntax for schema

redux-autoform's schema syntax is somewhat complex. There's need for this complexity but may be it should support a simpler alternative syntax that abstracts the concept of entities and layouts.

For instance, this would be enough for running a simple form:

[
    { name: 'name', type: 'string' },
    { name: 'dateOfBirth', type: 'date' },
] 

This would also work:

{
    name: {
        type: 'string'
    },
    dateOfBirth: {
        type: 'string'
    }
}

The only problem with the above approach is that I favored arrays over objects and I did that because arrays are easier to merge. I mean, adding a field in the position 3 and removing the one on position 1 is kind of easier using arrays. But I'm open to alternatives anyway.

What do you guys think?
@JonatanSalas ?

Creating a "Wizard Context" using the redux-form state values

Hi @andrerpena !!, We were trying to figure out how to get the form values from the Wizard in order to pass that values to the transition function, that will handle the steps transitions in case that you want to make it conditional. So we come to the idea to simply connect the group to the redux store and read the "form" (We can assume that the reducer is combined with that value, because that's what the RF doc says! ๐Ÿ˜„ ) state value.
Does it make sense to connect a group to the store?? or it should be handled in a parent component and passed to the group??
What do you think??

Are the Field and Layout schemas merged?

Helloo @andrerpena, are you merging the layout and field data in this code??

     let groupField = layout.fields[i];
     let existingEntityProperty = entity.fields.find(field => field.name == groupField.name);

     let field = {...existingEntityProperty || {}, ...groupField};

If yes, why is the field and layout data in two different json?? is possible to configure the layout info in each field inside fields??

PS: I have an Squirtle xD

Match dateTimePicker.less case

styles-defaultfactories.less content is as below, but lib/less/defaultFactories includes DateTimePicker.less with capital D.

// third party
@import './defaultFactories/Lookup';
@import './defaultFactories/dateTimePicker';
@import './defaultFactories/Checkbox';

Seems to be already fixed at source-code but npm install redux-autoform brings old version.

Add tests for Metadata code.

Hello @andrerpena , in task #46 i'm using the demo to check my changes, but it will be awesome if we can have tests for this code in order to make sure that we are not breaking anything! ๐Ÿ˜„

Add Object type support in Metadata processor

Hi guys! Can you pls evaluate supporting objects inside the form?

e.g.:

{
    a: String,
    foo: { 
        x: String,
        y: String
    } 
}

Then in autoform I should be able in my fields to do something like below:

{
    "displayName": "This x from foo",
    "name": "foo.x"
}

Thank you!

Support IE11

Current error: Object doesn't support property or method 'assign'

Redux-Autoform features proposal

I want to create this issue to be used as a thread for discussions about features or improvements over the redux-autoform API.

About a lot of exchanges we got the following list:

TODO:

  • Create a homepage
  • Migrate redux-form from v5.X to v6.X when released and full tested.

DONE:

  • Make the library as a core and UI agnostic.
  • Make small git repositories for differents UI types components and expose an index.js api.
  • Make a git project as boilerplate for those collaborators who want to add it's own ui types.
  • Update the documentation and make one demo per ui git project.
  • Re define the way to declare the schema to make it more easier to read, and make a util class to treat as an array.
  • Add support for Wizard Style form.
  • Define how styles per ui type project should be managed. Modular CSS? Inline styles with the help of radium lib?
  • Add support for file-upload components.
  • Fix codecov and coveralls to view % of test coverage
  • Fix travis-ci and greenkeeper

Well, if I forget something else please add it! :)

Support for files upload

Hi! Just wondering if you are planning to add any support for files upload.

Btw, the library is great.

Thanks in advace.

Proposal for a new direction for this organization

So, RAF is an interesting project but it's just one component of the project I envision. What I envision is a platform for creating data-centric business applications, like a CRM or a full-fledged ERP.

Three components that I can think about right now are:

I'm willing to go all the way on creating these components... If you @JonatanSalas and @danigomez would like to help I'd appreciate very much. For that reason, if you want to contribute, I'd like to rename this organization to something more generic and make it encompass these components I mentioned.

Besides, as I talked to @JonatanSalas already, I'm really liking MaterialUI. It seems really solid, so I wouldn't mind creating the Dashboard and the Admin panel using Material.

What do you think?

Radio Button on Demo

When performing the code base refactor, I notice that we have a Radio component but it's not present on the demo.

Radio has an issue to solve? Or you forget to add it?

Pre loaded Radio Buttons aren't being shown "checked"

Hi Team, first of all congratulations for your work, the project is awesome.

I was trying to use forms with radio buttons and I have a problem to load initial values for them. Actually, the values are charged successfully, because they are sent into the form after submit, but the problem is in the browser. The radio buttons with initials values aren't being shown "cheked".

I try to use the following initial values in the demo project, included in the repository:

{
'default': 'option1',
'required': 'option3',
'addonBefore': 'option2',
'addonAfter': 'option1',
'help': 'option2'
}

but the referenced Radio Buttons aren't checked in the view. Seems that the property checked="true" is not being used in the component. Or maybe Iยดm doing something wrong.

Thanks for your help!
Juan.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.