Skip to content

Releases: nette/forms

Released version 2.4.10

19 Nov 15:41
@dg dg

Choose a tag to compare

  • supports PHP 7.4
  • compatibility with nette/latte v3
  • throwing exceptions from __toString() is allowed since PHP 7.4
  • Validator: method validatePattern() for UploadControl multiple (#192)

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

Released version 3.0.1

08 Jul 20:25
@dg dg

Choose a tag to compare

  • BaseControl::getLabel() IHtmlString are not translated (#225)
  • BaseControl::translate() ignores IHtmlString
  • DefaultFormRenderer: Fix GET Application\UI\Form (#222)
  • DefaultFormRenderer: strict type fix (#220)
  • Use phpstan callable definitions (#216)(#223)(#224)
  • FormsExtension: uses configuration Schema

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

Released version 3.0.0 🎉

28 Feb 17:59
@dg dg

Choose a tag to compare

Features

  • requires PHP 7.1
  • uses declare(strict_types=1)
  • uses PHP 7.1 scalar and return type hints
  • added Container::setMappedType() and parameter getValues($returnType) for mapping to objects
  • netteForms: support for toggling by CSS selector, not only id (#210)
  • UploadControl: appends HTML attribute 'accept' [Closes #172]
  • SelectBox, MultiSelectBox: added getOptionAttributes() (#189)
  • BaseControl: added ability to multiple forms with different HTML ID [Closes #188]
  • DefaultFormRenderer: Add control .error class (#209)

Changes

  • Container, BaseControl: extension methods are implemented independently on ObjectMixin
  • CheckboxList: removed compatibility workaround for label vs item label (BC break)
  • SubmitButton::setValidationScope() accepts ?array; replace FALSE with [] (BC break)
  • BaseControl::getHtmlId() autoprefixes standalone forms with form name (BC break)
  • BaseControl::getHtmlId() ensures that control is attached to the form (BC break)
  • Container::addUpload() parameter $multiple is deprecated
  • Form::NUMERIC differs from INTEGER, checks whether value consists only of numbers and don't cast it to integer (BC break) [Closes #165]
  • $onClick handlers are called until form is valid (BC break)
  • BaseControl: labels are translated using form's translator (BC Break) (#58) (#141)
  • netteForms: removed support for IE < 9
  • ChoiceControl, MultiChoiceControl::$checkAllowedValues removed, use checkDefaultValue()
  • form controls are auto-optional

Released version 2.4.9

16 Sep 18:44
@dg dg

Choose a tag to compare

  • BaseControl: added ability to multiple forms with different HTML ID #188
  • add Form::PATTERN_ICASE as a case-insensitive variant of Form::PATTERN; fixes #185 (#187)
  • netteForms: uses unicode RegExp if is supported
  • netteForms.js: support checking file name via pattern rule using HTML5 File API (#186)

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

Released version 2.4.8

28 Jun 11:16
@dg dg

Choose a tag to compare

  • netteForms: DOMContentLoaded is never executed when script is loaded asynchronically
  • JSHint replaced with ESLint
  • DefaultFormRenderer, Latte: fix input name defined like array (#182)
  • Rules: added reset method (#180)
  • Validator: %label trims colon

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

Released version 2.4.7

07 Mar 16:28
@dg dg

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

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

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

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

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.