Releases: nette/forms
Releases · nette/forms
Released version 3.1.2
Released version 3.1.1
- phpDoc: fixed event type hints [Closes #265]
- Revert "Form::onValidate - values are passed only when form is valid"
- Latte: added more comments /* line */
- FormMacros: internal variables are prefixed $ʟ_
Released version 3.1.0
- requires PHP 7.2
Features
- Form: POST form checks Http\Request::isSameSite() as CSRF protection
- Guess first parameter for event by type hint (#219)
- Container::getValues($obj) to hydrate object
Changes
- Form::getValues() triggers warning when form is not valid
- Form::getValues() returns only controls in scope (BC break)
- Form::onValidate - values are passed only when form is valid
- Validator Form::URL autocompletes https:// instead of http:// (BC break)
- Validator::validateEqual returns false if control value is empty array (BC break) [Closes #257]
- Validator::formatMessage() added validator name to error message (#263)
- breaks exporting rules to JS after non-static validator [Closes #259]
- FormMacros: removed deprecated $_form
- Container: addImage() renamed to addImageButton()
- Checkbox: getSeparatorPrototype() renamed to getContainerPrototype()
- removed deprecated stuff
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.