meteor-autoform

AutoForm is a Meteor package that adds UI components and helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation.

MIT License

Stars
1.4K
Committers
83
meteor-autoform - 7.1.0 Latest Release

Published by jankapunkt 7 months ago

Important: this release brings compatibility with aldeed:[email protected] and aldeed:[email protected]

What's Changed

New Contributors

Full Changelog: https://github.com/Meteor-Community-Packages/meteor-autoform/compare/7.0.0...7.1.0

meteor-autoform - v7.0.0

Published by jankapunkt almost 4 years ago

Major release with many improvements

  • all code is es6 now
  • ~280 tests + testsuite added
  • standard code linted
  • some bugs fixed in the process
  • supports dynamic imports
meteor-autoform - v6.1.0

Published by StorytellerCZ about 4 years ago

  • firstOption when specified in the schema can now be a function (thanks @MartinBucko)
  • Insert forms reset more reliably after successful submission (thanks @alexk7)
  • AutoForm.selectFirstInvalidField works on more types of fields (thanks @ro6)
  • The form doc is now passed to the schema during validation to support multiple schema variations (thanks @gregory, @nidem)
  • afArrayField with the bootstrap3 template now supports panelClass and headingClass attributes (thanks @c316)
  • When you have multiple autosave=true forms with the same field name and value, they will now reliably save every time (thanks @abernix)
  • Readme improvements: @brajt, @kmills006, @dandalf
meteor-autoform - v6.3.0

Published by StorytellerCZ about 4 years ago

Updated to have a weak dependency on aldeed:[email protected] in addition to aldeed:collection2-core. Core has been merged back into the main package as a 3.0.0 release.

meteor-autoform - v5.8.0

Published by aldeed almost 9 years ago

You can now set singleMethodArgument=true as a form attribute on a method-update type form, and your method will be called with a single object argument with _id and modifier properties. You should do this if using the mdg:validated-method package.

meteor-autoform -

Published by aldeed about 9 years ago

For "normal" type forms, don't end submission until this.done() is called.

meteor-autoform -

Published by aldeed about 9 years ago

Sticky validation improvements

  • Add API outside of hooks for settings and removing sticky validation errors
  • Properly show sticky validation errors as soon as they are added
  • Optimizations to keyup validation
meteor-autoform -

Published by aldeed about 9 years ago

Fix boolean-radios templates

meteor-autoform -

Published by aldeed about 9 years ago

  • Add ability to specify a data attribute on afFieldInput, which is then added to the data context of the input type template. (See the readme.)
  • Fix issue with submitting proper value when the null option is chosen for a boolean field
  • Fix issues with reactive reruns that change the form schema
  • Adjust value returned from AutoForm.getFieldValue when the form isn't rendered yet
  • Fix issue with autosaving changes to multiple select fields
  • Adjustments to support BlazeComponents
  • Fix width of array field when there is only one
  • Fix initial value of contenteditable fields
meteor-autoform -

Published by aldeed about 9 years ago

For boolean-radios and boolean-select input types, you can now use the nullLabel attribute to specify a label (e.g., "None") for when the value is not set (or to unset it). For backwards compatibility, the boolean-radios type will not render a radio element for unsetting unless you set nullLabel.

meteor-autoform -

Published by aldeed about 9 years ago

Fix AutoForm.getFieldValue so that it reacts properly when first called outside of the form, before the form has been rendered. Also attempt to limit unnecessary reruns.

meteor-autoform -

Published by aldeed about 9 years ago

  • New autoform.group option. See "Grouping Fields" in README. (Thanks @SachaG)
  • formToModifier now works properly (Thanks @aramk)
  • update-pushArray forms now work properly when there is an array index in the scope field
  • Other minor documentation and dependency changes
meteor-autoform -

Published by aldeed over 9 years ago

Fix issue where afFieldValue tracking didn't work for non-boolean radio buttons and check boxes.

meteor-autoform -

Published by aldeed over 9 years ago

  • Fix Uncaught TypeError: Cannot read property 'changed' of undefined error
  • Fix for checkboxes and radio buttons not triggering form change event (Thanks @abecks)
  • Add ddp attribute for specifying an alternative DDP connection for "method" and "method-update" forms (Thanks @patrickleet)
  • Add support for formgroup- prefix on afFormGroup/afQuickField attributes. For example, formgroup-class="foo" adds "foo" class to the form group element. (Thanks @fknipp)
  • For Bootstrap theme templates, you can now specify panelClass, headingClass, and bodyClass attributes for the afObjectField component. (Thanks @fknipp)
meteor-autoform -

Published by aldeed over 9 years ago

Fix issues with errors being thrown during reactive changes and issues with getting reactive field values.

meteor-autoform -

Published by aldeed over 9 years ago

Fix validation of typeless forms when done with AutoForm.validateForm()

meteor-autoform -

Published by aldeed over 9 years ago

Fix validation of typeless forms broken in 5.1.0 (Thanks @abecks)

meteor-autoform -

Published by aldeed over 9 years ago

  • Fix date handling when dealing with very low year numbers. (Thanks @jfly)
  • For type="update" and type="method-update" forms, a formToModifier hook is called instead of formToDoc, and it's passed a Mongo modifier. For forms with no type attribute, both formToDoc and formToModifier are called. (You should provide one or both based on whether you use the doc, the modifier, or both in your onSubmit hook.)
  • Array handling was changed in 5.0 to support additional use cases. However, this change also resulted in a MongoDB array handling quirk no longer being masked by AutoForm. Since this caused confusion for many people, array handling is now reverted back to pre-5.0 behavior. If your form needs to update specific array items as opposed to entire arrays, you can opt in to the proper array handling by putting setArrayItems=true on your autoForm or quickForm.
  • For "method" and "method-update" type forms, before hooks will now run before validation, unless you've specified both a schema attribute and a collection attribute. In that case, validation against the form schema happens before the before hooks run, and validation against the collection schema happens after the before hooks run, before your method is called.
  • Changes to avoid benign errors being thrown.
  • Fix potential for infinite loops related to tracking field values.
meteor-autoform -

Published by aldeed over 9 years ago

Compatible with Meteor v1.0.4+

meteor-autoform -

Published by aldeed over 9 years ago

Minor fix

Badges
Extracted from project README
Project Status: Active – The project has reached a stable, usable state and is being actively developed. JavaScript Style Guide