Skip to content

Releases: nette/forms

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.

Released version 2.3.10

30 Jun 18:16
@dg dg
Compare
Choose a tag to compare
  • BaseControl::setValue() marked as @internal #114
  • Container: calls validate() only for IControl & Container #86
  • Rename Html:add() to Html:addHtml() to follow nette/utils#111 (#120)
  • netteForms.js: validates fucking HTML5 type 'number'

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

Released version 2.3.9

31 May 17:19
@dg dg
Compare
Choose a tag to compare
  • UploadControl: added isOK()
  • Helpers::exportRules() skips empty branches
  • netteForms.js: Nette.noInit = true disables auto initialization

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

Released version 2.3.8

19 Feb 21:50
@dg dg
Compare
Choose a tag to compare
  • SelectBox: is not required when size > 1
  • Validator: pattern: supports back reference #104

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

Released version 2.3.7

20 Jan 02:45
@dg dg
Compare
Choose a tag to compare
  • Form: added IS_NOT_IN
  • Helpers::exportRules() correctly exports empty arrays #102
  • Rules: allow Form::VALID only in the addConditionOn #95 #101
  • FormMacros: better error messages
  • __toString handles Throwable errors
  • netteForms.js: validator 'equal' compares values as PHP strings

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

Released version 2.2.8

03 Dec 02:48
@dg dg
Compare
Choose a tag to compare
  • ChoiceControl, MultiChoiceControl: renamed 'range' to 'set' in exception
  • ControlGroup::add() validation fixed; typos
  • netteForms.js: validator 'equal' compares values as PHP strings
  • netteForms.js: fixed freeze browser on email validation nette/nette#1540
  • netteForms: updated regexp for URL and email validation nette/nette#1539
  • __toString handles Throwable errors

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

Released version 2.3.6

30 Nov 00:58
@dg dg
Compare
Choose a tag to compare
  • FormMacros: added warnings Modifiers are not allowed here
  • Form::$onSuccess and Container::$onValidate must be array of Traversable
  • netteForms: updated regexp for URL and email validation nette/nette#1539 nette/nette#1540

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

Released version 2.2.7

23 Aug 14:21
@dg dg
Compare
Choose a tag to compare
  • travis: migrating to container-based infrastructure
  • improved coding style
  • netteForms.js: fixed toggle in IE < 9

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

Released version 2.3.4

23 Aug 14:26
@dg dg
Compare
Choose a tag to compare
  • Helpers::createSelectBox: added parameter $selected
  • ChoiceControl, MultiChoiceControl: added $checkAllowedValues #28
  • ChoiceControl, MultiChoiceControl: renamed 'range' to 'set' in exception
  • travis: migrating to container-based infrastructure
  • improved coding style

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