Releases: nette/forms
Releases · nette/forms
Released version 2.4.11
compatible with PHP 8.0
Released version 3.0.7
- 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
Released version 3.0.5
- 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 withvalidateControl()
- 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
- 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
- HiddenField: added
setNullable()
andaddFilter()
#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
Released version 2.4.10
Released version 3.0.1
- 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 🎉
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