Skip to content

Releases: nette/forms

Released version 2.4.7

07 Mar 16:28
@dg dg
Compare
Choose a tag to compare
  • ChoiceControl, MultiChoiceControl: added checkDefaultValue() as replacement for $checkAllowedValues (#151)
  • Validator: method validatePattern() for FileUpload uses file name (#175)
  • netteForms.js: conforms with PHP FLOAT validation (#174)
  • examples: bootstrap updated

For the details you can have a look at the diff.

Released version 2.4.6

29 Aug 08:21
@dg dg
Compare
Choose a tag to compare
  • supports PHP up to 7.2
  • addError() by default translates messages (BC break)
  • Revert "DefaultFormRenderer: added error message translation (#145)" #162 (introduced in v2.4.4)
  • FormMacros: fix edcompatibility between n:class macro and n:name form macro. (#159)
  • added Form::reset()

For the details you can have a look at the diff.

Released version 2.4.5

14 Jul 07:42
@dg dg
Compare
Choose a tag to compare
  • coding style: fixes, lowercase true/false/null
  • $onClick handlers are called with argument $values (as $onSuccess)
  • tests: improved $onSuccess & $onClick etc. tests
  • DefaultFormRenderer: translates object 'label' & 'description' #142
  • tests: added rendering + localization (#149)
  • DefaultRenderer: fix for calling renderErrors() from renderPair() which was caused by #145 (->form = NULL) (#150)
  • ControlGroup: added remove() and removeOrphans() #155
  • SelectBox: only one item can be rendered as selected at the same time

For the details you can have a look at the diff.

Released version 2.4.4

29 Mar 23:59
@dg dg
Compare
Choose a tag to compare
  • added support for static addCondition(TRUE | FALSE)
  • netteForms.js: fixed 'Too much recursions' #143
  • BaseControl::setDisabled(FALSE) reloads HTTP value #139
  • DefaultFormRenderer: added error message translation (#145)
  • Revert "TextBase: emptyValue is removed from value in validate()" - getValue() can be called before validation
  • fixed phpDoc

For the details you can have a look at the diff.

Released version 2.3.12

21 Dec 01:02
@dg dg
Compare
Choose a tag to compare
  • BaseControl::setAttribute() and setType() aliased to setHtmlAttribute() and setHtmlType()
  • @return self -> static

For the details you can have a look at the diff.

Released version 2.4.3

20 Dec 23:57
@dg dg
Compare
Choose a tag to compare
  • BaseControl::setAttribute() and setType() aliased to setHtmlAttribute() and setHtmlType()
  • CheckboxList: added item label prototype
  • RadioList::getLabelPart() uses $itemLabel instead of $label
  • netteForms.js: fixed issue with button type=submit with html #137
  • netteForms: forms with attribute 'novalidate' are not validated (BC break)
  • becomes NPM package
  • @return self -> static

For the details you can have a look at the diff.

Released version 2.4.2

27 Sep 09:36
@dg dg
Compare
Choose a tag to compare
  • netteForms.js: cannot use range() to validate min/max (#136)
  • netteForms.js: added argument 'onlyCheck' to validateForm() #133
  • netteForms.js: validity of input=number is checked in 'onlyCheck' mode
  • Rules::validate() processes all conditions
  • fixed compatibility with PHP 7.1
  • netteForms.js: fixed compatiblity with IE 8 (#127)

For the details you can have a look at the diff.

Released version 2.3.11

27 Sep 09:37
@dg dg
Compare
Choose a tag to compare
  • netteForms.js: cannot use range() to validate min/max (#136)
  • netteForms.js: validity of input=number is checked in 'onlyCheck' mode
  • netteForms.js: compatibility with 2.4
  • netteForms: added version
  • fixed compatibility with PHP 7.1

For the details you can have a look at the diff.

Released version 2.4.1

09 Jul 12:03
@dg dg
Compare
Choose a tag to compare
  • added netteForms.min.js
  • netteForms: forms are initialized on DOMContentLoaded instead of onload
  • netteForms: fixed compatibility with IE 8
  • Container::addInteger() is nullable
  • TextInput: Reverts, validators FLOAT doesn't automatically sets type to 'number'
  • TextBase: added setNullable()
  • TextBase: emptyValue is removed from value in validate()
  • TextBase, TextInput, TextArea: refactoring, rendered value is built in getRenderedValue()
  • TextInput: rules are processed in addRule() instead of getControl() (is consistent with TextBase)

For the details you can have a look at the diff.

Released version 2.4.0

30 Jun 19:51
@dg dg
Compare
Choose a tag to compare
  • requires PHP 5.6
  • support for true optional controls via setRequired(FALSE) (BC break)
  • checks for missing setRequired(TRUE | FALSE)
  • Container: added addEmail() & addInteger()
  • Form: added isMethod(), beforeRender() & fireRenderEvents() and event $onRender
  • negative rules like ~$form::ABCD are deprecated. (Negatives for FILLED & EQUAL are BLANK & NOT_EQUAL)
  • controls: getOption('type') for distinguishing between them
  • TextInput: validators EMAIL, URL, INTEGER and FLOAT automatically sets type to 'email', 'url' or 'number' (BC break)
  • SelectBox, MultiSelectBox: added addOptionAttributes()
  • SelectBox: added isOk()
  • UploadControl: when file is uploaded with error, automatically shows error and isFilled() returns TRUE (BC break)
  • UploadControl: added isOK()
  • CheckboxList: added containerPrototype #92
  • DefaultFormRenderer: adds class 'text' to input types 'email' and 'number' (for back compatibility after 72127b1)
  • DefaultFormRenderer: wrapper for hidden fields changed from <div> to none
  • Form::addProtection() is always the first item
  • added BaseControl::enableAutoOptionalMode()
  • uses Nette\SmartObject & StaticClass

netteForms.js:

  • ability to show all error messages at once via Nette.showFormErrors() #65
  • displays all errors at once #65
  • removed support for IE =< 7
  • toggle handlers are added on body, uses addEventListener or attachEvent

Latte:

  • {label} is AUTO_EMPTY
  • <tag n:name> always uses getControlPart() and getLabelPart(), removed method_exists checking (BC break)
  • local $_form replaced with global $this->global->formsCurrent so it is not needed to pass $_form to included templates

For the details you can have a look at the diff.