Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

1.0.0

Compare
Choose a tag to compare
@ghelton ghelton released this 25 Oct 01:29
· 818 commits to master since this release

1.0.0 Changeset

Backward compatible changes:

  • Fixed bug with initializing select template.
  • Added the ability to do validation on fields with formly-dynamic-name.
  • Added formly-custom-validation directive.
  • Added warning in formly-field when more than just a type, template, or templateUrl are provided (should only have one)

Internal Changes

  • Moved all demo-only related files to a demo folder and added a symbolic link to src and bower_components so when it's deployed the src and bower_components go with it. This will also allow us to make a symlink in the test directory when it's created.
  • Separated out the src folder into three sub folders: common, bootstrap, and vanilla. The build takes bootstrap and vanilla and builds them separately. They each build with common. There is also a separate file for setting up the default template mapping with their types and this is excluded for the no-templates build. The final output is: formly.js, formly.bootstrap.js, and formly.vanilla.js. Adding other styles will be very easy. It also should make it possible for us to have directive templates (funcationality for a field).
  • Updated the demo to use a built version of formly because templates were such a pain. The Gruntfile has been updated to rebuild bootstrap every time something changes when grunt watch is running.
  • Moved the formly-form template into a file again and added transclusion.

Breaking changes:

  • Moved all field templates to separate repositories.
  • Added no-template build that builds to formly.js and changed vanilla build to formly.vanilla.js.
  • Removed all options to customize the submit button and now transclude instead. Because there are multiple skins of formly it made little sense to have a template for formly that needed different styling based on the build target (bootstrap vs. vanilla). The formly-form directive now transcludes so a submit button can be added there.
  • Removed formlyOptionsProvider because all useful global customizability is now unecessary.
  • Renamed formlyTemplateProvider to formlyConfigProvider to make it more generic for any future customization needs. The api is the same as before.
  • Added setTemplate and getTemplate to the formlyConfigProvider allowing developers to set template strings rather than simply a url.
  • Removed default property. Interact with the formData to set the form data.
  • Removed value from scope on templates. To access the value, you must now use result[option.key || $index].