Skip to content

Releases: nette/forms

Released version 2.4.11

06 Nov 00:26
@dg dg
Compare
Choose a tag to compare

compatible with PHP 8.0

Released version 3.0.7

02 Nov 17:46
@dg dg
Compare
Choose a tag to compare
  • compatible with PHP 8.0
  • examples: added Latte example
  • netteForms: added parameter 'event' to toggle()
  • netteForms: parameter srcElement is passed to Nette.toggle() even during initialization (possible BC break)
  • netteForms: removed hasOwnProperty() check
  • netteForms: added variable Nette.invalidNumberMessage with error message #252
  • netteForms: avoid checking of invalid number in nested validateControl() #252

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

Released version 3.0.6

16 Jul 09:44
@dg dg
Compare
Choose a tag to compare
  • {formPrint} more compact output
  • {formPrint} is selectable
  • FormMacros: added {formContext}
  • strict fix (#249)

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

Released version 3.0.5

06 Jun 13:43
@dg dg
Compare
Choose a tag to compare
  • CheckboxList: compact transmission mode in form name=val1,val2,val3
  • CsrfProtection: auto-starts session before form is rendered #239
  • Container: detects property type of mapped class
  • Validator::validateNumeric() accepts unsigned integer #246
  • Rules::getIterator() moves BLANK before FILLED #233
  • Rules::getToggleStates() synced with netteForms.js toggleControl
  • netteForms: fixed toggleControl(), synced with validateControl()
  • Rules::validate() $emptyOptional is always false in BLANK condition
  • Container::addHidden Allow any type so it works same as setDefaultValue (#245) BC break!
  • Latte: prints {label/}

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

Released version 3.0.4

20 Apr 13:17
@dg dg
Compare
Choose a tag to compare
  • FormMacros: added {formPrint $form}
  • netteForms: added mime-type validation #173
  • netteForms: image validator accepts image/webp
  • SelectBox, MultiSelectBox: added setOptionAttribute()
  • Container::getValues('array') propagates arrays to inner containers only when mappedType is not set
  • Validator::validateInteger() returns false when integer is too big
  • DefaultFormRenderer: options 'class' & 'id' are used for 'control' part when 'pair' part is empty
  • DefaultFormRenderer: supports option 'nextTo' & style 'control .multi'
  • renders correctly Nette\Utils\IHtmlString in data-nette-rules #243
  • getLabel() removed return type void #241
  • FormsExtension: uses $initialization

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

Released version 3.0.3

02 Jan 16:53
@dg dg
Compare
Choose a tag to compare
  • HiddenField: added setNullable() and addFilter() #171
  • HiddenField: value is not converted to string #152
  • UploadControl: automatically sets MAX_FILE_SIZE #238
  • UploadControl: addRule() checks upload_max_filesize limit
  • Rules: added removeRule()
  • Form: added setHtmlAttribute()
  • BaseControl: supports setHtmlAttribute('name')
  • Validator::formatMessage() label is translated using form translator (#237)
  • added .phpstorm.meta.php
  • readme: info about netteForms.js

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

Released version 3.0.2

19 Nov 18:09
@dg dg
Compare
Choose a tag to compare
  • supports PHP 7.4
  • Validator::formatMessage() Fixed using label placeholder in validation rule with Html label (#235)
  • throwing exceptions from __toString() is allowed since PHP 7.4
  • some fixes

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

Released version 2.4.10

19 Nov 15:41
@dg dg
Compare
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
Compare
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
Compare
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